@middag-io/react 0.13.0 → 0.14.0
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.
|
@@ -772,7 +772,7 @@ var or = (e) => {
|
|
|
772
772
|
}, Ar = {
|
|
773
773
|
major: 4,
|
|
774
774
|
minor: 4,
|
|
775
|
-
patch:
|
|
775
|
+
patch: 3
|
|
776
776
|
}, H = /* @__PURE__ */ z("$ZodType", (e, t) => {
|
|
777
777
|
var n;
|
|
778
778
|
e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Ar;
|
|
@@ -1514,16 +1514,16 @@ var Si = /* @__PURE__ */ z("$ZodRecord", (e, t) => {
|
|
|
1514
1514
|
}), r;
|
|
1515
1515
|
};
|
|
1516
1516
|
}), Ti = /* @__PURE__ */ z("$ZodTransform", (e, t) => {
|
|
1517
|
-
H.init(e, t), e._zod.parse = (n, r) => {
|
|
1517
|
+
H.init(e, t), e._zod.optin = "optional", e._zod.parse = (n, r) => {
|
|
1518
1518
|
if (r.direction === "backward") throw new kt(e.constructor.name);
|
|
1519
1519
|
let i = t.transform(n.value, n);
|
|
1520
|
-
if (r.async) return (i instanceof Promise ? i : Promise.resolve(i)).then((e) => (n.value = e, n));
|
|
1520
|
+
if (r.async) return (i instanceof Promise ? i : Promise.resolve(i)).then((e) => (n.value = e, n.fallback = !0, n));
|
|
1521
1521
|
if (i instanceof Promise) throw new Ot();
|
|
1522
|
-
return n.value = i, n;
|
|
1522
|
+
return n.value = i, n.fallback = !0, n;
|
|
1523
1523
|
};
|
|
1524
1524
|
});
|
|
1525
1525
|
function Ei(e, t) {
|
|
1526
|
-
return e.issues.length
|
|
1526
|
+
return t === void 0 && (e.issues.length || e.fallback) ? {
|
|
1527
1527
|
issues: [],
|
|
1528
1528
|
value: void 0
|
|
1529
1529
|
} : e;
|
|
@@ -1534,8 +1534,8 @@ var Di = /* @__PURE__ */ z("$ZodOptional", (e, t) => {
|
|
|
1534
1534
|
return e ? RegExp(`^(${It(e.source)})?$`) : void 0;
|
|
1535
1535
|
}), e._zod.parse = (e, n) => {
|
|
1536
1536
|
if (t.innerType._zod.optin === "optional") {
|
|
1537
|
-
let r = t.innerType._zod.run(e, n);
|
|
1538
|
-
return
|
|
1537
|
+
let r = e.value, i = t.innerType._zod.run(e, n);
|
|
1538
|
+
return i instanceof Promise ? i.then((e) => Ei(e, r)) : Ei(i, r);
|
|
1539
1539
|
}
|
|
1540
1540
|
return e.value === void 0 ? e : t.innerType._zod.run(e, n);
|
|
1541
1541
|
};
|
|
@@ -1577,18 +1577,18 @@ function Pi(e, t) {
|
|
|
1577
1577
|
}), e;
|
|
1578
1578
|
}
|
|
1579
1579
|
var Fi = /* @__PURE__ */ z("$ZodCatch", (e, t) => {
|
|
1580
|
-
H.init(e, t),
|
|
1580
|
+
H.init(e, t), e._zod.optin = "optional", B(e._zod, "optout", () => t.innerType._zod.optout), B(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
1581
1581
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1582
1582
|
let r = t.innerType._zod.run(e, n);
|
|
1583
1583
|
return r instanceof Promise ? r.then((r) => (e.value = r.value, r.issues.length && (e.value = t.catchValue({
|
|
1584
1584
|
...e,
|
|
1585
1585
|
error: { issues: r.issues.map((e) => dn(e, n, jt())) },
|
|
1586
1586
|
input: e.value
|
|
1587
|
-
}), e.issues = []), e)) : (e.value = r.value, r.issues.length && (e.value = t.catchValue({
|
|
1587
|
+
}), e.issues = [], e.fallback = !0), e)) : (e.value = r.value, r.issues.length && (e.value = t.catchValue({
|
|
1588
1588
|
...e,
|
|
1589
1589
|
error: { issues: r.issues.map((e) => dn(e, n, jt())) },
|
|
1590
1590
|
input: e.value
|
|
1591
|
-
}), e.issues = []), e);
|
|
1591
|
+
}), e.issues = [], e.fallback = !0), e);
|
|
1592
1592
|
};
|
|
1593
1593
|
}), Ii = /* @__PURE__ */ z("$ZodPipe", (e, t) => {
|
|
1594
1594
|
H.init(e, t), B(e._zod, "values", () => t.in._zod.values), B(e._zod, "optin", () => t.in._zod.optin), B(e._zod, "optout", () => t.out._zod.optout), B(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
|
|
@@ -1603,7 +1603,8 @@ var Fi = /* @__PURE__ */ z("$ZodCatch", (e, t) => {
|
|
|
1603
1603
|
function Li(e, t, n) {
|
|
1604
1604
|
return e.issues.length ? (e.aborted = !0, e) : t._zod.run({
|
|
1605
1605
|
value: e.value,
|
|
1606
|
-
issues: e.issues
|
|
1606
|
+
issues: e.issues,
|
|
1607
|
+
fallback: e.fallback
|
|
1607
1608
|
}, n);
|
|
1608
1609
|
}
|
|
1609
1610
|
var Ri = /* @__PURE__ */ z("$ZodReadonly", (e, t) => {
|
|
@@ -3086,7 +3087,7 @@ var Vs = /* @__PURE__ */ z("ZodTransform", (e, t) => {
|
|
|
3086
3087
|
}
|
|
3087
3088
|
};
|
|
3088
3089
|
let i = t.transform(n.value, n);
|
|
3089
|
-
return i instanceof Promise ? i.then((e) => (n.value = e, n)) : (n.value = i, n);
|
|
3090
|
+
return i instanceof Promise ? i.then((e) => (n.value = e, n.fallback = !0, n)) : (n.value = i, n.fallback = !0, n);
|
|
3090
3091
|
};
|
|
3091
3092
|
});
|
|
3092
3093
|
function Hs(e) {
|
package/dist-lib/middag-react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as e, t } from "./chunk-DeC0fbbY.js";
|
|
2
|
-
import { $ as n, A as r, B as i, C as a, D as o, E as s, F as c, G as l, H as u, I as d, J as f, K as p, L as m, M as h, N as g, O as _, P as v, Q as y, R as ee, S as b, T as x, U as S, V as te, W as C, X as w, Y as ne, Z as T, _ as re, a as E, b as ie, c as ae, d as oe, et as D, f as se, g as ce, h as le, i as ue, j as de, k as fe, l as pe, m as me, n as he, o as ge, p as _e, q as ve, r as ye, s as be, t as O, u as xe, v as Se, w as Ce, x as we, y as Te, z as Ee } from "./FormPanelBlock-
|
|
2
|
+
import { $ as n, A as r, B as i, C as a, D as o, E as s, F as c, G as l, H as u, I as d, J as f, K as p, L as m, M as h, N as g, O as _, P as v, Q as y, R as ee, S as b, T as x, U as S, V as te, W as C, X as w, Y as ne, Z as T, _ as re, a as E, b as ie, c as ae, d as oe, et as D, f as se, g as ce, h as le, i as ue, j as de, k as fe, l as pe, m as me, n as he, o as ge, p as _e, q as ve, r as ye, s as be, t as O, u as xe, v as Se, w as Ce, x as we, y as Te, z as Ee } from "./FormPanelBlock-BE89P5Vj.js";
|
|
3
3
|
import { c as De, i as Oe, o as k, r as ke, t as A, u as Ae } from "./button-DY_CinAY.js";
|
|
4
4
|
import { Z as je } from "./combobox-DdpNpq0T.js";
|
|
5
5
|
import { n as j, r as Me, t as Ne } from "./i18n-CP5eDOjK.js";
|
|
@@ -7668,7 +7668,7 @@ function Ff() {
|
|
|
7668
7668
|
}
|
|
7669
7669
|
//#endregion
|
|
7670
7670
|
//#region src/app/register-defaults.ts
|
|
7671
|
-
var If = Mn(() => import("./ConditionTreeBlock-C54B_GOo.js").then((e) => ({ default: e.ConditionTreeBlock }))), Lf = Mn(() => import("./SentenceBuilderBlock-Wf5YMSPg.js").then((e) => ({ default: e.SentenceBuilderBlock }))), Rf = Mn(() => import("./FlowEditorBlock-CaR42_-b.js").then((e) => ({ default: e.FlowEditorBlock }))), zf = Mn(() => import("./FormBuilderBlock-B_LPQ4oN.js").then((e) => ({ default: e.FormBuilderBlock }))), Bf = Mn(() => import("./FormPanelBlock-
|
|
7671
|
+
var If = Mn(() => import("./ConditionTreeBlock-C54B_GOo.js").then((e) => ({ default: e.ConditionTreeBlock }))), Lf = Mn(() => import("./SentenceBuilderBlock-Wf5YMSPg.js").then((e) => ({ default: e.SentenceBuilderBlock }))), Rf = Mn(() => import("./FlowEditorBlock-CaR42_-b.js").then((e) => ({ default: e.FlowEditorBlock }))), zf = Mn(() => import("./FormBuilderBlock-B_LPQ4oN.js").then((e) => ({ default: e.FormBuilderBlock }))), Bf = Mn(() => import("./FormPanelBlock-Bn_z6669.js").then((e) => ({ default: e.FormPanelBlock }))), Vf = Mn(() => import("./ChartPanelBlock-DIb2mv9F.js").then((e) => ({ default: e.ChartPanelBlock }))), Hf = Mn(() => import("./KanbanBoardBlock-rySahBrC.js").then((e) => ({ default: e.KanbanBoardBlock }))), Uf = !1;
|
|
7672
7672
|
function Wf() {
|
|
7673
7673
|
Uf || (Uf = !0, ir("product", Nf), ir("immersive", hd), ar("stack", Vl), ar("sidebar", Bl), ar("dashboard", zl), ar("wizard", eu), G("dense_table", cl), G("empty_state", pl), G("metric_card", Tl), G("status_strip", Al), G("detail_panel", ll), G("activity_timeline", vs), G("form_panel", Bf), G("markdown_panel", _l), G("card_grid", ys), G("action_grid", is), G("link_list", ml), G("tabbed_panel", Ml), G("condition_tree", If), G("sentence_builder", Lf), G("flow_editor", Rf), G("form_builder", zf), G("workflow_progress", Nl), G("chart_panel", Vf), G("kanban_board", Hf), Fl(), Ff(), hu());
|
|
7674
7674
|
}
|
package/package.json
CHANGED