@pie-players/pie-section-player-tools-tts-settings 0.3.74 → 0.3.75

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.
@@ -0,0 +1,7 @@
1
+ import { r } from "./sre-locales-CY6Cqn82.js";
2
+ import * as e from "speech-rule-engine";
3
+ var a = e.default ?? e;
4
+ a.setupEngine(r());
5
+ export {
6
+ a as default
7
+ };
@@ -0,0 +1,21 @@
1
+ var t = {
2
+ base: () => import("speech-rule-engine/lib/mathmaps/base.json"),
3
+ en: () => import("speech-rule-engine/lib/mathmaps/en.json"),
4
+ es: () => import("speech-rule-engine/lib/mathmaps/es.json")
5
+ }, s = async (e) => {
6
+ if (!Object.hasOwn(t, e)) throw new Error(`no speech-rule-engine locale table is packaged for "${e}"; name a source with mathSpeech.engineOptions.json or .custom`);
7
+ return (await t[e]()).default;
8
+ }, c = () => typeof window < "u" && typeof window.document < "u" || typeof globalThis.DedicatedWorkerGlobalScope < "u", n = (e = {}) => {
9
+ const { json: a, custom: o } = e;
10
+ return a || o ? {
11
+ ...a ? { json: a } : {},
12
+ ...o ? { custom: o } : {}
13
+ } : c() ? { custom: s } : {};
14
+ }, r, u = (e) => {
15
+ r = n(e);
16
+ }, i = () => (r ?? (r = n()), r);
17
+ export {
18
+ n,
19
+ i as r,
20
+ u as t
21
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-players/pie-section-player-tools-tts-settings",
3
- "version": "0.3.74",
3
+ "version": "0.3.75",
4
4
  "type": "module",
5
5
  "description": "Reusable TTS settings panel for PIE section-player development tools",
6
6
  "repository": {
@@ -38,22 +38,25 @@
38
38
  "scripts": {
39
39
  "build": "vite build",
40
40
  "dev": "vite build --watch",
41
- "test": "bun run build && bun test tests",
42
- "typecheck": "tsc --noEmit",
41
+ "test": "bun test tests",
42
+ "typecheck": "tsc --noEmit && tsc -p tsconfig.tests.json",
43
43
  "check": "svelte-check --tsconfig ./tsconfig.json --compiler-warnings options_missing_custom_element:ignore",
44
44
  "lint": "biome lint TtsSettingsPanel.svelte index.ts vite.config.ts package.json"
45
45
  },
46
+ "dependencies": {
47
+ "speech-rule-engine": "5.0.0-rc.4"
48
+ },
46
49
  "devDependencies": {
47
50
  "@biomejs/biome": "^2.5.15",
48
51
  "@happy-dom/global-registrator": "^20.14.5",
49
- "@pie-players/pie-assessment-toolkit": "0.3.74",
50
- "@pie-players/pie-players-shared": "0.3.74",
52
+ "@pie-players/pie-assessment-toolkit": "0.3.75",
53
+ "@pie-players/pie-players-shared": "0.3.75",
51
54
  "@sveltejs/vite-plugin-svelte": "^7.3.1",
52
55
  "svelte": "^5.57.1",
53
56
  "svelte-check": "^4.7.6",
54
57
  "typescript": "^5.9.3",
55
58
  "vite": "^8.3.2",
56
- "vite-plugin-dts": "^5.1.1"
59
+ "vite-plugin-dts": "^5.1.2"
57
60
  },
58
61
  "homepage": "https://github.com/pie-framework/pie-players/tree/master/packages/section-player-tools-tts-settings#readme",
59
62
  "bugs": {