@pie-players/pie-section-player-tools-tts-settings 0.3.73 → 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.73",
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": {
@@ -34,27 +34,29 @@
34
34
  "package.json"
35
35
  ],
36
36
  "license": "MIT",
37
- "dependencies": {
38
- "@pie-players/pie-assessment-toolkit": "0.3.73",
39
- "@pie-players/pie-players-shared": "0.3.73",
40
- "@pie-players/pie-theme": "0.3.73"
41
- },
42
37
  "types": "./dist/index.d.ts",
43
38
  "scripts": {
44
39
  "build": "vite build",
45
40
  "dev": "vite build --watch",
46
- "typecheck": "tsc --noEmit",
41
+ "test": "bun test tests",
42
+ "typecheck": "tsc --noEmit && tsc -p tsconfig.tests.json",
47
43
  "check": "svelte-check --tsconfig ./tsconfig.json --compiler-warnings options_missing_custom_element:ignore",
48
- "lint": "biome check TtsSettingsPanel.svelte index.ts vite.config.ts package.json"
44
+ "lint": "biome lint TtsSettingsPanel.svelte index.ts vite.config.ts package.json"
45
+ },
46
+ "dependencies": {
47
+ "speech-rule-engine": "5.0.0-rc.4"
49
48
  },
50
49
  "devDependencies": {
51
- "@biomejs/biome": "^2.5.13",
52
- "@sveltejs/vite-plugin-svelte": "^7.3.0",
53
- "svelte": "^5.57.0",
50
+ "@biomejs/biome": "^2.5.15",
51
+ "@happy-dom/global-registrator": "^20.14.5",
52
+ "@pie-players/pie-assessment-toolkit": "0.3.75",
53
+ "@pie-players/pie-players-shared": "0.3.75",
54
+ "@sveltejs/vite-plugin-svelte": "^7.3.1",
55
+ "svelte": "^5.57.1",
54
56
  "svelte-check": "^4.7.6",
55
57
  "typescript": "^5.9.3",
56
- "vite": "^8.2.2",
57
- "vite-plugin-dts": "^5.0.3"
58
+ "vite": "^8.3.2",
59
+ "vite-plugin-dts": "^5.1.2"
58
60
  },
59
61
  "homepage": "https://github.com/pie-framework/pie-players/tree/master/packages/section-player-tools-tts-settings#readme",
60
62
  "bugs": {
@@ -1 +0,0 @@
1
- export { SvelteComponent as default } from 'svelte';
@@ -1,20 +0,0 @@
1
- var s = Object.create, i = Object.defineProperty, f = Object.getOwnPropertyDescriptor, c = Object.getOwnPropertyNames, O = Object.getPrototypeOf, p = Object.prototype.hasOwnProperty, P = (e, r) => () => (r || (e((r = { exports: {} }).exports, r), e = null), r.exports), v = (e, r, t, o) => {
2
- if (r && typeof r == "object" || typeof r == "function")
3
- for (var u = c(r), a = 0, l = u.length, n; a < l; a++)
4
- n = u[a], !p.call(e, n) && n !== t && i(e, n, {
5
- get: ((_) => r[_]).bind(null, n),
6
- enumerable: !(o = f(r, n)) || o.enumerable
7
- });
8
- return e;
9
- }, b = (e, r, t) => (t = e != null ? s(O(e)) : {}, v(r || !e || !e.__esModule || !p.call(e, "default") ? i(t, "default", {
10
- value: e,
11
- enumerable: !0
12
- }) : t, e)), d = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (r, t) => (typeof require < "u" ? require : r)[t] }) : e)(function(e) {
13
- if (typeof require < "u") return require.apply(this, arguments);
14
- throw Error('Calling `require` for "' + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
15
- });
16
- export {
17
- d as n,
18
- b as r,
19
- P as t
20
- };