@inappstory/react-sdk 1.16.8 → 1.16.10
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/index.esm.mjs +301 -125
- package/dist/index.esm.mjs.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/types/in-app-messaging/inAppMessaging.d.ts +7 -1
- package/dist/types/storyManager.d.ts +4 -2
- package/package.json +2 -2
- package/plugins/banners/index.esm.mjs +1 -1
- package/plugins/banners/index.umd.js +1 -1
- package/plugins/banners/types/iasBannerPreview.d.ts +6 -0
|
@@ -204,6 +204,7 @@ export interface InAppMessaging {
|
|
|
204
204
|
* @param options - Optional display configuration
|
|
205
205
|
* @param options.showOnlyIfLoaded - If true, only shows messages that were preloaded
|
|
206
206
|
* @param options.signal - Abort signal to cancel the operation
|
|
207
|
+
* @param options.targeting - If true, the message will be displayed targeting the user
|
|
207
208
|
* @param options.appearance - Client appearance overrides when opening the message
|
|
208
209
|
* @param options.appearance.zIndex - Custom z-index for the message container
|
|
209
210
|
* @param options.appearance.toast - Toast-specific overrides (when message type is Toast)
|
|
@@ -217,7 +218,12 @@ export interface InAppMessaging {
|
|
|
217
218
|
*/
|
|
218
219
|
showMessageById(
|
|
219
220
|
messageId: number | string,
|
|
220
|
-
options?: {
|
|
221
|
+
options?: {
|
|
222
|
+
showOnlyIfLoaded?: boolean;
|
|
223
|
+
signal?: AbortSignal;
|
|
224
|
+
targeting?: boolean;
|
|
225
|
+
appearance?: IamClientAppearanceOptions;
|
|
226
|
+
}
|
|
221
227
|
): Promise<IamMessage>;
|
|
222
228
|
|
|
223
229
|
/**
|
|
@@ -315,15 +315,17 @@ export declare class StoryManager {
|
|
|
315
315
|
* Displays a specific story.
|
|
316
316
|
* @param id The story ID
|
|
317
317
|
* @param options.signal Abort signal to cancel the operation
|
|
318
|
+
* @param options.targeting Enable targeting for story fetch
|
|
318
319
|
*/
|
|
319
|
-
showStory(id: number | string, options?: { signal?: AbortSignal }): Promise<void>;
|
|
320
|
+
showStory(id: number | string, options?: { signal?: AbortSignal; targeting?: boolean }): Promise<void>;
|
|
320
321
|
|
|
321
322
|
/**
|
|
322
323
|
* Displays a story only once.
|
|
323
324
|
* @param id The story ID
|
|
324
325
|
* @param options.signal Abort signal to cancel the operation
|
|
326
|
+
* @param options.targeting Enable targeting for story fetch
|
|
325
327
|
*/
|
|
326
|
-
showStoryOnce(id: number | string, options?: { signal?: AbortSignal }): Promise<void>;
|
|
328
|
+
showStoryOnce(id: number | string, options?: { signal?: AbortSignal; targeting?: boolean }): Promise<void>;
|
|
327
329
|
|
|
328
330
|
/**
|
|
329
331
|
* Opens a game by its instance ID.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inappstory/react-sdk",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.10",
|
|
4
4
|
"description": "React SDK",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"stories",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"Samsung >= 5"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@inappstory/slide-api": "^0.1.
|
|
61
|
+
"@inappstory/slide-api": "^0.1.54",
|
|
62
62
|
"async-mutex": "^0.5.0",
|
|
63
63
|
"bowser": "^2.14.1",
|
|
64
64
|
"classnames": "^2.5.1",
|