diff --git a/code/lib/client-api/src/ClientApi.ts b/code/lib/client-api/src/ClientApi.ts index ff04abda51a..7986c3cd7f8 100644 --- a/code/lib/client-api/src/ClientApi.ts +++ b/code/lib/client-api/src/ClientApi.ts @@ -214,7 +214,7 @@ export class ClientApi { // storiesOf file to finish adding stories, and us to load it into the facade as a // single psuedo-CSF file. So instead we just keep collecting the CSF files and load // them all into the facade at the end. - _addedExports = {} as Record; + _addedExports = {} as Record; _loadAddedExports() { // eslint-disable-next-line no-underscore-dangle diff --git a/code/lib/types/src/modules/store.ts b/code/lib/types/src/modules/store.ts index e8025e954d6..4e5b68c30e1 100644 --- a/code/lib/types/src/modules/store.ts +++ b/code/lib/types/src/modules/store.ts @@ -12,6 +12,7 @@ import type { LegacyStoryFn, Parameters, PartialStoryFn, + Path, ProjectAnnotations, StoryAnnotations, StoryContext, @@ -26,7 +27,6 @@ import type { ViewMode, } from './csf'; -export type Path = string; export type Store_ModuleExport = any; export type Store_ModuleExports = Record; export type Store_PromiseLike = Promise | SynchronousPromise; diff --git a/code/workspace.json b/code/workspace.json index ee1c8b28c79..5147e5d1bf4 100644 --- a/code/workspace.json +++ b/code/workspace.json @@ -2,132 +2,132 @@ "version": 2, "projects": { "@storybook/addon-a11y": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "addons/a11y", "type": "library" }, "@storybook/addon-actions": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "addons/actions", "type": "library" }, "@storybook/addon-backgrounds": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "addons/backgrounds", "type": "library" }, "@storybook/addon-controls": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "addons/controls", "type": "library" }, "@storybook/addon-docs": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "addons/docs", "type": "library" }, "@storybook/addon-essentials": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "addons/essentials", "type": "library" }, "@storybook/addon-highlight": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "addons/highlight", "type": "library" }, "@storybook/addon-interactions": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "addons/interactions", "type": "library" }, "@storybook/addon-jest": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "addons/jest", "type": "library" }, "@storybook/addon-links": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "addons/links", "type": "library" }, "@storybook/addon-measure": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "addons/measure", "type": "library" }, "@storybook/addon-outline": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "addons/outline", "type": "library" }, "@storybook/addon-storyshots": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "addons/storyshots/storyshots-core", "type": "library" }, "@storybook/addon-storyshots-puppeteer": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "addons/storyshots/storyshots-puppeteer", "type": "library" }, "@storybook/addon-storysource": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "addons/storysource", "type": "library" }, "@storybook/addon-toolbars": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "addons/toolbars", "type": "library" }, "@storybook/addon-viewport": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "addons/viewport", "type": "library" }, "@storybook/addons": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "lib/addons", "type": "library" }, "@storybook/angular": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "frameworks/angular", "type": "library" }, "@storybook/api": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "lib/api", "type": "library" }, "@storybook/blocks": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "ui/blocks", "type": "library" }, "@storybook/builder-manager": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "lib/builder-manager", "type": "library" }, "@storybook/builder-vite": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "lib/builder-vite", "type": "library" }, "@storybook/builder-webpack5": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "lib/builder-webpack5", "type": "library" }, "@storybook/channel-postmessage": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "lib/channel-postmessage", "type": "library" }, "@storybook/channel-websocket": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "lib/channel-websocket", "type": "library" }, @@ -137,12 +137,12 @@ "type": "library" }, "@storybook/cli": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "lib/cli", "type": "library" }, "@storybook/client-api": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "lib/client-api", "type": "library" }, @@ -152,82 +152,82 @@ "type": "library" }, "@storybook/codemod": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "lib/codemod", "type": "library" }, "@storybook/components": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "ui/components", "type": "library" }, "@storybook/core-client": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "lib/core-client", "type": "library" }, "@storybook/core-common": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "lib/core-common", "type": "library" }, "@storybook/core-events": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "lib/core-events", "type": "library" }, "@storybook/core-server": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "lib/core-server", "type": "library" }, "@storybook/core-vite": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "lib/core-vite", "type": "library" }, "@storybook/core-webpack": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "lib/core-webpack", "type": "library" }, "@storybook/csf-tools": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "lib/csf-tools", "type": "library" }, "@storybook/docs-tools": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "lib/docs-tools", "type": "library" }, "@storybook/ember": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "frameworks/ember", "type": "library" }, "@storybook/example-doc-blocks": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "examples/doc-blocks", "type": "library" }, "@storybook/external-docs": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "examples/external-docs", "type": "library" }, "@storybook/html": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "renderers/html", "type": "library" }, "@storybook/html-webpack5": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "frameworks/html-webpack5", "type": "library" }, "@storybook/instrumenter": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "lib/instrumenter", "type": "library" }, @@ -237,82 +237,82 @@ "implicitDependencies": [] }, "@storybook/node-logger": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "lib/node-logger", "type": "library" }, "@storybook/postinstall": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "lib/postinstall", "type": "library" }, "@storybook/preact": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "renderers/preact", "type": "library" }, "@storybook/preact-webpack5": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "frameworks/preact-webpack5", "type": "library" }, "@storybook/preset-html-webpack": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "presets/html-webpack", "type": "library" }, "@storybook/preset-preact-webpack": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "presets/preact-webpack", "type": "library" }, "@storybook/preset-react-webpack": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "presets/react-webpack", "type": "library" }, "@storybook/preset-server-webpack": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "presets/server-webpack", "type": "library" }, "@storybook/preset-svelte-webpack": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "presets/svelte-webpack", "type": "library" }, "@storybook/preset-vue-webpack": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "presets/vue-webpack", "type": "library" }, "@storybook/preset-vue3-webpack": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "presets/vue3-webpack", "type": "library" }, "@storybook/preset-web-components-webpack": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "presets/web-components-webpack", "type": "library" }, "@storybook/preview-web": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "lib/preview-web", "type": "library" }, "@storybook/react": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "renderers/react", "type": "library" }, "@storybook/react-vite": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "frameworks/react-vite", "type": "library" }, "@storybook/react-webpack5": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "frameworks/react-webpack5", "type": "library" }, @@ -322,42 +322,42 @@ "type": "library" }, "@storybook/server": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "renderers/server", "type": "library" }, "@storybook/server-webpack5": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "frameworks/server-webpack5", "type": "library" }, "@storybook/source-loader": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "lib/source-loader", "type": "library" }, "@storybook/store": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "lib/store", "type": "library" }, "@storybook/svelte": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "renderers/svelte", "type": "library" }, "@storybook/svelte-vite": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "frameworks/svelte-vite", "type": "library" }, "@storybook/svelte-webpack5": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "frameworks/svelte-webpack5", "type": "library" }, "@storybook/telemetry": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "lib/telemetry", "type": "library" }, @@ -372,82 +372,82 @@ "type": "library" }, "@storybook/ui": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "ui/manager", "type": "library" }, "@storybook/vue": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "renderers/vue", "type": "library" }, "@storybook/vue-vite": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "frameworks/vue-vite", "type": "library" }, "@storybook/vue-webpack5": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "frameworks/vue-webpack5", "type": "library" }, "@storybook/vue3": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "renderers/vue3", "type": "library" }, "@storybook/vue3-vite": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "frameworks/vue3-vite", "type": "library" }, "@storybook/vue3-webpack5": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "frameworks/vue3-webpack5", "type": "library" }, "@storybook/web-components": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "renderers/web-components", "type": "library" }, "@storybook/web-components-vite": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "frameworks/web-components-vite", "type": "library" }, "@storybook/web-components-webpack5": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "frameworks/web-components-webpack5", "type": "library" }, "ember-example": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "examples/ember-cli", "type": "library" }, "sb": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "lib/cli-sb", "type": "library" }, "server-kitchen-sink": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "examples/server-kitchen-sink", "type": "library" }, "standalone-preview": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "examples/standalone-preview", "type": "library" }, "storybook": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "lib/cli-storybook", "type": "library" }, "vue-3-cli-example": { - "implicitDependencies": ["@storybook/types"], + "implicitDependencies": [], "root": "examples/vue-3-cli", "type": "library" }