@storybook/react 0.0.0-pr-35341-sha-e49cb7a9 → 0.0.0-pr-35482-sha-e0c7884d

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.
@@ -180,9 +180,7 @@ var decorators = [
180
180
  return await new Promise((resolve) => {
181
181
  setTimeout(() => {
182
182
  resolve();
183
- }, 0);
184
- let jestFakeTimers = getActiveJestFakeTimers(globalThis);
185
- jestFakeTimers && jestFakeTimers.advanceTimersByTime(0);
183
+ }, 0), jestFakeTimersAreEnabled() && jest.advanceTimersByTime(0);
186
184
  }), result;
187
185
  } finally {
188
186
  setReactActEnvironment(previousActEnvironment);
@@ -196,10 +194,12 @@ var decorators = [
196
194
  } catch {
197
195
  }
198
196
  };
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;
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;
203
203
  }
204
204
 
205
205
  export {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  entry_preview_exports
3
- } from "./chunk-7HUHAOMV.js";
3
+ } from "./chunk-3HUEQMBJ.js";
4
4
  import {
5
5
  entry_preview_argtypes_exports
6
6
  } from "./chunk-5GZAZJC7.js";
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_3f5f631546v from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_3f5f631546v from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_3f5f631546v from "node:module";
1
+ import CJS_COMPAT_NODE_URL_6l0iwlg1un3 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_6l0iwlg1un3 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_6l0iwlg1un3 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_3f5f631546v.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_3f5f631546v.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_3f5f631546v.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_6l0iwlg1un3.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_6l0iwlg1un3.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_6l0iwlg1un3.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 && < 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"],
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"],
12384
12384
  stream: !0,
12385
12385
  "node:stream": [">= 14.18 && < 15", ">= 16"],
12386
12386
  "stream/consumers": ">= 16.7",
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_3f5f631546v from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_3f5f631546v from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_3f5f631546v from "node:module";
1
+ import CJS_COMPAT_NODE_URL_6l0iwlg1un3 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_6l0iwlg1un3 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_6l0iwlg1un3 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_3f5f631546v.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_3f5f631546v.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_3f5f631546v.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_6l0iwlg1un3.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_6l0iwlg1un3.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_6l0iwlg1un3.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -15,7 +15,7 @@ import {
15
15
  extractArgTypes,
16
16
  path,
17
17
  resolveStoryFileComponents
18
- } from "../_node-chunks/chunk-PSH72EED.js";
18
+ } from "../_node-chunks/chunk-W53I7E46.js";
19
19
 
20
20
  // src/docgen/docgen-worker.ts
21
21
  import { STORY_FILE_TEST_REGEXP, getStoryImportPathFromEntry as getStoryImportPathFromEntry2 } from "storybook/internal/common";
@@ -5,7 +5,7 @@ import {
5
5
  parameters,
6
6
  render,
7
7
  renderToCanvas
8
- } from "./_browser-chunks/chunk-7HUHAOMV.js";
8
+ } from "./_browser-chunks/chunk-3HUEQMBJ.js";
9
9
  import {
10
10
  applyDecorators
11
11
  } from "./_browser-chunks/chunk-DDIRQRCA.js";