@storybook/react 8.7.0-alpha.0 → 9.0.0-alpha.1
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-6IITSBZU.mjs +9 -0
- package/dist/chunk-W32SJPZN.mjs +7 -0
- package/dist/entry-preview-docs.mjs +1 -1
- package/dist/entry-preview.js +1 -1
- package/dist/entry-preview.mjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/dist/preview.d.ts +3 -2
- package/dist/preview.js +3 -3
- package/dist/preview.mjs +3 -3
- package/package.json +10 -10
- package/dist/chunk-DWFEPKAE.mjs +0 -7
- package/dist/chunk-MHYVTTFG.mjs +0 -9
- /package/dist/{chunk-EWIU6LHT.mjs → chunk-EZTXUNTE.mjs} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import { entry_preview_exports, renderToCanvas } from './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { __definePreview } from './chunk-W32SJPZN.mjs';
|
|
2
|
+
import { entry_preview_exports, renderToCanvas } from './chunk-6IITSBZU.mjs';
|
|
3
|
+
import './chunk-EZTXUNTE.mjs';
|
|
4
4
|
import './chunk-XP5HYGXS.mjs';
|
|
5
5
|
import { global } from '@storybook/global';
|
|
6
6
|
import * as React from 'react';
|
package/dist/preview.d.ts
CHANGED
|
@@ -170,7 +170,8 @@ type UnionToIntersection<Union> = (
|
|
|
170
170
|
? Intersection
|
|
171
171
|
: never;
|
|
172
172
|
|
|
173
|
-
|
|
173
|
+
/** Do not use, use the definePreview exported from the framework instead */
|
|
174
|
+
declare function __definePreview(preview: ReactPreview['input']): ReactPreview;
|
|
174
175
|
interface ReactPreview extends Preview<ReactRenderer> {
|
|
175
176
|
meta<TArgs extends Args, Decorators extends DecoratorFunction<ReactRenderer, any>, TMetaArgs extends Partial<TArgs>>(meta: {
|
|
176
177
|
render?: ArgsStoryFn<ReactRenderer, TArgs>;
|
|
@@ -195,4 +196,4 @@ interface ReactMeta<Context extends {
|
|
|
195
196
|
interface ReactStory extends Story<ReactRenderer> {
|
|
196
197
|
}
|
|
197
198
|
|
|
198
|
-
export { ReactPreview,
|
|
199
|
+
export { ReactPreview, __definePreview };
|