@panelwave/player 1.6.0 → 1.7.0
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/fesm2022/panelwave-player.mjs +132 -9
- package/fesm2022/panelwave-player.mjs.map +1 -1
- package/index.d.ts +24 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -6745,6 +6745,8 @@ declare class PlayerShellComponent implements OnInit, OnChanges, AfterViewChecke
|
|
|
6745
6745
|
private lastTrackedPanelId?;
|
|
6746
6746
|
/** Id of the panel of the last `panelChange` emission (its `previousPanelId` source). */
|
|
6747
6747
|
private lastPanelChangeId?;
|
|
6748
|
+
/** Locale of the last `lang_change` tracked (its `fromLocale` source); the work's start locale at load. */
|
|
6749
|
+
private lastTrackedLocale?;
|
|
6748
6750
|
/** Bound pagehide handler so add/removeEventListener match. */
|
|
6749
6751
|
private readonly onPageHide;
|
|
6750
6752
|
private readonly playerState;
|
|
@@ -6980,6 +6982,14 @@ declare class PlayerShellComponent implements OnInit, OnChanges, AfterViewChecke
|
|
|
6980
6982
|
* Set variable
|
|
6981
6983
|
*/
|
|
6982
6984
|
setVariable(key: string, value: unknown, scope?: 'global' | 'chapter' | 'page' | 'session' | 'persistent'): void;
|
|
6985
|
+
/**
|
|
6986
|
+
* Host-side variable write after load (the CMS preview's live variable
|
|
6987
|
+
* editor, an embed bridge): the value lands in its definition's declared
|
|
6988
|
+
* scope, a read-only variable is seeded the privileged way
|
|
6989
|
+
* `initialVariables` uses, and conditional content reacts at once.
|
|
6990
|
+
* Emits `variableChange`; the story position is kept.
|
|
6991
|
+
*/
|
|
6992
|
+
seedVariable(key: string, value: unknown): void;
|
|
6983
6993
|
/**
|
|
6984
6994
|
* Get variable
|
|
6985
6995
|
*/
|
|
@@ -7117,6 +7127,8 @@ declare class PlayerShellComponent implements OnInit, OnChanges, AfterViewChecke
|
|
|
7117
7127
|
*/
|
|
7118
7128
|
onBookmark(): void;
|
|
7119
7129
|
onShare(): void;
|
|
7130
|
+
/** The reader copied or posted the link from the share dialog. */
|
|
7131
|
+
onShared(channel: string): void;
|
|
7120
7132
|
/** Link in the open share dialog. */
|
|
7121
7133
|
shareLink: string;
|
|
7122
7134
|
/**
|
|
@@ -7403,6 +7415,18 @@ declare class PlayerShellComponent implements OnInit, OnChanges, AfterViewChecke
|
|
|
7403
7415
|
private loadEntitlementSnapshot;
|
|
7404
7416
|
/** Raise the paywall overlay for a gate. */
|
|
7405
7417
|
private openPaywall;
|
|
7418
|
+
/**
|
|
7419
|
+
* Analytics payload shared by `paywall_view` and `paywall_action`: the
|
|
7420
|
+
* gated panel (the gate's panel, else where the reader stands), the rule
|
|
7421
|
+
* that raised the gate and why.
|
|
7422
|
+
*/
|
|
7423
|
+
private paywallEventPayload;
|
|
7424
|
+
/**
|
|
7425
|
+
* Track a reader's choice between branches — the branch chooser's edge or
|
|
7426
|
+
* a `goTo` hotspot — as a `decision` (schema tracking vocabulary; the flow
|
|
7427
|
+
* analytics aggregate `choiceId` per `panelId`).
|
|
7428
|
+
*/
|
|
7429
|
+
private trackDecision;
|
|
7406
7430
|
/** Dismiss the overlay without changing entitlement. */
|
|
7407
7431
|
closePaywall(): void;
|
|
7408
7432
|
/**
|