@camstack/addon-training 0.1.10 → 0.1.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.
- package/dist/_stub.js +63 -51
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-9e-B2aiN.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-BbSI9t1_.mjs} +2 -2
- package/dist/{hostInit-D7cVb7pO.mjs → hostInit--CvV-GEH.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-C94pe7d-.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-lY4OnYTj.mjs} +1 -1
- package/package.json +1 -1
package/dist/_stub.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./virtualExposes-0m8NqEDE.mjs";
|
|
2
|
-
import { a as e, i as t, o as n, r } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-
|
|
2
|
+
import { a as e, i as t, o as n, r } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-lY4OnYTj.mjs";
|
|
3
3
|
import { S as i, _ as a, b as o, c as s, d as c, f as l, g as u, h as d, i as f, l as p, m, n as h, p as g, r as _, t as v, u as y, v as b, x, y as S } from "./_virtual_mf___mfe_internal__addon_training_page__loadShare__react__loadShare__.js-DeDbF7NI.mjs";
|
|
4
4
|
import { a as C, c as w, d as T, f as E, g as D, h as O, i as k, l as A, m as j, n as M, o as N, p as P, r as ee, s as F, t as te, u as ne } from "./responsive-Dy5RAD1s.mjs";
|
|
5
5
|
import { c as I, d as re, l as ie, s as L, u as ae } from "./scene-monitor-copy-7HImRbA5.mjs";
|
|
@@ -15683,19 +15683,30 @@ function Lh({ section: e, values: t, onChange: n, disabled: r, translationFn: i,
|
|
|
15683
15683
|
})]
|
|
15684
15684
|
});
|
|
15685
15685
|
}
|
|
15686
|
-
function Rh({ schema: e, values: t, onChange: n, disabled: r, translationFn: i, onTestField: a, probeResults: o, onClearProbe: s }) {
|
|
15687
|
-
let
|
|
15686
|
+
function Rh({ schema: e, values: t, onChange: n, disabled: r, translationFn: i, onTestField: a, probeResults: o, onClearProbe: s, bare: c = !1 }) {
|
|
15687
|
+
let l = (e, r) => {
|
|
15688
15688
|
n({
|
|
15689
15689
|
...t,
|
|
15690
15690
|
[e]: r
|
|
15691
15691
|
}), s?.(e);
|
|
15692
15692
|
};
|
|
15693
|
-
return /* @__PURE__ */ V("div", {
|
|
15693
|
+
return c ? /* @__PURE__ */ V("div", {
|
|
15694
|
+
className: "grid grid-cols-1 gap-y-2.5",
|
|
15695
|
+
children: e.sections.flatMap((e) => e.fields.map((e) => /* @__PURE__ */ V(Ph, {
|
|
15696
|
+
field: e,
|
|
15697
|
+
values: t,
|
|
15698
|
+
onChange: l,
|
|
15699
|
+
disabled: r,
|
|
15700
|
+
translationFn: i,
|
|
15701
|
+
onTestField: a,
|
|
15702
|
+
externalProbe: o?.[e.key]
|
|
15703
|
+
}, e.key)))
|
|
15704
|
+
}) : /* @__PURE__ */ V("div", {
|
|
15694
15705
|
className: "space-y-4",
|
|
15695
15706
|
children: e.sections.map((e) => /* @__PURE__ */ V(Lh, {
|
|
15696
15707
|
section: e,
|
|
15697
15708
|
values: t,
|
|
15698
|
-
onChange:
|
|
15709
|
+
onChange: l,
|
|
15699
15710
|
disabled: r,
|
|
15700
15711
|
translationFn: i,
|
|
15701
15712
|
onTestField: a,
|
|
@@ -15759,28 +15770,28 @@ function Uh(e) {
|
|
|
15759
15770
|
}))
|
|
15760
15771
|
};
|
|
15761
15772
|
}
|
|
15762
|
-
function Wh({ trpc: e, addonId: t, nodeId: n, title: r, disabled: i, onAfterChange: o, refreshToken: s, sectionIds: c,
|
|
15763
|
-
let
|
|
15773
|
+
function Wh({ trpc: e, addonId: t, nodeId: n, title: r, disabled: i, onAfterChange: o, refreshToken: s, sectionIds: c, bare: l = !1, collapsible: d, defaultOpen: f, mode: p, onOverrideChange: h }) {
|
|
15774
|
+
let g = p ?? "persist", [_, v] = a(null), [b, x] = a(!0), [S, C] = a(null), [w, T] = a(!1), [E, D] = a(f ?? !1), [O, k] = a({}), [A, j] = a(null), M = u(0);
|
|
15764
15775
|
y(() => {
|
|
15765
|
-
|
|
15776
|
+
j(null), k({});
|
|
15766
15777
|
}, [
|
|
15767
15778
|
e,
|
|
15768
15779
|
t,
|
|
15769
15780
|
n,
|
|
15770
15781
|
s,
|
|
15771
|
-
|
|
15782
|
+
g
|
|
15772
15783
|
]), y(() => {
|
|
15773
15784
|
let r = !1;
|
|
15774
|
-
|
|
15775
|
-
let i =
|
|
15785
|
+
x(!0), C(null);
|
|
15786
|
+
let i = g === "override" && Object.keys(O).length > 0 ? O : void 0;
|
|
15776
15787
|
return e.addonSettings.getGlobalSettings.query({
|
|
15777
15788
|
addonId: t,
|
|
15778
15789
|
nodeId: n,
|
|
15779
15790
|
...i ? { overlay: i } : {}
|
|
15780
15791
|
}).then((e) => {
|
|
15781
|
-
r || (
|
|
15792
|
+
r || (v((t) => e ?? t), !i && e && j(Vh(e)), x(!1));
|
|
15782
15793
|
}).catch((e) => {
|
|
15783
|
-
r || (
|
|
15794
|
+
r || (C(e instanceof Error ? e.message : String(e)), x(!1));
|
|
15784
15795
|
}), () => {
|
|
15785
15796
|
r = !0;
|
|
15786
15797
|
};
|
|
@@ -15789,34 +15800,34 @@ function Wh({ trpc: e, addonId: t, nodeId: n, title: r, disabled: i, onAfterChan
|
|
|
15789
15800
|
t,
|
|
15790
15801
|
n,
|
|
15791
15802
|
s,
|
|
15792
|
-
|
|
15793
|
-
JSON.stringify(
|
|
15803
|
+
g,
|
|
15804
|
+
JSON.stringify(O)
|
|
15794
15805
|
]);
|
|
15795
|
-
let
|
|
15796
|
-
if (!
|
|
15797
|
-
let e = Uh(
|
|
15806
|
+
let N = m(() => Vh(_), [_]), P = c?.join("\0"), ee = m(() => {
|
|
15807
|
+
if (!_) return null;
|
|
15808
|
+
let e = Uh(_);
|
|
15798
15809
|
if (c === void 0) return e;
|
|
15799
15810
|
let t = new Set(c);
|
|
15800
15811
|
return {
|
|
15801
15812
|
...e,
|
|
15802
15813
|
sections: e.sections.filter((e) => t.has(e.id))
|
|
15803
15814
|
};
|
|
15804
|
-
}, [
|
|
15805
|
-
if (
|
|
15806
|
-
let e =
|
|
15815
|
+
}, [_, P]), F = async (r) => {
|
|
15816
|
+
if (g === "override") {
|
|
15817
|
+
let e = A ?? N, t = {};
|
|
15807
15818
|
for (let n of Object.keys(r)) r[n] !== e[n] && (t[n] = r[n]);
|
|
15808
15819
|
let n = {
|
|
15809
15820
|
...e,
|
|
15810
15821
|
...t
|
|
15811
15822
|
};
|
|
15812
|
-
|
|
15823
|
+
k(t), h?.(t, n);
|
|
15813
15824
|
return;
|
|
15814
15825
|
}
|
|
15815
15826
|
let i = {};
|
|
15816
|
-
for (let e of Object.keys(r)) r[e] !==
|
|
15827
|
+
for (let e of Object.keys(r)) r[e] !== N[e] && (i[e] = r[e]);
|
|
15817
15828
|
if (Object.keys(i).length === 0) return;
|
|
15818
|
-
let a = ++
|
|
15819
|
-
|
|
15829
|
+
let a = ++M.current;
|
|
15830
|
+
v((e) => e === null ? e : Hh(e, r)), T(!0), C(null);
|
|
15820
15831
|
try {
|
|
15821
15832
|
await e.addonSettings.updateGlobalSettings.mutate({
|
|
15822
15833
|
addonId: t,
|
|
@@ -15827,14 +15838,14 @@ function Wh({ trpc: e, addonId: t, nodeId: n, title: r, disabled: i, onAfterChan
|
|
|
15827
15838
|
addonId: t,
|
|
15828
15839
|
nodeId: n
|
|
15829
15840
|
});
|
|
15830
|
-
r && a ===
|
|
15841
|
+
r && a === M.current && v(r), a === M.current && o?.();
|
|
15831
15842
|
} catch (e) {
|
|
15832
|
-
a ===
|
|
15843
|
+
a === M.current && C(e instanceof Error ? e.message : String(e));
|
|
15833
15844
|
} finally {
|
|
15834
|
-
a ===
|
|
15845
|
+
a === M.current && T(!1);
|
|
15835
15846
|
}
|
|
15836
15847
|
};
|
|
15837
|
-
if (
|
|
15848
|
+
if (b) return /* @__PURE__ */ H("div", {
|
|
15838
15849
|
className: "text-xs text-foreground-subtle animate-pulse",
|
|
15839
15850
|
children: [
|
|
15840
15851
|
"Loading ",
|
|
@@ -15842,15 +15853,15 @@ function Wh({ trpc: e, addonId: t, nodeId: n, title: r, disabled: i, onAfterChan
|
|
|
15842
15853
|
"…"
|
|
15843
15854
|
]
|
|
15844
15855
|
});
|
|
15845
|
-
if (
|
|
15856
|
+
if (S) return /* @__PURE__ */ H("div", {
|
|
15846
15857
|
className: "text-xs text-red-400",
|
|
15847
15858
|
children: [
|
|
15848
15859
|
r ?? t,
|
|
15849
15860
|
": ",
|
|
15850
|
-
|
|
15861
|
+
S
|
|
15851
15862
|
]
|
|
15852
15863
|
});
|
|
15853
|
-
if (!
|
|
15864
|
+
if (!_ || !ee) return /* @__PURE__ */ H("div", {
|
|
15854
15865
|
className: "text-xs text-foreground-subtle",
|
|
15855
15866
|
children: [
|
|
15856
15867
|
r ?? t,
|
|
@@ -15859,47 +15870,48 @@ function Wh({ trpc: e, addonId: t, nodeId: n, title: r, disabled: i, onAfterChan
|
|
|
15859
15870
|
"."
|
|
15860
15871
|
]
|
|
15861
15872
|
});
|
|
15862
|
-
let
|
|
15863
|
-
...
|
|
15864
|
-
...
|
|
15865
|
-
} :
|
|
15866
|
-
|
|
15873
|
+
let te = g === "override" ? {
|
|
15874
|
+
...N,
|
|
15875
|
+
...O
|
|
15876
|
+
} : N, ne = /* @__PURE__ */ H(U, { children: [
|
|
15877
|
+
g === "override" ? /* @__PURE__ */ V("div", {
|
|
15867
15878
|
className: "mb-2 text-[11px] text-foreground-subtle",
|
|
15868
15879
|
children: "Benchmark override — applies to this run only. The addon's saved settings are not changed."
|
|
15869
15880
|
}) : null,
|
|
15870
|
-
|
|
15881
|
+
w ? /* @__PURE__ */ V("div", {
|
|
15871
15882
|
className: "mb-2 text-[11px] text-foreground-subtle",
|
|
15872
15883
|
"aria-live": "polite",
|
|
15873
15884
|
children: "Saving…"
|
|
15874
15885
|
}) : null,
|
|
15875
15886
|
/* @__PURE__ */ V(Rh, {
|
|
15876
|
-
schema:
|
|
15877
|
-
values:
|
|
15878
|
-
onChange:
|
|
15879
|
-
disabled: i === !0
|
|
15887
|
+
schema: ee,
|
|
15888
|
+
values: te,
|
|
15889
|
+
onChange: F,
|
|
15890
|
+
disabled: i === !0,
|
|
15891
|
+
bare: l
|
|
15880
15892
|
})
|
|
15881
15893
|
] });
|
|
15882
|
-
return l === !0 ? /* @__PURE__ */ H("section", {
|
|
15894
|
+
return l ? /* @__PURE__ */ V("div", { children: ne }) : d === !0 ? /* @__PURE__ */ H("section", {
|
|
15883
15895
|
className: "rounded-lg border border-border bg-surface overflow-hidden",
|
|
15884
15896
|
children: [/* @__PURE__ */ H("button", {
|
|
15885
15897
|
type: "button",
|
|
15886
|
-
onClick: () =>
|
|
15898
|
+
onClick: () => D((e) => !e),
|
|
15887
15899
|
className: "w-full px-4 py-2 flex items-center gap-2 hover:bg-surface-hover text-left",
|
|
15888
|
-
"aria-expanded":
|
|
15900
|
+
"aria-expanded": E,
|
|
15889
15901
|
children: [
|
|
15890
|
-
/* @__PURE__ */ V(zh, { open:
|
|
15902
|
+
/* @__PURE__ */ V(zh, { open: E }),
|
|
15891
15903
|
/* @__PURE__ */ V("h3", {
|
|
15892
15904
|
className: "text-xs font-semibold text-foreground uppercase tracking-wide flex-1",
|
|
15893
15905
|
children: r ?? t
|
|
15894
15906
|
}),
|
|
15895
15907
|
/* @__PURE__ */ V("span", {
|
|
15896
15908
|
className: "text-[10px] text-foreground-subtle",
|
|
15897
|
-
children:
|
|
15909
|
+
children: E ? "hide" : "edit"
|
|
15898
15910
|
})
|
|
15899
15911
|
]
|
|
15900
|
-
}),
|
|
15912
|
+
}), E ? /* @__PURE__ */ V("div", {
|
|
15901
15913
|
className: "border-t border-border px-4 py-3",
|
|
15902
|
-
children:
|
|
15914
|
+
children: ne
|
|
15903
15915
|
}) : null]
|
|
15904
15916
|
}) : r ? /* @__PURE__ */ H("section", {
|
|
15905
15917
|
className: "rounded-lg border border-border bg-surface overflow-hidden",
|
|
@@ -15911,9 +15923,9 @@ function Wh({ trpc: e, addonId: t, nodeId: n, title: r, disabled: i, onAfterChan
|
|
|
15911
15923
|
})
|
|
15912
15924
|
}), /* @__PURE__ */ V("div", {
|
|
15913
15925
|
className: "px-4 py-3",
|
|
15914
|
-
children:
|
|
15926
|
+
children: ne
|
|
15915
15927
|
})]
|
|
15916
|
-
}) : /* @__PURE__ */ V("div", { children:
|
|
15928
|
+
}) : /* @__PURE__ */ V("div", { children: ne });
|
|
15917
15929
|
}
|
|
15918
15930
|
//#endregion
|
|
15919
15931
|
//#region ../ui-library/src/composites/accelerator-label.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-
|
|
1
|
+
import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-lY4OnYTj.mjs";
|
|
2
2
|
//#region \0virtual:mf-localSharedImportMap:__mfe_internal__addon_training_page
|
|
3
3
|
var e = {
|
|
4
4
|
"@camstack/sdk": {
|
|
@@ -33,7 +33,7 @@ var e = {
|
|
|
33
33
|
},
|
|
34
34
|
"@camstack/ui-library": {
|
|
35
35
|
name: "@camstack/ui-library",
|
|
36
|
-
version: "1.2.
|
|
36
|
+
version: "1.2.263",
|
|
37
37
|
scope: ["default"],
|
|
38
38
|
loaded: !1,
|
|
39
39
|
from: "addon_training_page",
|
package/dist/remoteEntry.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-
|
|
1
|
+
import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-lY4OnYTj.mjs";
|
|
2
2
|
export { t as get, e as init };
|
|
@@ -2762,7 +2762,7 @@ async function or(e) {
|
|
|
2762
2762
|
}
|
|
2763
2763
|
}
|
|
2764
2764
|
async function sr() {
|
|
2765
|
-
return ir ||= or(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-
|
|
2765
|
+
return ir ||= or(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-BbSI9t1_.mjs")).catch((e) => {
|
|
2766
2766
|
throw ir = void 0, e;
|
|
2767
2767
|
}), ir;
|
|
2768
2768
|
}
|
package/package.json
CHANGED