storybook 9.0.0-alpha.2 → 9.0.0-alpha.4
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/README.md +1 -1
- package/dist/actions/decorator.d.ts +6 -0
- package/dist/actions/decorator.js +139 -0
- package/dist/actions/index.cjs +127 -0
- package/dist/actions/index.d.ts +105 -0
- package/dist/actions/index.js +112 -0
- package/dist/actions/manager.js +1196 -0
- package/dist/actions/preview.cjs +165 -0
- package/dist/actions/preview.d.ts +55 -0
- package/dist/actions/preview.js +156 -0
- package/dist/bin/index.cjs +63 -65
- package/dist/bin/index.js +63 -65
- package/dist/channels/index.cjs +209 -234
- package/dist/channels/index.js +304 -308
- package/dist/cli/bin/index.cjs +409 -409
- package/dist/cli/bin/index.js +414 -414
- package/dist/cli/index.cjs +1 -1
- package/dist/cli/index.d.ts +2 -2
- package/dist/cli/index.js +1 -1
- package/dist/client-logger/index.cjs +56 -88
- package/dist/client-logger/index.js +41 -47
- package/dist/common/index.cjs +148 -148
- package/dist/common/index.d.ts +1 -5
- package/dist/common/index.js +171 -171
- package/dist/components/index.cjs +9413 -11578
- package/dist/components/index.d.ts +92 -92
- package/dist/components/index.js +6768 -7544
- package/dist/core-events/index.d.ts +138 -25
- package/dist/core-server/index.cjs +5244 -5270
- package/dist/core-server/index.d.ts +1 -1
- package/dist/core-server/index.js +5356 -5380
- package/dist/core-server/presets/common-manager.js +11 -19
- package/dist/core-server/presets/common-preset.cjs +243 -242
- package/dist/core-server/presets/common-preset.js +379 -378
- package/dist/csf/index.cjs +76 -120
- package/dist/csf/index.d.ts +1 -3
- package/dist/csf/index.js +69 -113
- package/dist/docs-tools/index.cjs +1 -1
- package/dist/docs-tools/index.d.ts +2 -2
- package/dist/docs-tools/index.js +1 -1
- package/dist/instrumenter/index.cjs +1260 -1289
- package/dist/instrumenter/index.js +1344 -1348
- package/dist/manager/globals-module-info.cjs +272 -135
- package/dist/manager/globals-module-info.d.ts +1 -1
- package/dist/manager/globals-module-info.js +257 -120
- package/dist/manager/globals-runtime.js +59553 -22373
- package/dist/manager/globals.cjs +23 -19
- package/dist/manager/globals.d.ts +8 -5
- package/dist/manager/globals.js +10 -6
- package/dist/manager/runtime.js +129 -129
- package/dist/manager-api/index.cjs +1184 -1209
- package/dist/manager-api/index.d.ts +3 -3
- package/dist/manager-api/index.js +1012 -1012
- package/dist/preview/globals.cjs +21 -17
- package/dist/preview/globals.d.ts +4 -1
- package/dist/preview/globals.js +6 -2
- package/dist/preview/runtime.js +43946 -6548
- package/dist/preview-api/index.cjs +1245 -1243
- package/dist/preview-api/index.d.ts +105 -61
- package/dist/preview-api/index.js +1311 -1273
- package/dist/preview-errors.cjs +1 -1
- package/dist/preview-errors.js +1 -1
- package/dist/router/index.cjs +847 -871
- package/dist/router/index.js +193 -199
- package/dist/test/index.cjs +34778 -0
- package/dist/test/index.d.ts +186 -0
- package/dist/test/index.js +32916 -0
- package/dist/test/preview.cjs +15870 -0
- package/dist/test/preview.d.ts +54 -0
- package/dist/test/preview.js +14441 -0
- package/dist/test/spy.cjs +258 -0
- package/dist/test/spy.d.ts +66 -0
- package/dist/test/spy.js +240 -0
- package/dist/theming/create.cjs +79 -2269
- package/dist/theming/create.js +67 -841
- package/dist/theming/index.cjs +1065 -3232
- package/dist/theming/index.js +951 -1719
- package/dist/types/index.d.ts +242 -242
- package/package.json +155 -3
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { NormalizedProjectAnnotations, ProjectAnnotations, ComposedStoryFn } from 'storybook/internal/types';
|
|
2
|
+
import { Renderer as Renderer$1 } from 'storybook/internal/csf';
|
|
3
|
+
|
|
4
|
+
declare global {
|
|
5
|
+
var globalProjectAnnotations: NormalizedProjectAnnotations<any>;
|
|
6
|
+
var defaultProjectAnnotations: ProjectAnnotations<any>;
|
|
7
|
+
}
|
|
8
|
+
type WrappedStoryRef$1 = {
|
|
9
|
+
__pw_type: 'jsx' | 'importRef';
|
|
10
|
+
};
|
|
11
|
+
type UnwrappedJSXStoryRef$1 = {
|
|
12
|
+
__pw_type: 'jsx';
|
|
13
|
+
type: UnwrappedImportStoryRef$1;
|
|
14
|
+
};
|
|
15
|
+
type UnwrappedImportStoryRef$1 = ComposedStoryFn;
|
|
16
|
+
declare global {
|
|
17
|
+
function __pwUnwrapObject(storyRef: WrappedStoryRef$1): Promise<UnwrappedJSXStoryRef$1 | UnwrappedImportStoryRef$1>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare global {
|
|
21
|
+
interface SymbolConstructor {
|
|
22
|
+
readonly observable: symbol;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
declare global {
|
|
27
|
+
interface SymbolConstructor {
|
|
28
|
+
readonly observable: symbol;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
interface Renderer extends Renderer$1 {
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare global {
|
|
36
|
+
var globalProjectAnnotations: NormalizedProjectAnnotations<any>;
|
|
37
|
+
var defaultProjectAnnotations: ProjectAnnotations<any>;
|
|
38
|
+
}
|
|
39
|
+
type WrappedStoryRef = {
|
|
40
|
+
__pw_type: 'jsx' | 'importRef';
|
|
41
|
+
};
|
|
42
|
+
type UnwrappedJSXStoryRef = {
|
|
43
|
+
__pw_type: 'jsx';
|
|
44
|
+
type: UnwrappedImportStoryRef;
|
|
45
|
+
};
|
|
46
|
+
type UnwrappedImportStoryRef = ComposedStoryFn;
|
|
47
|
+
declare global {
|
|
48
|
+
function __pwUnwrapObject(storyRef: WrappedStoryRef): Promise<UnwrappedJSXStoryRef | UnwrappedImportStoryRef>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
declare const traverseArgs: (value: unknown, depth?: number, key?: string) => unknown;
|
|
52
|
+
declare const _default: () => ProjectAnnotations<Renderer>;
|
|
53
|
+
|
|
54
|
+
export { _default as default, traverseArgs };
|