@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.
@@ -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?: { showOnlyIfLoaded?: boolean; signal?: AbortSignal; appearance?: IamClientAppearanceOptions }
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.8",
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.53",
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",