@storybook/react 10.5.2 → 10.5.3

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_y5958rru2l from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_y5958rru2l from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_y5958rru2l 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_y5958rru2l.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_y5958rru2l.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_y5958rru2l.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -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_y5958rru2l from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_y5958rru2l from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_y5958rru2l 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_y5958rru2l.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_y5958rru2l.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_y5958rru2l.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-ZUN4ALWM.js";
18
+ } from "../_node-chunks/chunk-HYS6O2DW.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-3HUEQMBJ.js";
8
+ } from "./_browser-chunks/chunk-7HUHAOMV.js";
9
9
  import {
10
10
  applyDecorators
11
11
  } from "./_browser-chunks/chunk-DDIRQRCA.js";
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  __definePreview
3
- } from "./_browser-chunks/chunk-VYUIDWDB.js";
3
+ } from "./_browser-chunks/chunk-64GECWYS.js";
4
4
  import {
5
5
  entry_preview_exports,
6
6
  renderToCanvas
7
- } from "./_browser-chunks/chunk-3HUEQMBJ.js";
7
+ } from "./_browser-chunks/chunk-7HUHAOMV.js";
8
8
  import {
9
9
  entry_preview_argtypes_exports
10
10
  } from "./_browser-chunks/chunk-5GZAZJC7.js";
package/dist/preset.js CHANGED
@@ -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_y5958rru2l from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_y5958rru2l from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_y5958rru2l 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_y5958rru2l.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_y5958rru2l.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_y5958rru2l.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -23,7 +23,7 @@ import {
23
23
  parseWithReactDocgen,
24
24
  path,
25
25
  resolveStoryFileComponents
26
- } from "./_node-chunks/chunk-ZUN4ALWM.js";
26
+ } from "./_node-chunks/chunk-HYS6O2DW.js";
27
27
 
28
28
  // src/preset.ts
29
29
  import path2, { join as join2 } from "node:path";
package/dist/preview.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  __definePreview
3
- } from "./_browser-chunks/chunk-VYUIDWDB.js";
4
- import "./_browser-chunks/chunk-3HUEQMBJ.js";
3
+ } from "./_browser-chunks/chunk-64GECWYS.js";
4
+ import "./_browser-chunks/chunk-7HUHAOMV.js";
5
5
  import "./_browser-chunks/chunk-5GZAZJC7.js";
6
6
  import "./_browser-chunks/chunk-CS62LUFX.js";
7
7
  import "./_browser-chunks/chunk-DDIRQRCA.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/react",
3
- "version": "10.5.2",
3
+ "version": "10.5.3",
4
4
  "description": "Storybook React renderer",
5
5
  "keywords": [
6
6
  "storybook"
@@ -54,7 +54,7 @@
54
54
  ],
55
55
  "dependencies": {
56
56
  "@storybook/global": "^5.0.0",
57
- "@storybook/react-dom-shim": "10.5.2",
57
+ "@storybook/react-dom-shim": "10.5.3",
58
58
  "react-docgen": "^8.0.2",
59
59
  "react-docgen-typescript": "^2.2.2"
60
60
  },
@@ -87,7 +87,7 @@
87
87
  "@types/react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
88
88
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
89
89
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
90
- "storybook": "^10.5.2",
90
+ "storybook": "^10.5.3",
91
91
  "typescript": ">= 4.9.x"
92
92
  },
93
93
  "peerDependenciesMeta": {