@pie-players/pie-assessment-player 0.3.41 → 0.3.42
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/pie-assessment-player.js +14 -14
- package/package.json +4 -4
|
@@ -133,7 +133,7 @@ var x;
|
|
|
133
133
|
(function(e) {
|
|
134
134
|
e[e.ROOT = 0] = "ROOT", e[e.SUBJECT = 1] = "SUBJECT", e[e.LEVEL = 2] = "LEVEL", e[e.STANDARD = 3] = "STANDARD";
|
|
135
135
|
})(x || (x = {}));
|
|
136
|
-
function
|
|
136
|
+
function h(e, t) {
|
|
137
137
|
const s = `[${e}]`;
|
|
138
138
|
return {
|
|
139
139
|
debug: (n, ...i) => {
|
|
@@ -144,10 +144,10 @@ function m(e, t) {
|
|
|
144
144
|
error: (n, ...i) => console.error(s, n, ...i)
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function m() {
|
|
148
148
|
return typeof window < "u" && window.PIE_DEBUG === !0;
|
|
149
149
|
}
|
|
150
|
-
var ke =
|
|
150
|
+
var ke = h("math-rendering", () => m()), S;
|
|
151
151
|
(function(e) {
|
|
152
152
|
e.player = "player.js", e.clientPlayer = "client-player.js", e.editor = "editor.js";
|
|
153
153
|
})(S || (S = {}));
|
|
@@ -155,20 +155,20 @@ var R;
|
|
|
155
155
|
(function(e) {
|
|
156
156
|
e.loading = "loading", e.loaded = "loaded";
|
|
157
157
|
})(R || (R = {}));
|
|
158
|
-
var Te =
|
|
158
|
+
var Te = h("pie-scoring", () => m()), De = h("pie-updates", () => m()), _e = h("pie-initialization", () => m()), Ue = {
|
|
159
159
|
buildServiceBase: V,
|
|
160
160
|
bundleType: S.player,
|
|
161
161
|
env: {
|
|
162
162
|
mode: "gather",
|
|
163
163
|
role: "student"
|
|
164
164
|
}
|
|
165
|
-
};
|
|
165
|
+
}, $e = h("asset-handler", () => m()), Be = h("authoring", () => m());
|
|
166
166
|
function j(e) {
|
|
167
167
|
if (!e || typeof e != "object") return !1;
|
|
168
168
|
const t = e;
|
|
169
169
|
return typeof t.providerId == "string" && typeof t.providerName == "string" && typeof t.initialize == "function" && typeof t.trackError == "function" && typeof t.trackEvent == "function" && typeof t.destroy == "function" && typeof t.isReady == "function";
|
|
170
170
|
}
|
|
171
|
-
var se =
|
|
171
|
+
var se = h("instrumentation-event-bridge", () => m());
|
|
172
172
|
function ne(e) {
|
|
173
173
|
return e && typeof e == "object" ? e : typeof e > "u" ? {} : { value: e };
|
|
174
174
|
}
|
|
@@ -208,12 +208,12 @@ function oe(e) {
|
|
|
208
208
|
const r = (d) => {
|
|
209
209
|
try {
|
|
210
210
|
if (!t.isReady() || e.shouldTrackEvent && !e.shouldTrackEvent(d)) return;
|
|
211
|
-
const l = ne(d.detail),
|
|
211
|
+
const l = ne(d.detail), p = (/* @__PURE__ */ new Date()).toISOString(), I = {
|
|
212
212
|
...l,
|
|
213
213
|
...e.staticAttributes,
|
|
214
214
|
component: e.component,
|
|
215
215
|
sourceEventName: o.sourceEventName,
|
|
216
|
-
timestamp:
|
|
216
|
+
timestamp: p
|
|
217
217
|
};
|
|
218
218
|
if (n > 0) {
|
|
219
219
|
const b = Date.now(), E = c(o, I), w = i.get(E);
|
|
@@ -353,7 +353,7 @@ function D(e) {
|
|
|
353
353
|
function de(e, t) {
|
|
354
354
|
return e.kind === "value" || e.kind === "null" ? e : t;
|
|
355
355
|
}
|
|
356
|
-
var v, le =
|
|
356
|
+
var v, le = h("instrumentation-provider-resolution", () => m());
|
|
357
357
|
function ue() {
|
|
358
358
|
return v || (v = new ce(), v.initialize()), v;
|
|
359
359
|
}
|
|
@@ -368,7 +368,7 @@ function he(e) {
|
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
var
|
|
371
|
+
var Oe = Object.freeze([
|
|
372
372
|
"composed",
|
|
373
373
|
"engine-ready",
|
|
374
374
|
"interactive",
|
|
@@ -406,7 +406,7 @@ var $e = Object.freeze([
|
|
|
406
406
|
sourceEventName: "assessment-error",
|
|
407
407
|
instrumentationEventName: "pie-assessment-error"
|
|
408
408
|
}
|
|
409
|
-
],
|
|
409
|
+
], Me = h("pie-overrides", () => m());
|
|
410
410
|
function f() {
|
|
411
411
|
return Date.now();
|
|
412
412
|
}
|
|
@@ -904,10 +904,10 @@ var Pe = class extends HTMLElement {
|
|
|
904
904
|
l.className = "pie-assessment-player-nav-btn", l.textContent = "Back", l.disabled = !n.navigation.canPrevious, l.addEventListener("click", () => {
|
|
905
905
|
this.navigatePrevious();
|
|
906
906
|
});
|
|
907
|
-
const
|
|
908
|
-
|
|
907
|
+
const p = document.createElement("button");
|
|
908
|
+
p.className = "pie-assessment-player-nav-btn", p.textContent = "Next", p.disabled = !n.navigation.canNext, p.addEventListener("click", () => {
|
|
909
909
|
this.navigateNext();
|
|
910
|
-
}), d.appendChild(l), d.appendChild(
|
|
910
|
+
}), d.appendChild(l), d.appendChild(p), o.appendChild(r), o.appendChild(d), t.appendChild(o);
|
|
911
911
|
}
|
|
912
912
|
const i = document.createElement("div");
|
|
913
913
|
i.className = "pie-assessment-player-section-host", this.sectionHost = i;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-players/pie-assessment-player",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.42",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Assessment-level coordinator custom elements for orchestrating section-player instances",
|
|
6
6
|
"license": "MIT",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"lint": "biome check ."
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@pie-players/pie-assessment-toolkit": "0.3.
|
|
53
|
-
"@pie-players/pie-players-shared": "0.3.
|
|
54
|
-
"@pie-players/pie-section-player": "0.3.
|
|
52
|
+
"@pie-players/pie-assessment-toolkit": "0.3.42",
|
|
53
|
+
"@pie-players/pie-players-shared": "0.3.42",
|
|
54
|
+
"@pie-players/pie-section-player": "0.3.42"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@axe-core/playwright": "^4.11.1",
|