@encorekit/web-sdk 2.0.3 → 2.0.4
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/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/umd/encore.min.js +1 -1
- package/dist/umd/encore.min.js.map +1 -1
- package/package.json +2 -1
- package/types/analytics/DiagnosticsOutbox.d.ts +22 -0
- package/types/analytics/DiagnosticsOutbox.d.ts.map +1 -0
- package/types/analytics/ReliableOutbox.d.ts +40 -0
- package/types/analytics/ReliableOutbox.d.ts.map +1 -0
- package/types/analytics/events.d.ts +100 -0
- package/types/analytics/events.d.ts.map +1 -1
- package/types/analytics/placementResolved.d.ts +150 -0
- package/types/analytics/placementResolved.d.ts.map +1 -0
- package/types/api/APIClient.d.ts +7 -1
- package/types/api/APIClient.d.ts.map +1 -1
- package/types/core/Configuration.d.ts +5 -0
- package/types/core/Configuration.d.ts.map +1 -1
- package/types/core/Encore.d.ts +36 -0
- package/types/core/Encore.d.ts.map +1 -1
- package/types/core/OfferManager.d.ts +29 -3
- package/types/core/OfferManager.d.ts.map +1 -1
- package/types/core/PlacementBuilder.d.ts +12 -0
- package/types/core/PlacementBuilder.d.ts.map +1 -1
- package/types/core/StrictUnlock.d.ts +20 -0
- package/types/core/StrictUnlock.d.ts.map +1 -0
- package/types/core/StrictUnlockReconciler.d.ts +94 -0
- package/types/core/StrictUnlockReconciler.d.ts.map +1 -0
- package/types/core/useCase.d.ts +21 -0
- package/types/core/useCase.d.ts.map +1 -1
- package/types/core/version.d.ts +1 -1
- package/types/experiments/ExposureOutbox.d.ts +4 -28
- package/types/experiments/ExposureOutbox.d.ts.map +1 -1
- package/types/types.d.ts +42 -2
- package/types/types.d.ts.map +1 -1
- package/types/ui/OfferCard.d.ts +3 -1
- package/types/ui/OfferCard.d.ts.map +1 -1
- package/types/ui/OfferCarousel.d.ts +5 -0
- package/types/ui/OfferCarousel.d.ts.map +1 -1
- package/types/ui/OfferModal.d.ts.map +1 -1
- package/types/ui/RewardActions.d.ts +9 -0
- package/types/ui/RewardActions.d.ts.map +1 -1
- package/types/ui/appearance.d.ts +14 -0
- package/types/ui/appearance.d.ts.map +1 -1
- package/types/ui/styles.d.ts.map +1 -1
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Strict Unlock Reconciler
|
|
3
|
+
*
|
|
4
|
+
* Owns the persistence and the poll primitive for a strict-mode claim awaiting
|
|
5
|
+
* advertiser verification. WHEN a pass runs (claim time, page load, foreground) is
|
|
6
|
+
* wired in Encore.ts — this class deliberately knows nothing about lifecycle, the
|
|
7
|
+
* same split iOS draws between `StrictUnlockReconciler` and its composition root.
|
|
8
|
+
*
|
|
9
|
+
* Persist-to-storage shape follows SignalManager's, applied to a single pending
|
|
10
|
+
* claim rather than a queue: only the MOST RECENT claim needs tracking, so a new
|
|
11
|
+
* notePending() simply overwrites — matching iOS, which keeps one pending id.
|
|
12
|
+
*/
|
|
13
|
+
import type { StorageManager } from './StorageManager';
|
|
14
|
+
import type { APIClient } from '../api/APIClient';
|
|
15
|
+
import type { UseCase, VerificationStatus } from '../types';
|
|
16
|
+
export interface PendingClaim {
|
|
17
|
+
transactionId: string;
|
|
18
|
+
/** ISO 8601. */
|
|
19
|
+
recordedAt: string;
|
|
20
|
+
/**
|
|
21
|
+
* Whether verifying this claim should send the entitlement grant signal. Stored
|
|
22
|
+
* rather than recomputed because the reconcile pass runs on a page load that has
|
|
23
|
+
* no offer, no placement and no use case in scope — the claim's own record is the
|
|
24
|
+
* only thing that still knows. Absent on a record written before this field
|
|
25
|
+
* existed, and read as false: a missing grant is recoverable, an unearned one is
|
|
26
|
+
* not.
|
|
27
|
+
*/
|
|
28
|
+
grantsEntitlement?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The placement and use case the claim was made under, persisted for the same
|
|
31
|
+
* reason `grantsEntitlement` is: the sheet that knew them is gone by the time a
|
|
32
|
+
* cross-session verification lands, and the claim's own record is the only thing
|
|
33
|
+
* that still does.
|
|
34
|
+
*
|
|
35
|
+
* Without them the reconciled `sdk_offer_verified` is the ONE conversion signal
|
|
36
|
+
* that cannot be sliced — strict-mode verifications would sit outside every
|
|
37
|
+
* per-use-case and per-placement conversion split, which is precisely the
|
|
38
|
+
* comparison strict mode exists to be measured by. Mirrors iOS, which persists
|
|
39
|
+
* both beside the transaction id (swift#123, `StrictUnlockReconciler.notePending`).
|
|
40
|
+
*
|
|
41
|
+
* Both optional and both absent on a record written before this field existed.
|
|
42
|
+
* Absent stays absent on the event rather than being reconstructed — a guessed
|
|
43
|
+
* dimension is worse than a missing one, because it looks like coverage.
|
|
44
|
+
*/
|
|
45
|
+
placementId?: string;
|
|
46
|
+
useCase?: UseCase;
|
|
47
|
+
}
|
|
48
|
+
export declare class StrictUnlockReconciler {
|
|
49
|
+
#private;
|
|
50
|
+
constructor(storage: StorageManager, apiClient: APIClient, userId: string);
|
|
51
|
+
/**
|
|
52
|
+
* Re-key onto a new identity, CARRYING the pending claim over.
|
|
53
|
+
*
|
|
54
|
+
* SignalManager, the sibling this class's persistence follows, drops its queue
|
|
55
|
+
* on the same event. This deliberately differs: identify() is an ALIAS on the
|
|
56
|
+
* backend (`identifyUser(previousUserId, userId)` — the anonymous id is merged
|
|
57
|
+
* into the real one, not replaced by a different person), so a claim made
|
|
58
|
+
* seconds earlier belongs to the very same user, and abandoning it would mean
|
|
59
|
+
* their unlock silently never lands. reset() is the destructive path, and it
|
|
60
|
+
* clears storage before this runs, so nothing carries over there.
|
|
61
|
+
*/
|
|
62
|
+
setUserId(userId: string): void;
|
|
63
|
+
/**
|
|
64
|
+
* Record a claim as awaiting verification. Called as soon as the transaction id
|
|
65
|
+
* exists and BEFORE the advertiser redirect opens, so a tab closed one moment
|
|
66
|
+
* later is still recoverable on a later page load.
|
|
67
|
+
*/
|
|
68
|
+
notePending(transactionId: string, options?: {
|
|
69
|
+
grantsEntitlement?: boolean;
|
|
70
|
+
placementId?: string;
|
|
71
|
+
useCase?: UseCase;
|
|
72
|
+
}): void;
|
|
73
|
+
/** Forget the pending claim — verified, dropped as stale, or malformed. */
|
|
74
|
+
clearPending(): void;
|
|
75
|
+
/**
|
|
76
|
+
* The pending claim, or null when there is none. A malformed record, an
|
|
77
|
+
* unusable id, or one older than {@link RECONCILE_MAX_AGE_MS} is DROPPED here
|
|
78
|
+
* rather than returned, so a bad record can never wedge the reconcile pass into
|
|
79
|
+
* re-reading it every foreground for a week.
|
|
80
|
+
*
|
|
81
|
+
* A `recordedAt` in the future is treated as unusable too: the clock it was
|
|
82
|
+
* written against is not the clock reading it (a device clock correction, a
|
|
83
|
+
* hand-edited value), and a negative age would otherwise never age out.
|
|
84
|
+
*/
|
|
85
|
+
getPending(): PendingClaim | null;
|
|
86
|
+
/**
|
|
87
|
+
* Poll for verification, bounded by `timeoutMs` — defaulting to the shared
|
|
88
|
+
* {@link POLL_TIMEOUT_MS} so a claim-time poll and a reconcile-pass poll wait the
|
|
89
|
+
* same window unless a caller has a reason to differ. Never throws: a network
|
|
90
|
+
* failure reads as 'pending', i.e. try again next foreground.
|
|
91
|
+
*/
|
|
92
|
+
verify(transactionId: string, timeoutMs?: number): Promise<VerificationStatus>;
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=StrictUnlockReconciler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StrictUnlockReconciler.d.ts","sourceRoot":"","sources":["../../src/core/StrictUnlockReconciler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAIlD,OAAO,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAa5D,MAAM,WAAW,YAAY;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;;;OAOG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;;;;;;;;;;;;OAeG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,qBAAa,sBAAsB;;gBAKrB,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM;IAMzE;;;;;;;;;;OAUG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAQ/B;;;;OAIG;IACH,WAAW,CACT,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE;QAAE,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,GACjF,IAAI;IAgBP,2EAA2E;IAC3E,YAAY,IAAI,IAAI;IAKpB;;;;;;;;;OASG;IACH,UAAU,IAAI,YAAY,GAAG,IAAI;IAsCjC;;;;;OAKG;IACG,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,SAAS,GAAE,MAAwB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAiBtG"}
|
package/types/core/useCase.d.ts
CHANGED
|
@@ -58,5 +58,26 @@ export declare function fromWireUseCase(wire: string | null | undefined): UseCas
|
|
|
58
58
|
* resolved from the config response's `useCases` map at show()-time and fails closed
|
|
59
59
|
* as `no_template`, not `INVALID_REQUEST`.
|
|
60
60
|
*/
|
|
61
|
+
/** Whether `value` is one of the recognised use cases. The allow-list, as a guard. */
|
|
62
|
+
export declare function isSupportedUseCase(value: unknown): value is UseCase;
|
|
63
|
+
/**
|
|
64
|
+
* The use case to REPORT for an attempt, given whatever the caller passed.
|
|
65
|
+
*
|
|
66
|
+
* `sdk_show_entered` is emitted at the very top of `show()`, above `checkUseCase`, so
|
|
67
|
+
* it is the one event that can see a value validation has not yet rejected. Its
|
|
68
|
+
* `use_case` feeds a closed cross-SDK enum dimension, and web must not be the SDK that
|
|
69
|
+
* widens it with a publisher's typo: a free-text value there does not error, it just
|
|
70
|
+
* creates a junk partition alongside the real ones in every per-use-case rollup.
|
|
71
|
+
*
|
|
72
|
+
* So an unrecognised value reports as the default, exactly as an omitted one does. The
|
|
73
|
+
* attempt is going to abort a few lines later either way, and the integration error is
|
|
74
|
+
* already reported through `onError`, the logger and `#reportError` — three channels
|
|
75
|
+
* that name the bad value, which the analytics dimension deliberately does not.
|
|
76
|
+
*
|
|
77
|
+
* Not a substitute for `checkUseCase`: this decides what to REPORT, that decides
|
|
78
|
+
* whether to PROCEED. Using this one to gate would silently serve the paywall for a
|
|
79
|
+
* typo, which is the exact fail-open `checkUseCase` exists to prevent.
|
|
80
|
+
*/
|
|
81
|
+
export declare function reportableUseCase(value: unknown): UseCase;
|
|
61
82
|
export declare function checkUseCase(value: unknown): EncoreError | null;
|
|
62
83
|
//# sourceMappingURL=useCase.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCase.d.ts","sourceRoot":"","sources":["../../src/core/useCase.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAa,KAAK,WAAW,EAAE,KAAK,OAAO,EAAE,MAAM,UAAU,CAAC;AAErE;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,oBAAoB,GAAG,oBAAoB,CAAC;AAuBtE,8EAA8E;AAC9E,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,CAE3D;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAGpF;AAOD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,WAAW,GAAG,IAAI,CAS/D"}
|
|
1
|
+
{"version":3,"file":"useCase.d.ts","sourceRoot":"","sources":["../../src/core/useCase.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAa,KAAK,WAAW,EAAE,KAAK,OAAO,EAAE,MAAM,UAAU,CAAC;AAErE;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,oBAAoB,GAAG,oBAAoB,CAAC;AAuBtE,8EAA8E;AAC9E,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,CAE3D;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAGpF;AAOD;;;;;;;;;;;;;;;;;GAiBG;AACH,sFAAsF;AACtF,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,OAAO,CAEnE;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAEzD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,WAAW,GAAG,IAAI,CAS/D"}
|
package/types/core/version.d.ts
CHANGED
|
@@ -2,36 +2,12 @@
|
|
|
2
2
|
* Reliable delivery for the NCL exposure event — the A/B denominator.
|
|
3
3
|
*
|
|
4
4
|
* Exposure MUST survive tab-close, so unlike the fire-and-forget AnalyticsClient
|
|
5
|
-
* this path is storage-backed and retried.
|
|
6
|
-
*
|
|
7
|
-
* Delivery primitive: `fetch(url, { keepalive: true })` — NOT `navigator.sendBeacon`.
|
|
8
|
-
* The ingest endpoint authenticates on the `X-Analytics-Key` request header, and
|
|
9
|
-
* sendBeacon cannot set headers (a beacon would arrive unauthenticated). keepalive
|
|
10
|
-
* fetch survives document unload like a beacon AND carries the auth header.
|
|
11
|
-
*
|
|
12
|
-
* Reliability model:
|
|
13
|
-
* - enqueue: persist the envelope, then keepalive-POST; remove on 2xx.
|
|
14
|
-
* - flush: replay every persisted envelope (on SDK init + on pagehide /
|
|
15
|
-
* visibilitychange:hidden) so a send that died with the tab retries.
|
|
16
|
-
* - envelopes carry a STABLE event_id → retries are idempotent backend-side.
|
|
17
|
-
* - an in-memory in-flight set avoids duplicate concurrent sends.
|
|
18
|
-
* - all storage / window / document access is SSR- and failure-guarded (fail-open).
|
|
5
|
+
* this path is storage-backed and retried. See `ReliableOutbox` for the shared
|
|
6
|
+
* mechanism (keepalive fetch, persist-then-send, lifecycle-triggered flush).
|
|
19
7
|
*/
|
|
20
|
-
import
|
|
8
|
+
import { ReliableOutbox } from '../analytics/ReliableOutbox';
|
|
21
9
|
import type { StorageManager } from '../core/StorageManager';
|
|
22
|
-
export declare class ExposureOutbox {
|
|
23
|
-
#private;
|
|
10
|
+
export declare class ExposureOutbox extends ReliableOutbox {
|
|
24
11
|
constructor(apiKey: string, analyticsBaseURL: string, storage: StorageManager);
|
|
25
|
-
/**
|
|
26
|
-
* Persist an exposure event and attempt delivery. `eventId` must be stable for a
|
|
27
|
-
* given (user, epoch) so retries de-duplicate backend-side. Returns whether the
|
|
28
|
-
* envelope durably landed in the configured storage tier: a quota-driven
|
|
29
|
-
* fallback-to-memory write is invisible to a fresh read, so the caller can avoid
|
|
30
|
-
* marking the epoch logged (and re-enqueue on the next trigger) instead of
|
|
31
|
-
* silently dropping the exposure.
|
|
32
|
-
*/
|
|
33
|
-
enqueue(event: AnalyticsEvent, eventId: string): boolean;
|
|
34
|
-
/** Replay every persisted envelope (init recovery + unload flush). */
|
|
35
|
-
flush(): void;
|
|
36
12
|
}
|
|
37
13
|
//# sourceMappingURL=ExposureOutbox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExposureOutbox.d.ts","sourceRoot":"","sources":["../../src/experiments/ExposureOutbox.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"ExposureOutbox.d.ts","sourceRoot":"","sources":["../../src/experiments/ExposureOutbox.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAI7D,qBAAa,cAAe,SAAQ,cAAc;gBACpC,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc;CAG9E"}
|
package/types/types.d.ts
CHANGED
|
@@ -61,9 +61,19 @@ export interface UserAttributes {
|
|
|
61
61
|
custom?: Record<string, string>;
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
|
-
* Reasons why an entitlement was not granted
|
|
64
|
+
* Reasons why an entitlement was not granted. `notConfigured` and
|
|
65
|
+
* `alreadyPresenting` mirror the case names iOS uses for the same conditions
|
|
66
|
+
* (`NotPresentedReason`), so a cross-platform integration reads one vocabulary.
|
|
65
67
|
*/
|
|
66
|
-
export type NotGrantedReason = 'userClosedModal' | 'userClickedOutside' | 'userDeclinedLastOffer' | 'noOffersAvailable'
|
|
68
|
+
export type NotGrantedReason = 'userClosedModal' | 'userClickedOutside' | 'userDeclinedLastOffer' | 'noOffersAvailable'
|
|
69
|
+
/** A `show()` was already in flight — see the reentrancy guard in `Encore.show()`. */
|
|
70
|
+
| 'alreadyPresenting'
|
|
71
|
+
/**
|
|
72
|
+
* `show()` was called before `configure()`. A named reason rather than a generic
|
|
73
|
+
* error because it is one specific, always-the-same integration mistake with one
|
|
74
|
+
* fix, and it is what iOS reports for the identical condition.
|
|
75
|
+
*/
|
|
76
|
+
| 'notConfigured' | {
|
|
67
77
|
type: 'error';
|
|
68
78
|
error: EncoreError;
|
|
69
79
|
};
|
|
@@ -232,6 +242,15 @@ export interface PlacementBuilder {
|
|
|
232
242
|
* `.useCase(...)` step the native SDKs expose. See {@link UseCase}.
|
|
233
243
|
*/
|
|
234
244
|
useCase(useCase: UseCase): PlacementBuilder;
|
|
245
|
+
/**
|
|
246
|
+
* Override the sheet's headline for this presentation — the same `.headline(...)`
|
|
247
|
+
* step the native SDKs expose. Equivalent to the `headline` field of
|
|
248
|
+
* {@link PlacementOptions}, and subject to the same precedence and
|
|
249
|
+
* blank-falls-through rules.
|
|
250
|
+
*/
|
|
251
|
+
headline(text: string): PlacementBuilder;
|
|
252
|
+
/** Counterpart to {@link PlacementBuilder.headline}: same rules. */
|
|
253
|
+
subheadline(text: string): PlacementBuilder;
|
|
235
254
|
/** Fires when the sheet closes without a claim — carries the dismissal reason. */
|
|
236
255
|
onNotGranted(callback: (reason: NotGrantedReason) => void): PlacementBuilder;
|
|
237
256
|
onLoadingStateChange(callback: (isLoading: boolean) => void): PlacementBuilder;
|
|
@@ -303,6 +322,27 @@ export interface EncoreConfig {
|
|
|
303
322
|
apiKey: string;
|
|
304
323
|
environment?: 'production' | 'development' | 'staging' | 'localhost';
|
|
305
324
|
logLevel?: 'none' | 'debug';
|
|
325
|
+
/**
|
|
326
|
+
* When a claim is treated as confirmed — the same axis as iOS's and Android's
|
|
327
|
+
* `UnlockMode`, and global for the session (the native SDKs deliberately have no
|
|
328
|
+
* per-placement override either).
|
|
329
|
+
*
|
|
330
|
+
* - `'optimistic'` (default): a claim is confirmed the moment the advertiser
|
|
331
|
+
* handoff happens. Byte-identical to the behavior before this option existed.
|
|
332
|
+
* - `'strict'`: the claim is additionally verified against the advertiser's
|
|
333
|
+
* postback (bounded poll, ~15s) before it is reported as confirmed. Offers are
|
|
334
|
+
* pre-filtered to campaigns whose postback latency can plausibly land inside
|
|
335
|
+
* that window, and such a fetch bypasses the offer cache. A claim that has not
|
|
336
|
+
* verified by the time the user navigates away is reconciled on a later page
|
|
337
|
+
* load — see `Encore.onStrictUnlockVerified`.
|
|
338
|
+
*
|
|
339
|
+
* `show()` resolves `'claimed'` at handoff in BOTH modes: on web the advertiser
|
|
340
|
+
* opens in a separate tab and the SDK renders nothing post-claim, so there is no
|
|
341
|
+
* sheet left to hold a verification spinner in the way iOS does. Strict mode
|
|
342
|
+
* reports its verification through the callback instead — a deliberate divergence,
|
|
343
|
+
* see docs/architecture/platform-divergence/web.md.
|
|
344
|
+
*/
|
|
345
|
+
unlockMode?: 'strict' | 'optimistic';
|
|
306
346
|
}
|
|
307
347
|
/** Result of `show()` / `present()`. */
|
|
308
348
|
export type ShowResult =
|
package/types/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAM5D;;GAEG;AACH,MAAM,MAAM,eAAe,GACvB;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;CAAE,GAC/D;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;CAAE,GAClE;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,SAAS,CAAA;CAAE,CAAC;AAEzD;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,aAAa,GAAG,KAAK,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,aAAa,GAAG,UAAU,CAAC;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,WAAW,GAAG,UAAU,GAAG,QAAQ,CAAC;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MA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ot":"","sources":["../../src/ui/OfferCard.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,IAAI,KAAK,EAAE,MAAM,eAAe,CAAC;AAOpD,UAAU,iBAAkB,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACzD,KAAK,EAAE;QAAE,KAAK,EAAE,KAAK,CAAA;KAAE,CAAC;IACxB,OAAO,EAAE,IAAI,CAAC;CACf;AAED,qBAAa,SAAS
|
|
1
|
+
{"version":3,"file":"OfferCard.d.ts","sourceRoot":"","sources":["../../src/ui/OfferCard.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,IAAI,KAAK,EAAE,MAAM,eAAe,CAAC;AAOpD,UAAU,iBAAkB,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACzD,KAAK,EAAE;QAAE,KAAK,EAAE,KAAK,CAAA;KAAE,CAAC;IACxB,OAAO,EAAE,IAAI,CAAC;CACf;AAED,qBAAa,SAAS;;gBAaR,OAAO,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,OAAO,CAAA;KAAE;IAKhD;;OAEG;IACH,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,WAAW;IAkBjC;;OAEG;IACH,EAAE,CAAC,CAAC,SAAS,MAAM,iBAAiB,EAClC,KAAK,EAAE,CAAC,EACR,OAAO,EAAE,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC,KAAK,IAAI,GAC/C,MAAM,IAAI;IAyKb;;OAEG;IACH,OAAO,IAAI,IAAI;CAUhB"}
|
|
@@ -45,6 +45,11 @@ export interface OfferCarouselOptions {
|
|
|
45
45
|
* Off by default, so the churn-intervention and thankYou carousels are untouched.
|
|
46
46
|
*/
|
|
47
47
|
selectable?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* When false every Claim affordance renders disabled — `Encore.isClaimEnabled`.
|
|
50
|
+
* Defaults true, which is byte-identical to before the option existed.
|
|
51
|
+
*/
|
|
52
|
+
claimEnabled?: boolean;
|
|
48
53
|
/**
|
|
49
54
|
* Publisher colours for the compact page indicator: the inactive dots and the active
|
|
50
55
|
* one. Written as CSS custom properties on the indicator element, so an unset value
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OfferCarousel.d.ts","sourceRoot":"","sources":["../../src/ui/OfferCarousel.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,UAAU,IAAI,KAAK,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAQhD,MAAM,WAAW,oBAAoB;IACnC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC;IAC9B;;;;;;;;;OASG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAQD,UAAU,gBAAiB,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACxD,UAAU,EAAE;QAAE,KAAK,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5C,YAAY,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAChC,SAAS,EAAE;QAAE,KAAK,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3C;;;;;;;OAOG;IACH,MAAM,EAAE;QAAE,IAAI,EAAE,YAAY,GAAG,UAAU,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9D,QAAQ,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAC/B;;;;;OAKG;IACH,WAAW,EAAE;QAAE,KA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Ae,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,qBAAa,UAAU;;
|
|
1
|
+
{"version":3,"file":"OfferModal.d.ts","sourceRoot":"","sources":["../../src/ui/OfferModal.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C,UAAU,aAAc,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACrD,KAAK,EAAE,IAAI,CAAC;IACZ,aAAa,EAAE,IAAI,CAAC;IACpB,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,EAAE,IAAI,CAAC;CACZ;AAED,MAAM,WAAW,iBAAiB;IAChC;;;;;;;;;;;;;;OAcG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,qBAAa,UAAU;;gBAqBT,KAAK,GAAE,cAAmB,EAAE,OAAO,GAAE,iBAAsB;IASvE;;OAEG;IACH,IAAI,IAAI,IAAI;IAqCZ;;OAEG;IACH,IAAI,IAAI,IAAI;IA4CZ;;OAEG;IACH,SAAS,IAAI,OAAO;IAIpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAI/B;;OAEG;IACH,UAAU,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IA4BtC;;OAEG;IACH,EAAE,CAAC,CAAC,SAAS,MAAM,aAAa,EAC9B,KAAK,EAAE,CAAC,EACR,OAAO,EAAE,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,IAAI,GAC3C,MAAM,IAAI;IA2Jb;;OAEG;IACH,OAAO,IAAI,IAAI;CAoBhB"}
|
|
@@ -38,6 +38,15 @@ export interface RewardActionsOptions {
|
|
|
38
38
|
* is the variant's copy, not a universal truth.
|
|
39
39
|
*/
|
|
40
40
|
trustText?: string;
|
|
41
|
+
/**
|
|
42
|
+
* When false the primary CTA renders disabled — the host has switched claiming
|
|
43
|
+
* off via `Encore.isClaimEnabled`. "No thanks" stays live: a user must always be
|
|
44
|
+
* able to leave.
|
|
45
|
+
*
|
|
46
|
+
* Independent of `claimSlot`: the gate is the SDK's, so it holds whether the CTA is
|
|
47
|
+
* the SDK's own button or a publisher's element. See `createActionSlot`.
|
|
48
|
+
*/
|
|
49
|
+
claimEnabled?: boolean;
|
|
41
50
|
/**
|
|
42
51
|
* Publisher appearance for the two buttons: styled config, a ready element, or a
|
|
43
52
|
* renderer.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RewardActions.d.ts","sourceRoot":"","sources":["../../src/ui/RewardActions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,OAAO,EAAqC,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAElF,mFAAmF;AACnF,eAAO,MAAM,WAAW;;;;CAId,CAAC;AAEX,MAAM,WAAW,oBAAoB;IACnC,oEAAoE;IACpE,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,wDAAwD;IACxD,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,4CAA4C;IAC5C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,qBAAa,aAAa;;gBAwBZ,OAAO,EAAE,oBAAoB;IAIzC,MAAM,IAAI,WAAW;
|
|
1
|
+
{"version":3,"file":"RewardActions.d.ts","sourceRoot":"","sources":["../../src/ui/RewardActions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,OAAO,EAAqC,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAElF,mFAAmF;AACnF,eAAO,MAAM,WAAW;;;;CAId,CAAC;AAEX,MAAM,WAAW,oBAAoB;IACnC,oEAAoE;IACpE,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,wDAAwD;IACxD,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,4CAA4C;IAC5C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,qBAAa,aAAa;;gBAwBZ,OAAO,EAAE,oBAAoB;IAIzC,MAAM,IAAI,WAAW;IAiDrB;;;;;;;;;;;;OAYG;IACH,gBAAgB,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI;IAW/C,OAAO,IAAI,IAAI;CAWhB"}
|
package/types/ui/appearance.d.ts
CHANGED
|
@@ -115,6 +115,20 @@ export interface ActionSlotOptions {
|
|
|
115
115
|
label: string;
|
|
116
116
|
/** The SDK behaviour. Runs on every activation, before anything the publisher wired up. */
|
|
117
117
|
onActivate: () => void;
|
|
118
|
+
/**
|
|
119
|
+
* Whether the control acts. Defaults true. `false` renders it visibly unavailable and
|
|
120
|
+
* attaches NO activation listener, which is what makes the gate real rather than
|
|
121
|
+
* cosmetic — there is no handler to reach, so no publisher element, stray dispatch or
|
|
122
|
+
* synthetic `.click()` can claim through a disabled CTA.
|
|
123
|
+
*
|
|
124
|
+
* The two paths express it differently because they have to. A `<button>` gets the
|
|
125
|
+
* native `disabled` property, which the `:disabled` rules already style and which
|
|
126
|
+
* drops the tab stop for free. A host `<div role="button">` cannot be `disabled` at
|
|
127
|
+
* all — the attribute is meaningless on a non-form element and `:disabled` never
|
|
128
|
+
* matches it — so it gets `aria-disabled="true"`, styled through the matching
|
|
129
|
+
* `[aria-disabled='true']` rule, and its tab stop removed by hand.
|
|
130
|
+
*/
|
|
131
|
+
enabled?: boolean;
|
|
118
132
|
useCase: UseCase;
|
|
119
133
|
slot?: ButtonSlot;
|
|
120
134
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appearance.d.ts","sourceRoot":"","sources":["../../src/ui/appearance.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAgBxC,wFAAwF;AACxF,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,mCAAmC;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,cAAc,EAAE,WAAW,CAAC;CAC7B;AAED,8EAA8E;AAC9E,MAAM,MAAM,kBAAkB,GAAG,CAC/B,OAAO,EAAE,qBAAqB,KAC3B,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC;AAEpC,qEAAqE;AACrE,MAAM,WAAW,cAAc;IAC7B,qFAAqF;IACrF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,KAAK,CAAC;CAC3D;AAED,qFAAqF;AACrF,MAAM,WAAW,gBAAiB,SAAQ,cAAc;IACtD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB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