@pie-players/pie-tool-answer-eliminator 0.2.10 → 0.3.0
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.
|
@@ -2326,6 +2326,24 @@ class ir {
|
|
|
2326
2326
|
getToolsByLevel(e) {
|
|
2327
2327
|
return this.getAllTools().filter((i) => i.supportedLevels.includes(e));
|
|
2328
2328
|
}
|
|
2329
|
+
/**
|
|
2330
|
+
* Resolve tool activation with backward-compatible defaults.
|
|
2331
|
+
*/
|
|
2332
|
+
getToolActivation(e) {
|
|
2333
|
+
return this.get(e)?.activation || "toolbar-toggle";
|
|
2334
|
+
}
|
|
2335
|
+
/**
|
|
2336
|
+
* Resolve singleton scope for a tool when present.
|
|
2337
|
+
*/
|
|
2338
|
+
getToolSingletonScope(e) {
|
|
2339
|
+
return this.get(e)?.singletonScope || null;
|
|
2340
|
+
}
|
|
2341
|
+
/**
|
|
2342
|
+
* Filter tool IDs by activation type.
|
|
2343
|
+
*/
|
|
2344
|
+
filterToolIdsByActivation(e, i) {
|
|
2345
|
+
return e.filter((n) => this.getToolActivation(n) === i);
|
|
2346
|
+
}
|
|
2329
2347
|
/**
|
|
2330
2348
|
* Filter tools by visibility in a given context
|
|
2331
2349
|
*
|
|
@@ -2365,7 +2383,9 @@ class ir {
|
|
|
2365
2383
|
name: e.name,
|
|
2366
2384
|
description: e.description,
|
|
2367
2385
|
pnpSupportIds: e.pnpSupportIds || [],
|
|
2368
|
-
supportedLevels: e.supportedLevels
|
|
2386
|
+
supportedLevels: e.supportedLevels,
|
|
2387
|
+
activation: e.activation || "toolbar-toggle",
|
|
2388
|
+
singletonScope: e.singletonScope || null
|
|
2369
2389
|
}));
|
|
2370
2390
|
}
|
|
2371
2391
|
/**
|
|
@@ -3006,6 +3026,7 @@ const ur = /* @__PURE__ */ new Set([
|
|
|
3006
3026
|
name: "Highlighter",
|
|
3007
3027
|
description: "Highlight text",
|
|
3008
3028
|
icon: "highlighter",
|
|
3029
|
+
activation: "toolbar-toggle",
|
|
3009
3030
|
// Highlighter appears at passage, rubric, item, and element levels
|
|
3010
3031
|
supportedLevels: ["passage", "rubric", "item", "element"],
|
|
3011
3032
|
// PNP support IDs
|
|
@@ -3154,6 +3175,8 @@ const ur = /* @__PURE__ */ new Set([
|
|
|
3154
3175
|
name: "Highlighter",
|
|
3155
3176
|
description: "Highlight and annotate text",
|
|
3156
3177
|
icon: "highlighter",
|
|
3178
|
+
activation: "selection-gateway",
|
|
3179
|
+
singletonScope: "section",
|
|
3157
3180
|
// Annotation appears where there's text content
|
|
3158
3181
|
supportedLevels: ["passage", "rubric", "item", "element"],
|
|
3159
3182
|
// PNP support IDs
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-players/pie-tool-answer-eliminator",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
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.
|
|
53
|
-
"@pie-players/pie-context": "0.
|
|
54
|
-
"@pie-players/pie-players-shared": "0.
|
|
52
|
+
"@pie-players/pie-assessment-toolkit": "0.3.0",
|
|
53
|
+
"@pie-players/pie-context": "0.3.0",
|
|
54
|
+
"@pie-players/pie-players-shared": "0.3.0",
|
|
55
55
|
"daisyui": "^5.5.18"
|
|
56
56
|
},
|
|
57
57
|
"types": "./dist/index.d.ts",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"url": "https://github.com/pie-framework/pie-players/issues"
|
|
75
75
|
},
|
|
76
76
|
"engines": {
|
|
77
|
-
"node": ">=
|
|
77
|
+
"node": ">=20.0.0"
|
|
78
78
|
},
|
|
79
79
|
"sideEffects": true
|
|
80
80
|
}
|