@pie-players/pie-section-player 0.3.43 → 0.3.45
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 +11 -23
- package/dist/chunks/dist-24a90544.js +198 -173
- package/dist/chunks/{dist-DIBQdekL-ec6db34a.js → dist-DfQrc9XY-6d8e61c6.js} +175 -150
- package/dist/chunks/{dist-rF11IR1B-adc4857f.js → dist-Dns3leWh-4f7af4d3.js} +1 -1
- package/dist/chunks/dist-c4148994.js +1 -1
- package/dist/chunks/sre-0162a7a9.js +17534 -0
- package/dist/chunks/sre-CXN7ed6H-7db47d5d.js +17532 -0
- package/dist/chunks/tool-annotation-toolbar-db5bfbec.js +5303 -2118
- package/dist/component-definitions.d.ts +0 -1
- package/dist/components/item-shell-element.d.ts +0 -1
- package/dist/components/passage-shell-element.d.ts +0 -1
- package/dist/components/section-player-base-element.d.ts +0 -1
- package/dist/components/section-player-item-card-element.d.ts +0 -1
- package/dist/components/section-player-items-pane-element.d.ts +0 -1
- package/dist/components/section-player-kernel-host-element.d.ts +0 -1
- package/dist/components/section-player-passage-card-element.d.ts +0 -1
- package/dist/components/section-player-passages-pane-element.d.ts +0 -1
- package/dist/components/section-player-shell-element.d.ts +0 -1
- package/dist/components/section-player-splitpane-element.d.ts +0 -1
- package/dist/components/section-player-tabbed-element.d.ts +0 -1
- package/dist/components/section-player-vertical-element.d.ts +0 -1
- package/dist/components/shared/composition.d.ts +0 -1
- package/dist/components/shared/player-action.d.ts +0 -1
- package/dist/components/shared/player-preload.d.ts +0 -1
- package/dist/components/shared/section-player-card-context.d.ts +0 -1
- package/dist/components/shared/section-player-host-runtime.d.ts +2 -12
- package/dist/components/shared/section-player-props.d.ts +0 -1
- package/dist/components/shared/section-player-runtime-callbacks.d.ts +0 -1
- package/dist/components/shared/section-player-view-state.d.ts +0 -1
- package/dist/contracts/card-title-formatters.d.ts +0 -1
- package/dist/contracts/host-hooks.d.ts +0 -1
- package/dist/contracts/layout-contract.d.ts +2 -3
- package/dist/contracts/layout-parity-metadata.d.ts +0 -1
- package/dist/contracts/public-events.d.ts +8 -16
- package/dist/contracts/runtime-host-contract.d.ts +0 -1
- package/dist/contracts/stages.d.ts +0 -1
- package/dist/controllers/SectionContentService.d.ts +0 -1
- package/dist/controllers/SectionController.d.ts +0 -1
- package/dist/controllers/SectionItemNavigationService.d.ts +0 -1
- package/dist/controllers/SectionSessionService.d.ts +0 -1
- package/dist/controllers/toolkit-section-contracts.d.ts +0 -1
- package/dist/controllers/types.d.ts +0 -1
- package/dist/pie-section-player.d.ts +0 -1
- package/dist/pie-section-player.js +42872 -19696
- package/dist/policies/guards.d.ts +0 -1
- package/dist/policies/index.d.ts +0 -1
- package/dist/policies/types.d.ts +0 -1
- package/dist/utils/z-index.d.ts +0 -1
- package/package.json +10 -10
- package/dist/component-definitions.d.ts.map +0 -1
- package/dist/components/item-shell-element.d.ts.map +0 -1
- package/dist/components/passage-shell-element.d.ts.map +0 -1
- package/dist/components/section-player-base-element.d.ts.map +0 -1
- package/dist/components/section-player-item-card-element.d.ts.map +0 -1
- package/dist/components/section-player-items-pane-element.d.ts.map +0 -1
- package/dist/components/section-player-kernel-host-element.d.ts.map +0 -1
- package/dist/components/section-player-passage-card-element.d.ts.map +0 -1
- package/dist/components/section-player-passages-pane-element.d.ts.map +0 -1
- package/dist/components/section-player-shell-element.d.ts.map +0 -1
- package/dist/components/section-player-splitpane-element.d.ts.map +0 -1
- package/dist/components/section-player-tabbed-element.d.ts.map +0 -1
- package/dist/components/section-player-vertical-element.d.ts.map +0 -1
- package/dist/components/shared/composition.d.ts.map +0 -1
- package/dist/components/shared/player-action.d.ts.map +0 -1
- package/dist/components/shared/player-preload.d.ts.map +0 -1
- package/dist/components/shared/section-player-card-context.d.ts.map +0 -1
- package/dist/components/shared/section-player-host-runtime.d.ts.map +0 -1
- package/dist/components/shared/section-player-props.d.ts.map +0 -1
- package/dist/components/shared/section-player-runtime-callbacks.d.ts.map +0 -1
- package/dist/components/shared/section-player-view-state.d.ts.map +0 -1
- package/dist/contracts/card-title-formatters.d.ts.map +0 -1
- package/dist/contracts/host-hooks.d.ts.map +0 -1
- package/dist/contracts/layout-contract.d.ts.map +0 -1
- package/dist/contracts/layout-parity-metadata.d.ts.map +0 -1
- package/dist/contracts/public-events.d.ts.map +0 -1
- package/dist/contracts/runtime-host-contract.d.ts.map +0 -1
- package/dist/contracts/stages.d.ts.map +0 -1
- package/dist/controllers/SectionContentService.d.ts.map +0 -1
- package/dist/controllers/SectionController.d.ts.map +0 -1
- package/dist/controllers/SectionItemNavigationService.d.ts.map +0 -1
- package/dist/controllers/SectionSessionService.d.ts.map +0 -1
- package/dist/controllers/toolkit-section-contracts.d.ts.map +0 -1
- package/dist/controllers/types.d.ts.map +0 -1
- package/dist/pie-section-player.d.ts.map +0 -1
- package/dist/policies/guards.d.ts.map +0 -1
- package/dist/policies/index.d.ts.map +0 -1
- package/dist/policies/types.d.ts.map +0 -1
- package/dist/utils/z-index.d.ts.map +0 -1
- /package/dist/chunks/{defineProperty-aab5a8e0.js → defineProperty-8fd4b6d7.js} +0 -0
- /package/dist/chunks/{defineProperty-CyepwRr5-3800a70a.js → defineProperty-Dt7ri80W-76aeaed7.js} +0 -0
|
@@ -6,4 +6,3 @@ export declare function getEntityTitle(entity: unknown): string;
|
|
|
6
6
|
export declare function getCanonicalItemIdForItem(compositionModel: SectionCompositionModel, item: ItemEntity): string;
|
|
7
7
|
export declare function getSessionForItem(compositionModel: SectionCompositionModel, item: ItemEntity): unknown;
|
|
8
8
|
export declare function getSessionForItemOrEmpty(compositionModel: SectionCompositionModel, item: ItemEntity): Record<string, unknown>;
|
|
9
|
-
//# sourceMappingURL=composition.d.ts.map
|
|
@@ -6,10 +6,7 @@ import { ItemEntity } from '@pie-players/pie-players-shared';
|
|
|
6
6
|
* because of the `DEFAULT_PLAYER_DEFINITIONS` dependency, which
|
|
7
7
|
* side-effect-imports `@pie-players/pie-item-player`.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
* `section-player-runtime.ts`; behavior is byte-for-byte identical
|
|
11
|
-
* (the existing `tests/section-player-runtime.test.ts` test suite
|
|
12
|
-
* pins this module's export at PR 7).
|
|
9
|
+
* Pinned by `tests/section-player-runtime.test.ts`.
|
|
13
10
|
*/
|
|
14
11
|
export declare function resolvePlayerRuntime(args: {
|
|
15
12
|
effectiveRuntime: Record<string, unknown>;
|
|
@@ -43,13 +40,7 @@ export declare function mapRenderablesToItems(renderables: unknown[]): ItemEntit
|
|
|
43
40
|
* local `resolvePlayerRuntime` so the toolkit core never imports
|
|
44
41
|
* `DEFAULT_PLAYER_DEFINITIONS`.
|
|
45
42
|
*
|
|
46
|
-
*
|
|
47
|
-
* `resolveSectionPlayerRuntimeState` from `section-player-runtime.ts`;
|
|
48
|
-
* post-PR-7 the legacy file is deleted and this wrapper is the only
|
|
49
|
-
* orchestrator entry point.
|
|
50
|
-
*
|
|
51
|
-
* Behavior is byte-for-byte identical to the pre-PR-7 implementation
|
|
52
|
-
* (pinned by `tests/section-player-runtime.test.ts`).
|
|
43
|
+
* Pinned by `tests/section-player-runtime.test.ts`.
|
|
53
44
|
*/
|
|
54
45
|
export declare function resolveSectionPlayerRuntimeState(args: RuntimeInputs): {
|
|
55
46
|
effectiveToolsConfig: unknown;
|
|
@@ -69,4 +60,3 @@ export declare function resolveSectionPlayerRuntimeState(args: RuntimeInputs): {
|
|
|
69
60
|
strategy: import('@pie-players/pie-players-shared').ItemPlayerStrategy;
|
|
70
61
|
};
|
|
71
62
|
};
|
|
72
|
-
//# sourceMappingURL=section-player-host-runtime.d.ts.map
|
|
@@ -30,4 +30,3 @@ export interface RuntimeCallbackBridgeOptions {
|
|
|
30
30
|
* subsequent host swaps or unmounts release the listeners cleanly.
|
|
31
31
|
*/
|
|
32
32
|
export declare function attachRuntimeCallbackBridge(options: RuntimeCallbackBridgeOptions): () => void;
|
|
33
|
-
//# sourceMappingURL=section-player-runtime-callbacks.d.ts.map
|
|
@@ -14,4 +14,3 @@ export type SectionPlayerPassageTitleContext = {
|
|
|
14
14
|
};
|
|
15
15
|
export type SectionPlayerCardTitleContext = SectionPlayerItemTitleContext | SectionPlayerPassageTitleContext;
|
|
16
16
|
export type SectionPlayerCardTitleFormatter = (context: SectionPlayerCardTitleContext) => string | null | undefined;
|
|
17
|
-
//# sourceMappingURL=card-title-formatters.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SectionPlayerPublicEventName } from './public-events.js';
|
|
2
2
|
export type SectionPlayerLayoutName = "splitpane" | "vertical" | "tabbed";
|
|
3
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" | "debug" | "showToolbar" | "toolbarPosition" | "narrowLayoutBreakpoint" | "contentMaxWidthNoPassage" | "contentMaxWidthWithPassage" | "splitPaneMinRegionWidth" | "
|
|
5
|
-
export type SectionPlayerAdvancedPropName = "runtime" | "
|
|
4
|
+
export type SectionPlayerBasicPropName = "assessmentId" | "section" | "sectionId" | "attemptId" | "debug" | "showToolbar" | "toolbarPosition" | "narrowLayoutBreakpoint" | "contentMaxWidthNoPassage" | "contentMaxWidthWithPassage" | "splitPaneMinRegionWidth" | "splitPaneInitialPassageWidth" | "splitPaneCollapseStrategy";
|
|
5
|
+
export type SectionPlayerAdvancedPropName = "runtime" | "iifeBundleHost" | "toolRegistry" | "sectionHostButtons" | "itemHostButtons" | "passageHostButtons" | "policies" | "toolConfigStrictness" | "hooks" | "onFrameworkError" | "onStageChange" | "onLoadingComplete";
|
|
6
6
|
export type SectionPlayerLayoutPropName = SectionPlayerBasicPropName | SectionPlayerAdvancedPropName;
|
|
7
7
|
export type SectionPlayerLayoutCommandName = "getSnapshot" | "selectComposition" | "selectNavigation" | "selectReadiness" | "navigateTo" | "navigateNext" | "navigatePrevious" | "getSectionController" | "waitForSectionController";
|
|
8
8
|
export type SectionPlayerLayoutContract = {
|
|
@@ -15,4 +15,3 @@ export type SectionPlayerLayoutContract = {
|
|
|
15
15
|
commands: readonly SectionPlayerLayoutCommandName[];
|
|
16
16
|
capabilities: readonly SectionPlayerLayoutCapability[];
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=layout-contract.d.ts.map
|
|
@@ -2,4 +2,3 @@ import { SectionPlayerLayoutContract } from './layout-contract.js';
|
|
|
2
2
|
export declare const SPLITPANE_LAYOUT_CONTRACT: SectionPlayerLayoutContract;
|
|
3
3
|
export declare const VERTICAL_LAYOUT_CONTRACT: SectionPlayerLayoutContract;
|
|
4
4
|
export declare const TABBED_LAYOUT_CONTRACT: SectionPlayerLayoutContract;
|
|
5
|
-
//# sourceMappingURL=layout-parity-metadata.d.ts.map
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* session forwarding stays in section-player because the shape is
|
|
21
21
|
* section-player-specific and the engine has no opinion on it.
|
|
22
22
|
*
|
|
23
|
-
* **`framework-error` single-emit on the layout host
|
|
23
|
+
* **`framework-error` single-emit on the layout host.**
|
|
24
24
|
* `<pie-assessment-toolkit>` nested inside a layout CE still
|
|
25
25
|
* dispatches its own `framework-error` (with `bubbles: true,
|
|
26
26
|
* composed: true`) so direct toolkit consumers keep working. The
|
|
@@ -30,13 +30,9 @@
|
|
|
30
30
|
* layout host as the single canonical DOM surface for
|
|
31
31
|
* section-player consumers. The single-emit contract is pinned by
|
|
32
32
|
* `tests/section-player-framework-error-dual-emit.test.ts`. The
|
|
33
|
-
*
|
|
34
|
-
* compat sweep.
|
|
33
|
+
* layout host does not receive duplicate framework-error events.
|
|
35
34
|
*
|
|
36
|
-
*
|
|
37
|
-
* deprecated readiness aliases (`readiness-change`,
|
|
38
|
-
* `interaction-ready`, `ready`) and their `legacy-event-bridge.ts`
|
|
39
|
-
* are gone. Hosts that previously listened for them migrate to:
|
|
35
|
+
* Lifecycle should be consumed through canonical events:
|
|
40
36
|
* - `readiness-change` → `pie-stage-change` (the readiness phase
|
|
41
37
|
* is also reachable via `selectReadiness()` /
|
|
42
38
|
* `getSnapshot().readiness`).
|
|
@@ -44,10 +40,9 @@
|
|
|
44
40
|
* `detail.stage === "interactive"`.
|
|
45
41
|
* - `ready` → `pie-loading-complete`.
|
|
46
42
|
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* on the layout CE, or filter `pie-stage-change` for
|
|
43
|
+
* Controller readiness is available through
|
|
44
|
+
* `waitForSectionController(timeoutMs)` / `getSectionController()` on the
|
|
45
|
+
* layout CE, or by filtering `pie-stage-change` for
|
|
51
46
|
* `detail.stage === "engine-ready"`.
|
|
52
47
|
*
|
|
53
48
|
* Source of truth for the names: `players-shared/src/pie/stages.ts`
|
|
@@ -86,10 +81,8 @@ export declare const SECTION_PLAYER_PUBLIC_EVENTS: {
|
|
|
86
81
|
export type SectionPlayerPublicEventName = (typeof SECTION_PLAYER_PUBLIC_EVENTS)[keyof typeof SECTION_PLAYER_PUBLIC_EVENTS];
|
|
87
82
|
/**
|
|
88
83
|
* Readiness phase reported by the engine's readiness derivation. The
|
|
89
|
-
* type
|
|
90
|
-
*
|
|
91
|
-
* kernel's `selectReadiness()` selector — the *event name* is gone,
|
|
92
|
-
* but the readiness payload itself is still the canonical shape.
|
|
84
|
+
* type preserves the readiness payload shape used by
|
|
85
|
+
* `selectReadiness()`.
|
|
93
86
|
*/
|
|
94
87
|
export type SectionPlayerReadinessPhase = "bootstrapping" | "interaction-ready" | "loading" | "ready" | "error";
|
|
95
88
|
export type SectionPlayerReadinessChangeDetail = {
|
|
@@ -98,4 +91,3 @@ export type SectionPlayerReadinessChangeDetail = {
|
|
|
98
91
|
allLoadingComplete: boolean;
|
|
99
92
|
reason?: string;
|
|
100
93
|
};
|
|
101
|
-
//# sourceMappingURL=public-events.d.ts.map
|
|
@@ -8,4 +8,3 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export { STAGES, applicableStages, stageOrdinal, } from '@pie-players/pie-players-shared/pie';
|
|
10
10
|
export type { LoadingCompleteDetail, Stage, StageChangeDetail, StageSourceCe, StageStatus, } from '@pie-players/pie-players-shared/pie';
|
|
11
|
-
//# sourceMappingURL=stages.d.ts.map
|
|
@@ -232,4 +232,3 @@ export interface SectionErrorEvent extends ItemScopedControllerEventBase {
|
|
|
232
232
|
export type SectionControllerChangeEvent = ItemSessionDataChangedEvent | ItemSessionMetaChangedEvent | ItemSelectedEvent | SectionNavigationChangeEvent | SectionSessionAppliedEvent | ContentLoadedEvent | ItemPlayerErrorEvent | ItemCompleteChangedEvent | SectionLoadingCompleteEvent | SectionItemsCompleteChangedEvent | SectionErrorEvent;
|
|
233
233
|
export type SectionControllerChangeListener = (event: SectionControllerChangeEvent) => void;
|
|
234
234
|
export {};
|
|
235
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -7,4 +7,3 @@ export type { ReadinessPolicyAdapter, SectionPlayerPolicies, SectionPlayerReadin
|
|
|
7
7
|
export { DEFAULT_SECTION_PLAYER_POLICIES, isPreloadEnabled, isTelemetryEnabled, } from './policies/index.js';
|
|
8
8
|
export type { SectionPlayerCardTitleContext, SectionPlayerCardTitleFormatter, SectionPlayerItemTitleContext, SectionPlayerPassageTitleContext, } from './contracts/card-title-formatters.js';
|
|
9
9
|
export type { SectionPlayerHostHooks } from './contracts/host-hooks.js';
|
|
10
|
-
//# sourceMappingURL=pie-section-player.d.ts.map
|