storybook 9.1.0-alpha.9 → 9.1.0-beta.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/bin/index.cjs +66 -66
- package/dist/bin/index.js +65 -65
- package/dist/cli/bin/index.cjs +1 -1
- package/dist/cli/bin/index.js +1 -1
- package/dist/common/index.cjs +2103 -2103
- package/dist/common/index.js +3197 -3197
- package/dist/components/index.cjs +289 -290
- package/dist/components/index.js +2 -3
- package/dist/core-server/presets/common-manager.js +2243 -2228
- package/dist/core-server/presets/common-preset.cjs +4761 -4759
- package/dist/core-server/presets/common-preset.js +9645 -9643
- package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.cjs +2 -1
- package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +2 -1
- package/dist/csf/index.cjs +40 -41
- package/dist/csf/index.js +2 -3
- package/dist/instrumenter/index.cjs +370 -352
- package/dist/instrumenter/index.d.ts +24 -3
- package/dist/instrumenter/index.js +268 -250
- package/dist/manager/globals-runtime.js +38 -21
- package/dist/manager-api/index.cjs +1 -1
- package/dist/manager-api/index.d.ts +8 -534
- package/dist/manager-api/index.js +1 -1
- package/dist/preview/runtime.js +3894 -3870
- package/dist/preview-api/index.cjs +43 -37
- package/dist/preview-api/index.d.ts +3 -1
- package/dist/preview-api/index.js +234 -227
- package/dist/telemetry/index.cjs +506 -507
- package/dist/telemetry/index.js +974 -975
- package/package.json +1 -1
|
@@ -1,4 +1,25 @@
|
|
|
1
|
-
import { StoryId } from 'storybook/internal/types';
|
|
1
|
+
import { NormalizedProjectAnnotations, ProjectAnnotations, ComposedStoryFn, StoryId } from 'storybook/internal/types';
|
|
2
|
+
|
|
3
|
+
declare global {
|
|
4
|
+
var globalProjectAnnotations: NormalizedProjectAnnotations<any>;
|
|
5
|
+
var defaultProjectAnnotations: ProjectAnnotations<any>;
|
|
6
|
+
}
|
|
7
|
+
type WrappedStoryRef = {
|
|
8
|
+
__pw_type: 'jsx';
|
|
9
|
+
props: Record<string, any>;
|
|
10
|
+
} | {
|
|
11
|
+
__pw_type: 'importRef';
|
|
12
|
+
};
|
|
13
|
+
type UnwrappedJSXStoryRef = {
|
|
14
|
+
__pw_type: 'jsx';
|
|
15
|
+
type: UnwrappedImportStoryRef;
|
|
16
|
+
};
|
|
17
|
+
type UnwrappedImportStoryRef = ComposedStoryFn;
|
|
18
|
+
declare global {
|
|
19
|
+
function __pwUnwrapObject(storyRef: WrappedStoryRef): Promise<UnwrappedJSXStoryRef | UnwrappedImportStoryRef>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
type RenderPhase = 'preparing' | 'loading' | 'beforeEach' | 'rendering' | 'playing' | 'played' | 'completing' | 'completed' | 'afterEach' | 'finished' | 'aborted' | 'errored';
|
|
2
23
|
|
|
3
24
|
interface Call {
|
|
4
25
|
id: string;
|
|
@@ -59,7 +80,7 @@ interface SyncPayload {
|
|
|
59
80
|
pausedAt?: Call['id'];
|
|
60
81
|
}
|
|
61
82
|
interface State {
|
|
62
|
-
renderPhase
|
|
83
|
+
renderPhase: RenderPhase;
|
|
63
84
|
isDebugging: boolean;
|
|
64
85
|
isPlaying: boolean;
|
|
65
86
|
isLocked: boolean;
|
|
@@ -103,4 +124,4 @@ declare const EVENTS: {
|
|
|
103
124
|
END: string;
|
|
104
125
|
};
|
|
105
126
|
|
|
106
|
-
export { type Call, type CallRef, CallStates, type ControlStates, EVENTS, type ElementRef, type LogItem, type Options, type State, type SyncPayload, instrument };
|
|
127
|
+
export { type Call, type CallRef, CallStates, type ControlStates, EVENTS, type ElementRef, type LogItem, type Options, type RenderPhase, type State, type SyncPayload, instrument };
|