@inappstory/react-sdk 1.9.6 → 1.10.1

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.
@@ -134,7 +134,7 @@ export interface VisibleAreaUpdatedEvent {
134
134
  stories: Array<{ id: number; title: string; slidesCount: number }>;
135
135
  }
136
136
 
137
- /** Generic widget event */
137
+ /** Event: widget event */
138
138
  export interface WidgetEvent {
139
139
  /** Event name */
140
140
  name: string;
@@ -154,7 +154,7 @@ export interface CloseGameEvent {
154
154
  id: string;
155
155
  }
156
156
 
157
- /** Generic game event */
157
+ /** Event: game event */
158
158
  export interface EventGameEvent {
159
159
  /** Event name */
160
160
  name: string;
@@ -162,6 +162,9 @@ export interface EventGameEvent {
162
162
  payload: Record<string, any>;
163
163
  }
164
164
 
165
+ /** Event: game error */
166
+ export type ErrorGameEvent = Error
167
+
165
168
  /** Event: fired when the "Add to cart" button is pressed */
166
169
  export interface ProductCartUpdatedEvent {
167
170
  /** Product offer */
@@ -209,6 +212,8 @@ export interface StoryManagerEvents {
209
212
  closeGame: CloseGameEvent;
210
213
  /** Custom game event */
211
214
  eventGame: EventGameEvent;
215
+ /** Game error */
216
+ errorGame: ErrorGameEvent;
212
217
  /** Close story reader event */
213
218
  closeStoryReader: CloseStoryReaderEvent;
214
219
  /** Fired when the "Add to cart" button is pressed */
@@ -26,7 +26,12 @@ export declare enum IamMessageType {
26
26
  /**
27
27
  * Message takes up the full screen
28
28
  */
29
- Fullscreen = 3
29
+ Fullscreen = 3,
30
+
31
+ /**
32
+ * Message appears as a toast notification (overlay at top or bottom of screen)
33
+ */
34
+ Toast = 4
30
35
  }
31
36
 
32
37
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inappstory/react-sdk",
3
- "version": "1.9.6",
3
+ "version": "1.10.1",
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.35",
61
+ "@inappstory/slide-api": "^0.1.36",
62
62
  "async-mutex": "^0.5.0",
63
63
  "bowser": "^2.11.0",
64
64
  "classnames": "^2.5.1",