@wscsports/blaze-web-sdk 0.7.1 → 0.9.0
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 +143 -15
- package/publish/index.js +1 -1
package/package.json
CHANGED
package/publish/index.d.ts
CHANGED
|
@@ -618,6 +618,7 @@ export * from './image';
|
|
|
618
618
|
export * from './loader';
|
|
619
619
|
export * from './skeleton';
|
|
620
620
|
export * from './typography';
|
|
621
|
+
export * from './player-menu';
|
|
621
622
|
|
|
622
623
|
export declare class BlazeLoader extends HTMLElement {
|
|
623
624
|
constructor();
|
|
@@ -628,6 +629,48 @@ export declare class BlazeLoader extends HTMLElement {
|
|
|
628
629
|
private updateLoaderColor;
|
|
629
630
|
}
|
|
630
631
|
|
|
632
|
+
export interface IPlayerMenuOptions {
|
|
633
|
+
title: string;
|
|
634
|
+
component: BaseWidget;
|
|
635
|
+
height?: string;
|
|
636
|
+
width?: string;
|
|
637
|
+
}
|
|
638
|
+
export declare const PLAYER_MENU_EVENTS: {
|
|
639
|
+
readonly OPEN: "player-menu-open";
|
|
640
|
+
readonly CLOSE: "player-menu-close";
|
|
641
|
+
readonly EXPAND: "player-menu-expand";
|
|
642
|
+
readonly COLLAPSE: "player-menu-collapse";
|
|
643
|
+
};
|
|
644
|
+
export declare class BlazePlayerMenu extends BaseWidget {
|
|
645
|
+
private menuOptions;
|
|
646
|
+
private menuComponent;
|
|
647
|
+
private header;
|
|
648
|
+
private expander;
|
|
649
|
+
private backdropContainer;
|
|
650
|
+
private titleElement;
|
|
651
|
+
private closeButton;
|
|
652
|
+
menuContainer: BlazeDiv;
|
|
653
|
+
private detachTouchEventListeners;
|
|
654
|
+
constructor();
|
|
655
|
+
connectedCallback(): void;
|
|
656
|
+
disconnectedCallback(): void;
|
|
657
|
+
setAttribute(qualifiedName: string, value: string): void;
|
|
658
|
+
private setupEventListeners;
|
|
659
|
+
private detachEventListeners;
|
|
660
|
+
init(options: IPlayerMenuOptions): void;
|
|
661
|
+
private buildHeader;
|
|
662
|
+
private buildBackdrop;
|
|
663
|
+
private buildModal;
|
|
664
|
+
open(): void;
|
|
665
|
+
close(): void;
|
|
666
|
+
expand(): void;
|
|
667
|
+
collapse(): void;
|
|
668
|
+
private onBackdropClick;
|
|
669
|
+
private onOpenChange;
|
|
670
|
+
private onExpandedChange;
|
|
671
|
+
private animateMenu;
|
|
672
|
+
}
|
|
673
|
+
|
|
631
674
|
export declare class BlazeWidgetItemSkeleton extends BaseWidget {
|
|
632
675
|
width: number;
|
|
633
676
|
thumbnailHeight: number | string;
|
|
@@ -670,7 +713,7 @@ export declare class BlazeButton extends BaseWidget {
|
|
|
670
713
|
isAnimationOnDesktopInitialized: boolean;
|
|
671
714
|
get refElement(): ShadowRoot | this;
|
|
672
715
|
constructor();
|
|
673
|
-
static get observedAttributes(): ("height" | "order" | "width" | "icon-color" | "blaze-btn-visible" | "
|
|
716
|
+
static get observedAttributes(): ("height" | "order" | "width" | "icon-color" | "disabled" | "blaze-btn-visible" | "blaze-btn-hidden" | "button-desktop-animation")[];
|
|
674
717
|
private onMouseEnter;
|
|
675
718
|
private onMouseLeave;
|
|
676
719
|
private onClick;
|
|
@@ -880,6 +923,14 @@ type ExposedFields = {
|
|
|
880
923
|
};
|
|
881
924
|
export declare const exposedFieldsByAction: ExposedFields;
|
|
882
925
|
|
|
926
|
+
export declare const CcSupportedLanguages: CcLanguageType[];
|
|
927
|
+
|
|
928
|
+
export declare const LOCAL_STORAGE_KEY_RECENT_LANGUAGES: string;
|
|
929
|
+
export declare const LOCAL_STORAGE_KEY_LAST_SELECTED: string;
|
|
930
|
+
export declare const CLOSED_CAPTIONS_LANGUAGE_CHANGE = "cc-language-change";
|
|
931
|
+
|
|
932
|
+
export declare const WSC_STORAGE_PREFIX: string;
|
|
933
|
+
|
|
883
934
|
export declare const TRANSPARENT = "transparent";
|
|
884
935
|
|
|
885
936
|
export declare const TABLET_PADDING_BOTTOM = "15px";
|
|
@@ -898,6 +949,9 @@ export * from './iso-country-codes.constants';
|
|
|
898
949
|
export * from './style.constants';
|
|
899
950
|
export * from './time.constants';
|
|
900
951
|
export * from './css.constants';
|
|
952
|
+
export * from './cc-supported-languages.constants';
|
|
953
|
+
export * from './closed-captions.constants';
|
|
954
|
+
export * from './common.constants';
|
|
901
955
|
|
|
902
956
|
export declare const CountryCodes: readonly ["AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "UG", "UA", "AE", "GB", "US", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"];
|
|
903
957
|
|
|
@@ -914,6 +968,8 @@ export declare const ONE_SECOND = 1000;
|
|
|
914
968
|
export declare const ONE_AND_HALF_SECOND = 1500;
|
|
915
969
|
export declare const FAIL_TO_LOAD_TIMEOUT_MS = 3000;
|
|
916
970
|
|
|
971
|
+
export * from './common.styles';
|
|
972
|
+
|
|
917
973
|
export declare const DB_NAMES: {
|
|
918
974
|
readonly MOMENTS: "moments";
|
|
919
975
|
readonly INTERACTIONS: "interactions";
|
|
@@ -1214,9 +1270,7 @@ export declare enum ButtonState {
|
|
|
1214
1270
|
Play = 0,
|
|
1215
1271
|
Pause = 1,
|
|
1216
1272
|
Mute = 2,
|
|
1217
|
-
Unmute = 3
|
|
1218
|
-
CC_ON = 4,
|
|
1219
|
-
CC_OFF = 5
|
|
1273
|
+
Unmute = 3
|
|
1220
1274
|
}
|
|
1221
1275
|
|
|
1222
1276
|
export declare enum ErrorCode {
|
|
@@ -1305,6 +1359,7 @@ export interface WidgetsTagNameMap {
|
|
|
1305
1359
|
'blaze-widget-moment-modal': BlazeWidgetMomentModal;
|
|
1306
1360
|
'blaze-widget-moment-seek-bar': BlazeWidgetMomentSeekBar;
|
|
1307
1361
|
'blaze-widget-share-modal': BlazeWidgetShareModal;
|
|
1362
|
+
'blaze-widget-cc-modal': BlazeWidgetClosedCaptionsModal;
|
|
1308
1363
|
'blaze-widget-cta-modal': BlazeWidgetCtaModal;
|
|
1309
1364
|
'blaze-widget-video': BlazeWidgetVideo;
|
|
1310
1365
|
'blaze-widget-interaction': BlazeWidgetInteraction;
|
|
@@ -1321,6 +1376,7 @@ export interface WidgetsTagNameMap {
|
|
|
1321
1376
|
'blaze-image': BlazeImage;
|
|
1322
1377
|
'blaze-alert': BlazeAlert;
|
|
1323
1378
|
'blaze-modal': BlazeDrawer;
|
|
1379
|
+
'blaze-player-menu': BlazePlayerMenu;
|
|
1324
1380
|
'blaze-div': BlazeDiv;
|
|
1325
1381
|
'blaze-share-button': BlazeShareButton;
|
|
1326
1382
|
'blaze-button': BlazeButton;
|
|
@@ -1345,6 +1401,7 @@ interface WidgetsTagNameOptionsMap {
|
|
|
1345
1401
|
'blaze-widget-moment-modal': {};
|
|
1346
1402
|
'blaze-widget-moment-seek-bar': {};
|
|
1347
1403
|
'blaze-widget-share-modal': {};
|
|
1404
|
+
'blaze-widget-cc-modal': {};
|
|
1348
1405
|
'blaze-widget-cta-modal': {};
|
|
1349
1406
|
'blaze-widget-image': {};
|
|
1350
1407
|
'blaze-widget-video': {};
|
|
@@ -1364,6 +1421,7 @@ interface WidgetsTagNameOptionsMap {
|
|
|
1364
1421
|
'blaze-image': {};
|
|
1365
1422
|
'blaze-alert': {};
|
|
1366
1423
|
'blaze-modal': {};
|
|
1424
|
+
'blaze-player-menu': {};
|
|
1367
1425
|
'blaze-div': {};
|
|
1368
1426
|
'blaze-share-button': {};
|
|
1369
1427
|
'blaze-button': {};
|
|
@@ -1414,6 +1472,7 @@ export declare const closedCaptionsOnIconSvg = "data:image/svg+xml;base64,PHN2Zy
|
|
|
1414
1472
|
export declare const closedCaptionsOffIconSvg = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9Im1hc2swXzIxOF80NjQiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjAiIHk9IjAiIHdpZHRoPSIyNCIgaGVpZ2h0PSI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xMC04MyA1OC41LTE0MS41VDI4MC02ODBoMTYwdjgwSDI4MHEtNTAgMC04NSAzNXQtMzUgODVxMCA1MCAzNSA4NXQ4NSAzNWgxNjB2ODBaTTMyMC00NDB2LTgwaDMyMHY4MEgzMjBabTIwMCAxNjB2LTgwaDE2MHE1MCAwIDg1LTM1dDM1LTg1cTAtNTAtMzUtODV0LTg1LTM1SDUyMHYtODBoMTYwcTgzIDAgMTQxLjUgNTguNVQ4ODAtNDgwcTAgODMtNTguNSAxNDEuNVQ2ODAtMjgwSDUyMFoiLz48L3N2Zz4=";
|
|
1475
|
+
export declare const checkMarkSvg = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9Im1hc2swXzUxMl8xMDY4IiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIwIiB5PSIwIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiPgo8cmVjdCB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9IiNEOUQ5RDkiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2swXzUxMl8xMDY4KSI+CjxwYXRoIGQ9Ik05LjU1MDEgMThMMy44NTAxIDEyLjNMNS4yNzUxIDEwLjg3NUw5LjU1MDEgMTUuMTVMMTguNzI1MSA1Ljk3NDk4TDIwLjE1MDEgNy4zOTk5OEw5LjU1MDEgMThaIiBmaWxsPSIjRjBGMEYwIi8+CjwvZz4KPC9zdmc+Cg==";
|
|
1417
1476
|
|
|
1418
1477
|
type CustomNativeTargeting = Record<string, string | string[]>;
|
|
1419
1478
|
type CustomNativeArgs = {
|
|
@@ -2170,7 +2229,6 @@ declare abstract class VideoPlayerServiceClass extends VideoPlayerServiceClass_b
|
|
|
2170
2229
|
private _isNavigating;
|
|
2171
2230
|
private _isModalOpen;
|
|
2172
2231
|
private _isSeekBarDragging;
|
|
2173
|
-
private _isClosedCaptioningEnabled;
|
|
2174
2232
|
private _playReference;
|
|
2175
2233
|
private _currentPlayedContentId;
|
|
2176
2234
|
private _playerLayoutDisplay;
|
|
@@ -2192,8 +2250,6 @@ declare abstract class VideoPlayerServiceClass extends VideoPlayerServiceClass_b
|
|
|
2192
2250
|
set isModalOpen(value: boolean);
|
|
2193
2251
|
get isSeekBarDragging(): boolean;
|
|
2194
2252
|
set isSeekBarDragging(value: boolean);
|
|
2195
|
-
get isClosedCaptionsEnabled(): boolean;
|
|
2196
|
-
set isClosedCaptionsEnabled(value: boolean);
|
|
2197
2253
|
get playerLayout(): PlayerLayoutDisplay;
|
|
2198
2254
|
set playerLayout(value: PlayerLayoutDisplay);
|
|
2199
2255
|
}
|
|
@@ -3044,6 +3100,13 @@ export type IconPropertiesType = {
|
|
|
3044
3100
|
padding?: string;
|
|
3045
3101
|
};
|
|
3046
3102
|
|
|
3103
|
+
export type CcLanguageCode = 'en' | 'es' | 'fr' | 'de' | 'nl' | 'ja' | 'null';
|
|
3104
|
+
export type CcLanguageName = 'English' | 'Spanish' | 'French' | 'German' | 'Dutch' | 'Japanese' | 'Default';
|
|
3105
|
+
export type CcLanguageType = {
|
|
3106
|
+
code: CcLanguageCode;
|
|
3107
|
+
name: CcLanguageName;
|
|
3108
|
+
};
|
|
3109
|
+
|
|
3047
3110
|
export type ChipStatusType = 'statusReadStyle' | 'statusUnreadStyle' | 'statusLiveUnreadStyle' | 'statusLiveStyle';
|
|
3048
3111
|
|
|
3049
3112
|
export type ClientPlatform = 'Web';
|
|
@@ -3055,7 +3118,9 @@ export type ICaptionFile = {
|
|
|
3055
3118
|
};
|
|
3056
3119
|
export type IClosedCaption = {
|
|
3057
3120
|
files: ICaptionFile[];
|
|
3121
|
+
language: CcLanguageCode;
|
|
3058
3122
|
};
|
|
3123
|
+
export type ClosedCaptionsState = CcLanguageCode | 'Off' | 'Unknown' | 'Unavailable';
|
|
3059
3124
|
|
|
3060
3125
|
export type FontWeightType = 'normal' | 'bold' | 'bolder' | 'lighter' | 'inherit' | 'initial' | 'unset' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
3061
3126
|
export type TextTransformType = 'capitalize' | 'uppercase' | 'lowercase' | 'none';
|
|
@@ -3122,6 +3187,7 @@ export * from './ratio.type';
|
|
|
3122
3187
|
export * from './animation.type';
|
|
3123
3188
|
export * from './screen.type';
|
|
3124
3189
|
export * from './action-handler.type';
|
|
3190
|
+
export * from './cc-language.type';
|
|
3125
3191
|
|
|
3126
3192
|
export type EntitiesType = 'playerId' | 'teamId' | 'gameId' | 'roundId';
|
|
3127
3193
|
export type PerItemStyleOverrides = Partial<Record<EntitiesType, Array<{
|
|
@@ -3213,6 +3279,8 @@ export type WidgetType = 'Row' | 'Grid';
|
|
|
3213
3279
|
|
|
3214
3280
|
export declare function isImaAdInfo(ad: IAdInfo): ad is IImaAdInfo;
|
|
3215
3281
|
|
|
3282
|
+
export declare const convertCcLanguageToState: (data: IClosedCaption[] | undefined, language?: CcLanguageCode) => ClosedCaptionsState;
|
|
3283
|
+
|
|
3216
3284
|
interface ChipSizeOptions {
|
|
3217
3285
|
statusLiveStyle: IndicatorStyle;
|
|
3218
3286
|
statusLiveUnreadStyle: IndicatorStyle;
|
|
@@ -3265,6 +3333,7 @@ export declare function removeDuplicates(source: string[], checkAgainst: string[
|
|
|
3265
3333
|
export declare function updateStyle(styleToUpdate: any, path: string[], newValue: any): void;
|
|
3266
3334
|
export declare function getNestedValue(obj: any, path: string[]): any;
|
|
3267
3335
|
export declare function formatLikes(count: number): string;
|
|
3336
|
+
export declare function isElementInsideTarget(target: EventTarget | null, selectors: string[]): boolean;
|
|
3268
3337
|
|
|
3269
3338
|
export * from './chip.utils';
|
|
3270
3339
|
export * from './common.utils';
|
|
@@ -3276,6 +3345,8 @@ export * from './regex.utils';
|
|
|
3276
3345
|
export * from './stopwatch';
|
|
3277
3346
|
export * from './position.utils';
|
|
3278
3347
|
export * from './ad-info.utils';
|
|
3348
|
+
export * from './cc-language.utils';
|
|
3349
|
+
export * from './shared-event-target.utils';
|
|
3279
3350
|
|
|
3280
3351
|
export declare function getPersonalizedParamsForRequest(personalized?: BlazePersonalized): {
|
|
3281
3352
|
PersonalPlayers?: undefined;
|
|
@@ -3308,6 +3379,8 @@ export declare const RegexStoryHash: RegExp;
|
|
|
3308
3379
|
export declare const RegexMomentHash: RegExp;
|
|
3309
3380
|
export declare const RegexVideoHash: RegExp;
|
|
3310
3381
|
|
|
3382
|
+
export declare const SharedEventTarget: EventTarget;
|
|
3383
|
+
|
|
3311
3384
|
export declare class Stopwatch {
|
|
3312
3385
|
isRunning: boolean;
|
|
3313
3386
|
extraTime: number;
|
|
@@ -3398,8 +3471,7 @@ export declare const VIDEO_EVENTS: {
|
|
|
3398
3471
|
readonly CTA_DISMISS: "cta-dismiss";
|
|
3399
3472
|
readonly RESET_INACTIVITY_TIMER: "reset-inactivity-timer";
|
|
3400
3473
|
readonly CLOSE_PLAYER: "close-player";
|
|
3401
|
-
readonly
|
|
3402
|
-
readonly CLOSED_CAPTIONS_OFF: "closed-captions-off";
|
|
3474
|
+
readonly CLOSED_CAPTIONS_OPEN_MODAL: "closed-captions-open-modal";
|
|
3403
3475
|
readonly DISPLAY_HIDE_OVERLAY_FROM_CTA: "display-hide-overlay-from-cta";
|
|
3404
3476
|
readonly DISPLAY_SEEKED_TIME: "display-seeked-time";
|
|
3405
3477
|
readonly UPDATE_CLOSED_CAPTIONS_LOCATION: "update-closed-captions-location";
|
|
@@ -3562,7 +3634,6 @@ export declare class BlazeLongFormControlsOverlay extends HTMLElement {
|
|
|
3562
3634
|
private ctaTimeout;
|
|
3563
3635
|
private ctaVisiblity;
|
|
3564
3636
|
private currentMuteState;
|
|
3565
|
-
private currentClosedCaptionState;
|
|
3566
3637
|
videoSeekBar: BlazeVideoSeekBar;
|
|
3567
3638
|
videoTimer: BlazeTimer;
|
|
3568
3639
|
videoNavigationOverlay: BlazeVideoNavigationOverlay;
|
|
@@ -3774,6 +3845,7 @@ export declare class BlazeVideoElement extends BlazeWidgetVideoBase {
|
|
|
3774
3845
|
private posterOverlayElement;
|
|
3775
3846
|
videoOverlay: BlazeLongFormControlsOverlay;
|
|
3776
3847
|
shareModal: BlazeWidgetShareModal;
|
|
3848
|
+
closedCaptionsModal: BlazeWidgetClosedCaptionsModal | undefined;
|
|
3777
3849
|
private widgetVastAd;
|
|
3778
3850
|
private adPercentageShownPlaces;
|
|
3779
3851
|
private lastSavedTime;
|
|
@@ -3787,6 +3859,7 @@ export declare class BlazeVideoElement extends BlazeWidgetVideoBase {
|
|
|
3787
3859
|
isActionBlocked: boolean;
|
|
3788
3860
|
private isInitializing;
|
|
3789
3861
|
private isLoaded;
|
|
3862
|
+
private isPausedManually;
|
|
3790
3863
|
private lastMarkedVideoIdAsViewed;
|
|
3791
3864
|
private videoSessionId;
|
|
3792
3865
|
private aspectRatio;
|
|
@@ -3811,6 +3884,7 @@ export declare class BlazeVideoElement extends BlazeWidgetVideoBase {
|
|
|
3811
3884
|
private boundHandleOverlayEvents;
|
|
3812
3885
|
private boundHandleAdStarted;
|
|
3813
3886
|
private boundHandleAdEnded;
|
|
3887
|
+
private boundHandleLanguageChange;
|
|
3814
3888
|
constructor();
|
|
3815
3889
|
connectedCallback(): void;
|
|
3816
3890
|
disconnectedCallback(): void;
|
|
@@ -3822,7 +3896,7 @@ export declare class BlazeVideoElement extends BlazeWidgetVideoBase {
|
|
|
3822
3896
|
setIsPlaying(isPlaying: boolean): void;
|
|
3823
3897
|
load(): Promise<void>;
|
|
3824
3898
|
private setupClosedCaptions;
|
|
3825
|
-
|
|
3899
|
+
setClosedCaptions(files: ICaptionFile[]): Promise<void>;
|
|
3826
3900
|
private setCta;
|
|
3827
3901
|
private setTitle;
|
|
3828
3902
|
private setLiked;
|
|
@@ -3834,6 +3908,8 @@ export declare class BlazeVideoElement extends BlazeWidgetVideoBase {
|
|
|
3834
3908
|
private setupVideoElement;
|
|
3835
3909
|
private setupOverlay;
|
|
3836
3910
|
private setupShareModal;
|
|
3911
|
+
configureClosedCaptionsModal(): void;
|
|
3912
|
+
toggleClosedCaptions(language?: CcLanguageCode): void;
|
|
3837
3913
|
private setupEventListeners;
|
|
3838
3914
|
destroy(): void;
|
|
3839
3915
|
private startOverlayAutoHideTimer;
|
|
@@ -3864,6 +3940,7 @@ export declare class BlazeVideoElement extends BlazeWidgetVideoBase {
|
|
|
3864
3940
|
updateWidgetStatusReadUnread(): void;
|
|
3865
3941
|
private handleVideoTimeUpdate;
|
|
3866
3942
|
private saveCurrentTime;
|
|
3943
|
+
private handleLanguageChange;
|
|
3867
3944
|
private handleAdStarted;
|
|
3868
3945
|
private handleAdEnded;
|
|
3869
3946
|
static get observedAttributes(): string[];
|
|
@@ -3994,6 +4071,7 @@ export * from './moment/widget-moment-seek-bar';
|
|
|
3994
4071
|
export * from './widget-cta-modal';
|
|
3995
4072
|
export * from './widget-captions';
|
|
3996
4073
|
export * from '../video/core/video';
|
|
4074
|
+
export * from './widget-cc-modal';
|
|
3997
4075
|
|
|
3998
4076
|
type Position = {
|
|
3999
4077
|
top?: string;
|
|
@@ -4029,6 +4107,43 @@ export declare class BlazeWidgetCaptions extends HTMLElement {
|
|
|
4029
4107
|
setAbsolutePosition(position: Position): void;
|
|
4030
4108
|
}
|
|
4031
4109
|
|
|
4110
|
+
export declare class BlazeWidgetClosedCaptionsModal extends BaseWidget {
|
|
4111
|
+
private data;
|
|
4112
|
+
private contentType;
|
|
4113
|
+
private closedCaptionsContainer;
|
|
4114
|
+
private closedCaptionsMenu;
|
|
4115
|
+
private shadow;
|
|
4116
|
+
onOpen: (() => void) | undefined;
|
|
4117
|
+
onClose: (() => void) | undefined;
|
|
4118
|
+
onExpand: (() => void) | undefined;
|
|
4119
|
+
onCollapse: (() => void) | undefined;
|
|
4120
|
+
onClosedCaptionsEnable: ((language: CcLanguageCode) => void) | undefined;
|
|
4121
|
+
onClosedCaptionsDisable: (() => void) | undefined;
|
|
4122
|
+
boundLanguageChangeEvent: (event: Event) => void;
|
|
4123
|
+
boundOnMenuOpen: () => void;
|
|
4124
|
+
boundOnMenuClose: () => void;
|
|
4125
|
+
boundOnMenuExpand: () => void;
|
|
4126
|
+
boundOnMenuCollapse: () => void;
|
|
4127
|
+
constructor(data: IClosedCaption[] | undefined, contentType: ContentType);
|
|
4128
|
+
connectedCallback(): Promise<void>;
|
|
4129
|
+
disconnectedCallback(): void;
|
|
4130
|
+
private setupEventListeners;
|
|
4131
|
+
private detachEventListeners;
|
|
4132
|
+
private onLanguageChange;
|
|
4133
|
+
private onMenuOpen;
|
|
4134
|
+
private onMenuClose;
|
|
4135
|
+
private onMenuExpand;
|
|
4136
|
+
private onMenuCollapse;
|
|
4137
|
+
open(): void;
|
|
4138
|
+
close(): void;
|
|
4139
|
+
get isOpen(): boolean;
|
|
4140
|
+
reloadData(data: IClosedCaption[]): void;
|
|
4141
|
+
private handleCcOptionClick;
|
|
4142
|
+
private buildCcOption;
|
|
4143
|
+
private fillContainerWithOptions;
|
|
4144
|
+
private render;
|
|
4145
|
+
}
|
|
4146
|
+
|
|
4032
4147
|
export declare abstract class BlazeWidgetContent extends HTMLElement {
|
|
4033
4148
|
container: HTMLElement;
|
|
4034
4149
|
pageIndex: number;
|
|
@@ -4041,10 +4156,12 @@ export declare abstract class BlazeWidgetContent extends HTMLElement {
|
|
|
4041
4156
|
isActive: boolean;
|
|
4042
4157
|
isResumeOnFocusExecuted: boolean;
|
|
4043
4158
|
isNavigationPending: boolean;
|
|
4159
|
+
isPausedManually: boolean;
|
|
4044
4160
|
resumeAfterfocus: boolean;
|
|
4045
4161
|
boundOnFocusEvent: () => void;
|
|
4046
4162
|
boundOnBlurEvent: () => void;
|
|
4047
4163
|
boundOnVisibilityChangeEvent: () => void;
|
|
4164
|
+
boundOnLanguageChangeEvent: (event: Event) => void;
|
|
4048
4165
|
widgetParentItem: BlazeWidgetItem;
|
|
4049
4166
|
sessionId: string;
|
|
4050
4167
|
refContentModal?: BlazeWidgetStoryModal | BlazeWidgetMomentModal | BlazeWidgetVideoModal;
|
|
@@ -4589,6 +4706,7 @@ export declare class BlazeWidgetVideo extends BlazeWidgetVideoBase {
|
|
|
4589
4706
|
shouldShowImaAd: boolean;
|
|
4590
4707
|
isCurrentlyTryingToRunImaAd: boolean;
|
|
4591
4708
|
hasPoster: boolean;
|
|
4709
|
+
boundLanguageChangeEvent: (event: Event) => void;
|
|
4592
4710
|
static get observedAttributes(): string[];
|
|
4593
4711
|
constructor(contentParent: BlazeWidgetStory | BlazeWidgetMoment);
|
|
4594
4712
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
@@ -4641,6 +4759,7 @@ export declare class BlazeWidgetVideo extends BlazeWidgetVideoBase {
|
|
|
4641
4759
|
onContentResumeRequested(): void;
|
|
4642
4760
|
removeAdLoader(): void;
|
|
4643
4761
|
loadInteraction(): void;
|
|
4762
|
+
onLanguageChange(event: Event): Promise<void>;
|
|
4644
4763
|
handleInteractionEvent(event: CustomEvent<InteractionAnalyticCustomEvent>): void;
|
|
4645
4764
|
}
|
|
4646
4765
|
|
|
@@ -4879,6 +4998,7 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
|
|
|
4879
4998
|
modal: BlazeWidgetMomentModal;
|
|
4880
4999
|
seekBar: BlazeWidgetMomentSeekBar;
|
|
4881
5000
|
shareModal: BlazeWidgetShareModal | undefined;
|
|
5001
|
+
closedCaptionsModal: BlazeWidgetClosedCaptionsModal | undefined;
|
|
4882
5002
|
data: IMoment;
|
|
4883
5003
|
contentType: string;
|
|
4884
5004
|
momentIndex: number;
|
|
@@ -4948,6 +5068,7 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
|
|
|
4948
5068
|
appendShadowElements(): void;
|
|
4949
5069
|
createButtonElement(options: ButtonElementOptions, button: BlazeButton): void;
|
|
4950
5070
|
configureShareModal(): void;
|
|
5071
|
+
configureClosedCaptionsModal(): void;
|
|
4951
5072
|
configureButtons(): Promise<void>;
|
|
4952
5073
|
appendButtonsContainer(): void;
|
|
4953
5074
|
handleMobileSpecificFeatures(): void;
|
|
@@ -4957,6 +5078,7 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
|
|
|
4957
5078
|
createPlayPauseButton(): void;
|
|
4958
5079
|
handlePlayPauseButtonClick(): void;
|
|
4959
5080
|
setModal(modal: BlazeWidgetMomentModal): void;
|
|
5081
|
+
onLanguageChange(e: Event): void;
|
|
4960
5082
|
onVisibilityChange(): void;
|
|
4961
5083
|
onBlur(): void;
|
|
4962
5084
|
onFocus(): void;
|
|
@@ -4966,13 +5088,12 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
|
|
|
4966
5088
|
onMuteUnmuteChange(): void;
|
|
4967
5089
|
updatePlayerButtonIcons(): void;
|
|
4968
5090
|
private handleOnClosedCaptionClick;
|
|
4969
|
-
|
|
5091
|
+
toggleClosedCaptions(language?: CcLanguageCode): void;
|
|
4970
5092
|
handleOnShareClick(): Promise<void>;
|
|
4971
5093
|
loadMoments(): Promise<void>;
|
|
4972
5094
|
load(loadingType?: 'direct' | 'cache'): Promise<void>;
|
|
4973
5095
|
unload(): Promise<void>;
|
|
4974
5096
|
playToggle(): void;
|
|
4975
|
-
private updateCaptions;
|
|
4976
5097
|
handleOnMuteUnmuteToggle(): void;
|
|
4977
5098
|
setData(data: IMoment | null): void;
|
|
4978
5099
|
updateData(options: {
|
|
@@ -5063,9 +5184,11 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
|
|
|
5063
5184
|
playerStyle: StoryPlayerStyle;
|
|
5064
5185
|
mode: ScreenMode;
|
|
5065
5186
|
actionHandlers: ActionHandler[];
|
|
5187
|
+
aspectRatio?: ContentAspectRatio | undefined;
|
|
5066
5188
|
pages: BlazeWidgetVideoBase[];
|
|
5067
5189
|
data: IStory;
|
|
5068
5190
|
shareModal: BlazeWidgetShareModal | undefined;
|
|
5191
|
+
closedCaptionsModal: BlazeWidgetClosedCaptionsModal | undefined;
|
|
5069
5192
|
isStoryLoadCompletedTriggered: boolean;
|
|
5070
5193
|
isStoryActive: boolean;
|
|
5071
5194
|
isResumeOnFocusExecuted: boolean;
|
|
@@ -5073,7 +5196,6 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
|
|
|
5073
5196
|
ctaModal: BlazeWidgetCtaModal;
|
|
5074
5197
|
isCtaWasClickedOrSwiped: boolean;
|
|
5075
5198
|
resumeAfterBlurButton: BlazeButton | undefined;
|
|
5076
|
-
aspectRatio?: ContentAspectRatio;
|
|
5077
5199
|
pageIndex: number;
|
|
5078
5200
|
contentType: string;
|
|
5079
5201
|
progressElement: HTMLElement;
|
|
@@ -5122,13 +5244,14 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
|
|
|
5122
5244
|
boundOnNextPageEvent: () => void;
|
|
5123
5245
|
boundOnPrevPageEvent: () => void;
|
|
5124
5246
|
get currentPageIndexWithoutCustomAds(): number;
|
|
5125
|
-
constructor(playerStyle: StoryPlayerStyle, mode: ScreenMode, actionHandlers?: ActionHandler[]);
|
|
5247
|
+
constructor(playerStyle: StoryPlayerStyle, mode: ScreenMode, actionHandlers?: ActionHandler[], aspectRatio?: ContentAspectRatio | undefined);
|
|
5126
5248
|
isButtonVisible(iconName: IconButtonType | StoryDirectionType): boolean | undefined;
|
|
5127
5249
|
private createPlayerButtonsAndAppendToButtonsContainer;
|
|
5128
5250
|
private createNavigationButtonsAndAppendToWidgetStoryContainer;
|
|
5129
5251
|
private createResumeAfterBlurButton;
|
|
5130
5252
|
private applyIconStyle;
|
|
5131
5253
|
onCustomActionButtonClick(e: Event, handlerOptions: CustomActionButtonOptions): void;
|
|
5254
|
+
onLanguageChange(e: Event): void;
|
|
5132
5255
|
onShareClick(): Promise<void>;
|
|
5133
5256
|
private onClosedCaptionClick;
|
|
5134
5257
|
private updateCtaButtonLayout;
|
|
@@ -5175,6 +5298,8 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
|
|
|
5175
5298
|
private addOrRemoveEventListeners;
|
|
5176
5299
|
connectedCallback(): void;
|
|
5177
5300
|
onShareModalClose(): void;
|
|
5301
|
+
configureClosedCaptionsModal(): void;
|
|
5302
|
+
toggleClosedCaptions(language?: CcLanguageCode): void;
|
|
5178
5303
|
updateStoryProgress(): void;
|
|
5179
5304
|
onShareModalButtonClick(shareButton: BlazeShareButton): Promise<void>;
|
|
5180
5305
|
onVisibilityChange(): void;
|
|
@@ -5210,6 +5335,9 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
|
|
|
5210
5335
|
setPlayerButtonPaddings(button: BlazeButton): void;
|
|
5211
5336
|
setPlayerButtonColors(button: BlazeButton, name: IconButtonType): void;
|
|
5212
5337
|
setPlayerButtonSize(buttonElement: HTMLElement, iconName: string): void;
|
|
5338
|
+
getEmbeddedCtaButtonHeight(): string;
|
|
5339
|
+
getEmbeddedBottomContainerPaddingBottom(): string;
|
|
5340
|
+
getContainerBorderRadius(): string;
|
|
5213
5341
|
updatePlayerButtonsOrder(): void;
|
|
5214
5342
|
updatePlayerContentOrder(): void;
|
|
5215
5343
|
displayExitButtonOnMobileTablet(): void;
|