@pie-players/pie-tool-text-to-speech 0.3.21 → 0.3.22

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.
@@ -3080,6 +3080,7 @@ var Va = class {
3080
3080
  };
3081
3081
  }, kt = /* @__PURE__ */ new Map(), rl = "__pieToolElementUnmount", Fn = Object.freeze([1.5, 2]), nl = (e) => {
3082
3082
  if (!Array.isArray(e)) return [...Fn];
3083
+ if (e.length === 0) return [];
3083
3084
  const t = /* @__PURE__ */ new Set();
3084
3085
  for (const r of e) {
3085
3086
  if (typeof r != "number" || !Number.isFinite(r) || r <= 0) continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-players/pie-tool-text-to-speech",
3
- "version": "0.3.21",
3
+ "version": "0.3.22",
4
4
  "type": "module",
5
5
  "description": "Text-to-Speech tool for PIE assessment player with word-level highlighting",
6
6
  "repository": {
@@ -35,8 +35,8 @@
35
35
  "unpkg": "./dist/tool-text-to-speech.js",
36
36
  "jsdelivr": "./dist/tool-text-to-speech.js",
37
37
  "dependencies": {
38
- "@pie-players/pie-assessment-toolkit": "0.3.21",
39
- "@pie-players/pie-players-shared": "0.3.21"
38
+ "@pie-players/pie-assessment-toolkit": "0.3.22",
39
+ "@pie-players/pie-players-shared": "0.3.22"
40
40
  },
41
41
  "types": "./dist/index.d.ts",
42
42
  "scripts": {