@inappstory/react-sdk 1.6.1 → 1.6.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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CloseButtonPosition } from "./appearanceCommon";
|
|
2
2
|
import { GameReaderOptions } from "./gameReader";
|
|
3
|
-
import { SharePanel } from "./sharePanel"
|
|
4
|
-
import { Nullable, RecursivePartial } from "../global"
|
|
3
|
+
import { SharePanel } from "./sharePanel";
|
|
4
|
+
import { Nullable, RecursivePartial } from "../global";
|
|
5
5
|
|
|
6
6
|
export declare enum StoryReaderSwipeStyle {
|
|
7
7
|
FLAT = "flat",
|
|
@@ -16,6 +16,22 @@ export type StoryReaderOptions = RecursivePartial<{
|
|
|
16
16
|
timelineBlockTopOffset: Nullable<number>;
|
|
17
17
|
actionPanelBottomOffset: Nullable<number>;
|
|
18
18
|
borderRadius: number;
|
|
19
|
+
/**
|
|
20
|
+
* Enables an experimental modern display variant for the stories slider.
|
|
21
|
+
*
|
|
22
|
+
* @warning This is experimental functionality! Use with caution:
|
|
23
|
+
* - May contain unstable changes
|
|
24
|
+
* - Appearance and behavior may change in future versions
|
|
25
|
+
* - Unexpected side effects are possible
|
|
26
|
+
*
|
|
27
|
+
* Recommended to:
|
|
28
|
+
* 1. Thoroughly test in development environment before using in production
|
|
29
|
+
* 2. Be prepared to roll back changes after updates
|
|
30
|
+
* 3. Avoid using for mission-critical components
|
|
31
|
+
*
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
34
|
+
useExperimentalModernVariant: boolean;
|
|
19
35
|
loader: {
|
|
20
36
|
default: {
|
|
21
37
|
color: string;
|
|
@@ -10,11 +10,12 @@ export declare enum LinkSource {
|
|
|
10
10
|
export type StoryManagerConfig = {
|
|
11
11
|
apiKey: string;
|
|
12
12
|
userId?: string | number;
|
|
13
|
-
userIdSign?: string
|
|
13
|
+
userIdSign?: string;
|
|
14
14
|
tags?: Array<string>;
|
|
15
15
|
placeholders?: Record<string, string>;
|
|
16
16
|
imagePlaceholders?: Record<string, string>;
|
|
17
17
|
lang?: string;
|
|
18
|
+
dir?: "ltr" | "rtl";
|
|
18
19
|
disableDeviceId?: boolean;
|
|
19
20
|
};
|
|
20
21
|
|
|
@@ -43,7 +44,7 @@ export interface Plugin {
|
|
|
43
44
|
export declare class StoryManager {
|
|
44
45
|
get sdkVersionName(): string;
|
|
45
46
|
get sdkVersionCode(): number;
|
|
46
|
-
inAppMessaging: InAppMessaging
|
|
47
|
+
inAppMessaging: InAppMessaging;
|
|
47
48
|
|
|
48
49
|
set storyLinkClickHandler(value: StoryLinkClickHandler);
|
|
49
50
|
showOnboardingStories(options?: { feed?: string; customTags?: Array<string>; limit?: number }): Promise<{
|