@pie-element/complex-rubric 8.0.6-next.20261018193205 → 8.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/controller/index.js +1 -1
- package/dist/browser/delivery/index.js +3 -3
- package/dist/browser/{delivery-C-sl06ld.js → delivery-Do0IBXXS.js} +2 -2
- package/dist/browser/{delivery-C-sl06ld.js.map → delivery-Do0IBXXS.js.map} +1 -1
- package/dist/browser/editor-runtime/author/index.js +2 -2
- package/dist/browser/editor-runtime/controller/index.js +1 -1
- package/dist/browser/editor-runtime/delivery/index.js +3 -3
- package/dist/browser/editor-runtime/{delivery-Bdulo6V0.js → delivery-DXWdG924.js} +2 -2
- package/dist/browser/editor-runtime/{delivery-Bdulo6V0.js.map → delivery-DXWdG924.js.map} +1 -1
- package/dist/browser/editor-runtime/{mathjax-CptWnMbQ-BymmkoDr.js → mathjax-DqXi3q4c-iuQQkXxN.js} +3 -3
- package/dist/browser/editor-runtime/{mathjax-CptWnMbQ-BymmkoDr.js.map → mathjax-DqXi3q4c-iuQQkXxN.js.map} +1 -1
- package/dist/browser/editor-runtime/print/index.js +3 -3
- package/dist/browser/editor-runtime/{private-tags-Cyuf59bj.js → private-tags-CTyEVgLF.js} +56 -56
- package/dist/browser/editor-runtime/{private-tags-Cyuf59bj.js.map → private-tags-CTyEVgLF.js.map} +1 -1
- package/dist/browser/{mathjax-CptWnMbQ-ncPHVakS.js → mathjax-DqXi3q4c-BZrO4NBZ.js} +3 -3
- package/dist/browser/{mathjax-CptWnMbQ-ncPHVakS.js.map → mathjax-DqXi3q4c-BZrO4NBZ.js.map} +1 -1
- package/dist/browser/print/index.js +3 -3
- package/dist/browser/{private-tags-DZGoOM0n.js → private-tags-Cufh_k9w.js} +56 -56
- package/dist/browser/{private-tags-DZGoOM0n.js.map → private-tags-Cufh_k9w.js.map} +1 -1
- package/dist/index.iife.js +2 -2
- package/dist/private-tags.js +1 -1
- 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/module/print.js +32 -32
- package/module/print.js.map +1 -1
- package/package.json +11 -11
package/dist/private-tags.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var e = `--version-${((e) => e.trim().toLowerCase().replace(/[.+]/g, "-").replace(/[^0-9A-Za-z-]/g, "-").replace(/-{2,}/g, "-"))("8.0.6
|
|
1
|
+
var e = `--version-${((e) => e.trim().toLowerCase().replace(/[.+]/g, "-").replace(/[^0-9A-Za-z-]/g, "-").replace(/-{2,}/g, "-"))("8.0.6")}`, t = `complex-rubric-simple${e}`, n = `complex-rubric-multi-trait${e}`, r = `rubric-configure${e}`, i = `multi-trait-rubric-configure${e}`;
|
|
2
2
|
//#endregion
|
|
3
3
|
export { i as COMPLEX_RUBRIC_MULTI_TRAIT_CONFIGURE_TAG, n as COMPLEX_RUBRIC_MULTI_TRAIT_TAG, r as COMPLEX_RUBRIC_SIMPLE_CONFIGURE_TAG, t as COMPLEX_RUBRIC_SIMPLE_TAG };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://cdn.jsdelivr.net/npm/@pie-element/complex-rubric@8.0.6
|
|
3
|
+
"$id": "https://cdn.jsdelivr.net/npm/@pie-element/complex-rubric@8.0.6/dist/schemas/configuration.schema.json",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
6
6
|
"width": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://cdn.jsdelivr.net/npm/@pie-element/complex-rubric@8.0.6
|
|
3
|
+
"$id": "https://cdn.jsdelivr.net/npm/@pie-element/complex-rubric@8.0.6/dist/schemas/model.schema.json",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
6
6
|
"id": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://cdn.jsdelivr.net/npm/@pie-element/complex-rubric@8.0.6
|
|
3
|
+
"$id": "https://cdn.jsdelivr.net/npm/@pie-element/complex-rubric@8.0.6/dist/schemas/session.schema.json",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
6
6
|
"id": {
|
package/module/print.js
CHANGED
|
@@ -15481,36 +15481,36 @@ var v_ = {
|
|
|
15481
15481
|
abs: ["\\left|#1\\right|", 1],
|
|
15482
15482
|
perpendicular: "\\perp",
|
|
15483
15483
|
divide: "\\div"
|
|
15484
|
-
}, y_ =
|
|
15484
|
+
}, y_ = /\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/, b_ = /\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/, x_ = /\\embed\{newLine\}\[\]/g, S_ = [
|
|
15485
15485
|
["$$", "$$"],
|
|
15486
15486
|
["$", "$"],
|
|
15487
15487
|
["\\[", "\\]"],
|
|
15488
15488
|
["\\(", "\\)"]
|
|
15489
|
-
]
|
|
15489
|
+
];
|
|
15490
|
+
function C_(e) {
|
|
15491
|
+
for (let [t, n] of S_) if (e.startsWith(t) && e.endsWith(n)) return e.substring(t.length, e.length - n.length);
|
|
15492
|
+
return e;
|
|
15493
|
+
}
|
|
15494
|
+
function w_(e) {
|
|
15495
|
+
return `\\(${C_(e.includes("\\displaystyle") ? e.replace("\\displaystyle", "").trim() : e)}\\)`.replace(x_, "\\newline ");
|
|
15496
|
+
}
|
|
15497
|
+
var T_ = "mathjax_ignore", E_ = "mathjax_process", D_ = "[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)", O_ = Symbol.for("@pie-element/shared-math-rendering-mathjax/loading"), k_ = "MJX-CHTML-styles", A_ = "PIE-MJX-SVG-styles", j_ = "PIE-MathJax-Menu-Settings", M_ = { "mjx-container[overflow=\"linebreak\"][display]": {
|
|
15490
15498
|
overflow: "auto clip",
|
|
15491
15499
|
"min-width": "initial !important"
|
|
15492
|
-
} },
|
|
15493
|
-
function
|
|
15500
|
+
} }, N_ = 200, P_ = 201, F_ = 202;
|
|
15501
|
+
function I_(e) {
|
|
15494
15502
|
let t = [...e.matches("mjx-container") ? [e] : [], ...e.querySelectorAll("mjx-container")];
|
|
15495
15503
|
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");
|
|
15496
15504
|
}
|
|
15497
|
-
function N_(e) {
|
|
15498
|
-
for (let [t, n] of C_) if (e.startsWith(t) && e.endsWith(n)) return e.substring(t.length, e.length - n.length);
|
|
15499
|
-
return e;
|
|
15500
|
-
}
|
|
15501
|
-
function P_(e) {
|
|
15502
|
-
return N_(e.includes("\\displaystyle") ? e.replace("\\displaystyle", "").trim() : e);
|
|
15503
|
-
}
|
|
15504
|
-
var F_ = "mathjax_ignore", I_ = "mathjax_process";
|
|
15505
15505
|
function L_(e, t) {
|
|
15506
|
-
let n = e.closest(`.${
|
|
15507
|
-
return n !== null && t.contains(n) && !n.classList.contains(
|
|
15506
|
+
let n = e.closest(`.${T_}, .${E_}`);
|
|
15507
|
+
return n !== null && t.contains(n) && !n.classList.contains("mathjax_process");
|
|
15508
15508
|
}
|
|
15509
15509
|
function R_(e) {
|
|
15510
15510
|
for (let t of e.querySelectorAll("[data-latex]")) {
|
|
15511
15511
|
if (t.dataset.mathHandled || t.closest("mjx-container") || L_(t, e)) continue;
|
|
15512
15512
|
let n = t.textContent;
|
|
15513
|
-
n && (t.textContent =
|
|
15513
|
+
n && (t.textContent = w_(n), t.dataset.mathHandled = "true");
|
|
15514
15514
|
}
|
|
15515
15515
|
}
|
|
15516
15516
|
function z_(e) {
|
|
@@ -15518,7 +15518,7 @@ function z_(e) {
|
|
|
15518
15518
|
}
|
|
15519
15519
|
function B_(e, t) {
|
|
15520
15520
|
for (let t of e.querySelectorAll("math")) if (!t.closest("mjx-assistive-mml")) return !0;
|
|
15521
|
-
return (t ?
|
|
15521
|
+
return (t ? b_ : y_).test(e.textContent ?? "");
|
|
15522
15522
|
}
|
|
15523
15523
|
function V_(e) {
|
|
15524
15524
|
return new Promise((t, n) => {
|
|
@@ -15535,7 +15535,7 @@ function V_(e) {
|
|
|
15535
15535
|
typeset: !1,
|
|
15536
15536
|
ready: () => {
|
|
15537
15537
|
let e = jh(), r = e?.startup, i = H_(e);
|
|
15538
|
-
i && (U_(e), W_(e, s.speechLocales), xh(e?._?.a11y?.sre_ts?.locales, s.speechLocales)), r?.defaultReady?.(), i && (G_(r?.document), K_(r?.document), r?.document?.addStyles?.(
|
|
15538
|
+
i && (U_(e), W_(e, s.speechLocales), xh(e?._?.a11y?.sre_ts?.locales, s.speechLocales)), r?.defaultReady?.(), i && (G_(r?.document), K_(r?.document), r?.document?.addStyles?.(M_), __(r?.document)), Promise.resolve(r?.promise).then(() => t(), n);
|
|
15539
15539
|
}
|
|
15540
15540
|
},
|
|
15541
15541
|
tex: { macros: { ...v_ } },
|
|
@@ -15550,7 +15550,7 @@ function V_(e) {
|
|
|
15550
15550
|
a11y: { inTabOrder: c }
|
|
15551
15551
|
}
|
|
15552
15552
|
};
|
|
15553
|
-
r && l.tex && (console.warn(
|
|
15553
|
+
r && l.tex && (console.warn(D_), l.tex.inlineMath = [["$", "$"], ["\\(", "\\)"]], l.tex.processEscapes = !0), a || (l.chtml = { fontURL: "" });
|
|
15554
15554
|
let u = Sh(s.speechLocales);
|
|
15555
15555
|
u && l.options && (l.options.sre = { locale: u }), Nh(l, {
|
|
15556
15556
|
...s,
|
|
@@ -15567,18 +15567,18 @@ function U_(e) {
|
|
|
15567
15567
|
let t = e?._?.output, n = t?.chtml_ts?.CHTML;
|
|
15568
15568
|
n && (n.STYLESHEETID = Fh);
|
|
15569
15569
|
let r = t?.svg_ts?.SVG;
|
|
15570
|
-
r && (r.STYLESHEETID =
|
|
15570
|
+
r && (r.STYLESHEETID = A_);
|
|
15571
15571
|
}
|
|
15572
15572
|
function W_(e, t) {
|
|
15573
15573
|
let n = e?._?.ui?.menu?.Menu?.Menu;
|
|
15574
15574
|
if (n) {
|
|
15575
|
-
n.MENU_STORAGE =
|
|
15575
|
+
n.MENU_STORAGE = j_;
|
|
15576
15576
|
try {
|
|
15577
|
-
let e = localStorage.getItem(
|
|
15577
|
+
let e = localStorage.getItem(j_);
|
|
15578
15578
|
if (!e) return;
|
|
15579
15579
|
let { assistiveMml: n, locale: r, ...i } = JSON.parse(e), a = r === void 0 || !t || t.has(r);
|
|
15580
15580
|
if (n === void 0 && a) return;
|
|
15581
|
-
a && r !== void 0 && (i.locale = r), Object.keys(i).length ? localStorage.setItem(
|
|
15581
|
+
a && r !== void 0 && (i.locale = r), Object.keys(i).length ? localStorage.setItem(j_, JSON.stringify(i)) : localStorage.removeItem(j_);
|
|
15582
15582
|
} catch {}
|
|
15583
15583
|
}
|
|
15584
15584
|
}
|
|
@@ -15586,23 +15586,23 @@ function G_(e) {
|
|
|
15586
15586
|
if (!e) return;
|
|
15587
15587
|
let t = /* @__PURE__ */ new WeakSet(), n = (e) => {
|
|
15588
15588
|
let n = e.typesetRoot;
|
|
15589
|
-
!n || t.has(n) || (
|
|
15589
|
+
!n || t.has(n) || (I_(n), t.add(n));
|
|
15590
15590
|
};
|
|
15591
|
-
e.addRenderAction?.("pie-strip-latex",
|
|
15591
|
+
e.addRenderAction?.("pie-strip-latex", P_, (e) => {
|
|
15592
15592
|
for (let t of e.math ?? []) n(t);
|
|
15593
15593
|
return !1;
|
|
15594
15594
|
}, (e) => {
|
|
15595
15595
|
let t = e.typesetRoot;
|
|
15596
|
-
return t &&
|
|
15596
|
+
return t && I_(t), !1;
|
|
15597
15597
|
});
|
|
15598
15598
|
let r = e.outputJax?.chtmlStyles;
|
|
15599
|
-
r?.id ===
|
|
15599
|
+
r?.id === k_ && (r.id = Fh), Y_();
|
|
15600
15600
|
}
|
|
15601
15601
|
function K_(e) {
|
|
15602
15602
|
let t = (e) => {
|
|
15603
15603
|
e.typesetRoot && f_(e.typesetRoot);
|
|
15604
15604
|
};
|
|
15605
|
-
e?.addRenderAction?.("pie-name-math",
|
|
15605
|
+
e?.addRenderAction?.("pie-name-math", F_, (e) => {
|
|
15606
15606
|
for (let n of e.math ?? []) t(n);
|
|
15607
15607
|
return !1;
|
|
15608
15608
|
}, (e) => (t(e), !1));
|
|
@@ -15633,7 +15633,7 @@ function Y_() {
|
|
|
15633
15633
|
function X_(e) {
|
|
15634
15634
|
let t = e?.math;
|
|
15635
15635
|
if (!t?.remove) return;
|
|
15636
|
-
let n = [...t].filter((e) => (e.state?.() ?? 0) >=
|
|
15636
|
+
let n = [...t].filter((e) => (e.state?.() ?? 0) >= N_ && e.typesetRoot?.isConnected === !1);
|
|
15637
15637
|
if (n.length !== 0) {
|
|
15638
15638
|
for (let e of [...n].reverse()) e.clear?.();
|
|
15639
15639
|
t.remove(...n);
|
|
@@ -15661,8 +15661,8 @@ function $_(e) {
|
|
|
15661
15661
|
});
|
|
15662
15662
|
}
|
|
15663
15663
|
function ev(e) {
|
|
15664
|
-
let t = Ph, n = t[
|
|
15665
|
-
return n || (n = $_(e), t[
|
|
15664
|
+
let t = Ph, n = t[O_];
|
|
15665
|
+
return n || (n = $_(e), t[O_] = n), n;
|
|
15666
15666
|
}
|
|
15667
15667
|
function tv(e = {}) {
|
|
15668
15668
|
let t = e.useSingleDollar ?? !1;
|
|
@@ -15684,7 +15684,7 @@ function tv(e = {}) {
|
|
|
15684
15684
|
} catch (e) {
|
|
15685
15685
|
throw a.typesetClear?.([n]), e;
|
|
15686
15686
|
}
|
|
15687
|
-
|
|
15687
|
+
I_(n), p_(n);
|
|
15688
15688
|
}
|
|
15689
15689
|
};
|
|
15690
15690
|
}
|
|
@@ -20279,7 +20279,7 @@ var dS = class extends HTMLElement {
|
|
|
20279
20279
|
SIMPLE_RUBRIC: "simpleRubric",
|
|
20280
20280
|
MULTI_TRAIT_RUBRIC: "multiTraitRubric",
|
|
20281
20281
|
RUBRICLESS: "rubricless"
|
|
20282
|
-
}, pS = `--version-${((e) => e.trim().toLowerCase().replace(/[.+]/g, "-").replace(/[^0-9A-Za-z-]/g, "-").replace(/-{2,}/g, "-"))("8.0.6
|
|
20282
|
+
}, pS = `--version-${((e) => e.trim().toLowerCase().replace(/[.+]/g, "-").replace(/[^0-9A-Za-z-]/g, "-").replace(/-{2,}/g, "-"))("8.0.6")}`, mS = `complex-rubric-simple${pS}`, hS = `complex-rubric-multi-trait${pS}`;
|
|
20283
20283
|
`${pS}`, `${pS}`;
|
|
20284
20284
|
//#endregion
|
|
20285
20285
|
//#region src/print/index.ts
|