storybook 9.0.10 → 9.0.12
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 +43 -43
- package/dist/bin/index.js +43 -43
- package/dist/cli/bin/index.cjs +629 -629
- package/dist/cli/bin/index.js +202 -201
- package/dist/cli/index.cjs +13788 -13797
- package/dist/cli/index.d.ts +712 -15
- package/dist/cli/index.js +12364 -12372
- package/dist/common/index.cjs +10997 -10888
- package/dist/common/index.d.ts +348 -66
- package/dist/common/index.js +24315 -24203
- package/dist/components/index.cjs +5 -3
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +5 -3
- package/dist/core-server/index.cjs +4838 -4791
- package/dist/core-server/index.d.ts +10 -1
- package/dist/core-server/index.js +5746 -5699
- package/dist/core-server/presets/common-manager.js +257 -243
- package/dist/core-server/presets/common-preset.cjs +1047 -1045
- package/dist/core-server/presets/common-preset.js +2053 -2048
- package/dist/csf-tools/index.cjs +226 -224
- package/dist/csf-tools/index.js +116 -112
- package/dist/manager/globals-runtime.js +6 -4
- package/dist/manager-api/index.cjs +73 -73
- package/dist/manager-api/index.js +140 -140
- package/dist/node-logger/index.cjs +8520 -994
- package/dist/node-logger/index.d.ts +395 -2
- package/dist/node-logger/index.js +8535 -995
- package/dist/preview/runtime.js +4 -3
- package/dist/preview-api/index.cjs +4 -3
- package/dist/preview-api/index.js +4 -3
- package/dist/server-errors.cjs +201 -242
- package/dist/server-errors.d.ts +1 -12
- package/dist/server-errors.js +182 -223
- package/dist/telemetry/index.cjs +1224 -1223
- package/dist/telemetry/index.d.ts +3 -2
- package/dist/telemetry/index.js +1069 -1066
- package/dist/types/index.d.ts +3 -3
- package/package.json +2 -1
package/dist/preview/runtime.js
CHANGED
|
@@ -44512,7 +44512,7 @@ var MR = class MR {
|
|
|
44512
44512
|
B.reason && S.add(B.reason);
|
|
44513
44513
|
}, "onUnhandledRejection");
|
|
44514
44514
|
if (this.renderOptions.autoplay && r && m && this.phase !== "errored") {
|
|
44515
|
-
window
|
|
44515
|
+
window?.addEventListener?.("error", P), window?.addEventListener?.("unhandledrejection", O), this.disableKeyListeners = !0;
|
|
44516
44516
|
try {
|
|
44517
44517
|
if (_ ? await m(T) : (T.mount = async () => {
|
|
44518
44518
|
throw new xn({ playFunction: m.toString() });
|
|
@@ -44529,7 +44529,8 @@ var MR = class MR {
|
|
|
44529
44529
|
if (!C && S.size > 0 && this.channel.emit(
|
|
44530
44530
|
gb,
|
|
44531
44531
|
Array.from(S).map(W3)
|
|
44532
|
-
), this.disableKeyListeners = !1, window
|
|
44532
|
+
), this.disableKeyListeners = !1, window?.removeEventListener?.("unhandledrejection", O), window?.removeEventListener?.("error", P),
|
|
44533
|
+
b.aborted)
|
|
44533
44534
|
return;
|
|
44534
44535
|
}
|
|
44535
44536
|
await this.runPhase(b, "completing", async () => {
|
|
@@ -44596,7 +44597,7 @@ var MR = class MR {
|
|
|
44596
44597
|
}
|
|
44597
44598
|
await new Promise((r) => setTimeout(r, 0));
|
|
44598
44599
|
}
|
|
44599
|
-
window
|
|
44600
|
+
window?.location?.reload?.(), await new Promise(() => {
|
|
44600
44601
|
});
|
|
44601
44602
|
}
|
|
44602
44603
|
};
|
|
@@ -5810,7 +5810,7 @@ var De = class {
|
|
|
5810
5810
|
F.reason && f.add(F.reason);
|
|
5811
5811
|
}, "onUnhandledRejection");
|
|
5812
5812
|
if (this.renderOptions.autoplay && r && w && this.phase !== "errored") {
|
|
5813
|
-
window
|
|
5813
|
+
window?.addEventListener?.("error", h), window?.addEventListener?.("unhandledrejection", g), this.disableKeyListeners = !0;
|
|
5814
5814
|
try {
|
|
5815
5815
|
if (P ? await w(m) : (m.mount = async () => {
|
|
5816
5816
|
throw new or.MountMustBeDestructuredError({ playFunction: w.toString() });
|
|
@@ -5827,7 +5827,8 @@ var De = class {
|
|
|
5827
5827
|
if (!v && f.size > 0 && this.channel.emit(
|
|
5828
5828
|
Z.UNHANDLED_ERRORS_WHILE_PLAYING,
|
|
5829
5829
|
Array.from(f).map(vs)
|
|
5830
|
-
), this.disableKeyListeners = !1, window
|
|
5830
|
+
), this.disableKeyListeners = !1, window?.removeEventListener?.("unhandledrejection", g), window?.removeEventListener?.("error", h),
|
|
5831
|
+
x.aborted)
|
|
5831
5832
|
return;
|
|
5832
5833
|
}
|
|
5833
5834
|
await this.runPhase(x, "completing", async () => {
|
|
@@ -5894,7 +5895,7 @@ var De = class {
|
|
|
5894
5895
|
}
|
|
5895
5896
|
await new Promise((r) => setTimeout(r, 0));
|
|
5896
5897
|
}
|
|
5897
|
-
window
|
|
5898
|
+
window?.location?.reload?.(), await new Promise(() => {
|
|
5898
5899
|
});
|
|
5899
5900
|
}
|
|
5900
5901
|
};
|
|
@@ -5812,7 +5812,7 @@ var Kr = class Kr {
|
|
|
5812
5812
|
F.reason && m.add(F.reason);
|
|
5813
5813
|
}, "onUnhandledRejection");
|
|
5814
5814
|
if (this.renderOptions.autoplay && r && g && this.phase !== "errored") {
|
|
5815
|
-
window
|
|
5815
|
+
window?.addEventListener?.("error", b), window?.addEventListener?.("unhandledrejection", S), this.disableKeyListeners = !0;
|
|
5816
5816
|
try {
|
|
5817
5817
|
if (E ? await g(y) : (y.mount = async () => {
|
|
5818
5818
|
throw new bc({ playFunction: g.toString() });
|
|
@@ -5829,7 +5829,8 @@ var Kr = class Kr {
|
|
|
5829
5829
|
if (!P && m.size > 0 && this.channel.emit(
|
|
5830
5830
|
gc,
|
|
5831
5831
|
Array.from(m).map(Ci)
|
|
5832
|
-
), this.disableKeyListeners = !1, window
|
|
5832
|
+
), this.disableKeyListeners = !1, window?.removeEventListener?.("unhandledrejection", S), window?.removeEventListener?.("error", b),
|
|
5833
|
+
x.aborted)
|
|
5833
5834
|
return;
|
|
5834
5835
|
}
|
|
5835
5836
|
await this.runPhase(x, "completing", async () => {
|
|
@@ -5896,7 +5897,7 @@ var Kr = class Kr {
|
|
|
5896
5897
|
}
|
|
5897
5898
|
await new Promise((r) => setTimeout(r, 0));
|
|
5898
5899
|
}
|
|
5899
|
-
window
|
|
5900
|
+
window?.location?.reload?.(), await new Promise(() => {
|
|
5900
5901
|
});
|
|
5901
5902
|
}
|
|
5902
5903
|
};
|