@storybook/addon-docs 10.2.0-alpha.4 → 10.2.0-alpha.6
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/{Color-O2RRNL2I.js → Color-H3YISJBG.js} +1 -1
- package/dist/_browser-chunks/{DocsRenderer-GHJI37HO.js → DocsRenderer-LL677BLK.js} +1 -1
- package/dist/_browser-chunks/{chunk-UUESKCKV.js → chunk-S4QKU6I5.js} +2 -2
- package/dist/_browser-chunks/{chunk-A242L54C.js → chunk-SL3VIQZ3.js} +0 -7
- package/dist/_node-chunks/{chunk-I3T27CW7.js → chunk-6SOXNS35.js} +9 -9
- package/dist/_node-chunks/{chunk-CDQW5VGQ.js → chunk-C3UNWFAF.js} +6 -6
- package/dist/_node-chunks/{chunk-S5UNRLPK.js → chunk-INKPYUUP.js} +6 -6
- package/dist/_node-chunks/{chunk-S6VKT4ZH.js → chunk-U56BDQHO.js} +6 -6
- package/dist/_node-chunks/{mdx-plugin-NAHYGRA7.js → mdx-plugin-SVROF7CN.js} +11 -11
- package/dist/_node-chunks/{rehype-external-links-IHBD3GB5.js → rehype-external-links-H4RVSOMR.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-SSBKHCKV.js → rehype-slug-GAVJN67P.js} +8 -8
- package/dist/angular/index.js +1 -1
- package/dist/blocks.js +99 -206
- package/dist/ember/index.js +1 -1
- package/dist/index.js +2 -2
- package/dist/manager.js +36 -28
- package/dist/mdx-loader.js +10 -10
- package/dist/preset.js +9 -9
- package/dist/preview.js +2 -2
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SL3VIQZ3.js";
|
|
4
4
|
|
|
5
5
|
// src/preview.ts
|
|
6
6
|
var preview_exports = {};
|
|
@@ -16,7 +16,7 @@ var excludeTags = Object.entries(globalThis.TAGS_OPTIONS ?? {}).reduce(
|
|
|
16
16
|
), parameters = {
|
|
17
17
|
docs: {
|
|
18
18
|
renderer: async () => {
|
|
19
|
-
let { DocsRenderer } = await import("./DocsRenderer-
|
|
19
|
+
let { DocsRenderer } = await import("./DocsRenderer-LL677BLK.js");
|
|
20
20
|
return new DocsRenderer();
|
|
21
21
|
},
|
|
22
22
|
stories: {
|
|
@@ -3,12 +3,6 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __require = /* @__PURE__ */ ((x) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(x, {
|
|
7
|
-
get: (a, b) => (typeof require < "u" ? require : a)[b]
|
|
8
|
-
}) : x)(function(x) {
|
|
9
|
-
if (typeof require < "u") return require.apply(this, arguments);
|
|
10
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
11
|
-
});
|
|
12
6
|
var __commonJS = (cb, mod) => function() {
|
|
13
7
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
14
8
|
};
|
|
@@ -31,7 +25,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
31
25
|
));
|
|
32
26
|
|
|
33
27
|
export {
|
|
34
|
-
__require,
|
|
35
28
|
__commonJS,
|
|
36
29
|
__export,
|
|
37
30
|
__toESM
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_nhnk8ocu69 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_nhnk8ocu69 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_nhnk8ocu69 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_nhnk8ocu69.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_nhnk8ocu69.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_nhnk8ocu69.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,15 +12,15 @@ var require = CJS_COMPAT_NODE_MODULE_7ml5u90usty.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
esm_default,
|
|
14
14
|
stringify
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-C3UNWFAF.js";
|
|
16
16
|
import {
|
|
17
17
|
visit
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-U56BDQHO.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__export,
|
|
22
22
|
__toESM
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-INKPYUUP.js";
|
|
24
24
|
|
|
25
25
|
// ../../../node_modules/@mdx-js/mdx/node_modules/acorn-jsx/xhtml.js
|
|
26
26
|
var require_xhtml = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_nhnk8ocu69 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_nhnk8ocu69 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_nhnk8ocu69 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_nhnk8ocu69.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_nhnk8ocu69.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_nhnk8ocu69.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_nhnk8ocu69 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_nhnk8ocu69 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_nhnk8ocu69 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_nhnk8ocu69.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_nhnk8ocu69.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_nhnk8ocu69.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_nhnk8ocu69 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_nhnk8ocu69 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_nhnk8ocu69 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_nhnk8ocu69.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_nhnk8ocu69.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_nhnk8ocu69.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_nhnk8ocu69 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_nhnk8ocu69 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_nhnk8ocu69 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_nhnk8ocu69.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_nhnk8ocu69.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_nhnk8ocu69.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
compile
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-6SOXNS35.js";
|
|
15
|
+
import "./chunk-C3UNWFAF.js";
|
|
16
|
+
import "./chunk-U56BDQHO.js";
|
|
17
17
|
import {
|
|
18
18
|
__commonJS,
|
|
19
19
|
__toESM
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-INKPYUUP.js";
|
|
21
21
|
|
|
22
22
|
// ../../../node_modules/@rollup/pluginutils/node_modules/picomatch/lib/constants.js
|
|
23
23
|
var require_constants = __commonJS({
|
|
@@ -1000,7 +1000,7 @@ var hasStringIsWellFormed = "isWellFormed" in String.prototype;
|
|
|
1000
1000
|
|
|
1001
1001
|
// src/mdx-plugin.ts
|
|
1002
1002
|
async function mdxPlugin(options) {
|
|
1003
|
-
let filter = createFilter(/\.mdx$/), { presets } = options, mdxPluginOptions = (await presets.apply("options", {}))?.mdxPluginOptions, rehypeSlug = (await import("./rehype-slug-
|
|
1003
|
+
let filter = createFilter(/\.mdx$/), { presets } = options, mdxPluginOptions = (await presets.apply("options", {}))?.mdxPluginOptions, rehypeSlug = (await import("./rehype-slug-GAVJN67P.js")).default, rehypeExternalLinks = (await import("./rehype-external-links-H4RVSOMR.js")).default;
|
|
1004
1004
|
return {
|
|
1005
1005
|
name: "storybook:mdx-plugin",
|
|
1006
1006
|
enforce: "pre",
|
package/dist/_node-chunks/{rehype-external-links-IHBD3GB5.js → rehype-external-links-H4RVSOMR.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_nhnk8ocu69 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_nhnk8ocu69 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_nhnk8ocu69 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_nhnk8ocu69.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_nhnk8ocu69.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_nhnk8ocu69.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,11 +12,11 @@ var require = CJS_COMPAT_NODE_MODULE_7ml5u90usty.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
esm_default,
|
|
14
14
|
parse
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-C3UNWFAF.js";
|
|
16
16
|
import {
|
|
17
17
|
visit
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-U56BDQHO.js";
|
|
19
|
+
import "./chunk-INKPYUUP.js";
|
|
20
20
|
|
|
21
21
|
// ../../../node_modules/hast-util-is-element/lib/index.js
|
|
22
22
|
var convertElement = (
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_nhnk8ocu69 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_nhnk8ocu69 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_nhnk8ocu69 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_nhnk8ocu69.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_nhnk8ocu69.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_nhnk8ocu69.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
visit
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-U56BDQHO.js";
|
|
15
|
+
import "./chunk-INKPYUUP.js";
|
|
16
16
|
|
|
17
17
|
// ../../../node_modules/github-slugger/regex.js
|
|
18
18
|
var regex = /[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7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uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g;
|
package/dist/angular/index.js
CHANGED
package/dist/blocks.js
CHANGED
|
@@ -30,139 +30,8 @@ import {
|
|
|
30
30
|
rgba
|
|
31
31
|
} from "./_browser-chunks/chunk-AAVP3AE4.js";
|
|
32
32
|
import {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
__require,
|
|
36
|
-
__toESM
|
|
37
|
-
} from "./_browser-chunks/chunk-A242L54C.js";
|
|
38
|
-
|
|
39
|
-
// ../../../node_modules/memoizerific/memoizerific.js
|
|
40
|
-
var require_memoizerific = __commonJS({
|
|
41
|
-
"../../../node_modules/memoizerific/memoizerific.js"(exports, module) {
|
|
42
|
-
(function(f2) {
|
|
43
|
-
if (typeof exports == "object" && typeof module < "u")
|
|
44
|
-
module.exports = f2();
|
|
45
|
-
else if (typeof define == "function" && define.amd)
|
|
46
|
-
define([], f2);
|
|
47
|
-
else {
|
|
48
|
-
var g2;
|
|
49
|
-
typeof window < "u" ? g2 = window : typeof global < "u" ? g2 = global : typeof self < "u" ? g2 = self : g2 = this, g2.memoizerific = f2();
|
|
50
|
-
}
|
|
51
|
-
})(function() {
|
|
52
|
-
var define2, module2, exports2;
|
|
53
|
-
return (function e2(t, n2, r2) {
|
|
54
|
-
function s2(o3, u2) {
|
|
55
|
-
if (!n2[o3]) {
|
|
56
|
-
if (!t[o3]) {
|
|
57
|
-
var a2 = typeof __require == "function" && __require;
|
|
58
|
-
if (!u2 && a2) return a2(o3, !0);
|
|
59
|
-
if (i2) return i2(o3, !0);
|
|
60
|
-
var f2 = new Error("Cannot find module '" + o3 + "'");
|
|
61
|
-
throw f2.code = "MODULE_NOT_FOUND", f2;
|
|
62
|
-
}
|
|
63
|
-
var l2 = n2[o3] = { exports: {} };
|
|
64
|
-
t[o3][0].call(l2.exports, function(e3) {
|
|
65
|
-
var n3 = t[o3][1][e3];
|
|
66
|
-
return s2(n3 || e3);
|
|
67
|
-
}, l2, l2.exports, e2, t, n2, r2);
|
|
68
|
-
}
|
|
69
|
-
return n2[o3].exports;
|
|
70
|
-
}
|
|
71
|
-
for (var i2 = typeof __require == "function" && __require, o2 = 0; o2 < r2.length; o2++) s2(r2[o2]);
|
|
72
|
-
return s2;
|
|
73
|
-
})({ 1: [function(_dereq_, module3, exports3) {
|
|
74
|
-
module3.exports = function(forceSimilar) {
|
|
75
|
-
if (typeof Map != "function" || forceSimilar) {
|
|
76
|
-
var Similar = _dereq_("./similar");
|
|
77
|
-
return new Similar();
|
|
78
|
-
} else
|
|
79
|
-
return /* @__PURE__ */ new Map();
|
|
80
|
-
};
|
|
81
|
-
}, { "./similar": 2 }], 2: [function(_dereq_, module3, exports3) {
|
|
82
|
-
function Similar() {
|
|
83
|
-
return this.list = [], this.lastItem = void 0, this.size = 0, this;
|
|
84
|
-
}
|
|
85
|
-
Similar.prototype.get = function(key) {
|
|
86
|
-
var index;
|
|
87
|
-
if (this.lastItem && this.isEqual(this.lastItem.key, key))
|
|
88
|
-
return this.lastItem.val;
|
|
89
|
-
if (index = this.indexOf(key), index >= 0)
|
|
90
|
-
return this.lastItem = this.list[index], this.list[index].val;
|
|
91
|
-
}, Similar.prototype.set = function(key, val) {
|
|
92
|
-
var index;
|
|
93
|
-
return this.lastItem && this.isEqual(this.lastItem.key, key) ? (this.lastItem.val = val, this) : (index = this.indexOf(key), index >= 0 ? (this.lastItem = this.list[index], this.list[index].val = val, this) : (this.lastItem = { key, val }, this.list.push(this.lastItem), this.size++, this));
|
|
94
|
-
}, Similar.prototype.delete = function(key) {
|
|
95
|
-
var index;
|
|
96
|
-
if (this.lastItem && this.isEqual(this.lastItem.key, key) && (this.lastItem = void 0), index = this.indexOf(key), index >= 0)
|
|
97
|
-
return this.size--, this.list.splice(index, 1)[0];
|
|
98
|
-
}, Similar.prototype.has = function(key) {
|
|
99
|
-
var index;
|
|
100
|
-
return this.lastItem && this.isEqual(this.lastItem.key, key) ? !0 : (index = this.indexOf(key), index >= 0 ? (this.lastItem = this.list[index], !0) : !1);
|
|
101
|
-
}, Similar.prototype.forEach = function(callback, thisArg) {
|
|
102
|
-
var i2;
|
|
103
|
-
for (i2 = 0; i2 < this.size; i2++)
|
|
104
|
-
callback.call(thisArg || this, this.list[i2].val, this.list[i2].key, this);
|
|
105
|
-
}, Similar.prototype.indexOf = function(key) {
|
|
106
|
-
var i2;
|
|
107
|
-
for (i2 = 0; i2 < this.size; i2++)
|
|
108
|
-
if (this.isEqual(this.list[i2].key, key))
|
|
109
|
-
return i2;
|
|
110
|
-
return -1;
|
|
111
|
-
}, Similar.prototype.isEqual = function(val1, val2) {
|
|
112
|
-
return val1 === val2 || val1 !== val1 && val2 !== val2;
|
|
113
|
-
}, module3.exports = Similar;
|
|
114
|
-
}, {}], 3: [function(_dereq_, module3, exports3) {
|
|
115
|
-
var MapOrSimilar = _dereq_("map-or-similar");
|
|
116
|
-
module3.exports = function(limit) {
|
|
117
|
-
var cache = new MapOrSimilar(!1), lru = [];
|
|
118
|
-
return function(fn) {
|
|
119
|
-
var memoizerific = function() {
|
|
120
|
-
var currentCache = cache, newMap, fnResult, argsLengthMinusOne = arguments.length - 1, lruPath = Array(argsLengthMinusOne + 1), isMemoized = !0, i2;
|
|
121
|
-
if ((memoizerific.numArgs || memoizerific.numArgs === 0) && memoizerific.numArgs !== argsLengthMinusOne + 1)
|
|
122
|
-
throw new Error("Memoizerific functions should always be called with the same number of arguments");
|
|
123
|
-
for (i2 = 0; i2 < argsLengthMinusOne; i2++) {
|
|
124
|
-
if (lruPath[i2] = {
|
|
125
|
-
cacheItem: currentCache,
|
|
126
|
-
arg: arguments[i2]
|
|
127
|
-
}, currentCache.has(arguments[i2])) {
|
|
128
|
-
currentCache = currentCache.get(arguments[i2]);
|
|
129
|
-
continue;
|
|
130
|
-
}
|
|
131
|
-
isMemoized = !1, newMap = new MapOrSimilar(!1), currentCache.set(arguments[i2], newMap), currentCache = newMap;
|
|
132
|
-
}
|
|
133
|
-
return isMemoized && (currentCache.has(arguments[argsLengthMinusOne]) ? fnResult = currentCache.get(arguments[argsLengthMinusOne]) : isMemoized = !1), isMemoized || (fnResult = fn.apply(null, arguments), currentCache.set(arguments[argsLengthMinusOne], fnResult)), limit > 0 && (lruPath[argsLengthMinusOne] = {
|
|
134
|
-
cacheItem: currentCache,
|
|
135
|
-
arg: arguments[argsLengthMinusOne]
|
|
136
|
-
}, isMemoized ? moveToMostRecentLru(lru, lruPath) : lru.push(lruPath), lru.length > limit && removeCachedResult(lru.shift())), memoizerific.wasMemoized = isMemoized, memoizerific.numArgs = argsLengthMinusOne + 1, fnResult;
|
|
137
|
-
};
|
|
138
|
-
return memoizerific.limit = limit, memoizerific.wasMemoized = !1, memoizerific.cache = cache, memoizerific.lru = lru, memoizerific;
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
function moveToMostRecentLru(lru, lruPath) {
|
|
142
|
-
var lruLen = lru.length, lruPathLen = lruPath.length, isMatch2, i2, ii;
|
|
143
|
-
for (i2 = 0; i2 < lruLen; i2++) {
|
|
144
|
-
for (isMatch2 = !0, ii = 0; ii < lruPathLen; ii++)
|
|
145
|
-
if (!isEqual2(lru[i2][ii].arg, lruPath[ii].arg)) {
|
|
146
|
-
isMatch2 = !1;
|
|
147
|
-
break;
|
|
148
|
-
}
|
|
149
|
-
if (isMatch2)
|
|
150
|
-
break;
|
|
151
|
-
}
|
|
152
|
-
lru.push(lru.splice(i2, 1)[0]);
|
|
153
|
-
}
|
|
154
|
-
function removeCachedResult(removedLru) {
|
|
155
|
-
var removedLruLen = removedLru.length, currentLru = removedLru[removedLruLen - 1], tmp, i2;
|
|
156
|
-
for (currentLru.cacheItem.delete(currentLru.arg), i2 = removedLruLen - 2; i2 >= 0 && (currentLru = removedLru[i2], tmp = currentLru.cacheItem.get(currentLru.arg), !tmp || !tmp.size); i2--)
|
|
157
|
-
currentLru.cacheItem.delete(currentLru.arg);
|
|
158
|
-
}
|
|
159
|
-
function isEqual2(val1, val2) {
|
|
160
|
-
return val1 === val2 || val1 !== val1 && val2 !== val2;
|
|
161
|
-
}
|
|
162
|
-
}, { "map-or-similar": 1 }] }, {}, [3])(3);
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
});
|
|
33
|
+
__export
|
|
34
|
+
} from "./_browser-chunks/chunk-SL3VIQZ3.js";
|
|
166
35
|
|
|
167
36
|
// src/blocks/components/ArgsTable/ArgsTable.tsx
|
|
168
37
|
import React23 from "react";
|
|
@@ -5407,7 +5276,7 @@ var styleResets = {
|
|
|
5407
5276
|
let handleChange = (e2) => {
|
|
5408
5277
|
onChange(options[e2.currentTarget.value]);
|
|
5409
5278
|
}, selection = selectedKey(value2, options) || NO_SELECTION, controlId = getControlId(name), readonly = !!argType?.table?.readonly;
|
|
5410
|
-
return React6.createElement(SelectWrapper, null, React6.createElement(ChevronSmallDownIcon, null), React6.createElement("label", { htmlFor: controlId, className: "sb-sr-only" }, name), React6.createElement(OptionsSelect, { disabled: readonly, id: controlId, value: selection, onChange: handleChange }, React6.createElement("option", { key: "no-selection"
|
|
5279
|
+
return React6.createElement(SelectWrapper, null, React6.createElement(ChevronSmallDownIcon, null), React6.createElement("label", { htmlFor: controlId, className: "sb-sr-only" }, name), React6.createElement(OptionsSelect, { disabled: readonly, id: controlId, value: selection, onChange: handleChange }, React6.createElement("option", { disabled: selection === NO_SELECTION, key: "no-selection" }, NO_SELECTION), Object.keys(options).map((key) => React6.createElement("option", { key, value: key }, key))));
|
|
5411
5280
|
}, MultiSelect = ({ name, value: value2, options, onChange, argType }) => {
|
|
5412
5281
|
let handleChange = (e2) => {
|
|
5413
5282
|
let selection2 = Array.from(e2.currentTarget.options).filter((option) => option.selected).map((option) => option.value);
|
|
@@ -6841,9 +6710,11 @@ var { window: globalWindow } = globalThis, Wrapper4 = styled8.div(({ theme }) =>
|
|
|
6841
6710
|
), [forceVisible, setForceVisible] = useState4(!1), onForceVisible = useCallback3(() => {
|
|
6842
6711
|
onChange({}), setForceVisible(!0);
|
|
6843
6712
|
}, [setForceVisible]), htmlElRef = useRef3(null);
|
|
6844
|
-
|
|
6713
|
+
useEffect4(() => {
|
|
6845
6714
|
forceVisible && htmlElRef.current && htmlElRef.current.select();
|
|
6846
|
-
}, [forceVisible])
|
|
6715
|
+
}, [forceVisible]);
|
|
6716
|
+
let jsonString = useMemo(() => JSON.stringify(data ?? "", null, 2), [data]);
|
|
6717
|
+
if (!hasData)
|
|
6847
6718
|
return React11.createElement(
|
|
6848
6719
|
Button3,
|
|
6849
6720
|
{
|
|
@@ -6861,7 +6732,8 @@ var { window: globalWindow } = globalThis, Wrapper4 = styled8.div(({ theme }) =>
|
|
|
6861
6732
|
id: getControlId(name),
|
|
6862
6733
|
minRows: 3,
|
|
6863
6734
|
name,
|
|
6864
|
-
|
|
6735
|
+
key: jsonString,
|
|
6736
|
+
defaultValue: jsonString,
|
|
6865
6737
|
onBlur: (event) => updateRaw(event.target.value),
|
|
6866
6738
|
placeholder: "Edit JSON string...",
|
|
6867
6739
|
autoFocus: forceVisible,
|
|
@@ -7155,7 +7027,7 @@ var FilesControl = ({
|
|
|
7155
7027
|
};
|
|
7156
7028
|
|
|
7157
7029
|
// src/blocks/controls/index.tsx
|
|
7158
|
-
var LazyColorControl = lazy(() => import("./_browser-chunks/Color-
|
|
7030
|
+
var LazyColorControl = lazy(() => import("./_browser-chunks/Color-H3YISJBG.js")), ColorControl = (props) => React15.createElement(Suspense, { fallback: React15.createElement("div", null) }, React15.createElement(LazyColorControl, { ...props }));
|
|
7159
7031
|
|
|
7160
7032
|
// src/blocks/components/ArgsTable/ArgControl.tsx
|
|
7161
7033
|
var Controls2 = {
|
|
@@ -7258,9 +7130,8 @@ var Table = styled12.table(({ theme }) => ({
|
|
|
7258
7130
|
|
|
7259
7131
|
// src/blocks/components/ArgsTable/ArgValue.tsx
|
|
7260
7132
|
import React18, { useState as useState7 } from "react";
|
|
7261
|
-
import {
|
|
7133
|
+
import { PopoverProvider, SyntaxHighlighter, codeCommon as codeCommon2 } from "storybook/internal/components";
|
|
7262
7134
|
import { ChevronSmallDownIcon as ChevronSmallDownIcon2, ChevronSmallUpIcon } from "@storybook/icons";
|
|
7263
|
-
var import_memoizerific = __toESM(require_memoizerific(), 1);
|
|
7264
7135
|
import { styled as styled13 } from "storybook/theming";
|
|
7265
7136
|
var ITEMS_BEFORE_EXPANSION = 8, Summary = styled13.div(({ isExpanded }) => ({
|
|
7266
7137
|
display: "flex",
|
|
@@ -7269,7 +7140,24 @@ var ITEMS_BEFORE_EXPANSION = 8, Summary = styled13.div(({ isExpanded }) => ({
|
|
|
7269
7140
|
alignItems: "flex-start",
|
|
7270
7141
|
marginBottom: "-4px",
|
|
7271
7142
|
minWidth: 100
|
|
7272
|
-
})),
|
|
7143
|
+
})), DetailsContainer = styled13.details({
|
|
7144
|
+
display: "flex",
|
|
7145
|
+
flexDirection: "column",
|
|
7146
|
+
summary: {
|
|
7147
|
+
order: 2
|
|
7148
|
+
},
|
|
7149
|
+
"summary::-webkit-details-marker": {
|
|
7150
|
+
display: "none"
|
|
7151
|
+
},
|
|
7152
|
+
"summary::marker": {
|
|
7153
|
+
content: "none"
|
|
7154
|
+
}
|
|
7155
|
+
}), AlignedDetails = styled13.div({
|
|
7156
|
+
display: "flex",
|
|
7157
|
+
flexDirection: "column",
|
|
7158
|
+
flexWrap: "wrap",
|
|
7159
|
+
alignItems: "flex-start"
|
|
7160
|
+
}), Text3 = styled13.span(codeCommon2, ({ theme, simple = !1 }) => ({
|
|
7273
7161
|
flex: "0 0 auto",
|
|
7274
7162
|
fontFamily: theme.typography.fonts.mono,
|
|
7275
7163
|
fontSize: theme.typography.size.s1,
|
|
@@ -7287,13 +7175,16 @@ var ITEMS_BEFORE_EXPANSION = 8, Summary = styled13.div(({ isExpanded }) => ({
|
|
|
7287
7175
|
border: "0 none",
|
|
7288
7176
|
paddingLeft: 0
|
|
7289
7177
|
}
|
|
7290
|
-
})), ExpandButton = styled13.
|
|
7178
|
+
})), ExpandButton = styled13.summary(({ theme }) => ({
|
|
7291
7179
|
fontFamily: theme.typography.fonts.mono,
|
|
7292
7180
|
color: theme.color.secondary,
|
|
7293
|
-
|
|
7181
|
+
cursor: "pointer",
|
|
7182
|
+
lineHeight: "normal",
|
|
7183
|
+
margin: "0 0 4px",
|
|
7184
|
+
padding: "1px 6px",
|
|
7294
7185
|
background: "none",
|
|
7295
7186
|
border: "none"
|
|
7296
|
-
})), Expandable = styled13.
|
|
7187
|
+
})), Expandable = styled13.button(codeCommon2, ({ theme }) => ({
|
|
7297
7188
|
fontFamily: theme.typography.fonts.mono,
|
|
7298
7189
|
color: theme.color.secondary,
|
|
7299
7190
|
fontSize: theme.typography.size.s1,
|
|
@@ -7301,12 +7192,19 @@ var ITEMS_BEFORE_EXPANSION = 8, Summary = styled13.div(({ isExpanded }) => ({
|
|
|
7301
7192
|
margin: 0,
|
|
7302
7193
|
whiteSpace: "nowrap",
|
|
7303
7194
|
display: "flex",
|
|
7304
|
-
alignItems: "center"
|
|
7305
|
-
|
|
7306
|
-
|
|
7195
|
+
alignItems: "center",
|
|
7196
|
+
cursor: "pointer",
|
|
7197
|
+
"&:hover": {
|
|
7198
|
+
border: theme.base === "light" ? "1px solid hsl(0 0 0 / 0.15)" : "1px solid hsl(0 0 100 / 0.15)"
|
|
7199
|
+
},
|
|
7200
|
+
"&:focus-visible": {
|
|
7201
|
+
outline: `2px solid ${theme.color.secondary}`,
|
|
7202
|
+
outlineOffset: "2px"
|
|
7203
|
+
}
|
|
7204
|
+
})), Detail = styled13.div(({ theme }) => ({
|
|
7307
7205
|
minWidth: 200,
|
|
7308
7206
|
maxWidth: 800,
|
|
7309
|
-
|
|
7207
|
+
paddingRight: 16,
|
|
7310
7208
|
// Don't remove the mono fontFamily here even if it seems useless, this is used by the browser to calculate the length of a "ch" unit.
|
|
7311
7209
|
fontFamily: theme.typography.fonts.mono,
|
|
7312
7210
|
fontSize: theme.typography.size.s1,
|
|
@@ -7319,18 +7217,12 @@ var ITEMS_BEFORE_EXPANSION = 8, Summary = styled13.div(({ isExpanded }) => ({
|
|
|
7319
7217
|
marginLeft: 4
|
|
7320
7218
|
}), ChevronDownIcon = styled13(ChevronSmallDownIcon2)({
|
|
7321
7219
|
marginLeft: 4
|
|
7322
|
-
}), EmptyArg = () => React18.createElement("span", null, "-"), ArgText = ({ text, simple }) => React18.createElement(Text3, { simple }, text),
|
|
7323
|
-
let lines = detail.split(/\r?\n/);
|
|
7324
|
-
return `${Math.max(...lines.map((x2) => x2.length))}ch`;
|
|
7325
|
-
}), getSummaryItems = (summary) => {
|
|
7220
|
+
}), EmptyArg = () => React18.createElement("span", null, "-"), ArgText = ({ text, simple }) => React18.createElement(Text3, { simple }, text), getSummaryItems = (summary) => {
|
|
7326
7221
|
if (!summary)
|
|
7327
7222
|
return [summary];
|
|
7328
7223
|
let summaryItems = summary.split("|").map((value2) => value2.trim());
|
|
7329
7224
|
return uniq(summaryItems);
|
|
7330
|
-
}, renderSummaryItems = (summaryItems,
|
|
7331
|
-
let items = summaryItems;
|
|
7332
|
-
return isExpanded || (items = summaryItems.slice(0, ITEMS_BEFORE_EXPANSION)), items.map((item) => React18.createElement(ArgText, { key: item, text: item === "" ? '""' : item }));
|
|
7333
|
-
}, ArgSummary = ({ value: value2, initialExpandedArgs }) => {
|
|
7225
|
+
}, renderSummaryItems = (summaryItems) => summaryItems.slice(0, ITEMS_BEFORE_EXPANSION).map((item) => React18.createElement(ArgText, { key: item, text: item === "" ? '""' : item })), renderExpandedItems = (summaryItems) => summaryItems.slice(ITEMS_BEFORE_EXPANSION).map((item) => React18.createElement(ArgText, { key: item, text: item === "" ? '""' : item })), ArgSummary = ({ value: value2, initialExpandedArgs }) => {
|
|
7334
7226
|
let { summary, detail } = value2, [isOpen, setIsOpen] = useState7(!1), [isExpanded, setIsExpanded] = useState7(initialExpandedArgs || !1);
|
|
7335
7227
|
if (summary == null)
|
|
7336
7228
|
return null;
|
|
@@ -7339,17 +7231,18 @@ var ITEMS_BEFORE_EXPANSION = 8, Summary = styled13.div(({ isExpanded }) => ({
|
|
|
7339
7231
|
if (/[(){}[\]<>]/.test(summaryAsString))
|
|
7340
7232
|
return React18.createElement(ArgText, { text: summaryAsString });
|
|
7341
7233
|
let summaryItems = getSummaryItems(summaryAsString), itemsCount = summaryItems.length;
|
|
7342
|
-
return itemsCount > ITEMS_BEFORE_EXPANSION ? React18.createElement(Summary, { isExpanded }, renderSummaryItems(summaryItems
|
|
7234
|
+
return itemsCount > ITEMS_BEFORE_EXPANSION ? React18.createElement(Summary, { isExpanded }, renderSummaryItems(summaryItems), React18.createElement(DetailsContainer, { open: isExpanded, onToggle: (e2) => setIsExpanded(e2.currentTarget.open) }, React18.createElement(AlignedDetails, null, renderExpandedItems(summaryItems)), React18.createElement(ExpandButton, { role: "button" }, isExpanded ? "Show less..." : `Show ${itemsCount - ITEMS_BEFORE_EXPANSION} more...`))) : React18.createElement(Summary, null, renderSummaryItems(summaryItems));
|
|
7343
7235
|
}
|
|
7344
7236
|
return React18.createElement(
|
|
7345
|
-
|
|
7237
|
+
PopoverProvider,
|
|
7346
7238
|
{
|
|
7347
7239
|
placement: "bottom",
|
|
7348
7240
|
visible: isOpen,
|
|
7349
7241
|
onVisibleChange: (isVisible) => {
|
|
7350
7242
|
setIsOpen(isVisible);
|
|
7351
7243
|
},
|
|
7352
|
-
|
|
7244
|
+
hasCloseButton: !0,
|
|
7245
|
+
popover: React18.createElement(Detail, null, React18.createElement(SyntaxHighlighter, { language: "jsx", format: !1 }, detail))
|
|
7353
7246
|
},
|
|
7354
7247
|
React18.createElement(Expandable, { className: "sbdocs-expandable" }, React18.createElement("span", null, summaryAsString), isOpen ? React18.createElement(ChevronUpIcon, null) : React18.createElement(ChevronDownIcon, null))
|
|
7355
7248
|
);
|
|
@@ -9608,14 +9501,14 @@ import React37, { createContext as createContext3, useEffect as useEffect11, use
|
|
|
9608
9501
|
import { SNIPPET_RENDERED } from "storybook/internal/docs-tools";
|
|
9609
9502
|
|
|
9610
9503
|
// ../../../node_modules/telejson/dist/chunk-EAFQLD22.mjs
|
|
9611
|
-
var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty,
|
|
9504
|
+
var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJS = (cb, mod) => function() {
|
|
9612
9505
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9613
9506
|
}, __copyProps = (to, from, except, desc) => {
|
|
9614
9507
|
if (from && typeof from == "object" || typeof from == "function")
|
|
9615
9508
|
for (let key of __getOwnPropNames(from))
|
|
9616
9509
|
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
9617
9510
|
return to;
|
|
9618
|
-
},
|
|
9511
|
+
}, __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
9619
9512
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
9620
9513
|
// file that has been converted to a CommonJS file using a Babel-
|
|
9621
9514
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
@@ -9648,84 +9541,84 @@ function extractEventHiddenProperties(event) {
|
|
|
9648
9541
|
}
|
|
9649
9542
|
|
|
9650
9543
|
// ../../../node_modules/telejson/dist/index.mjs
|
|
9651
|
-
var require_es_object_atoms =
|
|
9544
|
+
var require_es_object_atoms = __commonJS({
|
|
9652
9545
|
"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(exports, module) {
|
|
9653
9546
|
"use strict";
|
|
9654
9547
|
module.exports = Object;
|
|
9655
9548
|
}
|
|
9656
|
-
}), require_es_errors =
|
|
9549
|
+
}), require_es_errors = __commonJS({
|
|
9657
9550
|
"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(exports, module) {
|
|
9658
9551
|
"use strict";
|
|
9659
9552
|
module.exports = Error;
|
|
9660
9553
|
}
|
|
9661
|
-
}), require_eval =
|
|
9554
|
+
}), require_eval = __commonJS({
|
|
9662
9555
|
"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(exports, module) {
|
|
9663
9556
|
"use strict";
|
|
9664
9557
|
module.exports = EvalError;
|
|
9665
9558
|
}
|
|
9666
|
-
}), require_range =
|
|
9559
|
+
}), require_range = __commonJS({
|
|
9667
9560
|
"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(exports, module) {
|
|
9668
9561
|
"use strict";
|
|
9669
9562
|
module.exports = RangeError;
|
|
9670
9563
|
}
|
|
9671
|
-
}), require_ref =
|
|
9564
|
+
}), require_ref = __commonJS({
|
|
9672
9565
|
"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(exports, module) {
|
|
9673
9566
|
"use strict";
|
|
9674
9567
|
module.exports = ReferenceError;
|
|
9675
9568
|
}
|
|
9676
|
-
}), require_syntax =
|
|
9569
|
+
}), require_syntax = __commonJS({
|
|
9677
9570
|
"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(exports, module) {
|
|
9678
9571
|
"use strict";
|
|
9679
9572
|
module.exports = SyntaxError;
|
|
9680
9573
|
}
|
|
9681
|
-
}), require_type =
|
|
9574
|
+
}), require_type = __commonJS({
|
|
9682
9575
|
"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(exports, module) {
|
|
9683
9576
|
"use strict";
|
|
9684
9577
|
module.exports = TypeError;
|
|
9685
9578
|
}
|
|
9686
|
-
}), require_uri =
|
|
9579
|
+
}), require_uri = __commonJS({
|
|
9687
9580
|
"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(exports, module) {
|
|
9688
9581
|
"use strict";
|
|
9689
9582
|
module.exports = URIError;
|
|
9690
9583
|
}
|
|
9691
|
-
}), require_abs =
|
|
9584
|
+
}), require_abs = __commonJS({
|
|
9692
9585
|
"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(exports, module) {
|
|
9693
9586
|
"use strict";
|
|
9694
9587
|
module.exports = Math.abs;
|
|
9695
9588
|
}
|
|
9696
|
-
}), require_floor =
|
|
9589
|
+
}), require_floor = __commonJS({
|
|
9697
9590
|
"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(exports, module) {
|
|
9698
9591
|
"use strict";
|
|
9699
9592
|
module.exports = Math.floor;
|
|
9700
9593
|
}
|
|
9701
|
-
}), require_max =
|
|
9594
|
+
}), require_max = __commonJS({
|
|
9702
9595
|
"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(exports, module) {
|
|
9703
9596
|
"use strict";
|
|
9704
9597
|
module.exports = Math.max;
|
|
9705
9598
|
}
|
|
9706
|
-
}), require_min =
|
|
9599
|
+
}), require_min = __commonJS({
|
|
9707
9600
|
"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(exports, module) {
|
|
9708
9601
|
"use strict";
|
|
9709
9602
|
module.exports = Math.min;
|
|
9710
9603
|
}
|
|
9711
|
-
}), require_pow =
|
|
9604
|
+
}), require_pow = __commonJS({
|
|
9712
9605
|
"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(exports, module) {
|
|
9713
9606
|
"use strict";
|
|
9714
9607
|
module.exports = Math.pow;
|
|
9715
9608
|
}
|
|
9716
|
-
}), require_round =
|
|
9609
|
+
}), require_round = __commonJS({
|
|
9717
9610
|
"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(exports, module) {
|
|
9718
9611
|
"use strict";
|
|
9719
9612
|
module.exports = Math.round;
|
|
9720
9613
|
}
|
|
9721
|
-
}), require_isNaN =
|
|
9614
|
+
}), require_isNaN = __commonJS({
|
|
9722
9615
|
"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(exports, module) {
|
|
9723
9616
|
"use strict";
|
|
9724
9617
|
module.exports = Number.isNaN || function(a2) {
|
|
9725
9618
|
return a2 !== a2;
|
|
9726
9619
|
};
|
|
9727
9620
|
}
|
|
9728
|
-
}), require_sign =
|
|
9621
|
+
}), require_sign = __commonJS({
|
|
9729
9622
|
"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(exports, module) {
|
|
9730
9623
|
"use strict";
|
|
9731
9624
|
var $isNaN = require_isNaN();
|
|
@@ -9733,12 +9626,12 @@ var require_es_object_atoms = __commonJS2({
|
|
|
9733
9626
|
return $isNaN(number) || number === 0 ? number : number < 0 ? -1 : 1;
|
|
9734
9627
|
};
|
|
9735
9628
|
}
|
|
9736
|
-
}), require_gOPD =
|
|
9629
|
+
}), require_gOPD = __commonJS({
|
|
9737
9630
|
"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(exports, module) {
|
|
9738
9631
|
"use strict";
|
|
9739
9632
|
module.exports = Object.getOwnPropertyDescriptor;
|
|
9740
9633
|
}
|
|
9741
|
-
}), require_gopd =
|
|
9634
|
+
}), require_gopd = __commonJS({
|
|
9742
9635
|
"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(exports, module) {
|
|
9743
9636
|
"use strict";
|
|
9744
9637
|
var $gOPD = require_gOPD();
|
|
@@ -9750,7 +9643,7 @@ var require_es_object_atoms = __commonJS2({
|
|
|
9750
9643
|
}
|
|
9751
9644
|
module.exports = $gOPD;
|
|
9752
9645
|
}
|
|
9753
|
-
}), require_es_define_property =
|
|
9646
|
+
}), require_es_define_property = __commonJS({
|
|
9754
9647
|
"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(exports, module) {
|
|
9755
9648
|
"use strict";
|
|
9756
9649
|
var $defineProperty = Object.defineProperty || !1;
|
|
@@ -9762,7 +9655,7 @@ var require_es_object_atoms = __commonJS2({
|
|
|
9762
9655
|
}
|
|
9763
9656
|
module.exports = $defineProperty;
|
|
9764
9657
|
}
|
|
9765
|
-
}), require_shams =
|
|
9658
|
+
}), require_shams = __commonJS({
|
|
9766
9659
|
"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(exports, module) {
|
|
9767
9660
|
"use strict";
|
|
9768
9661
|
module.exports = function() {
|
|
@@ -9793,7 +9686,7 @@ var require_es_object_atoms = __commonJS2({
|
|
|
9793
9686
|
return !0;
|
|
9794
9687
|
};
|
|
9795
9688
|
}
|
|
9796
|
-
}), require_has_symbols =
|
|
9689
|
+
}), require_has_symbols = __commonJS({
|
|
9797
9690
|
"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(exports, module) {
|
|
9798
9691
|
"use strict";
|
|
9799
9692
|
var origSymbol = typeof Symbol < "u" && Symbol, hasSymbolSham = require_shams();
|
|
@@ -9801,18 +9694,18 @@ var require_es_object_atoms = __commonJS2({
|
|
|
9801
9694
|
return typeof origSymbol != "function" || typeof Symbol != "function" || typeof origSymbol("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : hasSymbolSham();
|
|
9802
9695
|
};
|
|
9803
9696
|
}
|
|
9804
|
-
}), require_Reflect_getPrototypeOf =
|
|
9697
|
+
}), require_Reflect_getPrototypeOf = __commonJS({
|
|
9805
9698
|
"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(exports, module) {
|
|
9806
9699
|
"use strict";
|
|
9807
9700
|
module.exports = typeof Reflect < "u" && Reflect.getPrototypeOf || null;
|
|
9808
9701
|
}
|
|
9809
|
-
}), require_Object_getPrototypeOf =
|
|
9702
|
+
}), require_Object_getPrototypeOf = __commonJS({
|
|
9810
9703
|
"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(exports, module) {
|
|
9811
9704
|
"use strict";
|
|
9812
9705
|
var $Object = require_es_object_atoms();
|
|
9813
9706
|
module.exports = $Object.getPrototypeOf || null;
|
|
9814
9707
|
}
|
|
9815
|
-
}), require_implementation =
|
|
9708
|
+
}), require_implementation = __commonJS({
|
|
9816
9709
|
"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(exports, module) {
|
|
9817
9710
|
"use strict";
|
|
9818
9711
|
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ", toStr = Object.prototype.toString, max2 = Math.max, funcType = "[object Function]", concatty = function(a2, b2) {
|
|
@@ -9856,34 +9749,34 @@ var require_es_object_atoms = __commonJS2({
|
|
|
9856
9749
|
return bound;
|
|
9857
9750
|
};
|
|
9858
9751
|
}
|
|
9859
|
-
}), require_function_bind =
|
|
9752
|
+
}), require_function_bind = __commonJS({
|
|
9860
9753
|
"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(exports, module) {
|
|
9861
9754
|
"use strict";
|
|
9862
9755
|
var implementation = require_implementation();
|
|
9863
9756
|
module.exports = Function.prototype.bind || implementation;
|
|
9864
9757
|
}
|
|
9865
|
-
}), require_functionCall =
|
|
9758
|
+
}), require_functionCall = __commonJS({
|
|
9866
9759
|
"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(exports, module) {
|
|
9867
9760
|
"use strict";
|
|
9868
9761
|
module.exports = Function.prototype.call;
|
|
9869
9762
|
}
|
|
9870
|
-
}), require_functionApply =
|
|
9763
|
+
}), require_functionApply = __commonJS({
|
|
9871
9764
|
"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(exports, module) {
|
|
9872
9765
|
"use strict";
|
|
9873
9766
|
module.exports = Function.prototype.apply;
|
|
9874
9767
|
}
|
|
9875
|
-
}), require_reflectApply =
|
|
9768
|
+
}), require_reflectApply = __commonJS({
|
|
9876
9769
|
"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(exports, module) {
|
|
9877
9770
|
"use strict";
|
|
9878
9771
|
module.exports = typeof Reflect < "u" && Reflect && Reflect.apply;
|
|
9879
9772
|
}
|
|
9880
|
-
}), require_actualApply =
|
|
9773
|
+
}), require_actualApply = __commonJS({
|
|
9881
9774
|
"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(exports, module) {
|
|
9882
9775
|
"use strict";
|
|
9883
9776
|
var bind2 = require_function_bind(), $apply = require_functionApply(), $call = require_functionCall(), $reflectApply = require_reflectApply();
|
|
9884
9777
|
module.exports = $reflectApply || bind2.call($call, $apply);
|
|
9885
9778
|
}
|
|
9886
|
-
}), require_call_bind_apply_helpers =
|
|
9779
|
+
}), require_call_bind_apply_helpers = __commonJS({
|
|
9887
9780
|
"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(exports, module) {
|
|
9888
9781
|
"use strict";
|
|
9889
9782
|
var bind2 = require_function_bind(), $TypeError = require_type(), $call = require_functionCall(), $actualApply = require_actualApply();
|
|
@@ -9893,7 +9786,7 @@ var require_es_object_atoms = __commonJS2({
|
|
|
9893
9786
|
return $actualApply(bind2, $call, args);
|
|
9894
9787
|
};
|
|
9895
9788
|
}
|
|
9896
|
-
}), require_get =
|
|
9789
|
+
}), require_get = __commonJS({
|
|
9897
9790
|
"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(exports, module) {
|
|
9898
9791
|
"use strict";
|
|
9899
9792
|
var callBind = require_call_bind_apply_helpers(), gOPD = require_gopd(), hasProtoAccessor;
|
|
@@ -9916,7 +9809,7 @@ var require_es_object_atoms = __commonJS2({
|
|
|
9916
9809
|
})
|
|
9917
9810
|
) : !1;
|
|
9918
9811
|
}
|
|
9919
|
-
}), require_get_proto =
|
|
9812
|
+
}), require_get_proto = __commonJS({
|
|
9920
9813
|
"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(exports, module) {
|
|
9921
9814
|
"use strict";
|
|
9922
9815
|
var reflectGetProto = require_Reflect_getPrototypeOf(), originalGetProto = require_Object_getPrototypeOf(), getDunderProto = require_get();
|
|
@@ -9930,13 +9823,13 @@ var require_es_object_atoms = __commonJS2({
|
|
|
9930
9823
|
return getDunderProto(O2);
|
|
9931
9824
|
} : null;
|
|
9932
9825
|
}
|
|
9933
|
-
}), require_hasown =
|
|
9826
|
+
}), require_hasown = __commonJS({
|
|
9934
9827
|
"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(exports, module) {
|
|
9935
9828
|
"use strict";
|
|
9936
9829
|
var call = Function.prototype.call, $hasOwn = Object.prototype.hasOwnProperty, bind2 = require_function_bind();
|
|
9937
9830
|
module.exports = bind2.call(call, $hasOwn);
|
|
9938
9831
|
}
|
|
9939
|
-
}), require_get_intrinsic =
|
|
9832
|
+
}), require_get_intrinsic = __commonJS({
|
|
9940
9833
|
"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(exports, module) {
|
|
9941
9834
|
"use strict";
|
|
9942
9835
|
var undefined2, $Object = require_es_object_atoms(), $Error = require_es_errors(), $EvalError = require_eval(), $RangeError = require_range(), $ReferenceError = require_ref(), $SyntaxError = require_syntax(), $TypeError = require_type(), $URIError = require_uri(), abs = require_abs(), floor2 = require_floor(), max2 = require_max(), min2 = require_min(), pow = require_pow(), round2 = require_round(), sign = require_sign(), $Function = Function, getEvalledConstructor = function(expressionSyntax) {
|
|
@@ -10171,7 +10064,7 @@ var require_es_object_atoms = __commonJS2({
|
|
|
10171
10064
|
return value2;
|
|
10172
10065
|
};
|
|
10173
10066
|
}
|
|
10174
|
-
}), require_call_bound =
|
|
10067
|
+
}), require_call_bound = __commonJS({
|
|
10175
10068
|
"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(exports, module) {
|
|
10176
10069
|
"use strict";
|
|
10177
10070
|
var GetIntrinsic = require_get_intrinsic(), callBindBasic = require_call_bind_apply_helpers(), $indexOf = callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]);
|
|
@@ -10186,7 +10079,7 @@ var require_es_object_atoms = __commonJS2({
|
|
|
10186
10079
|
) : intrinsic;
|
|
10187
10080
|
};
|
|
10188
10081
|
}
|
|
10189
|
-
}), require_shams2 =
|
|
10082
|
+
}), require_shams2 = __commonJS({
|
|
10190
10083
|
"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(exports, module) {
|
|
10191
10084
|
"use strict";
|
|
10192
10085
|
var hasSymbols = require_shams();
|
|
@@ -10194,7 +10087,7 @@ var require_es_object_atoms = __commonJS2({
|
|
|
10194
10087
|
return hasSymbols() && !!Symbol.toStringTag;
|
|
10195
10088
|
};
|
|
10196
10089
|
}
|
|
10197
|
-
}), require_is_regex =
|
|
10090
|
+
}), require_is_regex = __commonJS({
|
|
10198
10091
|
"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(exports, module) {
|
|
10199
10092
|
"use strict";
|
|
10200
10093
|
var callBound = require_call_bound(), hasToStringTag = require_shams2()(), hasOwn = require_hasown(), gOPD = require_gopd(), fn;
|
|
@@ -10232,7 +10125,7 @@ var require_es_object_atoms = __commonJS2({
|
|
|
10232
10125
|
var $exec, isRegexMarker, throwRegexMarker, badStringifier, $toString, regexClass;
|
|
10233
10126
|
module.exports = fn;
|
|
10234
10127
|
}
|
|
10235
|
-
}), require_is_function =
|
|
10128
|
+
}), require_is_function = __commonJS({
|
|
10236
10129
|
"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(exports, module) {
|
|
10237
10130
|
module.exports = isFunction3;
|
|
10238
10131
|
var toString2 = Object.prototype.toString;
|
|
@@ -10244,7 +10137,7 @@ var require_es_object_atoms = __commonJS2({
|
|
|
10244
10137
|
(fn === window.setTimeout || fn === window.alert || fn === window.confirm || fn === window.prompt);
|
|
10245
10138
|
}
|
|
10246
10139
|
}
|
|
10247
|
-
}), require_safe_regex_test =
|
|
10140
|
+
}), require_safe_regex_test = __commonJS({
|
|
10248
10141
|
"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(exports, module) {
|
|
10249
10142
|
"use strict";
|
|
10250
10143
|
var callBound = require_call_bound(), isRegex = require_is_regex(), $exec = callBound("RegExp.prototype.exec"), $TypeError = require_type();
|
|
@@ -10256,7 +10149,7 @@ var require_es_object_atoms = __commonJS2({
|
|
|
10256
10149
|
};
|
|
10257
10150
|
};
|
|
10258
10151
|
}
|
|
10259
|
-
}), require_is_symbol =
|
|
10152
|
+
}), require_is_symbol = __commonJS({
|
|
10260
10153
|
"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(exports, module) {
|
|
10261
10154
|
"use strict";
|
|
10262
10155
|
var callBound = require_call_bound(), $toString = callBound("Object.prototype.toString"), hasSymbols = require_has_symbols()(), safeRegexTest = require_safe_regex_test();
|
|
@@ -10277,7 +10170,7 @@ var require_es_object_atoms = __commonJS2({
|
|
|
10277
10170
|
};
|
|
10278
10171
|
var $symToStr, isSymString, isSymbolObject;
|
|
10279
10172
|
}
|
|
10280
|
-
}), import_is_regex =
|
|
10173
|
+
}), import_is_regex = __toESM(require_is_regex()), import_is_function = __toESM(require_is_function()), import_is_symbol = __toESM(require_is_symbol());
|
|
10281
10174
|
function isObject2(val) {
|
|
10282
10175
|
return val != null && typeof val == "object" && Array.isArray(val) === !1;
|
|
10283
10176
|
}
|
|
@@ -10494,7 +10387,7 @@ MapCache.prototype.get = mapCacheGet_default;
|
|
|
10494
10387
|
MapCache.prototype.has = mapCacheHas_default;
|
|
10495
10388
|
MapCache.prototype.set = mapCacheSet_default;
|
|
10496
10389
|
var MapCache_default = MapCache, FUNC_ERROR_TEXT = "Expected a function";
|
|
10497
|
-
function
|
|
10390
|
+
function memoize2(func, resolver) {
|
|
10498
10391
|
if (typeof func != "function" || resolver != null && typeof resolver != "function")
|
|
10499
10392
|
throw new TypeError(FUNC_ERROR_TEXT);
|
|
10500
10393
|
var memoized = function() {
|
|
@@ -10504,10 +10397,10 @@ function memoize3(func, resolver) {
|
|
|
10504
10397
|
var result = func.apply(this, args);
|
|
10505
10398
|
return memoized.cache = cache.set(key, result) || cache, result;
|
|
10506
10399
|
};
|
|
10507
|
-
return memoized.cache = new (
|
|
10400
|
+
return memoized.cache = new (memoize2.Cache || MapCache_default)(), memoized;
|
|
10508
10401
|
}
|
|
10509
|
-
|
|
10510
|
-
var memoize_default =
|
|
10402
|
+
memoize2.Cache = MapCache_default;
|
|
10403
|
+
var memoize_default = memoize2, MAX_MEMOIZE_SIZE = 500;
|
|
10511
10404
|
function memoizeCapped(func) {
|
|
10512
10405
|
var result = memoize_default(func, function(key) {
|
|
10513
10406
|
return cache.size === MAX_MEMOIZE_SIZE && cache.clear(), key;
|
package/dist/ember/index.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
} from "./_browser-chunks/chunk-OATZR77O.js";
|
|
4
4
|
import {
|
|
5
5
|
preview_exports
|
|
6
|
-
} from "./_browser-chunks/chunk-
|
|
7
|
-
import "./_browser-chunks/chunk-
|
|
6
|
+
} from "./_browser-chunks/chunk-S4QKU6I5.js";
|
|
7
|
+
import "./_browser-chunks/chunk-SL3VIQZ3.js";
|
|
8
8
|
|
|
9
9
|
// src/index.ts
|
|
10
10
|
import { definePreviewAddon } from "storybook/internal/csf";
|
package/dist/manager.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Source
|
|
3
3
|
} from "./_browser-chunks/chunk-AAVP3AE4.js";
|
|
4
|
-
import "./_browser-chunks/chunk-
|
|
4
|
+
import "./_browser-chunks/chunk-SL3VIQZ3.js";
|
|
5
5
|
|
|
6
6
|
// src/manager.tsx
|
|
7
7
|
import React, { useEffect, useState } from "react";
|
|
@@ -13,6 +13,39 @@ import { ignoreSsrWarning, styled, useTheme } from "storybook/theming";
|
|
|
13
13
|
var ADDON_ID = "storybook/docs", PANEL_ID = `${ADDON_ID}/panel`, PARAM_KEY = "docs", SNIPPET_RENDERED = `${ADDON_ID}/snippet-rendered`;
|
|
14
14
|
|
|
15
15
|
// src/manager.tsx
|
|
16
|
+
var CodePanel = ({
|
|
17
|
+
active,
|
|
18
|
+
lastEvent,
|
|
19
|
+
currentStoryId
|
|
20
|
+
}) => {
|
|
21
|
+
let [codeSnippet, setSourceCode] = useState({
|
|
22
|
+
source: lastEvent?.source,
|
|
23
|
+
format: lastEvent?.format ?? void 0
|
|
24
|
+
}), parameter = useParameter(PARAM_KEY, {
|
|
25
|
+
source: { code: "" },
|
|
26
|
+
theme: "dark"
|
|
27
|
+
});
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
setSourceCode({
|
|
30
|
+
source: void 0,
|
|
31
|
+
format: void 0
|
|
32
|
+
});
|
|
33
|
+
}, [currentStoryId]), useChannel({
|
|
34
|
+
[SNIPPET_RENDERED]: ({ source, format }) => {
|
|
35
|
+
setSourceCode({ source, format });
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
let isDark = useTheme().base !== "light";
|
|
39
|
+
return React.createElement(AddonPanel, { active: !!active }, React.createElement(SourceStyles, null, React.createElement(
|
|
40
|
+
Source,
|
|
41
|
+
{
|
|
42
|
+
...parameter.source,
|
|
43
|
+
code: parameter.source?.code || codeSnippet.source || parameter.source?.originalSource,
|
|
44
|
+
format: codeSnippet.format,
|
|
45
|
+
dark: isDark
|
|
46
|
+
}
|
|
47
|
+
)));
|
|
48
|
+
};
|
|
16
49
|
addons.register(ADDON_ID, (api) => {
|
|
17
50
|
addons.add(PANEL_ID, {
|
|
18
51
|
title: "Code",
|
|
@@ -34,33 +67,8 @@ addons.register(ADDON_ID, (api) => {
|
|
|
34
67
|
disabled: (parameters) => !parameters?.docs?.codePanel,
|
|
35
68
|
match: ({ viewMode }) => viewMode === "story",
|
|
36
69
|
render: ({ active }) => {
|
|
37
|
-
let channel = api.getChannel(), currentStory = api.getCurrentStoryData(), lastEvent = channel?.last(SNIPPET_RENDERED)?.[0]
|
|
38
|
-
|
|
39
|
-
format: lastEvent?.format ?? void 0
|
|
40
|
-
}), parameter = useParameter(PARAM_KEY, {
|
|
41
|
-
source: { code: "" },
|
|
42
|
-
theme: "dark"
|
|
43
|
-
});
|
|
44
|
-
useEffect(() => {
|
|
45
|
-
setSourceCode({
|
|
46
|
-
source: void 0,
|
|
47
|
-
format: void 0
|
|
48
|
-
});
|
|
49
|
-
}, [currentStory?.id]), useChannel({
|
|
50
|
-
[SNIPPET_RENDERED]: ({ source, format }) => {
|
|
51
|
-
setSourceCode({ source, format });
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
let isDark = useTheme().base !== "light";
|
|
55
|
-
return React.createElement(AddonPanel, { active: !!active }, React.createElement(SourceStyles, null, React.createElement(
|
|
56
|
-
Source,
|
|
57
|
-
{
|
|
58
|
-
...parameter.source,
|
|
59
|
-
code: parameter.source?.code || codeSnippet.source || parameter.source?.originalSource,
|
|
60
|
-
format: codeSnippet.format,
|
|
61
|
-
dark: isDark
|
|
62
|
-
}
|
|
63
|
-
)));
|
|
70
|
+
let channel = api.getChannel(), currentStory = api.getCurrentStoryData(), lastEvent = channel?.last(SNIPPET_RENDERED)?.[0];
|
|
71
|
+
return React.createElement(CodePanel, { currentStoryId: currentStory?.id, lastEvent, active });
|
|
64
72
|
}
|
|
65
73
|
});
|
|
66
74
|
});
|
package/dist/mdx-loader.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_nhnk8ocu69 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_nhnk8ocu69 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_nhnk8ocu69 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_nhnk8ocu69.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_nhnk8ocu69.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_nhnk8ocu69.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
compile
|
|
14
|
-
} from "./_node-chunks/chunk-
|
|
15
|
-
import "./_node-chunks/chunk-
|
|
16
|
-
import "./_node-chunks/chunk-
|
|
17
|
-
import "./_node-chunks/chunk-
|
|
14
|
+
} from "./_node-chunks/chunk-6SOXNS35.js";
|
|
15
|
+
import "./_node-chunks/chunk-C3UNWFAF.js";
|
|
16
|
+
import "./_node-chunks/chunk-U56BDQHO.js";
|
|
17
|
+
import "./_node-chunks/chunk-INKPYUUP.js";
|
|
18
18
|
|
|
19
19
|
// src/mdx-loader.ts
|
|
20
20
|
var DEFAULT_RENDERER = `
|
package/dist/preset.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_nhnk8ocu69 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_nhnk8ocu69 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_nhnk8ocu69 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_nhnk8ocu69.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_nhnk8ocu69.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_nhnk8ocu69.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./_node-chunks/chunk-
|
|
12
|
+
import "./_node-chunks/chunk-INKPYUUP.js";
|
|
13
13
|
|
|
14
14
|
// src/preset.ts
|
|
15
15
|
import { isAbsolute as isAbsolute2 } from "node:path";
|
|
@@ -227,7 +227,7 @@ var getResolvedReact = async (options) => {
|
|
|
227
227
|
};
|
|
228
228
|
};
|
|
229
229
|
async function webpack(webpackConfig = {}, options) {
|
|
230
|
-
let { module = {} } = webpackConfig, { csfPluginOptions = {}, mdxPluginOptions = {} } = options, enrichCsf = await options.presets.apply("experimental_enrichCsf"), rehypeSlug = (await import("./_node-chunks/rehype-slug-
|
|
230
|
+
let { module = {} } = webpackConfig, { csfPluginOptions = {}, mdxPluginOptions = {} } = options, enrichCsf = await options.presets.apply("experimental_enrichCsf"), rehypeSlug = (await import("./_node-chunks/rehype-slug-GAVJN67P.js")).default, rehypeExternalLinks = (await import("./_node-chunks/rehype-external-links-H4RVSOMR.js")).default, mdxLoaderOptions = await options.presets.apply("mdxLoaderOptions", {
|
|
231
231
|
...mdxPluginOptions,
|
|
232
232
|
mdxCompileOptions: {
|
|
233
233
|
providerImportSource: import.meta.resolve("@storybook/addon-docs/mdx-react-shim"),
|
|
@@ -303,7 +303,7 @@ var docs = (input = {}, options) => {
|
|
|
303
303
|
}, addons = [
|
|
304
304
|
import.meta.resolve("@storybook/react-dom-shim/preset")
|
|
305
305
|
], viteFinal = async (config, options) => {
|
|
306
|
-
let { plugins = [] } = config, { mdxPlugin } = await import("./_node-chunks/mdx-plugin-
|
|
306
|
+
let { plugins = [] } = config, { mdxPlugin } = await import("./_node-chunks/mdx-plugin-SVROF7CN.js"), { react, reactDom, mdx } = await getResolvedReact(options), packageDeduplicationPlugin = {
|
|
307
307
|
name: "storybook:package-deduplication",
|
|
308
308
|
enforce: "pre",
|
|
309
309
|
config: () => ({
|
package/dist/preview.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-docs",
|
|
3
|
-
"version": "10.2.0-alpha.
|
|
3
|
+
"version": "10.2.0-alpha.6",
|
|
4
4
|
"description": "Storybook Docs: Document UI components automatically with stories and MDX",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"docs",
|
|
@@ -80,9 +80,9 @@
|
|
|
80
80
|
],
|
|
81
81
|
"dependencies": {
|
|
82
82
|
"@mdx-js/react": "^3.0.0",
|
|
83
|
-
"@storybook/csf-plugin": "10.2.0-alpha.
|
|
83
|
+
"@storybook/csf-plugin": "10.2.0-alpha.6",
|
|
84
84
|
"@storybook/icons": "^2.0.0",
|
|
85
|
-
"@storybook/react-dom-shim": "10.2.0-alpha.
|
|
85
|
+
"@storybook/react-dom-shim": "10.2.0-alpha.6",
|
|
86
86
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
87
87
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
88
88
|
"ts-dedent": "^2.0.0"
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"vite": "^7.0.4"
|
|
110
110
|
},
|
|
111
111
|
"peerDependencies": {
|
|
112
|
-
"storybook": "^10.2.0-alpha.
|
|
112
|
+
"storybook": "^10.2.0-alpha.6"
|
|
113
113
|
},
|
|
114
114
|
"publishConfig": {
|
|
115
115
|
"access": "public"
|