@encorekit/web-sdk 2.1.4 → 2.2.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/types/types.d.ts CHANGED
@@ -254,6 +254,10 @@ export interface PlacementOptions {
254
254
  * On the reward composition the "No thanks" button becomes "Next offer"
255
255
  * rather than disappearing — see `RewardActionsOptions.secondary`. A button
256
256
  * reading "No thanks" on a sheet with no way out is a control that lies.
257
+ *
258
+ * The `codeUnlock` code screen ignores `false` while it is showing: its × and
259
+ * Escape stay, so a code that is not accepted can never trap the user on a
260
+ * full-screen page. The option applies from the moment the offers show.
257
261
  */
258
262
  dismissible?: boolean;
259
263
  /**
@@ -272,6 +276,25 @@ export interface PlacementOptions {
272
276
  */
273
277
  statusIcon?: 'success' | 'none';
274
278
  appearance?: AppearanceConfig;
279
+ /**
280
+ * A code to type into the `codeUnlock` screen ahead of time — the code a link or an
281
+ * email carried. The user still presses Unlock. Ignored by every other surface.
282
+ *
283
+ * The SDK never reads the page URL for it: the page that owns the URL decides which
284
+ * parameter holds the code and passes it here. The code is not sent anywhere; see
285
+ * `core/unlockCode.ts`. Trimmed and capped at 64 characters; a non-string is ignored.
286
+ */
287
+ unlockCode?: string;
288
+ /**
289
+ * The most the `codeUnlock` offers are worth, as a short amount: `'$45'`, `'£20'`,
290
+ * `'45 USD'`. Shown as "Up to $45 in rewards" on the code screen. Anything that is not
291
+ * a short money amount shows no line, so a link cannot put its own text on the page.
292
+ *
293
+ * Supplied by the page, not derived: no offer field states a reward value today
294
+ * (`oldPrice`/`newPrice` are free-text display prices with no currency). Ignored by
295
+ * every other surface.
296
+ */
297
+ unlockValueLabel?: string;
275
298
  }
276
299
  /**
277
300
  * Presentation callbacks for the bare `Encore.show()` form.
@@ -434,14 +457,15 @@ export interface EncoreConfig {
434
457
  * `'giftUnwrap'` — so a tester can pick a flow instead of taking whichever one the
435
458
  * server would have picked.
436
459
  *
437
- * **It never affects live traffic.** All it does is add a `demoVariant` query
438
- * parameter to the two `/config` fetches. The backend honours that parameter only
439
- * on a TEST KEY (`pk_test_*`) — where it works for any app, so you can preview
440
- * our reward variants against your own test key — and ignores it on a live key.
441
- * Set it on a `pk_live_*` key and you get exactly the response, and exactly the
442
- * surface, you would have got without it; the SDK logs one `[DEMO]` line saying
443
- * so rather than leaving you to wonder. It never renders anything the server did
444
- * not serve.
460
+ * **It never affects a publisher's live traffic.** All it does is add a
461
+ * `demoVariant` query parameter to the two `/config` fetches. The backend honours
462
+ * that parameter on a TEST KEY (`pk_test_*`) — where it works for any app, so you
463
+ * can preview our reward variants against your own test key — and on a live key
464
+ * only for Encore's own demo apps. For every other app it is ignored on a live
465
+ * key: set it on a `pk_live_*` key and you get exactly the response, and exactly
466
+ * the surface, you would have got without it; the SDK logs one `[DEMO]` line
467
+ * saying so rather than leaving you to wonder. It never renders anything the
468
+ * server did not serve.
445
469
  *
446
470
  * Changing it between presentations drops every in-memory answer the previous
447
471
  * flow produced, so the next `show()` asks the server again. Blank,
@@ -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;AAE5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAM/C;;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,E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CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC7D;AAED,4BAA4B;AAC5B,MAAM,MAAM,YAAY;AACtB,2EAA2E;AACzE;IAAE,MAAM,EAAE,UAAU,CAAA;CAAE;AACxB;;;;;GAKG;GACD;IAAE,MAAM,EAAE,WAAW,CAAC;IAAC,MAAM,CAAC,EAAE,gBAAgB,CAAA;CAAE;AACpD;;;GAGG;GACD;IAAE,MAAM,EAAE,aAAa,CAAA;CAAE,CAAC;AAE9B;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,eAAe,GAAG,WAAW,GAAG,YAAY,GAAG,aAAa,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IACnF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAMD;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,GAAG,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC"}
@@ -0,0 +1,151 @@
1
+ /**
2
+ * Code unlock — the screen the `codeUnlock` variant puts in front of the gift picker.
3
+ *
4
+ * Two screens in one root, in the order the user meets them:
5
+ *
6
+ * 1. CODE. A full-screen landing page at every width, the way a page reached from an
7
+ * email should read: the host's name, a value card ("Up to $45 in rewards" when the
8
+ * page supplies an amount, `PlacementOptions.unlockValueLabel`), "Your rewards are
9
+ * waiting", one line and an inline code field with "Unlock my rewards" attached;
10
+ * then a preview of the loaded offers (logos and names, no count),
11
+ * then three short steps. Two columns from 900px, stacked below. A code from the
12
+ * link (`PlacementOptions.unlockCode`) is already typed in; the user still
13
+ * presses Unlock, because pressing it is the moment.
14
+ * 2. OFFERS. THE SAME PAGE. The header and the value card stay where they were (the
15
+ * card now open), the code form gives way to "Your exclusive offers" under an
16
+ * "Exclusive offers unlocked" badge, and the picker's own rows, "More gifts", CTA
17
+ * and terms line render INLINE where the preview strip was. No modal frame and no
18
+ * backdrop: `Encore` hands this class the picker's surface and action block
19
+ * ({@link CodeUnlockParts}) and it lays them out on the page, under the picker's
20
+ * own class names so the styling is the picker's rather than a copy of it.
21
+ *
22
+ * ## The keyboard
23
+ *
24
+ * The screen fills the layout viewport, which an on-screen keyboard covers without
25
+ * resizing on iOS and on Android's default. While the code screen shows, the gate follows
26
+ * `visualViewport` and pads the screen by the covered height (`--encore-cu-kb`), so the
27
+ * centred content moves up and the input and Unlock stay above the keyboard.
28
+ *
29
+ * 🔴 THIS IS A GATE, NOT A SURFACE. It never selects, claims or reports an offer: the
30
+ * picker behind it does all of that through the one claim path (see `rewardSurface.ts`),
31
+ * so a `codeUnlock` claim is byte-for-byte a `giftPicker` claim.
32
+ *
33
+ * ## The code goes nowhere
34
+ *
35
+ * The typed code is read by {@link checkUnlockCode} in `core/unlockCode.ts` and nothing
36
+ * else. It is not an analytics property and not a request parameter. Today that check
37
+ * is a placeholder that accepts any non-empty code; making codes real means changing
38
+ * that one function (it is injectable here only so tests can stand in for it).
39
+ *
40
+ * ## Impressions wait for the unlock
41
+ *
42
+ * The offers screen is `hidden` (display: none) until the reveal ends, so the shared
43
+ * impression gate's paint check refuses every row behind the code screen, and the
44
+ * offers' entrance fade holds them until it finishes. An offer is billed only once the
45
+ * user can actually see it, which is the same rule every other surface keeps.
46
+ *
47
+ * ## The reveal (see codeUnlockStyles in styles.ts)
48
+ *
49
+ * One timeline in two halves, about 850ms in all. On the code screen the shackle lifts
50
+ * and swings open while the form fades away ({@link CODE_UNLOCK_REVEAL_MS}); then the
51
+ * screens swap and the badge pops in as the offers slide up ({@link CODE_UNLOCK_ENTER_MS}). The swap is a
52
+ * timer, not `animationend`, so a hidden tab or disabled animations still arrive at the
53
+ * offers. Every base rule is the finished state; reduced motion swaps at once.
54
+ */
55
+ import type { OfferModel as Offer } from '../api/models';
56
+ import { type UnlockCodeVerdict } from '../core/unlockCode';
57
+ /** The code screen's half of the reveal. The stylesheet carries the same number. */
58
+ export declare const CODE_UNLOCK_REVEAL_MS = 450;
59
+ /** The offers' entrance after the swap. The stylesheet carries the same number. */
60
+ export declare const CODE_UNLOCK_ENTER_MS = 400;
61
+ /**
62
+ * How long both screens are on screen together at the swap.
63
+ *
64
+ * THE TWO SCREENS CROSS-FADE, they do not take turns. Hiding the code screen and then
65
+ * fading the offers in leaves a beat with neither on screen, which reads as a white
66
+ * flash; for that beat the outgoing screen is laid over the incoming one and fades out
67
+ * while it rises. The stylesheet carries the same number.
68
+ */
69
+ export declare const CODE_UNLOCK_CROSSFADE_MS = 220;
70
+ /** The id on the code screen's heading, which names the dialog while it shows. */
71
+ export declare const CODE_UNLOCK_TITLE_ID: string;
72
+ /** Forget that a code was accepted. Called by `Encore.reset()`, and by tests. */
73
+ export declare function forgetUnlock(): void;
74
+ /** Every sentence the gate says. */
75
+ export declare const CODE_UNLOCK_COPY: {
76
+ readonly title: "Your rewards are waiting";
77
+ readonly inputLabel: "Your code";
78
+ readonly inputPlaceholder: "Enter your code";
79
+ readonly cta: "Unlock my rewards";
80
+ readonly emptyError: "Enter your code to continue.";
81
+ readonly rejectedError: "That code didn’t work. Check it and try again.";
82
+ readonly unlocked: "Exclusive offers unlocked";
83
+ readonly cardFallback: "Rewards picked for you";
84
+ readonly previewTitle: "Rewards you can choose from";
85
+ readonly previewNote: "Unlock to pick yours.";
86
+ readonly howTitle: "How it works";
87
+ readonly steps: readonly [readonly ["Enter your code", "It’s in the email we sent you."], readonly ["Pick a reward", "Choose the one you like best."], readonly ["Enjoy it", "Finish on the brand’s site."]];
88
+ /** The picker's headline behind the gate, in place of the served one. */
89
+ readonly offersHeadline: "Your exclusive offers";
90
+ readonly offersSubline: "Pick one, it’s on us";
91
+ };
92
+ /** The line under the heading, naming the amount when the page supplied one. */
93
+ export declare function unlockSubline(amount: string | null): string;
94
+ export interface CodeUnlockOptions {
95
+ /** The code from the link, typed in ahead of time. Trimmed and capped; not checked until Unlock. */
96
+ initialCode?: string;
97
+ /**
98
+ * The most the offers are worth, as the page states it ("$45"). Publisher-supplied;
99
+ * see {@link unlockValueAmount} for why and for what is accepted. No valid amount, no line.
100
+ */
101
+ valueLabel?: string;
102
+ /**
103
+ * The offers the picker behind the gate will show. The landing page previews them
104
+ * (logo and name) and counts them; it never links, selects or reports them.
105
+ */
106
+ offers?: readonly Offer[];
107
+ /** The host app's name for the page header (`values.text.appName`). No name, no header. */
108
+ hostName?: string;
109
+ /** The host app's icon beside that name. */
110
+ hostIconUrl?: string;
111
+ /** Called once, when the offers screen is showing. */
112
+ onUnlock?: () => void;
113
+ /** The code check. Tests only: production always uses {@link checkUnlockCode}. */
114
+ check?: (code: string) => Promise<UnlockCodeVerdict>;
115
+ }
116
+ /**
117
+ * The unlocked screen's content, built by `Encore`: the picker's surface element and
118
+ * its action block, plus the copy the reward chain resolved. The gate lays them out; it
119
+ * never builds a row or claims anything itself.
120
+ */
121
+ export interface CodeUnlockParts {
122
+ /** The resolved headline, which also names the dialog once unlocked. */
123
+ title: string;
124
+ subtitle?: string;
125
+ /** `GiftPicker.render()`: the rows, "More gifts" and its sheet. */
126
+ surface: HTMLElement;
127
+ /** `RewardActions.render()`: the CTA and the terms line. */
128
+ actions?: HTMLElement;
129
+ }
130
+ export interface CodeUnlockComposeOptions {
131
+ /**
132
+ * Point the dialog's `aria-labelledby` at `id`: the code screen's heading while it
133
+ * shows, `REWARD_TITLE_ID` after the unlock. A callback because the modal is Encore's.
134
+ */
135
+ setLabelledBy?: (id: string) => void;
136
+ }
137
+ export declare class CodeUnlock {
138
+ #private;
139
+ constructor(options?: CodeUnlockOptions);
140
+ isUnlocked(): boolean;
141
+ /**
142
+ * Build both screens of the page and return the root to hand the modal.
143
+ *
144
+ * The code screen shows; the unlocked screen is built now and kept `hidden`, so the
145
+ * picker's rows are laid out but painted by nothing until the unlock — which is what
146
+ * keeps their impressions until then.
147
+ */
148
+ compose(parts: CodeUnlockParts, options?: CodeUnlockComposeOptions): HTMLElement;
149
+ destroy(): void;
150
+ }
151
+ //# sourceMappingURL=CodeUnlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CodeUnlock.d.ts","sourceRoot":"","sources":["../../src/ui/CodeUnlock.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AAWH,OAAO,KAAK,EAAE,UAAU,IAAI,KAAK,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAKL,KAAK,iBAAiB,EACvB,MAAM,oBAAoB,CAAC;AAE5B,oFAAoF;AACpF,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAEzC,mFAAmF;AACnF,eAAO,MAAM,oBAAoB,MAAM,CAAC;AAExC;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAE5C,kFAAkF;AAClF,eAAO,MAAM,oBAAoB,QAA2B,CAAC;AAgB7D,iFAAiF;AACjF,wBAAgB,YAAY,IAAI,IAAI,CAEnC;AAKD,oCAAoC;AACpC,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;IAiB3B,yEAAyE;;;CAGjE,CAAC;AAEX,gFAAgF;AAChF,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAI3D;AAiBD,MAAM,WAAW,iBAAiB;IAChC,oGAAoG;IACpG,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,KAAK,EAAE,CAAC;IAC1B,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,kFAAkF;IAClF,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,iBAAiB,CAAC,CAAC;CACtD;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,wEAAwE;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mEAAmE;IACnE,OAAO,EAAE,WAAW,CAAC;IACrB,4DAA4D;IAC5D,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB;AAED,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AAED,qBAAa,UAAU;;gBAsBT,OAAO,GAAE,iBAAsB;IAI3C,UAAU,IAAI,OAAO;IAIrB;;;;;;OAMG;IACH,OAAO,CAAC,KAAK,EAAE,eAAe,EAAE,OAAO,GAAE,wBAA6B,GAAG,WAAW;IAifpF,OAAO,IAAI,IAAI;CAkBhB"}
@@ -81,6 +81,12 @@ export declare class OfferModal {
81
81
  * screen readers announce the dialog by what the user actually sees.
82
82
  */
83
83
  setLabelledBy(id: string): void;
84
+ /**
85
+ * Take the ×, backdrop-click and Escape away from a sheet built dismissible. One way
86
+ * only: a gate that must keep an exit opens dismissible, and applies the caller's
87
+ * `dismissible: false` once the exit is no longer needed.
88
+ */
89
+ preventDismissal(): void;
84
90
  /**
85
91
  * Set modal content
86
92
  */
@@ -1 +1 @@
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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