@pie-players/pie-tool-answer-eliminator 0.3.1 → 0.3.3
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/tool-answer-eliminator.js +40 -20
- package/package.json +4 -4
|
@@ -3322,8 +3322,20 @@ const ur = /* @__PURE__ */ new Set([
|
|
|
3322
3322
|
}
|
|
3323
3323
|
};
|
|
3324
3324
|
}
|
|
3325
|
-
}
|
|
3326
|
-
|
|
3325
|
+
}, $r = [
|
|
3326
|
+
gr,
|
|
3327
|
+
mr,
|
|
3328
|
+
vr,
|
|
3329
|
+
br,
|
|
3330
|
+
_r,
|
|
3331
|
+
yr,
|
|
3332
|
+
Tr,
|
|
3333
|
+
Ir,
|
|
3334
|
+
Er,
|
|
3335
|
+
wr,
|
|
3336
|
+
Sr
|
|
3337
|
+
];
|
|
3338
|
+
function Cr(t = {}) {
|
|
3327
3339
|
const e = new ir(), i = {
|
|
3328
3340
|
toolTagMap: {
|
|
3329
3341
|
...Sn,
|
|
@@ -3332,17 +3344,25 @@ function $r(t = {}) {
|
|
|
3332
3344
|
toolComponentFactory: t.toolComponentFactory,
|
|
3333
3345
|
toolComponentFactories: t.toolComponentFactories
|
|
3334
3346
|
}, n = (s) => t.overrides?.[s.toolId] || s;
|
|
3335
|
-
return
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3347
|
+
return t.includePackagedTools && Lr(e, {
|
|
3348
|
+
toolIds: t.toolIds,
|
|
3349
|
+
applyOverrides: n
|
|
3350
|
+
}), t.toolModuleLoaders && Object.keys(t.toolModuleLoaders).length > 0 && e.setToolModuleLoaders(t.toolModuleLoaders), e.setComponentOverrides(i), e;
|
|
3351
|
+
}
|
|
3352
|
+
function Lr(t, e = {}) {
|
|
3353
|
+
const i = e.toolIds && e.toolIds.length > 0 ? new Set(e.toolIds) : null, n = e.applyOverrides || ((s) => s);
|
|
3354
|
+
for (const s of $r)
|
|
3355
|
+
i && !i.has(s.toolId) || t.register(n(s));
|
|
3356
|
+
}
|
|
3357
|
+
function Rr() {
|
|
3358
|
+
const t = Cr(), e = /* @__PURE__ */ new Set();
|
|
3339
3359
|
for (const i of t.getAllTools())
|
|
3340
3360
|
for (const n of i.pnpSupportIds || [])
|
|
3341
3361
|
e.add(n);
|
|
3342
3362
|
return [...e].sort();
|
|
3343
3363
|
}
|
|
3344
|
-
|
|
3345
|
-
const
|
|
3364
|
+
Rr();
|
|
3365
|
+
const Or = {
|
|
3346
3366
|
/**
|
|
3347
3367
|
* Visual accessibility features
|
|
3348
3368
|
* For students with low vision, color blindness, or visual processing needs
|
|
@@ -3513,7 +3533,7 @@ const Lr = {
|
|
|
3513
3533
|
tutorialAvailable: "tutorialAvailable"
|
|
3514
3534
|
}
|
|
3515
3535
|
};
|
|
3516
|
-
Object.values(
|
|
3536
|
+
Object.values(Or).flatMap((t) => Object.values(t));
|
|
3517
3537
|
var Yt;
|
|
3518
3538
|
(function(t) {
|
|
3519
3539
|
t[t.BASE = 0] = "BASE", t[t.TOOL = 1e3] = "TOOL", t[t.MODAL = 2e3] = "MODAL", t[t.CONTROL = 3e3] = "CONTROL", t[t.HIGHLIGHT = 4e3] = "HIGHLIGHT";
|
|
@@ -3594,7 +3614,7 @@ const O = class O {
|
|
|
3594
3614
|
};
|
|
3595
3615
|
f(O, "CHOICE_HOOK_ATTR", "data-pie-answer-eliminator-choice"), f(O, "LABEL_HOOK_ATTR", "data-pie-answer-eliminator-label"), f(O, "ROOT_HOOK_ATTR", "data-pie-answer-eliminator-root"), f(O, "FEEDBACK_HOOK_ATTR", "data-pie-answer-eliminator-feedback-tick"), f(O, "CHOICE_SELECTOR", `[${O.CHOICE_HOOK_ATTR}="true"], .corespring-checkbox, .corespring-radio-button`);
|
|
3596
3616
|
let St = O;
|
|
3597
|
-
class
|
|
3617
|
+
class kr {
|
|
3598
3618
|
constructor() {
|
|
3599
3619
|
f(this, "elementType", "ebsr");
|
|
3600
3620
|
f(this, "priority", 95);
|
|
@@ -3625,7 +3645,7 @@ class Rr {
|
|
|
3625
3645
|
return this.mcAdapter.getButtonContainer(e);
|
|
3626
3646
|
}
|
|
3627
3647
|
}
|
|
3628
|
-
class
|
|
3648
|
+
class Hr {
|
|
3629
3649
|
constructor() {
|
|
3630
3650
|
f(this, "elementType", "inline-dropdown");
|
|
3631
3651
|
f(this, "priority", 90);
|
|
@@ -3653,13 +3673,13 @@ class Or {
|
|
|
3653
3673
|
return e;
|
|
3654
3674
|
}
|
|
3655
3675
|
}
|
|
3656
|
-
class
|
|
3676
|
+
class Nr {
|
|
3657
3677
|
constructor() {
|
|
3658
3678
|
f(this, "adapters");
|
|
3659
3679
|
this.adapters = [
|
|
3660
3680
|
new St(),
|
|
3661
|
-
new
|
|
3662
|
-
new
|
|
3681
|
+
new kr(),
|
|
3682
|
+
new Hr()
|
|
3663
3683
|
].sort((e, i) => i.priority - e.priority);
|
|
3664
3684
|
}
|
|
3665
3685
|
/**
|
|
@@ -3910,7 +3930,7 @@ const Te = class Te {
|
|
|
3910
3930
|
// Whether to restore eliminations from state storage
|
|
3911
3931
|
// Store integration (replaces session/localStorage)
|
|
3912
3932
|
f(this, "storeIntegration", null);
|
|
3913
|
-
this.registry = new
|
|
3933
|
+
this.registry = new Nr(), this.strategy = this.createStrategy(e), this.strategy.initialize(), this.buttonAlignment = i;
|
|
3914
3934
|
}
|
|
3915
3935
|
createStrategy(e) {
|
|
3916
3936
|
return e === "mask" ? new Ut() : new xt();
|
|
@@ -4121,8 +4141,8 @@ const Te = class Te {
|
|
|
4121
4141
|
};
|
|
4122
4142
|
f(Te, "TOGGLE_CLASS", "pie-answer-eliminator-toggle"), f(Te, "TOGGLE_ACTIVE_CLASS", "pie-answer-eliminator-toggle--active");
|
|
4123
4143
|
let Xt = Te;
|
|
4124
|
-
var
|
|
4125
|
-
function
|
|
4144
|
+
var Vr = /* @__PURE__ */ Vs('<div style="display: none;" aria-hidden="true"></div>');
|
|
4145
|
+
function Mr(t, e) {
|
|
4126
4146
|
Hi(e, !0);
|
|
4127
4147
|
let i = ye(e, "visible", 7, !1), n = ye(e, "toolId", 7, "answerEliminator"), s = ye(e, "strategy", 7, "strikethrough"), r = ye(
|
|
4128
4148
|
e,
|
|
@@ -4254,11 +4274,11 @@ function Nr(t, e) {
|
|
|
4254
4274
|
set globalElementId(I = "") {
|
|
4255
4275
|
u(I), ue();
|
|
4256
4276
|
}
|
|
4257
|
-
}, oi =
|
|
4277
|
+
}, oi = Vr();
|
|
4258
4278
|
return Gs(oi, (I) => $(d, I), () => m(d)), bn(t, oi), Ni(Ln);
|
|
4259
4279
|
}
|
|
4260
4280
|
customElements.define("pie-tool-answer-eliminator", zs(
|
|
4261
|
-
|
|
4281
|
+
Mr,
|
|
4262
4282
|
{
|
|
4263
4283
|
visible: { attribute: "visible", type: "Boolean" },
|
|
4264
4284
|
toolId: { attribute: "tool-id", type: "String" },
|
|
@@ -4274,5 +4294,5 @@ customElements.define("pie-tool-answer-eliminator", zs(
|
|
|
4274
4294
|
{ mode: "open" }
|
|
4275
4295
|
));
|
|
4276
4296
|
export {
|
|
4277
|
-
|
|
4297
|
+
Mr as default
|
|
4278
4298
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-players/pie-tool-answer-eliminator",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Answer eliminator tool for PIE assessment player - supports process-of-elimination test-taking strategy",
|
|
6
6
|
"repository": {
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"unpkg": "./dist/tool-answer-eliminator.js",
|
|
50
50
|
"jsdelivr": "./dist/tool-answer-eliminator.js",
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@pie-players/pie-assessment-toolkit": "0.3.
|
|
53
|
-
"@pie-players/pie-context": "0.3.
|
|
54
|
-
"@pie-players/pie-players-shared": "0.3.
|
|
52
|
+
"@pie-players/pie-assessment-toolkit": "0.3.3",
|
|
53
|
+
"@pie-players/pie-context": "0.3.3",
|
|
54
|
+
"@pie-players/pie-players-shared": "0.3.3",
|
|
55
55
|
"daisyui": "^5.5.18"
|
|
56
56
|
},
|
|
57
57
|
"types": "./dist/index.d.ts",
|