@inappstory/react-sdk 1.16.7 → 1.16.8
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 +54 -22
- package/dist/index.esm.mjs.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/types/events.d.ts +2 -0
- package/dist/types/in-app-messaging/inAppMessaging.d.ts +14 -0
- package/package.json +1 -1
- package/plugins/banners/index.esm.mjs +1 -1
- package/plugins/banners/index.umd.js +1 -1
- package/plugins/banners/types/events.d.ts +26 -0
package/dist/types/events.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ export interface StoryReaderEvent {
|
|
|
18
18
|
filter: Record<string, unknown>;
|
|
19
19
|
/** User-generated payload (e.g., UGC data) */
|
|
20
20
|
ugcPayload: Record<string, unknown>;
|
|
21
|
+
/** Custom attributes from the story payload */
|
|
22
|
+
extraFields?: Record<string, string>;
|
|
21
23
|
/** Number of items in the default list */
|
|
22
24
|
defaultListLength: number;
|
|
23
25
|
/** Number of items in the favorites list */
|
|
@@ -90,6 +90,10 @@ export type IamEvents = {
|
|
|
90
90
|
* The message that was closed
|
|
91
91
|
*/
|
|
92
92
|
message: IamMessage;
|
|
93
|
+
/**
|
|
94
|
+
* Custom attributes from the message payload
|
|
95
|
+
*/
|
|
96
|
+
extraFields?: Record<string, string>;
|
|
93
97
|
};
|
|
94
98
|
|
|
95
99
|
/**
|
|
@@ -114,6 +118,11 @@ export type IamEvents = {
|
|
|
114
118
|
* Additional data associated with the event
|
|
115
119
|
*/
|
|
116
120
|
data: Record<string, any>;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Custom attributes from the message payload
|
|
124
|
+
*/
|
|
125
|
+
extraFields?: Record<string, string>;
|
|
117
126
|
};
|
|
118
127
|
|
|
119
128
|
/**
|
|
@@ -143,6 +152,11 @@ export type IamEvents = {
|
|
|
143
152
|
* ID of the HTML element that was clicked
|
|
144
153
|
*/
|
|
145
154
|
elementId: string;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Custom attributes from the message payload
|
|
158
|
+
*/
|
|
159
|
+
extraFields?: Record<string, string>;
|
|
146
160
|
};
|
|
147
161
|
};
|
|
148
162
|
|