@inappstory/react-sdk 1.8.0-rc.5 → 1.8.0-rc.7
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 +469 -409
- package/dist/index.esm.mjs.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/types/storyManager.d.ts +15 -2
- package/package.json +2 -2
- package/plugins/banners/index.esm.mjs +1 -1
|
@@ -53,6 +53,20 @@ export type StoryManagerConfig = {
|
|
|
53
53
|
* @see https://docs.inappstory.com/sdk-guides/react-sdk/user-settings.html#overview
|
|
54
54
|
*/
|
|
55
55
|
disableDeviceId?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Use anonymous session. Warning: not all functionality will be available.
|
|
58
|
+
*/
|
|
59
|
+
anonymous?: boolean
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The field is responsible for passing user variables and widget variables (for example, the "products" widget)
|
|
63
|
+
*/
|
|
64
|
+
options?: {
|
|
65
|
+
/**
|
|
66
|
+
* Point of sale
|
|
67
|
+
*/
|
|
68
|
+
pos?: string;
|
|
69
|
+
} & Record<string, any>;
|
|
56
70
|
};
|
|
57
71
|
|
|
58
72
|
/**
|
|
@@ -183,12 +197,11 @@ export declare class StoryManager {
|
|
|
183
197
|
/**
|
|
184
198
|
* Opens a game by its instance ID.
|
|
185
199
|
* @param gameInstanceId Game instance identifier
|
|
186
|
-
* @param gameOptions Optional game parameters
|
|
187
200
|
* @see https://docs.inappstory.com/sdk-guides/react-sdk/games.html
|
|
188
201
|
* @example
|
|
189
202
|
* storyManager.openGame("your-game-id")
|
|
190
203
|
*/
|
|
191
|
-
openGame(gameInstanceId: string | number
|
|
204
|
+
openGame(gameInstanceId: string | number): Promise<void>;
|
|
192
205
|
|
|
193
206
|
/**
|
|
194
207
|
* Closes the currently active game, if any.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inappstory/react-sdk",
|
|
3
|
-
"version": "1.8.0-rc.
|
|
3
|
+
"version": "1.8.0-rc.7",
|
|
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.23",
|
|
62
62
|
"async-mutex": "^0.5.0",
|
|
63
63
|
"bowser": "^2.11.0",
|
|
64
64
|
"classnames": "^2.5.1",
|