@storybook/react 10.5.2 → 10.6.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/_browser-chunks/{chunk-VYUIDWDB.js → chunk-64GECWYS.js} +1 -1
- package/dist/_browser-chunks/{chunk-3HUEQMBJ.js → chunk-7HUHAOMV.js} +7 -7
- package/dist/_node-chunks/{chunk-ZUN4ALWM.js → chunk-FSVXZJCS.js} +18 -18
- package/dist/chunk-ojHmM-yX.d.ts +1104 -0
- package/dist/docgen/docgen-worker.js +7 -7
- package/dist/entry-preview.js +1 -1
- package/dist/index.d.ts +6 -1184
- package/dist/index.js +2 -2
- package/dist/playwright.d.ts +2 -1
- package/dist/preset.js +7 -7
- package/dist/preview.d.ts +2 -1154
- package/dist/preview.js +2 -2
- package/package.json +3 -3
|
@@ -180,7 +180,9 @@ var decorators = [
|
|
|
180
180
|
return await new Promise((resolve) => {
|
|
181
181
|
setTimeout(() => {
|
|
182
182
|
resolve();
|
|
183
|
-
}, 0)
|
|
183
|
+
}, 0);
|
|
184
|
+
let jestFakeTimers = getActiveJestFakeTimers(globalThis);
|
|
185
|
+
jestFakeTimers && jestFakeTimers.advanceTimersByTime(0);
|
|
184
186
|
}), result;
|
|
185
187
|
} finally {
|
|
186
188
|
setReactActEnvironment(previousActEnvironment);
|
|
@@ -194,12 +196,10 @@ var decorators = [
|
|
|
194
196
|
} catch {
|
|
195
197
|
}
|
|
196
198
|
};
|
|
197
|
-
function
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
Object.prototype.hasOwnProperty.call(setTimeout, "clock")
|
|
202
|
-
) : !1;
|
|
199
|
+
function getActiveJestFakeTimers(g) {
|
|
200
|
+
let jest = Reflect.get(g, "jest");
|
|
201
|
+
return jest == null ? void 0 : /* legacy timers */ setTimeout._isMockFunction === !0 || // modern timers
|
|
202
|
+
Object.prototype.hasOwnProperty.call(setTimeout, "clock") ? jest : void 0;
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
export {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_98cfzo97hyt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_98cfzo97hyt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_98cfzo97hyt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_98cfzo97hyt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_98cfzo97hyt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_98cfzo97hyt.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12369,18 +12369,18 @@ var require_core2 = __commonJS({
|
|
|
12369
12369
|
"node:sea": [">= 20.12 && < 21", ">= 21.7"],
|
|
12370
12370
|
smalloc: ">= 0.11.5 && < 3",
|
|
12371
12371
|
"node:sqlite": [">= 22.13 && < 23", ">= 23.4"],
|
|
12372
|
-
_stream_duplex: ">= 0.9.4",
|
|
12373
|
-
"node:_stream_duplex": [">= 14.18 && < 15", ">= 16"],
|
|
12374
|
-
_stream_transform: ">= 0.9.4",
|
|
12375
|
-
"node:_stream_transform": [">= 14.18 && < 15", ">= 16"],
|
|
12376
|
-
_stream_wrap: ">= 1.4.1",
|
|
12377
|
-
"node:_stream_wrap": [">= 14.18 && < 15", ">= 16"],
|
|
12378
|
-
_stream_passthrough: ">= 0.9.4",
|
|
12379
|
-
"node:_stream_passthrough": [">= 14.18 && < 15", ">= 16"],
|
|
12380
|
-
_stream_readable: ">= 0.9.4",
|
|
12381
|
-
"node:_stream_readable": [">= 14.18 && < 15", ">= 16"],
|
|
12382
|
-
_stream_writable: ">= 0.9.4",
|
|
12383
|
-
"node:_stream_writable": [">= 14.18 && < 15", ">= 16"],
|
|
12372
|
+
_stream_duplex: ">= 0.9.4 && < 26",
|
|
12373
|
+
"node:_stream_duplex": [">= 14.18 && < 15", ">= 16 && < 26"],
|
|
12374
|
+
_stream_transform: ">= 0.9.4 && < 26",
|
|
12375
|
+
"node:_stream_transform": [">= 14.18 && < 15", ">= 16 && < 26"],
|
|
12376
|
+
_stream_wrap: ">= 1.4.1 && < 26",
|
|
12377
|
+
"node:_stream_wrap": [">= 14.18 && < 15", ">= 16 && < 26"],
|
|
12378
|
+
_stream_passthrough: ">= 0.9.4 && < 26",
|
|
12379
|
+
"node:_stream_passthrough": [">= 14.18 && < 15", ">= 16 && < 26"],
|
|
12380
|
+
_stream_readable: ">= 0.9.4 && < 26",
|
|
12381
|
+
"node:_stream_readable": [">= 14.18 && < 15", ">= 16 && < 26"],
|
|
12382
|
+
_stream_writable: ">= 0.9.4 && < 26",
|
|
12383
|
+
"node:_stream_writable": [">= 14.18 && < 15", ">= 16 && < 26"],
|
|
12384
12384
|
stream: !0,
|
|
12385
12385
|
"node:stream": [">= 14.18 && < 15", ">= 16"],
|
|
12386
12386
|
"stream/consumers": ">= 16.7",
|