@pie-players/pie-assessment-toolkit 0.3.48 → 0.3.50

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.
@@ -7718,21 +7718,6 @@ function createPackagedToolRegistry(options = {}) {
7718
7718
  });
7719
7719
  }
7720
7720
 
7721
- // dist/tools/default-tool-module-loaders.js
7722
- var loadSideEffectModule = (load) => load().then(() => {
7723
- return;
7724
- });
7725
- function loadCalculatorModule() {
7726
- if (typeof globalThis !== "undefined" && "customElements" in globalThis && globalThis.customElements?.get("pie-tool-calculator")) {
7727
- return Promise.resolve();
7728
- }
7729
- return loadSideEffectModule(() => import("@pie-players/pie-tool-calculator-desmos"));
7730
- }
7731
- var DEFAULT_TOOL_MODULE_LOADERS = {
7732
- calculator: loadCalculatorModule,
7733
- textToSpeech: () => loadSideEffectModule(() => import("@pie-players/pie-tool-tts-inline"))
7734
- };
7735
-
7736
7721
  // dist/components/vendor/nds/nds-icon-button.js
7737
7722
  var H = globalThis;
7738
7723
  var D = H.ShadowRoot && (H.ShadyCSS === undefined || H.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
@@ -8707,7 +8692,7 @@ function ItemToolBar($$anchor, $$props) {
8707
8692
  installFaInToolbarShadow(node);
8708
8693
  return {};
8709
8694
  };
8710
- const fallbackToolRegistry = createPackagedToolRegistry({ toolModuleLoaders: DEFAULT_TOOL_MODULE_LOADERS });
8695
+ const fallbackToolRegistry = createPackagedToolRegistry();
8711
8696
  let activeToolState = state(proxy({}));
8712
8697
  let level = prop($$props, "level", 7, "item"), scopeId = prop($$props, "scopeId", 7, ""), itemId = prop($$props, "itemId", 7, ""), sectionId = prop($$props, "sectionId", 7, ""), catalogId = prop($$props, "catalogId", 7, ""), tools = prop($$props, "tools", 7, "calculator,textToSpeech,answerEliminator"), contentKind = prop($$props, "contentKind", 7, "assessment-item"), position = prop($$props, "position", 7, "bottom"), scopeElement = prop($$props, "scopeElement", 7, null), toolRegistry = prop($$props, "toolRegistry", 7, null), item = prop($$props, "item", 7, null), hostButtons = prop($$props, "hostButtons", 23, () => []), className = prop($$props, "class", 7, ""), size = prop($$props, "size", 7, "md"), language = prop($$props, "language", 7, "en-US");
8713
8698
  let toolbarRootElement = state(null);
@@ -39,7 +39,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
39
39
 
40
40
  // ../../node_modules/.bun/speech-rule-engine@5.0.0-rc.1/node_modules/speech-rule-engine/lib/sre.js
41
41
  var require_sre = __commonJS((exports, module) => {
42
- var __dirname = "/Users/eelco.hillenius/dev/prj/pie/pie-players/node_modules/.bun/speech-rule-engine@5.0.0-rc.1/node_modules/speech-rule-engine/lib";
42
+ var __dirname = "/home/runner/work/pie-players/pie-players/node_modules/.bun/speech-rule-engine@5.0.0-rc.1/node_modules/speech-rule-engine/lib";
43
43
  (function(t, e) {
44
44
  typeof exports == "object" && typeof module == "object" ? module.exports = e() : typeof define == "function" && define.amd ? define([], e) : typeof exports == "object" ? exports.SRE = e() : t.SRE = e();
45
45
  })(exports, () => (() => {
@@ -11886,19 +11886,6 @@ function createPackagedToolRegistry(options = {}) {
11886
11886
  includePackagedTools: true
11887
11887
  });
11888
11888
  }
11889
- var loadSideEffectModule = (load) => load().then(() => {
11890
- return;
11891
- });
11892
- function loadCalculatorModule() {
11893
- if (typeof globalThis !== "undefined" && "customElements" in globalThis && globalThis.customElements?.get("pie-tool-calculator")) {
11894
- return Promise.resolve();
11895
- }
11896
- return loadSideEffectModule(() => import("@pie-players/pie-tool-calculator-desmos"));
11897
- }
11898
- var DEFAULT_TOOL_MODULE_LOADERS = {
11899
- calculator: loadCalculatorModule,
11900
- textToSpeech: () => loadSideEffectModule(() => import("@pie-players/pie-tool-tts-inline"))
11901
- };
11902
11889
  var H = globalThis;
11903
11890
  var D = H.ShadowRoot && (H.ShadyCSS === undefined || H.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
11904
11891
  var tt = Symbol();
@@ -12870,7 +12857,7 @@ function ItemToolBar($$anchor, $$props) {
12870
12857
  installFaInToolbarShadow(node);
12871
12858
  return {};
12872
12859
  };
12873
- const fallbackToolRegistry = createPackagedToolRegistry({ toolModuleLoaders: DEFAULT_TOOL_MODULE_LOADERS });
12860
+ const fallbackToolRegistry = createPackagedToolRegistry();
12874
12861
  let activeToolState = state2(proxy2({}));
12875
12862
  let level = prop2($$props, "level", 7, "item"), scopeId = prop2($$props, "scopeId", 7, ""), itemId = prop2($$props, "itemId", 7, ""), sectionId = prop2($$props, "sectionId", 7, ""), catalogId = prop2($$props, "catalogId", 7, ""), tools = prop2($$props, "tools", 7, "calculator,textToSpeech,answerEliminator"), contentKind = prop2($$props, "contentKind", 7, "assessment-item"), position = prop2($$props, "position", 7, "bottom"), scopeElement = prop2($$props, "scopeElement", 7, null), toolRegistry = prop2($$props, "toolRegistry", 7, null), item = prop2($$props, "item", 7, null), hostButtons = prop2($$props, "hostButtons", 23, () => []), className = prop2($$props, "class", 7, ""), size = prop2($$props, "size", 7, "md"), language = prop2($$props, "language", 7, "en-US");
12876
12863
  let toolbarRootElement = state2(null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-players/pie-assessment-toolkit",
3
- "version": "0.3.48",
3
+ "version": "0.3.50",
4
4
  "type": "module",
5
5
  "description": "PIE assessment toolkit: composable services + reference implementation for assessment players and tool coordination",
6
6
  "license": "MIT",
@@ -75,15 +75,15 @@
75
75
  "test": "bun test"
76
76
  },
77
77
  "dependencies": {
78
- "@pie-players/pie-calculator": "0.3.48",
79
- "@pie-players/pie-context": "0.3.48",
80
- "@pie-players/pie-players-shared": "0.3.48",
81
- "@pie-players/pie-tts": "0.3.48",
78
+ "@pie-players/pie-calculator": "0.3.50",
79
+ "@pie-players/pie-context": "0.3.50",
80
+ "@pie-players/pie-players-shared": "0.3.50",
81
+ "@pie-players/pie-tts": "0.3.50",
82
82
  "speech-rule-engine": "^5.0.0-rc.1"
83
83
  },
84
84
  "peerDependencies": {
85
- "@pie-players/pie-calculator-desmos": "0.3.48",
86
- "@pie-players/tts-client-server": "0.3.48"
85
+ "@pie-players/pie-calculator-desmos": "0.3.50",
86
+ "@pie-players/tts-client-server": "0.3.50"
87
87
  },
88
88
  "peerDependenciesMeta": {
89
89
  "@pie-players/pie-calculator-desmos": {
@@ -1,2 +0,0 @@
1
- import type { ToolModuleLoader } from "../services/ToolRegistry.js";
2
- export declare const DEFAULT_TOOL_MODULE_LOADERS: Record<string, ToolModuleLoader>;
@@ -1,28 +0,0 @@
1
- const loadSideEffectModule = (load) => load().then(() => undefined);
2
- /**
3
- * Default lazy module loaders for built-in tools.
4
- *
5
- * Keeping this map near tool registrations avoids hard-coding module imports
6
- * in runtime components.
7
- */
8
- function loadCalculatorModule() {
9
- if (typeof globalThis !== "undefined" &&
10
- "customElements" in globalThis &&
11
- globalThis.customElements?.get("pie-tool-calculator")) {
12
- return Promise.resolve();
13
- }
14
- return loadSideEffectModule(() =>
15
- // biome-ignore lint/suspicious/noTsIgnore: module is optional; @ts-expect-error would fail in workspace builds where the symlink resolves
16
- // @ts-ignore Optional host module may be absent from toolkit package deps.
17
- import("@pie-players/pie-tool-calculator-desmos"));
18
- }
19
- export const DEFAULT_TOOL_MODULE_LOADERS = {
20
- // Keep toolkit defaults limited to broadly expected modules.
21
- // Hosts can register additional optional tool loaders as needed.
22
- calculator: loadCalculatorModule,
23
- textToSpeech: () => loadSideEffectModule(() =>
24
- // biome-ignore lint/suspicious/noTsIgnore: module is optional; @ts-expect-error would fail in workspace builds where the symlink resolves
25
- // @ts-ignore Optional host module may be absent from toolkit package deps.
26
- import("@pie-players/pie-tool-tts-inline")),
27
- };
28
- //# sourceMappingURL=default-tool-module-loaders.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"default-tool-module-loaders.js","sourceRoot":"","sources":["../../src/tools/default-tool-module-loaders.ts"],"names":[],"mappings":"AAEA,MAAM,oBAAoB,GAAG,CAAC,IAA4B,EAAiB,EAAE,CAC5E,IAAI,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;AAE9B;;;;;GAKG;AACH,SAAS,oBAAoB;IAC5B,IACC,OAAO,UAAU,KAAK,WAAW;QACjC,gBAAgB,IAAI,UAAU;QAC9B,UAAU,CAAC,cAAc,EAAE,GAAG,CAAC,qBAAqB,CAAC,EACpD,CAAC;QACF,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC1B,CAAC;IACD,OAAO,oBAAoB,CAC1B,GAAG,EAAE;IACJ,0IAA0I;IAC1I,2EAA2E;IAC3E,MAAM,CAAC,yCAAyC,CAAC,CAClD,CAAC;AACH,CAAC;AAED,MAAM,CAAC,MAAM,2BAA2B,GAAqC;IAC5E,6DAA6D;IAC7D,iEAAiE;IACjE,UAAU,EAAE,oBAAoB;IAChC,YAAY,EAAE,GAAG,EAAE,CAClB,oBAAoB,CACnB,GAAG,EAAE;IACJ,0IAA0I;IAC1I,2EAA2E;IAC3E,MAAM,CAAC,kCAAkC,CAAC,CAC3C;CACF,CAAC","sourcesContent":["import type { ToolModuleLoader } from \"../services/ToolRegistry.js\";\n\nconst loadSideEffectModule = (load: () => Promise<unknown>): Promise<void> =>\n\tload().then(() => undefined);\n\n/**\n * Default lazy module loaders for built-in tools.\n *\n * Keeping this map near tool registrations avoids hard-coding module imports\n * in runtime components.\n */\nfunction loadCalculatorModule(): Promise<unknown> {\n\tif (\n\t\ttypeof globalThis !== \"undefined\" &&\n\t\t\"customElements\" in globalThis &&\n\t\tglobalThis.customElements?.get(\"pie-tool-calculator\")\n\t) {\n\t\treturn Promise.resolve();\n\t}\n\treturn loadSideEffectModule(\n\t\t() =>\n\t\t\t// biome-ignore lint/suspicious/noTsIgnore: module is optional; @ts-expect-error would fail in workspace builds where the symlink resolves\n\t\t\t// @ts-ignore Optional host module may be absent from toolkit package deps.\n\t\t\timport(\"@pie-players/pie-tool-calculator-desmos\"),\n\t);\n}\n\nexport const DEFAULT_TOOL_MODULE_LOADERS: Record<string, ToolModuleLoader> = {\n\t// Keep toolkit defaults limited to broadly expected modules.\n\t// Hosts can register additional optional tool loaders as needed.\n\tcalculator: loadCalculatorModule,\n\ttextToSpeech: () =>\n\t\tloadSideEffectModule(\n\t\t\t() =>\n\t\t\t\t// biome-ignore lint/suspicious/noTsIgnore: module is optional; @ts-expect-error would fail in workspace builds where the symlink resolves\n\t\t\t\t// @ts-ignore Optional host module may be absent from toolkit package deps.\n\t\t\t\timport(\"@pie-players/pie-tool-tts-inline\"),\n\t\t),\n};\n"]}