@storybook/addon-docs 10.1.0-alpha.10 → 10.1.0-alpha.11

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.
Files changed (33) hide show
  1. package/dist/_browser-chunks/Color-S5NAVK5F.js +1096 -0
  2. package/dist/_browser-chunks/{DocsRenderer-HT7GNKAR.js → DocsRenderer-GHJI37HO.js} +2 -2
  3. package/dist/_browser-chunks/{chunk-MM7DTO55.js → chunk-A242L54C.js} +10 -16
  4. package/dist/_browser-chunks/chunk-CYSK6WYR.js +7 -0
  5. package/dist/_browser-chunks/chunk-DDRHE7EB.js +949 -0
  6. package/dist/_browser-chunks/{chunk-74ZUTOZN.js → chunk-OATZR77O.js} +9 -22
  7. package/dist/_browser-chunks/chunk-UUESKCKV.js +31 -0
  8. package/dist/_node-chunks/chunk-CRYBIEDD.js +168 -0
  9. package/dist/_node-chunks/{chunk-AAP3IT42.js → chunk-ETYU6ZWB.js} +13 -19
  10. package/dist/_node-chunks/chunk-PF5AWRIF.js +22630 -0
  11. package/dist/_node-chunks/chunk-ZRMSQWBE.js +196 -0
  12. package/dist/_node-chunks/mdx-plugin-655B5P4B.js +1032 -0
  13. package/dist/_node-chunks/rehype-external-links-V53KQFON.js +121 -0
  14. package/dist/_node-chunks/{rehype-slug-NPV5OLTF.js → rehype-slug-GNVPIIPH.js} +24 -58
  15. package/dist/angular/index.js +3 -5
  16. package/dist/blocks.d.ts +4 -2
  17. package/dist/blocks.js +1833 -3846
  18. package/dist/ember/index.js +3 -5
  19. package/dist/index.js +4 -6
  20. package/dist/manager.js +11 -22
  21. package/dist/mdx-loader.js +13 -19
  22. package/dist/preset.js +155 -454
  23. package/dist/preview.js +2 -2
  24. package/package.json +6 -6
  25. package/dist/_browser-chunks/Color-553OW3OY.js +0 -1694
  26. package/dist/_browser-chunks/chunk-DMNQCVA2.js +0 -12
  27. package/dist/_browser-chunks/chunk-UZFOWTVP.js +0 -974
  28. package/dist/_browser-chunks/chunk-YDZYZRYC.js +0 -39
  29. package/dist/_node-chunks/chunk-BHIBLL2L.js +0 -36332
  30. package/dist/_node-chunks/chunk-RAVRMRBT.js +0 -248
  31. package/dist/_node-chunks/chunk-TSMODHW2.js +0 -231
  32. package/dist/_node-chunks/mdx-plugin-OGZHIA54.js +0 -1654
  33. package/dist/_node-chunks/rehype-external-links-32F3YIMH.js +0 -168
@@ -0,0 +1,196 @@
1
+ import CJS_COMPAT_NODE_URL_lch4wox9a5 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_lch4wox9a5 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_lch4wox9a5 from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_lch4wox9a5.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_lch4wox9a5.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_lch4wox9a5.createRequire(import.meta.url);
8
+
9
+ // ------------------------------------------------------------
10
+ // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
+ // ------------------------------------------------------------
12
+
13
+ // ../../node_modules/@ungap/structured-clone/esm/deserialize.js
14
+ var env = typeof self == "object" ? self : globalThis, deserializer = ($, _) => {
15
+ let as = (out, index) => ($.set(index, out), out), unpair = (index) => {
16
+ if ($.has(index))
17
+ return $.get(index);
18
+ let [type, value] = _[index];
19
+ switch (type) {
20
+ case 0:
21
+ case -1:
22
+ return as(value, index);
23
+ case 1: {
24
+ let arr = as([], index);
25
+ for (let index2 of value)
26
+ arr.push(unpair(index2));
27
+ return arr;
28
+ }
29
+ case 2: {
30
+ let object = as({}, index);
31
+ for (let [key, index2] of value)
32
+ object[unpair(key)] = unpair(index2);
33
+ return object;
34
+ }
35
+ case 3:
36
+ return as(new Date(value), index);
37
+ case 4: {
38
+ let { source, flags } = value;
39
+ return as(new RegExp(source, flags), index);
40
+ }
41
+ case 5: {
42
+ let map = as(/* @__PURE__ */ new Map(), index);
43
+ for (let [key, index2] of value)
44
+ map.set(unpair(key), unpair(index2));
45
+ return map;
46
+ }
47
+ case 6: {
48
+ let set = as(/* @__PURE__ */ new Set(), index);
49
+ for (let index2 of value)
50
+ set.add(unpair(index2));
51
+ return set;
52
+ }
53
+ case 7: {
54
+ let { name, message } = value;
55
+ return as(new env[name](message), index);
56
+ }
57
+ case 8:
58
+ return as(BigInt(value), index);
59
+ case "BigInt":
60
+ return as(Object(BigInt(value)), index);
61
+ case "ArrayBuffer":
62
+ return as(new Uint8Array(value).buffer, value);
63
+ case "DataView": {
64
+ let { buffer } = new Uint8Array(value);
65
+ return as(new DataView(buffer), value);
66
+ }
67
+ }
68
+ return as(new env[type](value), index);
69
+ };
70
+ return unpair;
71
+ }, deserialize = (serialized) => deserializer(/* @__PURE__ */ new Map(), serialized)(0);
72
+
73
+ // ../../node_modules/@ungap/structured-clone/esm/serialize.js
74
+ var EMPTY = "", { toString } = {}, { keys } = Object, typeOf = (value) => {
75
+ let type = typeof value;
76
+ if (type !== "object" || !value)
77
+ return [0, type];
78
+ let asString = toString.call(value).slice(8, -1);
79
+ switch (asString) {
80
+ case "Array":
81
+ return [1, EMPTY];
82
+ case "Object":
83
+ return [2, EMPTY];
84
+ case "Date":
85
+ return [3, EMPTY];
86
+ case "RegExp":
87
+ return [4, EMPTY];
88
+ case "Map":
89
+ return [5, EMPTY];
90
+ case "Set":
91
+ return [6, EMPTY];
92
+ case "DataView":
93
+ return [1, asString];
94
+ }
95
+ return asString.includes("Array") ? [1, asString] : asString.includes("Error") ? [7, asString] : [2, asString];
96
+ }, shouldSkip = ([TYPE, type]) => TYPE === 0 && (type === "function" || type === "symbol"), serializer = (strict, json, $, _) => {
97
+ let as = (out, value) => {
98
+ let index = _.push(out) - 1;
99
+ return $.set(value, index), index;
100
+ }, pair = (value) => {
101
+ if ($.has(value))
102
+ return $.get(value);
103
+ let [TYPE, type] = typeOf(value);
104
+ switch (TYPE) {
105
+ case 0: {
106
+ let entry = value;
107
+ switch (type) {
108
+ case "bigint":
109
+ TYPE = 8, entry = value.toString();
110
+ break;
111
+ case "function":
112
+ case "symbol":
113
+ if (strict)
114
+ throw new TypeError("unable to serialize " + type);
115
+ entry = null;
116
+ break;
117
+ case "undefined":
118
+ return as([-1], value);
119
+ }
120
+ return as([TYPE, entry], value);
121
+ }
122
+ case 1: {
123
+ if (type) {
124
+ let spread = value;
125
+ return type === "DataView" ? spread = new Uint8Array(value.buffer) : type === "ArrayBuffer" && (spread = new Uint8Array(value)), as([type, [...spread]], value);
126
+ }
127
+ let arr = [], index = as([TYPE, arr], value);
128
+ for (let entry of value)
129
+ arr.push(pair(entry));
130
+ return index;
131
+ }
132
+ case 2: {
133
+ if (type)
134
+ switch (type) {
135
+ case "BigInt":
136
+ return as([type, value.toString()], value);
137
+ case "Boolean":
138
+ case "Number":
139
+ case "String":
140
+ return as([type, value.valueOf()], value);
141
+ }
142
+ if (json && "toJSON" in value)
143
+ return pair(value.toJSON());
144
+ let entries = [], index = as([TYPE, entries], value);
145
+ for (let key of keys(value))
146
+ (strict || !shouldSkip(typeOf(value[key]))) && entries.push([pair(key), pair(value[key])]);
147
+ return index;
148
+ }
149
+ case 3:
150
+ return as([TYPE, value.toISOString()], value);
151
+ case 4: {
152
+ let { source, flags } = value;
153
+ return as([TYPE, { source, flags }], value);
154
+ }
155
+ case 5: {
156
+ let entries = [], index = as([TYPE, entries], value);
157
+ for (let [key, entry] of value)
158
+ (strict || !(shouldSkip(typeOf(key)) || shouldSkip(typeOf(entry)))) && entries.push([pair(key), pair(entry)]);
159
+ return index;
160
+ }
161
+ case 6: {
162
+ let entries = [], index = as([TYPE, entries], value);
163
+ for (let entry of value)
164
+ (strict || !shouldSkip(typeOf(entry))) && entries.push(pair(entry));
165
+ return index;
166
+ }
167
+ }
168
+ let { message } = value;
169
+ return as([TYPE, { name: type, message }], value);
170
+ };
171
+ return pair;
172
+ }, serialize = (value, { json, lossy } = {}) => {
173
+ let _ = [];
174
+ return serializer(!(json || lossy), !!json, /* @__PURE__ */ new Map(), _)(value), _;
175
+ };
176
+
177
+ // ../../node_modules/@ungap/structured-clone/esm/index.js
178
+ var esm_default = typeof structuredClone == "function" ? (
179
+ /* c8 ignore start */
180
+ (any, options) => options && ("json" in options || "lossy" in options) ? deserialize(serialize(any, options)) : structuredClone(any)
181
+ ) : (any, options) => deserialize(serialize(any, options));
182
+
183
+ // ../../node_modules/space-separated-tokens/index.js
184
+ function parse(value) {
185
+ let input = String(value || "").trim();
186
+ return input ? input.split(/[ \t\n\r\f]+/g) : [];
187
+ }
188
+ function stringify(values) {
189
+ return values.join(" ").trim();
190
+ }
191
+
192
+ export {
193
+ esm_default,
194
+ parse,
195
+ stringify
196
+ };