@inappstory/react-sdk 1.9.5 → 1.9.6
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.
|
@@ -153,6 +153,8 @@ export interface InAppMessaging {
|
|
|
153
153
|
* @param options - Optional display configuration
|
|
154
154
|
* @param options.showOnlyIfLoaded - If true, only shows messages that were preloaded
|
|
155
155
|
* @param options.signal - Abort signal to cancel the operation
|
|
156
|
+
* @param options.appearance - Appearance options for the message
|
|
157
|
+
* @param options.appearance.zIndex - Custom z-index value for the message container (BottomSheet/Modal)
|
|
156
158
|
* @returns Promise resolving to the displayed message
|
|
157
159
|
* @throws {IamNotFoundByIdError} If no message exists with this ID
|
|
158
160
|
* @throws {IamMessageOpenError} If this message is already open
|
|
@@ -160,7 +162,7 @@ export interface InAppMessaging {
|
|
|
160
162
|
* @throws {IamShowOnlyIfLoadedError} If showOnlyIfLoaded=true but message wasn't preloaded
|
|
161
163
|
* @throws {IamMessageLimitExceededError} If message display limit was reached
|
|
162
164
|
*/
|
|
163
|
-
showMessageById(messageId: number | string, options?: { showOnlyIfLoaded?: boolean; signal?: AbortSignal; }): Promise<IamMessage>;
|
|
165
|
+
showMessageById(messageId: number | string, options?: { showOnlyIfLoaded?: boolean; signal?: AbortSignal; appearance?: { zIndex?: number }; }): Promise<IamMessage>;
|
|
164
166
|
|
|
165
167
|
/**
|
|
166
168
|
* Displays a message associated with an event name
|
|
@@ -169,6 +171,8 @@ export interface InAppMessaging {
|
|
|
169
171
|
* @param options.showOnlyIfLoaded - If true, only shows messages that were preloaded
|
|
170
172
|
* @param options.tags - Filter messages by tags
|
|
171
173
|
* @param options.signal - Abort signal to cancel the operation
|
|
174
|
+
* @param options.appearance - Appearance options for the message
|
|
175
|
+
* @param options.appearance.zIndex - Custom z-index value for the message container (BottomSheet/Modal)
|
|
172
176
|
* @returns Promise resolving to the displayed message
|
|
173
177
|
* @throws {IamNotFoundByEventError} If no message exists for this event
|
|
174
178
|
* @throws {IamFrequencyLimitError} If message frequency limit was exceeded
|
|
@@ -178,7 +182,7 @@ export interface InAppMessaging {
|
|
|
178
182
|
*/
|
|
179
183
|
showMessageByEvent(
|
|
180
184
|
eventName: string,
|
|
181
|
-
options?: { showOnlyIfLoaded?: boolean; tags?: string[]; signal?: AbortSignal; }
|
|
185
|
+
options?: { showOnlyIfLoaded?: boolean; tags?: string[]; signal?: AbortSignal; appearance?: { zIndex?: number }; }
|
|
182
186
|
): Promise<IamMessage>;
|
|
183
187
|
|
|
184
188
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inappstory/react-sdk",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.6",
|
|
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.35",
|
|
62
62
|
"async-mutex": "^0.5.0",
|
|
63
63
|
"bowser": "^2.11.0",
|
|
64
64
|
"classnames": "^2.5.1",
|