@pie-element/math-inline 12.1.1-next.20 → 12.1.1-next.22
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/author/general-config-block.js +71 -71
- package/dist/browser/author/index.js +15 -4
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/delivery/index.js +66 -16
- package/dist/browser/delivery/index.js.map +1 -1
- package/dist/delivery/index.js +9 -10
- package/dist/delivery/main.js +125 -125
- package/dist/index.iife.js +44 -44
- package/dist/print/index.js +6 -6
- package/package.json +9 -16
|
@@ -1,9 +1,59 @@
|
|
|
1
|
-
import { p as e,
|
|
2
|
-
import { t as
|
|
3
|
-
import
|
|
4
|
-
import { createRoot as
|
|
1
|
+
import { p as e, y as t } from "../dist--pvq7WNe.js";
|
|
2
|
+
import { t as n } from "../main-m39H1gPw.js";
|
|
3
|
+
import r from "react";
|
|
4
|
+
import { createRoot as i } from "react-dom/client";
|
|
5
5
|
//#region ../../shared/player-events/dist/index.js
|
|
6
|
-
var
|
|
6
|
+
var a = /* @__PURE__ */ t(e(), 1), o = "commitPendingSession", s = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
function c(e, t) {
|
|
8
|
+
let n = s.get(e);
|
|
9
|
+
n || (n = /* @__PURE__ */ new Set(), s.set(e, n)), n.add(t);
|
|
10
|
+
}
|
|
11
|
+
function l(e) {
|
|
12
|
+
return Object.getOwnPropertyDescriptor(e, o) !== void 0;
|
|
13
|
+
}
|
|
14
|
+
function u(e) {
|
|
15
|
+
if (l(e)) return;
|
|
16
|
+
let t = e[o];
|
|
17
|
+
Object.defineProperty(e, o, {
|
|
18
|
+
value: () => {
|
|
19
|
+
if (typeof t == "function") try {
|
|
20
|
+
t.call(e);
|
|
21
|
+
} catch {}
|
|
22
|
+
f(e);
|
|
23
|
+
},
|
|
24
|
+
configurable: !0,
|
|
25
|
+
enumerable: !1,
|
|
26
|
+
writable: !0
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function d(e, t, n = {}) {
|
|
30
|
+
let r = n.delayMs, i = typeof r == "function" ? r : () => r ?? 0, a = n.maxWaitMs, o = null, s = null, l = !1, d = () => {
|
|
31
|
+
o !== null && (clearTimeout(o), o = null), s !== null && (clearTimeout(s), s = null);
|
|
32
|
+
}, f = () => {
|
|
33
|
+
d(), l && (l = !1, t());
|
|
34
|
+
}, p = {
|
|
35
|
+
notify() {
|
|
36
|
+
l = !0, o !== null && clearTimeout(o), o = setTimeout(f, Math.max(0, i())), a !== void 0 && s === null && (s = setTimeout(f, Math.max(0, a)));
|
|
37
|
+
},
|
|
38
|
+
flush() {
|
|
39
|
+
if (!l) {
|
|
40
|
+
d();
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
try {
|
|
44
|
+
f();
|
|
45
|
+
} catch (e) {
|
|
46
|
+
console.warn("[session-notifier] a committed session-changed dispatch threw", e);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
return c(e, p), u(e), p;
|
|
51
|
+
}
|
|
52
|
+
function f(e) {
|
|
53
|
+
let t = s.get(e);
|
|
54
|
+
if (t) for (let e of [...t]) e.flush();
|
|
55
|
+
}
|
|
56
|
+
var p = class e extends CustomEvent {
|
|
7
57
|
static {
|
|
8
58
|
this.TYPE = "model-set";
|
|
9
59
|
}
|
|
@@ -18,7 +68,7 @@ var o = /* @__PURE__ */ n(e(), 1), s = class e extends CustomEvent {
|
|
|
18
68
|
}
|
|
19
69
|
}), this.component = t, this.complete = n;
|
|
20
70
|
}
|
|
21
|
-
},
|
|
71
|
+
}, m = class e extends CustomEvent {
|
|
22
72
|
static {
|
|
23
73
|
this.TYPE = "session-changed";
|
|
24
74
|
}
|
|
@@ -32,11 +82,11 @@ var o = /* @__PURE__ */ n(e(), 1), s = class e extends CustomEvent {
|
|
|
32
82
|
}
|
|
33
83
|
}), this.component = t, this.complete = n;
|
|
34
84
|
}
|
|
35
|
-
},
|
|
85
|
+
}, h = { configuration: {} }, g = (0, a.default)("pie-ui:math-inline"), _ = class extends HTMLElement {
|
|
36
86
|
constructor() {
|
|
37
|
-
super(), this._root = null, this._configuration =
|
|
38
|
-
this.dispatchEvent(new
|
|
39
|
-
}, 1e3);
|
|
87
|
+
super(), this._root = null, this._configuration = h.configuration, this._sessionNotifier = d(this, () => {
|
|
88
|
+
this.dispatchEvent(new m(this.tagName.toLowerCase(), !0));
|
|
89
|
+
}, { delayMs: 1e3 }), this.sessionChangedEventCaller = () => this._sessionNotifier.notify();
|
|
40
90
|
}
|
|
41
91
|
setLangAttribute() {
|
|
42
92
|
let e = this._model && typeof this._model.language ? this._model.language : "", t = e ? e.slice(0, 2) : "en";
|
|
@@ -45,7 +95,7 @@ var o = /* @__PURE__ */ n(e(), 1), s = class e extends CustomEvent {
|
|
|
45
95
|
n && n.setAttribute("lang", t);
|
|
46
96
|
}
|
|
47
97
|
set model(e) {
|
|
48
|
-
this._model = e, this.dispatchEvent(new
|
|
98
|
+
this._model = e, this.dispatchEvent(new p(this._model, !0, !!this._model)), this.setLangAttribute(), this._render();
|
|
49
99
|
}
|
|
50
100
|
set session(e) {
|
|
51
101
|
this._session = e, this._render();
|
|
@@ -59,26 +109,26 @@ var o = /* @__PURE__ */ n(e(), 1), s = class e extends CustomEvent {
|
|
|
59
109
|
sessionChanged(e) {
|
|
60
110
|
Object.keys(e).map((t) => {
|
|
61
111
|
this._session[t] = e[t];
|
|
62
|
-
}), this.sessionChangedEventCaller(),
|
|
112
|
+
}), this.sessionChangedEventCaller(), g("session: ", this._session);
|
|
63
113
|
}
|
|
64
114
|
connectedCallback() {
|
|
65
115
|
this.setAttribute("aria-label", "Math Response Question"), this.setAttribute("role", "region"), this._render();
|
|
66
116
|
}
|
|
67
117
|
_render() {
|
|
68
118
|
if (!this._model || !this._session) return;
|
|
69
|
-
let e =
|
|
119
|
+
let e = r.createElement(n, {
|
|
70
120
|
model: this._model,
|
|
71
121
|
session: this._session,
|
|
72
122
|
configuration: this._configuration,
|
|
73
123
|
onSessionChange: this.sessionChanged.bind(this)
|
|
74
124
|
});
|
|
75
|
-
this._root ||=
|
|
125
|
+
this._root ||= i(this), this._root.render(e);
|
|
76
126
|
}
|
|
77
127
|
disconnectedCallback() {
|
|
78
|
-
this._root &&= (this._root.unmount(), null);
|
|
128
|
+
f(this), this._root &&= (this._root.unmount(), null);
|
|
79
129
|
}
|
|
80
130
|
};
|
|
81
131
|
//#endregion
|
|
82
|
-
export {
|
|
132
|
+
export { n as Component, _ as default };
|
|
83
133
|
|
|
84
134
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../../shared/player-events/dist/index.js","../../../src/delivery/index.ts"],"sourcesContent":["//#region src/
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../shared/player-events/dist/index.js","../../../src/delivery/index.ts"],"sourcesContent":["//#region src/session-notifier.ts\nvar e = \"commitPendingSession\", t = /* @__PURE__ */ new WeakMap();\nfunction n(e, n) {\n\tlet r = t.get(e);\n\tr || (r = /* @__PURE__ */ new Set(), t.set(e, r)), r.add(n);\n}\nfunction r(t) {\n\treturn Object.getOwnPropertyDescriptor(t, e) !== void 0;\n}\nfunction i(t) {\n\tif (r(t)) return;\n\tlet n = t[e];\n\tObject.defineProperty(t, e, {\n\t\tvalue: () => {\n\t\t\tif (typeof n == \"function\") try {\n\t\t\t\tn.call(t);\n\t\t\t} catch {}\n\t\t\to(t);\n\t\t},\n\t\tconfigurable: !0,\n\t\tenumerable: !1,\n\t\twritable: !0\n\t});\n}\nfunction a(e, t, r = {}) {\n\tlet a = r.delayMs, o = typeof a == \"function\" ? a : () => a ?? 0, s = r.maxWaitMs, c = null, l = null, u = !1, d = () => {\n\t\tc !== null && (clearTimeout(c), c = null), l !== null && (clearTimeout(l), l = null);\n\t}, f = () => {\n\t\td(), u && (u = !1, t());\n\t}, p = {\n\t\tnotify() {\n\t\t\tu = !0, c !== null && clearTimeout(c), c = setTimeout(f, Math.max(0, o())), s !== void 0 && l === null && (l = setTimeout(f, Math.max(0, s)));\n\t\t},\n\t\tflush() {\n\t\t\tif (!u) {\n\t\t\t\td();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tf();\n\t\t\t} catch (e) {\n\t\t\t\tconsole.warn(\"[session-notifier] a committed session-changed dispatch threw\", e);\n\t\t\t}\n\t\t}\n\t};\n\treturn n(e, p), i(e), p;\n}\nfunction o(e) {\n\tlet n = t.get(e);\n\tif (n) for (let e of [...n]) e.flush();\n}\n//#endregion\n//#region src/index.ts\nvar s = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"model-set\";\n\t}\n\tconstructor(t, n, r) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tcomposed: !0,\n\t\t\tdetail: {\n\t\t\t\tcomplete: n,\n\t\t\t\tcomponent: t,\n\t\t\t\thasModel: r\n\t\t\t}\n\t\t}), this.component = t, this.complete = n;\n\t}\n}, c = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"session-changed\";\n\t}\n\tconstructor(t, n) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tcomposed: !0,\n\t\t\tdetail: {\n\t\t\t\tcomplete: n,\n\t\t\t\tcomponent: t\n\t\t\t}\n\t\t}), this.component = t, this.complete = n;\n\t}\n};\n//#endregion\nexport { s as ModelSetEvent, e as SESSION_COMMIT_METHOD, c as SessionChangedEvent, a as createSessionNotifier, o as flushSessionNotifiers };\n","// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/math-inline/src/index.js\n * @auto-generated\n *\n * This file is automatically synced from pie-elements and converted to TypeScript.\n * Manual edits will be overwritten on next sync.\n * To make changes, edit the upstream JavaScript file and run sync again.\n */\n\nimport React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport debug from 'debug';\nimport {\n ModelSetEvent,\n SessionChangedEvent,\n createSessionNotifier,\n flushSessionNotifiers,\n} from '@pie-element/shared-player-events';\n\n// Inlined from configure/lib/defaults (configure/ not synced - ESM-incompatible)\nconst defaults = {\n configuration: {\n // Minimal configuration for student-facing UI\n // Full authoring configuration is only needed in the configure package\n } as any\n};;\nimport Main from './main.js';\n\nconst log = debug('pie-ui:math-inline');\n\nexport { Main as Component };\n\nexport default class MathInline extends HTMLElement {\n constructor() {\n super();\n this._root = null;\n this._configuration = defaults.configuration;\n // Session state is already written synchronously in `sessionChanged`; only\n // this dispatch is coalesced, and `disconnectedCallback` flushes it.\n this._sessionNotifier = createSessionNotifier(\n this,\n () => {\n this.dispatchEvent(new SessionChangedEvent(this.tagName.toLowerCase(), true));\n },\n { delayMs: 1000 },\n );\n this.sessionChangedEventCaller = () => this._sessionNotifier.notify();\n }\n\n setLangAttribute() {\n const language = this._model && typeof this._model.language ? this._model.language : '';\n const lang = language ? language.slice(0, 2) : 'en';\n this.setAttribute('lang', lang);\n\n // set the lang attribute for the nearest parent div with class 'player-container' for MPI items as per PD-2483\n const playerContainer = this.closest('.player-container');\n if (playerContainer) {\n playerContainer.setAttribute('lang', lang);\n }\n }\n\n set model(m) {\n this._model = m;\n this.dispatchEvent(new ModelSetEvent(this._model, true, !!this._model));\n this.setLangAttribute();\n this._render();\n }\n\n set session(s) {\n this._session = s;\n this._render();\n }\n\n get session() {\n return this._session;\n }\n\n set configuration(c) {\n this._configuration = c;\n this._render();\n }\n\n sessionChanged(s) {\n Object.keys(s).map((key) => {\n this._session[key] = s[key];\n });\n\n this.sessionChangedEventCaller();\n log('session: ', this._session);\n }\n\n connectedCallback() {\n this.setAttribute('aria-label', 'Math Response Question');\n this.setAttribute('role', 'region');\n\n this._render();\n }\n\n _render() {\n if (!this._model || !this._session) {\n return;\n }\n\n const el = React.createElement(Main, {\n model: this._model,\n session: this._session,\n configuration: this._configuration,\n onSessionChange: this.sessionChanged.bind(this),\n });\n\n if (!this._root) {\n this._root = createRoot(this);\n }\n this._root.render(el);\n }\n\n disconnectedCallback() {\n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ivery/index.js
CHANGED
|
@@ -2,14 +2,13 @@ import { Main as e } from "./main.js";
|
|
|
2
2
|
import t from "react";
|
|
3
3
|
import { createRoot as n } from "react-dom/client";
|
|
4
4
|
import r from "debug";
|
|
5
|
-
import {
|
|
6
|
-
import { ModelSetEvent as a, SessionChangedEvent as o } from "@pie-element/shared-player-events";
|
|
5
|
+
import { ModelSetEvent as i, SessionChangedEvent as a, createSessionNotifier as o, flushSessionNotifiers as s } from "@pie-element/shared-player-events";
|
|
7
6
|
//#region src/delivery/index.ts
|
|
8
|
-
var
|
|
7
|
+
var c = { configuration: {} }, l = r("pie-ui:math-inline"), u = class extends HTMLElement {
|
|
9
8
|
constructor() {
|
|
10
|
-
super(), this._root = null, this._configuration =
|
|
11
|
-
this.dispatchEvent(new
|
|
12
|
-
}, 1e3);
|
|
9
|
+
super(), this._root = null, this._configuration = c.configuration, this._sessionNotifier = o(this, () => {
|
|
10
|
+
this.dispatchEvent(new a(this.tagName.toLowerCase(), !0));
|
|
11
|
+
}, { delayMs: 1e3 }), this.sessionChangedEventCaller = () => this._sessionNotifier.notify();
|
|
13
12
|
}
|
|
14
13
|
setLangAttribute() {
|
|
15
14
|
let e = this._model && typeof this._model.language ? this._model.language : "", t = e ? e.slice(0, 2) : "en";
|
|
@@ -18,7 +17,7 @@ var s = { configuration: {} }, c = r("pie-ui:math-inline"), l = class extends HT
|
|
|
18
17
|
n && n.setAttribute("lang", t);
|
|
19
18
|
}
|
|
20
19
|
set model(e) {
|
|
21
|
-
this._model = e, this.dispatchEvent(new
|
|
20
|
+
this._model = e, this.dispatchEvent(new i(this._model, !0, !!this._model)), this.setLangAttribute(), this._render();
|
|
22
21
|
}
|
|
23
22
|
set session(e) {
|
|
24
23
|
this._session = e, this._render();
|
|
@@ -32,7 +31,7 @@ var s = { configuration: {} }, c = r("pie-ui:math-inline"), l = class extends HT
|
|
|
32
31
|
sessionChanged(e) {
|
|
33
32
|
Object.keys(e).map((t) => {
|
|
34
33
|
this._session[t] = e[t];
|
|
35
|
-
}), this.sessionChangedEventCaller(),
|
|
34
|
+
}), this.sessionChangedEventCaller(), l("session: ", this._session);
|
|
36
35
|
}
|
|
37
36
|
connectedCallback() {
|
|
38
37
|
this.setAttribute("aria-label", "Math Response Question"), this.setAttribute("role", "region"), this._render();
|
|
@@ -48,8 +47,8 @@ var s = { configuration: {} }, c = r("pie-ui:math-inline"), l = class extends HT
|
|
|
48
47
|
this._root ||= n(this), this._root.render(r);
|
|
49
48
|
}
|
|
50
49
|
disconnectedCallback() {
|
|
51
|
-
this._root &&= (this._root.unmount(), null);
|
|
50
|
+
s(this), this._root &&= (this._root.unmount(), null);
|
|
52
51
|
}
|
|
53
52
|
};
|
|
54
53
|
//#endregion
|
|
55
|
-
export { e as Component,
|
|
54
|
+
export { e as Component, u as default };
|