@inappstory/js-sdk 3.3.0 → 3.4.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.
|
@@ -35,10 +35,13 @@ export interface InAppMessaging {
|
|
|
35
35
|
get isLoading(): boolean;
|
|
36
36
|
get isOpened(): boolean;
|
|
37
37
|
|
|
38
|
-
preload(): Promise<IamMessage[]>;
|
|
39
|
-
showMessageById(messageId: number | string, showOnlyIfLoaded?: boolean): Promise<IamMessage>;
|
|
40
|
-
showMessageByEvent(
|
|
41
|
-
|
|
38
|
+
preload(options?: { tags?: string[] }): Promise<IamMessage[]>;
|
|
39
|
+
showMessageById(messageId: number | string, options?: { showOnlyIfLoaded?: boolean }): Promise<IamMessage>;
|
|
40
|
+
showMessageByEvent(
|
|
41
|
+
eventName: string,
|
|
42
|
+
options?: { showOnlyIfLoaded?: boolean; tags?: string[] }
|
|
43
|
+
): Promise<IamMessage>;
|
|
44
|
+
close(): Promise<void>;
|
|
42
45
|
on<Event extends keyof IamEvents>(eventName: Event, listener: IamEventHandler<Event>): this;
|
|
43
46
|
once<Event extends keyof IamEvents>(eventName: Event, listener: IamEventHandler<Event>): this;
|
|
44
47
|
off<Event extends keyof IamEvents>(eventName: Event, listener: IamEventHandler<Event>): this;
|
package/package.json
CHANGED
|
@@ -1,10 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inappstory/js-sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.1",
|
|
4
4
|
"description": "JS SDK",
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
"keywords": [
|
|
6
|
+
"stories",
|
|
7
|
+
"stories SDK",
|
|
8
|
+
"InAppStory"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://inappstory.com",
|
|
11
|
+
"bugs": "https://github.com/inappstory/react-web-sdk/issues",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/inappstory/react-web-sdk.git"
|
|
15
|
+
},
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"author": "Inappstory",
|
|
18
|
+
"maintainers": [
|
|
19
|
+
{
|
|
20
|
+
"name": "Inappstory",
|
|
21
|
+
"email": "dev@inappstory.com"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
8
24
|
"exports": {
|
|
9
25
|
".": {
|
|
10
26
|
"types": "./dist/types/index.d.ts",
|
|
@@ -17,53 +33,39 @@
|
|
|
17
33
|
"default": "./plugins/dotLottie/dotLottie.umd.js"
|
|
18
34
|
}
|
|
19
35
|
},
|
|
36
|
+
"main": "dist/index.umd.js",
|
|
37
|
+
"module": "dist/index.esm.mjs",
|
|
38
|
+
"types": "dist/types/index.d.ts",
|
|
20
39
|
"files": [
|
|
21
40
|
"dist",
|
|
22
41
|
"plugins"
|
|
23
42
|
],
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
{
|
|
33
|
-
"name": "Inappstory",
|
|
34
|
-
"email": "dev@inappstory.com"
|
|
35
|
-
}
|
|
43
|
+
"scripts": {},
|
|
44
|
+
"browserslist": [
|
|
45
|
+
"Android >= 5",
|
|
46
|
+
"IOS >= 11",
|
|
47
|
+
"Safari >= 11",
|
|
48
|
+
"Chrome >= 49",
|
|
49
|
+
"Firefox >= 31",
|
|
50
|
+
"Samsung >= 5"
|
|
36
51
|
],
|
|
37
|
-
"homepage": "https://inappstory.com",
|
|
38
|
-
"repository": {
|
|
39
|
-
"type": "git",
|
|
40
|
-
"url": "git+https://github.com/inappstory/react-web-sdk.git"
|
|
41
|
-
},
|
|
42
|
-
"bugs": "https://github.com/inappstory/react-web-sdk/issues",
|
|
43
52
|
"dependencies": {
|
|
44
|
-
"@inappstory/slide-api": "^0.0.
|
|
53
|
+
"@inappstory/slide-api": "^0.0.21",
|
|
45
54
|
"@inappstory/video-player": "^1.0.1",
|
|
46
|
-
"
|
|
55
|
+
"async-mutex": "^0.5.0",
|
|
56
|
+
"bowser": "^2.11.0",
|
|
47
57
|
"classnames": "^2.5.1",
|
|
58
|
+
"css-font-parser": "^2.0.1",
|
|
59
|
+
"deepmerge": "^4.3.1",
|
|
60
|
+
"lit": "^3.2.1",
|
|
48
61
|
"lodash": "^4.17.21",
|
|
62
|
+
"mobx": "^6.9.0",
|
|
63
|
+
"mobx-react-lite": "^4.1.0",
|
|
49
64
|
"parse-css-sides": "^3.0.1",
|
|
50
|
-
"react-input-mask": "^2.0.4",
|
|
51
|
-
"uuid": "^10.0.0",
|
|
52
65
|
"react": "^18.2.0",
|
|
53
66
|
"react-dom": "^18.2.0",
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"lit": "^3.2.1",
|
|
57
|
-
"async-mutex": "^0.5.0"
|
|
67
|
+
"react-input-mask": "^2.0.4",
|
|
68
|
+
"uuid": "^10.0.0"
|
|
58
69
|
},
|
|
59
|
-
"devDependencies": {}
|
|
60
|
-
"scripts": {},
|
|
61
|
-
"browserslist": [
|
|
62
|
-
"Android >= 5",
|
|
63
|
-
"IOS >= 11",
|
|
64
|
-
"Safari >= 11",
|
|
65
|
-
"Chrome >= 49",
|
|
66
|
-
"Firefox >= 31",
|
|
67
|
-
"Samsung >= 5"
|
|
68
|
-
]
|
|
70
|
+
"devDependencies": {}
|
|
69
71
|
}
|