@uva-glass/component-library 1.64.5 → 1.64.7
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/Lexical.prod-DeeCy7Xd.js +4216 -0
- package/dist/Lexical.prod-DeeCy7Xd.js.map +1 -0
- package/dist/LexicalClipboard.prod-CayrMfkI.js +258 -0
- package/dist/LexicalClipboard.prod-CayrMfkI.js.map +1 -0
- package/dist/{LexicalLink.prod-BvJo1BD4.js → LexicalLink.prod-Biaqry-c.js} +40 -40
- package/dist/LexicalLink.prod-Biaqry-c.js.map +1 -0
- package/dist/{LexicalList.prod-igdv32dp.js → LexicalList.prod-Uk8UObU7.js} +52 -50
- package/dist/LexicalList.prod-Uk8UObU7.js.map +1 -0
- package/dist/LexicalSelection.prod-C1TEIGhq.js +86 -0
- package/dist/{LexicalSelection.prod-CL_DfdL6.js.map → LexicalSelection.prod-C1TEIGhq.js.map} +1 -1
- package/dist/LexicalTable.prod-hx6rW3fc.js +1338 -0
- package/dist/LexicalTable.prod-hx6rW3fc.js.map +1 -0
- package/dist/LexicalUtils.prod-CCjlRAc-.js +94 -0
- package/dist/LexicalUtils.prod-CCjlRAc-.js.map +1 -0
- package/dist/{TablePlugin-BVkwu1Gt.js → TablePlugin-BbiBRjod.js} +45 -45
- package/dist/{TablePlugin-BVkwu1Gt.js.map → TablePlugin-BbiBRjod.js.map} +1 -1
- package/dist/components/Buttons/Button.stories.js +1 -1
- package/dist/components/Buttons/LinkButton.stories.js +1 -1
- package/dist/components/Buttons/MenuButton.stories.js +1 -1
- package/dist/components/Checkbox/Checkbox.stories.js +1 -1
- package/dist/components/CheckboxButton/CheckboxButton.stories.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +2 -2
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +1 -1
- package/dist/components/Drawer/Drawer.stories.js +1 -1
- package/dist/components/FormInput/FormInput.js +2 -2
- package/dist/components/FormInput/FormInput.stories.js +1 -1
- package/dist/components/IconButton/IconButton.stories.js +1 -1
- package/dist/components/InputField/InputField.stories.js +3 -3
- package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.js +2 -2
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +2 -2
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +2 -2
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +3 -3
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +2 -2
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +7 -7
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +5 -5
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +3 -3
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +69 -69
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +25 -25
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +12 -12
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +2 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +4 -4
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +24 -24
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +26 -26
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/RteEditor.js +474 -473
- package/dist/components/RteEditor/RteEditor.js.map +1 -1
- package/dist/components/RteEditor/helpers.js +9 -9
- package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
- package/dist/components/Sortable/Sortable.stories.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{helpers-BKqr9jXh.js → helpers-CgzuKnuq.js} +39 -39
- package/dist/{helpers-BKqr9jXh.js.map → helpers-CgzuKnuq.js.map} +1 -1
- package/dist/index-0wq-B7do.js +238 -0
- package/dist/{index-DPQ9bZx5.js.map → index-0wq-B7do.js.map} +1 -1
- package/dist/{index-DsprzSCj.js → index-B9BWML6P.js} +1025 -963
- package/dist/{index-DsprzSCj.js.map → index-B9BWML6P.js.map} +1 -1
- package/dist/{index-C9QoqAAt.js → index-DQyNeMuh.js} +66 -66
- package/dist/index-DQyNeMuh.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/react-18-BIqxBxbW.js +65 -0
- package/dist/{react-18-C0Aiha-e.js.map → react-18-BIqxBxbW.js.map} +1 -1
- package/dist/storybook__react.d.js +186 -183
- package/dist/storybook__react.d.js.map +1 -1
- package/package.json +19 -19
- package/dist/Lexical.prod-RJB8n7sC.js +0 -4072
- package/dist/Lexical.prod-RJB8n7sC.js.map +0 -1
- package/dist/LexicalClipboard.prod-DB_B0Sr6.js +0 -259
- package/dist/LexicalClipboard.prod-DB_B0Sr6.js.map +0 -1
- package/dist/LexicalLink.prod-BvJo1BD4.js.map +0 -1
- package/dist/LexicalList.prod-igdv32dp.js.map +0 -1
- package/dist/LexicalSelection.prod-CL_DfdL6.js +0 -86
- package/dist/LexicalTable.prod-CfgKmbyy.js +0 -1221
- package/dist/LexicalTable.prod-CfgKmbyy.js.map +0 -1
- package/dist/LexicalUtils.prod-mYf1cd8X.js +0 -94
- package/dist/LexicalUtils.prod-mYf1cd8X.js.map +0 -1
- package/dist/index-C9QoqAAt.js.map +0 -1
- package/dist/index-DPQ9bZx5.js +0 -231
- package/dist/react-18-C0Aiha-e.js +0 -52
|
@@ -767,7 +767,7 @@ var Ut$1 = ie(At$1()), Tt$1 = x$3({
|
|
|
767
767
|
return typeof vo == "function" && bo(_o, ".prototype.") > -1 ? go(vo) : vo;
|
|
768
768
|
}, "callBoundIntrinsic");
|
|
769
769
|
}
|
|
770
|
-
}), be = x$3({
|
|
770
|
+
}), be$1 = x$3({
|
|
771
771
|
"node_modules/has-tostringtag/shams.js"(Kt, uo) {
|
|
772
772
|
var ho = Tt$1();
|
|
773
773
|
uo.exports = /* @__PURE__ */ i(function() {
|
|
@@ -776,7 +776,7 @@ var Ut$1 = ie(At$1()), Tt$1 = x$3({
|
|
|
776
776
|
}
|
|
777
777
|
}), Se = x$3({
|
|
778
778
|
"node_modules/is-regex/index.js"(Kt, uo) {
|
|
779
|
-
var ho = _e(), go = be()(), bo, _o, Eo, vo;
|
|
779
|
+
var ho = _e(), go = be$1()(), bo, _o, Eo, vo;
|
|
780
780
|
go && (bo = ho("Object.prototype.hasOwnProperty"), _o = ho("RegExp.prototype.exec"), Eo = {}, Ao = /* @__PURE__ */ i(function() {
|
|
781
781
|
throw Eo;
|
|
782
782
|
}, "throwRegexMarker"), vo = {
|
|
@@ -799,7 +799,7 @@ var Ut$1 = ie(At$1()), Tt$1 = x$3({
|
|
|
799
799
|
return !Oo || typeof Oo != "object" && typeof Oo != "function" ? !1 : wo(Oo) === Co;
|
|
800
800
|
}, "isRegex");
|
|
801
801
|
}
|
|
802
|
-
}), we
|
|
802
|
+
}), we = x$3({
|
|
803
803
|
"node_modules/is-function/index.js"(Kt, uo) {
|
|
804
804
|
uo.exports = go;
|
|
805
805
|
var ho = Object.prototype.toString;
|
|
@@ -831,12 +831,12 @@ var Ut$1 = ie(At$1()), Tt$1 = x$3({
|
|
|
831
831
|
}, "isSymbol3");
|
|
832
832
|
var bo, _o, Eo;
|
|
833
833
|
}
|
|
834
|
-
}), Oe$1 = tt$1(Se()), Ae$1 = tt$1(we
|
|
835
|
-
function xe
|
|
834
|
+
}), Oe$1 = tt$1(Se()), Ae$1 = tt$1(we()), Pe$1 = tt$1(Ee$1());
|
|
835
|
+
function xe(Kt) {
|
|
836
836
|
return Kt != null && typeof Kt == "object" && Array.isArray(Kt) === !1;
|
|
837
837
|
}
|
|
838
|
-
i(xe
|
|
839
|
-
var Ce$1 = typeof global == "object" && global && global.Object === Object && global, Ie$1 = Ce$1, je$1 = typeof self == "object" && self && self.Object === Object && self, Te = Ie$1 || je$1 || Function("return this")(), pt$1 = Te, Fe$1 = pt$1.Symbol, M$3 = Fe$1, Rt$1 = Object.prototype, Ne = Rt$1.hasOwnProperty, Re = Rt$1.toString, W$1 = M$3 ? M$3.toStringTag : void 0;
|
|
838
|
+
i(xe, "isObject");
|
|
839
|
+
var Ce$1 = typeof global == "object" && global && global.Object === Object && global, Ie$1 = Ce$1, je$1 = typeof self == "object" && self && self.Object === Object && self, Te = Ie$1 || je$1 || Function("return this")(), pt$1 = Te, Fe$1 = pt$1.Symbol, M$3 = Fe$1, Rt$1 = Object.prototype, Ne = Rt$1.hasOwnProperty, Re$1 = Rt$1.toString, W$1 = M$3 ? M$3.toStringTag : void 0;
|
|
840
840
|
function Me$1(Kt) {
|
|
841
841
|
var uo = Ne.call(Kt, W$1), ho = Kt[W$1];
|
|
842
842
|
try {
|
|
@@ -844,7 +844,7 @@ function Me$1(Kt) {
|
|
|
844
844
|
var go = !0;
|
|
845
845
|
} catch {
|
|
846
846
|
}
|
|
847
|
-
var bo = Re.call(Kt);
|
|
847
|
+
var bo = Re$1.call(Kt);
|
|
848
848
|
return go && (uo ? Kt[W$1] = ho : delete Kt[W$1]), bo;
|
|
849
849
|
}
|
|
850
850
|
i(Me$1, "getRawTag");
|
|
@@ -1179,7 +1179,7 @@ function Wn$1(Kt, uo, ho) {
|
|
|
1179
1179
|
return go === void 0 ? ho : go;
|
|
1180
1180
|
}
|
|
1181
1181
|
i(Wn$1, "get");
|
|
1182
|
-
var Bn = Wn$1, et$1 = xe
|
|
1182
|
+
var Bn = Wn$1, et$1 = xe, Hn$1 = /* @__PURE__ */ i((Kt) => {
|
|
1183
1183
|
let uo = null, ho = !1, go = !1, bo = !1, _o = "";
|
|
1184
1184
|
if (Kt.indexOf("//") >= 0 || Kt.indexOf("/*") >= 0)
|
|
1185
1185
|
for (let Eo = 0; Eo < Kt.length; Eo += 1)
|
|
@@ -2026,7 +2026,7 @@ function M$1(Kt, { includeStories: uo, excludeStories: ho }) {
|
|
|
2026
2026
|
var z = (...Kt) => {
|
|
2027
2027
|
let uo = Kt.reduce((ho, go) => (go.startsWith("!") ? ho.delete(go.slice(1)) : ho.add(go), ho), /* @__PURE__ */ new Set());
|
|
2028
2028
|
return Array.from(uo);
|
|
2029
|
-
}, On = Object.create, ur = Object.defineProperty, Dn = Object.getOwnPropertyDescriptor, kn = Object.getOwnPropertyNames, jn = Object.getPrototypeOf, Mn = Object.prototype.hasOwnProperty, s = (Kt, uo) => ur(Kt, "name", { value: uo, configurable: !0 }),
|
|
2029
|
+
}, On = Object.create, ur = Object.defineProperty, Dn = Object.getOwnPropertyDescriptor, kn = Object.getOwnPropertyNames, jn = Object.getPrototypeOf, Mn = Object.prototype.hasOwnProperty, s = (Kt, uo) => ur(Kt, "name", { value: uo, configurable: !0 }), Re = /* @__PURE__ */ ((Kt) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(Kt, {
|
|
2030
2030
|
get: (uo, ho) => (typeof require < "u" ? require : uo)[ho]
|
|
2031
2031
|
}) : Kt)(function(Kt) {
|
|
2032
2032
|
if (typeof require < "u") return require.apply(this, arguments);
|
|
@@ -2058,7 +2058,7 @@ var z = (...Kt) => {
|
|
|
2058
2058
|
function Eo(wo, So) {
|
|
2059
2059
|
if (!bo[wo]) {
|
|
2060
2060
|
if (!go[wo]) {
|
|
2061
|
-
var Co = typeof
|
|
2061
|
+
var Co = typeof Re == "function" && Re;
|
|
2062
2062
|
if (!So && Co) return Co(wo, !0);
|
|
2063
2063
|
if (vo) return vo(wo, !0);
|
|
2064
2064
|
var Oo = new Error("Cannot find module '" + wo + "'");
|
|
@@ -2073,7 +2073,7 @@ var z = (...Kt) => {
|
|
|
2073
2073
|
return bo[wo].exports;
|
|
2074
2074
|
}
|
|
2075
2075
|
s(Eo, "s");
|
|
2076
|
-
for (var vo = typeof
|
|
2076
|
+
for (var vo = typeof Re == "function" && Re, Ao = 0; Ao < _o.length; Ao++) Eo(_o[Ao]);
|
|
2077
2077
|
return Eo;
|
|
2078
2078
|
}, "e"))({ 1: [function(ho, go, bo) {
|
|
2079
2079
|
go.exports = function(_o) {
|
|
@@ -5920,10 +5920,10 @@ function Wn(Kt, uo) {
|
|
|
5920
5920
|
return qe("useMemo", Kt, uo);
|
|
5921
5921
|
}
|
|
5922
5922
|
s(Wn, "useMemo");
|
|
5923
|
-
function
|
|
5923
|
+
function Ee(Kt, uo) {
|
|
5924
5924
|
return qe("useCallback", () => Kt, uo);
|
|
5925
5925
|
}
|
|
5926
|
-
s(
|
|
5926
|
+
s(Ee, "useCallback");
|
|
5927
5927
|
function Rt(Kt, uo) {
|
|
5928
5928
|
return qe(Kt, () => ({ current: uo }), []);
|
|
5929
5929
|
}
|
|
@@ -5975,7 +5975,7 @@ function Jn(Kt, uo = []) {
|
|
|
5975
5975
|
Object.entries(Kt).forEach(
|
|
5976
5976
|
([go, bo]) => ho.removeListener(go, bo)
|
|
5977
5977
|
);
|
|
5978
|
-
}), [...Object.keys(Kt), ...uo]),
|
|
5978
|
+
}), [...Object.keys(Kt), ...uo]), Ee(ho.emit.bind(ho), [ho]);
|
|
5979
5979
|
}
|
|
5980
5980
|
s(Jn, "useChannel");
|
|
5981
5981
|
function Be() {
|
|
@@ -5992,10 +5992,10 @@ function Qn(Kt, uo) {
|
|
|
5992
5992
|
}
|
|
5993
5993
|
s(Qn, "useParameter");
|
|
5994
5994
|
function Zn() {
|
|
5995
|
-
let Kt = q.getChannel(), { id: uo, args: ho } = Be(), go =
|
|
5995
|
+
let Kt = q.getChannel(), { id: uo, args: ho } = Be(), go = Ee(
|
|
5996
5996
|
(_o) => Kt.emit(n, { storyId: uo, updatedArgs: _o }),
|
|
5997
5997
|
[Kt, uo]
|
|
5998
|
-
), bo =
|
|
5998
|
+
), bo = Ee(
|
|
5999
5999
|
(_o) => Kt.emit(H$2, { storyId: uo, argNames: _o }),
|
|
6000
6000
|
[Kt, uo]
|
|
6001
6001
|
);
|
|
@@ -6003,7 +6003,7 @@ function Zn() {
|
|
|
6003
6003
|
}
|
|
6004
6004
|
s(Zn, "useArgs");
|
|
6005
6005
|
function es() {
|
|
6006
|
-
let Kt = q.getChannel(), { globals: uo } = Be(), ho =
|
|
6006
|
+
let Kt = q.getChannel(), { globals: uo } = Be(), ho = Ee(
|
|
6007
6007
|
(go) => Kt.emit(j, { globals: go }),
|
|
6008
6008
|
[Kt]
|
|
6009
6009
|
);
|
|
@@ -6250,12 +6250,12 @@ var de = Symbol("incompatible"), Dr = /* @__PURE__ */ s((Kt, uo) => {
|
|
|
6250
6250
|
return ho;
|
|
6251
6251
|
let _o = Dr(bo, uo[go]);
|
|
6252
6252
|
return _o === de ? ho : Object.assign(ho, { [go]: _o });
|
|
6253
|
-
}, {}), "mapArgsToTypes"),
|
|
6254
|
-
(ho, go, bo) => (ho[bo] =
|
|
6253
|
+
}, {}), "mapArgsToTypes"), Ae = /* @__PURE__ */ s((Kt, uo) => Array.isArray(Kt) && Array.isArray(uo) ? uo.reduce(
|
|
6254
|
+
(ho, go, bo) => (ho[bo] = Ae(Kt[bo], uo[bo]), ho),
|
|
6255
6255
|
[...Kt]
|
|
6256
6256
|
).filter((ho) => ho !== void 0) : !k$1(Kt) || !k$1(uo) ? uo : Object.keys({ ...Kt, ...uo }).reduce((ho, go) => {
|
|
6257
6257
|
if (go in uo) {
|
|
6258
|
-
let bo =
|
|
6258
|
+
let bo = Ae(Kt[go], uo[go]);
|
|
6259
6259
|
bo !== void 0 && (ho[go] = bo);
|
|
6260
6260
|
} else
|
|
6261
6261
|
ho[go] = Kt[go];
|
|
@@ -6334,7 +6334,7 @@ var jr = class {
|
|
|
6334
6334
|
}
|
|
6335
6335
|
updateFromDelta(uo, ho) {
|
|
6336
6336
|
let go = Jt(ho, uo.argTypes);
|
|
6337
|
-
this.argsByStoryId[uo.id] =
|
|
6337
|
+
this.argsByStoryId[uo.id] = Ae(this.argsByStoryId[uo.id], go);
|
|
6338
6338
|
}
|
|
6339
6339
|
updateFromPersisted(uo, ho) {
|
|
6340
6340
|
let go = Xt(ho, uo.argTypes);
|
|
@@ -6421,7 +6421,7 @@ CSF .story annotations deprecated; annotate story functions directly:
|
|
|
6421
6421
|
- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
|
|
6422
6422
|
See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
|
|
6423
6423
|
`;
|
|
6424
|
-
function
|
|
6424
|
+
function ve(Kt, uo, ho) {
|
|
6425
6425
|
let go = uo, bo = typeof uo == "function" ? uo : null, { story: _o } = go;
|
|
6426
6426
|
_o && (s$2.debug("deprecated story", _o), m$2(fs));
|
|
6427
6427
|
let Eo = N(Kt), vo = typeof go != "function" && go.name || go.storyName || (_o == null ? void 0 : _o.name) || Eo, Ao = [
|
|
@@ -6450,7 +6450,7 @@ function Ae(Kt, uo, ho) {
|
|
|
6450
6450
|
...Io && { play: Io }
|
|
6451
6451
|
};
|
|
6452
6452
|
}
|
|
6453
|
-
s(
|
|
6453
|
+
s(ve, "normalizeStory");
|
|
6454
6454
|
function We(Kt, uo = Kt.title, ho) {
|
|
6455
6455
|
let { id: go, argTypes: bo } = Kt;
|
|
6456
6456
|
return {
|
|
@@ -6490,7 +6490,7 @@ function to(Kt, uo, ho) {
|
|
|
6490
6490
|
let vo = { meta: Eo, stories: {}, moduleExports: Kt };
|
|
6491
6491
|
return Object.keys(_o).forEach((Ao) => {
|
|
6492
6492
|
if (M$1(Ao, Eo)) {
|
|
6493
|
-
let wo =
|
|
6493
|
+
let wo = ve(Ao, _o[Ao], Eo);
|
|
6494
6494
|
eo(wo.parameters), vo.stories[wo.id] = wo;
|
|
6495
6495
|
}
|
|
6496
6496
|
}), vo;
|
|
@@ -6571,7 +6571,7 @@ var M = /* @__PURE__ */ s((...Kt) => {
|
|
|
6571
6571
|
_o.every((Eo) => k$1(Eo)) ? go[bo] = M(..._o) : go[bo] = _o[_o.length - 1];
|
|
6572
6572
|
}), go;
|
|
6573
6573
|
}, "combineParameters");
|
|
6574
|
-
function
|
|
6574
|
+
function Ce(Kt, uo, ho) {
|
|
6575
6575
|
let { moduleExport: go, id: bo, name: _o } = Kt || {}, Eo = ao(
|
|
6576
6576
|
Kt,
|
|
6577
6577
|
uo,
|
|
@@ -6631,7 +6631,7 @@ function ve(Kt, uo, ho) {
|
|
|
6631
6631
|
usesMount: Do
|
|
6632
6632
|
};
|
|
6633
6633
|
}
|
|
6634
|
-
s(
|
|
6634
|
+
s(Ce, "prepareStory");
|
|
6635
6635
|
function Nr(Kt, uo, ho) {
|
|
6636
6636
|
return {
|
|
6637
6637
|
...ao(void 0, Kt, uo),
|
|
@@ -6801,7 +6801,7 @@ var lo = /* @__PURE__ */ s((Kt, uo) => Array.isArray(uo) ? uo.includes(Kt) : Kt.
|
|
|
6801
6801
|
return { control: { type: bo ? "select" : "object" } };
|
|
6802
6802
|
}
|
|
6803
6803
|
}
|
|
6804
|
-
}, "inferControl"),
|
|
6804
|
+
}, "inferControl"), Pe = /* @__PURE__ */ s((Kt) => {
|
|
6805
6805
|
let {
|
|
6806
6806
|
argTypes: uo,
|
|
6807
6807
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
@@ -6812,8 +6812,8 @@ var lo = /* @__PURE__ */ s((Kt, uo) => Array.isArray(uo) ? uo.includes(Kt) : Kt.
|
|
|
6812
6812
|
let Eo = Ye(uo, go, bo), vo = L(Eo, (Ao, wo) => (Ao == null ? void 0 : Ao.type) && Es(Ao, wo.toString(), _o));
|
|
6813
6813
|
return M(vo, Eo);
|
|
6814
6814
|
}, "inferControls");
|
|
6815
|
-
|
|
6816
|
-
function
|
|
6815
|
+
Pe.secondPass = !0;
|
|
6816
|
+
function Fe({
|
|
6817
6817
|
argTypes: Kt,
|
|
6818
6818
|
globalTypes: uo,
|
|
6819
6819
|
argTypesEnhancers: ho,
|
|
@@ -6842,13 +6842,13 @@ function Pe({
|
|
|
6842
6842
|
// and so should be added by a preset there. However, as it seems some code relies on controls
|
|
6843
6843
|
// annotations (in particular the angular implementation's `cleanArgsDecorator`), for backwards
|
|
6844
6844
|
// compatibility reasons, we will leave this in the store until 7.0
|
|
6845
|
-
|
|
6845
|
+
Pe
|
|
6846
6846
|
],
|
|
6847
6847
|
initialGlobals: M(vo, Eo),
|
|
6848
6848
|
...Ao
|
|
6849
6849
|
};
|
|
6850
6850
|
}
|
|
6851
|
-
s(
|
|
6851
|
+
s(Fe, "normalizeProjectAnnotations");
|
|
6852
6852
|
var co = /* @__PURE__ */ s((Kt) => async () => {
|
|
6853
6853
|
let uo = [];
|
|
6854
6854
|
for (let ho of Kt) {
|
|
@@ -6869,46 +6869,46 @@ function zr(Kt) {
|
|
|
6869
6869
|
};
|
|
6870
6870
|
}
|
|
6871
6871
|
s(zr, "composeStepRunners");
|
|
6872
|
-
function
|
|
6872
|
+
function Oe(Kt, uo) {
|
|
6873
6873
|
return Kt.map((ho) => {
|
|
6874
6874
|
var go;
|
|
6875
6875
|
return ((go = ho.default) == null ? void 0 : go[uo]) ?? ho[uo];
|
|
6876
6876
|
}).filter(Boolean);
|
|
6877
6877
|
}
|
|
6878
|
-
s(
|
|
6878
|
+
s(Oe, "getField");
|
|
6879
6879
|
function oe(Kt, uo, ho = {}) {
|
|
6880
|
-
return
|
|
6880
|
+
return Oe(Kt, uo).reduce((go, bo) => {
|
|
6881
6881
|
let _o = P$1(bo);
|
|
6882
6882
|
return ho.reverseFileOrder ? [..._o, ...go] : [...go, ..._o];
|
|
6883
6883
|
}, []);
|
|
6884
6884
|
}
|
|
6885
6885
|
s(oe, "getArrayField");
|
|
6886
|
-
function
|
|
6887
|
-
return Object.assign({}, ...
|
|
6886
|
+
function Ie(Kt, uo) {
|
|
6887
|
+
return Object.assign({}, ...Oe(Kt, uo));
|
|
6888
6888
|
}
|
|
6889
|
-
s(
|
|
6889
|
+
s(Ie, "getObjectField");
|
|
6890
6890
|
function ue(Kt, uo) {
|
|
6891
|
-
return
|
|
6891
|
+
return Oe(Kt, uo).pop();
|
|
6892
6892
|
}
|
|
6893
6893
|
s(ue, "getSingletonField");
|
|
6894
|
-
function
|
|
6894
|
+
function fe(Kt) {
|
|
6895
6895
|
var bo;
|
|
6896
|
-
let uo = oe(Kt, "argTypesEnhancers"), ho =
|
|
6896
|
+
let uo = oe(Kt, "argTypesEnhancers"), ho = Oe(Kt, "runStep"), go = oe(Kt, "beforeAll");
|
|
6897
6897
|
return {
|
|
6898
|
-
parameters: M(...
|
|
6898
|
+
parameters: M(...Oe(Kt, "parameters")),
|
|
6899
6899
|
decorators: oe(Kt, "decorators", {
|
|
6900
6900
|
reverseFileOrder: !(((bo = v.FEATURES) == null ? void 0 : bo.legacyDecoratorFileOrder) ?? !1)
|
|
6901
6901
|
}),
|
|
6902
|
-
args:
|
|
6902
|
+
args: Ie(Kt, "args"),
|
|
6903
6903
|
argsEnhancers: oe(Kt, "argsEnhancers"),
|
|
6904
|
-
argTypes:
|
|
6904
|
+
argTypes: Ie(Kt, "argTypes"),
|
|
6905
6905
|
argTypesEnhancers: [
|
|
6906
6906
|
...uo.filter((_o) => !_o.secondPass),
|
|
6907
6907
|
...uo.filter((_o) => _o.secondPass)
|
|
6908
6908
|
],
|
|
6909
|
-
globals:
|
|
6910
|
-
initialGlobals:
|
|
6911
|
-
globalTypes:
|
|
6909
|
+
globals: Ie(Kt, "globals"),
|
|
6910
|
+
initialGlobals: Ie(Kt, "initialGlobals"),
|
|
6911
|
+
globalTypes: Ie(Kt, "globalTypes"),
|
|
6912
6912
|
loaders: oe(Kt, "loaders"),
|
|
6913
6913
|
beforeAll: co(go),
|
|
6914
6914
|
beforeEach: oe(Kt, "beforeEach"),
|
|
@@ -6923,19 +6923,19 @@ function Oe(Kt) {
|
|
|
6923
6923
|
testingLibraryRender: ue(Kt, "testingLibraryRender")
|
|
6924
6924
|
};
|
|
6925
6925
|
}
|
|
6926
|
-
s(
|
|
6926
|
+
s(fe, "composeConfigs");
|
|
6927
6927
|
function Ps(Kt) {
|
|
6928
6928
|
globalThis.defaultProjectAnnotations = Kt;
|
|
6929
6929
|
}
|
|
6930
6930
|
s(Ps, "setDefaultProjectAnnotations");
|
|
6931
6931
|
var Fs = "ComposedStory", Is = "Unnamed Story";
|
|
6932
6932
|
function Os(Kt) {
|
|
6933
|
-
return Kt ?
|
|
6933
|
+
return Kt ? fe([Kt]) : {};
|
|
6934
6934
|
}
|
|
6935
6935
|
s(Os, "extractAnnotation");
|
|
6936
6936
|
function Ds(Kt) {
|
|
6937
6937
|
let uo = Array.isArray(Kt) ? Kt : [Kt];
|
|
6938
|
-
return globalThis.globalProjectAnnotations =
|
|
6938
|
+
return globalThis.globalProjectAnnotations = fe(uo.map(Os)), fe([
|
|
6939
6939
|
globalThis.defaultProjectAnnotations ?? {},
|
|
6940
6940
|
globalThis.globalProjectAnnotations ?? {}
|
|
6941
6941
|
]);
|
|
@@ -6947,17 +6947,17 @@ function po(Kt, uo, ho, go, bo) {
|
|
|
6947
6947
|
if (Kt === void 0)
|
|
6948
6948
|
throw new Error("Expected a story but received undefined.");
|
|
6949
6949
|
uo.title = uo.title ?? Fs;
|
|
6950
|
-
let _o = We(uo), Eo = bo || Kt.storyName || ((Lo = Kt.story) == null ? void 0 : Lo.name) || Kt.name || Is, vo =
|
|
6950
|
+
let _o = We(uo), Eo = bo || Kt.storyName || ((Lo = Kt.story) == null ? void 0 : Lo.name) || Kt.name || Is, vo = ve(
|
|
6951
6951
|
Eo,
|
|
6952
6952
|
Kt,
|
|
6953
6953
|
_o
|
|
6954
|
-
), Ao =
|
|
6955
|
-
|
|
6954
|
+
), Ao = Fe(
|
|
6955
|
+
fe([
|
|
6956
6956
|
go && Object.keys(go).length > 0 ? go : globalThis.defaultProjectAnnotations ?? {},
|
|
6957
6957
|
globalThis.globalProjectAnnotations ?? {},
|
|
6958
6958
|
ho ?? {}
|
|
6959
6959
|
])
|
|
6960
|
-
), wo =
|
|
6960
|
+
), wo = Ce(
|
|
6961
6961
|
vo,
|
|
6962
6962
|
_o,
|
|
6963
6963
|
Ao
|
|
@@ -7140,12 +7140,12 @@ var yo = 1e3, qs = 1e4, Gr = class {
|
|
|
7140
7140
|
};
|
|
7141
7141
|
})
|
|
7142
7142
|
};
|
|
7143
|
-
}, "getStoriesJsonData"), this.storyIndex = new He(uo), this.projectAnnotations =
|
|
7143
|
+
}, "getStoriesJsonData"), this.storyIndex = new He(uo), this.projectAnnotations = Fe(go);
|
|
7144
7144
|
let { initialGlobals: bo, globalTypes: _o } = this.projectAnnotations;
|
|
7145
|
-
this.args = new Ge(), this.userGlobals = new Ue({ globals: bo, globalTypes: _o }), this.hooks = {}, this.cleanupCallbacks = {}, this.processCSFFileWithCache = (0, Ke.default)(yo)(to), this.prepareMetaWithCache = (0, Ke.default)(yo)(Nr), this.prepareStoryWithCache = (0, Ke.default)(qs)(
|
|
7145
|
+
this.args = new Ge(), this.userGlobals = new Ue({ globals: bo, globalTypes: _o }), this.hooks = {}, this.cleanupCallbacks = {}, this.processCSFFileWithCache = (0, Ke.default)(yo)(to), this.prepareMetaWithCache = (0, Ke.default)(yo)(Nr), this.prepareStoryWithCache = (0, Ke.default)(qs)(Ce);
|
|
7146
7146
|
}
|
|
7147
7147
|
setProjectAnnotations(uo) {
|
|
7148
|
-
this.projectAnnotations =
|
|
7148
|
+
this.projectAnnotations = Fe(uo);
|
|
7149
7149
|
let { initialGlobals: ho, globalTypes: go } = uo;
|
|
7150
7150
|
this.userGlobals.set({ globals: ho, globalTypes: go });
|
|
7151
7151
|
}
|
|
@@ -7326,7 +7326,7 @@ var yo = 1e3, qs = 1e4, Gr = class {
|
|
|
7326
7326
|
}
|
|
7327
7327
|
};
|
|
7328
7328
|
s(Gr, "StoryStore");
|
|
7329
|
-
var
|
|
7329
|
+
var ye = Gr;
|
|
7330
7330
|
function Vr(Kt) {
|
|
7331
7331
|
return Kt.startsWith("\\\\?\\") ? Kt : Kt.replace(/\\/g, "/");
|
|
7332
7332
|
}
|
|
@@ -7606,7 +7606,7 @@ var ne = Ur, { fetch: di } = v, pi = "./index.json", Hr = class {
|
|
|
7606
7606
|
initializeWithStoryIndex(uo) {
|
|
7607
7607
|
if (!this.projectAnnotationsBeforeInitialization)
|
|
7608
7608
|
throw new Error("Cannot call initializeWithStoryIndex until project annotations resolve");
|
|
7609
|
-
this.storyStoreValue = new
|
|
7609
|
+
this.storyStoreValue = new ye(
|
|
7610
7610
|
uo,
|
|
7611
7611
|
this.importFn,
|
|
7612
7612
|
this.projectAnnotationsBeforeInitialization
|
|
@@ -7791,7 +7791,7 @@ var ne = Ur, { fetch: di } = v, pi = "./index.json", Hr = class {
|
|
|
7791
7791
|
}
|
|
7792
7792
|
};
|
|
7793
7793
|
s(Hr, "Preview");
|
|
7794
|
-
var
|
|
7794
|
+
var me = Hr, Wr = "Invariant failed";
|
|
7795
7795
|
function Xe(Kt, uo) {
|
|
7796
7796
|
if (!Kt) {
|
|
7797
7797
|
var ho = typeof uo == "function" ? uo() : uo, go = ho ? "".concat(Wr, ": ").concat(ho) : Wr;
|
|
@@ -8054,7 +8054,7 @@ function ji(Kt) {
|
|
|
8054
8054
|
return ki(Kt) && Kt.subtype === "csf";
|
|
8055
8055
|
}
|
|
8056
8056
|
s(ji, "isCsfDocsRender");
|
|
8057
|
-
var Qr = class extends
|
|
8057
|
+
var Qr = class extends me {
|
|
8058
8058
|
constructor(uo, ho, go, bo) {
|
|
8059
8059
|
super(uo, ho, void 0, !1), this.importFn = uo, this.getProjectAnnotations = ho, this.selectionStore = go, this.view = bo, this.initialize();
|
|
8060
8060
|
}
|
|
@@ -8286,7 +8286,7 @@ var Qr = class extends ye {
|
|
|
8286
8286
|
}
|
|
8287
8287
|
};
|
|
8288
8288
|
s(Qr, "PreviewWithSelection");
|
|
8289
|
-
var
|
|
8289
|
+
var he = Qr, Me = ce(tr()), Go = ce(tr()), zo = /^[a-zA-Z0-9 _-]*$/, Vo = /^-?[0-9]+(\.[0-9]+)?$/, aa = /^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i, Uo = /^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i, st = /* @__PURE__ */ s((Kt = "", uo) => Kt === null || Kt === "" || !zo.test(Kt) ? !1 : uo == null || uo instanceof Date || typeof uo == "number" || typeof uo == "boolean" ? !0 : typeof uo == "string" ? zo.test(uo) || Vo.test(uo) || aa.test(uo) || Uo.test(uo) : Array.isArray(uo) ? uo.every((ho) => st(
|
|
8290
8290
|
Kt,
|
|
8291
8291
|
ho
|
|
8292
8292
|
)) : k$1(uo) ? Object.entries(uo).every(([ho, go]) => st(ho, go)) : !1, "validateArgs"), la = {
|
|
@@ -8385,7 +8385,7 @@ var Wo = /* @__PURE__ */ s(({
|
|
|
8385
8385
|
}
|
|
8386
8386
|
};
|
|
8387
8387
|
s(at, "UrlStore");
|
|
8388
|
-
var
|
|
8388
|
+
var ge = at, An = ce(Rn()), vn = ce(tr()), { document: D } = v, wn = 100, Cn = /* @__PURE__ */ ((Kt) => (Kt.MAIN = "MAIN", Kt.NOPREVIEW = "NOPREVIEW", Kt.PREPARING_STORY = "PREPARING_STORY", Kt.PREPARING_DOCS = "PREPARING_DOCS", Kt.ERROR = "ERROR", Kt))(Cn || {}), yt = {
|
|
8389
8389
|
PREPARING_STORY: "sb-show-preparing-story",
|
|
8390
8390
|
PREPARING_DOCS: "sb-show-preparing-docs",
|
|
8391
8391
|
MAIN: "sb-show-main",
|
|
@@ -8481,9 +8481,9 @@ var he = at, An = ce(Rn()), vn = ce(tr()), { document: D } = v, wn = 100, Cn = /
|
|
|
8481
8481
|
}
|
|
8482
8482
|
};
|
|
8483
8483
|
s(ht, "WebView");
|
|
8484
|
-
var
|
|
8484
|
+
var be = ht, gt = class extends he {
|
|
8485
8485
|
constructor(uo, ho) {
|
|
8486
|
-
super(uo, ho, new
|
|
8486
|
+
super(uo, ho, new ge(), new be()), this.importFn = uo, this.getProjectAnnotations = ho, v.__STORYBOOK_PREVIEW__ = this;
|
|
8487
8487
|
}
|
|
8488
8488
|
};
|
|
8489
8489
|
s(gt, "PreviewWeb");
|
|
@@ -21912,4 +21912,4 @@ export {
|
|
|
21912
21912
|
waitForElementToBeRemoved2 as waitForElementToBeRemoved,
|
|
21913
21913
|
within
|
|
21914
21914
|
};
|
|
21915
|
-
//# sourceMappingURL=index-
|
|
21915
|
+
//# sourceMappingURL=index-DQyNeMuh.js.map
|