@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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  entry_preview_exports
3
- } from "./chunk-3HUEQMBJ.js";
3
+ } from "./chunk-7HUHAOMV.js";
4
4
  import {
5
5
  entry_preview_argtypes_exports
6
6
  } from "./chunk-5GZAZJC7.js";
@@ -180,7 +180,9 @@ var decorators = [
180
180
  return await new Promise((resolve) => {
181
181
  setTimeout(() => {
182
182
  resolve();
183
- }, 0), jestFakeTimersAreEnabled() && jest.advanceTimersByTime(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 jestFakeTimersAreEnabled() {
198
- return typeof jest < "u" && jest !== null ? (
199
- // legacy timers
200
- setTimeout._isMockFunction === !0 || // modern timers
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 CJS_COMPAT_NODE_URL_0ccojhbbgp74 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_0ccojhbbgp74 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_0ccojhbbgp74 from "node:module";
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 = CJS_COMPAT_NODE_URL_0ccojhbbgp74.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_0ccojhbbgp74.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_0ccojhbbgp74.createRequire(import.meta.url);
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",