@pie-players/pie-default-tool-loaders 0.3.66 → 0.3.67

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,20 @@
1
+ /**
2
+ * The packaged capabilities that carry an authored alternate and render it as a
3
+ * region.
4
+ *
5
+ * A projection of the composition set below, kept in its own module for one
6
+ * reason: it must be importable without reaching the packaged composition table,
7
+ * whose lazy loaders name concrete `pie-tool-*` packages. A renderer that only
8
+ * ever shows text alternates — print — would otherwise carry a calculator and a
9
+ * TTS bundle it can never activate.
10
+ *
11
+ * Which slot an alternate fills is still the renderer's decision, not this list's:
12
+ * every entry declares its own `surfaces`, and a host resolves the slots it
13
+ * actually opens. Print opens the in-flow one and not the docked-media one,
14
+ * because a signed alternate on paper is a blank rectangle.
15
+ *
16
+ * `tests/content-alternates.test.ts` pins this against the composition set in both
17
+ * directions, so a capability added there cannot quietly fail to reach print.
18
+ */
19
+ import type { ToolRegistration } from "@pie-players/pie-assessment-toolkit/tools/internal";
20
+ export declare const CONTENT_ALTERNATE_REGISTRATIONS: readonly ToolRegistration[];
@@ -0,0 +1,22 @@
1
+ /**
2
+ * The packaged capabilities that carry an authored alternate and render it as a
3
+ * region.
4
+ *
5
+ * A projection of the composition set below, kept in its own module for one
6
+ * reason: it must be importable without reaching the packaged composition table,
7
+ * whose lazy loaders name concrete `pie-tool-*` packages. A renderer that only
8
+ * ever shows text alternates — print — would otherwise carry a calculator and a
9
+ * TTS bundle it can never activate.
10
+ *
11
+ * Which slot an alternate fills is still the renderer's decision, not this list's:
12
+ * every entry declares its own `surfaces`, and a host resolves the slots it
13
+ * actually opens. Print opens the in-flow one and not the docked-media one,
14
+ * because a signed alternate on paper is a blank rectangle.
15
+ *
16
+ * `tests/content-alternates.test.ts` pins this against the composition set in both
17
+ * directions, so a capability added there cannot quietly fail to reach print.
18
+ */
19
+ import { audioTranscriptRegistration } from "./registrations/audio-transcript.js";
20
+ export const CONTENT_ALTERNATE_REGISTRATIONS = [
21
+ audioTranscriptRegistration,
22
+ ];
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export type { PackagedToolRegistryOptions, RegisterDefaultToolModuleLoadersOptions, RegisterPackagedToolsOptions, ToolModuleLoader, ToolRegistryLike, } from "./packaged-capability-composition.js";
2
2
  export { createPackagedToolRegistry, createUniversalPersonalNeedsProfile, DEFAULT_TOOL_MODULE_LOADERS, ITEM_TOOL_MODULE_LOADERS, PACKAGED_TOOL_ORDER, PACKAGED_TOOL_PLACEMENT, PACKAGED_TOOL_REGISTRATIONS, PACKAGED_TOOL_TAG_MAP, registerDefaultToolModuleLoaders, registerPackagedTools, registerSectionToolModuleLoaders, SECTION_PLAYER_PREFERRED_TOOL_PLACEMENT, SECTION_TOOL_MODULE_LOADERS, UNIVERSAL_SUPPORTS_PRESET, } from "./packaged-capability-composition.js";
3
+ export { CONTENT_ALTERNATE_REGISTRATIONS } from "./content-alternates.js";
3
4
  export { annotationToolbarRegistration, lineReaderToolRegistration, themeToolRegistration, } from "./registrations/accessibility-tools.js";
4
5
  export { AUDIO_TRANSCRIPT_FEATURE_ID, AUDIO_TRANSCRIPT_REGION_CLASS, AUDIO_TRANSCRIPT_REGION_LABEL, audioTranscriptRegistration, resolveAudioTranscript, type ResolvedAudioTranscript, } from "./registrations/audio-transcript.js";
5
6
  export { calculatorToolRegistration } from "./registrations/calculator.js";
package/dist/index.js CHANGED
@@ -1,4 +1,7 @@
1
1
  export { createPackagedToolRegistry, createUniversalPersonalNeedsProfile, DEFAULT_TOOL_MODULE_LOADERS, ITEM_TOOL_MODULE_LOADERS, PACKAGED_TOOL_ORDER, PACKAGED_TOOL_PLACEMENT, PACKAGED_TOOL_REGISTRATIONS, PACKAGED_TOOL_TAG_MAP, registerDefaultToolModuleLoaders, registerPackagedTools, registerSectionToolModuleLoaders, SECTION_PLAYER_PREFERRED_TOOL_PLACEMENT, SECTION_TOOL_MODULE_LOADERS, UNIVERSAL_SUPPORTS_PRESET, } from "./packaged-capability-composition.js";
2
+ // The authored-alternate subset, for a renderer that shows alternates and no
3
+ // toolbar — importable without the packaged composition's tool loaders.
4
+ export { CONTENT_ALTERNATE_REGISTRATIONS } from "./content-alternates.js";
2
5
  // Individual registrations, for a host composing a subset rather than the whole
3
6
  // packaged set.
4
7
  export { annotationToolbarRegistration, lineReaderToolRegistration, themeToolRegistration, } from "./registrations/accessibility-tools.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-players/pie-default-tool-loaders",
3
- "version": "0.3.66",
3
+ "version": "0.3.67",
4
4
  "type": "module",
5
5
  "description": "Composition layer for the packaged PIE assessment tools: registrations, tag map, placement presets, universal supports and lazy module loaders",
6
6
  "repository": {
@@ -33,18 +33,18 @@
33
33
  "test": "bun test"
34
34
  },
35
35
  "dependencies": {
36
- "@pie-players/pie-assessment-toolkit": "0.3.66",
37
- "@pie-players/pie-players-shared": "0.3.66",
38
- "@pie-players/pie-tool-annotation-toolbar": "0.3.66",
39
- "@pie-players/pie-tool-answer-eliminator": "0.3.66",
40
- "@pie-players/pie-tool-calculator-desmos": "0.3.66",
41
- "@pie-players/pie-tool-graph": "0.3.66",
42
- "@pie-players/pie-tool-line-reader": "0.3.66",
43
- "@pie-players/pie-tool-periodic-table": "0.3.66",
44
- "@pie-players/pie-tool-protractor": "0.3.66",
45
- "@pie-players/pie-tool-ruler": "0.3.66",
46
- "@pie-players/pie-tool-theme": "0.3.66",
47
- "@pie-players/pie-tool-tts-inline": "0.3.66"
36
+ "@pie-players/pie-assessment-toolkit": "0.3.67",
37
+ "@pie-players/pie-players-shared": "0.3.67",
38
+ "@pie-players/pie-tool-annotation-toolbar": "0.3.67",
39
+ "@pie-players/pie-tool-answer-eliminator": "0.3.67",
40
+ "@pie-players/pie-tool-calculator-desmos": "0.3.67",
41
+ "@pie-players/pie-tool-graph": "0.3.67",
42
+ "@pie-players/pie-tool-line-reader": "0.3.67",
43
+ "@pie-players/pie-tool-periodic-table": "0.3.67",
44
+ "@pie-players/pie-tool-protractor": "0.3.67",
45
+ "@pie-players/pie-tool-ruler": "0.3.67",
46
+ "@pie-players/pie-tool-theme": "0.3.67",
47
+ "@pie-players/pie-tool-tts-inline": "0.3.67"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@biomejs/biome": "^2.5.7",