@inappstory/react-sdk 1.16.1 → 1.16.3

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.
@@ -2,6 +2,15 @@ import type { StoryManagerEvents } from "./events";
2
2
  import type { InAppMessaging } from "./in-app-messaging/inAppMessaging";
3
3
  import type { Products } from "./products";
4
4
 
5
+ /**
6
+ * Behaviour of the close button in the game reader.
7
+ */
8
+ export declare enum GameCloseButtonBehavior {
9
+ CloseGame = "closeGame",
10
+ GoToMain = "goToMain",
11
+ Hidden = "hidden",
12
+ }
13
+
5
14
  /**
6
15
  * Source of the link click within stories.
7
16
  */
@@ -11,6 +20,15 @@ export declare enum LinkSource {
11
20
  GameReader = "gameReader"
12
21
  }
13
22
 
23
+ /**
24
+ * Platform type for hybrid (embedded WebView) apps.
25
+ */
26
+ export declare enum HybridAppPlatform {
27
+ Ios = "ios",
28
+ Android = "android",
29
+ Desktop = "desktop"
30
+ }
31
+
14
32
  /**
15
33
  * Configuration options for initializing the StoryManager.
16
34
  */
@@ -121,7 +139,15 @@ export type StoryManagerConfig = {
121
139
  left: number;
122
140
  right: number;
123
141
  };
142
+ /** Platform of the hybrid app host environment. Defaults to desktop when omitted. */
143
+ platform?: HybridAppPlatform;
124
144
  };
145
+
146
+ /**
147
+ * Behaviour of the close button in the game reader.
148
+ * @default GameCloseButtonBehavior.CloseGame
149
+ */
150
+ gameCloseButtonBehaviour?: GameCloseButtonBehavior;
125
151
  };
126
152
 
127
153
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inappstory/react-sdk",
3
- "version": "1.16.1",
3
+ "version": "1.16.3",
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.51",
61
+ "@inappstory/slide-api": "^0.1.52",
62
62
  "async-mutex": "^0.5.0",
63
63
  "bowser": "^2.14.1",
64
64
  "classnames": "^2.5.1",