@inappstory/js-sdk 3.6.4 → 3.6.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/index.esm.mjs +104 -88
- package/dist/index.esm.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/appearance-manager/appearanceCommon.d.ts +69 -3
- package/dist/types/appearance-manager/appearanceManager.d.ts +69 -1
- package/dist/types/appearance-manager/gameReader.d.ts +91 -15
- package/dist/types/appearance-manager/goodsWidget.d.ts +98 -17
- package/dist/types/appearance-manager/sharePanel.d.ts +129 -2
- package/dist/types/appearance-manager/storiesList.d.ts +303 -5
- package/dist/types/appearance-manager/storyFavoriteReader.d.ts +34 -0
- package/dist/types/appearance-manager/storyReader.d.ts +260 -0
- package/dist/types/events.d.ts +207 -0
- 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/inAppStoryManager.d.ts +205 -6
- package/dist/types/index.d.ts +1 -1
- package/dist/types/share-page/sharePage.d.ts +4 -0
- package/dist/types/story-list/StoryList.d.ts +30 -0
- package/dist/types/story-list/UGCStoryList.d.ts +30 -0
- package/dist/types/story-list/storyListLoadStatus.ts +46 -9
- 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 -73
- package/dist/types/publicEvents.d.ts +0 -104
|
@@ -1,73 +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
|
-
export type StoryReaderOptions = RecursivePartial<{
|
|
13
|
-
gameReaderOptions: GameReaderOptions;
|
|
14
|
-
closeButtonPosition: CloseButtonPosition | "left" | "right";
|
|
15
|
-
scrollStyle: StoryReaderSwipeStyle | "flat" | "cover" | "cube";
|
|
16
|
-
timelineBlockTopOffset: Nullable<number>;
|
|
17
|
-
actionPanelBottomOffset: Nullable<number>;
|
|
18
|
-
borderRadius: number;
|
|
19
|
-
loader: {
|
|
20
|
-
default: {
|
|
21
|
-
color: string;
|
|
22
|
-
accentColor: string;
|
|
23
|
-
};
|
|
24
|
-
custom: string;
|
|
25
|
-
};
|
|
26
|
-
recycleStoriesList: boolean;
|
|
27
|
-
closeOnLastSlideByTimer: boolean;
|
|
28
|
-
sharePanel: SharePanel<string>;
|
|
29
|
-
commonBackdrop: {
|
|
30
|
-
color: string;
|
|
31
|
-
backdropFilter: string;
|
|
32
|
-
};
|
|
33
|
-
slideBackdrop: {
|
|
34
|
-
opacity: number;
|
|
35
|
-
blur: number;
|
|
36
|
-
linearGradientOverlay: string[];
|
|
37
|
-
};
|
|
38
|
-
faviconApiUrl: string;
|
|
39
|
-
closeButton: {
|
|
40
|
-
svgSrc: {
|
|
41
|
-
baseState: string;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
likeButton: {
|
|
45
|
-
svgSrc: {
|
|
46
|
-
baseState: string;
|
|
47
|
-
activeState: string;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
dislikeButton: {
|
|
51
|
-
svgSrc: {
|
|
52
|
-
baseState: string;
|
|
53
|
-
activeState: string;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
favoriteButton: {
|
|
57
|
-
svgSrc: {
|
|
58
|
-
baseState: string;
|
|
59
|
-
activeState: string;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
muteButton: {
|
|
63
|
-
svgSrc: {
|
|
64
|
-
baseState: string;
|
|
65
|
-
activeState: string;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
shareButton: {
|
|
69
|
-
svgSrc: {
|
|
70
|
-
baseState: string;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
}>;
|
|
@@ -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
|
-
export 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 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
|
-
}
|