storybook 9.1.0-alpha.6 → 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/assets/browser/favicon-wrapper.svg +46 -0
- package/assets/browser/favicon.svg +1 -1
- package/dist/bin/index.cjs +43 -43
- package/dist/bin/index.js +43 -43
- package/dist/cli/bin/index.cjs +513 -513
- package/dist/cli/bin/index.js +535 -535
- package/dist/cli/index.cjs +2454 -2453
- package/dist/cli/index.d.ts +10 -3
- package/dist/cli/index.js +2436 -2435
- package/dist/common/index.cjs +64 -61
- package/dist/common/index.d.ts +9 -3
- package/dist/common/index.js +64 -61
- package/dist/components/index.cjs +1459 -1447
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +407 -394
- package/dist/core-server/index.cjs +5833 -5819
- package/dist/core-server/index.d.ts +4 -1
- package/dist/core-server/index.js +4848 -4835
- package/dist/core-server/presets/common-manager.js +3403 -3332
- package/dist/core-server/presets/common-preset.cjs +1831 -1837
- package/dist/core-server/presets/common-preset.js +1787 -1792
- package/dist/csf/index.cjs +2536 -736
- package/dist/csf/index.d.ts +250 -9
- package/dist/csf/index.js +2558 -749
- package/dist/instrumenter/index.cjs +1150 -1099
- package/dist/instrumenter/index.d.ts +1 -0
- package/dist/instrumenter/index.js +1261 -1214
- package/dist/manager/globals-runtime.js +21313 -23957
- package/dist/manager/runtime.js +3713 -3534
- package/dist/manager-api/index.cjs +3 -3
- package/dist/manager-api/index.d.ts +8 -531
- package/dist/manager-api/index.js +3 -3
- package/dist/node-logger/index.cjs +1620 -1620
- package/dist/node-logger/index.js +1619 -1619
- package/dist/preview/runtime.js +13337 -16032
- package/dist/preview-api/index.cjs +273 -271
- package/dist/preview-api/index.d.ts +4 -1
- package/dist/preview-api/index.js +14 -12
- package/dist/telemetry/index.cjs +500 -500
- package/dist/telemetry/index.js +478 -478
- package/dist/test/index.cjs +9136 -9815
- package/dist/test/index.js +8339 -9025
- package/dist/types/index.d.ts +12 -12
- package/package.json +5 -196
- package/dist/actions/preview.cjs +0 -159
- package/dist/actions/preview.d.ts +0 -45
- package/dist/actions/preview.js +0 -149
- package/dist/backgrounds/index.cjs +0 -16
- package/dist/backgrounds/index.d.ts +0 -2
- package/dist/backgrounds/index.js +0 -0
- package/dist/backgrounds/preview.cjs +0 -143
- package/dist/backgrounds/preview.d.ts +0 -53
- package/dist/backgrounds/preview.js +0 -127
- package/dist/component-testing/index.cjs +0 -23
- package/dist/component-testing/index.d.ts +0 -3
- package/dist/component-testing/index.js +0 -5
- package/dist/component-testing/preview.cjs +0 -40
- package/dist/component-testing/preview.d.ts +0 -5
- package/dist/component-testing/preview.js +0 -25
- package/dist/controls/preview.cjs +0 -26
- package/dist/controls/preview.d.ts +0 -43
- package/dist/controls/preview.js +0 -9
- package/dist/highlight/preview.cjs +0 -590
- package/dist/highlight/preview.d.ts +0 -20
- package/dist/highlight/preview.js +0 -575
- package/dist/measure/index.cjs +0 -16
- package/dist/measure/index.d.ts +0 -2
- package/dist/measure/index.js +0 -0
- package/dist/measure/preview.cjs +0 -466
- package/dist/measure/preview.d.ts +0 -25
- package/dist/measure/preview.js +0 -450
- package/dist/outline/index.cjs +0 -16
- package/dist/outline/index.d.ts +0 -2
- package/dist/outline/index.js +0 -0
- package/dist/outline/preview.cjs +0 -518
- package/dist/outline/preview.d.ts +0 -25
- package/dist/outline/preview.js +0 -486
- package/dist/test/preview.cjs +0 -73
- package/dist/test/preview.d.ts +0 -17
- package/dist/test/preview.js +0 -66
- package/dist/viewport/preview.cjs +0 -35
- package/dist/viewport/preview.d.ts +0 -62
- package/dist/viewport/preview.js +0 -19
|
@@ -397,7 +397,10 @@ declare function setProjectAnnotations<TRenderer extends Renderer = Renderer>(pr
|
|
|
397
397
|
declare function composeStory<TRenderer extends Renderer = Renderer, TArgs extends Args = Args>(storyAnnotations: LegacyStoryAnnotationsOrFn<TRenderer>, componentAnnotations: ComponentAnnotations<TRenderer, TArgs>, projectAnnotations?: ProjectAnnotations<TRenderer>, defaultConfig?: ProjectAnnotations<TRenderer>, exportsName?: string): ComposedStoryFn<TRenderer, Partial<TArgs>>;
|
|
398
398
|
declare function composeStories<TModule extends Store_CSFExports>(storiesImport: TModule, globalConfig: ProjectAnnotations<Renderer>, composeStoryFn?: ComposeStoryFn): {};
|
|
399
399
|
type WrappedStoryRef = {
|
|
400
|
-
__pw_type: 'jsx'
|
|
400
|
+
__pw_type: 'jsx';
|
|
401
|
+
props: Record<string, any>;
|
|
402
|
+
} | {
|
|
403
|
+
__pw_type: 'importRef';
|
|
401
404
|
};
|
|
402
405
|
type UnwrappedJSXStoryRef = {
|
|
403
406
|
__pw_type: 'jsx';
|
|
@@ -3489,15 +3489,16 @@ function Zs(r) {
|
|
|
3489
3489
|
|
|
3490
3490
|
More info: https://storybook.js.org/docs/api/portable-stories-playwright
|
|
3491
3491
|
`);
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3492
|
+
let { props: a, ...l } = s;
|
|
3493
|
+
await t.evaluate(async (d) => {
|
|
3494
|
+
let p = await globalThis.__pwUnwrapObject?.(d);
|
|
3495
|
+
return ("__pw_type" in p ? p.type : p)?.load?.();
|
|
3496
|
+
}, l);
|
|
3497
|
+
let c = await e(s, ...i);
|
|
3498
|
+
return await t.evaluate(async (d) => {
|
|
3499
|
+
let p = await globalThis.__pwUnwrapObject?.(d), u = "__pw_type" in p ? p.type : p, y = document.querySelector("#root");
|
|
3500
|
+
return u?.play?.({ canvasElement: y });
|
|
3501
|
+
}, l), c;
|
|
3501
3502
|
});
|
|
3502
3503
|
}, "mount")
|
|
3503
3504
|
});
|
|
@@ -3969,7 +3970,7 @@ var Jr = class Jr {
|
|
|
3969
3970
|
v.reason && E.add(v.reason);
|
|
3970
3971
|
}, "onUnhandledRejection");
|
|
3971
3972
|
if (this.renderOptions.autoplay && t && g && this.phase !== "errored") {
|
|
3972
|
-
window
|
|
3973
|
+
window?.addEventListener?.("error", D), window?.addEventListener?.("unhandledrejection", k), this.disableKeyListeners = !0;
|
|
3973
3974
|
try {
|
|
3974
3975
|
if (x ? await g(f) : (f.mount = async () => {
|
|
3975
3976
|
throw new fi({ playFunction: g.toString() });
|
|
@@ -3986,7 +3987,8 @@ var Jr = class Jr {
|
|
|
3986
3987
|
if (!w && E.size > 0 && this.channel.emit(
|
|
3987
3988
|
ui,
|
|
3988
3989
|
Array.from(E).map(Oo)
|
|
3989
|
-
), this.disableKeyListeners = !1, window
|
|
3990
|
+
), this.disableKeyListeners = !1, window?.removeEventListener?.("unhandledrejection", k), window?.removeEventListener?.("error", D),
|
|
3991
|
+
m.aborted)
|
|
3990
3992
|
return;
|
|
3991
3993
|
}
|
|
3992
3994
|
await this.runPhase(m, "completing", async () => {
|
|
@@ -4053,7 +4055,7 @@ var Jr = class Jr {
|
|
|
4053
4055
|
}
|
|
4054
4056
|
await new Promise((t) => setTimeout(t, 0));
|
|
4055
4057
|
}
|
|
4056
|
-
window
|
|
4058
|
+
window?.location?.reload?.(), await new Promise(() => {
|
|
4057
4059
|
});
|
|
4058
4060
|
}
|
|
4059
4061
|
};
|