@pie-players/pie-tool-text-to-speech 0.1.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.
- package/dist/tool-text-to-speech.js +24 -1
- package/package.json +4 -4
|
@@ -2778,6 +2778,24 @@ class Mo {
|
|
|
2778
2778
|
getToolsByLevel(e) {
|
|
2779
2779
|
return this.getAllTools().filter((i) => i.supportedLevels.includes(e));
|
|
2780
2780
|
}
|
|
2781
|
+
/**
|
|
2782
|
+
* Resolve tool activation with backward-compatible defaults.
|
|
2783
|
+
*/
|
|
2784
|
+
getToolActivation(e) {
|
|
2785
|
+
return this.get(e)?.activation || "toolbar-toggle";
|
|
2786
|
+
}
|
|
2787
|
+
/**
|
|
2788
|
+
* Resolve singleton scope for a tool when present.
|
|
2789
|
+
*/
|
|
2790
|
+
getToolSingletonScope(e) {
|
|
2791
|
+
return this.get(e)?.singletonScope || null;
|
|
2792
|
+
}
|
|
2793
|
+
/**
|
|
2794
|
+
* Filter tool IDs by activation type.
|
|
2795
|
+
*/
|
|
2796
|
+
filterToolIdsByActivation(e, i) {
|
|
2797
|
+
return e.filter((n) => this.getToolActivation(n) === i);
|
|
2798
|
+
}
|
|
2781
2799
|
/**
|
|
2782
2800
|
* Filter tools by visibility in a given context
|
|
2783
2801
|
*
|
|
@@ -2817,7 +2835,9 @@ class Mo {
|
|
|
2817
2835
|
name: e.name,
|
|
2818
2836
|
description: e.description,
|
|
2819
2837
|
pnpSupportIds: e.pnpSupportIds || [],
|
|
2820
|
-
supportedLevels: e.supportedLevels
|
|
2838
|
+
supportedLevels: e.supportedLevels,
|
|
2839
|
+
activation: e.activation || "toolbar-toggle",
|
|
2840
|
+
singletonScope: e.singletonScope || null
|
|
2821
2841
|
}));
|
|
2822
2842
|
}
|
|
2823
2843
|
/**
|
|
@@ -3458,6 +3478,7 @@ const Bo = /* @__PURE__ */ new Set([
|
|
|
3458
3478
|
name: "Highlighter",
|
|
3459
3479
|
description: "Highlight text",
|
|
3460
3480
|
icon: "highlighter",
|
|
3481
|
+
activation: "toolbar-toggle",
|
|
3461
3482
|
// Highlighter appears at passage, rubric, item, and element levels
|
|
3462
3483
|
supportedLevels: ["passage", "rubric", "item", "element"],
|
|
3463
3484
|
// PNP support IDs
|
|
@@ -3606,6 +3627,8 @@ const Bo = /* @__PURE__ */ new Set([
|
|
|
3606
3627
|
name: "Highlighter",
|
|
3607
3628
|
description: "Highlight and annotate text",
|
|
3608
3629
|
icon: "highlighter",
|
|
3630
|
+
activation: "selection-gateway",
|
|
3631
|
+
singletonScope: "section",
|
|
3609
3632
|
// Annotation appears where there's text content
|
|
3610
3633
|
supportedLevels: ["passage", "rubric", "item", "element"],
|
|
3611
3634
|
// PNP support IDs
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-players/pie-tool-text-to-speech",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Text-to-Speech tool for PIE assessment player with word-level highlighting",
|
|
6
6
|
"repository": {
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"unpkg": "./dist/tool-text-to-speech.js",
|
|
43
43
|
"jsdelivr": "./dist/tool-text-to-speech.js",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@pie-players/pie-assessment-toolkit": "0.
|
|
46
|
-
"@pie-players/pie-players-shared": "0.
|
|
45
|
+
"@pie-players/pie-assessment-toolkit": "0.3.0",
|
|
46
|
+
"@pie-players/pie-players-shared": "0.3.0",
|
|
47
47
|
"daisyui": "^5.5.18"
|
|
48
48
|
},
|
|
49
49
|
"types": "./dist/index.d.ts",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"url": "https://github.com/pie-framework/pie-players/issues"
|
|
67
67
|
},
|
|
68
68
|
"engines": {
|
|
69
|
-
"node": ">=
|
|
69
|
+
"node": ">=20.0.0"
|
|
70
70
|
},
|
|
71
71
|
"sideEffects": true
|
|
72
72
|
}
|