@pie-qti/player-elements 0.1.10 → 0.1.11
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/constants.d.ts +0 -1
- package/dist/{define-Aera2T_G.js → define-Cv9Vn4ck.js} +3 -3
- package/dist/define-Cv9Vn4ck.js.map +1 -0
- package/dist/define.d.ts +0 -1
- package/dist/{element-C5p8w4vU.js → element-C5Y0zSz-.js} +9 -10
- package/dist/element-C5Y0zSz-.js.map +1 -0
- package/dist/elements/BaseSvelteMountElement.d.ts +1 -3
- package/dist/elements/QtiAssessmentPlayerElement.d.ts +1 -2
- package/dist/elements/QtiItemPlayerElement.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +2 -2
- package/dist/{mathlive.min-Bvtiaxg4-CAquMlH8.js → mathlive.min-CAPebTxM-B2nv52My.js} +7 -8
- package/dist/{mathlive.min-Bvtiaxg4-CAquMlH8.js.map → mathlive.min-CAPebTxM-B2nv52My.js.map} +1 -1
- package/dist/plugins-B5K6bN6Q.js +58389 -0
- package/dist/plugins-B5K6bN6Q.js.map +1 -0
- package/dist/qti/parseAssessmentTest.d.ts +0 -1
- package/dist/qti/resolveItems.d.ts +0 -1
- package/dist/qti/types.d.ts +0 -1
- package/dist/register.d.ts +0 -1
- package/dist/register.js +1 -1
- package/dist/utils/json.d.ts +0 -1
- package/package.json +5 -5
- package/dist/constants.d.ts.map +0 -1
- package/dist/define-Aera2T_G.js.map +0 -1
- package/dist/define.d.ts.map +0 -1
- package/dist/element-C5p8w4vU.js.map +0 -1
- package/dist/elements/BaseSvelteMountElement.d.ts.map +0 -1
- package/dist/elements/QtiAssessmentPlayerElement.d.ts.map +0 -1
- package/dist/elements/QtiItemPlayerElement.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/plugins-DDTtbohJ.js +0 -42610
- package/dist/plugins-DDTtbohJ.js.map +0 -1
- package/dist/qti/parseAssessmentTest.d.ts.map +0 -1
- package/dist/qti/resolveItems.d.ts.map +0 -1
- package/dist/qti/types.d.ts.map +0 -1
- package/dist/register.d.ts.map +0 -1
- package/dist/utils/json.d.ts.map +0 -1
package/dist/define.d.ts
CHANGED
|
@@ -21465,7 +21465,6 @@ function Hf(e, t, n) {
|
|
|
21465
21465
|
function Uf({ player: e, responses: t = {}, disabled: n = !1, role: r = "candidate", outcomeValues: i = {}, heuristicsConfig: a, stimulusContent: o = {}, deliveryContext: s, itemBodyScopeSelector: c = "[data-qti-item-body-scope]", onComponentError: l }) {
|
|
21466
21466
|
let u = e.getInteractionData(), d = bf(r), f = n || d.isReadOnly, p = d.canViewCorrectResponses ? e.getCorrectResponses() : {}, m = Wf({
|
|
21467
21467
|
player: e,
|
|
21468
|
-
interactions: u,
|
|
21469
21468
|
outcomeValues: i,
|
|
21470
21469
|
heuristicsConfig: a,
|
|
21471
21470
|
stimulusContent: o,
|
|
@@ -21489,15 +21488,15 @@ function Uf({ player: e, responses: t = {}, disabled: n = !1, role: r = "candida
|
|
|
21489
21488
|
})
|
|
21490
21489
|
};
|
|
21491
21490
|
}
|
|
21492
|
-
function Wf({ player: e,
|
|
21493
|
-
let
|
|
21494
|
-
|
|
21495
|
-
let
|
|
21496
|
-
return
|
|
21497
|
-
outcomeValues:
|
|
21498
|
-
applyHeuristics:
|
|
21491
|
+
function Wf({ player: e, outcomeValues: t, heuristicsConfig: n, stimulusContent: r, deliveryContext: i, itemBodyScopeSelector: a }) {
|
|
21492
|
+
let o = String(e.getItemBodyHtml()), s = i ?? e.getDeliveryContext(), c = Tf(s, a), l = jf(s, r, (t) => e.sanitizeHtmlContent(t));
|
|
21493
|
+
o = Mf(o, l), c && (o = `<style data-qti-stylesheets="resolved">${c}</style>${o}`);
|
|
21494
|
+
let u = Vr(n);
|
|
21495
|
+
return o = Cf(o, {
|
|
21496
|
+
outcomeValues: t,
|
|
21497
|
+
applyHeuristics: u.feedbackTextFormatting,
|
|
21499
21498
|
wrapWithSpan: !1
|
|
21500
|
-
}), Gf(
|
|
21499
|
+
}), Gf(o);
|
|
21501
21500
|
}
|
|
21502
21501
|
function Gf(e) {
|
|
21503
21502
|
return e.replace(/<(\w+Interaction|qti-[\w-]+-interaction)(\s[^>]*)?>[\s\S]*?<\/\1>/gi, (e, t) => Lf(t.toLowerCase()) ? e : `<span class="qti-hidden-interaction">${e}</span>`);
|
|
@@ -21936,4 +21935,4 @@ mp.observedAttributes = [
|
|
|
21936
21935
|
//#endregion
|
|
21937
21936
|
export { T as A, o as B, M as C, k as D, ne as E, y as F, d as H, v as I, _ as L, ee as M, S as N, O, m as P, g as R, qt as S, re as T, u as U, c as V, Yt as _, _r as a, Kt as b, U as c, mn as d, hn as f, H as g, Qt as h, Ar as i, C as j, te as k, Vn as l, tn as m, Ap as n, Xn as o, on as p, Rr as r, Un as s, Yr as t, gn as u, R as v, ie as w, V as x, B as y, s as z };
|
|
21938
21937
|
|
|
21939
|
-
//# sourceMappingURL=element-
|
|
21938
|
+
//# sourceMappingURL=element-C5Y0zSz-.js.map
|