@storybook/react 10.5.2 → 10.5.4
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-BWMDCOB3.js} +6 -6
- package/dist/docgen/docgen-worker.js +7 -7
- package/dist/entry-preview.js +1 -1
- package/dist/index.js +2 -2
- package/dist/preset.js +7 -7
- 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_i14kmo5drf from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_i14kmo5drf from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_i14kmo5drf from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_i14kmo5drf.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_i14kmo5drf.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_i14kmo5drf.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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_i14kmo5drf from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_i14kmo5drf from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_i14kmo5drf from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_i14kmo5drf.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_i14kmo5drf.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_i14kmo5drf.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-
|
|
18
|
+
} from "../_node-chunks/chunk-BWMDCOB3.js";
|
|
19
19
|
|
|
20
20
|
// src/docgen/docgen-worker.ts
|
|
21
21
|
import { STORY_FILE_TEST_REGEXP, getStoryImportPathFromEntry as getStoryImportPathFromEntry2 } from "storybook/internal/common";
|
package/dist/entry-preview.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__definePreview
|
|
3
|
-
} from "./_browser-chunks/chunk-
|
|
3
|
+
} from "./_browser-chunks/chunk-64GECWYS.js";
|
|
4
4
|
import {
|
|
5
5
|
entry_preview_exports,
|
|
6
6
|
renderToCanvas
|
|
7
|
-
} from "./_browser-chunks/chunk-
|
|
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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_i14kmo5drf from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_i14kmo5drf from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_i14kmo5drf from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_i14kmo5drf.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_i14kmo5drf.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_i14kmo5drf.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-
|
|
26
|
+
} from "./_node-chunks/chunk-BWMDCOB3.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-
|
|
4
|
-
import "./_browser-chunks/chunk-
|
|
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.
|
|
3
|
+
"version": "10.5.4",
|
|
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.
|
|
57
|
+
"@storybook/react-dom-shim": "10.5.4",
|
|
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.
|
|
90
|
+
"storybook": "^10.5.4",
|
|
91
91
|
"typescript": ">= 4.9.x"
|
|
92
92
|
},
|
|
93
93
|
"peerDependenciesMeta": {
|