diff --git a/app/svelte/src/client/preview/render.ts b/app/svelte/src/client/preview/render.ts index 1a5e4f2c3a42..76f8b005258a 100644 --- a/app/svelte/src/client/preview/render.ts +++ b/app/svelte/src/client/preview/render.ts @@ -15,7 +15,7 @@ function cleanUpPreviousStory() { } function mountView({ Component, target, props, on, Wrapper, WrapperData }: MountViewArgs) { - let component: any; + let component: Component; if (Wrapper) { const fragment = document.createDocumentFragment(); diff --git a/yarn.lock b/yarn.lock index 8b8d25fca3ea..ee804cff7e75 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1642,7 +1642,7 @@ "@emotion/utils" "0.11.2" "@emotion/weak-memoize" "0.2.4" -"@emotion/core@^10.0.14", "@emotion/core@^10.0.20", "@emotion/core@^10.0.9": +"@emotion/core@^10.0.20", "@emotion/core@^10.0.9": version "10.0.22" resolved "https://registry.yarnpkg.com/@emotion/core/-/core-10.0.22.tgz#2ac7bcf9b99a1979ab5b0a876fbf37ab0688b177" integrity sha512-7eoP6KQVUyOjAkE6y4fdlxbZRA4ILs7dqkkm6oZUJmihtHv0UBq98VgPirq9T8F9K2gKu0J/au/TpKryKMinaA== @@ -1675,13 +1675,6 @@ dependencies: "@emotion/memoize" "0.7.3" -"@emotion/is-prop-valid@0.8.5": - version "0.8.5" - resolved "https://registry.yarnpkg.com/@emotion/is-prop-valid/-/is-prop-valid-0.8.5.tgz#2dda0791f0eafa12b7a0a5b39858405cc7bde983" - integrity sha512-6ZODuZSFofbxSbcxwsFz+6ioPjb0ISJRRPLZ+WIbjcU2IMU0Io+RGQjjaTgOvNQl007KICBm7zXQaYQEC1r6Bg== - dependencies: - "@emotion/memoize" "0.7.3" - "@emotion/memoize@0.7.3": version "0.7.3" resolved "https://registry.yarnpkg.com/@emotion/memoize/-/memoize-0.7.3.tgz#5b6b1c11d6a6dddf1f2fc996f74cf3b219644d78" @@ -1712,17 +1705,6 @@ "@emotion/utils" "0.11.2" csstype "^2.5.7" -"@emotion/serialize@^0.11.14": - version "0.11.14" - resolved "https://registry.yarnpkg.com/@emotion/serialize/-/serialize-0.11.14.tgz#56a6d8d04d837cc5b0126788b2134c51353c6488" - integrity sha512-6hTsySIuQTbDbv00AnUO6O6Xafdwo5GswRlMZ5hHqiFx+4pZ7uGWXUQFW46Kc2taGhP89uXMXn/lWQkdyTosPA== - dependencies: - "@emotion/hash" "0.7.3" - "@emotion/memoize" "0.7.3" - "@emotion/unitless" "0.7.4" - "@emotion/utils" "0.11.2" - csstype "^2.5.7" - "@emotion/sheet@0.9.3": version "0.9.3" resolved "https://registry.yarnpkg.com/@emotion/sheet/-/sheet-0.9.3.tgz#689f135ecf87d3c650ed0c4f5ddcbe579883564a" @@ -1746,24 +1728,6 @@ "@emotion/serialize" "^0.11.12" "@emotion/utils" "0.11.2" -"@emotion/styled-base@^10.0.23": - version "10.0.24" - resolved "https://registry.yarnpkg.com/@emotion/styled-base/-/styled-base-10.0.24.tgz#9497efd8902dfeddee89d24b0eeb26b0665bfe8b" - integrity sha512-AnBImerf0h4dGAJVo0p0VE8KoAns71F28ErGFK474zbNAHX6yqSWQUasb+1jvg/VPwZjCp19+tAr6oOB0pwmLQ== - dependencies: - "@babel/runtime" "^7.5.5" - "@emotion/is-prop-valid" "0.8.5" - "@emotion/serialize" "^0.11.14" - "@emotion/utils" "0.11.2" - -"@emotion/styled@^10.0.14": - version "10.0.23" - resolved "https://registry.yarnpkg.com/@emotion/styled/-/styled-10.0.23.tgz#2f8279bd59b99d82deade76d1046249ddfab7c1b" - integrity sha512-gNr04eqBQ2iYUx8wFLZDfm3N8/QUOODu/ReDXa693uyQGy2OqA+IhPJk+kA7id8aOfwAsMuvZ0pJImEXXKtaVQ== - dependencies: - "@emotion/styled-base" "^10.0.23" - babel-plugin-emotion "^10.0.23" - "@emotion/styled@^10.0.17": version "10.0.22" resolved "https://registry.yarnpkg.com/@emotion/styled/-/styled-10.0.22.tgz#ee398710876ebda5a418f84359516c6a1c5c41b1" @@ -3474,29 +3438,29 @@ resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.7.0.tgz#9a06f4f137ee84d7df0460c1fdb1135ffa6c50fd" integrity sha512-ONhaKPIufzzrlNbqtWFFd+jlnemX6lJAgq9ZeiZtS7I1PIf/la7CW4m83rTXRnVnsMbW2k56pGYu7AUFJD9Pow== -"@storybook/addons@^5.2.5": - version "5.2.5" - resolved "https://registry.yarnpkg.com/@storybook/addons/-/addons-5.2.5.tgz#e3e23d5ea6eb221df31e1a5d125be47454e9a0e8" - integrity sha512-CvMj7Bs3go9tv5rZuAvFwuwe8p/16LDCHS7+5nVFosvcL8nuN339V3rzakw8nLy/S6XKeZ1ACu4t3vYkreRE3w== +"@storybook/addons@5.3.0-alpha.41": + version "5.3.0-alpha.41" + resolved "https://registry.yarnpkg.com/@storybook/addons/-/addons-5.3.0-alpha.41.tgz#f40e57f23da76ef492489ac9b6c0add89490b716" + integrity sha512-X4OGhR5lzK+JOElj7l8f4nNnQH+DAi7EQ7jvbPhoL6lp8MThQArHmj0qZKzoSX4k6geFFapJR5KemxK3s9TMgA== dependencies: - "@storybook/api" "5.2.5" - "@storybook/channels" "5.2.5" - "@storybook/client-logger" "5.2.5" - "@storybook/core-events" "5.2.5" + "@storybook/api" "5.3.0-alpha.41" + "@storybook/channels" "5.3.0-alpha.41" + "@storybook/client-logger" "5.3.0-alpha.41" + "@storybook/core-events" "5.3.0-alpha.41" core-js "^3.0.1" global "^4.3.2" util-deprecate "^1.0.2" -"@storybook/api@5.2.5": - version "5.2.5" - resolved "https://registry.yarnpkg.com/@storybook/api/-/api-5.2.5.tgz#dcc68c873820485372a47c095a8fc5e4fb53a34c" - integrity sha512-JvLafqFVgA3dIWpLMoGNk4sRuogE5imhD6/g0d8DOwnCID9xowj5xIptSrCTKvGGGxuN3wWRGn6I2lEbY6969g== - dependencies: - "@storybook/channels" "5.2.5" - "@storybook/client-logger" "5.2.5" - "@storybook/core-events" "5.2.5" - "@storybook/router" "5.2.5" - "@storybook/theming" "5.2.5" +"@storybook/api@5.3.0-alpha.41": + version "5.3.0-alpha.41" + resolved "https://registry.yarnpkg.com/@storybook/api/-/api-5.3.0-alpha.41.tgz#6634f69d5c5de79bee68465754ff9609f566b60b" + integrity sha512-0KO/Kbr2W6q3RpyskMHwlL6EDs3FbszPbFOC9cqqxYlcM0pP0iWJNh3OT3HHCGpsykCjRRztVwM4nt4Ydz5W0Q== + dependencies: + "@storybook/channels" "5.3.0-alpha.41" + "@storybook/client-logger" "5.3.0-alpha.41" + "@storybook/core-events" "5.3.0-alpha.41" + "@storybook/router" "5.3.0-alpha.41" + "@storybook/theming" "5.3.0-alpha.41" core-js "^3.0.1" fast-deep-equal "^2.0.1" global "^4.3.2" @@ -3507,27 +3471,27 @@ semver "^6.0.0" shallow-equal "^1.1.0" store2 "^2.7.1" - telejson "^3.0.2" + telejson "^3.0.3" util-deprecate "^1.0.2" -"@storybook/channels@5.2.5": - version "5.2.5" - resolved "https://registry.yarnpkg.com/@storybook/channels/-/channels-5.2.5.tgz#d6ca2b490281dacb272096563fe760ccb353c4bb" - integrity sha512-I+zB3ym5ozBcNBqyzZbvB6gRIG/ZKKkqy5k6LwKd5NMx7NU7zU74+LQUBBOcSIrigj8kCArZz7rlgb0tlSKXxQ== +"@storybook/channels@5.3.0-alpha.41": + version "5.3.0-alpha.41" + resolved "https://registry.yarnpkg.com/@storybook/channels/-/channels-5.3.0-alpha.41.tgz#009594e1de8e0810dac988095af914dc9cc1efaa" + integrity sha512-jg0UOYf10rNsLozdaNKQ893Wcw0J33AEz7pFN5F7emAm/CQg9DG2/PB2WGjDzK2Q0QlHdv3KEcPhyn3kYjVSFQ== dependencies: core-js "^3.0.1" -"@storybook/client-logger@5.2.5": - version "5.2.5" - resolved "https://registry.yarnpkg.com/@storybook/client-logger/-/client-logger-5.2.5.tgz#6f386ac6f81b4a783c57d54bb328281abbea1bab" - integrity sha512-6DyYUrMgAvF+th0foH7UNz+2JJpRdvNbpvYKtvi/+hlvRIaI6AqANgLkPUgMibaif5TLzjCr0bLdAYcjeJz03w== +"@storybook/client-logger@5.3.0-alpha.41": + version "5.3.0-alpha.41" + resolved "https://registry.yarnpkg.com/@storybook/client-logger/-/client-logger-5.3.0-alpha.41.tgz#e451f797e480bd6211b2bc52997a10213ef484b9" + integrity sha512-4nVqAUb83DzZ6PJSWy957fRahzWSiZ7tBhk3xfF3MQ6LNayp3lSZ6ocZiNF5JrBL3UZkxRDk8bBRKo0/ZkX+IA== dependencies: core-js "^3.0.1" -"@storybook/core-events@5.2.5": - version "5.2.5" - resolved "https://registry.yarnpkg.com/@storybook/core-events/-/core-events-5.2.5.tgz#62881164a4a01aa99ff0691e70eaed2dd58e229e" - integrity sha512-O5GM8XEBbYNbM6Z7a4H1bbnbO2cxQrXMhEwansC7a7YinQdkTPiuGxke3NiyK+7pLDh778kpQyjoCjXq6UfAoQ== +"@storybook/core-events@5.3.0-alpha.41": + version "5.3.0-alpha.41" + resolved "https://registry.yarnpkg.com/@storybook/core-events/-/core-events-5.3.0-alpha.41.tgz#a39423e98e8753609972748119dd3b68131e6e90" + integrity sha512-XX196XdEZ6PIyzrxJfIapf2mKz/OGpwblBe53WtHZ4U1jLoajhVciXWU31gaxjNd+GuD2aMUhcdBFv6piL+LEg== dependencies: core-js "^3.0.1" @@ -3577,10 +3541,10 @@ "@storybook/node-logger" "^5.2.4" react-docgen-typescript-loader "^3.3.0" -"@storybook/router@5.2.5": - version "5.2.5" - resolved "https://registry.yarnpkg.com/@storybook/router/-/router-5.2.5.tgz#a005332bc6aa1e7849503187ad50c41b3f3bef92" - integrity sha512-e6ElDAWSoEW1KSnsTbVwbpzaZ8CNWYw0Ok3b5AHfY2fuSH5L4l6s6k/bP7QSYqvWUeTvkFQYux7A2rOFCriAgA== +"@storybook/router@5.3.0-alpha.41": + version "5.3.0-alpha.41" + resolved "https://registry.yarnpkg.com/@storybook/router/-/router-5.3.0-alpha.41.tgz#bccf18506b68778d485e9f11d4d9d30d7f9fa437" + integrity sha512-Ump0il+v8fT8g9kXF8tVpa5hjVzU85Av3Xe8/TeKn9T+uqGdnOFuVJ3N/tKUTf6xcnIBFQ7mJBE64h2m/luOWQ== dependencies: "@reach/router" "^1.2.1" "@types/reach__router" "^1.2.3" @@ -3590,23 +3554,23 @@ memoizerific "^1.11.3" qs "^6.6.0" -"@storybook/theming@5.2.5": - version "5.2.5" - resolved "https://registry.yarnpkg.com/@storybook/theming/-/theming-5.2.5.tgz#9579e7944f61ded637d1d79be5fb859a617620f5" - integrity sha512-PGZNYrRgAhXFJKnktFpyyKlaDXEhtTi5XPq5ASVJrsPW6l963Mk2EMKSm4TCTxIJhs0Kx4cv2MnNZFDqHf47eg== +"@storybook/theming@5.3.0-alpha.41": + version "5.3.0-alpha.41" + resolved "https://registry.yarnpkg.com/@storybook/theming/-/theming-5.3.0-alpha.41.tgz#c756865bb5354f6648099982e22d4052c6914ef1" + integrity sha512-U3jVgDVgLObq0FxKCoaOzwkPFNm1wr0N1aEAhZfVrArsK/OS1i6VuJiEQg7nq+pjDtsQI2kND5giigxvCDnjgA== dependencies: - "@emotion/core" "^10.0.14" - "@emotion/styled" "^10.0.14" - "@storybook/client-logger" "5.2.5" - common-tags "^1.8.0" + "@emotion/core" "^10.0.20" + "@emotion/styled" "^10.0.17" + "@storybook/client-logger" "5.3.0-alpha.41" core-js "^3.0.1" deep-object-diff "^1.1.0" - emotion-theming "^10.0.14" + emotion-theming "^10.0.19" global "^4.3.2" memoizerific "^1.11.3" polished "^3.3.1" prop-types "^15.7.2" resolve-from "^5.0.0" + ts-dedent "^1.1.0" "@svgr/babel-plugin-add-jsx-attribute@^4.2.0": version "4.2.0" @@ -6208,22 +6172,6 @@ babel-plugin-emotion@^10.0.20, babel-plugin-emotion@^10.0.22: find-root "^1.1.0" source-map "^0.5.7" -babel-plugin-emotion@^10.0.23: - version "10.0.23" - resolved "https://registry.yarnpkg.com/babel-plugin-emotion/-/babel-plugin-emotion-10.0.23.tgz#040d40bf61dcab6d31dd6043d10e180240b8515b" - integrity sha512-1JiCyXU0t5S2xCbItejCduLGGcKmF3POT0Ujbexog2MI4IlRcIn/kWjkYwCUZlxpON0O5FC635yPl/3slr7cKQ== - dependencies: - "@babel/helper-module-imports" "^7.0.0" - "@emotion/hash" "0.7.3" - "@emotion/memoize" "0.7.3" - "@emotion/serialize" "^0.11.14" - babel-plugin-macros "^2.0.0" - babel-plugin-syntax-jsx "^6.18.0" - convert-source-map "^1.5.0" - escape-string-regexp "^1.0.5" - find-root "^1.1.0" - source-map "^0.5.7" - babel-plugin-extract-import-names@^1.5.1: version "1.5.1" resolved "https://registry.yarnpkg.com/babel-plugin-extract-import-names/-/babel-plugin-extract-import-names-1.5.1.tgz#79fb8550e3e0a9e8654f9461ccade56c9a669a74" @@ -11721,7 +11669,7 @@ emojis-list@^2.0.0: resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-2.1.0.tgz#4daa4d9db00f9819880c79fa457ae5b09a1fd389" integrity sha1-TapNnbAPmBmIDHn6RXrlsJof04k= -emotion-theming@^10.0.14, emotion-theming@^10.0.19: +emotion-theming@^10.0.19: version "10.0.19" resolved "https://registry.yarnpkg.com/emotion-theming/-/emotion-theming-10.0.19.tgz#66d13db74fccaefad71ba57c915b306cf2250295" integrity sha512-dQRBPLAAQ6eA8JKhkLCIWC8fdjPbiNC1zNTdFF292h9amhZXofcNGUP7axHoHX4XesqQESYwZrXp53OPInMrKw== @@ -29537,7 +29485,7 @@ teeny-request@^3.11.3: node-fetch "^2.2.0" uuid "^3.3.2" -telejson@^3.0.2, telejson@^3.0.3: +telejson@^3.0.3: version "3.1.0" resolved "https://registry.yarnpkg.com/telejson/-/telejson-3.1.0.tgz#c648479afe0d8edd90aeaf478b0b8a2fe9f59513" integrity sha512-mhiVy+xp2atri1bzSzdy/gVGXlOhibaoZ092AUq5xhnrZGdzhF0fLaOduHJQghkro+qmjYMwhsOL9CkD2zTicg==