@pie-players/pie-section-player 0.3.3 → 0.3.5
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.
- package/README.md +123 -5
- package/dist/components/section-player-item-card-element.d.ts +2 -0
- package/dist/components/section-player-item-card-element.d.ts.map +1 -0
- package/dist/components/section-player-items-pane-element.d.ts +2 -0
- package/dist/components/section-player-items-pane-element.d.ts.map +1 -0
- package/dist/components/section-player-kernel-host-element.d.ts +2 -0
- package/dist/components/section-player-kernel-host-element.d.ts.map +1 -0
- package/dist/components/section-player-passage-card-element.d.ts +2 -0
- package/dist/components/section-player-passage-card-element.d.ts.map +1 -0
- package/dist/components/section-player-passages-pane-element.d.ts +2 -0
- package/dist/components/section-player-passages-pane-element.d.ts.map +1 -0
- package/dist/components/section-player-shell-element.d.ts +2 -0
- package/dist/components/section-player-shell-element.d.ts.map +1 -0
- package/dist/components/shared/outer-scrollbars.d.ts +6 -0
- package/dist/components/shared/outer-scrollbars.d.ts.map +1 -0
- package/dist/components/shared/player-action.d.ts +1 -0
- package/dist/components/shared/player-action.d.ts.map +1 -1
- package/dist/components/shared/player-preload.d.ts +5 -0
- package/dist/components/shared/player-preload.d.ts.map +1 -1
- package/dist/components/shared/section-player-card-context.d.ts +15 -0
- package/dist/components/shared/section-player-card-context.d.ts.map +1 -0
- package/dist/components/shared/section-player-props.d.ts +2 -0
- package/dist/components/shared/section-player-props.d.ts.map +1 -0
- package/dist/components/shared/section-player-readiness.d.ts +14 -0
- package/dist/components/shared/section-player-readiness.d.ts.map +1 -0
- package/dist/components/shared/section-player-runtime.d.ts +4 -4
- package/dist/components/shared/section-player-runtime.d.ts.map +1 -1
- package/dist/components/shared/section-player-view-state.d.ts +9 -0
- package/dist/components/shared/section-player-view-state.d.ts.map +1 -1
- package/dist/contracts/layout-contract.d.ts +18 -0
- package/dist/contracts/layout-contract.d.ts.map +1 -0
- package/dist/contracts/layout-parity-metadata.d.ts +4 -0
- package/dist/contracts/layout-parity-metadata.d.ts.map +1 -0
- package/dist/contracts/public-events.d.ts +25 -0
- package/dist/contracts/public-events.d.ts.map +1 -0
- package/dist/contracts/runtime-host-contract.d.ts +29 -0
- package/dist/contracts/runtime-host-contract.d.ts.map +1 -0
- package/dist/controllers/SectionController.d.ts +10 -14
- package/dist/controllers/SectionController.d.ts.map +1 -1
- package/dist/controllers/toolkit-section-contracts.d.ts +1 -1
- package/dist/controllers/toolkit-section-contracts.d.ts.map +1 -1
- package/dist/controllers/types.d.ts +27 -13
- package/dist/controllers/types.d.ts.map +1 -1
- package/dist/index-CGEKDUBQ-C-8EFMUk.js +216 -0
- package/dist/index-DF-Dk87f-lxErM8bo.js +178 -0
- package/dist/pie-section-player.d.ts +7 -0
- package/dist/pie-section-player.d.ts.map +1 -1
- package/dist/pie-section-player.js +8249 -7564
- package/dist/{player-preload-9v0AQsMd.js → player-preload-Boa1VXUc.js} +2707 -2649
- package/dist/policies/guards.d.ts +3 -0
- package/dist/policies/guards.d.ts.map +1 -0
- package/dist/policies/index.d.ts +3 -0
- package/dist/policies/index.d.ts.map +1 -0
- package/dist/policies/types.d.ts +23 -0
- package/dist/policies/types.d.ts.map +1 -0
- package/dist/tool-annotation-toolbar-DJvpXk1K.js +4917 -0
- package/dist/utils/player-preload.js +1 -1
- package/package.json +54 -13
- package/dist/tool-annotation-toolbar-m4Mv2j0H.js +0 -4305
- package/src/components/ItemShellElement.svelte +0 -302
- package/src/components/PassageShellElement.svelte +0 -217
- package/src/components/PieSectionPlayerBaseElement.svelte +0 -245
- package/src/components/PieSectionPlayerSplitPaneElement.svelte +0 -675
- package/src/components/PieSectionPlayerVerticalElement.svelte +0 -439
- package/src/components/shared/SectionItemCard.svelte +0 -92
- package/src/components/shared/SectionPassageCard.svelte +0 -88
package/README.md
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
# @pie-players/pie-section-player
|
|
2
2
|
|
|
3
|
-
Section rendering package
|
|
3
|
+
Section rendering package with layout custom elements:
|
|
4
4
|
|
|
5
5
|
- `pie-section-player-splitpane`
|
|
6
|
+
- `pie-section-player-vertical`
|
|
6
7
|
|
|
7
8
|
The package no longer exposes the legacy `pie-section-player` layout orchestration API.
|
|
8
9
|
|
|
@@ -18,6 +19,9 @@ Import the custom-element registration entrypoint in consumers:
|
|
|
18
19
|
|
|
19
20
|
```ts
|
|
20
21
|
import '@pie-players/pie-section-player/components/section-player-splitpane-element';
|
|
22
|
+
import '@pie-players/pie-section-player/components/section-player-vertical-element';
|
|
23
|
+
import '@pie-players/pie-section-player/components/section-player-item-card-element';
|
|
24
|
+
import '@pie-players/pie-section-player/components/section-player-passage-card-element';
|
|
21
25
|
```
|
|
22
26
|
|
|
23
27
|
Render in HTML/Svelte/JSX:
|
|
@@ -30,22 +34,136 @@ Set complex values (`runtime`, `section`, `env`) as JS properties.
|
|
|
30
34
|
|
|
31
35
|
## Runtime Inputs
|
|
32
36
|
|
|
33
|
-
|
|
37
|
+
Both layout elements support:
|
|
34
38
|
|
|
35
|
-
- `runtime` (object): coordinator/tools/player runtime bundle
|
|
39
|
+
- `runtime` (object): primary coordinator/tools/player runtime bundle
|
|
36
40
|
- `section` (object): assessment section payload
|
|
37
|
-
- `env` (object): `{ mode, role }`
|
|
41
|
+
- `env` (object): optional top-level override for `{ mode, role }`
|
|
38
42
|
- `toolbar-position` (string): `top|right|bottom|left|none`
|
|
39
|
-
- `
|
|
43
|
+
- `narrow-layout-breakpoint` (number, optional): viewport width in px below which the layout collapses (split pane: single column; vertical: toolbar moves to top). Clamped to 400–2000; default 1100.
|
|
44
|
+
- `show-toolbar` (boolean-like): accepts `true/false` and common string forms (`"true"`, `"false"`, `"1"`, `"0"`, `"yes"`, `"no"`)
|
|
45
|
+
|
|
46
|
+
### API direction: CE defaults first, JS customization for advanced cases
|
|
47
|
+
|
|
48
|
+
The intended usage model is:
|
|
49
|
+
|
|
50
|
+
- **CE props for default/standard flows (roughly 90% use cases)**:
|
|
51
|
+
- `assessment-id`, `section`, `section-id`, `attempt-id`
|
|
52
|
+
- `show-toolbar`, `toolbar-position`, `narrow-layout-breakpoint`, `enabled-tools`, `item-toolbar-tools`, `passage-toolbar-tools`
|
|
53
|
+
- **JS API for advanced customization**:
|
|
54
|
+
- Get the controller handle via `getSectionController()` or `waitForSectionController()`
|
|
55
|
+
- Listen to `section-controller-ready`
|
|
56
|
+
- Apply custom policy/gating in host code (for example, domain-specific `canNext` based on controller events like `section-items-complete-changed`)
|
|
57
|
+
- Compose forward/backward eligibility in host code using `selectNavigation()` + host state; there is intentionally no separate parallel CE gating API for this
|
|
58
|
+
|
|
59
|
+
Advanced CE props are still supported as escape hatches (`runtime`, `coordinator`, `createSectionController`, etc.), but hosts should prefer JS/controller composition for non-standard behavior.
|
|
60
|
+
|
|
61
|
+
### Navigation signals
|
|
62
|
+
|
|
63
|
+
- `item-selected`: item-level navigation change within the current section in the `SectionController` broadcast stream (`itemIndex`, `currentItemId`, `totalItems`).
|
|
64
|
+
- `section-navigation-change`: section-level navigation/selection change in the `SectionController` broadcast stream (`previousSectionId`, `currentSectionId`, `reason`).
|
|
65
|
+
|
|
66
|
+
Runtime precedence is explicit:
|
|
67
|
+
|
|
68
|
+
- `runtime` values are primary for runtime fields (`assessmentId`, `playerType`, `player`, `lazyInit`, `tools`, `accessibility`, `coordinator`, `createSectionController`, `isolation`, `env`).
|
|
69
|
+
- Top-level runtime-like props are treated as compatibility/override inputs when a corresponding `runtime` field is absent.
|
|
70
|
+
- Toolbar placement overrides (`enabled-tools`, `item-toolbar-tools`, `passage-toolbar-tools`) are normalized on top of the runtime tools config.
|
|
40
71
|
|
|
41
72
|
See `apps/section-demos/src/routes/demo/[[id]]/+page.svelte` for an end-to-end host integration.
|
|
42
73
|
|
|
74
|
+
## Data flow and stability guarantees
|
|
75
|
+
|
|
76
|
+
Section-player follows a unidirectional flow model:
|
|
77
|
+
|
|
78
|
+
- Inputs flow downward (`runtime`, `section`, `env`, toolbar options) into base/toolkit/layout/card render paths.
|
|
79
|
+
- State updates flow upward as events (`runtime-*`, `session-changed`, controller change events) and are reconciled by runtime owners.
|
|
80
|
+
- Layout/card components should not create competing sources of truth for composition/session.
|
|
81
|
+
|
|
82
|
+
### Stability guarantees
|
|
83
|
+
|
|
84
|
+
For non-structural updates, section-player guarantees behavior stability:
|
|
85
|
+
|
|
86
|
+
- Item/passage shell identity remains stable (no remount churn for response-only updates).
|
|
87
|
+
- Pane-local scroll position remains stable in splitpane and vertical layouts.
|
|
88
|
+
|
|
89
|
+
Non-structural updates include:
|
|
90
|
+
|
|
91
|
+
- response/session updates
|
|
92
|
+
- tool toggles/config updates
|
|
93
|
+
- runtime config changes that do not alter composition identity
|
|
94
|
+
|
|
95
|
+
Structural composition changes (new/removed/reordered entities) may legitimately re-render/remount affected nodes.
|
|
96
|
+
|
|
97
|
+
## Custom layout authoring
|
|
98
|
+
|
|
99
|
+
For section layout authors, `pie-section-player-shell` is the primary abstraction:
|
|
100
|
+
|
|
101
|
+
- Use `pie-section-player-shell` to place the section toolbar around your layout body.
|
|
102
|
+
- Keep your custom layout logic focused on passages/items and layout UI.
|
|
103
|
+
- Treat `pie-section-player-base` as internal runtime plumbing that wraps the shell.
|
|
104
|
+
- Use `pie-section-player-item-card` and `pie-section-player-passage-card` as reusable card primitives.
|
|
105
|
+
- Prefer shared context for cross-cutting card render plumbing (resolved player tag/action) over repeated prop drilling.
|
|
106
|
+
|
|
107
|
+
Minimal pattern for package layout components:
|
|
108
|
+
|
|
109
|
+
```svelte
|
|
110
|
+
<pie-section-player-base runtime={effectiveRuntime} {section} section-id={sectionId} attempt-id={attemptId}>
|
|
111
|
+
<pie-section-player-shell
|
|
112
|
+
show-toolbar={showToolbar}
|
|
113
|
+
toolbar-position={toolbarPosition}
|
|
114
|
+
enabled-tools={enabledTools}
|
|
115
|
+
>
|
|
116
|
+
<!-- layout-specific body -->
|
|
117
|
+
<pie-section-player-passage-card
|
|
118
|
+
passage={passage}
|
|
119
|
+
playerParams={passagePlayerParams}
|
|
120
|
+
passageToolbarTools={passageToolbarTools}
|
|
121
|
+
></pie-section-player-passage-card>
|
|
122
|
+
<pie-section-player-item-card
|
|
123
|
+
item={item}
|
|
124
|
+
canonicalItemId={canonicalItemId}
|
|
125
|
+
playerParams={itemPlayerParams}
|
|
126
|
+
itemToolbarTools={itemToolbarTools}
|
|
127
|
+
></pie-section-player-item-card>
|
|
128
|
+
</pie-section-player-shell>
|
|
129
|
+
</pie-section-player-base>
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### JS API example for advanced host policy
|
|
133
|
+
|
|
134
|
+
```ts
|
|
135
|
+
const host = document.querySelector("pie-section-player-splitpane") as any;
|
|
136
|
+
const controller = await host.waitForSectionController?.(5000);
|
|
137
|
+
let sectionComplete = false;
|
|
138
|
+
|
|
139
|
+
const unsubscribe = controller?.subscribe?.((event: any) => {
|
|
140
|
+
if (event?.type === "section-items-complete-changed") {
|
|
141
|
+
sectionComplete = event.complete === true;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
function canAdvance() {
|
|
146
|
+
const nav = host.selectNavigation?.();
|
|
147
|
+
return Boolean(nav?.canNext && sectionComplete);
|
|
148
|
+
}
|
|
149
|
+
```
|
|
150
|
+
|
|
43
151
|
## Exports
|
|
44
152
|
|
|
45
153
|
Published exports are intentionally minimal:
|
|
46
154
|
|
|
47
155
|
- `@pie-players/pie-section-player`
|
|
48
156
|
- `@pie-players/pie-section-player/components/section-player-splitpane-element`
|
|
157
|
+
- `@pie-players/pie-section-player/components/section-player-vertical-element`
|
|
158
|
+
- `@pie-players/pie-section-player/components/section-player-kernel-host-element`
|
|
159
|
+
- `@pie-players/pie-section-player/components/section-player-shell-element`
|
|
160
|
+
- `@pie-players/pie-section-player/components/section-player-item-card-element`
|
|
161
|
+
- `@pie-players/pie-section-player/components/section-player-passage-card-element`
|
|
162
|
+
- `@pie-players/pie-section-player/contracts/layout-contract`
|
|
163
|
+
- `@pie-players/pie-section-player/contracts/public-events`
|
|
164
|
+
- `@pie-players/pie-section-player/contracts/runtime-host-contract`
|
|
165
|
+
- `@pie-players/pie-section-player/contracts/layout-parity-metadata`
|
|
166
|
+
- `@pie-players/pie-section-player/policies`
|
|
49
167
|
|
|
50
168
|
## Development
|
|
51
169
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section-player-item-card-element.d.ts","sourceRoot":"","sources":["../../src/components/section-player-item-card-element.ts"],"names":[],"mappings":"AAAA,OAAO,iCAAiC,CAAC;AAEzC,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section-player-items-pane-element.d.ts","sourceRoot":"","sources":["../../src/components/section-player-items-pane-element.ts"],"names":[],"mappings":"AAAA,OAAO,kCAAkC,CAAC;AAE1C,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section-player-kernel-host-element.d.ts","sourceRoot":"","sources":["../../src/components/section-player-kernel-host-element.ts"],"names":[],"mappings":"AAAA,OAAO,4CAA4C,CAAC;AAEpD,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section-player-passage-card-element.d.ts","sourceRoot":"","sources":["../../src/components/section-player-passage-card-element.ts"],"names":[],"mappings":"AAAA,OAAO,oCAAoC,CAAC;AAE5C,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section-player-passages-pane-element.d.ts","sourceRoot":"","sources":["../../src/components/section-player-passages-pane-element.ts"],"names":[],"mappings":"AAAA,OAAO,qCAAqC,CAAC;AAE7C,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section-player-shell-element.d.ts","sourceRoot":"","sources":["../../src/components/section-player-shell-element.ts"],"names":[],"mappings":"AAAA,OAAO,6BAA6B,CAAC;AAErC,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outer-scrollbars.d.ts","sourceRoot":"","sources":["../../../src/components/shared/outer-scrollbars.ts"],"names":[],"mappings":"AAAA,wBAAgB,qBAAqB,CAAC,IAAI,CAAC,EAAE;IAC5C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,MAAM,IAAI,CAkCb"}
|
|
@@ -13,6 +13,7 @@ type PlayerActionOptions = {
|
|
|
13
13
|
};
|
|
14
14
|
export declare function createPlayerAction(options: PlayerActionOptions): (node: HTMLElement, params: PlayerElementParams) => {
|
|
15
15
|
update(nextParams: PlayerElementParams): void;
|
|
16
|
+
destroy(): void;
|
|
16
17
|
};
|
|
17
18
|
export {};
|
|
18
19
|
//# sourceMappingURL=player-action.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"player-action.d.ts","sourceRoot":"","sources":["../../../src/components/shared/player-action.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IACjC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;
|
|
1
|
+
{"version":3,"file":"player-action.d.ts","sourceRoot":"","sources":["../../../src/components/shared/player-action.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IACjC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAYF,KAAK,mBAAmB,GAAG;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACnC,CAAC;AA2BF,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,mBAAmB,IACtD,MAAM,WAAW,EAAE,QAAQ,mBAAmB;uBAGjC,mBAAmB;;EAQxC"}
|
|
@@ -23,6 +23,11 @@ export type PlayerPreloadState = {
|
|
|
23
23
|
preloadRunToken: number;
|
|
24
24
|
elementsLoaded: boolean;
|
|
25
25
|
};
|
|
26
|
+
export declare function createPlayerPreloadStateSetter(args: {
|
|
27
|
+
setLastPreloadSignature: (value: string) => void;
|
|
28
|
+
setPreloadRunToken: (value: number) => void;
|
|
29
|
+
setElementsLoaded: (value: boolean) => void;
|
|
30
|
+
}): (next: Partial<PlayerPreloadState>) => void;
|
|
26
31
|
export declare function orchestratePlayerElementPreload(args: {
|
|
27
32
|
componentTag: string;
|
|
28
33
|
strategy: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"player-preload.d.ts","sourceRoot":"","sources":["../../../src/components/shared/player-preload.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,KAAK,UAAU,EACf,MAAM,iCAAiC,CAAC;AAGzC,eAAO,MAAM,kBAAkB,QAAQ,CAAC;AAExC,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,OAAO,EAAE,GAAG,MAAM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KAAK,IAAI,CAAC;IAC5C,iBAAiB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5C,IACQ,MAAM,OAAO,CAAC,kBAAkB,CAAC,UAWzC;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE;IACrD,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7C,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC3C,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,EAAE,MAAM,kBAAkB,CAAC;IACnC,QAAQ,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAC;CACtD,QAsEA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PlayerElementParams } from './player-action.js';
|
|
2
|
+
export type SectionPlayerCardRenderContext = {
|
|
3
|
+
resolvedPlayerTag: string;
|
|
4
|
+
playerAction: (node: HTMLElement, params: PlayerElementParams) => unknown;
|
|
5
|
+
};
|
|
6
|
+
export declare const sectionPlayerCardRenderContext: {
|
|
7
|
+
__context__: SectionPlayerCardRenderContext;
|
|
8
|
+
};
|
|
9
|
+
export declare function getHostElementFromAnchor(anchor: HTMLElement | null): HTMLElement | null;
|
|
10
|
+
export declare function connectSectionPlayerCardRenderContext(host: HTMLElement, onValue: (value: SectionPlayerCardRenderContext) => void): () => void;
|
|
11
|
+
export declare function createSectionPlayerCardRenderContextProvider(host: HTMLElement, initialValue: SectionPlayerCardRenderContext): {
|
|
12
|
+
setValue: (value: SectionPlayerCardRenderContext) => void;
|
|
13
|
+
disconnect: () => void;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=section-player-card-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section-player-card-context.d.ts","sourceRoot":"","sources":["../../../src/components/shared/section-player-card-context.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,MAAM,MAAM,8BAA8B,GAAG;IAC5C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,mBAAmB,KAAK,OAAO,CAAC;CAC1E,CAAC;AAEF,eAAO,MAAM,8BAA8B;;CAE1C,CAAC;AAEF,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,GAAG,WAAW,GAAG,IAAI,CAOvF;AA8CD,wBAAgB,qCAAqC,CACpD,IAAI,EAAE,WAAW,EACjB,OAAO,EAAE,CAAC,KAAK,EAAE,8BAA8B,KAAK,IAAI,GACtD,MAAM,IAAI,CAMZ;AAED,wBAAgB,4CAA4C,CAC3D,IAAI,EAAE,WAAW,EACjB,YAAY,EAAE,8BAA8B;sBAUzB,8BAA8B;;EAMjD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section-player-props.d.ts","sourceRoot":"","sources":["../../../src/components/shared/section-player-props.ts"],"names":[],"mappings":"AAAA,wBAAgB,iBAAiB,CAChC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,EAC1C,YAAY,UAAQ,GAClB,OAAO,CAkBT"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SectionPlayerReadinessChangeDetail, SectionPlayerReadinessPhase } from '../../contracts/public-events.js';
|
|
2
|
+
export type ReadinessSignals = {
|
|
3
|
+
sectionReady: boolean;
|
|
4
|
+
interactionReady: boolean;
|
|
5
|
+
allLoadingComplete: boolean;
|
|
6
|
+
runtimeError: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare function resolveReadinessPhase(signals: ReadinessSignals): SectionPlayerReadinessPhase;
|
|
9
|
+
export declare function createReadinessDetail(args: {
|
|
10
|
+
mode: "progressive" | "strict";
|
|
11
|
+
signals: ReadinessSignals;
|
|
12
|
+
reason?: string;
|
|
13
|
+
}): SectionPlayerReadinessChangeDetail;
|
|
14
|
+
//# sourceMappingURL=section-player-readiness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section-player-readiness.d.ts","sourceRoot":"","sources":["../../../src/components/shared/section-player-readiness.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,kCAAkC,EAClC,2BAA2B,EAC3B,MAAM,kCAAkC,CAAC;AAE1C,MAAM,MAAM,gBAAgB,GAAG;IAC9B,YAAY,EAAE,OAAO,CAAC;IACtB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,YAAY,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,gBAAgB,GAAG,2BAA2B,CAM5F;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE;IAC3C,IAAI,EAAE,aAAa,GAAG,QAAQ,CAAC;IAC/B,OAAO,EAAE,gBAAgB,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,kCAAkC,CAiBrC"}
|
|
@@ -52,8 +52,6 @@ export declare function resolveRuntime(args: {
|
|
|
52
52
|
runtime: RuntimeConfig | null;
|
|
53
53
|
effectiveToolsConfig: unknown;
|
|
54
54
|
}): {
|
|
55
|
-
env: Record<string, unknown>;
|
|
56
|
-
tools: unknown;
|
|
57
55
|
assessmentId: string;
|
|
58
56
|
playerType: string;
|
|
59
57
|
player: Record<string, unknown> | null;
|
|
@@ -62,6 +60,8 @@ export declare function resolveRuntime(args: {
|
|
|
62
60
|
coordinator: unknown;
|
|
63
61
|
createSectionController: unknown;
|
|
64
62
|
isolation: string;
|
|
63
|
+
env: Record<string, unknown>;
|
|
64
|
+
tools: unknown;
|
|
65
65
|
};
|
|
66
66
|
export declare function resolvePlayerRuntime(args: {
|
|
67
67
|
effectiveRuntime: Record<string, unknown>;
|
|
@@ -80,8 +80,6 @@ export declare function mapRenderablesToItems(renderables: unknown[]): ItemEntit
|
|
|
80
80
|
export declare function resolveSectionPlayerRuntimeState(args: RuntimeInputs): {
|
|
81
81
|
effectiveToolsConfig: import('@pie-players/pie-assessment-toolkit').CanonicalToolsConfig;
|
|
82
82
|
effectiveRuntime: {
|
|
83
|
-
env: Record<string, unknown>;
|
|
84
|
-
tools: unknown;
|
|
85
83
|
assessmentId: string;
|
|
86
84
|
playerType: string;
|
|
87
85
|
player: Record<string, unknown> | null;
|
|
@@ -90,6 +88,8 @@ export declare function resolveSectionPlayerRuntimeState(args: RuntimeInputs): {
|
|
|
90
88
|
coordinator: unknown;
|
|
91
89
|
createSectionController: unknown;
|
|
92
90
|
isolation: string;
|
|
91
|
+
env: Record<string, unknown>;
|
|
92
|
+
tools: unknown;
|
|
93
93
|
};
|
|
94
94
|
playerRuntime: {
|
|
95
95
|
effectivePlayerType: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section-player-runtime.d.ts","sourceRoot":"","sources":["../../../src/components/shared/section-player-runtime.ts"],"names":[],"mappings":"AAIA,OAAO,EAEN,KAAK,UAAU,EACf,MAAM,iCAAiC,CAAC;AAGzC,eAAO,MAAM,qBAAqB,wBAAwB,CAAC;AAC3D,eAAO,MAAM,mBAAmB,SAAS,CAAC;AAC1C,eAAO,MAAM,iBAAiB,OAAO,CAAC;AACtC,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAC3C,eAAO,MAAM,WAAW,EAA0C,MAAM,CACvE,MAAM,EACN,OAAO,CACP,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE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I,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;CAC5B,sEAoBA;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE;IACpC,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAC9C,WAAW,EAAE,OAAO,CAAC;IACrB,uBAAuB,EAAE,OAAO,CAAC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACpC,OAAO,EAAE,aAAa,GAAG,IAAI,CAAC;IAC9B,oBAAoB,EAAE,OAAO,CAAC;CAC9B
|
|
1
|
+
{"version":3,"file":"section-player-runtime.d.ts","sourceRoot":"","sources":["../../../src/components/shared/section-player-runtime.ts"],"names":[],"mappings":"AAIA,OAAO,EAEN,KAAK,UAAU,EACf,MAAM,iCAAiC,CAAC;AAGzC,eAAO,MAAM,qBAAqB,wBAAwB,CAAC;AAC3D,eAAO,MAAM,mBAAmB,SAAS,CAAC;AAC1C,eAAO,MAAM,iBAAiB,OAAO,CAAC;AACtC,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAC3C,eAAO,MAAM,WAAW,EAA0C,MAAM,CACvE,MAAM,EACN,OAAO,CACP,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,C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IAC9B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;CAC5B,sEAoBA;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE;IACpC,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAC9C,WAAW,EAAE,OAAO,CAAC;IACrB,uBAAuB,EAAE,OAAO,CAAC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACpC,OAAO,EAAE,aAAa,GAAG,IAAI,CAAC;IAC9B,oBAAoB,EAAE,OAAO,CAAC;CAC9B;;;;;;;;;;;EAgBA;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE;IAC1C,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;CACpC;;;;;;;;EAgCA;AAED,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,OAAO,EAAE,GAAG,UAAU,EAAE,CAK1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;EA0CnE"}
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import { ItemEntity } from '../../../../players-shared/dist/types/index.d.ts';
|
|
2
2
|
import { SectionCompositionModel } from '../../controllers/types.js';
|
|
3
3
|
import { PlayerElementParams } from './player-action.js';
|
|
4
|
+
export type LayoutCompositionSnapshot = {
|
|
5
|
+
compositionModel: SectionCompositionModel;
|
|
6
|
+
passages: SectionCompositionModel["passages"];
|
|
7
|
+
items: SectionCompositionModel["items"];
|
|
8
|
+
renderables: ItemEntity[];
|
|
9
|
+
renderablesSignature: string;
|
|
10
|
+
};
|
|
4
11
|
export declare function getCompositionFromEvent(event: Event): SectionCompositionModel;
|
|
12
|
+
export declare function deriveLayoutCompositionSnapshot(compositionModel: SectionCompositionModel): LayoutCompositionSnapshot;
|
|
13
|
+
export declare function getCompositionSnapshotFromEvent(event: Event): LayoutCompositionSnapshot;
|
|
5
14
|
export declare function getPassagePlayerParams(args: {
|
|
6
15
|
passage: any;
|
|
7
16
|
resolvedPlayerEnv: Record<string, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section-player-view-state.d.ts","sourceRoot":"","sources":["../../../src/components/shared/section-player-view-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAM1E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"section-player-view-state.d.ts","sourceRoot":"","sources":["../../../src/components/shared/section-player-view-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAM1E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAI9D,MAAM,MAAM,yBAAyB,GAAG;IACvC,gBAAgB,EAAE,uBAAuB,CAAC;IAC1C,QAAQ,EAAE,uBAAuB,CAAC,UAAU,CAAC,CAAC;IAC9C,KAAK,EAAE,uBAAuB,CAA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
3
|
+
export type SectionPlayerLayoutCapability = "items-pane" | "passages-pane" | "section-toolbar" | "item-toolbar" | "passage-toolbar" | "readiness-events" | "navigation-events";
|
|
4
|
+
export type SectionPlayerBasicPropName = "assessmentId" | "section" | "sectionId" | "attemptId" | "showToolbar" | "toolbarPosition" | "narrowLayoutBreakpoint" | "enabledTools" | "itemToolbarTools" | "passageToolbarTools";
|
|
5
|
+
export type SectionPlayerAdvancedPropName = "runtime" | "playerType" | "player" | "lazyInit" | "tools" | "accessibility" | "coordinator" | "createSectionController" | "isolation" | "env" | "iifeBundleHost";
|
|
6
|
+
export type SectionPlayerLayoutPropName = SectionPlayerBasicPropName | SectionPlayerAdvancedPropName;
|
|
7
|
+
export type SectionPlayerLayoutCommandName = "getSnapshot" | "selectComposition" | "selectNavigation" | "selectReadiness" | "navigateTo" | "navigateNext" | "navigatePrevious" | "getSectionController" | "waitForSectionController";
|
|
8
|
+
export type SectionPlayerLayoutContract = {
|
|
9
|
+
version: 1;
|
|
10
|
+
layout: SectionPlayerLayoutName;
|
|
11
|
+
props: readonly SectionPlayerLayoutPropName[];
|
|
12
|
+
recommendedBasicProps: readonly SectionPlayerBasicPropName[];
|
|
13
|
+
advancedEscapeHatchProps: readonly SectionPlayerAdvancedPropName[];
|
|
14
|
+
events: readonly SectionPlayerPublicEventName[];
|
|
15
|
+
commands: readonly SectionPlayerLayoutCommandName[];
|
|
16
|
+
capabilities: readonly SectionPlayerLayoutCapability[];
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=layout-contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-contract.d.ts","sourceRoot":"","sources":["../../src/contracts/layout-contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAEvE,MAAM,MAAM,uBAAuB,GAAG,WAAW,GAAG,UAAU,CAAC;AAE/D,MAAM,MAAM,6BAA6B,GACtC,YAAY,GACZ,eAAe,GACf,iBAAiB,GACjB,cAAc,GACd,iBAAiB,GACjB,kBAAkB,GAClB,mBAAmB,CAAC;AAEvB,MAAM,MAAM,0BAA0B,GACnC,cAAc,GACd,SAAS,GACT,WAAW,GACX,WAAW,GACX,aAAa,GACb,iBAAiB,GACjB,wBAAwB,GACxB,cAAc,GACd,kBAAkB,GAClB,qBAAqB,CAAC;AAEzB,MAAM,MAAM,6BAA6B,GACtC,SAAS,GACT,YAAY,GACZ,QAAQ,GACR,UAAU,GACV,OAAO,GACP,eAAe,GACf,aAAa,GACb,yBAAyB,GACzB,WAAW,GACX,KAAK,GACL,gBAAgB,CAAC;AAEpB,MAAM,MAAM,2BAA2B,GACpC,0BAA0B,GAC1B,6BAA6B,CAAC;AAEjC,MAAM,MAAM,8BAA8B,GACvC,aAAa,GACb,mBAAmB,GACnB,kBAAkB,GAClB,iBAAiB,GACjB,YAAY,GACZ,cAAc,GACd,kBAAkB,GAClB,sBAAsB,GACtB,0BAA0B,CAAC;AAE9B,MAAM,MAAM,2BAA2B,GAAG;IACzC,OAAO,EAAE,CAAC,CAAC;IACX,MAAM,EAAE,uBAAuB,CAAC;IAChC,KAAK,EAAE,SAAS,2BAA2B,EAAE,CAAC;IAC9C,qBAAqB,EAAE,SAAS,0BAA0B,EAAE,CAAC;IAC7D,wBAAwB,EAAE,SAAS,6BAA6B,EAAE,CAAC;IACnE,MAAM,EAAE,SAAS,4BAA4B,EAAE,CAAC;IAChD,QAAQ,EAAE,SAAS,8BAA8B,EAAE,CAAC;IACpD,YAAY,EAAE,SAAS,6BAA6B,EAAE,CAAC;CACvD,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SectionPlayerLayoutContract } from './layout-contract.js';
|
|
2
|
+
export declare const SPLITPANE_LAYOUT_CONTRACT: SectionPlayerLayoutContract;
|
|
3
|
+
export declare const VERTICAL_LAYOUT_CONTRACT: SectionPlayerLayoutContract;
|
|
4
|
+
//# sourceMappingURL=layout-parity-metadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-parity-metadata.d.ts","sourceRoot":"","sources":["../../src/contracts/layout-parity-metadata.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAqExE,eAAO,MAAM,yBAAyB,EAAE,2BASvC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,2BAStC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const SECTION_PLAYER_PUBLIC_EVENTS: {
|
|
2
|
+
readonly runtimeOwned: "runtime-owned";
|
|
3
|
+
readonly runtimeInherited: "runtime-inherited";
|
|
4
|
+
readonly runtimeError: "runtime-error";
|
|
5
|
+
readonly compositionChanged: "composition-changed";
|
|
6
|
+
readonly sessionChanged: "session-changed";
|
|
7
|
+
readonly sectionControllerReady: "section-controller-ready";
|
|
8
|
+
readonly readinessChange: "readiness-change";
|
|
9
|
+
readonly interactionReady: "interaction-ready";
|
|
10
|
+
readonly ready: "ready";
|
|
11
|
+
};
|
|
12
|
+
export type SectionPlayerPublicEventName = (typeof SECTION_PLAYER_PUBLIC_EVENTS)[keyof typeof SECTION_PLAYER_PUBLIC_EVENTS];
|
|
13
|
+
export type SectionPlayerReadinessPhase = "bootstrapping" | "interaction-ready" | "loading" | "ready" | "error";
|
|
14
|
+
export type SectionPlayerReadinessChangeDetail = {
|
|
15
|
+
phase: SectionPlayerReadinessPhase;
|
|
16
|
+
interactionReady: boolean;
|
|
17
|
+
allLoadingComplete: boolean;
|
|
18
|
+
reason?: string;
|
|
19
|
+
};
|
|
20
|
+
export type SectionPlayerControllerReadyDetail = {
|
|
21
|
+
sectionId: string;
|
|
22
|
+
attemptId?: string;
|
|
23
|
+
controller: unknown;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=public-events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-events.d.ts","sourceRoot":"","sources":["../../src/contracts/public-events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B;;;;;;;;;;CAU/B,CAAC;AAEX,MAAM,MAAM,4BAA4B,GACvC,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,OAAO,4BAA4B,CAAC,CAAC;AAElF,MAAM,MAAM,2BAA2B,GACpC,eAAe,GACf,mBAAmB,GACnB,SAAS,GACT,OAAO,GACP,OAAO,CAAC;AAEX,MAAM,MAAM,kCAAkC,GAAG;IAChD,KAAK,EAAE,2BAA2B,CAAC;IACnC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG;IAChD,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;CACpB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { SectionPlayerReadinessChangeDetail } from './public-events.js';
|
|
2
|
+
import { SectionControllerHandle } from '@pie-players/pie-assessment-toolkit';
|
|
3
|
+
export type SectionPlayerNavigationSnapshot = {
|
|
4
|
+
currentIndex: number;
|
|
5
|
+
totalItems: number;
|
|
6
|
+
canNext: boolean;
|
|
7
|
+
canPrevious: boolean;
|
|
8
|
+
currentItemId?: string;
|
|
9
|
+
};
|
|
10
|
+
export type SectionPlayerSnapshot = {
|
|
11
|
+
readiness: SectionPlayerReadinessChangeDetail;
|
|
12
|
+
composition: {
|
|
13
|
+
itemsCount: number;
|
|
14
|
+
passagesCount: number;
|
|
15
|
+
};
|
|
16
|
+
navigation: SectionPlayerNavigationSnapshot;
|
|
17
|
+
};
|
|
18
|
+
export interface SectionPlayerRuntimeHostContract {
|
|
19
|
+
getSnapshot(): SectionPlayerSnapshot;
|
|
20
|
+
selectComposition(): SectionPlayerSnapshot["composition"];
|
|
21
|
+
selectNavigation(): SectionPlayerNavigationSnapshot;
|
|
22
|
+
selectReadiness(): SectionPlayerReadinessChangeDetail;
|
|
23
|
+
navigateTo(index: number): boolean;
|
|
24
|
+
navigateNext(): boolean;
|
|
25
|
+
navigatePrevious(): boolean;
|
|
26
|
+
getSectionController(): SectionControllerHandle | null;
|
|
27
|
+
waitForSectionController(timeoutMs?: number): Promise<SectionControllerHandle | null>;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=runtime-host-contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-host-contract.d.ts","sourceRoot":"","sources":["../../src/contracts/runtime-host-contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,kCAAkC,EAClC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAEnF,MAAM,MAAM,+BAA+B,GAAG;IAC7C,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IACnC,SAAS,EAAE,kCAAkC,CAAC;IAC9C,WAAW,EAAE;QACZ,UAAU,EAAE,MAAM,CAAC;QACnB,aAAa,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,UAAU,EAAE,+BAA+B,CAAC;CAC5C,CAAC;AAEF,MAAM,WAAW,gCAAgC;IAChD,WAAW,IAAI,qBAAqB,CAAC;IACrC,iBAAiB,IAAI,qBAAqB,CAAC,aAAa,CAAC,CAAC;IAC1D,gBAAgB,IAAI,+BAA+B,CAAC;IACpD,eAAe,IAAI,kCAAkC,CAAC;IACtD,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;IACnC,YAAY,IAAI,OAAO,CAAC;IACxB,gBAAgB,IAAI,OAAO,CAAC;IAC5B,oBAAoB,IAAI,uBAAuB,GAAG,IAAI,CAAC;IACvD,wBAAwB,CACvB,SAAS,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAAC;CAC3C"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TestAttemptSession } from '@pie-players/pie-assessment-toolkit';
|
|
2
|
-
import { SectionControllerContext, SectionControllerHandle, SectionControllerPersistenceStrategy } from './toolkit-section-contracts.js';
|
|
2
|
+
import { SectionControllerContext, SectionControllerHandle, SectionControllerPersistenceStrategy, SectionControllerRuntimeState, SectionControllerSessionState } from './toolkit-section-contracts.js';
|
|
3
3
|
import { ItemEntity } from '@pie-players/pie-players-shared';
|
|
4
|
-
import { NavigationResult,
|
|
4
|
+
import { NavigationResult, SectionControllerChangeListener, SectionCompositionModel, SectionNavigationState, SectionViewModel, SessionChangedResult } from './types.js';
|
|
5
5
|
export declare class SectionController implements SectionControllerHandle {
|
|
6
6
|
private readonly contentService;
|
|
7
7
|
private readonly sessionService;
|
|
@@ -14,10 +14,11 @@ export declare class SectionController implements SectionControllerHandle {
|
|
|
14
14
|
private readonly loadedRenderableKeys;
|
|
15
15
|
private readonly itemCompletionByCanonicalId;
|
|
16
16
|
private sectionLoadingComplete;
|
|
17
|
-
private
|
|
18
|
-
private
|
|
19
|
-
private
|
|
20
|
-
private
|
|
17
|
+
private totalRegistered;
|
|
18
|
+
private totalLoaded;
|
|
19
|
+
private sectionItemsComplete;
|
|
20
|
+
private completedCount;
|
|
21
|
+
private totalItems;
|
|
21
22
|
private emitChange;
|
|
22
23
|
subscribe(listener: SectionControllerChangeListener): () => void;
|
|
23
24
|
initialize(input?: unknown): Promise<void>;
|
|
@@ -27,12 +28,8 @@ export declare class SectionController implements SectionControllerHandle {
|
|
|
27
28
|
hydrate(): Promise<void>;
|
|
28
29
|
persist(): Promise<void>;
|
|
29
30
|
dispose(): void;
|
|
30
|
-
getSnapshot(): unknown;
|
|
31
31
|
getViewModel(): SectionViewModel;
|
|
32
32
|
getCompositionModel(): SectionCompositionModel;
|
|
33
|
-
getCanonicalItemViewModel(itemId: string): SectionCanonicalItemViewModel | null;
|
|
34
|
-
getCanonicalSectionViewModel(): SectionCanonicalSectionViewModel;
|
|
35
|
-
getCanonicalSessionViewModel(): SectionCanonicalSessionViewModel;
|
|
36
33
|
getInstructions(): import('@pie-players/pie-players-shared').RubricBlock[];
|
|
37
34
|
getSectionLoadedEventDetail(): {
|
|
38
35
|
sectionId: string;
|
|
@@ -50,14 +47,14 @@ export declare class SectionController implements SectionControllerHandle {
|
|
|
50
47
|
* Use this for serializing/restoring section session state across reloads.
|
|
51
48
|
* This is intentionally compact and not a full runtime diagnostics view.
|
|
52
49
|
*/
|
|
53
|
-
getSessionState():
|
|
50
|
+
getSessionState(): SectionControllerSessionState | null;
|
|
54
51
|
private getSectionItemIdentifiers;
|
|
55
52
|
/**
|
|
56
53
|
* Runtime/debugger shape scoped to the current section.
|
|
57
54
|
* Use this for widgets that need a section-scoped live snapshot (debug panels, diagnostics).
|
|
58
55
|
* Unlike getSessionState(), this is optimized for runtime introspection, not host persistence.
|
|
59
56
|
*/
|
|
60
|
-
|
|
57
|
+
getRuntimeState(): SectionControllerRuntimeState | null;
|
|
61
58
|
getCurrentItem(): ItemEntity | null;
|
|
62
59
|
getCurrentItemSession(): unknown;
|
|
63
60
|
getNavigationState(isLoading?: boolean): SectionNavigationState;
|
|
@@ -107,7 +104,6 @@ export declare class SectionController implements SectionControllerHandle {
|
|
|
107
104
|
private updateItemCompleteState;
|
|
108
105
|
private emitSectionItemsCompleteIfChanged;
|
|
109
106
|
private evaluateSectionLoadingState;
|
|
110
|
-
private
|
|
111
|
-
private buildReplayEvents;
|
|
107
|
+
private cloneForRead;
|
|
112
108
|
}
|
|
113
109
|
//# sourceMappingURL=SectionController.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SectionController.d.ts","sourceRoot":"","sources":["../../src/controllers/SectionController.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAE9E,OAAO,KAAK,EACX,wBAAwB,EACxB,uBAAuB,EACvB,oCAAoC,EACpC,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAIlE,OAAO,KAAK,EAOX,gBAAgB,
|
|
1
|
+
{"version":3,"file":"SectionController.d.ts","sourceRoot":"","sources":["../../src/controllers/SectionController.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAE9E,OAAO,KAAK,EACX,wBAAwB,EACxB,uBAAuB,EACvB,oCAAoC,EACpC,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAIlE,OAAO,KAAK,EAOX,gBAAgB,EAIhB,+BAA+B,EAC/B,uBAAuB,EAIvB,sBAAsB,EAItB,gBAAgB,EAChB,oBAAoB,EACpB,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EACX,6BAA6B,EAC7B,6BAA6B,EAC7B,MAAM,gCAAgC,CAAC;AAcxC,qBAAa,iBAAkB,YAAW,uBAAuB;IAGhE,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA+B;IAC9D,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA+B;IAC9D,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAsC;IAC5E,OAAO,CAAC,mBAAmB,CACrB;IACN,OAAO,CAAC,kBAAkB,CAAyC;IACnE,OAAO,CAAC,KAAK,CAaX;IACF,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA8C;IACxE,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAwC;IAC3E,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAqB;IAC1D,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CA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,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,MAAM,CAAC;KACnB,GAAG,IAAI;IAgBR,OAAO,CAAC,sBAAsB;IAY9B,OAAO,CAAC,oBAAoB;IAQ5B,OAAO,CAAC,gBAAgB;IAOxB,OAAO,CAAC,uBAAuB;IAM/B,OAAO,CAAC,+BAA+B;IAavC,OAAO,CAAC,uBAAuB;IA0B/B,OAAO,CAAC,iCAAiC;IAmCzC,OAAO,CAAC,2BAA2B;IAmBnC,OAAO,CAAC,YAAY;CAYpB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ToolkitCoordinator, SectionControllerHandle } from '@pie-players/pie-assessment-toolkit';
|
|
2
|
-
export type { SectionControllerContext, SectionControllerHandle, SectionControllerKey, SectionControllerPersistenceStrategy, } from '@pie-players/pie-assessment-toolkit';
|
|
2
|
+
export type { SectionControllerContext, SectionControllerEvent, SectionControllerEventType, SectionControllerHandle, SectionControllerKey, SectionControllerPersistenceStrategy, SectionControllerRuntimeState, SectionControllerSessionState, } from '@pie-players/pie-assessment-toolkit';
|
|
3
3
|
export type CoordinatorWithSectionControllers = ToolkitCoordinator & {
|
|
4
4
|
getOrCreateSectionController(args: {
|
|
5
5
|
sectionId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolkit-section-contracts.d.ts","sourceRoot":"","sources":["../../src/controllers/toolkit-section-contracts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AACnF,YAAY,EACX,wBAAwB,EACxB,uBAAuB,EACvB,oBAAoB,EACpB,oCAAoC,
|
|
1
|
+
{"version":3,"file":"toolkit-section-contracts.d.ts","sourceRoot":"","sources":["../../src/controllers/toolkit-section-contracts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AACnF,YAAY,EACX,wBAAwB,EACxB,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,EACvB,oBAAoB,EACpB,oCAAoC,EACpC,6BAA6B,EAC7B,6BAA6B,GAC7B,MAAM,qCAAqC,CAAC;AAE7C,MAAM,MAAM,iCAAiC,GAAG,kBAAkB,GAAG;IACpE,4BAA4B,CAAC,IAAI,EAAE;QAClC,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,cAAc,CAAC,EAAE,OAAO,CAAC;QACzB,uBAAuB,EAAE,MACtB,uBAAuB,GACvB,OAAO,CAAC,uBAAuB,CAAC,CAAC;KACpC,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;IACrC,wBAAwB,CAAC,IAAI,EAAE;QAC9B,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,oBAAoB,CAAC,EAAE,OAAO,CAAC;QAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAC;KAC3B,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB,CAAC"}
|