@storybook/preset-react-webpack 11.0.0-beta.2 → 11.0.0-beta.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.
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_u7h7cccg9s from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_u7h7cccg9s from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_u7h7cccg9s.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_u7h7cccg9s.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_u7h7cccg9s.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
1
|
+
import { createRequire as CJS_COMPAT_CREATE_REQUIRE_41i53kaky21 } from "node:module";var require = CJS_COMPAT_CREATE_REQUIRE_41i53kaky21(import.meta.url);
|
|
12
2
|
var __create = Object.create;
|
|
13
3
|
var __defProp = Object.defineProperty;
|
|
14
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_u7h7cccg9s from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_u7h7cccg9s from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_u7h7cccg9s.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_u7h7cccg9s.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_u7h7cccg9s.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
import "./_node-chunks/chunk-RYTQ27I2.js";
|
|
1
|
+
import "./_node-chunks/chunk-CFINOCOZ.js";
|
|
13
2
|
|
|
14
3
|
// src/framework-preset-react-docs.ts
|
|
15
4
|
import { fileURLToPath } from "node:url";
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_u7h7cccg9s from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_u7h7cccg9s from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_u7h7cccg9s.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_u7h7cccg9s.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_u7h7cccg9s.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
import "./_node-chunks/chunk-RYTQ27I2.js";
|
|
1
|
+
import "./_node-chunks/chunk-CFINOCOZ.js";
|
|
13
2
|
|
|
14
3
|
// src/index.ts
|
|
15
4
|
import { fileURLToPath } from "node:url";
|
|
@@ -1,19 +1,8 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_u7h7cccg9s from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_u7h7cccg9s from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_u7h7cccg9s from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_u7h7cccg9s.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_u7h7cccg9s.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_u7h7cccg9s.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
1
|
import {
|
|
13
2
|
__commonJS,
|
|
14
3
|
__require,
|
|
15
4
|
__toESM
|
|
16
|
-
} from "../_node-chunks/chunk-
|
|
5
|
+
} from "../_node-chunks/chunk-CFINOCOZ.js";
|
|
17
6
|
|
|
18
7
|
// ../../../node_modules/tsconfig-paths/lib/filesystem.js
|
|
19
8
|
var require_filesystem = __commonJS({
|
|
@@ -2559,7 +2548,7 @@ function encodeInteger(builder, num) {
|
|
|
2559
2548
|
function encodeSign(num) {
|
|
2560
2549
|
return num < 0 ? -num << 1 | 1 : num << 1;
|
|
2561
2550
|
}
|
|
2562
|
-
var bufLength = 1024 * 16, td = typeof TextDecoder < "u" ? new TextDecoder() : typeof Buffer < "u" ? {
|
|
2551
|
+
var bufLength = 1024 * 16, td = typeof TextDecoder < "u" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer < "u" ? {
|
|
2563
2552
|
decode(buf) {
|
|
2564
2553
|
return Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength).toString();
|
|
2565
2554
|
}
|
|
@@ -2709,7 +2698,7 @@ function getBtoa() {
|
|
|
2709
2698
|
throw new MagicStringError("unsupported environment: `btoa` or `Buffer` is required");
|
|
2710
2699
|
};
|
|
2711
2700
|
}
|
|
2712
|
-
var btoa = getBtoa(), SourceMap = class {
|
|
2701
|
+
var btoa = /* @__PURE__ */ getBtoa(), SourceMap = class {
|
|
2713
2702
|
constructor(properties) {
|
|
2714
2703
|
if (this.version = 3, this.file = properties.file, this.sources = properties.sources, this.sourcesContent = properties.sourcesContent, this.names = properties.names, this.mappings = typeof properties.mappings == "string" ? properties.mappings : encode(properties.mappings), typeof properties.x_google_ignoreList < "u" && (this.x_google_ignoreList = properties.x_google_ignoreList), typeof properties.debugId < "u" && (this.debugId = properties.debugId), typeof properties.rangeMappings < "u") {
|
|
2715
2704
|
let shouldOutputRangeMapping = !1;
|
|
@@ -2777,11 +2766,11 @@ var toString = Object.prototype.toString;
|
|
|
2777
2766
|
function isObject(thing) {
|
|
2778
2767
|
return toString.call(thing) === "[object Object]";
|
|
2779
2768
|
}
|
|
2780
|
-
var BASE64_CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", intToChar2 = (() => {
|
|
2781
|
-
let chars2 = new Uint8Array(64);
|
|
2769
|
+
var BASE64_CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", intToChar2 = /* @__PURE__ */ (() => {
|
|
2770
|
+
let chars2 = /* @__PURE__ */ new Uint8Array(64);
|
|
2782
2771
|
for (let i = 0; i < 64; i++) chars2[i] = BASE64_CHARS.charCodeAt(i);
|
|
2783
2772
|
return chars2;
|
|
2784
|
-
})(), COMMA = 44, SEMICOLON = 59, BUFFER_SIZE = 16384, FLUSH_THRESHOLD = 16348, scratch = new Uint8Array(BUFFER_SIZE);
|
|
2773
|
+
})(), COMMA = 44, SEMICOLON = 59, BUFFER_SIZE = 16384, FLUSH_THRESHOLD = 16348, scratch = /* @__PURE__ */ new Uint8Array(BUFFER_SIZE);
|
|
2785
2774
|
function writeVlq(pos, num) {
|
|
2786
2775
|
num = num < 0 ? -num << 1 | 1 : num << 1;
|
|
2787
2776
|
do {
|
|
@@ -2790,7 +2779,7 @@ function writeVlq(pos, num) {
|
|
|
2790
2779
|
} while (num > 0);
|
|
2791
2780
|
return pos;
|
|
2792
2781
|
}
|
|
2793
|
-
var decoder = new TextDecoder(), MappingsEncoder = class {
|
|
2782
|
+
var decoder = /* @__PURE__ */ new TextDecoder(), MappingsEncoder = class {
|
|
2794
2783
|
constructor() {
|
|
2795
2784
|
this.out = "", this.pos = 0, this.lines = [], this.buffered = 0, this.needsComma = !1, this.prevGenColumn = 0, this.prevSourceIndex = 0, this.prevSourceLine = 0, this.prevSourceColumn = 0, this.prevNameIndex = 0;
|
|
2796
2785
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/preset-react-webpack",
|
|
3
|
-
"version": "11.0.0-beta.
|
|
3
|
+
"version": "11.0.0-beta.4",
|
|
4
4
|
"description": "Storybook for React: Develop React Component in isolation with Hot Reloading",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"!src/**/*"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@storybook/core-webpack": "11.0.0-beta.
|
|
42
|
-
"@storybook/react": "11.0.0-beta.
|
|
41
|
+
"@storybook/core-webpack": "11.0.0-beta.4",
|
|
42
|
+
"@storybook/react": "11.0.0-beta.4",
|
|
43
43
|
"webpack": "5"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"react-docgen": "^8.0.2",
|
|
59
59
|
"react-docgen-typescript": "^2.2.2",
|
|
60
60
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
61
|
-
"storybook": "^11.0.0-beta.
|
|
61
|
+
"storybook": "^11.0.0-beta.4",
|
|
62
62
|
"typescript": "^5.9.0 || ^6.0.0 || ^7.0.0"
|
|
63
63
|
},
|
|
64
64
|
"peerDependenciesMeta": {
|