@storybook/react 9.1.0-alpha.5 → 9.1.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-CKO6TW2F.mjs → chunk-6BNVLEVL.mjs} +5 -5
- package/dist/{chunk-AWLHXXSE.mjs → chunk-6PSAWJ36.mjs} +1 -1
- package/dist/{chunk-N3U7HZRZ.mjs → chunk-JQQVJC7C.mjs} +1 -1
- package/dist/chunk-MNKU3DTE.mjs +9 -0
- package/dist/{chunk-SMPGI77C.mjs → chunk-OZUYIFQK.mjs} +3 -3
- package/dist/entry-preview-argtypes.js +5 -5
- package/dist/entry-preview-argtypes.mjs +2 -2
- package/dist/entry-preview-docs.js +5 -5
- package/dist/entry-preview-docs.mjs +2 -2
- package/dist/entry-preview.js +1 -1
- package/dist/entry-preview.mjs +1 -1
- package/dist/index.js +9 -9
- package/dist/index.mjs +7 -7
- package/dist/preview.js +6 -6
- package/dist/preview.mjs +5 -5
- package/package.json +4 -4
- package/dist/chunk-CQ7IB4U6.mjs +0 -9
package/dist/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { __definePreview } from './chunk-
|
|
2
|
-
import { entry_preview_exports, renderToCanvas } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
1
|
+
export { __definePreview } from './chunk-OZUYIFQK.mjs';
|
|
2
|
+
import { entry_preview_exports, renderToCanvas } from './chunk-MNKU3DTE.mjs';
|
|
3
|
+
import { entry_preview_argtypes_exports } from './chunk-JQQVJC7C.mjs';
|
|
4
|
+
import './chunk-6PSAWJ36.mjs';
|
|
5
5
|
import './chunk-XLZBPYSH.mjs';
|
|
6
|
-
import './chunk-
|
|
6
|
+
import './chunk-6BNVLEVL.mjs';
|
|
7
7
|
import './chunk-XP5HYGXS.mjs';
|
|
8
8
|
import { global } from '@storybook/global';
|
|
9
9
|
import * as React from 'react';
|
|
10
|
-
import { setDefaultProjectAnnotations, setProjectAnnotations as setProjectAnnotations$1, composeStory as composeStory$1, composeStories as composeStories$1 } from 'storybook/preview-api';
|
|
10
|
+
import { composeConfigs, setDefaultProjectAnnotations, setProjectAnnotations as setProjectAnnotations$1, composeStory as composeStory$1, composeStories as composeStories$1 } from 'storybook/preview-api';
|
|
11
11
|
|
|
12
|
-
var{window:globalWindow}=global;globalWindow&&(globalWindow.STORYBOOK_ENV="react");function setProjectAnnotations(projectAnnotations){return setDefaultProjectAnnotations(INTERNAL_DEFAULT_PROJECT_ANNOTATIONS),setProjectAnnotations$1(projectAnnotations)}var INTERNAL_DEFAULT_PROJECT_ANNOTATIONS=
|
|
12
|
+
var{window:globalWindow}=global;globalWindow&&(globalWindow.STORYBOOK_ENV="react");function setProjectAnnotations(projectAnnotations){return setDefaultProjectAnnotations(INTERNAL_DEFAULT_PROJECT_ANNOTATIONS),setProjectAnnotations$1(projectAnnotations)}var INTERNAL_DEFAULT_PROJECT_ANNOTATIONS=composeConfigs([entry_preview_exports,entry_preview_argtypes_exports,{renderToCanvas:async(renderContext,canvasElement)=>{if(renderContext.storyContext.testingLibraryRender==null)return renderToCanvas(renderContext,canvasElement);let{storyContext:{context,unboundStoryFn:Story,testingLibraryRender:render}}=renderContext,{unmount}=render(React.createElement(Story,{...context}),{container:context.canvasElement});return unmount}}]);function composeStory(story,componentAnnotations,projectAnnotations,exportsName){return composeStory$1(story,componentAnnotations,projectAnnotations,globalThis.globalProjectAnnotations??INTERNAL_DEFAULT_PROJECT_ANNOTATIONS,exportsName)}function composeStories(csfExports,projectAnnotations){return composeStories$1(csfExports,projectAnnotations,composeStory)}
|
|
13
13
|
|
|
14
14
|
export { INTERNAL_DEFAULT_PROJECT_ANNOTATIONS, composeStories, composeStory, setProjectAnnotations };
|