@iress-oss/ids-storybook-config 0.2.7 → 0.2.9
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 +42 -29
- package/dist/manager.d.ts +1 -1
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -25,7 +25,7 @@ function z(e) {
|
|
|
25
25
|
function A(e) {
|
|
26
26
|
return e !== null && (e < 0 || e === 32);
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function E(e) {
|
|
29
29
|
return e === -2 || e === -1 || e === 32;
|
|
30
30
|
}
|
|
31
31
|
const W = /* @__PURE__ */ N(new RegExp("\\p{P}|\\p{S}", "u")), L = /* @__PURE__ */ N(/\s/);
|
|
@@ -380,10 +380,10 @@ function St(e) {
|
|
|
380
380
|
this.sliceSerialize(e)
|
|
381
381
|
).toLowerCase(), t.label = n;
|
|
382
382
|
}
|
|
383
|
-
function
|
|
383
|
+
function Et(e) {
|
|
384
384
|
this.exit(e);
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function Dt(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)
|
|
@@ -413,8 +413,8 @@ function Lt() {
|
|
|
413
413
|
},
|
|
414
414
|
exit: {
|
|
415
415
|
gfmFootnoteCallString: St,
|
|
416
|
-
gfmFootnoteCall:
|
|
417
|
-
gfmFootnoteDefinitionLabelString:
|
|
416
|
+
gfmFootnoteCall: Et,
|
|
417
|
+
gfmFootnoteDefinitionLabelString: Dt,
|
|
418
418
|
gfmFootnoteDefinition: Tt
|
|
419
419
|
}
|
|
420
420
|
};
|
|
@@ -844,15 +844,15 @@ function rn(e, n, t, i) {
|
|
|
844
844
|
});
|
|
845
845
|
return /^[\t ]/.test(s) && (s = R(s.charCodeAt(0)) + s.slice(1)), s = s ? r + " " + s : r, t.options.closeAtx && (s += " " + r), o(), u(), s;
|
|
846
846
|
}
|
|
847
|
-
|
|
848
|
-
function
|
|
847
|
+
Ee.peek = on;
|
|
848
|
+
function Ee(e) {
|
|
849
849
|
return e.value || "";
|
|
850
850
|
}
|
|
851
851
|
function on() {
|
|
852
852
|
return "<";
|
|
853
853
|
}
|
|
854
|
-
|
|
855
|
-
function
|
|
854
|
+
De.peek = ln;
|
|
855
|
+
function De(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);
|
|
@@ -1187,8 +1187,8 @@ const Re = {
|
|
|
1187
1187
|
emphasis: Ae,
|
|
1188
1188
|
hardBreak: fe,
|
|
1189
1189
|
heading: rn,
|
|
1190
|
-
html:
|
|
1191
|
-
image:
|
|
1190
|
+
html: Ee,
|
|
1191
|
+
image: De,
|
|
1192
1192
|
imageReference: Te,
|
|
1193
1193
|
inlineCode: Fe,
|
|
1194
1194
|
link: Ie,
|
|
@@ -1207,11 +1207,11 @@ function vn() {
|
|
|
1207
1207
|
table: Sn,
|
|
1208
1208
|
tableData: me,
|
|
1209
1209
|
tableHeader: me,
|
|
1210
|
-
tableRow:
|
|
1210
|
+
tableRow: Dn
|
|
1211
1211
|
},
|
|
1212
1212
|
exit: {
|
|
1213
1213
|
codeText: Tn,
|
|
1214
|
-
table:
|
|
1214
|
+
table: En,
|
|
1215
1215
|
tableData: J,
|
|
1216
1216
|
tableHeader: J,
|
|
1217
1217
|
tableRow: J
|
|
@@ -1231,10 +1231,10 @@ function Sn(e) {
|
|
|
1231
1231
|
e
|
|
1232
1232
|
), this.data.inTable = !0;
|
|
1233
1233
|
}
|
|
1234
|
-
function
|
|
1234
|
+
function En(e) {
|
|
1235
1235
|
this.exit(e), this.data.inTable = void 0;
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1237
|
+
function Dn(e) {
|
|
1238
1238
|
this.enter({ type: "tableRow", children: [] }, e);
|
|
1239
1239
|
}
|
|
1240
1240
|
function J(e) {
|
|
@@ -1640,15 +1640,15 @@ function Jn(e, n, t) {
|
|
|
1640
1640
|
}
|
|
1641
1641
|
return n;
|
|
1642
1642
|
}
|
|
1643
|
-
function
|
|
1643
|
+
function D(e, n, t, i) {
|
|
1644
1644
|
const l = i ? i - 1 : Number.POSITIVE_INFINITY;
|
|
1645
1645
|
let a = 0;
|
|
1646
1646
|
return r;
|
|
1647
1647
|
function r(o) {
|
|
1648
|
-
return
|
|
1648
|
+
return E(o) ? (e.enter(t), u(o)) : n(o);
|
|
1649
1649
|
}
|
|
1650
1650
|
function u(o) {
|
|
1651
|
-
return
|
|
1651
|
+
return E(o) && a++ < l ? (e.consume(o), u) : (e.exit(t), n(o));
|
|
1652
1652
|
}
|
|
1653
1653
|
}
|
|
1654
1654
|
const Xn = {
|
|
@@ -1658,7 +1658,7 @@ const Xn = {
|
|
|
1658
1658
|
function Yn(e, n, t) {
|
|
1659
1659
|
return i;
|
|
1660
1660
|
function i(a) {
|
|
1661
|
-
return
|
|
1661
|
+
return E(a) ? D(e, l, "linePrefix")(a) : l(a);
|
|
1662
1662
|
}
|
|
1663
1663
|
function l(a) {
|
|
1664
1664
|
return a === null || z(a) ? n(a) : t(a);
|
|
@@ -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), D(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 D(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);
|
|
@@ -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) : z(h) ? a > 1 ? (a = 0, i.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"), g) : t(h) :
|
|
2034
|
+
return h === null ? t(h) : z(h) ? a > 1 ? (a = 0, i.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"), g) : t(h) : E(h) ? D(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,13 +2040,13 @@ 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,
|
|
2043
|
+
return i.interrupt = !1, i.parser.lazy[i.now().line] ? t(h) : (e.enter("tableDelimiterRow"), r = !1, E(h) ? D(e, m, "linePrefix", i.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(h) : m(h));
|
|
2044
2044
|
}
|
|
2045
2045
|
function m(h) {
|
|
2046
2046
|
return h === 45 || h === 58 ? b(h) : h === 124 ? (r = !0, e.enter("tableCellDivider"), e.consume(h), e.exit("tableCellDivider"), d) : C(h);
|
|
2047
2047
|
}
|
|
2048
2048
|
function d(h) {
|
|
2049
|
-
return
|
|
2049
|
+
return E(h) ? D(e, b, "whitespace")(h) : b(h);
|
|
2050
2050
|
}
|
|
2051
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 || z(h) ? v(h) : C(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
|
|
2061
|
+
return E(h) ? D(e, v, "whitespace")(h) : v(h);
|
|
2062
2062
|
}
|
|
2063
2063
|
function v(h) {
|
|
2064
2064
|
return h === 124 ? m(h) : h === null || z(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 || z(h) ? (e.exit("tableRow"), n(h)) :
|
|
2073
|
+
return h === 124 ? (e.enter("tableCellDivider"), e.consume(h), e.exit("tableCellDivider"), O) : h === null || z(h) ? (e.exit("tableRow"), n(h)) : E(h) ? D(e, O, "whitespace")(h) : (e.enter("data"), H(h));
|
|
2074
2074
|
}
|
|
2075
2075
|
function H(h) {
|
|
2076
2076
|
return h === null || h === 124 || A(h) ? (e.exit("data"), O(h)) : (e.consume(h), h === 92 ? Ne : H);
|
|
@@ -2165,13 +2165,13 @@ function br(e, n, t) {
|
|
|
2165
2165
|
return o === 93 ? (e.enter("taskListCheckMarker"), e.consume(o), e.exit("taskListCheckMarker"), e.exit("taskListCheck"), u) : t(o);
|
|
2166
2166
|
}
|
|
2167
2167
|
function u(o) {
|
|
2168
|
-
return z(o) ? n(o) :
|
|
2168
|
+
return z(o) ? n(o) : E(o) ? e.check({
|
|
2169
2169
|
tokenize: xr
|
|
2170
2170
|
}, n, t)(o) : t(o);
|
|
2171
2171
|
}
|
|
2172
2172
|
}
|
|
2173
2173
|
function xr(e, n, t) {
|
|
2174
|
-
return
|
|
2174
|
+
return D(e, i, "whitespace");
|
|
2175
2175
|
function i(l) {
|
|
2176
2176
|
return l === null ? t(l) : n(l);
|
|
2177
2177
|
}
|
|
@@ -2329,7 +2329,7 @@ const Ar = /* @__PURE__ */ Qe(import.meta.url), vr = /* @__PURE__ */ Ue(Ar), Sr
|
|
|
2329
2329
|
return;
|
|
2330
2330
|
}
|
|
2331
2331
|
|
|
2332
|
-
const { name, href, css } = event.data;
|
|
2332
|
+
const { name, href, css, fonts = [] } = event.data;
|
|
2333
2333
|
|
|
2334
2334
|
let existingHref = document.getElementById('storybook-config-theme-href');
|
|
2335
2335
|
let existingCss = document.getElementById('storybook-config-theme-css');
|
|
@@ -2366,6 +2366,19 @@ const Ar = /* @__PURE__ */ Qe(import.meta.url), vr = /* @__PURE__ */ Ue(Ar), Sr
|
|
|
2366
2366
|
existingCss.innerHTML = css;
|
|
2367
2367
|
}
|
|
2368
2368
|
|
|
2369
|
+
fonts?.forEach((font) => {
|
|
2370
|
+
const existingFont = document.querySelector(\`link[href="\${font}"]\`);
|
|
2371
|
+
|
|
2372
|
+
if (existingFont) {
|
|
2373
|
+
return;
|
|
2374
|
+
}
|
|
2375
|
+
|
|
2376
|
+
const link = document.createElement('link');
|
|
2377
|
+
link.rel = 'stylesheet';
|
|
2378
|
+
link.href = font;
|
|
2379
|
+
document.head.appendChild(link);
|
|
2380
|
+
});
|
|
2381
|
+
|
|
2369
2382
|
document.documentElement.setAttribute('data-theme', name);
|
|
2370
2383
|
document.documentElement.classList.add(name);
|
|
2371
2384
|
});
|
package/dist/manager.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iress-oss/ids-storybook-config",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@iress-oss/ids-storybook-okta": "^0.1.2",
|
|
54
54
|
"@iress-oss/ids-storybook-sandbox": "^0.2.1",
|
|
55
55
|
"@iress-oss/ids-storybook-toggle-stories": "^0.1.0",
|
|
56
|
-
"@iress-oss/ids-storybook-version-badge": "^0.1.
|
|
56
|
+
"@iress-oss/ids-storybook-version-badge": "^0.1.1",
|
|
57
57
|
"@storybook/addon-a11y": "10.0.8",
|
|
58
58
|
"@storybook/addon-docs": "10.0.8",
|
|
59
59
|
"@storybook/addon-links": "10.0.8",
|