@pie-qti/player-elements 0.1.24 → 0.1.26
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/ItemToolBar-d36g3aw4-B6TGPyKt.js +3079 -0
- package/dist/ItemToolBar-d36g3aw4-B6TGPyKt.js.map +1 -0
- package/dist/{define-D7_K0JFy.js → define-D6MsIPs4.js} +1902 -4395
- package/dist/define-D6MsIPs4.js.map +1 -0
- package/dist/dist-BSG0NOza.js +229 -0
- package/dist/dist-BSG0NOza.js.map +1 -0
- package/dist/{dist-ffJZTPTU.js → dist-C8BDh5vZ.js} +987 -707
- package/dist/dist-C8BDh5vZ.js.map +1 -0
- package/dist/dist-CQel8-vi.js +2507 -0
- package/dist/dist-CQel8-vi.js.map +1 -0
- package/dist/{dist-BaQdJU08.js → dist-L-bDDBry.js} +116 -103
- package/dist/dist-L-bDDBry.js.map +1 -0
- package/dist/{element-class-DQy2cIPM-CldZrSRR.js → element-class-B_qAd8ET-MnL2rzKs.js} +4938 -4241
- package/dist/element-class-B_qAd8ET-MnL2rzKs.js.map +1 -0
- package/dist/{element-DSCNeDLu.js → element-rqU0mnAg.js} +2 -2
- package/dist/{element-DSCNeDLu.js.map → element-rqU0mnAg.js.map} +1 -1
- package/dist/elements.js +3 -3
- package/dist/index.js +2 -2
- package/dist/item-toolbar-element-BgqPFwsS.js +1990 -0
- package/dist/item-toolbar-element-BgqPFwsS.js.map +1 -0
- package/dist/{language-tags-DVlRltrl.js → language-tags-BwFWXo71.js} +3 -3
- package/dist/{language-tags-DVlRltrl.js.map → language-tags-BwFWXo71.js.map} +1 -1
- package/dist/{nl-NL-BeQBX6yq.js → nl-NL-BRA_1Wcl.js} +5 -3
- package/dist/nl-NL-BRA_1Wcl.js.map +1 -0
- package/dist/pie-DwmznDHb.js +363 -0
- package/dist/pie-DwmznDHb.js.map +1 -0
- package/dist/pie-assessment-toolkit-Cruxm385.js +5 -0
- package/dist/pie-assessment-toolkit-Cruxm385.js.map +1 -0
- package/dist/pie-assessment-toolkit-DJfg6laX.js +5 -0
- package/dist/pie-assessment-toolkit-DJfg6laX.js.map +1 -0
- package/dist/{pie-assessment-toolkit-element-CpiB3twr.js → pie-assessment-toolkit-element-CT5UuvVY.js} +1364 -1203
- package/dist/pie-assessment-toolkit-element-CT5UuvVY.js.map +1 -0
- package/dist/pie-tool-calculator-Crfk-IZe.js +378 -0
- package/dist/pie-tool-calculator-Crfk-IZe.js.map +1 -0
- package/dist/{provider-Y5PhmTAu.js → provider-gBXlGb0d.js} +3 -3
- package/dist/{provider-Y5PhmTAu.js.map → provider-gBXlGb0d.js.map} +1 -1
- package/dist/public/api.d.ts +1 -1
- package/dist/register-players.js +1 -1
- package/dist/register.js +26177 -20539
- package/dist/register.js.map +1 -1
- package/dist/{resolveItems-D8DJkv-4.js → resolveItems-D18skYZx.js} +2 -2
- package/dist/{resolveItems-D8DJkv-4.js.map → resolveItems-D18skYZx.js.map} +1 -1
- package/dist/{root-DSkIM1v3.js → root-dCY6j_Hh.js} +3 -3
- package/dist/{root-DSkIM1v3.js.map → root-dCY6j_Hh.js.map} +1 -1
- package/dist/tag-names-DZGvnAgd.js +2495 -0
- package/dist/tag-names-DZGvnAgd.js.map +1 -0
- package/dist/{tool-tts-inline-B71NTBbb.js → tool-tts-inline-k3hLJUfp.js} +1315 -1303
- package/dist/tool-tts-inline-k3hLJUfp.js.map +1 -0
- package/package.json +8 -8
- package/dist/define-D7_K0JFy.js.map +0 -1
- package/dist/dist-BRTWr852.js +0 -5809
- package/dist/dist-BRTWr852.js.map +0 -1
- package/dist/dist-BaQdJU08.js.map +0 -1
- package/dist/dist-DwvskOs6.js +0 -220
- package/dist/dist-DwvskOs6.js.map +0 -1
- package/dist/dist-ffJZTPTU.js.map +0 -1
- package/dist/element-class-DQy2cIPM-CldZrSRR.js.map +0 -1
- package/dist/item-toolbar-element-BW9Y_n5x.js +0 -1990
- package/dist/item-toolbar-element-BW9Y_n5x.js.map +0 -1
- package/dist/nl-NL-BeQBX6yq.js.map +0 -1
- package/dist/pie-assessment-toolkit-element-CpiB3twr.js.map +0 -1
- package/dist/pie-tool-calculator-BiWMTJe7.js +0 -2992
- package/dist/pie-tool-calculator-BiWMTJe7.js.map +0 -1
- package/dist/tool-tts-inline-B71NTBbb.js.map +0 -1
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
import { A as e, B as t, E as n, F as r, G as i, H as a, J as o, K as s, L as c, M as l, N as u, P as d, R as f, U as p, V as m, a as h, f as g, g as _, i as v, n as y, r as b, t as x, v as S, w as C, x as w } from "./tag-names-DZGvnAgd.js";
|
|
2
|
+
import { y as ee } from "./dist-C8BDh5vZ.js";
|
|
3
|
+
import { c as T } from "./dist-CQel8-vi.js";
|
|
4
|
+
//#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.73/node_modules/@pie-players/pie-players-shared/dist/pie/custom-element-define.js
|
|
5
|
+
var E = (e) => typeof DOMException < "u" && e instanceof DOMException ? e.name === "NotSupportedError" || e.code === DOMException.NOT_SUPPORTED_ERR : (typeof e == "object" && e && "name" in e ? String(e.name) : "") === "NotSupportedError", D = (e, t, n = "custom element tag", r = {}) => {
|
|
6
|
+
let i = x(e, n);
|
|
7
|
+
if (customElements.get(i)) return {
|
|
8
|
+
outcome: "already-defined",
|
|
9
|
+
tagName: i
|
|
10
|
+
};
|
|
11
|
+
try {
|
|
12
|
+
return customElements.define(i, t), {
|
|
13
|
+
outcome: "defined",
|
|
14
|
+
tagName: i
|
|
15
|
+
};
|
|
16
|
+
} catch (e) {
|
|
17
|
+
if (!E(e)) return {
|
|
18
|
+
outcome: "error",
|
|
19
|
+
tagName: i,
|
|
20
|
+
error: e
|
|
21
|
+
};
|
|
22
|
+
if (customElements.get(i)) return {
|
|
23
|
+
outcome: "already-defined",
|
|
24
|
+
tagName: i
|
|
25
|
+
};
|
|
26
|
+
if (!r.allowWrappedFallback) return {
|
|
27
|
+
outcome: "error",
|
|
28
|
+
tagName: i,
|
|
29
|
+
error: e
|
|
30
|
+
};
|
|
31
|
+
try {
|
|
32
|
+
return customElements.define(i, class extends t {}), {
|
|
33
|
+
outcome: "defined-wrapped",
|
|
34
|
+
tagName: i
|
|
35
|
+
};
|
|
36
|
+
} catch (e) {
|
|
37
|
+
return {
|
|
38
|
+
outcome: "wrapped-error",
|
|
39
|
+
tagName: i,
|
|
40
|
+
error: e
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}, O = (e, t, n = "custom element tag") => {
|
|
45
|
+
let r = D(e, t, n);
|
|
46
|
+
if (r.outcome === "error" || r.outcome === "wrapped-error") throw r.error;
|
|
47
|
+
return {
|
|
48
|
+
status: r.outcome === "already-defined" ? "already-defined" : "defined",
|
|
49
|
+
tagName: r.tagName
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region ../../node_modules/.bun/@pie-players+pie-tool-calculator-shared@0.3.73+4df9da1290a48f6a/node_modules/@pie-players/pie-tool-calculator-shared/dist/CalculatorTool-Dhv9G4lI.js
|
|
54
|
+
function te(e) {
|
|
55
|
+
let t = /* @__PURE__ */ new Set(), n = (e) => {
|
|
56
|
+
if (e === void 0) return { $type: "undefined" };
|
|
57
|
+
if (typeof e == "bigint") return {
|
|
58
|
+
$type: "bigint",
|
|
59
|
+
value: e.toString()
|
|
60
|
+
};
|
|
61
|
+
if (typeof e == "function") return {
|
|
62
|
+
$type: "function",
|
|
63
|
+
value: e.toString()
|
|
64
|
+
};
|
|
65
|
+
if (typeof e == "symbol") return {
|
|
66
|
+
$type: "symbol",
|
|
67
|
+
value: e.description ?? ""
|
|
68
|
+
};
|
|
69
|
+
if (typeof e != "object" || !e) return e;
|
|
70
|
+
if (t.has(e)) return { $type: "circular-reference" };
|
|
71
|
+
t.add(e);
|
|
72
|
+
let r = Array.isArray(e) ? e.map(n) : Object.fromEntries(Object.entries(e).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => [e, n(t)]));
|
|
73
|
+
return t.delete(e), r;
|
|
74
|
+
};
|
|
75
|
+
return JSON.stringify(n(e));
|
|
76
|
+
}
|
|
77
|
+
var ne = n("<div class=\"pie-tool-calculator__loading svelte-i18sle\"> </div>"), re = n("<div class=\"pie-tool-calculator__loading pie-tool-calculator__loading--error svelte-i18sle\">Calculator failed to initialize. <div class=\"pie-tool-calculator__error-details svelte-i18sle\"> </div></div>"), ie = n("<div class=\"pie-tool-calculator notranslate svelte-i18sle\" role=\"region\" tabindex=\"-1\" translate=\"no\"><div class=\"pie-tool-calculator__container svelte-i18sle\"></div> <!> <!></div>"), ae = n("<div class=\"pie-tool-calculator__context-host svelte-i18sle\"><!></div>"), oe = {
|
|
78
|
+
hash: "svelte-i18sle",
|
|
79
|
+
code: ".pie-tool-calculator__context-host.svelte-i18sle {display:flex;width:100%;height:100%;min-height:0;}.pie-tool-calculator.svelte-i18sle {position:relative;display:flex;flex:1 1 auto;min-width:100%;min-height:0;background:var(--pie-white, white);overflow:hidden;}.pie-tool-calculator__container.svelte-i18sle {position:relative;width:100%;height:100%;min-width:100%;min-height:100%;\n /*\n * `--pie-white`, not the literal. The token inverts by design (#ffffff light,\n * #000000 dark, redefined per colour scheme), so a hardcoded white showed\n * through as a white plate behind a dark calculator the moment a provider's own\n * surface stopped being opaque — and under a PNP colour scheme it was simply\n * the wrong colour.\n */background:var(--pie-white, white);overflow:hidden;}.pie-tool-calculator__mount {width:100%;height:100%;min-width:100%;min-height:100%;}.pie-tool-calculator__loading.svelte-i18sle {position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb, var(--pie-white, #fff) 90%, transparent);color:var(--pie-text, #334155);font-size:0.9rem;}.pie-tool-calculator__loading--error.svelte-i18sle {flex-direction:column;gap:0.5rem;padding:0.75rem;color:var(--pie-incorrect, #b91c1c);text-align:center;}.pie-tool-calculator__error-details.svelte-i18sle {max-width:95%;color:var(--pie-incorrect, #7f1d1d);font-size:0.8rem;line-height:1.2;word-break:break-word;}.pie-tool-calculator__mount > * {width:100% !important;height:100% !important;}"
|
|
80
|
+
};
|
|
81
|
+
function k(n, y) {
|
|
82
|
+
s(y, !0), g(n, oe);
|
|
83
|
+
let x = b(y, "visible", 7, !1), E = b(y, "toolId", 7, "calculator"), D = b(y, "providerId", 7, ""), O = b(y, "calculatorType", 7, "basic"), k = b(y, "availableTypes", 23, () => [
|
|
84
|
+
"basic",
|
|
85
|
+
"scientific",
|
|
86
|
+
"graphing"
|
|
87
|
+
]), A = b(y, "calculatorConfig", 23, () => ({})), j = b(y, "toolkitCoordinator", 7, null), M = m(null), N = m(null), P = m(null), F = m(null), I = m(!1), L = m(null), R = m(!1), z = p(() => T(e(P))), B = p(() => j() ?? e(P)?.toolkitCoordinator), V = p(() => (typeof k() == "string" ? k().split(",").map((e) => e.trim()) : k()).filter((e) => e === "basic" || e === "scientific" || e === "graphing")), H = p(() => e(V).includes(O()) ? O() : e(V)[0] ?? "basic"), U = p(() => te(A())), W = null, G = null, K = 0, q = !1, J = null, Y = /* @__PURE__ */ new Set();
|
|
88
|
+
d(() => {
|
|
89
|
+
if (e(M)) return ee(e(M), (e) => {
|
|
90
|
+
t(P, e, !0);
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
function X() {
|
|
94
|
+
J?.disconnect(), J = null;
|
|
95
|
+
for (let e of Y) clearTimeout(e);
|
|
96
|
+
Y.clear();
|
|
97
|
+
}
|
|
98
|
+
function Z() {
|
|
99
|
+
K += 1, X();
|
|
100
|
+
let n = e(F), r = G;
|
|
101
|
+
t(F, null), G = null;
|
|
102
|
+
try {
|
|
103
|
+
n?.destroy();
|
|
104
|
+
} catch (e) {
|
|
105
|
+
console.warn("[CalculatorTool] calculator cleanup failed:", e);
|
|
106
|
+
}
|
|
107
|
+
r?.remove(), W = null, t(I, !1), t(R, !1);
|
|
108
|
+
}
|
|
109
|
+
function Q() {
|
|
110
|
+
requestAnimationFrame(() => {
|
|
111
|
+
if (!x() || !e(F) || !G?.isConnected) return;
|
|
112
|
+
let t = document.activeElement;
|
|
113
|
+
t instanceof Node && G.contains(t) || e(F).focus?.();
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
function se(e, t) {
|
|
117
|
+
X(), typeof ResizeObserver < "u" && (J = new ResizeObserver(() => {
|
|
118
|
+
x() && t.isConnected && e.resize?.();
|
|
119
|
+
}), J.observe(t));
|
|
120
|
+
for (let n of [
|
|
121
|
+
60,
|
|
122
|
+
250,
|
|
123
|
+
1e3
|
|
124
|
+
]) {
|
|
125
|
+
let r = setTimeout(() => {
|
|
126
|
+
Y.delete(r), x() && t.isConnected && e.resize?.();
|
|
127
|
+
}, n);
|
|
128
|
+
Y.add(r);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
async function ce(n, r, i) {
|
|
132
|
+
t(I, !0), t(L, null);
|
|
133
|
+
try {
|
|
134
|
+
if (!D()) throw Error("Calculator provider id is required");
|
|
135
|
+
let a = e(B)?.toolProviderRegistry;
|
|
136
|
+
if (!a) throw Error("Calculator provider registry is unavailable");
|
|
137
|
+
let o = await (await a.getProvider(D())).createInstance();
|
|
138
|
+
if (n !== K || !x() || !i.isConnected) {
|
|
139
|
+
i.remove();
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
let s = await o.createCalculator(e(H), i, A());
|
|
143
|
+
if (n !== K || !x() || !i.isConnected) {
|
|
144
|
+
s.destroy(), i.remove();
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
t(F, s, !0), W = r, t(R, i.childElementCount > 0), se(s, i), requestAnimationFrame(() => {
|
|
148
|
+
n === K && (s.resize?.(), t(R, i.childElementCount > 0), Q());
|
|
149
|
+
});
|
|
150
|
+
} catch (e) {
|
|
151
|
+
if (n !== K) {
|
|
152
|
+
i.remove();
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
t(L, e instanceof Error ? e.message : String(e), !0), t(F, null), G === i && (G = null), i.remove(), t(R, !1);
|
|
156
|
+
} finally {
|
|
157
|
+
n === K && t(I, !1);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
function le() {
|
|
161
|
+
q = !1;
|
|
162
|
+
let n = e(N), r = e(B);
|
|
163
|
+
if (!x() || !n || !n.isConnected || !r) {
|
|
164
|
+
(e(F) || e(I) || G) && Z(), t(L, null);
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
let i = `${D()}:${e(H)}:${e(U)}`;
|
|
168
|
+
if (e(F) && W === i) {
|
|
169
|
+
Q();
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
(e(F) || e(I) || G) && Z();
|
|
173
|
+
let a = document.createElement("div");
|
|
174
|
+
a.className = "pie-tool-calculator__mount", n.replaceChildren(a), G = a, ce(++K, i, a);
|
|
175
|
+
}
|
|
176
|
+
function ue() {
|
|
177
|
+
q || (q = !0, queueMicrotask(le));
|
|
178
|
+
}
|
|
179
|
+
d(() => {
|
|
180
|
+
x(), D(), e(H), A(), e(U), e(N), e(B), l(ue);
|
|
181
|
+
}), S(() => () => Z());
|
|
182
|
+
var de = {
|
|
183
|
+
get visible() {
|
|
184
|
+
return x();
|
|
185
|
+
},
|
|
186
|
+
set visible(e = !1) {
|
|
187
|
+
x(e), a();
|
|
188
|
+
},
|
|
189
|
+
get toolId() {
|
|
190
|
+
return E();
|
|
191
|
+
},
|
|
192
|
+
set toolId(e = "calculator") {
|
|
193
|
+
E(e), a();
|
|
194
|
+
},
|
|
195
|
+
get providerId() {
|
|
196
|
+
return D();
|
|
197
|
+
},
|
|
198
|
+
set providerId(e = "") {
|
|
199
|
+
D(e), a();
|
|
200
|
+
},
|
|
201
|
+
get calculatorType() {
|
|
202
|
+
return O();
|
|
203
|
+
},
|
|
204
|
+
set calculatorType(e = "basic") {
|
|
205
|
+
O(e), a();
|
|
206
|
+
},
|
|
207
|
+
get availableTypes() {
|
|
208
|
+
return k();
|
|
209
|
+
},
|
|
210
|
+
set availableTypes(e = [
|
|
211
|
+
"basic",
|
|
212
|
+
"scientific",
|
|
213
|
+
"graphing"
|
|
214
|
+
]) {
|
|
215
|
+
k(e), a();
|
|
216
|
+
},
|
|
217
|
+
get calculatorConfig() {
|
|
218
|
+
return A();
|
|
219
|
+
},
|
|
220
|
+
set calculatorConfig(e = {}) {
|
|
221
|
+
A(e), a();
|
|
222
|
+
},
|
|
223
|
+
get toolkitCoordinator() {
|
|
224
|
+
return j();
|
|
225
|
+
},
|
|
226
|
+
set toolkitCoordinator(e = null) {
|
|
227
|
+
j(e), a();
|
|
228
|
+
}
|
|
229
|
+
}, $ = ae(), fe = r($), pe = (n) => {
|
|
230
|
+
var i = ie(), a = r(i);
|
|
231
|
+
v(a, (e) => t(N, e), () => e(N));
|
|
232
|
+
var s = f(a, 2), l = (t) => {
|
|
233
|
+
var n = ne(), r = c(n, !0);
|
|
234
|
+
u((e) => w(r, e), [() => e(z).t("tools.calculator.loading")]), C(t, n);
|
|
235
|
+
};
|
|
236
|
+
_(s, (t) => {
|
|
237
|
+
(e(I) || !e(L) && !e(R)) && t(l);
|
|
238
|
+
});
|
|
239
|
+
var d = f(s, 2), p = (t) => {
|
|
240
|
+
var n = re(), i = f(r(n)), a = c(i, !0);
|
|
241
|
+
o(n), u(() => w(a, e(L))), C(t, n);
|
|
242
|
+
};
|
|
243
|
+
_(d, (t) => {
|
|
244
|
+
e(L) && t(p);
|
|
245
|
+
}), o(i), u((t, n, r) => {
|
|
246
|
+
h(i, "data-tool-id", E()), h(i, "data-provider-id", D()), h(i, "lang", t), h(i, "dir", n), h(i, "aria-label", r), h(a, "data-calculator-type", e(H)), i.dir = i.dir;
|
|
247
|
+
}, [
|
|
248
|
+
() => e(z).getLocale(),
|
|
249
|
+
() => e(z).getDirection?.() ?? "ltr",
|
|
250
|
+
() => e(z).t("tools.calculator.toolA11y")
|
|
251
|
+
]), C(n, i);
|
|
252
|
+
};
|
|
253
|
+
return _(fe, (e) => {
|
|
254
|
+
x() && e(pe);
|
|
255
|
+
}), o($), v($, (e) => t(M, e), () => e(M)), C(n, $), i(de);
|
|
256
|
+
}
|
|
257
|
+
y(k, {
|
|
258
|
+
visible: {},
|
|
259
|
+
toolId: {},
|
|
260
|
+
providerId: {},
|
|
261
|
+
calculatorType: {},
|
|
262
|
+
availableTypes: {},
|
|
263
|
+
calculatorConfig: {},
|
|
264
|
+
toolkitCoordinator: {}
|
|
265
|
+
}, [], [], { mode: "open" });
|
|
266
|
+
//#endregion
|
|
267
|
+
//#region ../../node_modules/.bun/@pie-players+pie-tool-calculator-shared@0.3.73+4df9da1290a48f6a/node_modules/@pie-players/pie-tool-calculator-shared/dist/calculator-element.js
|
|
268
|
+
var A = { tag: "pie-tool-calculator" }, j = {
|
|
269
|
+
hash: "svelte-2sv5xw",
|
|
270
|
+
code: ".pie-tool-calculator__container .dcg-container {width:100% !important;height:100% !important;}"
|
|
271
|
+
};
|
|
272
|
+
function M(e, t) {
|
|
273
|
+
s(t, !0), g(e, j);
|
|
274
|
+
let n = b(t, "visible", 7, !1), r = b(t, "toolId", 7, "calculator"), o = b(t, "providerId", 7, "calculator-desmos"), c = b(t, "calculatorType", 7, "basic"), l = b(t, "availableTypes", 23, () => [
|
|
275
|
+
"basic",
|
|
276
|
+
"scientific",
|
|
277
|
+
"graphing"
|
|
278
|
+
]), u = b(t, "calculatorConfig", 23, () => ({})), d = b(t, "toolkitCoordinator", 7, null);
|
|
279
|
+
return k(e, {
|
|
280
|
+
get visible() {
|
|
281
|
+
return n();
|
|
282
|
+
},
|
|
283
|
+
get toolId() {
|
|
284
|
+
return r();
|
|
285
|
+
},
|
|
286
|
+
get providerId() {
|
|
287
|
+
return o();
|
|
288
|
+
},
|
|
289
|
+
get calculatorType() {
|
|
290
|
+
return c();
|
|
291
|
+
},
|
|
292
|
+
get availableTypes() {
|
|
293
|
+
return l();
|
|
294
|
+
},
|
|
295
|
+
get calculatorConfig() {
|
|
296
|
+
return u();
|
|
297
|
+
},
|
|
298
|
+
get toolkitCoordinator() {
|
|
299
|
+
return d();
|
|
300
|
+
}
|
|
301
|
+
}), i({
|
|
302
|
+
get visible() {
|
|
303
|
+
return n();
|
|
304
|
+
},
|
|
305
|
+
set visible(e = !1) {
|
|
306
|
+
n(e), a();
|
|
307
|
+
},
|
|
308
|
+
get toolId() {
|
|
309
|
+
return r();
|
|
310
|
+
},
|
|
311
|
+
set toolId(e = "calculator") {
|
|
312
|
+
r(e), a();
|
|
313
|
+
},
|
|
314
|
+
get providerId() {
|
|
315
|
+
return o();
|
|
316
|
+
},
|
|
317
|
+
set providerId(e = "calculator-desmos") {
|
|
318
|
+
o(e), a();
|
|
319
|
+
},
|
|
320
|
+
get calculatorType() {
|
|
321
|
+
return c();
|
|
322
|
+
},
|
|
323
|
+
set calculatorType(e = "basic") {
|
|
324
|
+
c(e), a();
|
|
325
|
+
},
|
|
326
|
+
get availableTypes() {
|
|
327
|
+
return l();
|
|
328
|
+
},
|
|
329
|
+
set availableTypes(e = [
|
|
330
|
+
"basic",
|
|
331
|
+
"scientific",
|
|
332
|
+
"graphing"
|
|
333
|
+
]) {
|
|
334
|
+
l(e), a();
|
|
335
|
+
},
|
|
336
|
+
get calculatorConfig() {
|
|
337
|
+
return u();
|
|
338
|
+
},
|
|
339
|
+
set calculatorConfig(e = {}) {
|
|
340
|
+
u(e), a();
|
|
341
|
+
},
|
|
342
|
+
get toolkitCoordinator() {
|
|
343
|
+
return d();
|
|
344
|
+
},
|
|
345
|
+
set toolkitCoordinator(e = null) {
|
|
346
|
+
d(e), a();
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
y(M, {
|
|
351
|
+
visible: {
|
|
352
|
+
attribute: "visible",
|
|
353
|
+
type: "Boolean"
|
|
354
|
+
},
|
|
355
|
+
toolId: {
|
|
356
|
+
attribute: "tool-id",
|
|
357
|
+
type: "String"
|
|
358
|
+
},
|
|
359
|
+
providerId: {
|
|
360
|
+
attribute: "provider-id",
|
|
361
|
+
type: "String"
|
|
362
|
+
},
|
|
363
|
+
calculatorType: {
|
|
364
|
+
attribute: "calculator-type",
|
|
365
|
+
type: "String"
|
|
366
|
+
},
|
|
367
|
+
availableTypes: {
|
|
368
|
+
attribute: "available-types",
|
|
369
|
+
type: "Array"
|
|
370
|
+
},
|
|
371
|
+
calculatorConfig: { type: "Object" },
|
|
372
|
+
toolkitCoordinator: { type: "Object" }
|
|
373
|
+
}, [], []);
|
|
374
|
+
var N = M.element;
|
|
375
|
+
O(A.tag, N);
|
|
376
|
+
//#endregion
|
|
377
|
+
|
|
378
|
+
//# sourceMappingURL=pie-tool-calculator-Crfk-IZe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pie-tool-calculator-Crfk-IZe.js","names":["e.from_html","e.append_styles","e.prop","e.state","e.derived","Y","e.get","X","e.set","$","Z","e.flush","e.child","e.sibling","e.only_child","e.set_text","e.append","e.template_effect","e.reset","e.set_attribute","e.if","e.bind_this","e.pop","e.create_custom_element","t.append_styles","t.prop","g","t.pop","t.flush","t.create_custom_element","v"],"sources":["../../../node_modules/.bun/@pie-players+pie-players-shared@0.3.73/node_modules/@pie-players/pie-players-shared/dist/pie/custom-element-define.js","../../../node_modules/.bun/@pie-players+pie-tool-calculator-shared@0.3.73+4df9da1290a48f6a/node_modules/@pie-players/pie-tool-calculator-shared/dist/CalculatorTool-Dhv9G4lI.js","../../../node_modules/.bun/@pie-players+pie-tool-calculator-shared@0.3.73+4df9da1290a48f6a/node_modules/@pie-players/pie-tool-calculator-shared/dist/calculator-element.js"],"sourcesContent":["import { validateCustomElementTag } from \"./tag-names.js\";\nconst isDuplicateDefineError = (error) => {\n if (typeof DOMException !== \"undefined\" && error instanceof DOMException) {\n return (error.name === \"NotSupportedError\" ||\n error.code === DOMException.NOT_SUPPORTED_ERR);\n }\n const maybeName = typeof error === \"object\" && error !== null && \"name\" in error\n ? String(error.name)\n : \"\";\n return maybeName === \"NotSupportedError\";\n};\n/**\n * Attempt to define a custom element, classifying the outcome instead of\n * throwing, so callers with different error-surfacing conventions (throw vs.\n * record-and-continue) can build their own public behavior on one shared\n * duplicate-define/collision core.\n */\nexport const attemptCustomElementDefine = (tagName, elementConstructor, context = \"custom element tag\", options = {}) => {\n const validTagName = validateCustomElementTag(tagName, context);\n if (customElements.get(validTagName)) {\n return { outcome: \"already-defined\", tagName: validTagName };\n }\n try {\n customElements.define(validTagName, elementConstructor);\n return { outcome: \"defined\", tagName: validTagName };\n }\n catch (error) {\n if (!isDuplicateDefineError(error)) {\n return { outcome: \"error\", tagName: validTagName, error };\n }\n if (customElements.get(validTagName)) {\n return { outcome: \"already-defined\", tagName: validTagName };\n }\n if (!options.allowWrappedFallback) {\n return { outcome: \"error\", tagName: validTagName, error };\n }\n try {\n customElements.define(validTagName, class extends elementConstructor {\n });\n return { outcome: \"defined-wrapped\", tagName: validTagName };\n }\n catch (wrappedError) {\n return {\n outcome: \"wrapped-error\",\n tagName: validTagName,\n error: wrappedError,\n };\n }\n }\n};\nexport const defineCustomElementSafely = (tagName, elementConstructor, context = \"custom element tag\") => {\n const attempt = attemptCustomElementDefine(tagName, elementConstructor, context);\n if (attempt.outcome === \"error\" || attempt.outcome === \"wrapped-error\") {\n throw attempt.error;\n }\n return {\n status: attempt.outcome === \"already-defined\" ? \"already-defined\" : \"defined\",\n tagName: attempt.tagName,\n };\n};\n","import \"svelte/internal/disclose-version\";\nimport * as e from \"svelte/internal/client\";\nimport { connectToolRuntimeContext as X } from \"@pie-players/pie-assessment-toolkit\";\nimport { resolveInterfaceI18n as Y } from \"@pie-players/pie-players-shared/i18n/provider\";\nimport { onMount as Z, untrack as $ } from \"svelte\";\nfunction ee(w) {\n const n = /* @__PURE__ */ new Set(), a = (o) => {\n if (o === void 0) return { $type: \"undefined\" };\n if (typeof o == \"bigint\") return {\n $type: \"bigint\",\n value: o.toString()\n };\n if (typeof o == \"function\") return {\n $type: \"function\",\n value: o.toString()\n };\n if (typeof o == \"symbol\") return {\n $type: \"symbol\",\n value: o.description ?? \"\"\n };\n if (o === null || typeof o != \"object\") return o;\n if (n.has(o)) return { $type: \"circular-reference\" };\n n.add(o);\n const c = Array.isArray(o) ? o.map(a) : Object.fromEntries(Object.entries(o).sort(([p], [d]) => p.localeCompare(d)).map(([p, d]) => [p, a(d)]));\n return n.delete(o), c;\n };\n return JSON.stringify(a(w));\n}\nvar te = e.from_html('<div class=\"pie-tool-calculator__loading svelte-i18sle\"> </div>'), ie = e.from_html('<div class=\"pie-tool-calculator__loading pie-tool-calculator__loading--error svelte-i18sle\">Calculator failed to initialize. <div class=\"pie-tool-calculator__error-details svelte-i18sle\"> </div></div>'), oe = e.from_html('<div class=\"pie-tool-calculator notranslate svelte-i18sle\" role=\"region\" tabindex=\"-1\" translate=\"no\"><div class=\"pie-tool-calculator__container svelte-i18sle\"></div> <!> <!></div>'), re = e.from_html('<div class=\"pie-tool-calculator__context-host svelte-i18sle\"><!></div>'), le = {\n hash: \"svelte-i18sle\",\n code: `.pie-tool-calculator__context-host.svelte-i18sle {display:flex;width:100%;height:100%;min-height:0;}.pie-tool-calculator.svelte-i18sle {position:relative;display:flex;flex:1 1 auto;min-width:100%;min-height:0;background:var(--pie-white, white);overflow:hidden;}.pie-tool-calculator__container.svelte-i18sle {position:relative;width:100%;height:100%;min-width:100%;min-height:100%;\n\t\t/*\n\t\t * \\`--pie-white\\`, not the literal. The token inverts by design (#ffffff light,\n\t\t * #000000 dark, redefined per colour scheme), so a hardcoded white showed\n\t\t * through as a white plate behind a dark calculator the moment a provider's own\n\t\t * surface stopped being opaque — and under a PNP colour scheme it was simply\n\t\t * the wrong colour.\n\t\t */background:var(--pie-white, white);overflow:hidden;}.pie-tool-calculator__mount {width:100%;height:100%;min-width:100%;min-height:100%;}.pie-tool-calculator__loading.svelte-i18sle {position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb, var(--pie-white, #fff) 90%, transparent);color:var(--pie-text, #334155);font-size:0.9rem;}.pie-tool-calculator__loading--error.svelte-i18sle {flex-direction:column;gap:0.5rem;padding:0.75rem;color:var(--pie-incorrect, #b91c1c);text-align:center;}.pie-tool-calculator__error-details.svelte-i18sle {max-width:95%;color:var(--pie-incorrect, #7f1d1d);font-size:0.8rem;line-height:1.2;word-break:break-word;}.pie-tool-calculator__mount > * {width:100% !important;height:100% !important;}`\n};\nfunction ae(w, n) {\n e.push(n, !0), e.append_styles(w, le);\n let a = e.prop(n, \"visible\", 7, !1), o = e.prop(n, \"toolId\", 7, \"calculator\"), c = e.prop(n, \"providerId\", 7, \"\"), p = e.prop(n, \"calculatorType\", 7, \"basic\"), d = e.prop(n, \"availableTypes\", 23, () => [\n \"basic\",\n \"scientific\",\n \"graphing\"\n ]), y = e.prop(n, \"calculatorConfig\", 23, () => ({})), S = e.prop(n, \"toolkitCoordinator\", 7, null), x = e.state(null), T = e.state(null), O = e.state(null), u = e.state(null), h = e.state(!1), m = e.state(null), b = e.state(!1);\n const k = e.derived(() => Y(e.get(O))), A = e.derived(() => S() ?? e.get(O)?.toolkitCoordinator), N = e.derived(() => (typeof d() == \"string\" ? d().split(\",\").map((t) => t.trim()) : d()).filter((t) => t === \"basic\" || t === \"scientific\" || t === \"graphing\")), z = e.derived(() => e.get(N).includes(p()) ? p() : e.get(N)[0] ?? \"basic\"), F = e.derived(() => ee(y()));\n let E = null, f = null, g = 0, M = !1, I = null;\n const q = /* @__PURE__ */ new Set();\n e.user_effect(() => {\n if (e.get(x))\n return X(e.get(x), (t) => {\n e.set(O, t, !0);\n });\n });\n function D() {\n I?.disconnect(), I = null;\n for (const t of q) clearTimeout(t);\n q.clear();\n }\n function P() {\n g += 1, D();\n const t = e.get(u), r = f;\n e.set(u, null), f = null;\n try {\n t?.destroy();\n } catch (i) {\n console.warn(\"[CalculatorTool] calculator cleanup failed:\", i);\n }\n r?.remove(), E = null, e.set(h, !1), e.set(b, !1);\n }\n function G() {\n requestAnimationFrame(() => {\n if (!a() || !e.get(u) || !f?.isConnected) return;\n const t = document.activeElement;\n t instanceof Node && f.contains(t) || e.get(u).focus?.();\n });\n }\n function H(t, r) {\n D(), typeof ResizeObserver < \"u\" && (I = new ResizeObserver(() => {\n a() && r.isConnected && t.resize?.();\n }), I.observe(r));\n for (const i of [\n 60,\n 250,\n 1e3\n ]) {\n const l = setTimeout(() => {\n q.delete(l), a() && r.isConnected && t.resize?.();\n }, i);\n q.add(l);\n }\n }\n async function J(t, r, i) {\n e.set(h, !0), e.set(m, null);\n try {\n if (!c()) throw new Error(\"Calculator provider id is required\");\n const l = e.get(A)?.toolProviderRegistry;\n if (!l) throw new Error(\"Calculator provider registry is unavailable\");\n const j = await (await l.getProvider(c())).createInstance();\n if (t !== g || !a() || !i.isConnected) {\n i.remove();\n return;\n }\n const _ = await j.createCalculator(e.get(z), i, y());\n if (t !== g || !a() || !i.isConnected) {\n _.destroy(), i.remove();\n return;\n }\n e.set(u, _, !0), E = r, e.set(b, i.childElementCount > 0), H(_, i), requestAnimationFrame(() => {\n t === g && (_.resize?.(), e.set(b, i.childElementCount > 0), G());\n });\n } catch (l) {\n if (t !== g) {\n i.remove();\n return;\n }\n e.set(m, l instanceof Error ? l.message : String(l), !0), e.set(u, null), f === i && (f = null), i.remove(), e.set(b, !1);\n } finally {\n t === g && e.set(h, !1);\n }\n }\n function L() {\n M = !1;\n const t = e.get(T), r = e.get(A);\n if (!a() || !t || !t.isConnected || !r) {\n (e.get(u) || e.get(h) || f) && P(), e.set(m, null);\n return;\n }\n const i = `${c()}:${e.get(z)}:${e.get(F)}`;\n if (e.get(u) && E === i) {\n G();\n return;\n }\n (e.get(u) || e.get(h) || f) && P();\n const l = document.createElement(\"div\");\n l.className = \"pie-tool-calculator__mount\", t.replaceChildren(l), f = l, J(++g, i, l);\n }\n function Q() {\n M || (M = !0, queueMicrotask(L));\n }\n e.user_effect(() => {\n a(), c(), e.get(z), y(), e.get(F), e.get(T), e.get(A), $(Q);\n }), Z(() => () => P());\n var W = {\n get visible() {\n return a();\n },\n set visible(t = !1) {\n a(t), e.flush();\n },\n get toolId() {\n return o();\n },\n set toolId(t = \"calculator\") {\n o(t), e.flush();\n },\n get providerId() {\n return c();\n },\n set providerId(t = \"\") {\n c(t), e.flush();\n },\n get calculatorType() {\n return p();\n },\n set calculatorType(t = \"basic\") {\n p(t), e.flush();\n },\n get availableTypes() {\n return d();\n },\n set availableTypes(t = [\n \"basic\",\n \"scientific\",\n \"graphing\"\n ]) {\n d(t), e.flush();\n },\n get calculatorConfig() {\n return y();\n },\n set calculatorConfig(t = {}) {\n y(t), e.flush();\n },\n get toolkitCoordinator() {\n return S();\n },\n set toolkitCoordinator(t = null) {\n S(t), e.flush();\n }\n }, R = re(), B = e.child(R), U = (t) => {\n var r = oe(), i = e.child(r);\n e.bind_this(i, (s) => e.set(T, s), () => e.get(T));\n var l = e.sibling(i, 2), j = (s) => {\n var v = te(), C = e.only_child(v, !0);\n e.template_effect((K) => e.set_text(C, K), [() => e.get(k).t(\"tools.calculator.loading\")]), e.append(s, v);\n };\n e.if(l, (s) => {\n (e.get(h) || !e.get(m) && !e.get(b)) && s(j);\n });\n var _ = e.sibling(l, 2), V = (s) => {\n var v = ie(), C = e.sibling(e.child(v)), K = e.only_child(C, !0);\n e.reset(v), e.template_effect(() => e.set_text(K, e.get(m))), e.append(s, v);\n };\n e.if(_, (s) => {\n e.get(m) && s(V);\n }), e.reset(r), e.template_effect((s, v, C) => {\n e.set_attribute(r, \"data-tool-id\", o()), e.set_attribute(r, \"data-provider-id\", c()), e.set_attribute(r, \"lang\", s), e.set_attribute(r, \"dir\", v), e.set_attribute(r, \"aria-label\", C), e.set_attribute(i, \"data-calculator-type\", e.get(z)), r.dir = r.dir;\n }, [\n () => e.get(k).getLocale(),\n () => e.get(k).getDirection?.() ?? \"ltr\",\n () => e.get(k).t(\"tools.calculator.toolA11y\")\n ]), e.append(t, r);\n };\n return e.if(B, (t) => {\n a() && t(U);\n }), e.reset(R), e.bind_this(R, (t) => e.set(x, t), () => e.get(x)), e.append(w, R), e.pop(W);\n}\ne.create_custom_element(ae, {\n visible: {},\n toolId: {},\n providerId: {},\n calculatorType: {},\n availableTypes: {},\n calculatorConfig: {},\n toolkitCoordinator: {}\n}, [], [], { mode: \"open\" });\nexport {\n ae as t\n};\n","import { t as g } from \"./CalculatorTool-Dhv9G4lI.js\";\nimport \"svelte/internal/disclose-version\";\nimport * as t from \"svelte/internal/client\";\nimport { defineCustomElementSafely as v } from \"@pie-players/pie-players-shared\";\nvar b = { tag: \"pie-tool-calculator\" }, y = {\n hash: \"svelte-2sv5xw\",\n code: \".pie-tool-calculator__container .dcg-container {width:100% !important;height:100% !important;}\"\n};\nfunction p(s, r) {\n t.push(r, !0), t.append_styles(s, y);\n let o = t.prop(r, \"visible\", 7, !1), l = t.prop(r, \"toolId\", 7, \"calculator\"), a = t.prop(r, \"providerId\", 7, \"calculator-desmos\"), i = t.prop(r, \"calculatorType\", 7, \"basic\"), c = t.prop(r, \"availableTypes\", 23, () => [\n \"basic\",\n \"scientific\",\n \"graphing\"\n ]), u = t.prop(r, \"calculatorConfig\", 23, () => ({})), n = t.prop(r, \"toolkitCoordinator\", 7, null);\n var d = {\n get visible() {\n return o();\n },\n set visible(e = !1) {\n o(e), t.flush();\n },\n get toolId() {\n return l();\n },\n set toolId(e = \"calculator\") {\n l(e), t.flush();\n },\n get providerId() {\n return a();\n },\n set providerId(e = \"calculator-desmos\") {\n a(e), t.flush();\n },\n get calculatorType() {\n return i();\n },\n set calculatorType(e = \"basic\") {\n i(e), t.flush();\n },\n get availableTypes() {\n return c();\n },\n set availableTypes(e = [\n \"basic\",\n \"scientific\",\n \"graphing\"\n ]) {\n c(e), t.flush();\n },\n get calculatorConfig() {\n return u();\n },\n set calculatorConfig(e = {}) {\n u(e), t.flush();\n },\n get toolkitCoordinator() {\n return n();\n },\n set toolkitCoordinator(e = null) {\n n(e), t.flush();\n }\n };\n return g(s, {\n get visible() {\n return o();\n },\n get toolId() {\n return l();\n },\n get providerId() {\n return a();\n },\n get calculatorType() {\n return i();\n },\n get availableTypes() {\n return c();\n },\n get calculatorConfig() {\n return u();\n },\n get toolkitCoordinator() {\n return n();\n }\n }), t.pop(d);\n}\nt.create_custom_element(p, {\n visible: {\n attribute: \"visible\",\n type: \"Boolean\"\n },\n toolId: {\n attribute: \"tool-id\",\n type: \"String\"\n },\n providerId: {\n attribute: \"provider-id\",\n type: \"String\"\n },\n calculatorType: {\n attribute: \"calculator-type\",\n type: \"String\"\n },\n availableTypes: {\n attribute: \"available-types\",\n type: \"Array\"\n },\n calculatorConfig: { type: \"Object\" },\n toolkitCoordinator: { type: \"Object\" }\n}, [], []);\nvar f = p.element;\nv(b.tag, f);\n"],"x_google_ignoreList":[0,1,2],"mappings":";;;;AACA,IAAM,KAA0B,MACxB,OAAO,eAAiB,OAAe,aAAiB,eAChD,EAAM,SAAS,uBACnB,EAAM,SAAS,aAAa,qBAElB,OAAO,KAAU,YAAY,KAAkB,UAAU,IACrE,OAAO,EAAM,IAAI,IACjB,QACe,qBAQZ,KAA8B,GAAS,GAAoB,IAAU,sBAAsB,IAAU,CAAC,MAAM;CACrH,IAAM,IAAe,EAAyB,GAAS,CAAO;CAC9D,IAAI,eAAe,IAAI,CAAY,GAC/B,OAAO;EAAE,SAAS;EAAmB,SAAS;CAAa;CAE/D,IAAI;EAEA,OADA,eAAe,OAAO,GAAc,CAAkB,GAC/C;GAAE,SAAS;GAAW,SAAS;EAAa;CACvD,SACO,GAAO;EACV,IAAI,CAAC,EAAuB,CAAK,GAC7B,OAAO;GAAE,SAAS;GAAS,SAAS;GAAc;EAAM;EAE5D,IAAI,eAAe,IAAI,CAAY,GAC/B,OAAO;GAAE,SAAS;GAAmB,SAAS;EAAa;EAE/D,IAAI,CAAC,EAAQ,sBACT,OAAO;GAAE,SAAS;GAAS,SAAS;GAAc;EAAM;EAE5D,IAAI;GAGA,OAFA,eAAe,OAAO,GAAc,cAAc,EAAmB,CACrE,CAAC,GACM;IAAE,SAAS;IAAmB,SAAS;GAAa;EAC/D,SACO,GAAc;GACjB,OAAO;IACH,SAAS;IACT,SA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,CAAC;AACb;AACAC,EAAwB,GAAG;CACzB,SAAS;EACP,WAAW;EACX,MAAM;CACR;CACA,QAAQ;EACN,WAAW;EACX,MAAM;CACR;CACA,YAAY;EACV,WAAW;EACX,MAAM;CACR;CACA,gBAAgB;EACd,WAAW;EACX,MAAM;CACR;CACA,gBAAgB;EACd,WAAW;EACX,MAAM;CACR;CACA,kBAAkB,EAAE,MAAM,SAAS;CACnC,oBAAoB,EAAE,MAAM,SAAS;AACvC,GAAG,CAAC,GAAG,CAAC,CAAC;AACT,IAAI,IAAI,EAAE;AACVC,EAAE,EAAE,KAAK,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as e, s as t } from "./language-tags-
|
|
2
|
-
//#region ../../node_modules/.bun/@pie-players+pie-context@0.3.
|
|
1
|
+
import { c as e, s as t } from "./language-tags-BwFWXo71.js";
|
|
2
|
+
//#region ../../node_modules/.bun/@pie-players+pie-context@0.3.73/node_modules/@pie-players/pie-context/dist/provider.js
|
|
3
3
|
var n = class {
|
|
4
4
|
host;
|
|
5
5
|
context;
|
|
@@ -55,4 +55,4 @@ var n = class {
|
|
|
55
55
|
//#endregion
|
|
56
56
|
export { n as t };
|
|
57
57
|
|
|
58
|
-
//# sourceMappingURL=provider-
|
|
58
|
+
//# sourceMappingURL=provider-gBXlGb0d.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-
|
|
1
|
+
{"version":3,"file":"provider-gBXlGb0d.js","names":[],"sources":["../../../node_modules/.bun/@pie-players+pie-context@0.3.73/node_modules/@pie-players/pie-context/dist/provider.js"],"sourcesContent":["import { ContextProviderEvent, ContextRequestEvent } from \"./events.js\";\nexport class ContextProvider {\n host;\n context;\n currentValue;\n subscriptions = new Map();\n isConnected = false;\n constructor(host, options) {\n this.host = host;\n this.context = options.context;\n this.currentValue = options.initialValue;\n }\n connect() {\n if (this.isConnected)\n return;\n this.isConnected = true;\n this.host.addEventListener(\"context-request\", this.handleContextRequest);\n this.host.addEventListener(\"context-provider\", this.handleContextProvider);\n this.host.dispatchEvent(new ContextProviderEvent(this.context, this.host));\n }\n disconnect() {\n if (!this.isConnected)\n return;\n this.isConnected = false;\n this.host.removeEventListener(\"context-request\", this.handleContextRequest);\n this.host.removeEventListener(\"context-provider\", this.handleContextProvider);\n this.subscriptions.clear();\n }\n setValue(value, force = false) {\n if (!force && Object.is(this.currentValue, value))\n return;\n this.currentValue = value;\n this.notifySubscribers();\n }\n get value() {\n return this.currentValue;\n }\n getContextTarget(event, fallback) {\n if (\"contextTarget\" in event && event.contextTarget) {\n return event.contextTarget;\n }\n const path = typeof event.composedPath === \"function\" ? event.composedPath() : [];\n const firstPathTarget = path[0];\n return firstPathTarget ? firstPathTarget : fallback;\n }\n handleContextRequest = (event) => {\n if (event.context !== this.context)\n return;\n const consumerHost = this.getContextTarget(event, this.host);\n if (consumerHost === this.host)\n return;\n // Closest provider wins for this context key.\n event.stopPropagation();\n if (!event.subscribe) {\n event.callback(this.currentValue);\n return;\n }\n const existing = this.subscriptions.get(event.callback);\n existing?.unsubscribe();\n const unsubscribe = () => {\n this.subscriptions.delete(event.callback);\n };\n this.subscriptions.set(event.callback, {\n consumerHost,\n callback: event.callback,\n unsubscribe,\n });\n event.callback(this.currentValue, unsubscribe);\n };\n handleContextProvider = (event) => {\n if (event.context !== this.context)\n return;\n const providerHost = this.getContextTarget(event, this.host);\n if (providerHost === this.host)\n return;\n // A newly connected nested provider should take over matching consumers.\n const seen = new Set();\n for (const [callback, { consumerHost }] of this.subscriptions) {\n if (seen.has(callback))\n continue;\n seen.add(callback);\n consumerHost.dispatchEvent(new ContextRequestEvent(this.context, consumerHost, callback, true));\n }\n event.stopPropagation();\n };\n notifySubscribers() {\n for (const subscription of this.subscriptions.values()) {\n subscription.callback(this.currentValue, subscription.unsubscribe);\n }\n }\n}\nexport const provideContext = (host, options) => new ContextProvider(host, options);\n"],"x_google_ignoreList":[0],"mappings":";;AACA,IAAa,IAAb,MAA6B;CACz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Ac,IAAI,EAAM,UAAU;GACnC;GACA,UAAU,EAAM;GAChB;EACJ,CAAC,GACD,EAAM,SAAS,KAAK,cAAc,CAAW;CACjD;CACA,yBAAyB,MAAU;EAI/B,IAHI,EAAM,YAAY,KAAK,WAEN,KAAK,iBAAiB,GAAO,KAAK,IACxC,MAAM,KAAK,MACtB;EAEJ,IAAM,oBAAO,IAAI,IAAI;EACrB,KAAK,IAAM,CAAC,GAAU,EAAE,sBAAmB,KAAK,eACxC,EAAK,IAAI,CAAQ,MAErB,EAAK,IAAI,CAAQ,GACjB,EAAa,cAAc,IAAI,EAAoB,KAAK,SAAS,GAAc,GAAU,EAAI,CAAC;EAElG,EAAM,gBAAgB;CAC1B;CACA,oBAAoB;EAChB,KAAK,IAAM,KAAgB,KAAK,cAAc,OAAO,GACjD,EAAa,SAAS,KAAK,cAAc,EAAa,WAAW;CAEzE;AACJ"}
|
package/dist/public/api.d.ts
CHANGED
|
@@ -570,7 +570,7 @@ export interface QtiSerializedItemSessionState {
|
|
|
570
570
|
validationMessages: unknown[];
|
|
571
571
|
savedAt: string;
|
|
572
572
|
}
|
|
573
|
-
export type QtiSectionDiagnosticSource = 'assessment-player' | '
|
|
573
|
+
export type QtiSectionDiagnosticSource = 'assessment-player' | 'host' | 'manifest' | 'assessment-test' | 'item' | 'stimulus' | 'security' | 'section-player';
|
|
574
574
|
export interface QtiSectionDiagnostic {
|
|
575
575
|
severity: 'info' | 'warning' | 'error';
|
|
576
576
|
source: QtiSectionDiagnosticSource;
|
package/dist/register-players.js
CHANGED