@pie-players/pie-section-player 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.
Files changed (145) hide show
  1. package/README.md +395 -149
  2. package/dist/browser/assets/evaluation-worker-CORp9m0K.js +156459 -0
  3. package/dist/browser/chunks/ItemToolBar-jx38w99s-58defccc.js +1 -0
  4. package/dist/browser/chunks/PUA-tLuTiQ7--f2b27953.js +1 -0
  5. package/dist/browser/chunks/ToolCoordinator-cc2dc319.js +1 -0
  6. package/dist/browser/chunks/accents-BTUYmhn9-cafeb96e.js +1 -0
  7. package/dist/browser/chunks/accents-b-i-CngHZsLL-e0eb98fd.js +1 -0
  8. package/dist/browser/chunks/arabic-BzEHMVZD-30ac1ade.js +1 -0
  9. package/dist/browser/chunks/arrows-VjxlU-jv-2e17c192.js +1 -0
  10. package/dist/browser/chunks/base-dfd67c41.js +1 -0
  11. package/dist/browser/chunks/braille-BeWC_Ruq-a3bb8ef9.js +1 -0
  12. package/dist/browser/chunks/braille-d-Dk6J96GO-d832bfbf.js +1 -0
  13. package/dist/browser/chunks/browser-a3c32178.js +37 -0
  14. package/dist/browser/chunks/calculator-element-271c142f.js +13 -0
  15. package/dist/browser/chunks/calligraphic-Cew9cU3x-04cf0735.js +1 -0
  16. package/dist/browser/chunks/catalog-context-46d3e50e.js +1 -0
  17. package/dist/browser/chunks/catalog-owner-d602f784.js +1 -0
  18. package/dist/browser/chunks/cherokee-Cny3FYho-4da7d2f3.js +1 -0
  19. package/dist/browser/chunks/classPrivateFieldGet2-338e0179.js +1 -0
  20. package/dist/browser/chunks/cyrillic-CfCDulXU-5550df0b.js +1 -0
  21. package/dist/browser/chunks/cyrillic-ss-lU7bNGG9-12eb0188.js +1 -0
  22. package/dist/browser/chunks/defineProperty-a20a667d.js +1 -0
  23. package/dist/browser/chunks/devanagari-CDIz2h-r-18c38725.js +1 -0
  24. package/dist/browser/chunks/dist-41b39e7f.js +1 -0
  25. package/dist/browser/chunks/dist-59132a53.js +1 -0
  26. package/dist/browser/chunks/dist-60d7afef.js +1 -0
  27. package/dist/browser/chunks/dist-ca9b9622.js +1 -0
  28. package/dist/browser/chunks/double-struck-BpJEQk8y-500ce8dd.js +1 -0
  29. package/dist/browser/chunks/en-5ff22e17.js +1 -0
  30. package/dist/browser/chunks/es-a0ba6cb6.js +1 -0
  31. package/dist/browser/chunks/focus-trap-44913bf3.js +1 -0
  32. package/dist/browser/chunks/fraktur-rLEq9DEH-44cc14d8.js +1 -0
  33. package/dist/browser/chunks/greek-BlraJTyL-90ce8924.js +1 -0
  34. package/dist/browser/chunks/greek-ss-D-EN2PK0-91610739.js +1 -0
  35. package/dist/browser/chunks/hebrew-GiQZeybp-b583f555.js +1 -0
  36. package/dist/browser/chunks/latin-b-BhEnC7R2-d13e06ff.js +1 -0
  37. package/dist/browser/chunks/latin-bi-DqiIKv3U-1dec8705.js +1 -0
  38. package/dist/browser/chunks/latin-i-B1xtwaE1-21637466.js +1 -0
  39. package/dist/browser/chunks/latin-xfWFlLkD-5bcea5cf.js +1 -0
  40. package/dist/browser/chunks/logger-8b07fb72.js +1 -0
  41. package/dist/browser/chunks/marrows-DD1NgMQi-15b63755.js +1 -0
  42. package/dist/browser/chunks/math-DpWn1mbG-38eeb914.js +1 -0
  43. package/dist/browser/chunks/math-rendering-ready-9a0fd90a.js +1 -0
  44. package/dist/browser/chunks/mathjax-BKrHE4xs-3ca05bf6.js +232 -0
  45. package/dist/browser/chunks/module-0191e321.js +74 -0
  46. package/dist/browser/chunks/module-shim-58659a86.js +0 -0
  47. package/dist/browser/chunks/module-shim-b4470740.js +12 -0
  48. package/dist/browser/chunks/monospace-D116QD2a-98d484fd.js +1 -0
  49. package/dist/browser/chunks/monospace-ex-DcXpouKS-456b403c.js +1 -0
  50. package/dist/browser/chunks/monospace-l-Ct5wkMDs-f34a4a9e.js +1 -0
  51. package/dist/browser/chunks/mshapes-DCp86WSX-c0055952.js +1 -0
  52. package/dist/browser/chunks/nl-NL-364d61b9.js +1 -0
  53. package/dist/browser/chunks/nl-NL-8b7e6d4b.js +1 -0
  54. package/dist/browser/chunks/overlay-containment-edaaff13.js +1 -0
  55. package/dist/browser/chunks/overlay-placement-e8058232.js +1 -0
  56. package/dist/browser/chunks/phonetics-BwOCw2Y9-d2e3af59.js +1 -0
  57. package/dist/browser/chunks/phonetics-ss-CRtMn02f-579b6135.js +1 -0
  58. package/dist/browser/chunks/pie-api-client-687c319a.js +1 -0
  59. package/dist/browser/chunks/pointer-gesture-ce75f0a7.js +1 -0
  60. package/dist/browser/chunks/preload-helper-6ad28da3.js +1 -0
  61. package/dist/browser/chunks/provider-4c704118.js +1 -0
  62. package/dist/browser/chunks/rolldown-runtime-1287ba31.js +1 -0
  63. package/dist/browser/chunks/runtime-wcU7KOFU-ac86d7b8.js +8536 -0
  64. package/dist/browser/chunks/sanitize-svg-icon-b9082bba.js +3 -0
  65. package/dist/browser/chunks/sans-serif-BYPZKlE9-2efdbcd9.js +1 -0
  66. package/dist/browser/chunks/sans-serif-b-B0kRKiC--b5530dce.js +1 -0
  67. package/dist/browser/chunks/sans-serif-bi-DXWul6mu-5370dba4.js +1 -0
  68. package/dist/browser/chunks/sans-serif-ex-Boux1kMP-aa178f31.js +1 -0
  69. package/dist/browser/chunks/sans-serif-i-676RFaSO-2db54474.js +1 -0
  70. package/dist/browser/chunks/sans-serif-r-DrN9xdZt-0fc72eea.js +1 -0
  71. package/dist/browser/chunks/script-0ohehnXc-526904f4.js +1 -0
  72. package/dist/browser/chunks/shapes-BG47NodJ-d59b0eca.js +1 -0
  73. package/dist/browser/chunks/src-BcptuNS5-ed25d7fd.js +191 -0
  74. package/dist/browser/chunks/sre-0162a7a9.js +53 -0
  75. package/dist/browser/chunks/sre-engine-ace23548.js +1 -0
  76. package/dist/browser/chunks/sre-engine-jd8cc08x-42d270e5.js +1 -0
  77. package/dist/browser/chunks/sre-locales-112320af.js +1 -0
  78. package/dist/browser/chunks/symbols-BqnUxf_t-83087e87.js +1 -0
  79. package/dist/browser/chunks/symbols-b-i-eg9k5hmF-9c461ac2.js +1 -0
  80. package/dist/browser/chunks/tool-annotation-toolbar-997438b4.js +249 -0
  81. package/dist/browser/chunks/tool-answer-eliminator-35483abd.js +13 -0
  82. package/dist/browser/chunks/tool-color-scheme-b7de5cdf.js +26 -0
  83. package/dist/browser/chunks/tool-dictionary-cecff3b4.js +7 -0
  84. package/dist/browser/chunks/tool-graph-cb0338e8.js +11 -0
  85. package/dist/browser/chunks/tool-host-contract-b93b482c.js +1 -0
  86. package/dist/browser/chunks/tool-instance-id-2a92deb0.js +1 -0
  87. package/dist/browser/chunks/tool-line-reader-f8ef3c6a.js +62 -0
  88. package/dist/browser/chunks/tool-periodic-table-43b133b8.js +153 -0
  89. package/dist/browser/chunks/tool-picture-dictionary-33721e91.js +4 -0
  90. package/dist/browser/chunks/tool-protractor-23f77028.js +17 -0
  91. package/dist/browser/chunks/tool-ruler-1d9a03a6.js +15 -0
  92. package/dist/browser/chunks/tool-tts-inline-98c2ce7a.js +179 -0
  93. package/dist/browser/chunks/tts-runtime-config-a7ab1ad4.js +194 -0
  94. package/dist/browser/chunks/variants-2LRNhOUP-966fc49d.js +1 -0
  95. package/dist/browser/chunks/versioned-tag-54a76be9.js +1 -0
  96. package/dist/browser/pie-section-player.js +1727 -0
  97. package/dist/browser.d.ts +10 -0
  98. package/dist/chunks/ItemToolBar-jx38w99s-1287ba31.js +28 -0
  99. package/dist/chunks/module-shim-58659a86.js +2129 -0
  100. package/dist/chunks/{nl-NL-9312c316.js → nl-NL-364d61b9.js} +9 -26
  101. package/dist/chunks/sre-engine-jd8cc08x-42d270e5.js +8 -0
  102. package/dist/components/shared/composition.d.ts +3 -2
  103. package/dist/components/shared/framework-error-latch.d.ts +32 -0
  104. package/dist/components/shared/host-element.d.ts +10 -0
  105. package/dist/components/shared/kernel-host-default-body.d.ts +14 -0
  106. package/dist/components/shared/layout-host-methods.d.ts +385 -0
  107. package/dist/components/shared/missing-tool-providers.d.ts +16 -0
  108. package/dist/components/shared/player-preload.d.ts +14 -10
  109. package/dist/components/shared/section-player-backend-delivery.d.ts +1 -1
  110. package/dist/components/shared/section-player-card-context.d.ts +5 -1
  111. package/dist/components/shared/section-player-host-runtime.d.ts +32 -19
  112. package/dist/components/shared/section-player-layout-context.d.ts +77 -0
  113. package/dist/components/shared/section-player-own-event.d.ts +10 -0
  114. package/dist/components/shared/section-player-runtime-callbacks.d.ts +1 -1
  115. package/dist/components/shared/section-player-shell-layout.svelte.d.ts +3 -11
  116. package/dist/components/shared/section-player-view-state.d.ts +6 -1
  117. package/dist/components/shared/toolkit-ready-wait.d.ts +16 -0
  118. package/dist/contracts/host-hooks.d.ts +4 -12
  119. package/dist/contracts/host-hooks.js +0 -0
  120. package/dist/contracts/runtime-host-contract.d.ts +0 -5
  121. package/dist/contracts/runtime-host-contract.js +0 -0
  122. package/dist/controllers/SectionController.d.ts +14 -0
  123. package/dist/controllers/toolkit-section-contracts.d.ts +1 -17
  124. package/dist/controllers/types.d.ts +25 -11
  125. package/dist/item-section/index.d.ts +22 -0
  126. package/dist/item-section/index.js +37 -0
  127. package/dist/pie-section-player.d.ts +4 -6
  128. package/dist/pie-section-player.js +22006 -41076
  129. package/dist/policies/index.d.ts +5 -16
  130. package/dist/policies/index.js +17 -0
  131. package/dist/policies/types.d.ts +0 -4
  132. package/package.json +33 -68
  133. package/dist/chunks/module-a516757f.js +0 -73997
  134. package/dist/chunks/nl-NL-ef6dd604.js +0 -505
  135. package/dist/chunks/pie-api-client-22de9d9c.js +0 -168
  136. package/dist/chunks/rolldown-runtime-1287ba31.js +0 -20
  137. package/dist/chunks/sre-0162a7a9.js +0 -17637
  138. package/dist/components/item-shell-element.d.ts +0 -1
  139. package/dist/components/shared/shell-registration.d.ts +0 -55
  140. package/dist/contracts/layout-contract.d.ts +0 -17
  141. package/dist/contracts/layout-parity-metadata.d.ts +0 -4
  142. package/dist/contracts/public-events.d.ts +0 -93
  143. package/dist/contracts/stages.d.ts +0 -10
  144. package/dist/policies/guards.d.ts +0 -2
  145. package/dist/utils/z-index.d.ts +0 -5
@@ -43,6 +43,7 @@ var e = {
43
43
  items: "Vragen",
44
44
  section: "Onderdeel",
45
45
  loadingSection: "Onderdeel wordt geladen…",
46
+ sectionLoadError: "Het onderdeel kon niet worden geladen.",
46
47
  loadingPassage: "Tekst wordt geladen…",
47
48
  configurationError: "Configuratiefout",
48
49
  playerError: "Fout in de speler",
@@ -108,6 +109,11 @@ var e = {
108
109
  centerA11y: "Venster centreren",
109
110
  closeA11y: "Hulpmiddel sluiten"
110
111
  },
112
+ placement: {
113
+ controlsA11y: "Verplaatsen en draaien",
114
+ rotateClockwiseA11y: "{degrees}° rechtsom draaien",
115
+ rotateCounterclockwiseA11y: "{degrees}° linksom draaien"
116
+ },
111
117
  announce: {
112
118
  movedUp: "Omhoog verplaatst naar {position}",
113
119
  movedDown: "Omlaag verplaatst naar {position}",
@@ -135,8 +141,8 @@ var e = {
135
141
  },
136
142
  graph: {
137
143
  name: "Grafiek",
138
- description: "Grafische rekenmachine en assenstelsel",
139
- buttonA11y: "Grafiek, grafische rekenmachine",
144
+ description: "Assenstelsel",
145
+ buttonA11y: "Grafiek, assenstelsel",
140
146
  tooltip: "Grafiek",
141
147
  toolA11y: "Grafiekhulpmiddel — punten en lijnen tekenen in een assenstelsel",
142
148
  canvasA11y: "Tekenvlak — gebruik de hulpmiddelen om punten toe te voegen en lijnen te tekenen",
@@ -300,30 +306,6 @@ var e = {
300
306
  textToSpeech: {
301
307
  name: "Voorlezen",
302
308
  description: "Inhoud laten voorlezen",
303
- toolA11y: "Voorleeshulp",
304
- title: "Voorlezen",
305
- initializing: "Wordt gestart…",
306
- initFailed: "Voorlezen kon niet worden gestart.",
307
- selectText: "Selecteer tekst op de pagina om die te laten voorlezen.",
308
- speed: "Snelheid:",
309
- play: "Voorlezen",
310
- pause: "Pauzeren",
311
- resume: "Hervatten",
312
- stop: "Stoppen",
313
- speaking: "Aan het voorlezen…",
314
- paused: "Gepauzeerd",
315
- charactersSelected: {
316
- one: "{count} teken geselecteerd",
317
- other: "{count} tekens geselecteerd"
318
- },
319
- rate: {
320
- slow: "Langzaam",
321
- slower: "Langzamer",
322
- normal: "Normaal",
323
- faster: "Sneller",
324
- fast: "Snel",
325
- veryFast: "Zeer snel"
326
- },
327
309
  inline: {
328
310
  controlsA11y: "Voorleesknoppen",
329
311
  playbackSpeedA11y: "Voorleessnelheid",
@@ -429,6 +411,7 @@ var e = {
429
411
  resolvedTools: "Toegekende hulpmiddelen (toolkit)",
430
412
  provenanceSummary: "Overzicht van herkomst van het hulpmiddelenbeleid",
431
413
  perToolDecisions: "Beslissingen per hulpmiddel",
414
+ policyDiagnostics: "Diagnose van het hulpmiddelenbeleid",
432
415
  profileReadOnly: "PNP-profiel (alleen lezen)"
433
416
  },
434
417
  tts: {
@@ -0,0 +1,8 @@
1
+ import { n as t } from "./ItemToolBar-jx38w99s-1287ba31.js";
2
+ import * as a from "speech-rule-engine";
3
+ var r = a.default ?? a;
4
+ r.setupEngine(t());
5
+ var o = r;
6
+ export {
7
+ o as default
8
+ };
@@ -1,8 +1,9 @@
1
- import { ItemEntity } from '@pie-players/pie-players-shared/types';
1
+ import { ItemEntity, ItemSettings } from '@pie-players/pie-players-shared/types';
2
2
  import { SectionCompositionModel } from '../../controllers/types.js';
3
3
  export declare const EMPTY_ITEM_SESSION: Record<string, unknown>;
4
4
  export declare const EMPTY_COMPOSITION: SectionCompositionModel;
5
- export declare function getEntityTitle(entity: unknown): string;
6
5
  export declare function getCanonicalItemIdForItem(compositionModel: SectionCompositionModel, item: ItemEntity): string;
6
+ /** The item's policy settings from its assessment item reference. */
7
+ export declare function getItemSettingsForItem(compositionModel: SectionCompositionModel, item: ItemEntity): ItemSettings | null;
7
8
  export declare function getSessionForItem(compositionModel: SectionCompositionModel, item: ItemEntity): unknown;
8
9
  export declare function getSessionForItemOrEmpty(compositionModel: SectionCompositionModel, item: ItemEntity): Record<string, unknown>;
@@ -0,0 +1,32 @@
1
+ import { FrameworkErrorModel } from '@pie-players/pie-assessment-toolkit';
2
+ /**
3
+ * The section player's readiness error latch. A non-recoverable framework error
4
+ * latches the scope its report site set: a `cohort` error fails the section it
5
+ * was reported for and clears when the cohort rolls; a `runtime` error fails
6
+ * every later section, since they run on the same coordinator. A recoverable
7
+ * error latches nothing.
8
+ *
9
+ * A toolkit bootstrap failure is a runtime error held against the coordinator
10
+ * the toolkit had announced when it was reported. It clears when the toolkit
11
+ * announces a different one, which it builds once the host corrects the input
12
+ * that failed: the coordinator the failure took down is no longer the one later
13
+ * sections run on.
14
+ *
15
+ * `element-preload` latches nothing either. The items pane reports its warmup
16
+ * outcome with the composition it was for, and the kernel reads that instead: a
17
+ * latched event cannot tell which section's warmup failed.
18
+ */
19
+ export type FrameworkErrorLatch = {
20
+ readonly cohort: boolean;
21
+ readonly runtime: boolean;
22
+ /** The coordinator a bootstrap failure was reported under, while one is latched. */
23
+ readonly bootstrap: {
24
+ readonly coordinator: unknown;
25
+ } | null;
26
+ };
27
+ export declare const CLEAR_FRAMEWORK_ERROR_LATCH: FrameworkErrorLatch;
28
+ export declare function latchFrameworkError(latch: FrameworkErrorLatch, detail: Pick<FrameworkErrorModel, "recoverable" | "scope" | "kind"> | null | undefined, coordinator: unknown): FrameworkErrorLatch;
29
+ export declare function rollFrameworkErrorLatch(latch: FrameworkErrorLatch): FrameworkErrorLatch;
30
+ /** Applied on each `toolkit-ready`, with the coordinator it announces. */
31
+ export declare function announceToolkitCoordinator(latch: FrameworkErrorLatch, coordinator: unknown): FrameworkErrorLatch;
32
+ export declare function isFrameworkErrorLatched(latch: FrameworkErrorLatch): boolean;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * The custom element a component renders into, reached from an anchor node at
3
+ * the top of its template.
4
+ *
5
+ * The anchor's parent node: the element itself under `shadow: "none"`, or its
6
+ * shadow root otherwise. The anchor's root node names the host only in the second
7
+ * case. A light-DOM element inside another component's shadow root shares that
8
+ * root, so resolving through `getRootNode()` returned the outer component.
9
+ */
10
+ export declare function getHostElementFromAnchor(anchor: HTMLElement | null): HTMLElement | null;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * The kernel host's default body: its stock arrangement of the panes, present
3
+ * exactly while the host gives the element no element children of its own.
4
+ *
5
+ * Mounted into the element's light DOM, beside any children, where the player's
6
+ * item content renders in every layout: that is where page styles, the content
7
+ * stylesheet and the item players' own injected styles reach it. As fallback
8
+ * content of the shadow root's slot it would sit in the shadow tree, out of their
9
+ * reach, and stay mounted, hidden, beside a host's own panes.
10
+ *
11
+ * Text and comment children do not count, so markup whitespace and a framework's
12
+ * placeholder comments leave the default in place. Returns the teardown.
13
+ */
14
+ export declare function attachKernelHostDefaultBody(host: HTMLElement, mountBody: (target: HTMLElement) => () => void): () => void;
@@ -0,0 +1,385 @@
1
+ import { SectionControllerHandle, SectionControllerSessionState } from '@pie-players/pie-assessment-toolkit';
2
+ import { SectionPlayerSnapshot } from '../../contracts/runtime-host-contract.js';
3
+ export declare const BOOTSTRAP_SNAPSHOT: {
4
+ readonly composition: {
5
+ readonly itemsCount: 0;
6
+ readonly passagesCount: 0;
7
+ };
8
+ readonly navigation: {
9
+ readonly currentIndex: 0;
10
+ readonly totalItems: 0;
11
+ readonly canNext: false;
12
+ readonly canPrevious: false;
13
+ };
14
+ };
15
+ /**
16
+ * For a layout element's `customElement.extend`. `unmountedSnapshot` is what
17
+ * that element's `getSnapshot` returns while its kernel is not bound.
18
+ */
19
+ export declare function withHostMethods(unmountedSnapshot: SectionPlayerSnapshot | null): <Base extends CustomElementConstructor>(ElementClass: Base) => {
20
+ new (...params: any[]): {
21
+ getSnapshot(): SectionPlayerSnapshot | null;
22
+ navigateTo(index: number): boolean;
23
+ navigateNext(): boolean;
24
+ navigatePrevious(): boolean;
25
+ getSectionController(): SectionControllerHandle | null;
26
+ /**
27
+ * A fresh snapshot on each read once the controller is published. The
28
+ * item player instead returns the host's own object, kept current by
29
+ * projection; no host reads a section session by reference.
30
+ */
31
+ get session(): SectionControllerSessionState | null;
32
+ set session(value: SectionControllerSessionState | null);
33
+ waitForSectionController(timeoutMs?: number): Promise<SectionControllerHandle | null>;
34
+ accessKey: string;
35
+ readonly accessKeyLabel: string;
36
+ autocapitalize: string;
37
+ autocorrect: boolean;
38
+ dir: string;
39
+ draggable: boolean;
40
+ hidden: boolean;
41
+ inert: boolean;
42
+ innerText: string;
43
+ lang: string;
44
+ readonly offsetHeight: number;
45
+ readonly offsetLeft: number;
46
+ readonly offsetParent: Element | null;
47
+ readonly offsetTop: number;
48
+ readonly offsetWidth: number;
49
+ outerText: string;
50
+ popover: string | null;
51
+ spellcheck: boolean;
52
+ title: string;
53
+ translate: boolean;
54
+ writingSuggestions: string;
55
+ attachInternals(): ElementInternals;
56
+ click(): void;
57
+ hidePopover(): void;
58
+ showPopover(): void;
59
+ togglePopover(options?: boolean): boolean;
60
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
61
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
62
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
63
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
64
+ readonly attributes: NamedNodeMap;
65
+ get classList(): DOMTokenList;
66
+ set classList(value: string);
67
+ className: string;
68
+ readonly clientHeight: number;
69
+ readonly clientLeft: number;
70
+ readonly clientTop: number;
71
+ readonly clientWidth: number;
72
+ readonly currentCSSZoom: number;
73
+ id: string;
74
+ innerHTML: string;
75
+ readonly localName: string;
76
+ readonly namespaceURI: string | null;
77
+ onfullscreenchange: ((this: Element, ev: Event) => any) | null;
78
+ onfullscreenerror: ((this: Element, ev: Event) => any) | null;
79
+ outerHTML: string;
80
+ readonly ownerDocument: Document;
81
+ get part(): DOMTokenList;
82
+ set part(value: string);
83
+ readonly prefix: string | null;
84
+ readonly scrollHeight: number;
85
+ scrollLeft: number;
86
+ scrollTop: number;
87
+ readonly scrollWidth: number;
88
+ readonly shadowRoot: ShadowRoot | null;
89
+ slot: string;
90
+ readonly tagName: string;
91
+ attachShadow(init: ShadowRootInit): ShadowRoot;
92
+ checkVisibility(options?: CheckVisibilityOptions): boolean;
93
+ closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
94
+ closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
95
+ closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
96
+ closest<E extends Element = Element>(selectors: string): E | null;
97
+ computedStyleMap(): StylePropertyMapReadOnly;
98
+ getAttribute(qualifiedName: string): string | null;
99
+ getAttributeNS(namespace: string | null, localName: string): string | null;
100
+ getAttributeNames(): string[];
101
+ getAttributeNode(qualifiedName: string): Attr | null;
102
+ getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
103
+ getBoundingClientRect(): DOMRect;
104
+ getClientRects(): DOMRectList;
105
+ getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
106
+ getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
107
+ getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
108
+ getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
109
+ getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
110
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
111
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
112
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
113
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
114
+ getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
115
+ getHTML(options?: GetHTMLOptions): string;
116
+ hasAttribute(qualifiedName: string): boolean;
117
+ hasAttributeNS(namespace: string | null, localName: string): boolean;
118
+ hasAttributes(): boolean;
119
+ hasPointerCapture(pointerId: number): boolean;
120
+ insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
121
+ insertAdjacentHTML(position: InsertPosition, string: string): void;
122
+ insertAdjacentText(where: InsertPosition, data: string): void;
123
+ matches(selectors: string): boolean;
124
+ releasePointerCapture(pointerId: number): void;
125
+ removeAttribute(qualifiedName: string): void;
126
+ removeAttributeNS(namespace: string | null, localName: string): void;
127
+ removeAttributeNode(attr: Attr): Attr;
128
+ requestFullscreen(options?: FullscreenOptions): Promise<void>;
129
+ requestPointerLock(options?: PointerLockOptions): Promise<void>;
130
+ scroll(options?: ScrollToOptions): void;
131
+ scroll(x: number, y: number): void;
132
+ scrollBy(options?: ScrollToOptions): void;
133
+ scrollBy(x: number, y: number): void;
134
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
135
+ scrollTo(options?: ScrollToOptions): void;
136
+ scrollTo(x: number, y: number): void;
137
+ setAttribute(qualifiedName: string, value: string): void;
138
+ setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
139
+ setAttributeNode(attr: Attr): Attr | null;
140
+ setAttributeNodeNS(attr: Attr): Attr | null;
141
+ setHTMLUnsafe(html: string): void;
142
+ setPointerCapture(pointerId: number): void;
143
+ toggleAttribute(qualifiedName: string, force?: boolean): boolean;
144
+ webkitMatchesSelector(selectors: string): boolean;
145
+ get textContent(): string;
146
+ set textContent(value: string | null);
147
+ readonly baseURI: string;
148
+ readonly childNodes: NodeListOf<ChildNode>;
149
+ readonly firstChild: ChildNode | null;
150
+ readonly isConnected: boolean;
151
+ readonly lastChild: ChildNode | null;
152
+ readonly nextSibling: ChildNode | null;
153
+ readonly nodeName: string;
154
+ readonly nodeType: number;
155
+ nodeValue: string | null;
156
+ readonly parentElement: HTMLElement | null;
157
+ readonly parentNode: ParentNode | null;
158
+ readonly previousSibling: ChildNode | null;
159
+ appendChild<T extends Node>(node: T): T;
160
+ cloneNode(subtree?: boolean): Node;
161
+ compareDocumentPosition(other: Node): number;
162
+ contains(other: Node | null): boolean;
163
+ getRootNode(options?: GetRootNodeOptions): Node;
164
+ hasChildNodes(): boolean;
165
+ insertBefore<T extends Node>(node: T, child: Node | null): T;
166
+ isDefaultNamespace(namespace: string | null): boolean;
167
+ isEqualNode(otherNode: Node | null): boolean;
168
+ isSameNode(otherNode: Node | null): boolean;
169
+ lookupNamespaceURI(prefix: string | null): string | null;
170
+ lookupPrefix(namespace: string | null): string | null;
171
+ normalize(): void;
172
+ removeChild<T extends Node>(child: T): T;
173
+ replaceChild<T extends Node>(node: Node, child: T): T;
174
+ readonly ELEMENT_NODE: 1;
175
+ readonly ATTRIBUTE_NODE: 2;
176
+ readonly TEXT_NODE: 3;
177
+ readonly CDATA_SECTION_NODE: 4;
178
+ readonly ENTITY_REFERENCE_NODE: 5;
179
+ readonly ENTITY_NODE: 6;
180
+ readonly PROCESSING_INSTRUCTION_NODE: 7;
181
+ readonly COMMENT_NODE: 8;
182
+ readonly DOCUMENT_NODE: 9;
183
+ readonly DOCUMENT_TYPE_NODE: 10;
184
+ readonly DOCUMENT_FRAGMENT_NODE: 11;
185
+ readonly NOTATION_NODE: 12;
186
+ readonly DOCUMENT_POSITION_DISCONNECTED: 1;
187
+ readonly DOCUMENT_POSITION_PRECEDING: 2;
188
+ readonly DOCUMENT_POSITION_FOLLOWING: 4;
189
+ readonly DOCUMENT_POSITION_CONTAINS: 8;
190
+ readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
191
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
192
+ dispatchEvent(event: Event): boolean;
193
+ ariaActiveDescendantElement: Element | null;
194
+ ariaAtomic: string | null;
195
+ ariaAutoComplete: string | null;
196
+ ariaBrailleLabel: string | null;
197
+ ariaBrailleRoleDescription: string | null;
198
+ ariaBusy: string | null;
199
+ ariaChecked: string | null;
200
+ ariaColCount: string | null;
201
+ ariaColIndex: string | null;
202
+ ariaColIndexText: string | null;
203
+ ariaColSpan: string | null;
204
+ ariaControlsElements: ReadonlyArray<Element> | null;
205
+ ariaCurrent: string | null;
206
+ ariaDescribedByElements: ReadonlyArray<Element> | null;
207
+ ariaDescription: string | null;
208
+ ariaDetailsElements: ReadonlyArray<Element> | null;
209
+ ariaDisabled: string | null;
210
+ ariaErrorMessageElements: ReadonlyArray<Element> | null;
211
+ ariaExpanded: string | null;
212
+ ariaFlowToElements: ReadonlyArray<Element> | null;
213
+ ariaHasPopup: string | null;
214
+ ariaHidden: string | null;
215
+ ariaInvalid: string | null;
216
+ ariaKeyShortcuts: string | null;
217
+ ariaLabel: string | null;
218
+ ariaLabelledByElements: ReadonlyArray<Element> | null;
219
+ ariaLevel: string | null;
220
+ ariaLive: string | null;
221
+ ariaModal: string | null;
222
+ ariaMultiLine: string | null;
223
+ ariaMultiSelectable: string | null;
224
+ ariaOrientation: string | null;
225
+ ariaOwnsElements: ReadonlyArray<Element> | null;
226
+ ariaPlaceholder: string | null;
227
+ ariaPosInSet: string | null;
228
+ ariaPressed: string | null;
229
+ ariaReadOnly: string | null;
230
+ ariaRelevant: string | null;
231
+ ariaRequired: string | null;
232
+ ariaRoleDescription: string | null;
233
+ ariaRowCount: string | null;
234
+ ariaRowIndex: string | null;
235
+ ariaRowIndexText: string | null;
236
+ ariaRowSpan: string | null;
237
+ ariaSelected: string | null;
238
+ ariaSetSize: string | null;
239
+ ariaSort: string | null;
240
+ ariaValueMax: string | null;
241
+ ariaValueMin: string | null;
242
+ ariaValueNow: string | null;
243
+ ariaValueText: string | null;
244
+ role: string | null;
245
+ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
246
+ getAnimations(options?: GetAnimationsOptions): Animation[];
247
+ after(...nodes: (Node | string)[]): void;
248
+ before(...nodes: (Node | string)[]): void;
249
+ remove(): void;
250
+ replaceWith(...nodes: (Node | string)[]): void;
251
+ readonly nextElementSibling: Element | null;
252
+ readonly previousElementSibling: Element | null;
253
+ readonly childElementCount: number;
254
+ readonly children: HTMLCollection;
255
+ readonly firstElementChild: Element | null;
256
+ readonly lastElementChild: Element | null;
257
+ append(...nodes: (Node | string)[]): void;
258
+ prepend(...nodes: (Node | string)[]): void;
259
+ querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
260
+ querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
261
+ querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
262
+ querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
263
+ querySelector<E extends Element = Element>(selectors: string): E | null;
264
+ querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
265
+ querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
266
+ querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
267
+ querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
268
+ querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
269
+ replaceChildren(...nodes: (Node | string)[]): void;
270
+ readonly assignedSlot: HTMLSlotElement | null;
271
+ readonly attributeStyleMap: StylePropertyMap;
272
+ get style(): CSSStyleDeclaration;
273
+ set style(cssText: string);
274
+ contentEditable: string;
275
+ enterKeyHint: string;
276
+ inputMode: string;
277
+ readonly isContentEditable: boolean;
278
+ onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
279
+ onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
280
+ onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
281
+ onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
282
+ onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
283
+ onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
284
+ onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
285
+ onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
286
+ onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
287
+ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
288
+ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
289
+ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
290
+ oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
291
+ onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
292
+ onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
293
+ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
294
+ oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
295
+ oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
296
+ oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
297
+ oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
298
+ oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
299
+ oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
300
+ ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
301
+ ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
302
+ ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
303
+ ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
304
+ ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
305
+ ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
306
+ ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
307
+ ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
308
+ ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
309
+ onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
310
+ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
311
+ onerror: OnErrorEventHandler;
312
+ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
313
+ onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
314
+ ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
315
+ oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
316
+ oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
317
+ onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
318
+ onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
319
+ onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
320
+ onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
321
+ onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
322
+ onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
323
+ onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
324
+ onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
325
+ onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
326
+ onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
327
+ onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
328
+ onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
329
+ onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
330
+ onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
331
+ onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
332
+ onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
333
+ onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
334
+ onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
335
+ onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
336
+ onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
337
+ onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
338
+ onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
339
+ onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
340
+ onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
341
+ onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
342
+ onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
343
+ onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
344
+ onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
345
+ onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
346
+ onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
347
+ onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
348
+ onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
349
+ onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
350
+ onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
351
+ onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
352
+ onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
353
+ onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
354
+ onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
355
+ onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
356
+ onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
357
+ onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
358
+ onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
359
+ onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
360
+ onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
361
+ ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
362
+ ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
363
+ ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
364
+ ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
365
+ ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
366
+ ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
367
+ ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
368
+ ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
369
+ ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
370
+ ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
371
+ onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
372
+ onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
373
+ onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
374
+ onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
375
+ onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
376
+ onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
377
+ onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
378
+ autofocus: boolean;
379
+ readonly dataset: DOMStringMap;
380
+ nonce?: string;
381
+ tabIndex: number;
382
+ blur(): void;
383
+ focus(options?: FocusOptions): void;
384
+ };
385
+ } & Base;
@@ -0,0 +1,16 @@
1
+ import { ToolkitCoordinatorApi, ToolRegistry } from '@pie-players/pie-assessment-toolkit';
2
+ /**
3
+ * Warn once per placed tool whose registration carries a provider the coordinator
4
+ * has not registered under the tool's id. Reads the coordinator's current
5
+ * placement and providers, so call it only once the coordinator reports ready.
6
+ */
7
+ export declare function reportMissingToolProviders(coordinator: ToolkitCoordinatorApi, toolRegistry: ToolRegistry): void;
8
+ /**
9
+ * Check `coordinator` once it reports ready, and again whenever readiness or its
10
+ * policy inputs change, since placement can. Its providers have registered by
11
+ * then, and a text-to-speech reconfiguration, which unregisters and re-registers
12
+ * that provider, holds readiness until it is back. `waitUntilReady()` is not
13
+ * awaited: it would start text-to-speech a lazy coordinator defers, and retry
14
+ * one that failed. Returns the teardown.
15
+ */
16
+ export declare function watchMissingToolProviders(coordinator: ToolkitCoordinatorApi, toolRegistry: ToolRegistry): () => void;
@@ -46,7 +46,8 @@ export declare class PreloadStageError extends Error {
46
46
  constructor(stage: PreloadStage, cause: unknown);
47
47
  }
48
48
  export declare function getPreloadLogger(componentTag: string): import('@pie-players/pie-players-shared').PieLogger;
49
- export declare function getLoaderView(env: Record<string, unknown>): "author" | "delivery";
49
+ /** The element view the item players render, which pre-warm has to match. */
50
+ export declare function getLoaderView(props: Record<string, unknown>, env: Record<string, unknown>): string;
50
51
  /**
51
52
  * Stable string signature of a list of renderables, used as a react-key
52
53
  * hint for the composition snapshot plumbed through the layout tree.
@@ -91,17 +92,20 @@ export declare function describeBundleHost(backend: IifeBackendConfig | EsmBacke
91
92
  *
92
93
  * Contract:
93
94
  * - `renderables.length === 0` — no-op. Nothing to load.
94
- * - `strategy === "preloaded"` — assert every aggregate tag is already
95
- * registered with `customElements`. Throws `ElementAssertionError`
96
- * (wrapped in `PreloadStageError` with stage `"preloaded-assert"`) on
97
- * any missing tag, surfacing one section-level diagnostic instead of
98
- * N small per-item rejections.
99
- * - Otherwise: aggregate tags, build backend, await `ensureRegistered`.
95
+ * - `strategy === "preloaded"` — align each renderable's authored versions
96
+ * to the page's registrations (`alignPreloadedElementVersions`, as the
97
+ * item player does), define each authored tag of a package registered
98
+ * under another base tag (`defineAuthoredPreloadedTags`), then assert
99
+ * every aggregate tag is registered with `customElements`. Throws
100
+ * `ElementAssertionError` (wrapped in `PreloadStageError` with stage
101
+ * `"preloaded-assert"`) on any missing tag, surfacing one section-level
102
+ * diagnostic instead of N small per-item rejections.
103
+ * - Otherwise: aggregate tags, build backend, install the math renderer
104
+ * unless the strategy is ESM, await `ensureRegistered`.
100
105
  *
101
106
  * On any validation or load failure, rejects with a descriptive Error.
102
- * The caller (section-player widget) is expected to surface the failure
103
- * through an `element-preload-error` event; item-players then attempt
104
- * their own registration and typically get a clean per-tag error.
107
+ * The caller (`SectionItemsPane`) keeps the items unmounted, reports an
108
+ * `element-preload` framework error and dispatches `element-preload-error`.
105
109
  */
106
110
  export declare function warmupSectionElements(args: {
107
111
  strategy: string;
@@ -1,5 +1,5 @@
1
1
  import { BackendConfig } from '@pie-players/pie-item-player';
2
- import { PlayerOverrides, RuntimeConfig } from '@pie-players/pie-assessment-toolkit/runtime/internal';
2
+ import { PlayerOverrides, RuntimeConfig } from '@pie-players/pie-assessment-toolkit/runtime/engine';
3
3
  import { ItemEntity } from '@pie-players/pie-players-shared/types';
4
4
  export type SectionPlayerBackendResolverContext = {
5
5
  itemId: string;
@@ -8,8 +8,12 @@ export type SectionPlayerCardRenderContext = {
8
8
  export declare const sectionPlayerCardRenderContext: {
9
9
  __context__: SectionPlayerCardRenderContext;
10
10
  };
11
- export declare function getHostElementFromAnchor(anchor: HTMLElement | null): HTMLElement | null;
12
11
  export declare function connectSectionPlayerCardRenderContext(host: HTMLElement, onValue: (value: SectionPlayerCardRenderContext) => void): () => void;
12
+ /**
13
+ * A card that subscribes before this provider connects is answered through the
14
+ * document's context root, which replays its request when the provider
15
+ * announces itself.
16
+ */
13
17
  export declare function createSectionPlayerCardRenderContextProvider(host: HTMLElement, initialValue: SectionPlayerCardRenderContext): {
14
18
  setValue: (value: SectionPlayerCardRenderContext) => void;
15
19
  disconnect: () => void;