@encorekit/web-sdk 2.0.1 → 2.0.3
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 +102 -4
- 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 +1 -1
- package/types/analytics/events.d.ts +20 -3
- package/types/analytics/events.d.ts.map +1 -1
- package/types/api/APIClient.d.ts.map +1 -1
- package/types/api/generated/types.d.ts +6 -1
- package/types/api/generated/types.d.ts.map +1 -1
- package/types/core/Encore.d.ts +4 -1
- package/types/core/Encore.d.ts.map +1 -1
- package/types/core/OfferManager.d.ts +1 -1
- package/types/core/OfferManager.d.ts.map +1 -1
- package/types/core/version.d.ts +1 -1
- package/types/index.d.ts +1 -0
- package/types/index.d.ts.map +1 -1
- package/types/types.d.ts +50 -1
- package/types/types.d.ts.map +1 -1
- package/types/ui/OfferCarousel.d.ts +8 -0
- package/types/ui/OfferCarousel.d.ts.map +1 -1
- package/types/ui/OfferModal.d.ts +25 -1
- package/types/ui/OfferModal.d.ts.map +1 -1
- package/types/ui/RewardActions.d.ts +15 -0
- package/types/ui/RewardActions.d.ts.map +1 -1
- package/types/ui/RewardLayout.d.ts +16 -0
- package/types/ui/RewardLayout.d.ts.map +1 -1
- package/types/ui/appearance.d.ts +154 -0
- package/types/ui/appearance.d.ts.map +1 -0
- package/types/ui/cssSafe.d.ts +34 -0
- package/types/ui/cssSafe.d.ts.map +1 -0
- package/types/ui/styles.d.ts +46 -16
- package/types/ui/styles.d.ts.map +1 -1
- package/types/utils/text.d.ts +14 -0
- package/types/utils/text.d.ts.map +1 -1
|
@@ -59,9 +59,9 @@ export declare const ClaimFailureReason: {
|
|
|
59
59
|
export declare function declineReasonWireValue(reason: string | undefined): string | undefined;
|
|
60
60
|
export declare function sdkInitialized(distinctId: string, sdkVersion: string, appBundleId: string): AnalyticsEvent;
|
|
61
61
|
export declare function userIdentified(distinctId: string, userId: string, appBundleId: string, attributes?: Record<string, unknown>): AnalyticsEvent;
|
|
62
|
-
export declare function offerPresentationTriggered(distinctId: string, presentationId: string, variantId?: string, useCase?: UseCase): AnalyticsEvent;
|
|
63
|
-
export declare function offerPresentationFailed(distinctId: string, reason: string, presentationId: string, variantId?: string, useCase?: UseCase): AnalyticsEvent;
|
|
64
|
-
export declare function offerPresentationSuccess(distinctId: string, presentationId: string, offerCount: number, variantId?: string, useCase?: UseCase): AnalyticsEvent;
|
|
62
|
+
export declare function offerPresentationTriggered(distinctId: string, presentationId: string, variantId?: string, useCase?: UseCase, placementId?: string): AnalyticsEvent;
|
|
63
|
+
export declare function offerPresentationFailed(distinctId: string, reason: string, presentationId: string, variantId?: string, useCase?: UseCase, placementId?: string): AnalyticsEvent;
|
|
64
|
+
export declare function offerPresentationSuccess(distinctId: string, presentationId: string, offerCount: number, variantId?: string, useCase?: UseCase, placementId?: string): AnalyticsEvent;
|
|
65
65
|
export declare function offerPresented(distinctId: string, params: {
|
|
66
66
|
campaignId: string;
|
|
67
67
|
creativeId: string;
|
|
@@ -73,6 +73,7 @@ export declare function offerPresented(distinctId: string, params: {
|
|
|
73
73
|
presentationId: string;
|
|
74
74
|
variantId?: string;
|
|
75
75
|
useCase?: UseCase;
|
|
76
|
+
placementId?: string;
|
|
76
77
|
}): AnalyticsEvent;
|
|
77
78
|
export declare function offerClaimed(distinctId: string, params: {
|
|
78
79
|
campaignId: string;
|
|
@@ -85,6 +86,7 @@ export declare function offerClaimed(distinctId: string, params: {
|
|
|
85
86
|
presentationId: string;
|
|
86
87
|
variantId?: string;
|
|
87
88
|
useCase?: UseCase;
|
|
89
|
+
placementId?: string;
|
|
88
90
|
}): AnalyticsEvent;
|
|
89
91
|
export declare function offerDeclined(distinctId: string, params: {
|
|
90
92
|
campaignId: string;
|
|
@@ -97,6 +99,7 @@ export declare function offerDeclined(distinctId: string, params: {
|
|
|
97
99
|
presentationId: string;
|
|
98
100
|
variantId?: string;
|
|
99
101
|
useCase?: UseCase;
|
|
102
|
+
placementId?: string;
|
|
100
103
|
}): AnalyticsEvent;
|
|
101
104
|
export declare function offerSheetDismissed(distinctId: string, params: {
|
|
102
105
|
presentationId: string;
|
|
@@ -106,6 +109,7 @@ export declare function offerSheetDismissed(distinctId: string, params: {
|
|
|
106
109
|
declineReason?: string;
|
|
107
110
|
variantId?: string;
|
|
108
111
|
useCase?: UseCase;
|
|
112
|
+
placementId?: string;
|
|
109
113
|
}): AnalyticsEvent;
|
|
110
114
|
export declare function offerTimeSpent(distinctId: string, params: {
|
|
111
115
|
campaignId: string;
|
|
@@ -116,6 +120,7 @@ export declare function offerTimeSpent(distinctId: string, params: {
|
|
|
116
120
|
presentationId: string;
|
|
117
121
|
variantId?: string;
|
|
118
122
|
useCase?: UseCase;
|
|
123
|
+
placementId?: string;
|
|
119
124
|
}): AnalyticsEvent;
|
|
120
125
|
/**
|
|
121
126
|
* The offer identity every claim-funnel and advertiser-handoff event carries —
|
|
@@ -141,6 +146,8 @@ export interface OfferEventContext {
|
|
|
141
146
|
presentationId?: string;
|
|
142
147
|
variantId?: string;
|
|
143
148
|
useCase?: UseCase;
|
|
149
|
+
/** The publisher's placement label, when they supplied one. See `placementProperty`. */
|
|
150
|
+
placementId?: string;
|
|
144
151
|
}
|
|
145
152
|
/**
|
|
146
153
|
* The claim TAP, emitted before any guard can fail — the advertiser funnel's
|
|
@@ -221,6 +228,12 @@ export declare function offerWebviewDismissed(distinctId: string, ctx: OfferEven
|
|
|
221
228
|
* `'remote'` (config resolved) or `'fallback'` (it did not, and the bundled copy
|
|
222
229
|
* rendered). It never reports `'cache'` — web persists no variant/template pair,
|
|
223
230
|
* so claiming a cache tier would describe a mechanism this SDK does not have.
|
|
231
|
+
*
|
|
232
|
+
* Deliberately carries NEITHER `use_case` NOR `placement_id`, unlike the other two
|
|
233
|
+
* `sdk_sdui_*` events. This one fires at CONFIG-FETCH time, not inside a presentation:
|
|
234
|
+
* there is no placement yet, and the fetch covers every use case at once. Stamping
|
|
235
|
+
* either would be inventing a value, which is the one thing the placement dimension
|
|
236
|
+
* must never contain.
|
|
224
237
|
*/
|
|
225
238
|
export declare function sduiConfigLoaded(distinctId: string, params: {
|
|
226
239
|
variantId?: string;
|
|
@@ -237,6 +250,8 @@ export declare function sduiButtonTapped(distinctId: string, params: {
|
|
|
237
250
|
actionType: 'close' | 'claimOffer' | 'openUrl' | 'next' | 'previous';
|
|
238
251
|
presentationId: string;
|
|
239
252
|
currentState: string;
|
|
253
|
+
useCase?: UseCase;
|
|
254
|
+
placementId?: string;
|
|
240
255
|
}): AnalyticsEvent;
|
|
241
256
|
/**
|
|
242
257
|
* The user moved through the offer carousel. `scrollAxis` is genuinely
|
|
@@ -248,6 +263,8 @@ export declare function sduiScroll(distinctId: string, params: {
|
|
|
248
263
|
scrollAxis: 'horizontal' | 'vertical';
|
|
249
264
|
scrollPosition: number;
|
|
250
265
|
presentationId: string;
|
|
266
|
+
useCase?: UseCase;
|
|
267
|
+
placementId?: string;
|
|
251
268
|
}): AnalyticsEvent;
|
|
252
269
|
/**
|
|
253
270
|
* Exposure at the offer trigger — logged for BOTH treatment and control to
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/analytics/events.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/analytics/events.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAQxC;;;;;;;;;;;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EAAE,MAAM,GACf,cAAc,CAMhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"APIClient.d.ts","sourceRoot":"","sources":["../../src/api/APIClient.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAe,cAAc,EAAE,WAAW,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEtG,OAAO,KAAK,EAEV,wBAAwB,EAIxB,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,UAAU,EACV,yBAAyB,EAC1B,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"APIClient.d.ts","sourceRoot":"","sources":["../../src/api/APIClient.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAe,cAAc,EAAE,WAAW,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEtG,OAAO,KAAK,EAEV,wBAAwB,EAIxB,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,UAAU,EACV,yBAAyB,EAC1B,MAAM,UAAU,CAAC;AAUlB,UAAU,cAAc;IACtB,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAQD,qBAAa,SAAS;;gBAKR,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;IAM3C;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAI/B;;OAEG;IACH,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAIjC;;OAEG;IACG,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO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AC7C,OAAO,CAAC,gBAAgB,CAAC;IAa5B;;OAEG;IACG,YAAY,CAChB,aAAa,EAAE,MAAM,EACrB,SAAS,EAAE,MAAM,EACjB,UAAU,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAC7C,OAAO,CAAC,oBAAoB,CAAC;IAchC;;;;;;;;;;;;;;;;;OAiBG;IACG,WAAW,CACf,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,OAAO,GAChB,OAAO,CAAC,oBAAoB,CAAC;IAehC;;OAEG;IACG,WAAW,CAAC,MAAM,EAAE;QACxB,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;QAClD,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KACnC,GAAG,OAAO,CAAC,IAAI,CAAC;IAsBjB;;OAEG;IACG,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAW3D"}
|
|
@@ -317,7 +317,7 @@ export interface paths {
|
|
|
317
317
|
* @description SDUI variant ID from frontend config fetch. If provided, filters creatives by variant assignment. If not provided, no variant filtering is applied.
|
|
318
318
|
*/
|
|
319
319
|
variantId?: string;
|
|
320
|
-
/** @description Publisher-defined surface label for where the offer is shown (e.g. 'paywall', 'onboarding', 'settings'). Best-effort analytics context: when supplied it is stamped onto the sdk_offer_requested event so publisher analytics can break the funnel out by placement. Max 64 chars
|
|
320
|
+
/** @description Publisher-defined surface label for where the offer is shown (e.g. 'paywall', 'onboarding', 'settings'). Best-effort analytics context: when supplied it is stamped onto the sdk_offer_requested event so publisher analytics can break the funnel out by placement. Max 64 chars. SDKs may send their own auto-generated `placement_<8 hex>` id when the publisher supplied none — that is expected and is folded into the '(unlabeled)' bucket at read time; do NOT substitute '(unlabeled)' or an empty string yourself. */
|
|
321
321
|
placementId?: string;
|
|
322
322
|
/** @description Strict unlock mode: only include campaigns whose postback latency is less than or equal to this value (in milliseconds). Omit for no filtering. Bounded 1000..120000. */
|
|
323
323
|
maxPostbackTimeMs?: number;
|
|
@@ -2991,6 +2991,11 @@ export interface paths {
|
|
|
2991
2991
|
* @description Client-issued UUID v4 used as the conversion attribution id; substituted into the sponsor URL at email-send time.
|
|
2992
2992
|
*/
|
|
2993
2993
|
transactionId: string;
|
|
2994
|
+
/**
|
|
2995
|
+
* @description Which Encore surface the user claimed from. Persisted on the transaction this route creates, so the server-side completion — built from that row alone, with no client context — can be split by use case, along with the payout booked on it. Absent means 'churn-intervention'.
|
|
2996
|
+
* @enum {string}
|
|
2997
|
+
*/
|
|
2998
|
+
useCase?: "churn-intervention" | "post-action-reward";
|
|
2994
2999
|
};
|
|
2995
3000
|
};
|
|
2996
3001
|
};
|