@pie-element/graphing 11.0.6-next.20261018193205 → 11.0.6
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/browser/author/index.js +2 -2
- package/dist/browser/{container-Ln-NazHM.js → container-DPBvJ3kP.js} +3190 -3190
- package/dist/browser/container-DPBvJ3kP.js.map +1 -0
- package/dist/browser/controller/index.js +1 -1
- package/dist/browser/delivery/index.js +2 -2
- package/dist/browser/editor-runtime/author/index.js +2 -2
- package/dist/browser/editor-runtime/{container-BcdkOSpR.js → container-AvHx8Kzz.js} +55 -55
- package/dist/browser/editor-runtime/container-AvHx8Kzz.js.map +1 -0
- package/dist/browser/editor-runtime/controller/index.js +1 -1
- package/dist/browser/editor-runtime/delivery/index.js +2 -2
- package/dist/browser/editor-runtime/{mathjax-CptWnMbQ-wTuWt6Tn.js → mathjax-DqXi3q4c-CEHQvcjy.js} +4 -4
- package/dist/browser/editor-runtime/{mathjax-CptWnMbQ-wTuWt6Tn.js.map → mathjax-DqXi3q4c-CEHQvcjy.js.map} +1 -1
- package/dist/browser/{mathjax-CptWnMbQ-BYSvmdsj.js → mathjax-DqXi3q4c-Cs9xKIal.js} +4 -4
- package/dist/browser/{mathjax-CptWnMbQ-BYSvmdsj.js.map → mathjax-DqXi3q4c-Cs9xKIal.js.map} +1 -1
- package/dist/index.iife.js +97 -97
- package/dist/schemas/configuration.schema.json +1 -1
- package/dist/schemas/model.schema.json +1 -1
- package/dist/schemas/session.schema.json +1 -1
- package/package.json +15 -15
- package/dist/browser/container-Ln-NazHM.js.map +0 -1
- package/dist/browser/editor-runtime/container-BcdkOSpR.js.map +0 -1
|
@@ -338,7 +338,7 @@ var Y = (e, t) => new Promise((n) => {
|
|
|
338
338
|
}), o(a) || (i.correctAnswerErrors = a), i;
|
|
339
339
|
}, Q = Object.freeze({
|
|
340
340
|
name: "@pie-element/graphing",
|
|
341
|
-
version: "11.0.6
|
|
341
|
+
version: "11.0.6"
|
|
342
342
|
});
|
|
343
343
|
//#endregion
|
|
344
344
|
export { V as comparLabelMarks, B as compareMarks, Y as createCorrectResponseSession, H as getAnswerCorrected, W as getBestAnswer, q as getLogTrace, K as model, G as normalize, J as outcome, Q as piePackage, Z as validate };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { R as e } from "../dist-BUH2aT6V.js";
|
|
2
|
-
import { B as t, D as n, E as r, O as i, P as a, S as o, T as s, _t as c, it as l, ot as u, rt as d, t as f, vt as p, w as m, z as h } from "../container-
|
|
2
|
+
import { B as t, D as n, E as r, O as i, P as a, S as o, T as s, _t as c, it as l, ot as u, rt as d, t as f, vt as p, w as m, z as h } from "../container-DPBvJ3kP.js";
|
|
3
3
|
import g, { useRef as _ } from "react";
|
|
4
4
|
import { createRoot as v } from "react-dom/client";
|
|
5
5
|
import { jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
@@ -771,7 +771,7 @@ var K = m, q = K.default, J = q && typeof q == "object" ? q : K, oe = G(a, "UiLa
|
|
|
771
771
|
}
|
|
772
772
|
}, ue = Object.freeze({
|
|
773
773
|
name: "@pie-element/graphing",
|
|
774
|
-
version: "11.0.6
|
|
774
|
+
version: "11.0.6"
|
|
775
775
|
});
|
|
776
776
|
//#endregion
|
|
777
777
|
export { $ as Component, le as default, ue as piePackage };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { E as e, M as t, O as n, S as r, j as i, m as a, u as o, z as s } from "../dist-BTqjvlEc.js";
|
|
2
|
-
import { $ as c, A as l, C as u, F as d, G as f, H as p, I as m, J as h, K as g, L as _, M as v, N as y, Q as b, R as x, U as S, V as C, W as w, X as T, Y as E, Z as D, _ as O, _t as k, a as A, at as j, b as M, c as N, ct as ee, d as P, dt as F, et as I, f as te, ft as ne, g as re, gt as ie, h as L, ht as R, i as ae, it as z, j as B, k as oe, l as se, lt as ce, m as le, mt as V, n as ue, nt as de, o as fe, ot as H, p as pe, pt as me, q as U, r as W, s as he, st as ge, t as _e, tt as ve, u as ye, ut as be, v as xe, vt as Se, w as Ce, x as we, y as Te } from "../container-
|
|
2
|
+
import { $ as c, A as l, C as u, F as d, G as f, H as p, I as m, J as h, K as g, L as _, M as v, N as y, Q as b, R as x, U as S, V as C, W as w, X as T, Y as E, Z as D, _ as O, _t as k, a as A, at as j, b as M, c as N, ct as ee, d as P, dt as F, et as I, f as te, ft as ne, g as re, gt as ie, h as L, ht as R, i as ae, it as z, j as B, k as oe, l as se, lt as ce, m as le, mt as V, n as ue, nt as de, o as fe, ot as H, p as pe, pt as me, q as U, r as W, s as he, st as ge, t as _e, tt as ve, u as ye, ut as be, v as xe, vt as Se, w as Ce, x as we, y as Te } from "../container-AvHx8Kzz.js";
|
|
3
3
|
import * as G from "react";
|
|
4
4
|
import K, { Component as Ee, createElement as De, useId as Oe } from "react";
|
|
5
5
|
import { createRoot as ke } from "react-dom/client";
|
|
@@ -4486,7 +4486,7 @@ var la = class extends G.Component {
|
|
|
4486
4486
|
}
|
|
4487
4487
|
}, Aa = Object.freeze({
|
|
4488
4488
|
name: "@pie-element/graphing",
|
|
4489
|
-
version: "11.0.6
|
|
4489
|
+
version: "11.0.6"
|
|
4490
4490
|
});
|
|
4491
4491
|
//#endregion
|
|
4492
4492
|
export { ka as default, Aa as piePackage };
|
|
@@ -172,7 +172,7 @@ var Tt;
|
|
|
172
172
|
function Et() {
|
|
173
173
|
return Tt;
|
|
174
174
|
}
|
|
175
|
-
var Dt = import("./mathjax-
|
|
175
|
+
var Dt = import("./mathjax-DqXi3q4c-CEHQvcjy.js");
|
|
176
176
|
Dt.catch(() => {});
|
|
177
177
|
async function Ot(e, t) {
|
|
178
178
|
let { createMathJax: n } = await Dt;
|
|
@@ -871,25 +871,7 @@ function ur(e) {
|
|
|
871
871
|
function dr(e) {
|
|
872
872
|
for (let t of e.querySelectorAll("mjx-container")) ur(t);
|
|
873
873
|
}
|
|
874
|
-
var fr =
|
|
875
|
-
function hr(e, t) {
|
|
876
|
-
if (typeof window > "u") return;
|
|
877
|
-
let n = globalThis;
|
|
878
|
-
n[mr] ??= {
|
|
879
|
-
logged: !1,
|
|
880
|
-
conditions: []
|
|
881
|
-
};
|
|
882
|
-
let r = n[mr];
|
|
883
|
-
if (r.conditions.includes(e)) return;
|
|
884
|
-
r.conditions.push(e);
|
|
885
|
-
let i = `[math-rendering] Unsupported page (${e}): ${t}. PIE supports one MathJax major version per page; with MathJax 3 and 4 on one page, math rendering is best effort and may break. See ${fr}`;
|
|
886
|
-
r.logged || (r.logged = !0, console.error(i)), window.dispatchEvent(new CustomEvent(pr, { detail: {
|
|
887
|
-
condition: e,
|
|
888
|
-
message: i,
|
|
889
|
-
docsUrl: fr
|
|
890
|
-
} }));
|
|
891
|
-
}
|
|
892
|
-
var gr = {
|
|
874
|
+
var fr = {
|
|
893
875
|
parallelogram: "\\lower.2em{\\Huge\\unicode{x25B1}}",
|
|
894
876
|
overarc: "\\overparen",
|
|
895
877
|
napprox: "\\not\\approx",
|
|
@@ -897,36 +879,54 @@ var gr = {
|
|
|
897
879
|
abs: ["\\left|#1\\right|", 1],
|
|
898
880
|
perpendicular: "\\perp",
|
|
899
881
|
divide: "\\div"
|
|
900
|
-
},
|
|
882
|
+
}, pr = /\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/, mr = /\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/, hr = /\\embed\{newLine\}\[\]/g, gr = [
|
|
901
883
|
["$$", "$$"],
|
|
902
884
|
["$", "$"],
|
|
903
885
|
["\\[", "\\]"],
|
|
904
886
|
["\\(", "\\)"]
|
|
905
|
-
]
|
|
887
|
+
];
|
|
888
|
+
function _r(e) {
|
|
889
|
+
for (let [t, n] of gr) if (e.startsWith(t) && e.endsWith(n)) return e.substring(t.length, e.length - n.length);
|
|
890
|
+
return e;
|
|
891
|
+
}
|
|
892
|
+
function vr(e) {
|
|
893
|
+
return `\\(${_r(e.includes("\\displaystyle") ? e.replace("\\displaystyle", "").trim() : e)}\\)`.replace(hr, "\\newline ");
|
|
894
|
+
}
|
|
895
|
+
var yr = "mathjax_ignore", br = "mathjax_process", xr = "https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page", Sr = "pie-mathjax-version-conflict", Cr = Symbol.for("@pie-element/shared-math-rendering-mathjax/unsupported-page");
|
|
896
|
+
function wr(e, t) {
|
|
897
|
+
if (typeof window > "u") return;
|
|
898
|
+
let n = globalThis;
|
|
899
|
+
n[Cr] ??= {
|
|
900
|
+
logged: !1,
|
|
901
|
+
conditions: []
|
|
902
|
+
};
|
|
903
|
+
let r = n[Cr];
|
|
904
|
+
if (r.conditions.includes(e)) return;
|
|
905
|
+
r.conditions.push(e);
|
|
906
|
+
let i = `[math-rendering] Unsupported page (${e}): ${t}. PIE supports one MathJax major version per page; with MathJax 3 and 4 on one page, math rendering is best effort and may break. See ${xr}`;
|
|
907
|
+
r.logged || (r.logged = !0, console.error(i)), window.dispatchEvent(new CustomEvent(Sr, { detail: {
|
|
908
|
+
condition: e,
|
|
909
|
+
message: i,
|
|
910
|
+
docsUrl: xr
|
|
911
|
+
} }));
|
|
912
|
+
}
|
|
913
|
+
var Tr = "[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)", Er = Symbol.for("@pie-element/shared-math-rendering-mathjax/loading"), Dr = "MJX-CHTML-styles", Or = "PIE-MJX-SVG-styles", kr = "PIE-MathJax-Menu-Settings", Ar = { "mjx-container[overflow=\"linebreak\"][display]": {
|
|
906
914
|
overflow: "auto clip",
|
|
907
915
|
"min-width": "initial !important"
|
|
908
|
-
} },
|
|
909
|
-
function
|
|
916
|
+
} }, jr = 200, Mr = 201, Nr = 202;
|
|
917
|
+
function Pr(e) {
|
|
910
918
|
let t = [...e.matches("mjx-container") ? [e] : [], ...e.querySelectorAll("mjx-container")];
|
|
911
919
|
for (let e of t) for (let t of [e, ...e.querySelectorAll("[data-latex],[data-latex-item]")]) t.removeAttribute("data-latex"), t.removeAttribute("data-latex-item");
|
|
912
920
|
}
|
|
913
|
-
function jr(e) {
|
|
914
|
-
for (let [t, n] of xr) if (e.startsWith(t) && e.endsWith(n)) return e.substring(t.length, e.length - n.length);
|
|
915
|
-
return e;
|
|
916
|
-
}
|
|
917
|
-
function Mr(e) {
|
|
918
|
-
return jr(e.includes("\\displaystyle") ? e.replace("\\displaystyle", "").trim() : e);
|
|
919
|
-
}
|
|
920
|
-
var Nr = "mathjax_ignore", Pr = "mathjax_process";
|
|
921
921
|
function Fr(e, t) {
|
|
922
|
-
let n = e.closest(`.${
|
|
923
|
-
return n !== null && t.contains(n) && !n.classList.contains(
|
|
922
|
+
let n = e.closest(`.${yr}, .${br}`);
|
|
923
|
+
return n !== null && t.contains(n) && !n.classList.contains("mathjax_process");
|
|
924
924
|
}
|
|
925
925
|
function Ir(e) {
|
|
926
926
|
for (let t of e.querySelectorAll("[data-latex]")) {
|
|
927
927
|
if (t.dataset.mathHandled || t.closest("mjx-container") || Fr(t, e)) continue;
|
|
928
928
|
let n = t.textContent;
|
|
929
|
-
n && (t.textContent =
|
|
929
|
+
n && (t.textContent = vr(n), t.dataset.mathHandled = "true");
|
|
930
930
|
}
|
|
931
931
|
}
|
|
932
932
|
function Lr(e) {
|
|
@@ -934,7 +934,7 @@ function Lr(e) {
|
|
|
934
934
|
}
|
|
935
935
|
function Rr(e, t) {
|
|
936
936
|
for (let t of e.querySelectorAll("math")) if (!t.closest("mjx-assistive-mml")) return !0;
|
|
937
|
-
return (t ?
|
|
937
|
+
return (t ? mr : pr).test(e.textContent ?? "");
|
|
938
938
|
}
|
|
939
939
|
function zr(e) {
|
|
940
940
|
return new Promise((t, n) => {
|
|
@@ -951,10 +951,10 @@ function zr(e) {
|
|
|
951
951
|
typeset: !1,
|
|
952
952
|
ready: () => {
|
|
953
953
|
let e = Et(), r = e?.startup, i = Br(e);
|
|
954
|
-
i && (Vr(e), Hr(e, s.speechLocales), pt(e?._?.a11y?.sre_ts?.locales, s.speechLocales)), r?.defaultReady?.(), i && (Ur(r?.document), Wr(r?.document), r?.document?.addStyles?.(
|
|
954
|
+
i && (Vr(e), Hr(e, s.speechLocales), pt(e?._?.a11y?.sre_ts?.locales, s.speechLocales)), r?.defaultReady?.(), i && (Ur(r?.document), Wr(r?.document), r?.document?.addStyles?.(Ar), xt(r?.document)), Promise.resolve(r?.promise).then(() => t(), n);
|
|
955
955
|
}
|
|
956
956
|
},
|
|
957
|
-
tex: { macros: { ...
|
|
957
|
+
tex: { macros: { ...fr } },
|
|
958
958
|
output: { displayOverflow: "linebreak" },
|
|
959
959
|
options: {
|
|
960
960
|
enableMenu: i,
|
|
@@ -966,7 +966,7 @@ function zr(e) {
|
|
|
966
966
|
a11y: { inTabOrder: c }
|
|
967
967
|
}
|
|
968
968
|
};
|
|
969
|
-
r && l.tex && (console.warn(
|
|
969
|
+
r && l.tex && (console.warn(Tr), l.tex.inlineMath = [["$", "$"], ["\\(", "\\)"]], l.tex.processEscapes = !0), a || (l.chtml = { fontURL: "" });
|
|
970
970
|
let u = mt(s.speechLocales);
|
|
971
971
|
u && l.options && (l.options.sre = { locale: u }), Ot(l, {
|
|
972
972
|
...s,
|
|
@@ -983,18 +983,18 @@ function Vr(e) {
|
|
|
983
983
|
let t = e?._?.output, n = t?.chtml_ts?.CHTML;
|
|
984
984
|
n && (n.STYLESHEETID = Nt);
|
|
985
985
|
let r = t?.svg_ts?.SVG;
|
|
986
|
-
r && (r.STYLESHEETID =
|
|
986
|
+
r && (r.STYLESHEETID = Or);
|
|
987
987
|
}
|
|
988
988
|
function Hr(e, t) {
|
|
989
989
|
let n = e?._?.ui?.menu?.Menu?.Menu;
|
|
990
990
|
if (n) {
|
|
991
|
-
n.MENU_STORAGE =
|
|
991
|
+
n.MENU_STORAGE = kr;
|
|
992
992
|
try {
|
|
993
|
-
let e = localStorage.getItem(
|
|
993
|
+
let e = localStorage.getItem(kr);
|
|
994
994
|
if (!e) return;
|
|
995
995
|
let { assistiveMml: n, locale: r, ...i } = JSON.parse(e), a = r === void 0 || !t || t.has(r);
|
|
996
996
|
if (n === void 0 && a) return;
|
|
997
|
-
a && r !== void 0 && (i.locale = r), Object.keys(i).length ? localStorage.setItem(
|
|
997
|
+
a && r !== void 0 && (i.locale = r), Object.keys(i).length ? localStorage.setItem(kr, JSON.stringify(i)) : localStorage.removeItem(kr);
|
|
998
998
|
} catch {}
|
|
999
999
|
}
|
|
1000
1000
|
}
|
|
@@ -1002,23 +1002,23 @@ function Ur(e) {
|
|
|
1002
1002
|
if (!e) return;
|
|
1003
1003
|
let t = /* @__PURE__ */ new WeakSet(), n = (e) => {
|
|
1004
1004
|
let n = e.typesetRoot;
|
|
1005
|
-
!n || t.has(n) || (
|
|
1005
|
+
!n || t.has(n) || (Pr(n), t.add(n));
|
|
1006
1006
|
};
|
|
1007
|
-
e.addRenderAction?.("pie-strip-latex",
|
|
1007
|
+
e.addRenderAction?.("pie-strip-latex", Mr, (e) => {
|
|
1008
1008
|
for (let t of e.math ?? []) n(t);
|
|
1009
1009
|
return !1;
|
|
1010
1010
|
}, (e) => {
|
|
1011
1011
|
let t = e.typesetRoot;
|
|
1012
|
-
return t &&
|
|
1012
|
+
return t && Pr(t), !1;
|
|
1013
1013
|
});
|
|
1014
1014
|
let r = e.outputJax?.chtmlStyles;
|
|
1015
|
-
r?.id ===
|
|
1015
|
+
r?.id === Dr && (r.id = Nt), qr();
|
|
1016
1016
|
}
|
|
1017
1017
|
function Wr(e) {
|
|
1018
1018
|
let t = (e) => {
|
|
1019
1019
|
e.typesetRoot && ur(e.typesetRoot);
|
|
1020
1020
|
};
|
|
1021
|
-
e?.addRenderAction?.("pie-name-math",
|
|
1021
|
+
e?.addRenderAction?.("pie-name-math", Nr, (e) => {
|
|
1022
1022
|
for (let n of e.math ?? []) t(n);
|
|
1023
1023
|
return !1;
|
|
1024
1024
|
}, (e) => (t(e), !1));
|
|
@@ -1027,7 +1027,7 @@ function Gr(e) {
|
|
|
1027
1027
|
return e instanceof HTMLStyleElement && Pt.includes(e.id);
|
|
1028
1028
|
}
|
|
1029
1029
|
function Kr(e) {
|
|
1030
|
-
|
|
1030
|
+
wr("foreign-output-stylesheet", `another MathJax added <style id="${e.id}"> to <head>`);
|
|
1031
1031
|
}
|
|
1032
1032
|
function qr() {
|
|
1033
1033
|
let e = document.head, t = [...e.children].find(Gr);
|
|
@@ -1049,7 +1049,7 @@ function qr() {
|
|
|
1049
1049
|
function Jr(e) {
|
|
1050
1050
|
let t = e?.math;
|
|
1051
1051
|
if (!t?.remove) return;
|
|
1052
|
-
let n = [...t].filter((e) => (e.state?.() ?? 0) >=
|
|
1052
|
+
let n = [...t].filter((e) => (e.state?.() ?? 0) >= jr && e.typesetRoot?.isConnected === !1);
|
|
1053
1053
|
if (n.length !== 0) {
|
|
1054
1054
|
for (let e of [...n].reverse()) e.clear?.();
|
|
1055
1055
|
t.remove(...n);
|
|
@@ -1077,8 +1077,8 @@ function Zr(e) {
|
|
|
1077
1077
|
});
|
|
1078
1078
|
}
|
|
1079
1079
|
function Qr(e) {
|
|
1080
|
-
let t = kt, n = t[
|
|
1081
|
-
return n || (n = Zr(e), t[
|
|
1080
|
+
let t = kt, n = t[Er];
|
|
1081
|
+
return n || (n = Zr(e), t[Er] = n), n;
|
|
1082
1082
|
}
|
|
1083
1083
|
function $r(e = {}) {
|
|
1084
1084
|
let t = e.useSingleDollar ?? !1;
|
|
@@ -1099,7 +1099,7 @@ function $r(e = {}) {
|
|
|
1099
1099
|
} catch (e) {
|
|
1100
1100
|
throw i.typesetClear?.([n]), e;
|
|
1101
1101
|
}
|
|
1102
|
-
|
|
1102
|
+
Pr(n), dr(n);
|
|
1103
1103
|
}
|
|
1104
1104
|
};
|
|
1105
1105
|
}
|
|
@@ -1150,7 +1150,7 @@ var fi = async (e) => {
|
|
|
1150
1150
|
let n = ci()?.wrapMath?.(e, t);
|
|
1151
1151
|
if (n != null) return n;
|
|
1152
1152
|
let [r, i] = t === "dollar" || t === "double_dollar" ? ["$", "$"] : ["\\(", "\\)"];
|
|
1153
|
-
return `${r}${
|
|
1153
|
+
return `${r}${_r(e)}${i}`;
|
|
1154
1154
|
}, mi = (e) => {
|
|
1155
1155
|
let t = e.trim();
|
|
1156
1156
|
return t.startsWith("\\[") && t.endsWith("\\]") ? {
|
|
@@ -41074,4 +41074,4 @@ var r6 = n6, i6 = t6((e) => ({ marks: e.marks.present }), (e) => ({
|
|
|
41074
41074
|
//#endregion
|
|
41075
41075
|
export { h_ as $, rx as A, Oy as B, hC as C, dt as Ct, Sx as D, Ex as E, jb as F, Lv as G, Hv as H, sb as I, pv as J, Pv as K, rb as L, Kb as M, Gb as N, xx as O, Vb as P, x_ as Q, By as R, bw as S, Qe as St, Ox as T, Bv as U, cy as V, zv as W, Q_ as X, iv as Y, T_ as Z, wI as _, _i as _t, b4 as a, sd as at, oF as b, Ct as bt, uz as c, Qu as ct, QR as d, Bl as dt, p_ as et, qL as f, al as ft, kI as g, Mo as gt, SL as h, V as ht, w4 as i, G as it, qb as j, px as k, oz as l, Xu as lt, PL as m, vc as mt, M4 as n, n_ as nt, sU as o, U as ot, RL as p, yc as pt, kv as q, j4 as r, Kp as rt, vH as s, ed as st, a6 as t, m_ as tt, rz as u, Ul as ut, vI as v, fi as vt, Qx as w, Tw as x, _t as xt, tI as y, wt as yt, zy as z };
|
|
41076
41076
|
|
|
41077
|
-
//# sourceMappingURL=container-
|
|
41077
|
+
//# sourceMappingURL=container-AvHx8Kzz.js.map
|