@inappstory/react-sdk 0.3.4 → 0.3.5
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/types/appearance-manager/appearanceCommon.d.ts +2 -0
- package/dist/types/appearance-manager/gameReader.d.ts +1 -0
- package/dist/types/appearance-manager/goodsWidget.d.ts +2 -0
- package/dist/types/appearance-manager/index.d.ts +1 -0
- package/dist/types/appearance-manager/overrideByMediaQuery.d.ts +4 -4
- package/dist/types/appearance-manager/storiesList.d.ts +2 -0
- package/dist/types/appearance-manager/storyReader.ts +1 -0
- package/dist/types/global.d.ts +6 -6
- package/dist/types/ias-container/IasContainer.d.ts +1 -1
- package/dist/types/ias-container/appearanceOptionsProps.d.ts +2 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/story-list/StoryList.d.ts +1 -1
- package/dist/types/story-list/UGCStoryList.d.ts +2 -3
- package/dist/types/story-list/index.d.ts +0 -2
- package/dist/types/story-list/storyCardViewModel.d.ts +0 -1
- package/package.json +54 -54
- package/dist/types/game-reader/gameReader.d.ts +0 -7
- package/dist/types/game-reader/index.d.ts +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AppearanceCommonOptions } from "./appearanceCommon";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { GameReaderOptions } from "./gameReader";
|
|
3
|
+
import { GoodsWidgetOptions } from "./goodsWidget";
|
|
4
|
+
import { StoriesListOptions } from "./storiesList";
|
|
5
|
+
import { StoryReaderOptions } from "./storyReader";
|
|
6
6
|
|
|
7
7
|
export type OverrideByMediaQuery<
|
|
8
8
|
Options extends
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CloseButtonPosition } from "./appearanceCommon";
|
|
2
2
|
import { GameReaderOptions } from "./gameReader";
|
|
3
3
|
import { SharePanel } from "./sharePanel"
|
|
4
|
+
import { Nullable, RecursivePartial } from "../global"
|
|
4
5
|
|
|
5
6
|
export declare enum StoryReaderSwipeStyle {
|
|
6
7
|
FLAT = "flat",
|
package/dist/types/global.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
export type RecursivePartial<T> = {
|
|
2
2
|
[P in keyof T]?: T[P] extends object ? RecursivePartial<T[P]> | null : T[P] | null;
|
|
3
3
|
};
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export type Nullable<T> = T | null;
|
|
6
|
+
export type Optional<T> = T | null;
|
|
7
|
+
export type Option<T> = T | null;
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
export type Dict<K extends string | number | symbol = string, T = any> = Record<K, T>;
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
export type Brand<T, B extends string> = T & { readonly __brand: B };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { OverrideByMediaQuery } from "../appearance-manager/overrideByMediaQuery
|
|
|
7
7
|
|
|
8
8
|
interface StoryListProps {
|
|
9
9
|
options: StoriesListOptions;
|
|
10
|
-
optionsOverrideByMediaQuery?: OverrideByMediaQuery<StoriesListOptions>
|
|
10
|
+
optionsOverrideByMediaQuery?: OverrideByMediaQuery<StoriesListOptions>[]
|
|
11
11
|
feedSlug: string;
|
|
12
12
|
testKey?: string;
|
|
13
13
|
onUgcCardClick?: () => void;
|
|
@@ -2,12 +2,11 @@ import { StoriesListOptions } from "..";
|
|
|
2
2
|
import { NavigationViewModel } from "./navigationViewModel";
|
|
3
3
|
import { StoryCardViewModel } from "./storyCardViewModel";
|
|
4
4
|
import { StoryListLoadStatus } from "./storyListLoadStatus";
|
|
5
|
-
import {
|
|
6
|
-
import { OverrideByMediaQuery } from "../appearance-manager/overrideByMediaQuery";
|
|
5
|
+
import { OverrideByMediaQuery } from "../appearance-manager";
|
|
7
6
|
|
|
8
7
|
interface UGCStoryListProps {
|
|
9
8
|
options?: StoriesListOptions;
|
|
10
|
-
optionsOverrideByMediaQuery?:
|
|
9
|
+
optionsOverrideByMediaQuery?: OverrideByMediaQuery<StoriesListOptions>[]
|
|
11
10
|
testKey?: string;
|
|
12
11
|
onUgcCardClick?: () => void;
|
|
13
12
|
useUgcCard?: boolean;
|
package/package.json
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
2
|
+
"name": "@inappstory/react-sdk",
|
|
3
|
+
"version": "0.3.5",
|
|
4
|
+
"description": "React SDK",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/types/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"stories",
|
|
13
|
+
"stories SDK",
|
|
14
|
+
"InAppStory"
|
|
15
|
+
],
|
|
16
|
+
"author": "Inappstory",
|
|
17
|
+
"maintainers": [
|
|
18
|
+
{
|
|
19
|
+
"name": "Inappstory",
|
|
20
|
+
"email": "dev@inappstory.com"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"homepage": "https://inappstory.com",
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/inappstory/react-web-sdk.git"
|
|
27
|
+
},
|
|
28
|
+
"bugs": "https://github.com/inappstory/react-web-sdk/issues",
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@inappstory/slide-api": "^0.0.8",
|
|
31
|
+
"@emotion/cache": "^11.11.0",
|
|
32
|
+
"@emotion/react": "^11.11.1",
|
|
33
|
+
"@emotion/styled": "^11.11.0",
|
|
34
|
+
"bowser": "^2.4.0",
|
|
35
|
+
"classnames": "^2.5.1",
|
|
36
|
+
"lodash": "^4.17.21",
|
|
37
|
+
"parse-css-sides": "^3.0.1",
|
|
38
|
+
"react-input-mask": "^2.0.4",
|
|
39
|
+
"uuid": "^8.1.0",
|
|
40
|
+
"effector": "^23.2.2"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"react": ">=17.0.2",
|
|
44
|
+
"react-dom": ">=17.0.2"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {},
|
|
47
|
+
"scripts": {},
|
|
48
|
+
"browserslist": [
|
|
49
|
+
"Android >= 5",
|
|
50
|
+
"IOS >= 11",
|
|
51
|
+
"Safari >= 11",
|
|
52
|
+
"Chrome >= 49",
|
|
53
|
+
"Firefox >= 31",
|
|
54
|
+
"Samsung >= 5"
|
|
55
|
+
]
|
|
56
56
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./gameReader"
|