@wscsports/blaze-web-sdk 0.2.6 → 0.2.9
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/package.json +1 -1
- package/publish/index.d.ts +209 -112
- package/publish/index.js +1 -1
package/publish/index.d.ts
CHANGED
|
@@ -5,7 +5,9 @@ export declare function Initialize(apiKey: string, userOptions?: Partial<IBlazeS
|
|
|
5
5
|
export declare function WidgetRowView(containerId: string, options: IWidgetViewOptions): IWidgetView;
|
|
6
6
|
export declare function WidgetGridView(containerId: string, options: IWidgetViewOptions): IWidgetView;
|
|
7
7
|
export declare function WidgetEmbeddedStory(containerId: string, options: IWidgetViewOptions): IWidgetView;
|
|
8
|
-
export declare function Theme(theme: ThemeType): IWidgetTheme
|
|
8
|
+
export declare function Theme(theme: ThemeType, contentType: 'moment'): IWidgetTheme<MomentPlayerStyle>;
|
|
9
|
+
export declare function Theme(theme: ThemeType, contentType: 'story'): IWidgetTheme<StoryPlayerStyle>;
|
|
10
|
+
export declare function Theme(theme: ThemeType): IWidgetTheme<StoryPlayerStyle>;
|
|
9
11
|
export declare function addDelegateListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
10
12
|
export declare const Delegations: typeof Delegation;
|
|
11
13
|
export declare function LabelBuilder(): IWidgetLabelBuilder;
|
|
@@ -357,7 +359,6 @@ export * from './url';
|
|
|
357
359
|
export * from './data-source.class';
|
|
358
360
|
|
|
359
361
|
export declare class BlazeWidgetLabel {
|
|
360
|
-
every(arg0: (item: any) => item is BlazeWidgetLabel): void;
|
|
361
362
|
value: string;
|
|
362
363
|
constructor(value: string);
|
|
363
364
|
static singleLabel(label: string): BlazeWidgetLabel;
|
|
@@ -481,7 +482,6 @@ export * from './drawer';
|
|
|
481
482
|
export * from './image';
|
|
482
483
|
export * from './loader';
|
|
483
484
|
export * from './skeleton';
|
|
484
|
-
export * from './toast';
|
|
485
485
|
export * from './typography';
|
|
486
486
|
|
|
487
487
|
export declare class BlazeLoader extends HTMLElement {
|
|
@@ -498,21 +498,6 @@ export declare class BlazeWidgetItemSkeleton extends BaseWidget {
|
|
|
498
498
|
connectedCallback(): void;
|
|
499
499
|
}
|
|
500
500
|
|
|
501
|
-
export declare class BlazeToast extends BaseWidget {
|
|
502
|
-
constructor();
|
|
503
|
-
static get observedAttributes(): string[];
|
|
504
|
-
connectedCallback(): void;
|
|
505
|
-
disconnectedCallback(): void;
|
|
506
|
-
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
507
|
-
show(options: {
|
|
508
|
-
show: boolean;
|
|
509
|
-
sevrity: SeverityType;
|
|
510
|
-
title?: string;
|
|
511
|
-
text: string;
|
|
512
|
-
}): void;
|
|
513
|
-
protected render(): void;
|
|
514
|
-
}
|
|
515
|
-
|
|
516
501
|
type AttributeType = 'size' | 'text';
|
|
517
502
|
export declare class BlazeTypography extends BaseWidget {
|
|
518
503
|
constructor();
|
|
@@ -715,11 +700,13 @@ interface IAdInfoConfiguration {
|
|
|
715
700
|
adsLocationType: 'FixedPages' | 'EveryXStories';
|
|
716
701
|
type: 'Story' | 'Moment';
|
|
717
702
|
}
|
|
703
|
+
export type IAdContext = Record<string, string>;
|
|
718
704
|
export interface IAdInfo {
|
|
719
705
|
path?: string;
|
|
720
706
|
tag?: string;
|
|
721
707
|
type: 'Web' | 'IMA';
|
|
722
708
|
configuration?: IAdInfoConfiguration;
|
|
709
|
+
context?: IAdContext;
|
|
723
710
|
}
|
|
724
711
|
|
|
725
712
|
export interface IContent {
|
|
@@ -817,10 +804,13 @@ export interface IMoment extends IContent {
|
|
|
817
804
|
};
|
|
818
805
|
cta: ICTA;
|
|
819
806
|
adPath?: string;
|
|
807
|
+
subtitle?: string;
|
|
808
|
+
description?: string;
|
|
820
809
|
}
|
|
821
810
|
export type MomentDB = {
|
|
822
811
|
id: string;
|
|
823
812
|
liked: boolean;
|
|
813
|
+
viewed: boolean;
|
|
824
814
|
};
|
|
825
815
|
|
|
826
816
|
export interface IContentPage {
|
|
@@ -837,6 +827,7 @@ export interface IContentPage {
|
|
|
837
827
|
createTime: string;
|
|
838
828
|
shouldShowImaAd?: boolean;
|
|
839
829
|
imaUrl?: string;
|
|
830
|
+
adContext?: IAdContext;
|
|
840
831
|
interaction?: Interaction;
|
|
841
832
|
poster?: IThumbnail;
|
|
842
833
|
}
|
|
@@ -941,7 +932,6 @@ export interface WidgetsTagNameMap {
|
|
|
941
932
|
'blaze-loader': BlazeLoader;
|
|
942
933
|
'blaze-chip': BlazeChip;
|
|
943
934
|
'blaze-image': BlazeImage;
|
|
944
|
-
'blaze-toast': BlazeToast;
|
|
945
935
|
'blaze-alert': BlazeAlert;
|
|
946
936
|
'blaze-modal': BlazeDrawer;
|
|
947
937
|
'blaze-div': BlazeDiv;
|
|
@@ -973,7 +963,6 @@ interface WidgetsTagNameOptionsMap {
|
|
|
973
963
|
'blaze-loader': {};
|
|
974
964
|
'blaze-chip': {};
|
|
975
965
|
'blaze-image': {};
|
|
976
|
-
'blaze-toast': {};
|
|
977
966
|
'blaze-alert': {};
|
|
978
967
|
'blaze-modal': {};
|
|
979
968
|
'blaze-div': {};
|
|
@@ -1001,8 +990,8 @@ export declare function isWidgetTheme(theme: any): theme is IWidgetTheme;
|
|
|
1001
990
|
|
|
1002
991
|
export * from './svgs';
|
|
1003
992
|
|
|
1004
|
-
export declare const
|
|
1005
|
-
export declare const
|
|
993
|
+
export declare const unlikeIconSvg = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyOCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE0LjAwMDMgMjVMMTIuMDY3IDIzLjI2NjdDOS44MjI1NSAyMS4yNDQ1IDcuOTY2OTkgMTkuNSA2LjUwMDMzIDE4LjAzMzRDNS4wMzM2NiAxNi41NjY3I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y42OTk5TDEwIDE4Ljk5OTlaIiBmaWxsPSIjRjBGMEYwIi8+Cjwvc3ZnPgo=";
|
|
1006
995
|
export declare const ShareIconSvg = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMi45NDczIDIzLjM3NDhDMTMuMSAyMy43NTI2IDEzLjQ2NjggMjQgMTMuODc0NCAyNEgxNC4zNzE5QzE0Ljc4OTYgMjQgMTUuMTYzMyAyMy43NDAzIDE1LjMwOSAyMy4zNDg4TDIzLjIzNzUgMi4wNDg1QzIzLjUzNjIgMS4yNDYwNCAyMi43NTM5IDAuNDYzNzg1IDIxLjk1MTUgMC43NjI0OEwwLjY1MTE2IDguNjkwOTNDMC4yNTk2NjUgOC44MzY2NSAwIDkuMjEwMzcgMCA5LjYyODExVjEwLjEyNTZDMCAxMC41MzMyIDAuMjQ3MzQ5IDEwLjkgMC42MjUyMTEgMTEuMDUyN0w5LjQgMTQuNkwxMi45NDczIDIzLjM3NDhaTTE4LjM1MTggNy41MzM4OUwxNC4wNjY3IDE5LjA2NjZMMTIuMDAzNSAxMy44ODIyTDE4LjM1MTggNy41MzM4OVpNMTYuNDY2MyA1LjY0ODEyTDEwLjExNzkgMTEuOTk2NUw0LjkzMzMzIDkuOTMzMzFMMTYuNDY2MyA1LjY0ODEyWiIgZmlsbD0iI0YwRjBGMCIvPgo8L3N2Zz4K";
|
|
1007
996
|
export declare const IconLink = "data:image/svg+xml;charset=utf-8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"10\" viewBox=\"0 0 20 10\" fill=\"none\"><path d=\"M9 10H5C3.61667 10 2.4375 9.5125 1.4625 8.5375C0.4875 7.5625 0 6.38333 0 5C0 3.61667 0.4875 2.4375 1.4625 1.4625C2.4375 0.4875 3.61667 0 5 0H9V2H5C4.16667 2 3.45833 2.29167 2.875 2.875C2.29167 3.45833 2 4.16667 2 5C2 5.83333 2.29167 6.54167 2.875 7.125C3.45833 7.70833 4.16667 8 5 8H9V10ZM6 6V4H14V6H6ZM11 10V8H15C15.8333 8 16.5417 7.70833 17.125 7.125C17.7083 6.54167 18 5.83333 18 5C18 4.16667 17.7083 3.45833 17.125 2.875C16.5417 2.29167 15.8333 2 15 2H11V0H15C16.3833 0 17.5625 0.4875 18.5375 1.4625C19.5125 2.4375 20 3.61667 20 5C20 6.38333 19.5125 7.5625 18.5375 8.5375C17.5625 9.5125 16.3833 10 15 10H11Z\" fill=\"white\" fill-opacity=\"0.92\"/></svg>";
|
|
1008
997
|
export declare const IconGlobe = "data:image/svg+xml;charset=utf-8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"><path d=\"M10 20C8.61667 20 7.31667 19.7375 6.1 19.2125C4.88333 18.6875 3.825 17.975 2.925 17.075C2.025 16.175 1.3125 15.1167 0.7875 13.9C0.2625 12.6833 0 11.3833 0 10C0 8.61667 0.2625 7.31667 0.7875 6.1C1.3125 4.88333 2.025 3.825 2.925 2.925C3.825 2.025 4.88333 1.3125 6.1 0.7875C7.31667 0.2625 8.61667 0 10 0C11.3833 0 12.6833 0.2625 13.9 0.7875C15.1167 1.3125 16.175 2.025 17.075 2.925C17.975 3.825 18.6875 4.88333 19.2125 6.1C19.7375 7.31667 20 8.61667 20 10C20 11.3833 19.7375 12.6833 19.2125 13.9C18.6875 15.1167 17.975 16.175 17.075 17.075C16.175 17.975 15.1167 18.6875 13.9 19.2125C12.6833 19.7375 11.3833 20 10 20ZM9 17.95V16C8.45 16 7.97917 15.8042 7.5875 15.4125C7.19583 15.0208 7 14.55 7 14V13L2.2 8.2C2.15 8.5 2.10417 8.8 2.0625 9.1C2.02083 9.4 2 9.7 2 10C2 12.0167 2.6625 13.7833 3.9875 15.3C5.3125 16.8167 6.98333 17.7 9 17.95ZM15.9 15.4C16.2333 15.0333 16.5333 14.6375 16.8 14.2125C17.0667 13.7875 17.2875 13.3458 17.4625 12.8875C17.6375 12.4292 17.7708 11.9583 17.8625 11.475C17.9542 10.9917 18 10.5 18 10C18 8.36667 17.5458 6.875 16.6375 5.525C15.7292 4.175 14.5167 3.2 13 2.6V3C13 3.55 12.8042 4.02083 12.4125 4.4125C12.0208 4.80417 11.55 5 11 5H9V7C9 7.28333 8.90417 7.52083 8.7125 7.7125C8.52083 7.90417 8.28333 8 8 8H6V10H12C12.2833 10 12.5208 10.0958 12.7125 10.2875C12.9042 10.4792 13 10.7167 13 11V14H14C14.4333 14 14.825 14.1292 15.175 14.3875C15.525 14.6458 15.7667 14.9833 15.9 15.4Z\" fill=\"%23131313\"/></svg>";
|
|
@@ -1022,7 +1011,8 @@ export declare const pauseResumeIconSvg = "data:image/svg+xml;base64,PHN2ZyB3aWR
|
|
|
1022
1011
|
export declare const arrowUpCtaIconSvg = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyMCA4IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJtMTggNy43LTAuNy0wLjItNy4zLTQtNy4zIDRjLTAuNyAwLjQtMS42IDAuMi0yLTAuNi0wLjQtMC43LTAuMS0xLjYgMC42LTJsOC00LjRhMiAyIDAgMCAxIDEuNSAwbDggNC40YzAuNyAwLjQgMSAxLjMgMC42IDItMC40IDAuNS0wLjkgMC44LTEuNCAwLjh6Ii8+Cjwvc3ZnPgo=";
|
|
1023
1012
|
export declare const externalLinkIconSvg = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVR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|
1025
|
-
export declare const
|
|
1014
|
+
export declare const arrowDownMomentIconSvg = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYuNjY2NjcgMThWNS43MzMzMkwxLjg2NjY3IDEwLjUzMzNMMCA4LjY2NjY2TDggMC42NjY2NTZMMTYgOC42NjY2NkwxNC4xMzMzIDEwLjUzMzNMOS4zMzMzMyA1LjczMzMyVjE4SDYuNjY2NjdaIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjkyIi8+Cjwvc3ZnPgo=";
|
|
1015
|
+
export declare const arrowUpMomentIconSvg = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgdHJhbnNmb3JtPSJzY2FsZSgxIC0xKSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYuNjY2NjcgMThWNS43MzMzMkwxLjg2NjY3IDEwLjUzMzNMMCA4LjY2NjY2TDggMC42NjY2NTZMMTYgOC42NjY2NkwxNC4xMzMzIDEwLjUzMzNMOS4zMzMzMyA1LjczMzMyVjE4SDYuNjY2NjdaIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjkyIi8+Cjwvc3ZnPgo=";
|
|
1026
1016
|
export declare const externalLinkIcon = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgY3Jvc3NvcmlnaW49ImFub255bW91cyI+Cjx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jQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9Im1hc2swXzk0NDlfOTc2NyIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMCIgeT0iMCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij4KPHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBmaWxsPSIjRDlEOUQ5Ii8+CjwvbWFzaz4KPGcgbWFzaz0idXJsKCNtYXNrMF85NDQ5Xzk3NjcpIj4KPHBhdGggZD0iTTUgMjFDNC40NSAyMSAzLjk3OTE3IDIwLjgwNDIgMy41ODc1IDIwLjQxMjVDMy4xOTU4MyAyMC4wMjA4IDMgMTkuNTUgMyAxOVY1QzMgNC40NSAzLjE5NTgzIDMuOTc5MTcgMy41ODc1IDMuNTg3NUMzLjk3OTE3IDMuMTk1ODMgNC40NSAzIDUgM0gxMlY1SDVWMTlIMTlWMTJIMjFWMTlDMjEgMTkuNTUgMjAuODA0MiAyMC4wMjA4IDIwLjQxMjUgMjAuNDEyNUMyMC4wMjA4IDIwLjgwNDIgMTkuNTUgMjEgMTkgMjFINVpNOS43IDE1LjdMOC4zIDE0LjNMMTcuNiA1SDE0VjNIMjFWMTBIMTlWNi40TDkuNyAxNS43WiIgZmlsbD0iI0YwRjBGMCIvPgo8L2c+Cjwvc3ZnPgo=";
|
|
1028
1018
|
|
|
@@ -1138,7 +1128,7 @@ export interface IHttpResponse<T = any> extends IResponse<T> {
|
|
|
1138
1128
|
httpStatus?: number;
|
|
1139
1129
|
}
|
|
1140
1130
|
|
|
1141
|
-
export interface
|
|
1131
|
+
export interface BlazeStoryIcons {
|
|
1142
1132
|
play: string;
|
|
1143
1133
|
pause: string;
|
|
1144
1134
|
mute: string;
|
|
@@ -1154,6 +1144,20 @@ export interface IIcons {
|
|
|
1154
1144
|
prevStory: string;
|
|
1155
1145
|
};
|
|
1156
1146
|
}
|
|
1147
|
+
export interface BlazeMomentIconsStyle {
|
|
1148
|
+
play: string;
|
|
1149
|
+
pause: string;
|
|
1150
|
+
mute: string;
|
|
1151
|
+
unmute: string;
|
|
1152
|
+
share: string;
|
|
1153
|
+
exit: string;
|
|
1154
|
+
like: string;
|
|
1155
|
+
unlike: string;
|
|
1156
|
+
navigation: {
|
|
1157
|
+
nextMoment: string;
|
|
1158
|
+
prevMoment: string;
|
|
1159
|
+
};
|
|
1160
|
+
}
|
|
1157
1161
|
|
|
1158
1162
|
export * from './ad-handler.interface';
|
|
1159
1163
|
export * from './behaviors.interface';
|
|
@@ -1205,6 +1209,7 @@ export interface IWidgetViewOptionsBase {
|
|
|
1205
1209
|
delegates?: Record<Delegation, EventListenerOrEventListenerObject>;
|
|
1206
1210
|
perItemStyleOverrides?: PerItemStyleOverrides;
|
|
1207
1211
|
shouldOrderWidgetByReadStatus?: boolean;
|
|
1212
|
+
contentIds?: string[];
|
|
1208
1213
|
}
|
|
1209
1214
|
export interface IWidgetViewOptionsWithLabels extends IWidgetViewOptionsBase {
|
|
1210
1215
|
labels: string | string[] | BlazeWidgetLabel;
|
|
@@ -1224,7 +1229,7 @@ export interface IWidgetViewOptionsWithDataSource extends IWidgetViewOptionsBase
|
|
|
1224
1229
|
export type IWidgetViewOptions = IWidgetViewOptionsWithLabels | IWidgetViewOptionsWithStoryIds | IWidgetViewOptionsWithDataSource;
|
|
1225
1230
|
|
|
1226
1231
|
export interface IWidgetView extends HTMLElement {
|
|
1227
|
-
setTheme: (theme: IWidgetTheme) => void;
|
|
1232
|
+
setTheme: (theme: IWidgetTheme | ThemeType) => void;
|
|
1228
1233
|
getTheme: () => IWidgetTheme;
|
|
1229
1234
|
setLabels: (labels: string | string[] | BlazeWidgetLabel, options?: ISetWidgetOptions) => void;
|
|
1230
1235
|
setLabelsPriority: (labelsPriority: string | string[] | BlazeWidgetLabel[], options?: ISetWidgetOptions) => void;
|
|
@@ -1279,6 +1284,14 @@ declare abstract class AnalyticsServiceClass extends AnalyticsServiceClass_base
|
|
|
1279
1284
|
}
|
|
1280
1285
|
export declare const AnalyticsService: AnalyticsServiceClass;
|
|
1281
1286
|
|
|
1287
|
+
export interface ApiResponse<T> {
|
|
1288
|
+
assetsExpiryTime: string;
|
|
1289
|
+
totalItems: number;
|
|
1290
|
+
result: T[];
|
|
1291
|
+
defaultAdsInfo?: IAdInfo;
|
|
1292
|
+
}
|
|
1293
|
+
export type MomentsResponse = ApiResponse<IMoment>;
|
|
1294
|
+
export type StoriesResponse = ApiResponse<IStory>;
|
|
1282
1295
|
declare const ApiServiceClass_base: {
|
|
1283
1296
|
new (): {};
|
|
1284
1297
|
_instance: ApiServiceClass;
|
|
@@ -1291,40 +1304,21 @@ declare abstract class ApiServiceClass extends ApiServiceClass_base implements I
|
|
|
1291
1304
|
getStoriesByIds(storyIds: string[], orderType?: OrderType): Promise<{
|
|
1292
1305
|
result: IStory[];
|
|
1293
1306
|
httpStatus?: number | undefined;
|
|
1294
|
-
data?:
|
|
1295
|
-
assetsExpiryTime: string;
|
|
1296
|
-
totalItems: number;
|
|
1297
|
-
result: IStory[];
|
|
1298
|
-
defaultAdsInfo?: IAdInfo | undefined;
|
|
1299
|
-
} | undefined;
|
|
1307
|
+
data?: StoriesResponse | undefined;
|
|
1300
1308
|
error?: Error | undefined;
|
|
1301
1309
|
}>;
|
|
1302
1310
|
getStories(labels: string, orderType?: OrderType, maxItemsSize?: number, labelsPriority?: string): Promise<{
|
|
1303
1311
|
result: IStory[];
|
|
1304
1312
|
httpStatus?: number | undefined;
|
|
1305
|
-
data?:
|
|
1306
|
-
assetsExpiryTime: string;
|
|
1307
|
-
totalItems: number;
|
|
1308
|
-
result: IStory[];
|
|
1309
|
-
defaultAdsInfo?: IAdInfo | undefined;
|
|
1310
|
-
} | undefined;
|
|
1313
|
+
data?: StoriesResponse | undefined;
|
|
1311
1314
|
error?: Error | undefined;
|
|
1312
1315
|
}>;
|
|
1313
|
-
getMomentByIds(
|
|
1316
|
+
getMomentByIds(ids: string[], orderType?: OrderType): Promise<{
|
|
1314
1317
|
httpStatus?: number | undefined;
|
|
1315
|
-
data?:
|
|
1316
|
-
assetsExpiryTime: string;
|
|
1317
|
-
totalItems: number;
|
|
1318
|
-
result: IMoment[];
|
|
1319
|
-
} | undefined;
|
|
1318
|
+
data?: MomentsResponse | undefined;
|
|
1320
1319
|
error?: Error | undefined;
|
|
1321
1320
|
}>;
|
|
1322
|
-
|
|
1323
|
-
assetsExpiryTime: string;
|
|
1324
|
-
totalItems: number;
|
|
1325
|
-
result: IMoment[];
|
|
1326
|
-
defaultAdsInfo?: IAdInfo | undefined;
|
|
1327
|
-
}>>;
|
|
1321
|
+
getMomentsByLabels(labels: string, orderType: OrderType, maxItemsSize?: number): Promise<import("../interfaces").IHttpResponse<MomentsResponse>>;
|
|
1328
1322
|
updateMomentLikeStatus(options: {
|
|
1329
1323
|
momentId: string;
|
|
1330
1324
|
setLiked: boolean;
|
|
@@ -1417,8 +1411,6 @@ declare abstract class DatabaseServiceClass extends DatabaseServiceClass_base im
|
|
|
1417
1411
|
onOpen(): Promise<void>;
|
|
1418
1412
|
onError(e: Event): Promise<void>;
|
|
1419
1413
|
onUpgradeNeeded(db: IDBDatabase): Promise<void>;
|
|
1420
|
-
getPageViewed(id: string): Promise<any>;
|
|
1421
|
-
updatePageViewed(id: string, storyId: string): Promise<any>;
|
|
1422
1414
|
getUserId(): Promise<IResponse<{
|
|
1423
1415
|
id: string;
|
|
1424
1416
|
value: string;
|
|
@@ -1427,13 +1419,17 @@ declare abstract class DatabaseServiceClass extends DatabaseServiceClass_base im
|
|
|
1427
1419
|
id: string;
|
|
1428
1420
|
value: string;
|
|
1429
1421
|
}>>;
|
|
1430
|
-
|
|
1431
|
-
|
|
1422
|
+
getPageViewed(id: string): Promise<any>;
|
|
1423
|
+
updatePageViewed(id: string, storyId: string): Promise<any>;
|
|
1432
1424
|
isPageViewed(id: string): Promise<boolean>;
|
|
1425
|
+
enrichStories(stories: IStory[]): Promise<IStory[]>;
|
|
1433
1426
|
updateInteraction(data: InteractionDB): Promise<any>;
|
|
1434
1427
|
getInteraction(id: string): Promise<IResponse<InteractionDB> | null>;
|
|
1435
1428
|
updateLike(momentId: string, isLike: boolean): Promise<IResponse | null>;
|
|
1436
1429
|
getLike(momentId: string): Promise<IResponse<MomentDB> | null>;
|
|
1430
|
+
updateViewedMoment(momentId: string): Promise<any>;
|
|
1431
|
+
getViewedMoment(momentId: string): Promise<boolean>;
|
|
1432
|
+
enrichMoments(moments: IMoment[]): Promise<IMoment[]>;
|
|
1437
1433
|
}
|
|
1438
1434
|
export declare const DatabaseService: DatabaseServiceClass;
|
|
1439
1435
|
|
|
@@ -1509,6 +1505,7 @@ export * from './user.service';
|
|
|
1509
1505
|
export * from './video-cache.service';
|
|
1510
1506
|
export * from './video-player.service';
|
|
1511
1507
|
export * from './widgets.service';
|
|
1508
|
+
export * from './moment.service';
|
|
1512
1509
|
export * from './story.service';
|
|
1513
1510
|
|
|
1514
1511
|
declare const InteractionServiceClass_base: {
|
|
@@ -1567,6 +1564,19 @@ declare class LoggerServiceClass extends LoggerServiceClass_base implements ISer
|
|
|
1567
1564
|
}
|
|
1568
1565
|
export declare const LoggerService: LoggerServiceClass;
|
|
1569
1566
|
|
|
1567
|
+
declare const MomentServiceClass_base: {
|
|
1568
|
+
new (): {};
|
|
1569
|
+
_instance: MomentServiceClass;
|
|
1570
|
+
getInstance(): MomentServiceClass;
|
|
1571
|
+
};
|
|
1572
|
+
declare abstract class MomentServiceClass extends MomentServiceClass_base implements IService {
|
|
1573
|
+
init(): void;
|
|
1574
|
+
updateMomentReadStatusById(momentId: string): Promise<any>;
|
|
1575
|
+
encrichMoment(moment: IMoment[]): Promise<IMoment[]>;
|
|
1576
|
+
getMoments(dataSource: any): Promise<MomentsResponse>;
|
|
1577
|
+
}
|
|
1578
|
+
export declare const MomentService: MomentServiceClass;
|
|
1579
|
+
|
|
1570
1580
|
declare const StartupServiceClass_base: {
|
|
1571
1581
|
new (): {};
|
|
1572
1582
|
_instance: StartupServiceClass;
|
|
@@ -1705,6 +1715,7 @@ export declare class Presets {
|
|
|
1705
1715
|
static RowHorizontalRectangle: LayoutStyle;
|
|
1706
1716
|
static Default: LayoutStyle;
|
|
1707
1717
|
static DefaultStoryStyle: StoryPlayerStyle;
|
|
1718
|
+
static DefaultMomentStyle: MomentPlayerStyle;
|
|
1708
1719
|
}
|
|
1709
1720
|
|
|
1710
1721
|
export interface IndicatorStyle {
|
|
@@ -1780,9 +1791,55 @@ export interface StoryPlayerStyle {
|
|
|
1780
1791
|
iconsButtonPadding: string;
|
|
1781
1792
|
iconsButtonOrder: IconButtonType[];
|
|
1782
1793
|
contentOrder: ContentOrderType[];
|
|
1783
|
-
icons:
|
|
1794
|
+
icons: BlazeStoryIcons;
|
|
1784
1795
|
localeDirection: LocaleDirectionType;
|
|
1785
1796
|
}
|
|
1797
|
+
export type BlazeMomentsPlayerTextStyle = {
|
|
1798
|
+
font: string;
|
|
1799
|
+
textSizeMobile: string;
|
|
1800
|
+
textSizeTablet: string;
|
|
1801
|
+
textSizeDesktop: string;
|
|
1802
|
+
textColor: string;
|
|
1803
|
+
fontWeight: FontWeightType;
|
|
1804
|
+
textTransform: TextTransformType;
|
|
1805
|
+
isVisible: boolean;
|
|
1806
|
+
lineHeight: string;
|
|
1807
|
+
};
|
|
1808
|
+
type BlazeMomentsPlayerHeadingTextStyle = BlazeMomentsPlayerTextStyle & {
|
|
1809
|
+
contentSource: 'TITLE' | 'SUBTITLE';
|
|
1810
|
+
};
|
|
1811
|
+
type BlazeMomentsPlayerBodyTextStyle = BlazeMomentsPlayerTextStyle & {
|
|
1812
|
+
contentSource: 'TITLE' | 'SUBTITLE' | 'DESCRIPTION';
|
|
1813
|
+
};
|
|
1814
|
+
type BlazeMomentsPlayerButtonsStyle = {
|
|
1815
|
+
mute_unmute: BlazeMomentsPlayerButtonStyle;
|
|
1816
|
+
exit: BlazeMomentsPlayerButtonStyle;
|
|
1817
|
+
share: BlazeMomentsPlayerButtonStyle;
|
|
1818
|
+
like_unlike: BlazeMomentsPlayerButtonStyle;
|
|
1819
|
+
};
|
|
1820
|
+
export type BlazeMomentsPlayerButtonDeviceStyle = {
|
|
1821
|
+
width: string;
|
|
1822
|
+
height: string;
|
|
1823
|
+
color: string;
|
|
1824
|
+
padding: string;
|
|
1825
|
+
isVisible: boolean;
|
|
1826
|
+
borderRadius: string;
|
|
1827
|
+
backgroundColor: string;
|
|
1828
|
+
};
|
|
1829
|
+
type BlazeMomentsPlayerButtonStyle = {
|
|
1830
|
+
mobile: BlazeMomentsPlayerButtonDeviceStyle;
|
|
1831
|
+
tablet: BlazeMomentsPlayerButtonDeviceStyle;
|
|
1832
|
+
desktop: BlazeMomentsPlayerButtonDeviceStyle;
|
|
1833
|
+
};
|
|
1834
|
+
export interface MomentPlayerStyle {
|
|
1835
|
+
headingText: BlazeMomentsPlayerHeadingTextStyle;
|
|
1836
|
+
bodyText: BlazeMomentsPlayerBodyTextStyle;
|
|
1837
|
+
likeText: BlazeMomentsPlayerTextStyle;
|
|
1838
|
+
buttons: BlazeMomentsPlayerButtonsStyle;
|
|
1839
|
+
icons: BlazeMomentIconsStyle;
|
|
1840
|
+
iconsButtonOrder: IconButtonType[];
|
|
1841
|
+
iconsPosition: IconsPositionType;
|
|
1842
|
+
}
|
|
1786
1843
|
export interface CtaButtonStyle {
|
|
1787
1844
|
borderRadius: string;
|
|
1788
1845
|
border: string;
|
|
@@ -1807,9 +1864,9 @@ export interface IconStyle {
|
|
|
1807
1864
|
size: string;
|
|
1808
1865
|
color: string;
|
|
1809
1866
|
}
|
|
1810
|
-
export interface IWidgetTheme {
|
|
1867
|
+
export interface IWidgetTheme<T = MomentPlayerStyle | StoryPlayerStyle> {
|
|
1811
1868
|
layoutStyle: LayoutStyle;
|
|
1812
|
-
playerStyle:
|
|
1869
|
+
playerStyle: T;
|
|
1813
1870
|
}
|
|
1814
1871
|
export declare const Colors: {
|
|
1815
1872
|
readonly DarkPrimary: "#0D0F14";
|
|
@@ -1828,8 +1885,12 @@ export declare const Colors: {
|
|
|
1828
1885
|
|
|
1829
1886
|
export type ThemeType = 'grid-2-columns' | 'grid-3-columns' | 'row-circle' | 'row-rectangle' | 'row-rectangle-horizontal' | 'grid-2-columns-horizontal' | 'grid-3-columns-horizontal' | 'default';
|
|
1830
1887
|
export declare class ThemeFactory {
|
|
1831
|
-
static create(name
|
|
1888
|
+
static create(name: ThemeType, contentType: 'moment'): IWidgetTheme<MomentPlayerStyle>;
|
|
1889
|
+
static create(name: ThemeType, contentType: 'story'): IWidgetTheme<StoryPlayerStyle>;
|
|
1890
|
+
static create(name: ThemeType): IWidgetTheme<StoryPlayerStyle>;
|
|
1832
1891
|
}
|
|
1892
|
+
export declare function isStoryPlayerStyle(playerStyle: StoryPlayerStyle | MomentPlayerStyle): playerStyle is StoryPlayerStyle;
|
|
1893
|
+
export declare function isMomentPlayerStyle(playerStyle: StoryPlayerStyle | MomentPlayerStyle): playerStyle is MomentPlayerStyle;
|
|
1833
1894
|
|
|
1834
1895
|
|
|
1835
1896
|
export interface IAttributeParser {
|
|
@@ -2205,8 +2266,10 @@ export type FontWeightType = 'normal' | 'bold' | 'bolder' | 'lighter' | 'inherit
|
|
|
2205
2266
|
export type TextTransformType = 'capitalize' | 'uppercase' | 'lowercase' | 'none';
|
|
2206
2267
|
|
|
2207
2268
|
export type Direction = 'UP' | 'DOWN' | 'RIGHT' | 'LEFT';
|
|
2269
|
+
export type NavigationType = 'Automatic' | 'Manual' | '';
|
|
2270
|
+
export type NavigationDirectionType = 'Forwards' | 'Backwards' | '';
|
|
2208
2271
|
|
|
2209
|
-
export type ComponentsElementType = 'blaze-alert' | 'blaze-
|
|
2272
|
+
export type ComponentsElementType = 'blaze-alert' | 'blaze-chip' | 'blaze-image';
|
|
2210
2273
|
export type WidgetElementType = 'blaze-sdk';
|
|
2211
2274
|
export type ElementType = WidgetElementType | ComponentsElementType;
|
|
2212
2275
|
|
|
@@ -2233,12 +2296,13 @@ export * from './user.type';
|
|
|
2233
2296
|
export * from './widget.type';
|
|
2234
2297
|
export * from './chip-status.type';
|
|
2235
2298
|
export * from './prefetch.type';
|
|
2299
|
+
export * from './trigger.type';
|
|
2236
2300
|
|
|
2237
|
-
export type EntitiesType = 'playerId' | 'teamId' | 'gameId';
|
|
2238
|
-
export type PerItemStyleOverrides = Record<EntitiesType, Array<{
|
|
2301
|
+
export type EntitiesType = 'playerId' | 'teamId' | 'gameId' | 'roundId';
|
|
2302
|
+
export type PerItemStyleOverrides = Partial<Record<EntitiesType, Array<{
|
|
2239
2303
|
name: string;
|
|
2240
2304
|
theme: IWidgetTheme;
|
|
2241
|
-
}
|
|
2305
|
+
}>>>;
|
|
2242
2306
|
|
|
2243
2307
|
export type LabelsType = string | string[] | BlazeWidgetLabel;
|
|
2244
2308
|
|
|
@@ -2276,6 +2340,9 @@ export type ThumbnailType = 'SQUARE_ICON' | 'VERTICAL_TWO_BY_THREE' | 'CUSTOM';
|
|
|
2276
2340
|
export type ThumbnailShape = 'Circle' | 'Rectangle';
|
|
2277
2341
|
export declare function thumbnailMapping(thumbnailType: ThumbnailType): ThumbnailApiType;
|
|
2278
2342
|
|
|
2343
|
+
export type ExitTriggerType = 'Swipe' | 'Swipe Left' | 'Swipe Right' | 'Swipe Down' | 'Swipe Up' | 'Skip' | 'Close Button' | 'CTA Click' | 'Escape Button' | 'Stories Completed' | 'Story Completed' | '';
|
|
2344
|
+
export type StartTriggerType = 'Embedded Player in Viewport' | 'UI Button' | 'Widget' | 'Deeplink' | 'Swipe' | 'Skip' | 'SingleStory' | 'Share' | '';
|
|
2345
|
+
|
|
2279
2346
|
export type GetUserTokenRequest = {
|
|
2280
2347
|
externalId: string | null;
|
|
2281
2348
|
};
|
|
@@ -2334,6 +2401,11 @@ export declare function flattenObject<T extends Record<string, any>>(obj: T): Re
|
|
|
2334
2401
|
export declare function mergeStyles(element: HTMLElement, styles: Partial<CSSStyleDeclaration>): object;
|
|
2335
2402
|
export declare function getMaxValue(currentMax: string, newValue: string): string;
|
|
2336
2403
|
export declare function isReadByLastUnIgnoredPageStatus(story: IStory): boolean;
|
|
2404
|
+
export declare function sortByHasViewed(a: {
|
|
2405
|
+
hasViewed: boolean;
|
|
2406
|
+
}, b: {
|
|
2407
|
+
hasViewed: boolean;
|
|
2408
|
+
}): number;
|
|
2337
2409
|
export declare function applyPlayerStyleChanges(defaultPlayerStyle: StoryPlayerStyle, mergedPlayerStyle: StoryPlayerStyle, themePlayerStyle: StoryPlayerStyle, playerStyleChanges: any): void;
|
|
2338
2410
|
export declare function getChangedProperties(source: any, target: any, level: string, playerStyleChanges: any, parentKeys?: string): void;
|
|
2339
2411
|
export declare function removeDuplicates(source: string[], checkAgainst: string[]): string[];
|
|
@@ -2395,10 +2467,6 @@ export * from './widget-video';
|
|
|
2395
2467
|
export * from './moment/widget-moment-seek-bar';
|
|
2396
2468
|
export * from './widget-cta-modal';
|
|
2397
2469
|
|
|
2398
|
-
export type ExitTriggerType = 'Swipe' | 'Swipe Down' | 'Swipe Up' | 'Skip' | 'Close Button' | 'CTA Click' | 'Escape Button' | '';
|
|
2399
|
-
export type StartTriggerType = 'Embedded Player in Viewport' | 'UI Button' | 'Widget' | 'Deeplink' | 'Swipe' | 'Skip' | 'SingleStory' | 'Share' | '';
|
|
2400
|
-
export type NavigationType = 'Automatic' | 'Manual' | '';
|
|
2401
|
-
export type NavigationDirectionType = 'Forwards' | 'Backwards' | '';
|
|
2402
2470
|
export declare abstract class BlazeWidgetContent extends HTMLElement {
|
|
2403
2471
|
container: HTMLElement;
|
|
2404
2472
|
pageIndex: number;
|
|
@@ -2421,6 +2489,7 @@ export declare abstract class BlazeWidgetContent extends HTMLElement {
|
|
|
2421
2489
|
connectedCallback(): void;
|
|
2422
2490
|
disconnectedCallback(): void;
|
|
2423
2491
|
setWidgetItemParent(item: BlazeWidgetItem): void;
|
|
2492
|
+
updateWidgetStatusReadUnread(): void;
|
|
2424
2493
|
getRefferingObject(): ReferringEventInfo;
|
|
2425
2494
|
render(): void;
|
|
2426
2495
|
}
|
|
@@ -2528,7 +2597,7 @@ export declare class BlazeWidgetInteraction extends BaseWidget {
|
|
|
2528
2597
|
}
|
|
2529
2598
|
|
|
2530
2599
|
export interface BlazeWidgetItemOptions {
|
|
2531
|
-
|
|
2600
|
+
layout: LayoutStyle;
|
|
2532
2601
|
content: IStory | IMoment;
|
|
2533
2602
|
}
|
|
2534
2603
|
export declare class BlazeWidgetItem extends BaseWidget {
|
|
@@ -2541,7 +2610,7 @@ export declare class BlazeWidgetItem extends BaseWidget {
|
|
|
2541
2610
|
private label;
|
|
2542
2611
|
private labelContainer;
|
|
2543
2612
|
private labelBackground;
|
|
2544
|
-
|
|
2613
|
+
layoutStyle: LayoutStyle;
|
|
2545
2614
|
private chip;
|
|
2546
2615
|
private badge;
|
|
2547
2616
|
private isLive;
|
|
@@ -2559,7 +2628,7 @@ export declare class BlazeWidgetItem extends BaseWidget {
|
|
|
2559
2628
|
connectedCallback(): void;
|
|
2560
2629
|
updateWidget(): void;
|
|
2561
2630
|
updateWidgetItemPadding(): void;
|
|
2562
|
-
updateWidgetItemStyle(
|
|
2631
|
+
updateWidgetItemStyle(layoutStyle: LayoutStyle): void;
|
|
2563
2632
|
private setupDOMElements;
|
|
2564
2633
|
private setupEventListeners;
|
|
2565
2634
|
private handleWidgetClick;
|
|
@@ -2578,7 +2647,7 @@ export declare class BlazeWidgetItem extends BaseWidget {
|
|
|
2578
2647
|
private handleOutsidePosition;
|
|
2579
2648
|
private handleInsidePosition;
|
|
2580
2649
|
private applyCommonStyles;
|
|
2581
|
-
setTheme(
|
|
2650
|
+
setTheme(layoutStyle: LayoutStyle): void;
|
|
2582
2651
|
initializeAndRenderWidget(): void;
|
|
2583
2652
|
getPaddingOnContainer(): PositionOffset;
|
|
2584
2653
|
setPaddingOnContainer(padding: PositionOffset): void;
|
|
@@ -2612,15 +2681,15 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
2612
2681
|
shouldReloadData: boolean;
|
|
2613
2682
|
get refElement(): ShadowRoot | BlazeWidgetLayout;
|
|
2614
2683
|
constructor();
|
|
2684
|
+
connectedCallback(): void;
|
|
2685
|
+
disconnectedCallback(): void;
|
|
2615
2686
|
onResizeEventDelay(): void;
|
|
2616
2687
|
onResize(): void;
|
|
2617
2688
|
handleHeightChangeMutation(mutationsList: MutationRecord[]): void;
|
|
2618
2689
|
handleIntersection(entries: IntersectionObserverEntry[]): void;
|
|
2619
|
-
connectedCallback(): void;
|
|
2620
|
-
disconnectedCallback(): void;
|
|
2621
2690
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
2622
2691
|
onKeyDown(e: KeyboardEvent): void;
|
|
2623
|
-
|
|
2692
|
+
onContentChange(mode: ContentDirection): void;
|
|
2624
2693
|
onPlayerClose(): void;
|
|
2625
2694
|
onPlayerOpen(): void;
|
|
2626
2695
|
getParentHeightWithoutPadding(): number | null;
|
|
@@ -2628,11 +2697,12 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
2628
2697
|
private setReloadData;
|
|
2629
2698
|
addDelegateListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
2630
2699
|
set storyIds(value: string);
|
|
2700
|
+
set contentIds(value: string);
|
|
2631
2701
|
setContentIds(storyIds: string[], options?: ISetWidgetOptions): void;
|
|
2632
2702
|
setLabelsPriority(labelsPriority: string | string[] | BlazeWidgetLabel[], options?: ISetWidgetOptions): void;
|
|
2633
2703
|
setLabels(labels: string | string[] | BlazeWidgetLabel, options?: ISetWidgetOptions): void;
|
|
2634
2704
|
getTheme(): IWidgetTheme;
|
|
2635
|
-
setTheme(theme: IWidgetTheme |
|
|
2705
|
+
setTheme(theme: IWidgetTheme | ThemeType): void;
|
|
2636
2706
|
private get theme();
|
|
2637
2707
|
updateOverrideStyles(perItemStyleOverrides: PerItemStyleOverrides): void;
|
|
2638
2708
|
reload(): void;
|
|
@@ -2645,12 +2715,17 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
2645
2715
|
setMaxItemsDisplaySize(maxSize: number): void;
|
|
2646
2716
|
setMaxItemsSize(maxItemsSize?: number): void;
|
|
2647
2717
|
private updatePlayerStyle;
|
|
2648
|
-
createModal
|
|
2649
|
-
appendModalToBlazeSDK
|
|
2718
|
+
private createModal;
|
|
2719
|
+
private appendModalToBlazeSDK;
|
|
2650
2720
|
static get observedAttributes(): string[];
|
|
2651
|
-
onItemClick
|
|
2652
|
-
loadContent
|
|
2653
|
-
|
|
2721
|
+
private onItemClick;
|
|
2722
|
+
private loadContent;
|
|
2723
|
+
private handleStoryContent;
|
|
2724
|
+
private handleMomentContent;
|
|
2725
|
+
handleAssetsExpiry(data: {
|
|
2726
|
+
assetsExpiryTime: string;
|
|
2727
|
+
}): void;
|
|
2728
|
+
handleWidgetContent(): void;
|
|
2654
2729
|
calculateChipSizes(theme: IWidgetTheme): {
|
|
2655
2730
|
badge: {
|
|
2656
2731
|
width: number;
|
|
@@ -2686,10 +2761,11 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
2686
2761
|
labelAdditionalWidth: number;
|
|
2687
2762
|
labelAdditionalHeight: number;
|
|
2688
2763
|
};
|
|
2689
|
-
maxSize(): number;
|
|
2690
2764
|
event(action: WidgetAction, data: Partial<WidgetEvent>, label?: string | undefined): void;
|
|
2765
|
+
private reorderWidgets;
|
|
2691
2766
|
updateWidgetsData(): void;
|
|
2692
|
-
|
|
2767
|
+
private updateWidgetDisplay;
|
|
2768
|
+
private maxSize;
|
|
2693
2769
|
connectWidgets(): void;
|
|
2694
2770
|
get thumbnailShape(): ThumbnailShape;
|
|
2695
2771
|
widgetType(): WidgetType;
|
|
@@ -2704,11 +2780,13 @@ export declare class BlazeWidgetModal extends BaseWidget {
|
|
|
2704
2780
|
hammer: HammerManager | null;
|
|
2705
2781
|
isMultiTouch: boolean;
|
|
2706
2782
|
boundOnResizeEvent: (this: Window, ev: UIEvent) => void;
|
|
2707
|
-
boundOnPopStateEvent: (
|
|
2783
|
+
boundOnPopStateEvent: (ev: PopStateEvent) => void;
|
|
2784
|
+
onContentChange?: (mode: ContentDirection) => void;
|
|
2708
2785
|
constructor(type: 'story' | 'moment');
|
|
2709
2786
|
connectedCallback(): void;
|
|
2710
2787
|
disconnectedCallback(): void;
|
|
2711
2788
|
onResize(): void;
|
|
2789
|
+
handleOnContentChange(mode: ContentDirection): void;
|
|
2712
2790
|
handlePopState(ev: PopStateEvent): void;
|
|
2713
2791
|
seek(id: string): void;
|
|
2714
2792
|
setupHammer(): void;
|
|
@@ -2741,6 +2819,7 @@ export declare abstract class WidgetAbstractPlayer extends BaseWidget {
|
|
|
2741
2819
|
currentNextAnimation?: anime.AnimeInstance;
|
|
2742
2820
|
currentPrevAnimation?: anime.AnimeInstance;
|
|
2743
2821
|
onClose?: () => void;
|
|
2822
|
+
onContentChange?: (mode: ContentDirection) => void;
|
|
2744
2823
|
listeners: EventsListener;
|
|
2745
2824
|
boundHandlePanStart: (ev: HammerInput) => void;
|
|
2746
2825
|
boundHandlePanMove: (ev: HammerInput) => void;
|
|
@@ -2787,18 +2866,17 @@ export declare abstract class WidgetAbstractPlayer extends BaseWidget {
|
|
|
2787
2866
|
|
|
2788
2867
|
export declare class BlazeWidgetScrollable extends BaseWidget {
|
|
2789
2868
|
buttonsState: never[];
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2869
|
+
boundOnMouseMoveEvent: (e: MouseEvent) => void;
|
|
2870
|
+
boundOnClickEvent: (this: HTMLElement, ev: MouseEvent) => void;
|
|
2871
|
+
boundOnMouseWheelEvent: (event: WheelEvent) => void;
|
|
2793
2872
|
totalMovement: number;
|
|
2794
2873
|
constructor();
|
|
2795
|
-
render(): void;
|
|
2796
2874
|
connectedCallback(): void;
|
|
2875
|
+
disconnectedCallback(): void;
|
|
2797
2876
|
onClick(event: MouseEvent): void;
|
|
2798
2877
|
onMouseMove(event: MouseEvent): void;
|
|
2799
2878
|
onMouseWheel(event: WheelEvent): void;
|
|
2800
|
-
|
|
2801
|
-
disconnectedCallback(): void;
|
|
2879
|
+
render(): void;
|
|
2802
2880
|
}
|
|
2803
2881
|
|
|
2804
2882
|
export type playRefType = 'Share' | 'SingleStory';
|
|
@@ -2852,6 +2930,7 @@ export declare class BlazeWidgetShareModal extends BaseWidget {
|
|
|
2852
2930
|
onDrawerClose(): void;
|
|
2853
2931
|
open(shareUrl: string): void;
|
|
2854
2932
|
close(): void;
|
|
2933
|
+
get isOpen(): boolean;
|
|
2855
2934
|
renderButtons(): void;
|
|
2856
2935
|
renderTitle(): void;
|
|
2857
2936
|
render(): void;
|
|
@@ -3004,7 +3083,7 @@ export declare class BlazeWidgetAd extends BlazeWidgetVideoBase {
|
|
|
3004
3083
|
export type BlazeWidgetContentType = BlazeWidgetMoment[] & BlazeWidgetStory[];
|
|
3005
3084
|
export declare class BlazeWidgetMomentModal extends BlazeWidgetModal {
|
|
3006
3085
|
parentWidget: HTMLElement;
|
|
3007
|
-
playerLayout:
|
|
3086
|
+
playerLayout: MomentPlayerStyle;
|
|
3008
3087
|
data: IMoment[];
|
|
3009
3088
|
playlistSessionId: string;
|
|
3010
3089
|
navigationButtonsContainerElement: BlazeDiv;
|
|
@@ -3015,9 +3094,10 @@ export declare class BlazeWidgetMomentModal extends BlazeWidgetModal {
|
|
|
3015
3094
|
boundOnKeyDown: (ev: KeyboardEvent) => void;
|
|
3016
3095
|
boundOnNavigationChange: (ev: Event) => void;
|
|
3017
3096
|
boundOnResizeEventDelay: (this: Window, ev: UIEvent) => void;
|
|
3018
|
-
constructor(parentWidget: HTMLElement, playerLayout:
|
|
3097
|
+
constructor(parentWidget: HTMLElement, playerLayout: MomentPlayerStyle);
|
|
3019
3098
|
connectedCallback(): void;
|
|
3020
3099
|
disconnectedCallback(): void;
|
|
3100
|
+
setTheme(playerStyle: MomentPlayerStyle): void;
|
|
3021
3101
|
onNavigationChange(ev: Event): void;
|
|
3022
3102
|
navigateContent(direction: ContentDirection): void;
|
|
3023
3103
|
createNavigationButton(direction: ContentDirection): BlazeButton;
|
|
@@ -3053,10 +3133,12 @@ export declare class BlazeWidgetMomentPlayer extends WidgetAbstractPlayer {
|
|
|
3053
3133
|
handleEndSwipe(ev: HammerInput): void;
|
|
3054
3134
|
handlePrevDirection(): void;
|
|
3055
3135
|
handleNextDirection(): void;
|
|
3136
|
+
releaseMomentFromMemory(moment: BlazeWidgetMoment): void;
|
|
3056
3137
|
updateItemData(itemToReplaceWith: BlazeWidgetMoment & BlazeWidgetStory, nextItemToInsert: BlazeWidgetMoment | BlazeWidgetStory): void;
|
|
3057
3138
|
createAnimation(content: BlazeWidgetMoment, direction: ContentDirection, targetIndex: number): AnimeTimelineInstance;
|
|
3058
|
-
|
|
3139
|
+
handleAnimationStart(content: BlazeWidgetMoment, direction: ContentDirection): void;
|
|
3059
3140
|
handleAnimationCompletion(content: BlazeWidgetMoment, mode: ContentDirection): Promise<void>;
|
|
3141
|
+
loadAndPlayContent(): Promise<void>;
|
|
3060
3142
|
setContent(content: BlazeWidgetMoment[]): void;
|
|
3061
3143
|
preloadAdjacentContent(direction: ContentDirection): Promise<void>;
|
|
3062
3144
|
prefetchPosters(): Promise<void>;
|
|
@@ -3124,11 +3206,21 @@ export declare class BlazeWidgetMomentSeekBar extends HTMLElement {
|
|
|
3124
3206
|
|
|
3125
3207
|
interface ButtonElementOptions {
|
|
3126
3208
|
iconUrl: string;
|
|
3127
|
-
|
|
3209
|
+
width: string;
|
|
3210
|
+
height: string;
|
|
3128
3211
|
onClick?: (this: GlobalEventHandlers, ev: MouseEvent) => void;
|
|
3129
3212
|
backgroundColor?: string;
|
|
3213
|
+
padding?: string;
|
|
3214
|
+
color?: string;
|
|
3215
|
+
borderRadius?: string;
|
|
3216
|
+
}
|
|
3217
|
+
interface MomentContentParams {
|
|
3218
|
+
title: string;
|
|
3219
|
+
description: string;
|
|
3220
|
+
subtitle: string;
|
|
3130
3221
|
}
|
|
3131
3222
|
export declare class BlazeWidgetMoment extends BlazeWidgetContent {
|
|
3223
|
+
playerStyle?: MomentPlayerStyle | undefined;
|
|
3132
3224
|
video?: BlazeWidgetVideo | BlazeWidgetAd;
|
|
3133
3225
|
modal: BlazeWidgetMomentModal;
|
|
3134
3226
|
seekBar: BlazeWidgetMomentSeekBar;
|
|
@@ -3148,34 +3240,41 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
|
|
|
3148
3240
|
shadowTopElement: BlazeDiv;
|
|
3149
3241
|
topButtonsContainer: BlazeDiv;
|
|
3150
3242
|
bottomButtonsContainer: BlazeDiv;
|
|
3243
|
+
likeWrapperElement: BlazeDiv;
|
|
3244
|
+
likeCountElement: BlazeDiv;
|
|
3151
3245
|
closeButtonElement: BlazeButton;
|
|
3152
3246
|
muteButtonElement: BlazeButton;
|
|
3153
|
-
likeWrapperElement: BlazeDiv;
|
|
3154
3247
|
likeButtonElement: BlazeButton;
|
|
3155
|
-
likeCountElement: BlazeDiv;
|
|
3156
3248
|
shareButtonElement: BlazeButton;
|
|
3157
3249
|
playPauseButtonElement: BlazeButton;
|
|
3158
|
-
|
|
3250
|
+
headBodyContainer: BlazeDiv;
|
|
3251
|
+
headElement: BlazeDiv;
|
|
3252
|
+
bodyElement: BlazeDiv;
|
|
3159
3253
|
ctaButtonElement: BlazeCtaButton;
|
|
3160
3254
|
isInit: boolean;
|
|
3161
3255
|
isActive: boolean;
|
|
3162
3256
|
shouldShowImaAdOnStart: boolean;
|
|
3163
3257
|
imaUrl: string;
|
|
3258
|
+
adContext?: IAdContext;
|
|
3164
3259
|
elementsToHideOnImaAds: (HTMLElement | undefined)[];
|
|
3165
3260
|
elementsToHideOnCustomAds: (HTMLElement | undefined)[];
|
|
3166
|
-
|
|
3261
|
+
originalVideoRef: BlazeWidgetVideo | undefined;
|
|
3262
|
+
constructor(playerStyle?: MomentPlayerStyle | undefined);
|
|
3263
|
+
setPlayerStyle(style: MomentPlayerStyle): void;
|
|
3167
3264
|
connectedCallback(): void;
|
|
3168
3265
|
disconnectedCallback(): void;
|
|
3266
|
+
setTheme(playerStyle: MomentPlayerStyle): void;
|
|
3169
3267
|
initializeStyles(): void;
|
|
3170
|
-
styleBottomContentContainer(): void;
|
|
3171
3268
|
styleMainContainer(): void;
|
|
3269
|
+
styleBottomContentContainer(): void;
|
|
3172
3270
|
styleShadowElements(): void;
|
|
3173
3271
|
styleShadowTopElement(): void;
|
|
3174
3272
|
styleShadowBottomElement(): void;
|
|
3175
3273
|
styleButtonsContainer(): void;
|
|
3176
3274
|
styleTopContainer(): void;
|
|
3177
3275
|
styleBottomContainer(): void;
|
|
3178
|
-
|
|
3276
|
+
styleHeadBodyContainer(): void;
|
|
3277
|
+
styleContent(element: BlazeDiv, textStyle: BlazeMomentsPlayerTextStyle, type: string): void;
|
|
3179
3278
|
styleLike(): void;
|
|
3180
3279
|
styleShare(): void;
|
|
3181
3280
|
styleCta(): void;
|
|
@@ -3183,11 +3282,10 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
|
|
|
3183
3282
|
appendShadowElements(): void;
|
|
3184
3283
|
createButtonElement(options: ButtonElementOptions, button: BlazeButton): void;
|
|
3185
3284
|
configureShareModal(): void;
|
|
3186
|
-
configureButtons(): void
|
|
3187
|
-
createLikeButton(size: string): Promise<void>;
|
|
3285
|
+
configureButtons(): Promise<void>;
|
|
3188
3286
|
appendButtonsContainer(): void;
|
|
3189
3287
|
handleMobileSpecificFeatures(): void;
|
|
3190
|
-
|
|
3288
|
+
configureContentBody(): void;
|
|
3191
3289
|
appendBottomContainer(): void;
|
|
3192
3290
|
createPlayPauseButton(): void;
|
|
3193
3291
|
handlePlayPauseButtonClick(): void;
|
|
@@ -3196,6 +3294,8 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
|
|
|
3196
3294
|
onBlur(): void;
|
|
3197
3295
|
onFocus(): void;
|
|
3198
3296
|
onContentClick(): void;
|
|
3297
|
+
expandBodyText(lineClamp: string): void;
|
|
3298
|
+
collapseBodyText(lineClamp: string): void;
|
|
3199
3299
|
onMuteUnmuteChange(): void;
|
|
3200
3300
|
updatePlayerButtonIcons(): void;
|
|
3201
3301
|
handleOnShareClick(): Promise<void>;
|
|
@@ -3211,7 +3311,7 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
|
|
|
3211
3311
|
shouldShowImaAdOnStart: boolean;
|
|
3212
3312
|
imaUrl: string;
|
|
3213
3313
|
}): Promise<void>;
|
|
3214
|
-
|
|
3314
|
+
updateContent(momentContentData: MomentContentParams): void;
|
|
3215
3315
|
updateLikeCount(likes?: number): Promise<void>;
|
|
3216
3316
|
updateCta(cta: ICTA): void;
|
|
3217
3317
|
onCtaClick(event: Event): boolean;
|
|
@@ -3224,7 +3324,6 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
|
|
|
3224
3324
|
restartVideo(): void;
|
|
3225
3325
|
adjustAdView(): void;
|
|
3226
3326
|
event(action: MomentAction, momentData: Partial<MomentEvent>, label?: string | undefined): void;
|
|
3227
|
-
adjustStylesForDevice(): void;
|
|
3228
3327
|
render(): void;
|
|
3229
3328
|
}
|
|
3230
3329
|
|
|
@@ -3233,14 +3332,12 @@ export declare class BlazeWidgetStoryModal extends BlazeWidgetModal {
|
|
|
3233
3332
|
playerLayout: StoryPlayerStyle;
|
|
3234
3333
|
onOpen?: () => void;
|
|
3235
3334
|
onClose?: (options?: ISmoothOpenCloseModal) => void;
|
|
3236
|
-
onStoryChange?: (mode: ContentDirection) => void;
|
|
3237
3335
|
boundOnResizeEventDelay: (this: Window, ev: UIEvent) => void;
|
|
3238
3336
|
boundOnKeyDown: (ev: KeyboardEvent) => void;
|
|
3239
3337
|
constructor(parentWidget: HTMLElement, playerLayout: StoryPlayerStyle);
|
|
3240
3338
|
connectedCallback(): void;
|
|
3241
3339
|
disconnectedCallback(): void;
|
|
3242
|
-
|
|
3243
|
-
setTheme(theme: IWidgetTheme): void;
|
|
3340
|
+
setTheme(playerStyle: StoryPlayerStyle): void;
|
|
3244
3341
|
setModalContent(stories: IStory[], indexOfContentInWidget: number, defaultAdsInfo?: IAdInfo): void;
|
|
3245
3342
|
onKeyDown(ev: KeyboardEvent): void;
|
|
3246
3343
|
close(): void;
|
|
@@ -3255,7 +3352,6 @@ export declare class BlazeWidgetStoryModal extends BlazeWidgetModal {
|
|
|
3255
3352
|
}
|
|
3256
3353
|
|
|
3257
3354
|
export declare class BlazeWidgetStoryPlayer extends WidgetAbstractPlayer {
|
|
3258
|
-
onStoryChange?: (mode: ContentDirection) => void;
|
|
3259
3355
|
boundOnKeyDown: (event: KeyboardEvent) => Promise<void>;
|
|
3260
3356
|
backgroundAnimation?: Animation;
|
|
3261
3357
|
constructor();
|
|
@@ -3274,7 +3370,7 @@ export declare class BlazeWidgetStoryPlayer extends WidgetAbstractPlayer {
|
|
|
3274
3370
|
resetStyles(): void;
|
|
3275
3371
|
play(options?: ISmoothOpenCloseModal): void;
|
|
3276
3372
|
loadAndPlayContent(): Promise<void>;
|
|
3277
|
-
handleAnimationCompletion(content: BlazeWidgetStory,
|
|
3373
|
+
handleAnimationCompletion(content: BlazeWidgetStory, direction: ContentDirection): void;
|
|
3278
3374
|
createAnimation(content: BlazeWidgetStory, direction: ContentDirection, targetIndex: number): anime.AnimeTimelineInstance;
|
|
3279
3375
|
handleAnimationStart(content: BlazeWidgetStory, targetContent: BlazeWidgetStory, direction: ContentDirection): void;
|
|
3280
3376
|
closeWithAnimation(direction: Direction): void;
|
|
@@ -3301,8 +3397,8 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
|
|
|
3301
3397
|
type: string;
|
|
3302
3398
|
progressElement: HTMLElement;
|
|
3303
3399
|
onPageStart?: () => void;
|
|
3304
|
-
onPrevStory?: () => void;
|
|
3305
|
-
onNextStory?: () => void;
|
|
3400
|
+
onPrevStory?: (navigation: NavigationType) => void;
|
|
3401
|
+
onNextStory?: (navigation: NavigationType) => void;
|
|
3306
3402
|
onClose?: () => void;
|
|
3307
3403
|
buttonsContainer: BlazeDiv;
|
|
3308
3404
|
playbackParts: HTMLElement[];
|
|
@@ -3337,6 +3433,7 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
|
|
|
3337
3433
|
requestAnimationId: number | null;
|
|
3338
3434
|
shouldShowImaAdOnStart: boolean;
|
|
3339
3435
|
imaUrl: string;
|
|
3436
|
+
adContext?: IAdContext;
|
|
3340
3437
|
constructor(playerStyle: StoryPlayerStyle, mode: ScreenMode);
|
|
3341
3438
|
private isButtonVisible;
|
|
3342
3439
|
private createPlayerButtonsAndAppendToButtonsContainer;
|
|
@@ -3345,7 +3442,7 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
|
|
|
3345
3442
|
onShareClick(): Promise<void>;
|
|
3346
3443
|
private updateCtaButtonLayout;
|
|
3347
3444
|
private updateChip;
|
|
3348
|
-
setTheme(
|
|
3445
|
+
setTheme(playerStyle: StoryPlayerStyle): void;
|
|
3349
3446
|
private setButtonNavigationAsDisabled;
|
|
3350
3447
|
adjustAdView(): void;
|
|
3351
3448
|
private setPlayerButtonPosition;
|
|
@@ -3381,13 +3478,13 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
|
|
|
3381
3478
|
onVisibilityChange(): void;
|
|
3382
3479
|
onBlur(): void;
|
|
3383
3480
|
onFocus(): void;
|
|
3384
|
-
close(isDirectCloseCall?: boolean): void
|
|
3481
|
+
close(isDirectCloseCall?: boolean): Promise<void>;
|
|
3385
3482
|
pause(): void;
|
|
3386
3483
|
resume(): void;
|
|
3387
3484
|
resetPosition(): void;
|
|
3388
3485
|
updateWidgetStatusReadUnread(): void;
|
|
3389
3486
|
markAsRead(): Promise<any>;
|
|
3390
|
-
goNextPage(navigationType?:
|
|
3487
|
+
goNextPage(navigationType?: NavigationType): void;
|
|
3391
3488
|
goPrevPage(): void;
|
|
3392
3489
|
disconnectedCallback(): void;
|
|
3393
3490
|
updateCTAButtonPosition(): void;
|