@inappstory/react-sdk 1.7.4 → 1.7.6
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 +3113 -3593
- package/dist/index.esm.mjs.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/types/appearance-manager/appearanceCommon.d.ts +69 -3
- package/dist/types/appearance-manager/gameReader.d.ts +83 -4
- package/dist/types/appearance-manager/goodsWidget.d.ts +84 -1
- package/dist/types/appearance-manager/sharePanel.d.ts +133 -7
- package/dist/types/appearance-manager/storiesList.d.ts +303 -5
- package/dist/types/appearance-manager/storyReader.d.ts +260 -0
- package/dist/types/events.d.ts +212 -0
- package/dist/types/ias-container/IasContainer.d.ts +24 -0
- package/dist/types/ias-container/appearanceOptionsProps.d.ts +20 -1
- package/dist/types/ias-container/index.d.ts +1 -2
- package/dist/types/ias-container/storyManagerEventsProps.d.ts +110 -4
- package/dist/types/in-app-messaging/iamErrors.d.ts +49 -45
- package/dist/types/in-app-messaging/inAppMessaging.d.ts +166 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/story-list/FavoriteStoryList.d.ts +51 -1
- package/dist/types/story-list/StoryList.d.ts +169 -0
- package/dist/types/story-list/UGCStoryList.d.ts +61 -0
- package/dist/types/story-list/navigationViewModel.d.ts +43 -0
- package/dist/types/story-list/storyCardViewModel.d.ts +87 -3
- package/dist/types/story-list/storyListApi.d.ts +3 -2
- package/dist/types/story-list/storyListLoadStatus.ts +47 -10
- package/dist/types/storyManager.d.ts +205 -6
- package/package.json +6 -2
- package/plugins/dotLottie/iasDotLottiePlugin.umd.js +1 -1
- package/plugins/videoOnDemand/iasVideoOnDemandPlugin.umd.js +1 -1
- package/dist/types/appearance-manager/storyReader.ts +0 -125
- package/dist/types/ias-container/publicEvents.d.ts +0 -104
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { CloseButtonPosition } from "./appearanceCommon";
|
|
2
|
-
import { GameReaderOptions } from "./gameReader";
|
|
3
|
-
import { SharePanel } from "./sharePanel";
|
|
4
|
-
import { Nullable, RecursivePartial } from "../global";
|
|
5
|
-
|
|
6
|
-
export declare enum StoryReaderSwipeStyle {
|
|
7
|
-
FLAT = "flat",
|
|
8
|
-
COVER = "cover",
|
|
9
|
-
CUBE = "cube"
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Enum representing story reader layout variants
|
|
14
|
-
*
|
|
15
|
-
* @enum {string}
|
|
16
|
-
* @property {string} Classic - Classic display variant (default)
|
|
17
|
-
* @property {string} Modern - Modern experimental display variant
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* // Setting classic layout
|
|
21
|
-
* options.layout = StoryReaderLayout.Classic;
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* // Switching to modern version
|
|
25
|
-
* options.layout = StoryReaderLayout.Modern;
|
|
26
|
-
*/
|
|
27
|
-
export declare enum StoryReaderLayout {
|
|
28
|
-
/** Classic display variant (default) */
|
|
29
|
-
Classic = "classic",
|
|
30
|
-
|
|
31
|
-
/** Modern experimental display variant */
|
|
32
|
-
Modern = "modern"
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export type StoryReaderOptions = RecursivePartial<{
|
|
36
|
-
gameReaderOptions: GameReaderOptions;
|
|
37
|
-
closeButtonPosition: CloseButtonPosition | "left" | "right";
|
|
38
|
-
scrollStyle: StoryReaderSwipeStyle | "flat" | "cover" | "cube";
|
|
39
|
-
timelineBlockTopOffset: Nullable<number>;
|
|
40
|
-
actionPanelBottomOffset: Nullable<number>;
|
|
41
|
-
borderRadius: number;
|
|
42
|
-
/**
|
|
43
|
-
* Enables an experimental modern display variant for the stories slider.
|
|
44
|
-
*
|
|
45
|
-
* @warning This is experimental functionality! Use with caution:
|
|
46
|
-
* - May contain unstable changes
|
|
47
|
-
* - Appearance and behavior may change in future versions
|
|
48
|
-
* - Unexpected side effects are possible
|
|
49
|
-
*
|
|
50
|
-
* Recommended to:
|
|
51
|
-
* 1. Thoroughly test in development environment before using in production
|
|
52
|
-
* 2. Be prepared to roll back changes after updates
|
|
53
|
-
* 3. Avoid using for mission-critical components
|
|
54
|
-
*
|
|
55
|
-
* @default false
|
|
56
|
-
*/
|
|
57
|
-
useExperimentalModernVariant: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Controls which visual layout variant to use for story display
|
|
60
|
-
*
|
|
61
|
-
* @type {StoryReaderLayout}
|
|
62
|
-
* @default StoryReaderLayout.Classic
|
|
63
|
-
*
|
|
64
|
-
* @property {StoryReaderLayout} [layout] - Specifies the visual presentation mode
|
|
65
|
-
* @remarks
|
|
66
|
-
* Layout behavior details:
|
|
67
|
-
* - `Classic`: Traditional story viewer with established UI patterns
|
|
68
|
-
* - `Modern`: Experimental redesign with updated interaction model
|
|
69
|
-
* */
|
|
70
|
-
layout: StoryReaderLayout;
|
|
71
|
-
loader: {
|
|
72
|
-
default: {
|
|
73
|
-
color: string;
|
|
74
|
-
accentColor: string;
|
|
75
|
-
};
|
|
76
|
-
custom: string;
|
|
77
|
-
};
|
|
78
|
-
recycleStoriesList: boolean;
|
|
79
|
-
closeOnLastSlideByTimer: boolean;
|
|
80
|
-
sharePanel: SharePanel<string>;
|
|
81
|
-
commonBackdrop: {
|
|
82
|
-
color: string;
|
|
83
|
-
backdropFilter: string;
|
|
84
|
-
};
|
|
85
|
-
slideBackdrop: {
|
|
86
|
-
opacity: number;
|
|
87
|
-
blur: number;
|
|
88
|
-
linearGradientOverlay: string[];
|
|
89
|
-
};
|
|
90
|
-
faviconApiUrl: string;
|
|
91
|
-
closeButton: {
|
|
92
|
-
svgSrc: {
|
|
93
|
-
baseState: string;
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
likeButton: {
|
|
97
|
-
svgSrc: {
|
|
98
|
-
baseState: string;
|
|
99
|
-
activeState: string;
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
dislikeButton: {
|
|
103
|
-
svgSrc: {
|
|
104
|
-
baseState: string;
|
|
105
|
-
activeState: string;
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
favoriteButton: {
|
|
109
|
-
svgSrc: {
|
|
110
|
-
baseState: string;
|
|
111
|
-
activeState: string;
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
muteButton: {
|
|
115
|
-
svgSrc: {
|
|
116
|
-
baseState: string;
|
|
117
|
-
activeState: string;
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
shareButton: {
|
|
121
|
-
svgSrc: {
|
|
122
|
-
baseState: string;
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
}>;
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
export type PublicEvents = {
|
|
2
|
-
сlickOnStory: ClickOnStoryEvent;
|
|
3
|
-
showStory: ShowStoryEvent;
|
|
4
|
-
closeStory: CloseStoryEvent;
|
|
5
|
-
showSlide: ShowSlideEvent;
|
|
6
|
-
clickOnButton: ClickOnButtonEvent;
|
|
7
|
-
likeStory: LikeStoryEvent;
|
|
8
|
-
dislikeStory: DislikeStoryEvent;
|
|
9
|
-
favoriteStory: FavoriteStoryEvent;
|
|
10
|
-
shareStory: ShareStoryEvent;
|
|
11
|
-
shareStoryWithPath: ShareStoryWithPathEvent;
|
|
12
|
-
feedImpression: FeedImpressionEvent;
|
|
13
|
-
visibleAreaUpdated: VisibleAreaUpdatedEvent
|
|
14
|
-
widgetEvent: WidgetEvent
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export type PublicEventHandler<Event extends keyof PublicEvents> = (event: PublicEvents[Event]) => void;
|
|
18
|
-
|
|
19
|
-
interface BaseEvent {
|
|
20
|
-
id: number;
|
|
21
|
-
title?: string;
|
|
22
|
-
tags: Array<string>;
|
|
23
|
-
slidesCount?: number;
|
|
24
|
-
feed?: string;
|
|
25
|
-
source?: string;
|
|
26
|
-
filter: Record<string, unknown>;
|
|
27
|
-
ugcPayload: Record<string, unknown>;
|
|
28
|
-
defaultListLength: number;
|
|
29
|
-
favoriteListLength: number;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export declare enum CloseAction {
|
|
33
|
-
closeReaderByCloseBtn = "closeReaderByCloseBtn",
|
|
34
|
-
closeReaderByEscBtn = "closeReaderByEscBtn",
|
|
35
|
-
swipeDown = "swipeDown",
|
|
36
|
-
swipe = "swipe",
|
|
37
|
-
lastSlideClick = "lastSlideClick",
|
|
38
|
-
auto = "auto",
|
|
39
|
-
externalCloseReader = "externalCloseReader"
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export interface ClickOnStoryEvent extends BaseEvent {
|
|
43
|
-
index: number;
|
|
44
|
-
isDeeplink: boolean;
|
|
45
|
-
url?: string;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export interface ShowStoryEvent extends BaseEvent {}
|
|
49
|
-
|
|
50
|
-
export interface CloseStoryEvent extends BaseEvent {
|
|
51
|
-
action: CloseAction;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export interface ShowSlideEvent extends BaseEvent {
|
|
55
|
-
index: number;
|
|
56
|
-
payload: string;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export interface ClickOnButtonEvent extends BaseEvent {
|
|
60
|
-
index: number;
|
|
61
|
-
url: string;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export interface LikeStoryEvent extends BaseEvent {
|
|
65
|
-
value: boolean;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export interface DislikeStoryEvent extends BaseEvent {
|
|
69
|
-
value: boolean;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export interface FavoriteStoryEvent extends BaseEvent {
|
|
73
|
-
value: boolean;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export interface ShareStoryEvent extends BaseEvent {}
|
|
77
|
-
|
|
78
|
-
export interface ShareStoryWithPathEvent extends BaseEvent {
|
|
79
|
-
url: string;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export interface ClickOnFavoriteCellEvent {
|
|
83
|
-
feed: string;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export interface FeedLoadEvent {
|
|
87
|
-
feed: string;
|
|
88
|
-
stories: Array<{ id: number; title: string; tags: Array<string>; slidesCount: number }>;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export interface FeedImpressionEvent {
|
|
92
|
-
feed: string;
|
|
93
|
-
stories: Array<{ id: number; title: string; tags: Array<string>; slidesCount: number }>;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export interface VisibleAreaUpdatedEvent {
|
|
97
|
-
feed: string;
|
|
98
|
-
stories: Array<{ id: number; title: string; tags: Array<string>; slidesCount: number }>;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export interface WidgetEvent {
|
|
102
|
-
name: string;
|
|
103
|
-
data: any;
|
|
104
|
-
}
|