@inappstory/react-sdk 0.4.1-rc.0 → 0.4.2
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.
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import { RecursivePartial } from "../global"
|
|
1
|
+
import { RecursivePartial } from "../global";
|
|
2
2
|
|
|
3
3
|
export declare enum CloseButtonPosition {
|
|
4
|
+
/** @deprecated */
|
|
4
5
|
LEFT = "left",
|
|
5
|
-
|
|
6
|
+
/** @deprecated */
|
|
7
|
+
RIGHT = "right",
|
|
8
|
+
START = "start",
|
|
9
|
+
END = "end"
|
|
6
10
|
}
|
|
7
11
|
|
|
8
12
|
export type AppearanceCommonOptions = RecursivePartial<{
|
|
9
13
|
hasFavorite: boolean;
|
|
10
14
|
hasLike: boolean;
|
|
11
15
|
hasShare: boolean;
|
|
12
|
-
closeButtonPosition: CloseButtonPosition | "left" | "right";
|
|
16
|
+
closeButtonPosition: CloseButtonPosition | "left" | "right" | "start" | "end";
|
|
13
17
|
loader: {
|
|
14
18
|
default: {
|
|
15
19
|
color: string;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { Option, RecursivePartial } from "../global"
|
|
1
|
+
import { Option, RecursivePartial } from "../global";
|
|
2
2
|
|
|
3
3
|
export declare enum StoriesListSliderAlign {
|
|
4
4
|
CENTER = "center",
|
|
5
|
+
/** @deprecated */
|
|
5
6
|
LEFT = "left",
|
|
6
|
-
|
|
7
|
+
/** @deprecated */
|
|
8
|
+
RIGHT = "right",
|
|
9
|
+
START = "start",
|
|
10
|
+
END = "end"
|
|
7
11
|
}
|
|
8
12
|
|
|
9
13
|
export declare enum StoriesListCardViewVariant {
|
|
@@ -13,9 +17,13 @@ export declare enum StoriesListCardViewVariant {
|
|
|
13
17
|
}
|
|
14
18
|
|
|
15
19
|
export declare enum StoriesListCardTitleTextAlign {
|
|
16
|
-
LEFT = "left",
|
|
17
20
|
CENTER = "center",
|
|
18
|
-
|
|
21
|
+
/** @deprecated */
|
|
22
|
+
LEFT = "left",
|
|
23
|
+
/** @deprecated */
|
|
24
|
+
RIGHT = "right",
|
|
25
|
+
START = "start",
|
|
26
|
+
END = "end"
|
|
19
27
|
}
|
|
20
28
|
|
|
21
29
|
export declare enum StoriesListCardTitlePosition {
|
|
@@ -41,7 +49,7 @@ export type StoriesListOptions = RecursivePartial<{
|
|
|
41
49
|
layout: {
|
|
42
50
|
height: number | string;
|
|
43
51
|
backgroundColor: string;
|
|
44
|
-
sliderAlign: StoriesListSliderAlign | "left" | "center" | "right";
|
|
52
|
+
sliderAlign: StoriesListSliderAlign | "left" | "center" | "right" | "start" | "end";
|
|
45
53
|
};
|
|
46
54
|
sidePadding: number;
|
|
47
55
|
topPadding: number;
|
|
@@ -63,7 +71,7 @@ export type StoriesListCardOptions = RecursivePartial<{
|
|
|
63
71
|
padding: string | number;
|
|
64
72
|
font: string;
|
|
65
73
|
display: boolean;
|
|
66
|
-
textAlign: StoriesListCardTitleTextAlign | "left" | "center" | "right";
|
|
74
|
+
textAlign: StoriesListCardTitleTextAlign | "left" | "center" | "right" | "start" | "end";
|
|
67
75
|
position: StoriesListCardTitlePosition | "cardInsideBottom" | "cardOutsideTop" | "cardOutsideBottom";
|
|
68
76
|
lineClamp: number;
|
|
69
77
|
};
|
|
@@ -7,7 +7,6 @@ export type StoryManagerConfig = {
|
|
|
7
7
|
placeholders?: Record<string, string>;
|
|
8
8
|
imagePlaceholders?: Record<string, string>;
|
|
9
9
|
lang?: string;
|
|
10
|
-
nonce?: string;
|
|
11
10
|
disableDeviceId?: boolean;
|
|
12
11
|
};
|
|
13
12
|
|
|
@@ -34,7 +33,6 @@ interface StoryManager {
|
|
|
34
33
|
closeStoryReader(): Promise<boolean | undefined>;
|
|
35
34
|
closeGoodsWidget(): void
|
|
36
35
|
getUgcEditorConfig(): Promise<UgcEditorConfig>
|
|
37
|
-
getNonce(): string | undefined
|
|
38
36
|
on(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
39
37
|
once(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
40
38
|
off(eventName: string | symbol, listener: (...args: any[]) => void): this;
|