@pie-players/pie-section-player 0.3.37 → 0.3.39
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 +18 -68
- package/dist/chunks/tool-annotation-toolbar-db5bfbec.js +197 -197
- package/dist/contracts/runtime-host-contract.d.ts +0 -13
- package/dist/contracts/runtime-host-contract.d.ts.map +1 -1
- package/dist/pie-section-player.d.ts +2 -2
- package/dist/pie-section-player.d.ts.map +1 -1
- package/dist/pie-section-player.js +21153 -16322
- package/dist/policies/index.d.ts +1 -8
- package/dist/policies/index.d.ts.map +1 -1
- package/dist/policies/types.d.ts +0 -21
- package/dist/policies/types.d.ts.map +1 -1
- package/package.json +10 -10
|
@@ -25,18 +25,5 @@ export interface SectionPlayerRuntimeHostContract {
|
|
|
25
25
|
navigatePrevious(): boolean;
|
|
26
26
|
getSectionController(): SectionControllerHandle | null;
|
|
27
27
|
waitForSectionController(timeoutMs?: number): Promise<SectionControllerHandle | null>;
|
|
28
|
-
/**
|
|
29
|
-
* Move focus into this section player for a host-owned moment the
|
|
30
|
-
* framework cannot observe (e.g. a Skip-to-Main button in the host
|
|
31
|
-
* ribbon). Returns `true` if focus moved.
|
|
32
|
-
*
|
|
33
|
-
* Honors `SectionPlayerFocusPolicy.autoFocus`:
|
|
34
|
-
* - `"start-of-content"` (default): passage card when present, else the
|
|
35
|
-
* first item card.
|
|
36
|
-
* - `"current-item"`: the item card currently marked `is-current`.
|
|
37
|
-
* - `"none"`: falls back to `"start-of-content"` — hosts call
|
|
38
|
-
* `focusStart()` precisely because they do want focus to move.
|
|
39
|
-
*/
|
|
40
|
-
focusStart(): boolean;
|
|
41
28
|
}
|
|
42
29
|
//# sourceMappingURL=runtime-host-contract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-host-contract.d.ts","sourceRoot":"","sources":["../../src/contracts/runtime-host-contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,k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AE,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"}
|
|
@@ -3,8 +3,8 @@ export type { SectionPlayerPublicEventName, SectionPlayerReadinessPhase, Section
|
|
|
3
3
|
export { SECTION_PLAYER_PUBLIC_EVENTS } from './contracts/public-events.js';
|
|
4
4
|
export type { SectionPlayerRuntimeHostContract, SectionPlayerNavigationSnapshot, SectionPlayerSnapshot, } from './contracts/runtime-host-contract.js';
|
|
5
5
|
export { SPLITPANE_LAYOUT_CONTRACT, TABBED_LAYOUT_CONTRACT, VERTICAL_LAYOUT_CONTRACT, } from './contracts/layout-parity-metadata.js';
|
|
6
|
-
export type { ReadinessPolicyAdapter, SectionPlayerPolicies, SectionPlayerReadinessPolicy, SectionPlayerPreloadPolicy,
|
|
7
|
-
export {
|
|
6
|
+
export type { ReadinessPolicyAdapter, SectionPlayerPolicies, SectionPlayerReadinessPolicy, SectionPlayerPreloadPolicy, SectionPlayerTelemetryPolicy, } from './policies/types.js';
|
|
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
10
|
//# sourceMappingURL=pie-section-player.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pie-section-player.d.ts","sourceRoot":"","sources":["../src/pie-section-player.ts"],"names":[],"mappings":"AAAA,OAAO,+CAA+C,CAAC;AACvD,OAAO,8CAA8C,CAAC;AACtD,OAAO,4CAA4C,CAAC;AACpD,OAAO,+CAA+C,CAAC;AACvD,OAAO,kDAAkD,CAAC;AAC1D,OAAO,gDAAgD,CAAC;AACxD,OAAO,mDAAmD,CAAC;AAC3D,OAAO,2CAA2C,CAAC;AACnD,OAAO,iDAAiD,CAAC;AAEzD,YAAY,EACX,2BAA2B,EAC3B,uBAAuB,EACvB,6BAA6B,EAC7B,0BAA0B,EAC1B,6BAA6B,EAC7B,2BAA2B,EAC3B,8BAA8B,GAC9B,MAAM,gCAAgC,CAAC;AACxC,YAAY,EACX,4BAA4B,EAC5B,2BAA2B,EAC3B,kCAAkC,GAClC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,4BAA4B,EAAE,MAAM,8BAA8B,CAAC;AAC5E,YAAY,EACX,gCAAgC,EAChC,+BAA+B,EAC/B,qBAAqB,GACrB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACN,yBAAyB,EACzB,sBAAsB,EACtB,wBAAwB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,YAAY,EACX,sBAAsB,EACtB,qBAAqB,EACrB,4BAA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