@inappstory/react-sdk 1.16.6 → 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.
@@ -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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inappstory/react-sdk",
3
- "version": "1.16.6",
3
+ "version": "1.16.8",
4
4
  "description": "React SDK",
5
5
  "keywords": [
6
6
  "stories",