@iress-oss/ids-storybook-config 0.2.5 → 0.2.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/main.js +142 -119
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -121,8 +121,8 @@ function et() {
|
|
|
121
121
|
function tt(e) {
|
|
122
122
|
return e !== null && typeof e == "object" && "type" in e;
|
|
123
123
|
}
|
|
124
|
-
const
|
|
125
|
-
function
|
|
124
|
+
const de = [], nt = !0, X = !1, rt = "skip";
|
|
125
|
+
function be(e, n, t, i) {
|
|
126
126
|
let l;
|
|
127
127
|
typeof n == "function" && typeof t != "function" ? (i = t, t = n) : l = n;
|
|
128
128
|
const a = U(l), r = i ? -1 : 1;
|
|
@@ -146,7 +146,7 @@ function de(e, n, t, i) {
|
|
|
146
146
|
}
|
|
147
147
|
return p;
|
|
148
148
|
function p() {
|
|
149
|
-
let g =
|
|
149
|
+
let g = de, m, d, b;
|
|
150
150
|
if ((!n || a(o, s, f[f.length - 1] || void 0)) && (g = it(t(o, f)), g[0] === X))
|
|
151
151
|
return g;
|
|
152
152
|
if ("children" in o && o.children) {
|
|
@@ -155,11 +155,11 @@ function de(e, n, t, i) {
|
|
|
155
155
|
o
|
|
156
156
|
);
|
|
157
157
|
if (k.children && g[0] !== rt)
|
|
158
|
-
for (
|
|
159
|
-
const x = k.children[
|
|
160
|
-
if (m = u(x,
|
|
158
|
+
for (d = (i ? k.children.length : -1) + r, b = f.concat(k); d > -1 && d < k.children.length; ) {
|
|
159
|
+
const x = k.children[d];
|
|
160
|
+
if (m = u(x, d, b)(), m[0] === X)
|
|
161
161
|
return m;
|
|
162
|
-
|
|
162
|
+
d = typeof m[1] == "number" ? m[1] : d + r;
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
return g;
|
|
@@ -167,13 +167,13 @@ function de(e, n, t, i) {
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
function it(e) {
|
|
170
|
-
return Array.isArray(e) ? e : typeof e == "number" ? [nt, e] : e == null ?
|
|
170
|
+
return Array.isArray(e) ? e : typeof e == "number" ? [nt, e] : e == null ? de : [e];
|
|
171
171
|
}
|
|
172
172
|
function ot(e, n, t) {
|
|
173
173
|
const l = U((t || {}).ignore || []), a = lt(n);
|
|
174
174
|
let r = -1;
|
|
175
175
|
for (; ++r < a.length; )
|
|
176
|
-
|
|
176
|
+
be(e, "text", u);
|
|
177
177
|
function u(s, f) {
|
|
178
178
|
let c = -1, p;
|
|
179
179
|
for (; ++c < f.length; ) {
|
|
@@ -192,7 +192,7 @@ function ot(e, n, t) {
|
|
|
192
192
|
function o(s, f) {
|
|
193
193
|
const c = f[f.length - 1], p = a[r][0], g = a[r][1];
|
|
194
194
|
let m = 0;
|
|
195
|
-
const
|
|
195
|
+
const b = c.children.indexOf(s);
|
|
196
196
|
let k = !1, x = [];
|
|
197
197
|
p.lastIndex = 0;
|
|
198
198
|
let w = p.exec(s.value);
|
|
@@ -210,7 +210,7 @@ function ot(e, n, t) {
|
|
|
210
210
|
break;
|
|
211
211
|
w = p.exec(s.value);
|
|
212
212
|
}
|
|
213
|
-
return k ? (m < s.value.length && x.push({ type: "text", value: s.value.slice(m) }), c.children.splice(
|
|
213
|
+
return k ? (m < s.value.length && x.push({ type: "text", value: s.value.slice(m) }), c.children.splice(b, 1, ...x)) : x = [s], b + x.length;
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
function lt(e) {
|
|
@@ -302,13 +302,13 @@ function kt(e) {
|
|
|
302
302
|
ot(
|
|
303
303
|
e,
|
|
304
304
|
[
|
|
305
|
-
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,
|
|
306
|
-
[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)", "gu"),
|
|
305
|
+
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, dt],
|
|
306
|
+
[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)", "gu"), bt]
|
|
307
307
|
],
|
|
308
308
|
{ ignore: ["link", "linkReference"] }
|
|
309
309
|
);
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function dt(e, n, t, i, l) {
|
|
312
312
|
let a = "";
|
|
313
313
|
if (!xe(l) || (/^w/i.test(n) && (t = n + t, n = "", a = "http://"), !xt(t)))
|
|
314
314
|
return !1;
|
|
@@ -322,7 +322,7 @@ function bt(e, n, t, i, l) {
|
|
|
322
322
|
};
|
|
323
323
|
return r[1] ? [u, { type: "text", value: r[1] }] : u;
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function bt(e, n, t, i) {
|
|
326
326
|
return (
|
|
327
327
|
// Not an expected previous character.
|
|
328
328
|
!xe(i, !0) || // Label ends in not allowed character.
|
|
@@ -358,7 +358,7 @@ function xe(e, n) {
|
|
|
358
358
|
function M(e) {
|
|
359
359
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
360
360
|
}
|
|
361
|
-
we.peek =
|
|
361
|
+
we.peek = Ft;
|
|
362
362
|
function yt() {
|
|
363
363
|
this.buffer();
|
|
364
364
|
}
|
|
@@ -383,16 +383,16 @@ function St(e) {
|
|
|
383
383
|
function Dt(e) {
|
|
384
384
|
this.exit(e);
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function Et(e) {
|
|
387
387
|
const n = this.resume(), t = this.stack[this.stack.length - 1];
|
|
388
388
|
t.type, t.identifier = M(
|
|
389
389
|
this.sliceSerialize(e)
|
|
390
390
|
).toLowerCase(), t.label = n;
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function Tt(e) {
|
|
393
393
|
this.exit(e);
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function Ft() {
|
|
396
396
|
return "[";
|
|
397
397
|
}
|
|
398
398
|
function we(e, n, t, i) {
|
|
@@ -414,8 +414,8 @@ function Lt() {
|
|
|
414
414
|
exit: {
|
|
415
415
|
gfmFootnoteCallString: St,
|
|
416
416
|
gfmFootnoteCall: Dt,
|
|
417
|
-
gfmFootnoteDefinitionLabelString:
|
|
418
|
-
gfmFootnoteDefinition:
|
|
417
|
+
gfmFootnoteDefinitionLabelString: Et,
|
|
418
|
+
gfmFootnoteDefinition: Tt
|
|
419
419
|
}
|
|
420
420
|
};
|
|
421
421
|
}
|
|
@@ -500,51 +500,51 @@ function Ht(e, n) {
|
|
|
500
500
|
const t = n || {}, i = (t.align || []).concat(), l = t.stringLength || Bt, a = [], r = [], u = [], o = [];
|
|
501
501
|
let s = 0, f = -1;
|
|
502
502
|
for (; ++f < e.length; ) {
|
|
503
|
-
const
|
|
503
|
+
const d = [], b = [];
|
|
504
504
|
let k = -1;
|
|
505
505
|
for (e[f].length > s && (s = e[f].length); ++k < e[f].length; ) {
|
|
506
506
|
const x = $t(e[f][k]);
|
|
507
507
|
if (t.alignDelimiters !== !1) {
|
|
508
508
|
const w = l(x);
|
|
509
|
-
|
|
509
|
+
b[k] = w, (o[k] === void 0 || w > o[k]) && (o[k] = w);
|
|
510
510
|
}
|
|
511
|
-
|
|
511
|
+
d.push(x);
|
|
512
512
|
}
|
|
513
|
-
r[f] =
|
|
513
|
+
r[f] = d, u[f] = b;
|
|
514
514
|
}
|
|
515
515
|
let c = -1;
|
|
516
516
|
if (typeof i == "object" && "length" in i)
|
|
517
517
|
for (; ++c < s; )
|
|
518
518
|
a[c] = se(i[c]);
|
|
519
519
|
else {
|
|
520
|
-
const
|
|
520
|
+
const d = se(i);
|
|
521
521
|
for (; ++c < s; )
|
|
522
|
-
a[c] =
|
|
522
|
+
a[c] = d;
|
|
523
523
|
}
|
|
524
524
|
c = -1;
|
|
525
525
|
const p = [], g = [];
|
|
526
526
|
for (; ++c < s; ) {
|
|
527
|
-
const
|
|
528
|
-
let
|
|
529
|
-
|
|
527
|
+
const d = a[c];
|
|
528
|
+
let b = "", k = "";
|
|
529
|
+
d === 99 ? (b = ":", k = ":") : d === 108 ? b = ":" : d === 114 && (k = ":");
|
|
530
530
|
let x = t.alignDelimiters === !1 ? 1 : Math.max(
|
|
531
531
|
1,
|
|
532
|
-
o[c] -
|
|
532
|
+
o[c] - b.length - k.length
|
|
533
533
|
);
|
|
534
|
-
const w =
|
|
535
|
-
t.alignDelimiters !== !1 && (x =
|
|
534
|
+
const w = b + "-".repeat(x) + k;
|
|
535
|
+
t.alignDelimiters !== !1 && (x = b.length + x + k.length, x > o[c] && (o[c] = x), g[c] = x), p[c] = w;
|
|
536
536
|
}
|
|
537
537
|
r.splice(1, 0, p), u.splice(1, 0, g), f = -1;
|
|
538
538
|
const m = [];
|
|
539
539
|
for (; ++f < r.length; ) {
|
|
540
|
-
const
|
|
540
|
+
const d = r[f], b = u[f];
|
|
541
541
|
c = -1;
|
|
542
542
|
const k = [];
|
|
543
543
|
for (; ++c < s; ) {
|
|
544
|
-
const x =
|
|
544
|
+
const x = d[c] || "";
|
|
545
545
|
let w = "", v = "";
|
|
546
546
|
if (t.alignDelimiters !== !1) {
|
|
547
|
-
const C = o[c] - (
|
|
547
|
+
const C = o[c] - (b[c] || 0), y = a[c];
|
|
548
548
|
y === 114 ? w = " ".repeat(C) : y === 99 ? C % 2 ? (w = " ".repeat(C / 2 + 0.5), v = " ".repeat(C / 2 - 0.5)) : (w = " ".repeat(C / 2), v = w) : v = " ".repeat(C);
|
|
549
549
|
}
|
|
550
550
|
t.delimiterStart !== !1 && !c && k.push("|"), t.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
|
|
@@ -776,7 +776,7 @@ function Xt(e, n, t) {
|
|
|
776
776
|
}
|
|
777
777
|
function Yt(e, n, t, i) {
|
|
778
778
|
let l, a, r;
|
|
779
|
-
typeof n == "function" && typeof t != "function" ? (a = void 0, r = n, l = t) : (a = n, r = t, l = i),
|
|
779
|
+
typeof n == "function" && typeof t != "function" ? (a = void 0, r = n, l = t) : (a = n, r = t, l = i), be(e, a, u, l);
|
|
780
780
|
function u(o, s) {
|
|
781
781
|
const f = s[s.length - 1], c = f ? f.children.indexOf(o) : void 0;
|
|
782
782
|
return r(o, c, f);
|
|
@@ -851,8 +851,8 @@ function De(e) {
|
|
|
851
851
|
function on() {
|
|
852
852
|
return "<";
|
|
853
853
|
}
|
|
854
|
-
|
|
855
|
-
function
|
|
854
|
+
Ee.peek = ln;
|
|
855
|
+
function Ee(e, n, t, i) {
|
|
856
856
|
const l = te(t), a = l === '"' ? "Quote" : "Apostrophe", r = t.enter("image");
|
|
857
857
|
let u = t.enter("label");
|
|
858
858
|
const o = t.createTracker(i);
|
|
@@ -880,8 +880,8 @@ function Te(e, n, t, i) {
|
|
|
880
880
|
function ln() {
|
|
881
881
|
return "!";
|
|
882
882
|
}
|
|
883
|
-
|
|
884
|
-
function
|
|
883
|
+
Te.peek = an;
|
|
884
|
+
function Te(e, n, t, i) {
|
|
885
885
|
const l = e.referenceType, a = t.enter("imageReference");
|
|
886
886
|
let r = t.enter("label");
|
|
887
887
|
const u = t.createTracker(i);
|
|
@@ -904,8 +904,8 @@ function Fe(e, n, t, i) {
|
|
|
904
904
|
function an() {
|
|
905
905
|
return "!";
|
|
906
906
|
}
|
|
907
|
-
|
|
908
|
-
function
|
|
907
|
+
Fe.peek = un;
|
|
908
|
+
function Fe(e, n, t) {
|
|
909
909
|
let i = e.value || "", l = "`", a = -1;
|
|
910
910
|
for (; new RegExp("(^|[^`])" + l + "([^`]|$)").test(i); )
|
|
911
911
|
l += "`";
|
|
@@ -1098,7 +1098,7 @@ function kn(e, n, t, i) {
|
|
|
1098
1098
|
const l = t.enter("paragraph"), a = t.enter("phrasing"), r = t.containerPhrasing(e, i);
|
|
1099
1099
|
return a(), l(), r;
|
|
1100
1100
|
}
|
|
1101
|
-
const
|
|
1101
|
+
const dn = (
|
|
1102
1102
|
/** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
|
|
1103
1103
|
/* @__PURE__ */ U([
|
|
1104
1104
|
"break",
|
|
@@ -1124,9 +1124,9 @@ const bn = (
|
|
|
1124
1124
|
"textDirective"
|
|
1125
1125
|
])
|
|
1126
1126
|
);
|
|
1127
|
-
function
|
|
1127
|
+
function bn(e, n, t, i) {
|
|
1128
1128
|
return (e.children.some(function(r) {
|
|
1129
|
-
return
|
|
1129
|
+
return dn(r);
|
|
1130
1130
|
}) ? t.containerPhrasing : t.containerFlow).call(t, e, i);
|
|
1131
1131
|
}
|
|
1132
1132
|
function xn(e) {
|
|
@@ -1188,15 +1188,15 @@ const Re = {
|
|
|
1188
1188
|
hardBreak: fe,
|
|
1189
1189
|
heading: rn,
|
|
1190
1190
|
html: De,
|
|
1191
|
-
image:
|
|
1192
|
-
imageReference:
|
|
1193
|
-
inlineCode:
|
|
1191
|
+
image: Ee,
|
|
1192
|
+
imageReference: Te,
|
|
1193
|
+
inlineCode: Fe,
|
|
1194
1194
|
link: ze,
|
|
1195
1195
|
linkReference: Ie,
|
|
1196
1196
|
list: mn,
|
|
1197
1197
|
listItem: gn,
|
|
1198
1198
|
paragraph: kn,
|
|
1199
|
-
root:
|
|
1199
|
+
root: bn,
|
|
1200
1200
|
strong: _e,
|
|
1201
1201
|
text: yn,
|
|
1202
1202
|
thematicBreak: An
|
|
@@ -1207,10 +1207,10 @@ function vn() {
|
|
|
1207
1207
|
table: Sn,
|
|
1208
1208
|
tableData: me,
|
|
1209
1209
|
tableHeader: me,
|
|
1210
|
-
tableRow:
|
|
1210
|
+
tableRow: En
|
|
1211
1211
|
},
|
|
1212
1212
|
exit: {
|
|
1213
|
-
codeText:
|
|
1213
|
+
codeText: Tn,
|
|
1214
1214
|
table: Dn,
|
|
1215
1215
|
tableData: J,
|
|
1216
1216
|
tableHeader: J,
|
|
@@ -1234,7 +1234,7 @@ function Sn(e) {
|
|
|
1234
1234
|
function Dn(e) {
|
|
1235
1235
|
this.exit(e), this.data.inTable = void 0;
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1237
|
+
function En(e) {
|
|
1238
1238
|
this.enter({ type: "tableRow", children: [] }, e);
|
|
1239
1239
|
}
|
|
1240
1240
|
function J(e) {
|
|
@@ -1243,13 +1243,13 @@ function J(e) {
|
|
|
1243
1243
|
function me(e) {
|
|
1244
1244
|
this.enter({ type: "tableCell", children: [] }, e);
|
|
1245
1245
|
}
|
|
1246
|
-
function
|
|
1246
|
+
function Tn(e) {
|
|
1247
1247
|
let n = this.resume();
|
|
1248
|
-
this.data.inTable && (n = n.replace(/\\([\\|])/g,
|
|
1248
|
+
this.data.inTable && (n = n.replace(/\\([\\|])/g, Fn));
|
|
1249
1249
|
const t = this.stack[this.stack.length - 1];
|
|
1250
1250
|
t.type, t.value = n, this.exit(e);
|
|
1251
1251
|
}
|
|
1252
|
-
function
|
|
1252
|
+
function Fn(e, n) {
|
|
1253
1253
|
return n === "|" ? n : e;
|
|
1254
1254
|
}
|
|
1255
1255
|
function Ln(e) {
|
|
@@ -1281,17 +1281,17 @@ function Ln(e) {
|
|
|
1281
1281
|
tableRow: u
|
|
1282
1282
|
}
|
|
1283
1283
|
};
|
|
1284
|
-
function r(g, m,
|
|
1285
|
-
return s(f(g,
|
|
1284
|
+
function r(g, m, d, b) {
|
|
1285
|
+
return s(f(g, d, b), g.align);
|
|
1286
1286
|
}
|
|
1287
|
-
function u(g, m,
|
|
1288
|
-
const k = c(g,
|
|
1287
|
+
function u(g, m, d, b) {
|
|
1288
|
+
const k = c(g, d, b), x = s([k]);
|
|
1289
1289
|
return x.slice(0, x.indexOf(`
|
|
1290
1290
|
`));
|
|
1291
1291
|
}
|
|
1292
|
-
function o(g, m,
|
|
1293
|
-
const k =
|
|
1294
|
-
...
|
|
1292
|
+
function o(g, m, d, b) {
|
|
1293
|
+
const k = d.enter("tableCell"), x = d.enter("phrasing"), w = d.containerPhrasing(g, {
|
|
1294
|
+
...b,
|
|
1295
1295
|
before: a,
|
|
1296
1296
|
after: a
|
|
1297
1297
|
});
|
|
@@ -1308,25 +1308,25 @@ function Ln(e) {
|
|
|
1308
1308
|
stringLength: l
|
|
1309
1309
|
});
|
|
1310
1310
|
}
|
|
1311
|
-
function f(g, m,
|
|
1312
|
-
const
|
|
1311
|
+
function f(g, m, d) {
|
|
1312
|
+
const b = g.children;
|
|
1313
1313
|
let k = -1;
|
|
1314
1314
|
const x = [], w = m.enter("table");
|
|
1315
|
-
for (; ++k <
|
|
1316
|
-
x[k] = c(
|
|
1315
|
+
for (; ++k < b.length; )
|
|
1316
|
+
x[k] = c(b[k], m, d);
|
|
1317
1317
|
return w(), x;
|
|
1318
1318
|
}
|
|
1319
|
-
function c(g, m,
|
|
1320
|
-
const
|
|
1319
|
+
function c(g, m, d) {
|
|
1320
|
+
const b = g.children;
|
|
1321
1321
|
let k = -1;
|
|
1322
1322
|
const x = [], w = m.enter("tableRow");
|
|
1323
|
-
for (; ++k <
|
|
1324
|
-
x[k] = o(
|
|
1323
|
+
for (; ++k < b.length; )
|
|
1324
|
+
x[k] = o(b[k], g, m, d);
|
|
1325
1325
|
return w(), x;
|
|
1326
1326
|
}
|
|
1327
|
-
function p(g, m,
|
|
1328
|
-
let
|
|
1329
|
-
return
|
|
1327
|
+
function p(g, m, d) {
|
|
1328
|
+
let b = Re.inlineCode(g, m, d);
|
|
1329
|
+
return d.stack.includes("tableCell") && (b = b.replace(/\|/g, "\\$&")), b;
|
|
1330
1330
|
}
|
|
1331
1331
|
}
|
|
1332
1332
|
function zn() {
|
|
@@ -1465,7 +1465,7 @@ const Hn = {
|
|
|
1465
1465
|
name: "protocolAutolink",
|
|
1466
1466
|
tokenize: Un,
|
|
1467
1467
|
previous: qe
|
|
1468
|
-
},
|
|
1468
|
+
}, T = {
|
|
1469
1469
|
name: "emailAutolink",
|
|
1470
1470
|
tokenize: Wn,
|
|
1471
1471
|
previous: We
|
|
@@ -1475,17 +1475,17 @@ function qn() {
|
|
|
1475
1475
|
text: S
|
|
1476
1476
|
};
|
|
1477
1477
|
}
|
|
1478
|
-
let
|
|
1479
|
-
for (;
|
|
1480
|
-
S[
|
|
1481
|
-
S[43] =
|
|
1482
|
-
S[45] =
|
|
1483
|
-
S[46] =
|
|
1484
|
-
S[95] =
|
|
1485
|
-
S[72] = [
|
|
1486
|
-
S[104] = [
|
|
1487
|
-
S[87] = [
|
|
1488
|
-
S[119] = [
|
|
1478
|
+
let F = 48;
|
|
1479
|
+
for (; F < 123; )
|
|
1480
|
+
S[F] = T, F++, F === 58 ? F = 65 : F === 91 && (F = 97);
|
|
1481
|
+
S[43] = T;
|
|
1482
|
+
S[45] = T;
|
|
1483
|
+
S[46] = T;
|
|
1484
|
+
S[95] = T;
|
|
1485
|
+
S[72] = [T, He];
|
|
1486
|
+
S[104] = [T, He];
|
|
1487
|
+
S[87] = [T, Be];
|
|
1488
|
+
S[119] = [T, Be];
|
|
1489
1489
|
function Wn(e, n, t) {
|
|
1490
1490
|
const i = this;
|
|
1491
1491
|
let l, a;
|
|
@@ -1640,7 +1640,7 @@ function Jn(e, n, t) {
|
|
|
1640
1640
|
}
|
|
1641
1641
|
return n;
|
|
1642
1642
|
}
|
|
1643
|
-
function
|
|
1643
|
+
function E(e, n, t, i) {
|
|
1644
1644
|
const l = i ? i - 1 : Number.POSITIVE_INFINITY;
|
|
1645
1645
|
let a = 0;
|
|
1646
1646
|
return r;
|
|
@@ -1658,7 +1658,7 @@ const Xn = {
|
|
|
1658
1658
|
function Yn(e, n, t) {
|
|
1659
1659
|
return i;
|
|
1660
1660
|
function i(a) {
|
|
1661
|
-
return D(a) ?
|
|
1661
|
+
return D(a) ? E(e, l, "linePrefix")(a) : l(a);
|
|
1662
1662
|
}
|
|
1663
1663
|
function l(a) {
|
|
1664
1664
|
return a === null || I(a) ? n(a) : t(a);
|
|
@@ -1820,8 +1820,8 @@ function or(e, n, t) {
|
|
|
1820
1820
|
return t(m);
|
|
1821
1821
|
if (m === 93) {
|
|
1822
1822
|
e.exit("chunkString");
|
|
1823
|
-
const
|
|
1824
|
-
return a = M(i.sliceSerialize(
|
|
1823
|
+
const d = e.exit("gfmFootnoteDefinitionLabelString");
|
|
1824
|
+
return a = M(i.sliceSerialize(d)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(m), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), p;
|
|
1825
1825
|
}
|
|
1826
1826
|
return A(m) || (u = !0), r++, e.consume(m), m === 92 ? c : f;
|
|
1827
1827
|
}
|
|
@@ -1829,7 +1829,7 @@ function or(e, n, t) {
|
|
|
1829
1829
|
return m === 91 || m === 92 || m === 93 ? (e.consume(m), r++, f) : f(m);
|
|
1830
1830
|
}
|
|
1831
1831
|
function p(m) {
|
|
1832
|
-
return m === 58 ? (e.enter("definitionMarker"), e.consume(m), e.exit("definitionMarker"), l.includes(a) || l.push(a),
|
|
1832
|
+
return m === 58 ? (e.enter("definitionMarker"), e.consume(m), e.exit("definitionMarker"), l.includes(a) || l.push(a), E(e, g, "gfmFootnoteDefinitionWhitespace")) : t(m);
|
|
1833
1833
|
}
|
|
1834
1834
|
function g(m) {
|
|
1835
1835
|
return n(m);
|
|
@@ -1843,7 +1843,7 @@ function ar(e) {
|
|
|
1843
1843
|
}
|
|
1844
1844
|
function ur(e, n, t) {
|
|
1845
1845
|
const i = this;
|
|
1846
|
-
return
|
|
1846
|
+
return E(e, l, "gfmFootnoteDefinitionIndent", 5);
|
|
1847
1847
|
function l(a) {
|
|
1848
1848
|
const r = i.events[i.events.length - 1];
|
|
1849
1849
|
return r && r[1].type === "gfmFootnoteDefinitionIndent" && r[2].sliceSerialize(r[1], !0).length === 4 ? n(a) : t(a);
|
|
@@ -1901,12 +1901,12 @@ function sr(e) {
|
|
|
1901
1901
|
return s === 126 && f[f.length - 1][1].type !== "characterEscape" ? o(m) : (r.enter("strikethroughSequenceTemporary"), g(m));
|
|
1902
1902
|
}
|
|
1903
1903
|
function g(m) {
|
|
1904
|
-
const
|
|
1904
|
+
const d = $(s);
|
|
1905
1905
|
if (m === 126)
|
|
1906
1906
|
return c > 1 ? o(m) : (r.consume(m), c++, g);
|
|
1907
1907
|
if (c < 2 && !t) return o(m);
|
|
1908
|
-
const
|
|
1909
|
-
return
|
|
1908
|
+
const b = r.exit("strikethroughSequenceTemporary"), k = $(m);
|
|
1909
|
+
return b._open = !k || k === 2 && !!d, b._close = !d || d === 2 && !!k, u(m);
|
|
1910
1910
|
}
|
|
1911
1911
|
}
|
|
1912
1912
|
}
|
|
@@ -2031,7 +2031,7 @@ function pr(e, n, t) {
|
|
|
2031
2031
|
return h === 124 || (r = !0, a += 1), f(h);
|
|
2032
2032
|
}
|
|
2033
2033
|
function f(h) {
|
|
2034
|
-
return h === null ? t(h) : I(h) ? a > 1 ? (a = 0, i.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"), g) : t(h) : D(h) ?
|
|
2034
|
+
return h === null ? t(h) : I(h) ? a > 1 ? (a = 0, i.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"), g) : t(h) : D(h) ? E(e, f, "whitespace")(h) : (a += 1, r && (r = !1, l += 1), h === 124 ? (e.enter("tableCellDivider"), e.consume(h), e.exit("tableCellDivider"), r = !0, f) : (e.enter("data"), c(h)));
|
|
2035
2035
|
}
|
|
2036
2036
|
function c(h) {
|
|
2037
2037
|
return h === null || h === 124 || A(h) ? (e.exit("data"), f(h)) : (e.consume(h), h === 92 ? p : c);
|
|
@@ -2040,15 +2040,15 @@ function pr(e, n, t) {
|
|
|
2040
2040
|
return h === 92 || h === 124 ? (e.consume(h), c) : c(h);
|
|
2041
2041
|
}
|
|
2042
2042
|
function g(h) {
|
|
2043
|
-
return i.interrupt = !1, i.parser.lazy[i.now().line] ? t(h) : (e.enter("tableDelimiterRow"), r = !1, D(h) ?
|
|
2043
|
+
return i.interrupt = !1, i.parser.lazy[i.now().line] ? t(h) : (e.enter("tableDelimiterRow"), r = !1, D(h) ? E(e, m, "linePrefix", i.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(h) : m(h));
|
|
2044
2044
|
}
|
|
2045
2045
|
function m(h) {
|
|
2046
|
-
return h === 45 || h === 58 ?
|
|
2047
|
-
}
|
|
2048
|
-
function b(h) {
|
|
2049
|
-
return D(h) ? T(e, d, "whitespace")(h) : d(h);
|
|
2046
|
+
return h === 45 || h === 58 ? b(h) : h === 124 ? (r = !0, e.enter("tableCellDivider"), e.consume(h), e.exit("tableCellDivider"), d) : C(h);
|
|
2050
2047
|
}
|
|
2051
2048
|
function d(h) {
|
|
2049
|
+
return D(h) ? E(e, b, "whitespace")(h) : b(h);
|
|
2050
|
+
}
|
|
2051
|
+
function b(h) {
|
|
2052
2052
|
return h === 58 ? (a += 1, r = !0, e.enter("tableDelimiterMarker"), e.consume(h), e.exit("tableDelimiterMarker"), k) : h === 45 ? (a += 1, k(h)) : h === null || I(h) ? v(h) : C(h);
|
|
2053
2053
|
}
|
|
2054
2054
|
function k(h) {
|
|
@@ -2058,7 +2058,7 @@ function pr(e, n, t) {
|
|
|
2058
2058
|
return h === 45 ? (e.consume(h), x) : h === 58 ? (r = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(h), e.exit("tableDelimiterMarker"), w) : (e.exit("tableDelimiterFiller"), w(h));
|
|
2059
2059
|
}
|
|
2060
2060
|
function w(h) {
|
|
2061
|
-
return D(h) ?
|
|
2061
|
+
return D(h) ? E(e, v, "whitespace")(h) : v(h);
|
|
2062
2062
|
}
|
|
2063
2063
|
function v(h) {
|
|
2064
2064
|
return h === 124 ? m(h) : h === null || I(h) ? !r || l !== a ? C(h) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), n(h)) : C(h);
|
|
@@ -2070,7 +2070,7 @@ function pr(e, n, t) {
|
|
|
2070
2070
|
return e.enter("tableRow"), O(h);
|
|
2071
2071
|
}
|
|
2072
2072
|
function O(h) {
|
|
2073
|
-
return h === 124 ? (e.enter("tableCellDivider"), e.consume(h), e.exit("tableCellDivider"), O) : h === null || I(h) ? (e.exit("tableRow"), n(h)) : D(h) ?
|
|
2073
|
+
return h === 124 ? (e.enter("tableCellDivider"), e.consume(h), e.exit("tableCellDivider"), O) : h === null || I(h) ? (e.exit("tableRow"), n(h)) : D(h) ? E(e, O, "whitespace")(h) : (e.enter("data"), j(h));
|
|
2074
2074
|
}
|
|
2075
2075
|
function j(h) {
|
|
2076
2076
|
return h === null || h === 124 || A(h) ? (e.exit("data"), O(h)) : (e.consume(h), h === 92 ? Ne : j);
|
|
@@ -2120,8 +2120,8 @@ function B(e, n, t, i, l, a) {
|
|
|
2120
2120
|
if (e.add(t[2], 0, [["enter", c, n]]), i !== 2) {
|
|
2121
2121
|
const p = n.events[t[2]], g = n.events[t[3]];
|
|
2122
2122
|
if (p[1].end = Object.assign({}, g[1].end), p[1].type = "chunkText", p[1].contentType = "text", t[3] > t[2] + 1) {
|
|
2123
|
-
const m = t[2] + 1,
|
|
2124
|
-
e.add(m,
|
|
2123
|
+
const m = t[2] + 1, d = t[3] - t[2] - 1;
|
|
2124
|
+
e.add(m, d, []);
|
|
2125
2125
|
}
|
|
2126
2126
|
}
|
|
2127
2127
|
e.add(t[3] + 1, 0, [["exit", c, n]]);
|
|
@@ -2138,16 +2138,16 @@ function z(e, n) {
|
|
|
2138
2138
|
}
|
|
2139
2139
|
const kr = {
|
|
2140
2140
|
name: "tasklistCheck",
|
|
2141
|
-
tokenize:
|
|
2141
|
+
tokenize: br
|
|
2142
2142
|
};
|
|
2143
|
-
function
|
|
2143
|
+
function dr() {
|
|
2144
2144
|
return {
|
|
2145
2145
|
text: {
|
|
2146
2146
|
91: kr
|
|
2147
2147
|
}
|
|
2148
2148
|
};
|
|
2149
2149
|
}
|
|
2150
|
-
function
|
|
2150
|
+
function br(e, n, t) {
|
|
2151
2151
|
const i = this;
|
|
2152
2152
|
return l;
|
|
2153
2153
|
function l(o) {
|
|
@@ -2171,7 +2171,7 @@ function dr(e, n, t) {
|
|
|
2171
2171
|
}
|
|
2172
2172
|
}
|
|
2173
2173
|
function xr(e, n, t) {
|
|
2174
|
-
return
|
|
2174
|
+
return E(e, i, "whitespace");
|
|
2175
2175
|
function i(l) {
|
|
2176
2176
|
return l === null ? t(l) : n(l);
|
|
2177
2177
|
}
|
|
@@ -2182,7 +2182,7 @@ function wr(e) {
|
|
|
2182
2182
|
tr(),
|
|
2183
2183
|
sr(e),
|
|
2184
2184
|
mr(),
|
|
2185
|
-
|
|
2185
|
+
dr()
|
|
2186
2186
|
]);
|
|
2187
2187
|
}
|
|
2188
2188
|
const yr = {};
|
|
@@ -2295,8 +2295,37 @@ const Ar = /* @__PURE__ */ Qe(import.meta.url), vr = /* @__PURE__ */ Ue(Ar), Sr
|
|
|
2295
2295
|
window.addEventListener('load', broadcastHash);
|
|
2296
2296
|
<\/script>`,
|
|
2297
2297
|
`<script>
|
|
2298
|
-
function
|
|
2299
|
-
if (!event.data
|
|
2298
|
+
window.addEventListener('message', function passTheme(event) {
|
|
2299
|
+
if (!event.data) {
|
|
2300
|
+
return;
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2303
|
+
const { type, ...data } = event.data;
|
|
2304
|
+
|
|
2305
|
+
if (type !== 'PASS_THEME') {
|
|
2306
|
+
return;
|
|
2307
|
+
}
|
|
2308
|
+
|
|
2309
|
+
const frames = document.querySelectorAll('iframe');
|
|
2310
|
+
frames.forEach((f) => {
|
|
2311
|
+
try {
|
|
2312
|
+
f.contentWindow?.postMessage({ type: 'LOAD_THEME', data }, '*');
|
|
2313
|
+
} catch (err) {
|
|
2314
|
+
console.debug('[Storybook Host] Skipped frame broadcast:', err);
|
|
2315
|
+
}
|
|
2316
|
+
});
|
|
2317
|
+
});
|
|
2318
|
+
<\/script>`,
|
|
2319
|
+
o.BASE_PATH ? `<base href="${o.BASE_PATH}">` : !1
|
|
2320
|
+
].filter(Boolean).join(`
|
|
2321
|
+
`);
|
|
2322
|
+
}, r.previewHead = (u) => {
|
|
2323
|
+
const o = ae("", process.cwd(), "BASE_PATH");
|
|
2324
|
+
return [
|
|
2325
|
+
u,
|
|
2326
|
+
`<script>
|
|
2327
|
+
window.addEventListener('message', function loadTheme(event) {
|
|
2328
|
+
if (!event.data || event.data.type !== 'LOAD_THEME') {
|
|
2300
2329
|
return;
|
|
2301
2330
|
}
|
|
2302
2331
|
|
|
@@ -2329,16 +2358,10 @@ const Ar = /* @__PURE__ */ Qe(import.meta.url), vr = /* @__PURE__ */ Ue(Ar), Sr
|
|
|
2329
2358
|
|
|
2330
2359
|
document.documentElement.setAttribute('data-theme', name);
|
|
2331
2360
|
document.documentElement.classList.add(name);
|
|
2332
|
-
}
|
|
2333
|
-
|
|
2334
|
-
window.addEventListener('message', loadTheme);
|
|
2361
|
+
});
|
|
2335
2362
|
<\/script>`,
|
|
2336
2363
|
o.BASE_PATH ? `<base href="${o.BASE_PATH}">` : !1
|
|
2337
2364
|
].filter(Boolean).join(`
|
|
2338
|
-
`);
|
|
2339
|
-
}, r.previewHead = (u) => {
|
|
2340
|
-
const o = ae("", process.cwd(), "BASE_PATH");
|
|
2341
|
-
return [u, o.BASE_PATH ? `<base href="${o.BASE_PATH}">` : !1].filter(Boolean).join(`
|
|
2342
2365
|
`);
|
|
2343
2366
|
}, r;
|
|
2344
2367
|
};
|