diff --git a/packages/nivo-bar/stories/bar.stories.js b/packages/nivo-bar/stories/bar.stories.js index 83e26a67d..37e081c2a 100644 --- a/packages/nivo-bar/stories/bar.stories.js +++ b/packages/nivo-bar/stories/bar.stories.js @@ -1,7 +1,7 @@ import React from 'react' import { storiesOf } from '@storybook/react' import { withInfo } from '@storybook/addon-info' -import { generateCountriesData, sets } from 'nivo-generators' +import { generateCountriesData, sets } from '@nivo/generators' import range from 'lodash/range' import random from 'lodash/random' import { Bar } from '../es' diff --git a/packages/nivo-chord/stories/chord.stories.js b/packages/nivo-chord/stories/chord.stories.js index efe1a6eec..1463db0e7 100644 --- a/packages/nivo-chord/stories/chord.stories.js +++ b/packages/nivo-chord/stories/chord.stories.js @@ -1,6 +1,6 @@ import React from 'react' import { storiesOf } from '@storybook/react' -import { generateChordData } from 'nivo-generators' +import { generateChordData } from '@nivo/generators' import { Chord } from '../es' const commonProperties = { diff --git a/packages/nivo-circle-packing/stories/bubble.stories.js b/packages/nivo-circle-packing/stories/bubble.stories.js index 21d1e1396..68da558d3 100644 --- a/packages/nivo-circle-packing/stories/bubble.stories.js +++ b/packages/nivo-circle-packing/stories/bubble.stories.js @@ -1,6 +1,6 @@ import React from 'react' import { storiesOf } from '@storybook/react' -import { generateLibTree } from 'nivo-generators' +import { generateLibTree } from '@nivo/generators' import { Bubble } from '../es' const commonProperties = { diff --git a/packages/nivo-generators/.babelrc b/packages/nivo-generators/.babelrc index 1249f2ae3..123609ebd 100644 --- a/packages/nivo-generators/.babelrc +++ b/packages/nivo-generators/.babelrc @@ -1,49 +1,3 @@ { - "plugins": [ - [ - "transform-es2015-template-literals", - { - "loose": true - } - ], - "transform-es2015-literals", - "transform-es2015-function-name", - "transform-es2015-arrow-functions", - "transform-es2015-block-scoped-functions", - "transform-es2015-shorthand-properties", - [ - "transform-es2015-computed-properties", - { - "loose": true - } - ], - "check-es2015-constants", - [ - "transform-es2015-spread", - { - "loose": true - } - ], - "transform-es2015-parameters", - [ - "transform-es2015-destructuring", - { - "loose": true - } - ], - "transform-es2015-block-scoping", - "transform-object-rest-spread" - ], - "env": { - "commonjs": { - "plugins": [ - [ - "transform-es2015-modules-commonjs", - { - "loose": true - } - ] - ] - } - } + "presets": ["@nivo/babel-preset"] } diff --git a/packages/nivo-generators/package.json b/packages/nivo-generators/package.json index dcf5a49d8..0827dabc6 100644 --- a/packages/nivo-generators/package.json +++ b/packages/nivo-generators/package.json @@ -9,9 +9,9 @@ ], "description": "Data generators used for nivo-website and http API samples", "author": "Raphaël Benitte ", - "main": "./lib/generators.js", - "module": "es/generators.js", - "jsnext:main": "es/generators.js", + "main": "./lib/index.js", + "module": "es/index.js", + "jsnext:main": "es/index.js", "engines": { "node": ">=6.0.0", "npm": ">=3.0.0" diff --git a/packages/nivo-generators/yarn.lock b/packages/nivo-generators/yarn.lock index fc6954fa7..3aadd8449 100644 --- a/packages/nivo-generators/yarn.lock +++ b/packages/nivo-generators/yarn.lock @@ -2,6 +2,35 @@ # yarn lockfile v1 +"@nivo/babel-preset@0.32.0-10": + version "0.32.0-10" + resolved "https://registry.yarnpkg.com/@nivo/babel-preset/-/babel-preset-0.32.0-10.tgz#4ac1ebef72a0670642259a5741930329b449a1ca" + dependencies: + babel-cli "^6.26.0" + babel-jest "^20.0.3" + babel-plugin-check-es2015-constants "^6.22.0" + babel-plugin-external-helpers "^6.22.0" + babel-plugin-istanbul "^4.1.4" + babel-plugin-lodash "^3.2.11" + babel-plugin-syntax-jsx "^6.18.0" + babel-plugin-transform-class-properties "^6.24.1" + babel-plugin-transform-es2015-arrow-functions "^6.22.0" + babel-plugin-transform-es2015-block-scoped-functions "^6.22.0" + babel-plugin-transform-es2015-block-scoping "^6.26.0" + babel-plugin-transform-es2015-classes "^6.24.1" + babel-plugin-transform-es2015-computed-properties "^6.24.1" + babel-plugin-transform-es2015-destructuring "^6.23.0" + babel-plugin-transform-es2015-function-name "^6.24.1" + babel-plugin-transform-es2015-literals "^6.22.0" + babel-plugin-transform-es2015-modules-commonjs "^6.26.0" + babel-plugin-transform-es2015-object-super "^6.24.1" + babel-plugin-transform-es2015-parameters "^6.24.1" + babel-plugin-transform-es2015-shorthand-properties "^6.24.1" + babel-plugin-transform-es2015-spread "^6.22.0" + babel-plugin-transform-es2015-template-literals "^6.22.0" + babel-plugin-transform-object-rest-spread "^6.26.0" + babel-plugin-transform-react-jsx "^6.24.1" + abbrev@1: version "1.1.0" resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.0.tgz#d0554c2256636e2f56e7c2e5ad183f859428d81f" @@ -13,10 +42,6 @@ ajv@^4.9.1: co "^4.6.0" json-stable-stringify "^1.0.1" -ansi-escapes@^1.0.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-1.4.0.tgz#d3a8a83b319aa67793662b13e761c7911422306e" - ansi-regex@^2.0.0: version "2.1.1" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" @@ -32,10 +57,6 @@ anymatch@^1.3.0: micromatch "^2.1.5" normalize-path "^2.0.0" -app-root-path@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/app-root-path/-/app-root-path-2.0.1.tgz#cd62dcf8e4fd5a417efc664d2e5b10653c651b46" - aproba@^1.0.3: version "1.1.2" resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.1.2.tgz#45c6629094de4e96f693ef7eab74ae079c240fc1" @@ -47,12 +68,6 @@ are-we-there-yet@~1.1.2: delegates "^1.0.0" readable-stream "^2.0.6" -argparse@^1.0.7: - version "1.0.9" - resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.9.tgz#73d83bc263f86e97f8cc4f6bae1b0e90a7d22c86" - dependencies: - sprintf-js "~1.0.2" - arr-diff@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" @@ -165,6 +180,14 @@ babel-generator@^6.18.0, babel-generator@^6.26.0: source-map "^0.5.6" trim-right "^1.0.1" +babel-helper-builder-react-jsx@^6.24.1: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-helper-builder-react-jsx/-/babel-helper-builder-react-jsx-6.26.0.tgz#39ff8313b75c8b65dceff1f31d383e0ff2a408a0" + dependencies: + babel-runtime "^6.26.0" + babel-types "^6.26.0" + esutils "^2.0.2" + babel-helper-call-delegate@^6.24.1: version "6.24.1" resolved "https://registry.yarnpkg.com/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz#ece6aacddc76e41c3461f88bfc575bd0daa2df8d" @@ -174,6 +197,15 @@ babel-helper-call-delegate@^6.24.1: babel-traverse "^6.24.1" babel-types "^6.24.1" +babel-helper-define-map@^6.24.1: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz#a5f56dab41a25f97ecb498c7ebaca9819f95be5f" + dependencies: + babel-helper-function-name "^6.24.1" + babel-runtime "^6.26.0" + babel-types "^6.26.0" + lodash "^4.17.4" + babel-helper-function-name@^6.24.1: version "6.24.1" resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz#d3475b8c03ed98242a25b48351ab18399d3580a9" @@ -198,6 +230,31 @@ babel-helper-hoist-variables@^6.24.1: babel-runtime "^6.22.0" babel-types "^6.24.1" +babel-helper-module-imports@^7.0.0-beta.3: + version "7.0.0-beta.3" + resolved "https://registry.yarnpkg.com/babel-helper-module-imports/-/babel-helper-module-imports-7.0.0-beta.3.tgz#e15764e3af9c8e11810c09f78f498a2bdc71585a" + dependencies: + babel-types "7.0.0-beta.3" + lodash "^4.2.0" + +babel-helper-optimise-call-expression@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz#f7a13427ba9f73f8f4fa993c54a97882d1244257" + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-helper-replace-supers@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz#bf6dbfe43938d17369a213ca8a8bf74b6a90ab1a" + dependencies: + babel-helper-optimise-call-expression "^6.24.1" + babel-messages "^6.23.0" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + babel-helpers@^6.24.1: version "6.24.1" resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.24.1.tgz#3471de9caec388e5c850e597e58a26ddf37602b2" @@ -225,6 +282,12 @@ babel-plugin-check-es2015-constants@^6.22.0: dependencies: babel-runtime "^6.22.0" +babel-plugin-external-helpers@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-external-helpers/-/babel-plugin-external-helpers-6.22.0.tgz#2285f48b02bd5dede85175caf8c62e86adccefa1" + dependencies: + babel-runtime "^6.22.0" + babel-plugin-istanbul@^4.0.0: version "4.1.4" resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-4.1.4.tgz#18dde84bf3ce329fddf3f4103fae921456d8e587" @@ -233,14 +296,36 @@ babel-plugin-istanbul@^4.0.0: istanbul-lib-instrument "^1.7.2" test-exclude "^4.1.1" +babel-plugin-istanbul@^4.1.4: + version "4.1.5" + resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-4.1.5.tgz#6760cdd977f411d3e175bb064f2bc327d99b2b6e" + dependencies: + find-up "^2.1.0" + istanbul-lib-instrument "^1.7.5" + test-exclude "^4.1.1" + babel-plugin-jest-hoist@^20.0.3: version "20.0.3" resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-20.0.3.tgz#afedc853bd3f8dc3548ea671fbe69d03cc2c1767" +babel-plugin-lodash@^3.2.11: + version "3.3.2" + resolved "https://registry.yarnpkg.com/babel-plugin-lodash/-/babel-plugin-lodash-3.3.2.tgz#da3a5b49ba27447f54463f6c4fa81396ccdd463f" + dependencies: + babel-helper-module-imports "^7.0.0-beta.3" + babel-types "^6.26.0" + glob "^7.1.1" + lodash "^4.17.4" + require-package-name "^2.0.1" + babel-plugin-syntax-class-properties@^6.8.0: version "6.13.0" resolved "https://registry.yarnpkg.com/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz#d7eb23b79a317f8543962c505b827c7d6cac27de" +babel-plugin-syntax-jsx@^6.18.0, babel-plugin-syntax-jsx@^6.8.0: + version "6.18.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946" + babel-plugin-syntax-object-rest-spread@^6.8.0: version "6.13.0" resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5" @@ -276,6 +361,20 @@ babel-plugin-transform-es2015-block-scoping@^6.26.0: babel-types "^6.26.0" lodash "^4.17.4" +babel-plugin-transform-es2015-classes@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz#5a4c58a50c9c9461e564b4b2a3bfabc97a2584db" + dependencies: + babel-helper-define-map "^6.24.1" + babel-helper-function-name "^6.24.1" + babel-helper-optimise-call-expression "^6.24.1" + babel-helper-replace-supers "^6.24.1" + babel-messages "^6.23.0" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + babel-plugin-transform-es2015-computed-properties@^6.24.1: version "6.24.1" resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz#6fe2a8d16895d5634f4cd999b6d3480a308159b3" @@ -312,6 +411,13 @@ babel-plugin-transform-es2015-modules-commonjs@^6.26.0: babel-template "^6.26.0" babel-types "^6.26.0" +babel-plugin-transform-es2015-object-super@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz#24cef69ae21cb83a7f8603dad021f572eb278f8d" + dependencies: + babel-helper-replace-supers "^6.24.1" + babel-runtime "^6.22.0" + babel-plugin-transform-es2015-parameters@^6.24.1: version "6.24.1" resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz#57ac351ab49caf14a97cd13b09f66fdf0a625f2b" @@ -349,6 +455,14 @@ babel-plugin-transform-object-rest-spread@^6.26.0: babel-plugin-syntax-object-rest-spread "^6.8.0" babel-runtime "^6.26.0" +babel-plugin-transform-react-jsx@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-jsx/-/babel-plugin-transform-react-jsx-6.24.1.tgz#840a028e7df460dfc3a2d29f0c0d91f6376e66a3" + dependencies: + babel-helper-builder-react-jsx "^6.24.1" + babel-plugin-syntax-jsx "^6.8.0" + babel-runtime "^6.22.0" + babel-plugin-transform-strict-mode@^6.24.1: version "6.24.1" resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz#d5faf7aa578a65bbe591cf5edae04a0c67020758" @@ -413,6 +527,14 @@ babel-traverse@^6.18.0, babel-traverse@^6.24.1, babel-traverse@^6.26.0: invariant "^2.2.2" lodash "^4.17.4" +babel-types@7.0.0-beta.3: + version "7.0.0-beta.3" + resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-7.0.0-beta.3.tgz#cd927ca70e0ae8ab05f4aab83778cfb3e6eb20b4" + dependencies: + esutils "^2.0.2" + lodash "^4.2.0" + to-fast-properties "^2.0.0" + babel-types@^6.18.0, babel-types@^6.24.1, babel-types@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497" @@ -475,7 +597,7 @@ caseless@~0.12.0: version "0.12.0" resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" -chalk@^1.0.0, chalk@^1.1.1, chalk@^1.1.3: +chalk@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" dependencies: @@ -500,27 +622,6 @@ chokidar@^1.6.1: optionalDependencies: fsevents "^1.0.0" -ci-info@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-1.0.0.tgz#dc5285f2b4e251821683681c381c3388f46ec534" - -cli-cursor@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-1.0.2.tgz#64da3f7d56a54412e59794bd62dc35295e8f2987" - dependencies: - restore-cursor "^1.0.1" - -cli-spinners@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-0.1.2.tgz#bb764d88e185fb9e1e6a2a1f19772318f605e31c" - -cli-truncate@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/cli-truncate/-/cli-truncate-0.2.1.tgz#9f15cfbb0705005369216c626ac7d05ab90dd574" - dependencies: - slice-ansi "0.0.4" - string-width "^1.0.1" - co@^4.6.0: version "4.6.0" resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" @@ -535,7 +636,7 @@ combined-stream@^1.0.5, combined-stream@~1.0.5: dependencies: delayed-stream "~1.0.0" -commander@^2.11.0, commander@^2.9.0: +commander@^2.11.0: version "2.11.0" resolved "https://registry.yarnpkg.com/commander/-/commander-2.11.0.tgz#157152fd1e7a6c8d98a5b715cf376df928004563" @@ -559,19 +660,6 @@ core-util-is@1.0.2, core-util-is@~1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" -cosmiconfig@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-1.1.0.tgz#0dea0f9804efdfb929fbb1b188e25553ea053d37" - dependencies: - graceful-fs "^4.1.2" - js-yaml "^3.4.3" - minimist "^1.2.0" - object-assign "^4.0.1" - os-homedir "^1.0.1" - parse-json "^2.2.0" - pinkie-promise "^2.0.0" - require-from-string "^1.1.0" - cross-env@^5.0.5: version "5.0.5" resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-5.0.5.tgz#4383d364d9660873dd185b398af3bfef5efffef3" @@ -579,7 +667,7 @@ cross-env@^5.0.5: cross-spawn "^5.1.0" is-windows "^1.0.0" -cross-spawn@^5.0.1, cross-spawn@^5.1.0: +cross-spawn@^5.1.0: version "5.1.0" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" dependencies: @@ -609,10 +697,6 @@ dashdash@^1.12.0: dependencies: assert-plus "^1.0.0" -date-fns@^1.27.2: - version "1.28.5" - resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-1.28.5.tgz#257cfc45d322df45ef5658665967ee841cd73faf" - debug@^2.2.0, debug@^2.6.8: version "2.6.8" resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.8.tgz#e731531ca2ede27d188222427da17821d68ff4fc" @@ -643,44 +727,20 @@ ecc-jsbn@~0.1.1: dependencies: jsbn "~0.1.0" -elegant-spinner@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/elegant-spinner/-/elegant-spinner-1.0.1.tgz#db043521c95d7e303fd8f345bedc3349cfb0729e" - error-ex@^1.2.0: version "1.3.1" resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.1.tgz#f855a86ce61adc4e8621c3cda21e7a7612c3a8dc" dependencies: is-arrayish "^0.2.1" -escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: +escape-string-regexp@^1.0.2: version "1.0.5" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" -esprima@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.0.tgz#4499eddcd1110e0b218bacf2fa7f7f59f55ca804" - esutils@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" -execa@^0.8.0: - version "0.8.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-0.8.0.tgz#d8d76bbc1b55217ed190fd6dd49d3c774ecfc8da" - dependencies: - cross-spawn "^5.0.1" - get-stream "^3.0.0" - is-stream "^1.1.0" - npm-run-path "^2.0.0" - p-finally "^1.0.0" - signal-exit "^3.0.0" - strip-eof "^1.0.0" - -exit-hook@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/exit-hook/-/exit-hook-1.1.1.tgz#f05ca233b48c05d54fff07765df8507e95c02ff8" - expand-brackets@^0.1.4: version "0.1.5" resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" @@ -707,13 +767,6 @@ extsprintf@1.3.0, extsprintf@^1.2.0: version "1.3.0" resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" -figures@^1.7.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/figures/-/figures-1.7.0.tgz#cbe1e3affcf1cd44b80cadfed28dc793a9701d2e" - dependencies: - escape-string-regexp "^1.0.5" - object-assign "^4.1.0" - filename-regex@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26" @@ -808,10 +861,6 @@ gauge@~2.7.3: strip-ansi "^3.0.1" wide-align "^1.1.0" -get-stream@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" - getpass@^0.1.1: version "0.1.7" resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" @@ -831,7 +880,7 @@ glob-parent@^2.0.0: dependencies: is-glob "^2.0.0" -glob@^7.0.5, glob@^7.1.2: +glob@^7.0.5, glob@^7.1.1, glob@^7.1.2: version "7.1.2" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" dependencies: @@ -903,24 +952,6 @@ http-signature@~1.1.0: jsprim "^1.2.2" sshpk "^1.7.0" -husky@^0.14.3: - version "0.14.3" - resolved "https://registry.yarnpkg.com/husky/-/husky-0.14.3.tgz#c69ed74e2d2779769a17ba8399b54ce0b63c12c3" - dependencies: - is-ci "^1.0.10" - normalize-path "^1.0.0" - strip-indent "^2.0.0" - -indent-string@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-2.1.0.tgz#8e2d48348742121b4a8218b7a137e9a52049dc80" - dependencies: - repeating "^2.0.0" - -indent-string@^3.0.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-3.2.0.tgz#4a5fd6d27cc332f37e5419a504dbb837105c9289" - inflight@^1.0.4: version "1.0.6" resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" @@ -962,12 +993,6 @@ is-builtin-module@^1.0.0: dependencies: builtin-modules "^1.0.0" -is-ci@^1.0.10: - version "1.0.10" - resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-1.0.10.tgz#f739336b2632365061a9d48270cd56ae3369318e" - dependencies: - ci-info "^1.0.0" - is-dotfile@^1.0.0: version "1.0.3" resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1" @@ -1024,14 +1049,6 @@ is-primitive@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" -is-promise@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.1.0.tgz#79a2a9ece7f096e80f36d2b2f3bc16c1ff4bf3fa" - -is-stream@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" - is-typedarray@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" @@ -1078,17 +1095,22 @@ istanbul-lib-instrument@^1.7.2: istanbul-lib-coverage "^1.1.1" semver "^5.3.0" +istanbul-lib-instrument@^1.7.5: + version "1.9.1" + resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-1.9.1.tgz#250b30b3531e5d3251299fdd64b0b2c9db6b558e" + dependencies: + babel-generator "^6.18.0" + babel-template "^6.16.0" + babel-traverse "^6.18.0" + babel-types "^6.18.0" + babylon "^6.18.0" + istanbul-lib-coverage "^1.1.1" + semver "^5.3.0" + js-tokens@^3.0.0, js-tokens@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" -js-yaml@^3.4.3: - version "3.9.1" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.9.1.tgz#08775cebdfdd359209f0d2acd383c8f86a6904a0" - dependencies: - argparse "^1.0.7" - esprima "^4.0.0" - jsbn@~0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" @@ -1140,67 +1162,6 @@ kind-of@^4.0.0: dependencies: is-buffer "^1.1.5" -lint-staged@^4.0.3: - version "4.0.3" - resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-4.0.3.tgz#1ce55591bc2c83a781a90b69a0a0c8aa0fc6370b" - dependencies: - app-root-path "^2.0.0" - cosmiconfig "^1.1.0" - execa "^0.8.0" - listr "^0.12.0" - lodash.chunk "^4.2.0" - minimatch "^3.0.0" - npm-which "^3.0.1" - p-map "^1.1.1" - staged-git-files "0.0.4" - -listr-silent-renderer@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/listr-silent-renderer/-/listr-silent-renderer-1.1.1.tgz#924b5a3757153770bf1a8e3fbf74b8bbf3f9242e" - -listr-update-renderer@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/listr-update-renderer/-/listr-update-renderer-0.2.0.tgz#ca80e1779b4e70266807e8eed1ad6abe398550f9" - dependencies: - chalk "^1.1.3" - cli-truncate "^0.2.1" - elegant-spinner "^1.0.1" - figures "^1.7.0" - indent-string "^3.0.0" - log-symbols "^1.0.2" - log-update "^1.0.2" - strip-ansi "^3.0.1" - -listr-verbose-renderer@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/listr-verbose-renderer/-/listr-verbose-renderer-0.4.0.tgz#44dc01bb0c34a03c572154d4d08cde9b1dc5620f" - dependencies: - chalk "^1.1.3" - cli-cursor "^1.0.2" - date-fns "^1.27.2" - figures "^1.7.0" - -listr@^0.12.0: - version "0.12.0" - resolved "https://registry.yarnpkg.com/listr/-/listr-0.12.0.tgz#6bce2c0f5603fa49580ea17cd6a00cc0e5fa451a" - dependencies: - chalk "^1.1.3" - cli-truncate "^0.2.1" - figures "^1.7.0" - indent-string "^2.1.0" - is-promise "^2.1.0" - is-stream "^1.1.0" - listr-silent-renderer "^1.1.1" - listr-update-renderer "^0.2.0" - listr-verbose-renderer "^0.4.0" - log-symbols "^1.0.2" - log-update "^1.0.2" - ora "^0.2.3" - p-map "^1.1.1" - rxjs "^5.0.0-beta.11" - stream-to-observable "^0.1.0" - strip-ansi "^3.0.1" - load-json-file@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0" @@ -1218,10 +1179,6 @@ locate-path@^2.0.0: p-locate "^2.0.0" path-exists "^3.0.0" -lodash.chunk@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/lodash.chunk/-/lodash.chunk-4.2.0.tgz#66e5ce1f76ed27b4303d8c6512e8d1216e8106bc" - lodash.random@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/lodash.random/-/lodash.random-3.2.0.tgz#96e24e763333199130d2c9e2fd57f91703cc262d" @@ -1234,23 +1191,10 @@ lodash.shuffle@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/lodash.shuffle/-/lodash.shuffle-4.2.0.tgz#145b5053cf875f6f5c2a33f48b6e9948c6ec7b4b" -lodash@^4.17.4: +lodash@^4.17.4, lodash@^4.2.0: version "4.17.4" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" -log-symbols@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-1.0.2.tgz#376ff7b58ea3086a0f09facc74617eca501e1a18" - dependencies: - chalk "^1.0.0" - -log-update@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/log-update/-/log-update-1.0.2.tgz#19929f64c4093d2d2e7075a1dad8af59c296b8d1" - dependencies: - ansi-escapes "^1.0.0" - cli-cursor "^1.0.2" - loose-envify@^1.0.0: version "1.3.1" resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848" @@ -1350,36 +1294,12 @@ normalize-package-data@^2.3.2: semver "2 || 3 || 4 || 5" validate-npm-package-license "^3.0.1" -normalize-path@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-1.0.0.tgz#32d0e472f91ff345701c15a8311018d3b0a90379" - normalize-path@^2.0.0, normalize-path@^2.0.1: version "2.1.1" resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" dependencies: remove-trailing-separator "^1.0.1" -npm-path@^2.0.2: - version "2.0.3" - resolved "https://registry.yarnpkg.com/npm-path/-/npm-path-2.0.3.tgz#15cff4e1c89a38da77f56f6055b24f975dfb2bbe" - dependencies: - which "^1.2.10" - -npm-run-path@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" - dependencies: - path-key "^2.0.0" - -npm-which@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/npm-which/-/npm-which-3.0.1.tgz#9225f26ec3a285c209cae67c3b11a6b4ab7140aa" - dependencies: - commander "^2.9.0" - npm-path "^2.0.2" - which "^1.2.10" - npmlog@^4.0.2: version "4.1.2" resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" @@ -1397,7 +1317,7 @@ oauth-sign@~0.8.1: version "0.8.2" resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" -object-assign@^4.0.1, object-assign@^4.1.0: +object-assign@^4.1.0: version "4.1.1" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" @@ -1414,20 +1334,7 @@ once@^1.3.0, once@^1.3.3: dependencies: wrappy "1" -onetime@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/onetime/-/onetime-1.1.0.tgz#a1f7838f8314c516f05ecefcbc4ccfe04b4ed789" - -ora@^0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/ora/-/ora-0.2.3.tgz#37527d220adcd53c39b73571d754156d5db657a4" - dependencies: - chalk "^1.1.1" - cli-cursor "^1.0.2" - cli-spinners "^0.1.2" - object-assign "^4.0.1" - -os-homedir@^1.0.0, os-homedir@^1.0.1: +os-homedir@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" @@ -1450,10 +1357,6 @@ output-file-sync@^1.1.2: mkdirp "^0.5.1" object-assign "^4.1.0" -p-finally@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" - p-limit@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.1.0.tgz#b07ff2d9a5d88bec806035895a2bab66a27988bc" @@ -1464,10 +1367,6 @@ p-locate@^2.0.0: dependencies: p-limit "^1.1.0" -p-map@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/p-map/-/p-map-1.1.1.tgz#05f5e4ae97a068371bc2a5cc86bfbdbc19c4ae7a" - parse-glob@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" @@ -1497,10 +1396,6 @@ path-is-absolute@^1.0.0, path-is-absolute@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" -path-key@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" - path-type@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441" @@ -1531,10 +1426,6 @@ preserve@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" -prettier@^1.5.3: - version "1.5.3" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.5.3.tgz#59dadc683345ec6b88f88b94ed4ae7e1da394bfe" - private@^0.1.7: version "0.1.7" resolved "https://registry.yarnpkg.com/private/-/private-0.1.7.tgz#68ce5e8a1ef0a23bb570cc28537b5332aba63ef1" @@ -1667,20 +1558,13 @@ request@^2.81.0: tunnel-agent "^0.6.0" uuid "^3.0.0" -require-from-string@^1.1.0: - version "1.2.1" - resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-1.2.1.tgz#529c9ccef27380adfec9a2f965b649bbee636418" - require-main-filename@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" -restore-cursor@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-1.0.1.tgz#34661f46886327fed2991479152252df92daa541" - dependencies: - exit-hook "^1.0.0" - onetime "^1.0.0" +require-package-name@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/require-package-name/-/require-package-name-2.0.1.tgz#c11e97276b65b8e2923f75dabf5fb2ef0c3841b9" rimraf@2, rimraf@^2.5.1, rimraf@^2.6.1: version "2.6.1" @@ -1688,12 +1572,6 @@ rimraf@2, rimraf@^2.5.1, rimraf@^2.6.1: dependencies: glob "^7.0.5" -rxjs@^5.0.0-beta.11: - version "5.4.3" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-5.4.3.tgz#0758cddee6033d68e0fd53676f0f3596ce3d483f" - dependencies: - symbol-observable "^1.0.1" - safe-buffer@^5.0.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853" @@ -1728,10 +1606,6 @@ slash@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" -slice-ansi@0.0.4: - version "0.0.4" - resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-0.0.4.tgz#edbf8903f66f7ce2f8eafd6ceed65e264c831b35" - sntp@1.x.x: version "1.0.9" resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" @@ -1762,10 +1636,6 @@ spdx-license-ids@^1.0.2: version "1.2.2" resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz#c9df7a3424594ade6bd11900d596696dc06bac57" -sprintf-js@~1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" - sshpk@^1.7.0: version "1.13.1" resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.13.1.tgz#512df6da6287144316dc4c18fe1cf1d940739be3" @@ -1780,14 +1650,6 @@ sshpk@^1.7.0: jsbn "~0.1.0" tweetnacl "~0.14.0" -staged-git-files@0.0.4: - version "0.0.4" - resolved "https://registry.yarnpkg.com/staged-git-files/-/staged-git-files-0.0.4.tgz#d797e1b551ca7a639dec0237dc6eb4bb9be17d35" - -stream-to-observable@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/stream-to-observable/-/stream-to-observable-0.1.0.tgz#45bf1d9f2d7dc09bed81f1c307c430e68b84cffe" - string-width@^1.0.1, string-width@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" @@ -1818,14 +1680,6 @@ strip-bom@^2.0.0: dependencies: is-utf8 "^0.2.0" -strip-eof@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" - -strip-indent@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-2.0.0.tgz#5ef8db295d01e6ed6cbf7aab96998d7822527b68" - strip-json-comments@~2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" @@ -1834,10 +1688,6 @@ supports-color@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" -symbol-observable@^1.0.1: - version "1.0.4" - resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.0.4.tgz#29bf615d4aa7121bdd898b22d4b3f9bc4e2aa03d" - tar-pack@^3.4.0: version "3.4.0" resolved "https://registry.yarnpkg.com/tar-pack/-/tar-pack-3.4.0.tgz#23be2d7f671a8339376cbdb0b8fe3fdebf317984" @@ -1873,6 +1723,10 @@ to-fast-properties@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" +to-fast-properties@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" + tough-cookie@~2.3.0: version "2.3.2" resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.2.tgz#f081f76e4c85720e6c37a5faced737150d84072a" @@ -1930,7 +1784,7 @@ verror@1.10.0: core-util-is "1.0.2" extsprintf "^1.2.0" -which@^1.2.10, which@^1.2.9: +which@^1.2.9: version "1.3.0" resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a" dependencies: diff --git a/packages/nivo-heatmap/stories/heatmap.stories.js b/packages/nivo-heatmap/stories/heatmap.stories.js index 2dea125bc..32cc91f72 100644 --- a/packages/nivo-heatmap/stories/heatmap.stories.js +++ b/packages/nivo-heatmap/stories/heatmap.stories.js @@ -1,6 +1,6 @@ import React from 'react' import { storiesOf } from '@storybook/react' -import { generateCountriesData } from 'nivo-generators' +import { generateCountriesData } from '@nivo/generators' import { HeatMap } from '../es' const CustomCell = ({ diff --git a/packages/nivo-heatmap/yarn.lock b/packages/nivo-heatmap/yarn.lock index 86e261eba..2e9241ddd 100644 --- a/packages/nivo-heatmap/yarn.lock +++ b/packages/nivo-heatmap/yarn.lock @@ -2,9 +2,9 @@ # yarn lockfile v1 -"@nivo/babel-preset@0.32.0-4": - version "0.32.0-4" - resolved "https://registry.yarnpkg.com/@nivo/babel-preset/-/babel-preset-0.32.0-4.tgz#533985ab979149e6c268bc55355c2cfa13027b17" +"@nivo/babel-preset@0.32.0-10": + version "0.32.0-10" + resolved "https://registry.yarnpkg.com/@nivo/babel-preset/-/babel-preset-0.32.0-10.tgz#4ac1ebef72a0670642259a5741930329b449a1ca" dependencies: babel-cli "^6.26.0" babel-jest "^20.0.3" @@ -31,18 +31,30 @@ babel-plugin-transform-object-rest-spread "^6.26.0" babel-plugin-transform-react-jsx "^6.24.1" -"@nivo/core@0.32.0-4": - version "0.32.0-4" - resolved "https://registry.yarnpkg.com/@nivo/core/-/core-0.32.0-4.tgz#7c8fcec1593c250ded632d9b65f8c3ddd17de8d5" - dependencies: - d3-color "1.0.3" - d3-format "1.2.0" - d3-hierarchy "1.1.5" - d3-interpolate "1.1.5" - d3-scale "1.0.6" - d3-scale-chromatic "1.1.1" - d3-shape "1.2.0" - react-measure "2.0.2" +"@nivo/core@0.32.0-10": + version "0.32.0-10" + resolved "https://registry.yarnpkg.com/@nivo/core/-/core-0.32.0-10.tgz#d937618db5870fbb7bb6df75aef637a35a26c70f" + dependencies: + d3-color "^1.0.3" + d3-format "^1.2.0" + d3-hierarchy "^1.1.5" + d3-interpolate "^1.1.5" + d3-scale "^1.0.6" + d3-scale-chromatic "^1.1.1" + d3-shape "^1.2.0" + react-measure "^2.0.2" + react-motion "^0.5.2" + recompose "^0.26.0" + +"@nivo/generators@0.32.0-10": + version "0.32.0-10" + resolved "https://registry.yarnpkg.com/@nivo/generators/-/generators-0.32.0-10.tgz#f5a9ec58e3242856b27289613e347288ce91d655" + dependencies: + d3-time "^1.0.7" + d3-time-format "^2.0.5" + lodash.random "^3.2.0" + lodash.range "^3.2.0" + lodash.shuffle "^4.2.0" abab@^1.0.3: version "1.0.4" @@ -916,47 +928,37 @@ d3-collection@1: version "1.0.4" resolved "https://registry.yarnpkg.com/d3-collection/-/d3-collection-1.0.4.tgz#342dfd12837c90974f33f1cc0a785aea570dcdc2" -d3-color@1, d3-color@1.0.3: +d3-color@1, d3-color@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/d3-color/-/d3-color-1.0.3.tgz#bc7643fca8e53a8347e2fbdaffa236796b58509b" -d3-format@1: +d3-format@1, d3-format@^1.2.0: version "1.2.1" resolved "https://registry.yarnpkg.com/d3-format/-/d3-format-1.2.1.tgz#4e19ecdb081a341dafaf5f555ee956bcfdbf167f" -d3-format@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/d3-format/-/d3-format-1.2.0.tgz#6b480baa886885d4651dc248a8f4ac9da16db07a" - -d3-hierarchy@1.1.5: +d3-hierarchy@^1.1.5: version "1.1.5" resolved "https://registry.yarnpkg.com/d3-hierarchy/-/d3-hierarchy-1.1.5.tgz#a1c845c42f84a206bcf1c01c01098ea4ddaa7a26" -d3-interpolate@1: +d3-interpolate@1, d3-interpolate@^1.1.5: version "1.1.6" resolved "https://registry.yarnpkg.com/d3-interpolate/-/d3-interpolate-1.1.6.tgz#2cf395ae2381804df08aa1bf766b7f97b5f68fb6" dependencies: d3-color "1" -d3-interpolate@1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/d3-interpolate/-/d3-interpolate-1.1.5.tgz#69e099ff39214716e563c9aec3ea9d1ea4b8a79f" - dependencies: - d3-color "1" - d3-path@1: version "1.0.5" resolved "https://registry.yarnpkg.com/d3-path/-/d3-path-1.0.5.tgz#241eb1849bd9e9e8021c0d0a799f8a0e8e441764" -d3-scale-chromatic@1.1.1: +d3-scale-chromatic@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/d3-scale-chromatic/-/d3-scale-chromatic-1.1.1.tgz#811406e8e09dab78a49dac4a32047d5d3edd0c44" dependencies: d3-interpolate "1" -d3-scale@1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/d3-scale/-/d3-scale-1.0.6.tgz#bce19da80d3a0cf422c9543ae3322086220b34ed" +d3-scale@^1.0.6: + version "1.0.7" + resolved "https://registry.yarnpkg.com/d3-scale/-/d3-scale-1.0.7.tgz#fa90324b3ea8a776422bd0472afab0b252a0945d" dependencies: d3-array "^1.2.0" d3-collection "1" @@ -966,19 +968,19 @@ d3-scale@1.0.6: d3-time "1" d3-time-format "2" -d3-shape@1.2.0: +d3-shape@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/d3-shape/-/d3-shape-1.2.0.tgz#45d01538f064bafd05ea3d6d2cb748fd8c41f777" dependencies: d3-path "1" -d3-time-format@2: +d3-time-format@2, d3-time-format@^2.0.5: version "2.1.1" resolved "https://registry.yarnpkg.com/d3-time-format/-/d3-time-format-2.1.1.tgz#85b7cdfbc9ffca187f14d3c456ffda268081bb31" dependencies: d3-time "1" -d3-time@1: +d3-time@1, d3-time@^1.0.7: version "1.0.8" resolved "https://registry.yarnpkg.com/d3-time/-/d3-time-1.0.8.tgz#dbd2d6007bf416fe67a76d17947b784bffea1e84" @@ -2045,6 +2047,18 @@ locate-path@^2.0.0: p-locate "^2.0.0" path-exists "^3.0.0" +lodash.random@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/lodash.random/-/lodash.random-3.2.0.tgz#96e24e763333199130d2c9e2fd57f91703cc262d" + +lodash.range@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/lodash.range/-/lodash.range-3.2.0.tgz#f461e588f66683f7eadeade513e38a69a565a15d" + +lodash.shuffle@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/lodash.shuffle/-/lodash.shuffle-4.2.0.tgz#145b5053cf875f6f5c2a33f48b6e9948c6ec7b4b" + lodash@^4.14.0, lodash@^4.17.4, lodash@^4.2.0: version "4.17.4" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" @@ -2488,7 +2502,7 @@ react-dom@^15.6.1: object-assign "^4.1.0" prop-types "^15.5.10" -react-measure@2.0.2: +react-measure@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/react-measure/-/react-measure-2.0.2.tgz#072a9a5fafc01dfbadc1fa5fb09fc351037f636c" dependencies: @@ -2565,7 +2579,7 @@ readdirp@^2.0.0: readable-stream "^2.0.2" set-immediate-shim "^1.0.1" -recompose@0.26.0: +recompose@^0.26.0: version "0.26.0" resolved "https://registry.yarnpkg.com/recompose/-/recompose-0.26.0.tgz#9babff039cb72ba5bd17366d55d7232fbdfb2d30" dependencies: diff --git a/packages/nivo-line/stories/line.stories.js b/packages/nivo-line/stories/line.stories.js index baf37ddb9..ac8ca672d 100644 --- a/packages/nivo-line/stories/line.stories.js +++ b/packages/nivo-line/stories/line.stories.js @@ -1,7 +1,7 @@ import React from 'react' import { storiesOf } from '@storybook/react' import { withKnobs, boolean, select } from '@storybook/addon-knobs' -import { generateDrinkStats } from 'nivo-generators' +import { generateDrinkStats } from '@nivo/generators' import { Line } from '../es' const data = generateDrinkStats(18) diff --git a/packages/nivo-line/yarn.lock b/packages/nivo-line/yarn.lock index 86e261eba..c46cc955e 100644 --- a/packages/nivo-line/yarn.lock +++ b/packages/nivo-line/yarn.lock @@ -2,9 +2,9 @@ # yarn lockfile v1 -"@nivo/babel-preset@0.32.0-4": - version "0.32.0-4" - resolved "https://registry.yarnpkg.com/@nivo/babel-preset/-/babel-preset-0.32.0-4.tgz#533985ab979149e6c268bc55355c2cfa13027b17" +"@nivo/babel-preset@0.32.0-10": + version "0.32.0-10" + resolved "https://registry.yarnpkg.com/@nivo/babel-preset/-/babel-preset-0.32.0-10.tgz#4ac1ebef72a0670642259a5741930329b449a1ca" dependencies: babel-cli "^6.26.0" babel-jest "^20.0.3" @@ -31,18 +31,20 @@ babel-plugin-transform-object-rest-spread "^6.26.0" babel-plugin-transform-react-jsx "^6.24.1" -"@nivo/core@0.32.0-4": - version "0.32.0-4" - resolved "https://registry.yarnpkg.com/@nivo/core/-/core-0.32.0-4.tgz#7c8fcec1593c250ded632d9b65f8c3ddd17de8d5" - dependencies: - d3-color "1.0.3" - d3-format "1.2.0" - d3-hierarchy "1.1.5" - d3-interpolate "1.1.5" - d3-scale "1.0.6" - d3-scale-chromatic "1.1.1" - d3-shape "1.2.0" - react-measure "2.0.2" +"@nivo/core@0.32.0-10": + version "0.32.0-10" + resolved "https://registry.yarnpkg.com/@nivo/core/-/core-0.32.0-10.tgz#d937618db5870fbb7bb6df75aef637a35a26c70f" + dependencies: + d3-color "^1.0.3" + d3-format "^1.2.0" + d3-hierarchy "^1.1.5" + d3-interpolate "^1.1.5" + d3-scale "^1.0.6" + d3-scale-chromatic "^1.1.1" + d3-shape "^1.2.0" + react-measure "^2.0.2" + react-motion "^0.5.2" + recompose "^0.26.0" abab@^1.0.3: version "1.0.4" @@ -916,47 +918,37 @@ d3-collection@1: version "1.0.4" resolved "https://registry.yarnpkg.com/d3-collection/-/d3-collection-1.0.4.tgz#342dfd12837c90974f33f1cc0a785aea570dcdc2" -d3-color@1, d3-color@1.0.3: +d3-color@1, d3-color@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/d3-color/-/d3-color-1.0.3.tgz#bc7643fca8e53a8347e2fbdaffa236796b58509b" -d3-format@1: +d3-format@1, d3-format@^1.2.0: version "1.2.1" resolved "https://registry.yarnpkg.com/d3-format/-/d3-format-1.2.1.tgz#4e19ecdb081a341dafaf5f555ee956bcfdbf167f" -d3-format@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/d3-format/-/d3-format-1.2.0.tgz#6b480baa886885d4651dc248a8f4ac9da16db07a" - -d3-hierarchy@1.1.5: +d3-hierarchy@^1.1.5: version "1.1.5" resolved "https://registry.yarnpkg.com/d3-hierarchy/-/d3-hierarchy-1.1.5.tgz#a1c845c42f84a206bcf1c01c01098ea4ddaa7a26" -d3-interpolate@1: +d3-interpolate@1, d3-interpolate@^1.1.5: version "1.1.6" resolved "https://registry.yarnpkg.com/d3-interpolate/-/d3-interpolate-1.1.6.tgz#2cf395ae2381804df08aa1bf766b7f97b5f68fb6" dependencies: d3-color "1" -d3-interpolate@1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/d3-interpolate/-/d3-interpolate-1.1.5.tgz#69e099ff39214716e563c9aec3ea9d1ea4b8a79f" - dependencies: - d3-color "1" - d3-path@1: version "1.0.5" resolved "https://registry.yarnpkg.com/d3-path/-/d3-path-1.0.5.tgz#241eb1849bd9e9e8021c0d0a799f8a0e8e441764" -d3-scale-chromatic@1.1.1: +d3-scale-chromatic@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/d3-scale-chromatic/-/d3-scale-chromatic-1.1.1.tgz#811406e8e09dab78a49dac4a32047d5d3edd0c44" dependencies: d3-interpolate "1" -d3-scale@1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/d3-scale/-/d3-scale-1.0.6.tgz#bce19da80d3a0cf422c9543ae3322086220b34ed" +d3-scale@^1.0.6: + version "1.0.7" + resolved "https://registry.yarnpkg.com/d3-scale/-/d3-scale-1.0.7.tgz#fa90324b3ea8a776422bd0472afab0b252a0945d" dependencies: d3-array "^1.2.0" d3-collection "1" @@ -966,19 +958,19 @@ d3-scale@1.0.6: d3-time "1" d3-time-format "2" -d3-shape@1.2.0: +d3-shape@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/d3-shape/-/d3-shape-1.2.0.tgz#45d01538f064bafd05ea3d6d2cb748fd8c41f777" dependencies: d3-path "1" -d3-time-format@2: +d3-time-format@2, d3-time-format@^2.0.5: version "2.1.1" resolved "https://registry.yarnpkg.com/d3-time-format/-/d3-time-format-2.1.1.tgz#85b7cdfbc9ffca187f14d3c456ffda268081bb31" dependencies: d3-time "1" -d3-time@1: +d3-time@1, d3-time@^1.0.7: version "1.0.8" resolved "https://registry.yarnpkg.com/d3-time/-/d3-time-1.0.8.tgz#dbd2d6007bf416fe67a76d17947b784bffea1e84" @@ -2045,6 +2037,18 @@ locate-path@^2.0.0: p-locate "^2.0.0" path-exists "^3.0.0" +lodash.random@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/lodash.random/-/lodash.random-3.2.0.tgz#96e24e763333199130d2c9e2fd57f91703cc262d" + +lodash.range@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/lodash.range/-/lodash.range-3.2.0.tgz#f461e588f66683f7eadeade513e38a69a565a15d" + +lodash.shuffle@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/lodash.shuffle/-/lodash.shuffle-4.2.0.tgz#145b5053cf875f6f5c2a33f48b6e9948c6ec7b4b" + lodash@^4.14.0, lodash@^4.17.4, lodash@^4.2.0: version "4.17.4" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" @@ -2150,6 +2154,16 @@ natural-compare@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" +nivo-generators@^0.9.3: + version "0.9.3" + resolved "https://registry.yarnpkg.com/nivo-generators/-/nivo-generators-0.9.3.tgz#6fb1f3452d5fa9a25ac812d5915f6ff3735d5ac7" + dependencies: + d3-time "^1.0.7" + d3-time-format "^2.0.5" + lodash.random "^3.2.0" + lodash.range "^3.2.0" + lodash.shuffle "^4.2.0" + node-fetch@^1.0.1: version "1.7.3" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef" @@ -2488,7 +2502,7 @@ react-dom@^15.6.1: object-assign "^4.1.0" prop-types "^15.5.10" -react-measure@2.0.2: +react-measure@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/react-measure/-/react-measure-2.0.2.tgz#072a9a5fafc01dfbadc1fa5fb09fc351037f636c" dependencies: @@ -2565,7 +2579,7 @@ readdirp@^2.0.0: readable-stream "^2.0.2" set-immediate-shim "^1.0.1" -recompose@0.26.0: +recompose@^0.26.0: version "0.26.0" resolved "https://registry.yarnpkg.com/recompose/-/recompose-0.26.0.tgz#9babff039cb72ba5bd17366d55d7232fbdfb2d30" dependencies: diff --git a/packages/nivo-pie/stories/pie.stories.js b/packages/nivo-pie/stories/pie.stories.js index 599d85ce4..798fa8214 100644 --- a/packages/nivo-pie/stories/pie.stories.js +++ b/packages/nivo-pie/stories/pie.stories.js @@ -1,7 +1,7 @@ import React from 'react' import { storiesOf } from '@storybook/react' import { withKnobs, select } from '@storybook/addon-knobs' -import { generateProgrammingLanguageStats } from 'nivo-generators' +import { generateProgrammingLanguageStats } from '@nivo/generators' import { Pie } from '../es' const commonProperties = { diff --git a/packages/nivo-pie/yarn.lock b/packages/nivo-pie/yarn.lock index 86e261eba..c46cc955e 100644 --- a/packages/nivo-pie/yarn.lock +++ b/packages/nivo-pie/yarn.lock @@ -2,9 +2,9 @@ # yarn lockfile v1 -"@nivo/babel-preset@0.32.0-4": - version "0.32.0-4" - resolved "https://registry.yarnpkg.com/@nivo/babel-preset/-/babel-preset-0.32.0-4.tgz#533985ab979149e6c268bc55355c2cfa13027b17" +"@nivo/babel-preset@0.32.0-10": + version "0.32.0-10" + resolved "https://registry.yarnpkg.com/@nivo/babel-preset/-/babel-preset-0.32.0-10.tgz#4ac1ebef72a0670642259a5741930329b449a1ca" dependencies: babel-cli "^6.26.0" babel-jest "^20.0.3" @@ -31,18 +31,20 @@ babel-plugin-transform-object-rest-spread "^6.26.0" babel-plugin-transform-react-jsx "^6.24.1" -"@nivo/core@0.32.0-4": - version "0.32.0-4" - resolved "https://registry.yarnpkg.com/@nivo/core/-/core-0.32.0-4.tgz#7c8fcec1593c250ded632d9b65f8c3ddd17de8d5" - dependencies: - d3-color "1.0.3" - d3-format "1.2.0" - d3-hierarchy "1.1.5" - d3-interpolate "1.1.5" - d3-scale "1.0.6" - d3-scale-chromatic "1.1.1" - d3-shape "1.2.0" - react-measure "2.0.2" +"@nivo/core@0.32.0-10": + version "0.32.0-10" + resolved "https://registry.yarnpkg.com/@nivo/core/-/core-0.32.0-10.tgz#d937618db5870fbb7bb6df75aef637a35a26c70f" + dependencies: + d3-color "^1.0.3" + d3-format "^1.2.0" + d3-hierarchy "^1.1.5" + d3-interpolate "^1.1.5" + d3-scale "^1.0.6" + d3-scale-chromatic "^1.1.1" + d3-shape "^1.2.0" + react-measure "^2.0.2" + react-motion "^0.5.2" + recompose "^0.26.0" abab@^1.0.3: version "1.0.4" @@ -916,47 +918,37 @@ d3-collection@1: version "1.0.4" resolved "https://registry.yarnpkg.com/d3-collection/-/d3-collection-1.0.4.tgz#342dfd12837c90974f33f1cc0a785aea570dcdc2" -d3-color@1, d3-color@1.0.3: +d3-color@1, d3-color@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/d3-color/-/d3-color-1.0.3.tgz#bc7643fca8e53a8347e2fbdaffa236796b58509b" -d3-format@1: +d3-format@1, d3-format@^1.2.0: version "1.2.1" resolved "https://registry.yarnpkg.com/d3-format/-/d3-format-1.2.1.tgz#4e19ecdb081a341dafaf5f555ee956bcfdbf167f" -d3-format@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/d3-format/-/d3-format-1.2.0.tgz#6b480baa886885d4651dc248a8f4ac9da16db07a" - -d3-hierarchy@1.1.5: +d3-hierarchy@^1.1.5: version "1.1.5" resolved "https://registry.yarnpkg.com/d3-hierarchy/-/d3-hierarchy-1.1.5.tgz#a1c845c42f84a206bcf1c01c01098ea4ddaa7a26" -d3-interpolate@1: +d3-interpolate@1, d3-interpolate@^1.1.5: version "1.1.6" resolved "https://registry.yarnpkg.com/d3-interpolate/-/d3-interpolate-1.1.6.tgz#2cf395ae2381804df08aa1bf766b7f97b5f68fb6" dependencies: d3-color "1" -d3-interpolate@1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/d3-interpolate/-/d3-interpolate-1.1.5.tgz#69e099ff39214716e563c9aec3ea9d1ea4b8a79f" - dependencies: - d3-color "1" - d3-path@1: version "1.0.5" resolved "https://registry.yarnpkg.com/d3-path/-/d3-path-1.0.5.tgz#241eb1849bd9e9e8021c0d0a799f8a0e8e441764" -d3-scale-chromatic@1.1.1: +d3-scale-chromatic@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/d3-scale-chromatic/-/d3-scale-chromatic-1.1.1.tgz#811406e8e09dab78a49dac4a32047d5d3edd0c44" dependencies: d3-interpolate "1" -d3-scale@1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/d3-scale/-/d3-scale-1.0.6.tgz#bce19da80d3a0cf422c9543ae3322086220b34ed" +d3-scale@^1.0.6: + version "1.0.7" + resolved "https://registry.yarnpkg.com/d3-scale/-/d3-scale-1.0.7.tgz#fa90324b3ea8a776422bd0472afab0b252a0945d" dependencies: d3-array "^1.2.0" d3-collection "1" @@ -966,19 +958,19 @@ d3-scale@1.0.6: d3-time "1" d3-time-format "2" -d3-shape@1.2.0: +d3-shape@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/d3-shape/-/d3-shape-1.2.0.tgz#45d01538f064bafd05ea3d6d2cb748fd8c41f777" dependencies: d3-path "1" -d3-time-format@2: +d3-time-format@2, d3-time-format@^2.0.5: version "2.1.1" resolved "https://registry.yarnpkg.com/d3-time-format/-/d3-time-format-2.1.1.tgz#85b7cdfbc9ffca187f14d3c456ffda268081bb31" dependencies: d3-time "1" -d3-time@1: +d3-time@1, d3-time@^1.0.7: version "1.0.8" resolved "https://registry.yarnpkg.com/d3-time/-/d3-time-1.0.8.tgz#dbd2d6007bf416fe67a76d17947b784bffea1e84" @@ -2045,6 +2037,18 @@ locate-path@^2.0.0: p-locate "^2.0.0" path-exists "^3.0.0" +lodash.random@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/lodash.random/-/lodash.random-3.2.0.tgz#96e24e763333199130d2c9e2fd57f91703cc262d" + +lodash.range@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/lodash.range/-/lodash.range-3.2.0.tgz#f461e588f66683f7eadeade513e38a69a565a15d" + +lodash.shuffle@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/lodash.shuffle/-/lodash.shuffle-4.2.0.tgz#145b5053cf875f6f5c2a33f48b6e9948c6ec7b4b" + lodash@^4.14.0, lodash@^4.17.4, lodash@^4.2.0: version "4.17.4" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" @@ -2150,6 +2154,16 @@ natural-compare@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" +nivo-generators@^0.9.3: + version "0.9.3" + resolved "https://registry.yarnpkg.com/nivo-generators/-/nivo-generators-0.9.3.tgz#6fb1f3452d5fa9a25ac812d5915f6ff3735d5ac7" + dependencies: + d3-time "^1.0.7" + d3-time-format "^2.0.5" + lodash.random "^3.2.0" + lodash.range "^3.2.0" + lodash.shuffle "^4.2.0" + node-fetch@^1.0.1: version "1.7.3" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef" @@ -2488,7 +2502,7 @@ react-dom@^15.6.1: object-assign "^4.1.0" prop-types "^15.5.10" -react-measure@2.0.2: +react-measure@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/react-measure/-/react-measure-2.0.2.tgz#072a9a5fafc01dfbadc1fa5fb09fc351037f636c" dependencies: @@ -2565,7 +2579,7 @@ readdirp@^2.0.0: readable-stream "^2.0.2" set-immediate-shim "^1.0.1" -recompose@0.26.0: +recompose@^0.26.0: version "0.26.0" resolved "https://registry.yarnpkg.com/recompose/-/recompose-0.26.0.tgz#9babff039cb72ba5bd17366d55d7232fbdfb2d30" dependencies: diff --git a/packages/nivo-radar/stories/radar.stories.js b/packages/nivo-radar/stories/radar.stories.js index 55daabbab..6f140f3a8 100644 --- a/packages/nivo-radar/stories/radar.stories.js +++ b/packages/nivo-radar/stories/radar.stories.js @@ -1,7 +1,7 @@ import React from 'react' import { storiesOf } from '@storybook/react' import { withKnobs, select } from '@storybook/addon-knobs' -import { generateWinesTastes } from 'nivo-generators' +import { generateWinesTastes } from '@nivo/generators' import { Radar } from '../es' const commonProperties = { diff --git a/packages/nivo-radar/yarn.lock b/packages/nivo-radar/yarn.lock index 86e261eba..c46cc955e 100644 --- a/packages/nivo-radar/yarn.lock +++ b/packages/nivo-radar/yarn.lock @@ -2,9 +2,9 @@ # yarn lockfile v1 -"@nivo/babel-preset@0.32.0-4": - version "0.32.0-4" - resolved "https://registry.yarnpkg.com/@nivo/babel-preset/-/babel-preset-0.32.0-4.tgz#533985ab979149e6c268bc55355c2cfa13027b17" +"@nivo/babel-preset@0.32.0-10": + version "0.32.0-10" + resolved "https://registry.yarnpkg.com/@nivo/babel-preset/-/babel-preset-0.32.0-10.tgz#4ac1ebef72a0670642259a5741930329b449a1ca" dependencies: babel-cli "^6.26.0" babel-jest "^20.0.3" @@ -31,18 +31,20 @@ babel-plugin-transform-object-rest-spread "^6.26.0" babel-plugin-transform-react-jsx "^6.24.1" -"@nivo/core@0.32.0-4": - version "0.32.0-4" - resolved "https://registry.yarnpkg.com/@nivo/core/-/core-0.32.0-4.tgz#7c8fcec1593c250ded632d9b65f8c3ddd17de8d5" - dependencies: - d3-color "1.0.3" - d3-format "1.2.0" - d3-hierarchy "1.1.5" - d3-interpolate "1.1.5" - d3-scale "1.0.6" - d3-scale-chromatic "1.1.1" - d3-shape "1.2.0" - react-measure "2.0.2" +"@nivo/core@0.32.0-10": + version "0.32.0-10" + resolved "https://registry.yarnpkg.com/@nivo/core/-/core-0.32.0-10.tgz#d937618db5870fbb7bb6df75aef637a35a26c70f" + dependencies: + d3-color "^1.0.3" + d3-format "^1.2.0" + d3-hierarchy "^1.1.5" + d3-interpolate "^1.1.5" + d3-scale "^1.0.6" + d3-scale-chromatic "^1.1.1" + d3-shape "^1.2.0" + react-measure "^2.0.2" + react-motion "^0.5.2" + recompose "^0.26.0" abab@^1.0.3: version "1.0.4" @@ -916,47 +918,37 @@ d3-collection@1: version "1.0.4" resolved "https://registry.yarnpkg.com/d3-collection/-/d3-collection-1.0.4.tgz#342dfd12837c90974f33f1cc0a785aea570dcdc2" -d3-color@1, d3-color@1.0.3: +d3-color@1, d3-color@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/d3-color/-/d3-color-1.0.3.tgz#bc7643fca8e53a8347e2fbdaffa236796b58509b" -d3-format@1: +d3-format@1, d3-format@^1.2.0: version "1.2.1" resolved "https://registry.yarnpkg.com/d3-format/-/d3-format-1.2.1.tgz#4e19ecdb081a341dafaf5f555ee956bcfdbf167f" -d3-format@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/d3-format/-/d3-format-1.2.0.tgz#6b480baa886885d4651dc248a8f4ac9da16db07a" - -d3-hierarchy@1.1.5: +d3-hierarchy@^1.1.5: version "1.1.5" resolved "https://registry.yarnpkg.com/d3-hierarchy/-/d3-hierarchy-1.1.5.tgz#a1c845c42f84a206bcf1c01c01098ea4ddaa7a26" -d3-interpolate@1: +d3-interpolate@1, d3-interpolate@^1.1.5: version "1.1.6" resolved "https://registry.yarnpkg.com/d3-interpolate/-/d3-interpolate-1.1.6.tgz#2cf395ae2381804df08aa1bf766b7f97b5f68fb6" dependencies: d3-color "1" -d3-interpolate@1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/d3-interpolate/-/d3-interpolate-1.1.5.tgz#69e099ff39214716e563c9aec3ea9d1ea4b8a79f" - dependencies: - d3-color "1" - d3-path@1: version "1.0.5" resolved "https://registry.yarnpkg.com/d3-path/-/d3-path-1.0.5.tgz#241eb1849bd9e9e8021c0d0a799f8a0e8e441764" -d3-scale-chromatic@1.1.1: +d3-scale-chromatic@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/d3-scale-chromatic/-/d3-scale-chromatic-1.1.1.tgz#811406e8e09dab78a49dac4a32047d5d3edd0c44" dependencies: d3-interpolate "1" -d3-scale@1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/d3-scale/-/d3-scale-1.0.6.tgz#bce19da80d3a0cf422c9543ae3322086220b34ed" +d3-scale@^1.0.6: + version "1.0.7" + resolved "https://registry.yarnpkg.com/d3-scale/-/d3-scale-1.0.7.tgz#fa90324b3ea8a776422bd0472afab0b252a0945d" dependencies: d3-array "^1.2.0" d3-collection "1" @@ -966,19 +958,19 @@ d3-scale@1.0.6: d3-time "1" d3-time-format "2" -d3-shape@1.2.0: +d3-shape@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/d3-shape/-/d3-shape-1.2.0.tgz#45d01538f064bafd05ea3d6d2cb748fd8c41f777" dependencies: d3-path "1" -d3-time-format@2: +d3-time-format@2, d3-time-format@^2.0.5: version "2.1.1" resolved "https://registry.yarnpkg.com/d3-time-format/-/d3-time-format-2.1.1.tgz#85b7cdfbc9ffca187f14d3c456ffda268081bb31" dependencies: d3-time "1" -d3-time@1: +d3-time@1, d3-time@^1.0.7: version "1.0.8" resolved "https://registry.yarnpkg.com/d3-time/-/d3-time-1.0.8.tgz#dbd2d6007bf416fe67a76d17947b784bffea1e84" @@ -2045,6 +2037,18 @@ locate-path@^2.0.0: p-locate "^2.0.0" path-exists "^3.0.0" +lodash.random@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/lodash.random/-/lodash.random-3.2.0.tgz#96e24e763333199130d2c9e2fd57f91703cc262d" + +lodash.range@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/lodash.range/-/lodash.range-3.2.0.tgz#f461e588f66683f7eadeade513e38a69a565a15d" + +lodash.shuffle@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/lodash.shuffle/-/lodash.shuffle-4.2.0.tgz#145b5053cf875f6f5c2a33f48b6e9948c6ec7b4b" + lodash@^4.14.0, lodash@^4.17.4, lodash@^4.2.0: version "4.17.4" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" @@ -2150,6 +2154,16 @@ natural-compare@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" +nivo-generators@^0.9.3: + version "0.9.3" + resolved "https://registry.yarnpkg.com/nivo-generators/-/nivo-generators-0.9.3.tgz#6fb1f3452d5fa9a25ac812d5915f6ff3735d5ac7" + dependencies: + d3-time "^1.0.7" + d3-time-format "^2.0.5" + lodash.random "^3.2.0" + lodash.range "^3.2.0" + lodash.shuffle "^4.2.0" + node-fetch@^1.0.1: version "1.7.3" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef" @@ -2488,7 +2502,7 @@ react-dom@^15.6.1: object-assign "^4.1.0" prop-types "^15.5.10" -react-measure@2.0.2: +react-measure@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/react-measure/-/react-measure-2.0.2.tgz#072a9a5fafc01dfbadc1fa5fb09fc351037f636c" dependencies: @@ -2565,7 +2579,7 @@ readdirp@^2.0.0: readable-stream "^2.0.2" set-immediate-shim "^1.0.1" -recompose@0.26.0: +recompose@^0.26.0: version "0.26.0" resolved "https://registry.yarnpkg.com/recompose/-/recompose-0.26.0.tgz#9babff039cb72ba5bd17366d55d7232fbdfb2d30" dependencies: diff --git a/packages/nivo-sankey/stories/sankey.stories.js b/packages/nivo-sankey/stories/sankey.stories.js index 7c5d059d3..b2949934b 100644 --- a/packages/nivo-sankey/stories/sankey.stories.js +++ b/packages/nivo-sankey/stories/sankey.stories.js @@ -1,6 +1,6 @@ import React from 'react' import { storiesOf } from '@storybook/react' -import { generateSankeyData } from 'nivo-generators' +import { generateSankeyData } from '@nivo/generators' import { Sankey } from '../es' const commonProperties = { diff --git a/packages/nivo-sankey/yarn.lock b/packages/nivo-sankey/yarn.lock index e258787f6..f306b35e2 100644 --- a/packages/nivo-sankey/yarn.lock +++ b/packages/nivo-sankey/yarn.lock @@ -2,9 +2,9 @@ # yarn lockfile v1 -"@nivo/babel-preset@0.32.0-4": - version "0.32.0-4" - resolved "https://registry.yarnpkg.com/@nivo/babel-preset/-/babel-preset-0.32.0-4.tgz#533985ab979149e6c268bc55355c2cfa13027b17" +"@nivo/babel-preset@0.32.0-10": + version "0.32.0-10" + resolved "https://registry.yarnpkg.com/@nivo/babel-preset/-/babel-preset-0.32.0-10.tgz#4ac1ebef72a0670642259a5741930329b449a1ca" dependencies: babel-cli "^6.26.0" babel-jest "^20.0.3" @@ -31,18 +31,20 @@ babel-plugin-transform-object-rest-spread "^6.26.0" babel-plugin-transform-react-jsx "^6.24.1" -"@nivo/core@0.32.0-4": - version "0.32.0-4" - resolved "https://registry.yarnpkg.com/@nivo/core/-/core-0.32.0-4.tgz#7c8fcec1593c250ded632d9b65f8c3ddd17de8d5" +"@nivo/core@0.32.0-10": + version "0.32.0-10" + resolved "https://registry.yarnpkg.com/@nivo/core/-/core-0.32.0-10.tgz#d937618db5870fbb7bb6df75aef637a35a26c70f" dependencies: - d3-color "1.0.3" - d3-format "1.2.0" - d3-hierarchy "1.1.5" - d3-interpolate "1.1.5" - d3-scale "1.0.6" - d3-scale-chromatic "1.1.1" - d3-shape "1.2.0" - react-measure "2.0.2" + d3-color "^1.0.3" + d3-format "^1.2.0" + d3-hierarchy "^1.1.5" + d3-interpolate "^1.1.5" + d3-scale "^1.0.6" + d3-scale-chromatic "^1.1.1" + d3-shape "^1.2.0" + react-measure "^2.0.2" + react-motion "^0.5.2" + recompose "^0.26.0" abab@^1.0.3: version "1.0.4" @@ -916,39 +918,29 @@ d3-collection@1: version "1.0.4" resolved "https://registry.yarnpkg.com/d3-collection/-/d3-collection-1.0.4.tgz#342dfd12837c90974f33f1cc0a785aea570dcdc2" -d3-color@1, d3-color@1.0.3: +d3-color@1, d3-color@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/d3-color/-/d3-color-1.0.3.tgz#bc7643fca8e53a8347e2fbdaffa236796b58509b" -d3-format@1: +d3-format@1, d3-format@^1.2.0: version "1.2.1" resolved "https://registry.yarnpkg.com/d3-format/-/d3-format-1.2.1.tgz#4e19ecdb081a341dafaf5f555ee956bcfdbf167f" -d3-format@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/d3-format/-/d3-format-1.2.0.tgz#6b480baa886885d4651dc248a8f4ac9da16db07a" - -d3-hierarchy@1.1.5: +d3-hierarchy@^1.1.5: version "1.1.5" resolved "https://registry.yarnpkg.com/d3-hierarchy/-/d3-hierarchy-1.1.5.tgz#a1c845c42f84a206bcf1c01c01098ea4ddaa7a26" -d3-interpolate@1: +d3-interpolate@1, d3-interpolate@^1.1.5: version "1.1.6" resolved "https://registry.yarnpkg.com/d3-interpolate/-/d3-interpolate-1.1.6.tgz#2cf395ae2381804df08aa1bf766b7f97b5f68fb6" dependencies: d3-color "1" -d3-interpolate@1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/d3-interpolate/-/d3-interpolate-1.1.5.tgz#69e099ff39214716e563c9aec3ea9d1ea4b8a79f" - dependencies: - d3-color "1" - d3-path@1: version "1.0.5" resolved "https://registry.yarnpkg.com/d3-path/-/d3-path-1.0.5.tgz#241eb1849bd9e9e8021c0d0a799f8a0e8e441764" -d3-sankey@0.7.1: +d3-sankey@^0.7.1: version "0.7.1" resolved "https://registry.yarnpkg.com/d3-sankey/-/d3-sankey-0.7.1.tgz#d229832268fc69a7fec84803e96c2256a614c521" dependencies: @@ -956,15 +948,15 @@ d3-sankey@0.7.1: d3-collection "1" d3-shape "^1.2.0" -d3-scale-chromatic@1.1.1: +d3-scale-chromatic@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/d3-scale-chromatic/-/d3-scale-chromatic-1.1.1.tgz#811406e8e09dab78a49dac4a32047d5d3edd0c44" dependencies: d3-interpolate "1" -d3-scale@1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/d3-scale/-/d3-scale-1.0.6.tgz#bce19da80d3a0cf422c9543ae3322086220b34ed" +d3-scale@^1.0.6: + version "1.0.7" + resolved "https://registry.yarnpkg.com/d3-scale/-/d3-scale-1.0.7.tgz#fa90324b3ea8a776422bd0472afab0b252a0945d" dependencies: d3-array "^1.2.0" d3-collection "1" @@ -974,19 +966,19 @@ d3-scale@1.0.6: d3-time "1" d3-time-format "2" -d3-shape@1.2.0, d3-shape@^1.2.0: +d3-shape@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/d3-shape/-/d3-shape-1.2.0.tgz#45d01538f064bafd05ea3d6d2cb748fd8c41f777" dependencies: d3-path "1" -d3-time-format@2: +d3-time-format@2, d3-time-format@^2.0.5: version "2.1.1" resolved "https://registry.yarnpkg.com/d3-time-format/-/d3-time-format-2.1.1.tgz#85b7cdfbc9ffca187f14d3c456ffda268081bb31" dependencies: d3-time "1" -d3-time@1: +d3-time@1, d3-time@^1.0.7: version "1.0.8" resolved "https://registry.yarnpkg.com/d3-time/-/d3-time-1.0.8.tgz#dbd2d6007bf416fe67a76d17947b784bffea1e84" @@ -2053,6 +2045,18 @@ locate-path@^2.0.0: p-locate "^2.0.0" path-exists "^3.0.0" +lodash.random@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/lodash.random/-/lodash.random-3.2.0.tgz#96e24e763333199130d2c9e2fd57f91703cc262d" + +lodash.range@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/lodash.range/-/lodash.range-3.2.0.tgz#f461e588f66683f7eadeade513e38a69a565a15d" + +lodash.shuffle@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/lodash.shuffle/-/lodash.shuffle-4.2.0.tgz#145b5053cf875f6f5c2a33f48b6e9948c6ec7b4b" + lodash@^4.14.0, lodash@^4.17.4, lodash@^4.2.0: version "4.17.4" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" @@ -2158,6 +2162,16 @@ natural-compare@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" +nivo-generators@^0.9.3: + version "0.9.3" + resolved "https://registry.yarnpkg.com/nivo-generators/-/nivo-generators-0.9.3.tgz#6fb1f3452d5fa9a25ac812d5915f6ff3735d5ac7" + dependencies: + d3-time "^1.0.7" + d3-time-format "^2.0.5" + lodash.random "^3.2.0" + lodash.range "^3.2.0" + lodash.shuffle "^4.2.0" + node-fetch@^1.0.1: version "1.7.3" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef" @@ -2496,7 +2510,7 @@ react-dom@^15.6.1: object-assign "^4.1.0" prop-types "^15.5.10" -react-measure@2.0.2: +react-measure@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/react-measure/-/react-measure-2.0.2.tgz#072a9a5fafc01dfbadc1fa5fb09fc351037f636c" dependencies: @@ -2573,7 +2587,7 @@ readdirp@^2.0.0: readable-stream "^2.0.2" set-immediate-shim "^1.0.1" -recompose@0.26.0: +recompose@^0.26.0: version "0.26.0" resolved "https://registry.yarnpkg.com/recompose/-/recompose-0.26.0.tgz#9babff039cb72ba5bd17366d55d7232fbdfb2d30" dependencies: diff --git a/packages/nivo-sunburst/stories/sunburst.stories.js b/packages/nivo-sunburst/stories/sunburst.stories.js index 6d804f3dd..943d57e18 100644 --- a/packages/nivo-sunburst/stories/sunburst.stories.js +++ b/packages/nivo-sunburst/stories/sunburst.stories.js @@ -1,8 +1,8 @@ import React from 'react' import { storiesOf } from '@storybook/react' import { withKnobs, boolean, select } from '@storybook/addon-knobs' +import { generateLibTree } from '@nivo/generators' import { Sunburst } from '../es' -import { generateLibTree } from 'nivo-generators' const commonProperties = { width: 600, diff --git a/packages/nivo-sunburst/yarn.lock b/packages/nivo-sunburst/yarn.lock index 86e261eba..c46cc955e 100644 --- a/packages/nivo-sunburst/yarn.lock +++ b/packages/nivo-sunburst/yarn.lock @@ -2,9 +2,9 @@ # yarn lockfile v1 -"@nivo/babel-preset@0.32.0-4": - version "0.32.0-4" - resolved "https://registry.yarnpkg.com/@nivo/babel-preset/-/babel-preset-0.32.0-4.tgz#533985ab979149e6c268bc55355c2cfa13027b17" +"@nivo/babel-preset@0.32.0-10": + version "0.32.0-10" + resolved "https://registry.yarnpkg.com/@nivo/babel-preset/-/babel-preset-0.32.0-10.tgz#4ac1ebef72a0670642259a5741930329b449a1ca" dependencies: babel-cli "^6.26.0" babel-jest "^20.0.3" @@ -31,18 +31,20 @@ babel-plugin-transform-object-rest-spread "^6.26.0" babel-plugin-transform-react-jsx "^6.24.1" -"@nivo/core@0.32.0-4": - version "0.32.0-4" - resolved "https://registry.yarnpkg.com/@nivo/core/-/core-0.32.0-4.tgz#7c8fcec1593c250ded632d9b65f8c3ddd17de8d5" - dependencies: - d3-color "1.0.3" - d3-format "1.2.0" - d3-hierarchy "1.1.5" - d3-interpolate "1.1.5" - d3-scale "1.0.6" - d3-scale-chromatic "1.1.1" - d3-shape "1.2.0" - react-measure "2.0.2" +"@nivo/core@0.32.0-10": + version "0.32.0-10" + resolved "https://registry.yarnpkg.com/@nivo/core/-/core-0.32.0-10.tgz#d937618db5870fbb7bb6df75aef637a35a26c70f" + dependencies: + d3-color "^1.0.3" + d3-format "^1.2.0" + d3-hierarchy "^1.1.5" + d3-interpolate "^1.1.5" + d3-scale "^1.0.6" + d3-scale-chromatic "^1.1.1" + d3-shape "^1.2.0" + react-measure "^2.0.2" + react-motion "^0.5.2" + recompose "^0.26.0" abab@^1.0.3: version "1.0.4" @@ -916,47 +918,37 @@ d3-collection@1: version "1.0.4" resolved "https://registry.yarnpkg.com/d3-collection/-/d3-collection-1.0.4.tgz#342dfd12837c90974f33f1cc0a785aea570dcdc2" -d3-color@1, d3-color@1.0.3: +d3-color@1, d3-color@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/d3-color/-/d3-color-1.0.3.tgz#bc7643fca8e53a8347e2fbdaffa236796b58509b" -d3-format@1: +d3-format@1, d3-format@^1.2.0: version "1.2.1" resolved "https://registry.yarnpkg.com/d3-format/-/d3-format-1.2.1.tgz#4e19ecdb081a341dafaf5f555ee956bcfdbf167f" -d3-format@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/d3-format/-/d3-format-1.2.0.tgz#6b480baa886885d4651dc248a8f4ac9da16db07a" - -d3-hierarchy@1.1.5: +d3-hierarchy@^1.1.5: version "1.1.5" resolved "https://registry.yarnpkg.com/d3-hierarchy/-/d3-hierarchy-1.1.5.tgz#a1c845c42f84a206bcf1c01c01098ea4ddaa7a26" -d3-interpolate@1: +d3-interpolate@1, d3-interpolate@^1.1.5: version "1.1.6" resolved "https://registry.yarnpkg.com/d3-interpolate/-/d3-interpolate-1.1.6.tgz#2cf395ae2381804df08aa1bf766b7f97b5f68fb6" dependencies: d3-color "1" -d3-interpolate@1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/d3-interpolate/-/d3-interpolate-1.1.5.tgz#69e099ff39214716e563c9aec3ea9d1ea4b8a79f" - dependencies: - d3-color "1" - d3-path@1: version "1.0.5" resolved "https://registry.yarnpkg.com/d3-path/-/d3-path-1.0.5.tgz#241eb1849bd9e9e8021c0d0a799f8a0e8e441764" -d3-scale-chromatic@1.1.1: +d3-scale-chromatic@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/d3-scale-chromatic/-/d3-scale-chromatic-1.1.1.tgz#811406e8e09dab78a49dac4a32047d5d3edd0c44" dependencies: d3-interpolate "1" -d3-scale@1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/d3-scale/-/d3-scale-1.0.6.tgz#bce19da80d3a0cf422c9543ae3322086220b34ed" +d3-scale@^1.0.6: + version "1.0.7" + resolved "https://registry.yarnpkg.com/d3-scale/-/d3-scale-1.0.7.tgz#fa90324b3ea8a776422bd0472afab0b252a0945d" dependencies: d3-array "^1.2.0" d3-collection "1" @@ -966,19 +958,19 @@ d3-scale@1.0.6: d3-time "1" d3-time-format "2" -d3-shape@1.2.0: +d3-shape@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/d3-shape/-/d3-shape-1.2.0.tgz#45d01538f064bafd05ea3d6d2cb748fd8c41f777" dependencies: d3-path "1" -d3-time-format@2: +d3-time-format@2, d3-time-format@^2.0.5: version "2.1.1" resolved "https://registry.yarnpkg.com/d3-time-format/-/d3-time-format-2.1.1.tgz#85b7cdfbc9ffca187f14d3c456ffda268081bb31" dependencies: d3-time "1" -d3-time@1: +d3-time@1, d3-time@^1.0.7: version "1.0.8" resolved "https://registry.yarnpkg.com/d3-time/-/d3-time-1.0.8.tgz#dbd2d6007bf416fe67a76d17947b784bffea1e84" @@ -2045,6 +2037,18 @@ locate-path@^2.0.0: p-locate "^2.0.0" path-exists "^3.0.0" +lodash.random@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/lodash.random/-/lodash.random-3.2.0.tgz#96e24e763333199130d2c9e2fd57f91703cc262d" + +lodash.range@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/lodash.range/-/lodash.range-3.2.0.tgz#f461e588f66683f7eadeade513e38a69a565a15d" + +lodash.shuffle@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/lodash.shuffle/-/lodash.shuffle-4.2.0.tgz#145b5053cf875f6f5c2a33f48b6e9948c6ec7b4b" + lodash@^4.14.0, lodash@^4.17.4, lodash@^4.2.0: version "4.17.4" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" @@ -2150,6 +2154,16 @@ natural-compare@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" +nivo-generators@^0.9.3: + version "0.9.3" + resolved "https://registry.yarnpkg.com/nivo-generators/-/nivo-generators-0.9.3.tgz#6fb1f3452d5fa9a25ac812d5915f6ff3735d5ac7" + dependencies: + d3-time "^1.0.7" + d3-time-format "^2.0.5" + lodash.random "^3.2.0" + lodash.range "^3.2.0" + lodash.shuffle "^4.2.0" + node-fetch@^1.0.1: version "1.7.3" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef" @@ -2488,7 +2502,7 @@ react-dom@^15.6.1: object-assign "^4.1.0" prop-types "^15.5.10" -react-measure@2.0.2: +react-measure@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/react-measure/-/react-measure-2.0.2.tgz#072a9a5fafc01dfbadc1fa5fb09fc351037f636c" dependencies: @@ -2565,7 +2579,7 @@ readdirp@^2.0.0: readable-stream "^2.0.2" set-immediate-shim "^1.0.1" -recompose@0.26.0: +recompose@^0.26.0: version "0.26.0" resolved "https://registry.yarnpkg.com/recompose/-/recompose-0.26.0.tgz#9babff039cb72ba5bd17366d55d7232fbdfb2d30" dependencies: diff --git a/website/package.json b/website/package.json index 0f883e722..6d41a1b32 100644 --- a/website/package.json +++ b/website/package.json @@ -1,6 +1,6 @@ { "name": "nivo-website", - "version": "0.32.0-9", + "version": "0.32.0-11", "private": true, "description": "nivo website", "author": "Raphaël Benitte ", @@ -9,20 +9,21 @@ "source-map-explorer": "^1.5.0" }, "dependencies": { - "@nivo/bar": "0.32.0-9", - "@nivo/calendar": "0.32.0-9", - "@nivo/chord": "0.32.0-9", - "@nivo/circle-packing": "0.32.0-9", - "@nivo/core": "0.32.0-9", - "@nivo/heatmap": "0.32.0-9", - "@nivo/line": "0.32.0-9", - "@nivo/pie": "0.32.0-9", - "@nivo/radar": "0.32.0-9", - "@nivo/sankey": "0.32.0-9", - "@nivo/stream": "0.32.0-9", - "@nivo/sunburst": "0.32.0-9", - "@nivo/treemap": "0.32.0-9", - "@nivo/voronoi": "0.32.0-9", + "@nivo/bar": "0.32.0-11", + "@nivo/calendar": "0.32.0-11", + "@nivo/chord": "0.32.0-11", + "@nivo/circle-packing": "0.32.0-11", + "@nivo/core": "0.32.0-11", + "@nivo/generators": "0.32.0-11", + "@nivo/heatmap": "0.32.0-11", + "@nivo/line": "0.32.0-11", + "@nivo/pie": "0.32.0-11", + "@nivo/radar": "0.32.0-11", + "@nivo/sankey": "0.32.0-11", + "@nivo/stream": "0.32.0-11", + "@nivo/sunburst": "0.32.0-11", + "@nivo/treemap": "0.32.0-11", + "@nivo/voronoi": "0.32.0-11", "classnames": "2.2.4", "d3-scale": "^1.0.6", "d3-scale-chromatic": "^1.1.1", @@ -30,7 +31,6 @@ "d3-time-format": "^2.0.5", "dedent-js": "^1.0.1", "lodash": "^4.17.4", - "nivo-generators": "0.9.3", "prop-types": "^15.5.10", "react": "16.0.0", "react-dom": "^16.0.0", diff --git a/website/src/components/charts/bar/generators.js b/website/src/components/charts/bar/generators.js index bf826f861..1bdb20120 100644 --- a/website/src/components/charts/bar/generators.js +++ b/website/src/components/charts/bar/generators.js @@ -1,4 +1,4 @@ -import { generateCountriesData } from 'nivo-generators' +import { generateCountriesData } from '@nivo/generators' const dishes = [ 'hot dog', diff --git a/website/src/components/charts/bubble/BubblePage.js b/website/src/components/charts/bubble/BubblePage.js index 9d384b90e..5b9cc4396 100644 --- a/website/src/components/charts/bubble/BubblePage.js +++ b/website/src/components/charts/bubble/BubblePage.js @@ -8,7 +8,7 @@ */ import React, { Component } from 'react' import Helmet from 'react-helmet' -import { generateLibTree } from 'nivo-generators' +import { generateLibTree } from '@nivo/generators' export default class BubblePage extends Component { state = { diff --git a/website/src/components/charts/calendar/CalendarPage.js b/website/src/components/charts/calendar/CalendarPage.js index cef9a8738..ff708515d 100644 --- a/website/src/components/charts/calendar/CalendarPage.js +++ b/website/src/components/charts/calendar/CalendarPage.js @@ -8,7 +8,7 @@ */ import React, { Component } from 'react' import Helmet from 'react-helmet' -import { generateDayCounts } from 'nivo-generators' +import { generateDayCounts } from '@nivo/generators' class CalendarPage extends Component { constructor(props) { diff --git a/website/src/components/charts/chord/Chord.js b/website/src/components/charts/chord/Chord.js index b2f923c69..34253a576 100644 --- a/website/src/components/charts/chord/Chord.js +++ b/website/src/components/charts/chord/Chord.js @@ -18,7 +18,7 @@ import config from '../../../config' import ComponentPropsDocumentation from '../../properties/ComponentPropsDocumentation' import properties from './props' import nivoTheme from '../../../nivoTheme' -import { generateChordData } from 'nivo-generators' +import { generateChordData } from '@nivo/generators' import propsMapper from './propsMapper' const MATRIX_SIZE = 5 diff --git a/website/src/components/charts/chord/ChordAPI.js b/website/src/components/charts/chord/ChordAPI.js index bf5c14dc3..a7186a26e 100644 --- a/website/src/components/charts/chord/ChordAPI.js +++ b/website/src/components/charts/chord/ChordAPI.js @@ -10,7 +10,7 @@ import React, { Component } from 'react' import APIClient from '../../api-client/APIClient' import ChordControls from './ChordControls' import propsMapper from './propsMapper' -import { generateChordData } from 'nivo-generators' +import { generateChordData } from '@nivo/generators' const MATRIX_SIZE = 5 diff --git a/website/src/components/charts/chord/ChordCanvas.js b/website/src/components/charts/chord/ChordCanvas.js index 844350144..8f0cf7305 100644 --- a/website/src/components/charts/chord/ChordCanvas.js +++ b/website/src/components/charts/chord/ChordCanvas.js @@ -17,7 +17,7 @@ import generateCode from '../../../lib/generateChartCode' import ComponentPropsDocumentation from '../../properties/ComponentPropsDocumentation' import properties from './props' import nivoTheme from '../../../nivoTheme' -import { generateChordData } from 'nivo-generators' +import { generateChordData } from '@nivo/generators' import propsMapper from './propsMapper' const MATRIX_SIZE = 38 diff --git a/website/src/components/charts/heatmap/generators.js b/website/src/components/charts/heatmap/generators.js index 64cb8dcdd..9a6cef4e5 100644 --- a/website/src/components/charts/heatmap/generators.js +++ b/website/src/components/charts/heatmap/generators.js @@ -1,4 +1,4 @@ -import { generateCountriesData } from 'nivo-generators' +import { generateCountriesData } from '@nivo/generators' const dishes = [ 'hot dog', diff --git a/website/src/components/charts/line/LinePage.js b/website/src/components/charts/line/LinePage.js index b0e752315..3c0a00fba 100644 --- a/website/src/components/charts/line/LinePage.js +++ b/website/src/components/charts/line/LinePage.js @@ -8,7 +8,7 @@ */ import React, { Component } from 'react' import Helmet from 'react-helmet' -import { generateDrinkStats } from 'nivo-generators' +import { generateDrinkStats } from '@nivo/generators' const generateData = () => generateDrinkStats(12) diff --git a/website/src/components/charts/pie/PiePage.js b/website/src/components/charts/pie/PiePage.js index 9110b88b7..b54629e08 100644 --- a/website/src/components/charts/pie/PiePage.js +++ b/website/src/components/charts/pie/PiePage.js @@ -8,7 +8,7 @@ */ import React, { Component } from 'react' import Helmet from 'react-helmet' -import { generateProgrammingLanguageStats } from 'nivo-generators' +import { generateProgrammingLanguageStats } from '@nivo/generators' const generateData = () => { return generateProgrammingLanguageStats(true, 9).map(d => ({ diff --git a/website/src/components/charts/radar/RadarPage.js b/website/src/components/charts/radar/RadarPage.js index b689b1bea..f006ebce8 100644 --- a/website/src/components/charts/radar/RadarPage.js +++ b/website/src/components/charts/radar/RadarPage.js @@ -8,7 +8,7 @@ */ import React, { Component } from 'react' import Helmet from 'react-helmet' -import { generateWinesTastes } from 'nivo-generators' +import { generateWinesTastes } from '@nivo/generators' export default class PiePage extends Component { state = generateWinesTastes() diff --git a/website/src/components/charts/sankey/SankeyPage.js b/website/src/components/charts/sankey/SankeyPage.js index 6878cfb85..544d38e6b 100644 --- a/website/src/components/charts/sankey/SankeyPage.js +++ b/website/src/components/charts/sankey/SankeyPage.js @@ -9,7 +9,7 @@ import React, { Component } from 'react' import Helmet from 'react-helmet' import random from 'lodash/random' -import { generateSankeyData } from 'nivo-generators' +import { generateSankeyData } from '@nivo/generators' const generateData = () => generateSankeyData({ nodeCount: 11, maxIterations: 2 }) diff --git a/website/src/components/charts/sunburst/SunburstPage.js b/website/src/components/charts/sunburst/SunburstPage.js index de12a278b..6c3c1c36a 100644 --- a/website/src/components/charts/sunburst/SunburstPage.js +++ b/website/src/components/charts/sunburst/SunburstPage.js @@ -8,7 +8,7 @@ */ import React, { Component } from 'react' import Helmet from 'react-helmet' -import { generateLibTree } from 'nivo-generators' +import { generateLibTree } from '@nivo/generators' export default class SunburstPage extends Component { state = { diff --git a/website/src/components/charts/treemap/generators.js b/website/src/components/charts/treemap/generators.js index 607a27bc9..66f552ce8 100644 --- a/website/src/components/charts/treemap/generators.js +++ b/website/src/components/charts/treemap/generators.js @@ -1,4 +1,4 @@ -import { generateLibTree } from 'nivo-generators' +import { generateLibTree } from '@nivo/generators' import range from 'lodash/range' import random from 'lodash/random' diff --git a/website/src/components/guides/colors/ColorsIllustrations.js b/website/src/components/guides/colors/ColorsIllustrations.js index e259f1349..b496c4408 100644 --- a/website/src/components/guides/colors/ColorsIllustrations.js +++ b/website/src/components/guides/colors/ColorsIllustrations.js @@ -2,7 +2,7 @@ import React from 'react' import { ResponsiveBar } from '@nivo/bar' import { ResponsiveStream } from '@nivo/stream' import { ResponsiveTreeMap } from '@nivo/treemap' -import { generateCountriesData } from 'nivo-generators' +import { generateCountriesData } from '@nivo/generators' const ColorsIllustrations = () => (
diff --git a/website/src/components/guides/gradients/GradientsIllustrations.js b/website/src/components/guides/gradients/GradientsIllustrations.js index 052b98f7b..aefe74228 100644 --- a/website/src/components/guides/gradients/GradientsIllustrations.js +++ b/website/src/components/guides/gradients/GradientsIllustrations.js @@ -3,7 +3,7 @@ import { linearGradientDef } from '@nivo/core' import { ResponsiveBar } from '@nivo/bar' import { ResponsiveStream } from '@nivo/stream' import { ResponsiveTreeMap } from '@nivo/treemap' -import { generateCountriesData } from 'nivo-generators' +import { generateCountriesData } from '@nivo/generators' const GradientsIllustrations = () => (
diff --git a/website/src/components/guides/patterns/PatternsIllustrations.js b/website/src/components/guides/patterns/PatternsIllustrations.js index 7296e1fd6..59257da10 100644 --- a/website/src/components/guides/patterns/PatternsIllustrations.js +++ b/website/src/components/guides/patterns/PatternsIllustrations.js @@ -3,7 +3,7 @@ import { patternDotsDef, patternLinesDef, patternSquaresDef } from '@nivo/core' import { ResponsiveBar } from '@nivo/bar' import { ResponsiveStream } from '@nivo/stream' import { ResponsiveTreeMap } from '@nivo/treemap' -import { generateCountriesData } from 'nivo-generators' +import { generateCountriesData } from '@nivo/generators' const PatternsIllustrations = () => (
diff --git a/website/src/components/pages/Home.js b/website/src/components/pages/Home.js index e9595d12a..7fc854afd 100644 --- a/website/src/components/pages/Home.js +++ b/website/src/components/pages/Home.js @@ -22,7 +22,7 @@ import { generateWinesTastes, generateSankeyData, generateChordData, -} from 'nivo-generators' +} from '@nivo/generators' import { ResponsiveSankey } from '@nivo/sankey' import { ResponsiveVoronoi } from '@nivo/voronoi' import { ResponsiveRadar } from '@nivo/radar'