@wscsports/blaze-web-sdk 0.8.0 → 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 +200 -87
- package/publish/index.js +1 -1
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;
|
|
@@ -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,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9Im1hc2swXzIxOF80NjQiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjAiIHk9IjAiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+CjxyZWN0IHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0iI0Q5RDlEOSIvPgo8L21hc2s+CjxnIG1hc2s9InVybCgjbWFzazBfMjE4XzQ2NCkiPgo8cGF0aCBkPSJNOS4wMjUwNSA5LjAwMDJMMTAuNTI1IDEwLjUwMDJINy41MDAwNVYxMy41MDAySDkuNTAwMDVWMTMuMDAwMkgxMVYxNC4wMDAyQzExIDE0LjI4MzUgMTAuOTA0MiAxNC41MjEgMTAuNzEyNSAxNC43MTI3QzEwLjUyMDkgMTQuOTA0NCAxMC4yODM0IDE1LjAwMDIgMTAgMTUuMDAwMkg3LjAwMDA1QzYuNzE2NzIgMTUuMDAwMiA2LjQ3OTIyIDE0LjkwNDQgNi4yODc1NSAxNC43MTI3QzYuMDk1ODggMTQuNTIxIDYuMDAwMDUgMTQuMjgzNSA2LjAwMDA1IDE0LjAwMDJWMTAuMDAwMkM2LjAwMDA1IDkuNzE2ODYgNi4wOTU4OCA5LjQ3OTM2IDYuMjg3NTUgOS4yODc3QzYuNDc5MjIgOS4wOTYwMyA2LjcxNjcyIDkuMDAwMiA3LjAwMDA1IDkuMDAwMkg5LjAyNTA1Wk02Ljg3NTA1IDQuMDAwMkgxOUMxOS41NSA0LjAwMDIgMjAuMDIwOSA0LjE5NjAzIDIwLjQxMjUgNC41ODc3QzIwLjgwNDIgNC45NzkzNiAyMSA1LjQ1MDIgMjEgNi4wMDAyVjE4LjEyNTJMMTkgMTYuMTI1MlY2LjAwMDJIOC44NzUwNUw2Ljg3NTA1IDQuMDAwMlpNMTggMTMuMDAwMlYxNC4wMDAyQzE4IDE0LjE1MDIgMTcuOTcwOSAxNC4yOTYgMTcuOTEyNSAxNC40Mzc3QzE3Ljg1NDIgMTQuNTc5NCAxNy43NjY3IDE0LjY5MTkgMTcuNjUgMTQuNzc1MkwxNi4zNzUgMTMuNTAwMkgxNi41VjEzLjAwMDJIMThaTTE2LjUgMTEuMDAwMlYxMC41MDAySDE0LjVWMTEuNjI1MkwxMyAxMC4xMjUyVjEwLjAwMDJDMTMgOS43MTY4NiAxMy4wOTU5IDkuNDc5MzYgMTMuMjg3NSA5LjI4NzdDMTMuNDc5MiA5LjA5NjAzIDEzLjcxNjcgOS4wMDAyIDE0IDkuMDAwMkgxN0MxNy4yODM0IDkuMDAwMiAxNy41MjA5IDkuMDk2MDMgMTcuNzEyNSA5LjI4NzdDMTcuOTA0MiA5LjQ3OTM2IDE4IDkuNzE2ODYgMTggMTAuMDAwMlYxMS4wMDAySDE2LjVaTTQuMjAwMDUgNC4xNzUyTDYuMDI1MDUgNi4wMDAySDUuMDAwMDVWMTguMDAwMkgxNS4xNzVMMC42NzUwNDkgMy41MDAyTDIuMTAwMDUgMi4wNzUyTDIxLjkgMjEuODc1MkwyMC40NzUgMjMuMzAwMkwxNy4xNzUgMjAuMDAwMkg1LjAwMDA1QzQuNDUwMDUgMjAuMDAwMiAzLjk3OTIyIDE5LjgwNDQgMy41ODc1NSAxOS40MTI3QzMuMTk1ODggMTkuMDIxIDMuMDAwMDUgMTguNTUwMiAzLjAwMDA1IDE4LjAwMDJWNi4wMDAyQzMuMDAwMDUgNS41ODM1MyAzLjExMjU1IDUuMjEyNyAzLjMzNzU1IDQuODg3N0MzLjU2MjU1IDQuNTYyNyAzLjg1MDA1IDQuMzI1MiA0LjIwMDA1IDQuMTc1MloiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuOTIiLz4KPC9nPgo8L3N2Zz4K";
|
|
1415
1473
|
export declare const shareVideosIconSvg = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjNWY2MzY4Ij48cGF0aCBkPSJNNjgwLTgwcS01MCAwLTg1LTM1dC0zNS04NXEwLTYgMy0yOEwyODItMzkycS0xNiAxNS0zNyAyMy41dC00NSA4LjVxLTUwIDAtODUtMzV0LTM1LTg1cTAtNTAgMzUtODV0ODUtMzVxMjQgMCA0NSA4LjV0MzcgMjMuNWwyODEtMTY0cS0yLTctMi41LTEzLjVUNTYwLTc2MHEwLTUwIDM1LTg1dDg1LTM1cTUwIDAgODUgMzV0MzUgODVxMCA1MC0zNSA4NXQtODUgMzVxLTI0IDAtNDUtOC41VDU5OC02NzJMMzE3LTUwOHEyIDcgMi41IDEzLjV0LjUgMTQuNXEwIDgtLjUgMTQuNVQzMTctNDUybDI4MSAxNjRxMTYtMTUgMzctMjMuNXQ0NS04LjVxNTAgMCA4NSAzNXQzNSA4NXEwIDUwLTM1IDg1dC04NSAzNVptMC04MHExNyAwIDI4LjUtMTEuNVQ3MjAtMjAwcTAtMTctMTEuNS0yOC41VDY4MC0yNDBxLTE3IDAtMjguNSAxMS41VDY0MC0yMDBxMCAxNyAxMS41IDI4LjVUNjgwLTE2MFpNMjAwLTQ0MHExNyAwIDI4LjUtMTEuNVQyNDAtNDgwcTAtMTctMTEuNS0yOC41VDIwMC01MjBxLTE3IDAtMjguNSAxMS41VDE2MC00ODBxMCAxNyAxMS41IDI4LjVUMjAwLTQ0MFptNDgwLTI4MHExNyAwIDI4LjUtMTEuNVQ3MjAtNzYwcTAtMTctMTEuNS0yOC41VDY4MC04MDBxLTE3IDAtMjguNSAxMS41VDY0MC03NjBxMCAxNyAxMS41IDI4LjVUNjgwLTcyMFptMCA1MjBaTTIwMC00ODBabTQ4MC0yODBaIi8+PC9zdmc+";
|
|
1416
1474
|
export declare const linkIconSvg = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjNWY2MzY4Ij48cGF0aCBkPSJNNDQwLTI4MEgyODBxLTgzIDAtMTQxLjUtNTguNVQ4MC00ODBxMC04MyA1OC41LTE0MS41VDI4MC02ODBoMTYwdjgwSDI4MHEtNTAgMC04NSAzNXQtMzUgODVxMCA1MCAzNSA4NXQ4NSAzNWgxNjB2ODBaTTMyMC00NDB2LTgwaDMyMHY4MEgzMjBabTIwMCAxNjB2LTgwaDE2MHE1MCAwIDg1LTM1dDM1LTg1cTAtNTAtMzUtODV0LTg1LTM1SDUyMHYtODBoMTYwcTgzIDAgMTQxLjUgNTguNVQ4ODAtNDgwcTAgODMtNTguNSAxNDEuNVQ2ODAtMjgwSDUyMFoiLz48L3N2Zz4=";
|
|
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 = {
|
|
@@ -1736,23 +1795,23 @@ declare abstract class ApiServiceClass extends ApiServiceClass_base implements I
|
|
|
1736
1795
|
personalized?: BlazePersonalized;
|
|
1737
1796
|
}): Promise<{
|
|
1738
1797
|
result: IStory[];
|
|
1739
|
-
httpStatus?: number;
|
|
1798
|
+
httpStatus?: number | undefined;
|
|
1740
1799
|
data?: StoriesResponse | undefined;
|
|
1741
|
-
error?: Error;
|
|
1800
|
+
error?: Error | undefined;
|
|
1742
1801
|
}>;
|
|
1743
1802
|
getStoriesByLabels(options: GetByLabelsOptions & {
|
|
1744
1803
|
showLiveFirst?: boolean;
|
|
1745
1804
|
personalized?: BlazePersonalized;
|
|
1746
1805
|
}): Promise<{
|
|
1747
1806
|
result: IStory[];
|
|
1748
|
-
httpStatus?: number;
|
|
1807
|
+
httpStatus?: number | undefined;
|
|
1749
1808
|
data?: StoriesResponse | undefined;
|
|
1750
|
-
error?: Error;
|
|
1809
|
+
error?: Error | undefined;
|
|
1751
1810
|
}>;
|
|
1752
1811
|
getMomentByIds(options: GetByIdsOptions): Promise<{
|
|
1753
|
-
httpStatus?: number;
|
|
1812
|
+
httpStatus?: number | undefined;
|
|
1754
1813
|
data?: MomentsResponse | undefined;
|
|
1755
|
-
error?: Error;
|
|
1814
|
+
error?: Error | undefined;
|
|
1756
1815
|
}>;
|
|
1757
1816
|
getMomentsByLabels(options: GetByLabelsOptions): Promise<import("../interfaces").IHttpResponse<MomentsResponse>>;
|
|
1758
1817
|
updateMomentLikeStatus(options: {
|
|
@@ -1761,14 +1820,14 @@ declare abstract class ApiServiceClass extends ApiServiceClass_base implements I
|
|
|
1761
1820
|
}): Promise<void>;
|
|
1762
1821
|
getStaticStories(): Promise<IStory | null>;
|
|
1763
1822
|
getVideosByIds(options: GetByIdsOptions): Promise<{
|
|
1764
|
-
httpStatus?: number;
|
|
1823
|
+
httpStatus?: number | undefined;
|
|
1765
1824
|
data?: VideosResponse | undefined;
|
|
1766
|
-
error?: Error;
|
|
1825
|
+
error?: Error | undefined;
|
|
1767
1826
|
}>;
|
|
1768
1827
|
getVideosByLabels(options: GetByLabelsOptions): Promise<{
|
|
1769
|
-
httpStatus?: number;
|
|
1828
|
+
httpStatus?: number | undefined;
|
|
1770
1829
|
data?: VideosResponse | undefined;
|
|
1771
|
-
error?: Error;
|
|
1830
|
+
error?: Error | undefined;
|
|
1772
1831
|
}>;
|
|
1773
1832
|
updateVideosLikeStatus(options: {
|
|
1774
1833
|
videoId: string;
|
|
@@ -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
|
}
|
|
@@ -2709,35 +2765,30 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
2709
2765
|
spellcheck: boolean;
|
|
2710
2766
|
title: string;
|
|
2711
2767
|
translate: boolean;
|
|
2712
|
-
writingSuggestions: string;
|
|
2713
2768
|
attachInternals(): ElementInternals;
|
|
2714
2769
|
click(): void;
|
|
2715
2770
|
hidePopover(): void;
|
|
2716
2771
|
showPopover(): void;
|
|
2717
|
-
togglePopover(
|
|
2718
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2719
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2720
|
-
removeEventListener<
|
|
2721
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2772
|
+
togglePopover(force?: boolean | undefined): boolean;
|
|
2773
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
2774
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
2775
|
+
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
2776
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
2722
2777
|
readonly attributes: NamedNodeMap;
|
|
2723
|
-
|
|
2724
|
-
set classList(value: string);
|
|
2778
|
+
readonly classList: DOMTokenList;
|
|
2725
2779
|
className: string;
|
|
2726
2780
|
readonly clientHeight: number;
|
|
2727
2781
|
readonly clientLeft: number;
|
|
2728
2782
|
readonly clientTop: number;
|
|
2729
2783
|
readonly clientWidth: number;
|
|
2730
|
-
readonly currentCSSZoom: number;
|
|
2731
2784
|
id: string;
|
|
2732
|
-
innerHTML: string;
|
|
2733
2785
|
readonly localName: string;
|
|
2734
2786
|
readonly namespaceURI: string | null;
|
|
2735
2787
|
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
|
2736
2788
|
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
|
2737
2789
|
outerHTML: string;
|
|
2738
2790
|
readonly ownerDocument: Document;
|
|
2739
|
-
|
|
2740
|
-
set part(value: string);
|
|
2791
|
+
readonly part: DOMTokenList;
|
|
2741
2792
|
readonly prefix: string | null;
|
|
2742
2793
|
readonly scrollHeight: number;
|
|
2743
2794
|
scrollLeft: number;
|
|
@@ -2747,10 +2798,10 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
2747
2798
|
slot: string;
|
|
2748
2799
|
readonly tagName: string;
|
|
2749
2800
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
2750
|
-
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
|
2751
|
-
closest<
|
|
2752
|
-
closest<
|
|
2753
|
-
closest<
|
|
2801
|
+
checkVisibility(options?: CheckVisibilityOptions | undefined): boolean;
|
|
2802
|
+
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
|
|
2803
|
+
closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
|
|
2804
|
+
closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4] | null;
|
|
2754
2805
|
closest<E extends Element = Element>(selectors: string): E | null;
|
|
2755
2806
|
computedStyleMap(): StylePropertyMapReadOnly;
|
|
2756
2807
|
getAttribute(qualifiedName: string): string | null;
|
|
@@ -2761,44 +2812,42 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
2761
2812
|
getBoundingClientRect(): DOMRect;
|
|
2762
2813
|
getClientRects(): DOMRectList;
|
|
2763
2814
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
2764
|
-
getElementsByTagName<
|
|
2765
|
-
getElementsByTagName<
|
|
2766
|
-
getElementsByTagName<
|
|
2767
|
-
getElementsByTagName<
|
|
2815
|
+
getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
|
|
2816
|
+
getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
|
|
2817
|
+
getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
|
|
2818
|
+
getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
|
|
2768
2819
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
2769
2820
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
2770
2821
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
2771
2822
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
2772
2823
|
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
2773
|
-
getHTML(options?: GetHTMLOptions): string;
|
|
2774
2824
|
hasAttribute(qualifiedName: string): boolean;
|
|
2775
2825
|
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
|
2776
2826
|
hasAttributes(): boolean;
|
|
2777
2827
|
hasPointerCapture(pointerId: number): boolean;
|
|
2778
2828
|
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
2779
|
-
insertAdjacentHTML(position: InsertPosition,
|
|
2829
|
+
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
2780
2830
|
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
2781
2831
|
matches(selectors: string): boolean;
|
|
2782
2832
|
releasePointerCapture(pointerId: number): void;
|
|
2783
2833
|
removeAttribute(qualifiedName: string): void;
|
|
2784
2834
|
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
2785
2835
|
removeAttributeNode(attr: Attr): Attr;
|
|
2786
|
-
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
2787
|
-
requestPointerLock(
|
|
2788
|
-
scroll(options?: ScrollToOptions): void;
|
|
2836
|
+
requestFullscreen(options?: FullscreenOptions | undefined): Promise<void>;
|
|
2837
|
+
requestPointerLock(): void;
|
|
2838
|
+
scroll(options?: ScrollToOptions | undefined): void;
|
|
2789
2839
|
scroll(x: number, y: number): void;
|
|
2790
|
-
scrollBy(options?: ScrollToOptions): void;
|
|
2840
|
+
scrollBy(options?: ScrollToOptions | undefined): void;
|
|
2791
2841
|
scrollBy(x: number, y: number): void;
|
|
2792
|
-
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
2793
|
-
scrollTo(options?: ScrollToOptions): void;
|
|
2842
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions | undefined): void;
|
|
2843
|
+
scrollTo(options?: ScrollToOptions | undefined): void;
|
|
2794
2844
|
scrollTo(x: number, y: number): void;
|
|
2795
2845
|
setAttribute(qualifiedName: string, value: string): void;
|
|
2796
2846
|
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
2797
2847
|
setAttributeNode(attr: Attr): Attr | null;
|
|
2798
2848
|
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
2799
|
-
setHTMLUnsafe(html: string): void;
|
|
2800
2849
|
setPointerCapture(pointerId: number): void;
|
|
2801
|
-
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
2850
|
+
toggleAttribute(qualifiedName: string, force?: boolean | undefined): boolean;
|
|
2802
2851
|
webkitMatchesSelector(selectors: string): boolean;
|
|
2803
2852
|
readonly baseURI: string;
|
|
2804
2853
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
@@ -2814,20 +2863,20 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
2814
2863
|
readonly previousSibling: ChildNode | null;
|
|
2815
2864
|
textContent: string | null;
|
|
2816
2865
|
appendChild<T extends Node>(node: T): T;
|
|
2817
|
-
cloneNode(
|
|
2866
|
+
cloneNode(deep?: boolean | undefined): Node;
|
|
2818
2867
|
compareDocumentPosition(other: Node): number;
|
|
2819
2868
|
contains(other: Node | null): boolean;
|
|
2820
|
-
getRootNode(options?: GetRootNodeOptions): Node;
|
|
2869
|
+
getRootNode(options?: GetRootNodeOptions | undefined): Node;
|
|
2821
2870
|
hasChildNodes(): boolean;
|
|
2822
|
-
insertBefore<
|
|
2871
|
+
insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
|
|
2823
2872
|
isDefaultNamespace(namespace: string | null): boolean;
|
|
2824
2873
|
isEqualNode(otherNode: Node | null): boolean;
|
|
2825
2874
|
isSameNode(otherNode: Node | null): boolean;
|
|
2826
2875
|
lookupNamespaceURI(prefix: string | null): string | null;
|
|
2827
2876
|
lookupPrefix(namespace: string | null): string | null;
|
|
2828
2877
|
normalize(): void;
|
|
2829
|
-
removeChild<
|
|
2830
|
-
replaceChild<
|
|
2878
|
+
removeChild<T_2 extends Node>(child: T_2): T_2;
|
|
2879
|
+
replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
|
|
2831
2880
|
readonly ELEMENT_NODE: 1;
|
|
2832
2881
|
readonly ATTRIBUTE_NODE: 2;
|
|
2833
2882
|
readonly TEXT_NODE: 3;
|
|
@@ -2849,13 +2898,10 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
2849
2898
|
dispatchEvent(event: Event): boolean;
|
|
2850
2899
|
ariaAtomic: string | null;
|
|
2851
2900
|
ariaAutoComplete: string | null;
|
|
2852
|
-
ariaBrailleLabel: string | null;
|
|
2853
|
-
ariaBrailleRoleDescription: string | null;
|
|
2854
2901
|
ariaBusy: string | null;
|
|
2855
2902
|
ariaChecked: string | null;
|
|
2856
2903
|
ariaColCount: string | null;
|
|
2857
2904
|
ariaColIndex: string | null;
|
|
2858
|
-
ariaColIndexText: string | null;
|
|
2859
2905
|
ariaColSpan: string | null;
|
|
2860
2906
|
ariaCurrent: string | null;
|
|
2861
2907
|
ariaDescription: string | null;
|
|
@@ -2876,12 +2922,10 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
2876
2922
|
ariaPosInSet: string | null;
|
|
2877
2923
|
ariaPressed: string | null;
|
|
2878
2924
|
ariaReadOnly: string | null;
|
|
2879
|
-
ariaRelevant: string | null;
|
|
2880
2925
|
ariaRequired: string | null;
|
|
2881
2926
|
ariaRoleDescription: string | null;
|
|
2882
2927
|
ariaRowCount: string | null;
|
|
2883
2928
|
ariaRowIndex: string | null;
|
|
2884
|
-
ariaRowIndexText: string | null;
|
|
2885
2929
|
ariaRowSpan: string | null;
|
|
2886
2930
|
ariaSelected: string | null;
|
|
2887
2931
|
ariaSetSize: string | null;
|
|
@@ -2891,35 +2935,35 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
2891
2935
|
ariaValueNow: string | null;
|
|
2892
2936
|
ariaValueText: string | null;
|
|
2893
2937
|
role: string | null;
|
|
2894
|
-
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
|
2895
|
-
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
2896
|
-
after(...nodes: (
|
|
2897
|
-
before(...nodes: (
|
|
2938
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
|
|
2939
|
+
getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
|
|
2940
|
+
after(...nodes: (string | Node)[]): void;
|
|
2941
|
+
before(...nodes: (string | Node)[]): void;
|
|
2898
2942
|
remove(): void;
|
|
2899
|
-
replaceWith(...nodes: (
|
|
2943
|
+
replaceWith(...nodes: (string | Node)[]): void;
|
|
2944
|
+
innerHTML: string;
|
|
2900
2945
|
readonly nextElementSibling: Element | null;
|
|
2901
2946
|
readonly previousElementSibling: Element | null;
|
|
2902
2947
|
readonly childElementCount: number;
|
|
2903
2948
|
readonly children: HTMLCollection;
|
|
2904
2949
|
readonly firstElementChild: Element | null;
|
|
2905
2950
|
readonly lastElementChild: Element | null;
|
|
2906
|
-
append(...nodes: (
|
|
2907
|
-
prepend(...nodes: (
|
|
2908
|
-
querySelector<
|
|
2909
|
-
querySelector<
|
|
2910
|
-
querySelector<
|
|
2911
|
-
querySelector<
|
|
2912
|
-
querySelector<
|
|
2913
|
-
querySelectorAll<
|
|
2914
|
-
querySelectorAll<
|
|
2915
|
-
querySelectorAll<
|
|
2916
|
-
querySelectorAll<
|
|
2917
|
-
querySelectorAll<
|
|
2918
|
-
replaceChildren(...nodes: (
|
|
2951
|
+
append(...nodes: (string | Node)[]): void;
|
|
2952
|
+
prepend(...nodes: (string | Node)[]): void;
|
|
2953
|
+
querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9] | null;
|
|
2954
|
+
querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10] | null;
|
|
2955
|
+
querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11] | null;
|
|
2956
|
+
querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12] | null;
|
|
2957
|
+
querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
|
|
2958
|
+
querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
|
|
2959
|
+
querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
|
|
2960
|
+
querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
|
|
2961
|
+
querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
|
|
2962
|
+
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
2963
|
+
replaceChildren(...nodes: (string | Node)[]): void;
|
|
2919
2964
|
readonly assignedSlot: HTMLSlotElement | null;
|
|
2920
2965
|
readonly attributeStyleMap: StylePropertyMap;
|
|
2921
|
-
|
|
2922
|
-
set style(cssText: string);
|
|
2966
|
+
readonly style: CSSStyleDeclaration;
|
|
2923
2967
|
contentEditable: string;
|
|
2924
2968
|
enterKeyHint: string;
|
|
2925
2969
|
inputMode: string;
|
|
@@ -2939,9 +2983,7 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
2939
2983
|
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
2940
2984
|
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
2941
2985
|
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
2942
|
-
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
2943
2986
|
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
2944
|
-
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
2945
2987
|
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
2946
2988
|
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
2947
2989
|
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
@@ -2989,7 +3031,7 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
2989
3031
|
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
2990
3032
|
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
2991
3033
|
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
2992
|
-
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
|
3034
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
|
|
2993
3035
|
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
2994
3036
|
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
2995
3037
|
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
@@ -3024,10 +3066,10 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
3024
3066
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
3025
3067
|
autofocus: boolean;
|
|
3026
3068
|
readonly dataset: DOMStringMap;
|
|
3027
|
-
nonce?: string;
|
|
3069
|
+
nonce?: string | undefined;
|
|
3028
3070
|
tabIndex: number;
|
|
3029
3071
|
blur(): void;
|
|
3030
|
-
focus(options?: FocusOptions): void;
|
|
3072
|
+
focus(options?: FocusOptions | undefined): void;
|
|
3031
3073
|
};
|
|
3032
3074
|
} & TBase;
|
|
3033
3075
|
|
|
@@ -3058,6 +3100,13 @@ export type IconPropertiesType = {
|
|
|
3058
3100
|
padding?: string;
|
|
3059
3101
|
};
|
|
3060
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
|
+
|
|
3061
3110
|
export type ChipStatusType = 'statusReadStyle' | 'statusUnreadStyle' | 'statusLiveUnreadStyle' | 'statusLiveStyle';
|
|
3062
3111
|
|
|
3063
3112
|
export type ClientPlatform = 'Web';
|
|
@@ -3069,7 +3118,9 @@ export type ICaptionFile = {
|
|
|
3069
3118
|
};
|
|
3070
3119
|
export type IClosedCaption = {
|
|
3071
3120
|
files: ICaptionFile[];
|
|
3121
|
+
language: CcLanguageCode;
|
|
3072
3122
|
};
|
|
3123
|
+
export type ClosedCaptionsState = CcLanguageCode | 'Off' | 'Unknown' | 'Unavailable';
|
|
3073
3124
|
|
|
3074
3125
|
export type FontWeightType = 'normal' | 'bold' | 'bolder' | 'lighter' | 'inherit' | 'initial' | 'unset' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
3075
3126
|
export type TextTransformType = 'capitalize' | 'uppercase' | 'lowercase' | 'none';
|
|
@@ -3136,6 +3187,7 @@ export * from './ratio.type';
|
|
|
3136
3187
|
export * from './animation.type';
|
|
3137
3188
|
export * from './screen.type';
|
|
3138
3189
|
export * from './action-handler.type';
|
|
3190
|
+
export * from './cc-language.type';
|
|
3139
3191
|
|
|
3140
3192
|
export type EntitiesType = 'playerId' | 'teamId' | 'gameId' | 'roundId';
|
|
3141
3193
|
export type PerItemStyleOverrides = Partial<Record<EntitiesType, Array<{
|
|
@@ -3227,6 +3279,8 @@ export type WidgetType = 'Row' | 'Grid';
|
|
|
3227
3279
|
|
|
3228
3280
|
export declare function isImaAdInfo(ad: IAdInfo): ad is IImaAdInfo;
|
|
3229
3281
|
|
|
3282
|
+
export declare const convertCcLanguageToState: (data: IClosedCaption[] | undefined, language?: CcLanguageCode) => ClosedCaptionsState;
|
|
3283
|
+
|
|
3230
3284
|
interface ChipSizeOptions {
|
|
3231
3285
|
statusLiveStyle: IndicatorStyle;
|
|
3232
3286
|
statusLiveUnreadStyle: IndicatorStyle;
|
|
@@ -3279,6 +3333,7 @@ export declare function removeDuplicates(source: string[], checkAgainst: string[
|
|
|
3279
3333
|
export declare function updateStyle(styleToUpdate: any, path: string[], newValue: any): void;
|
|
3280
3334
|
export declare function getNestedValue(obj: any, path: string[]): any;
|
|
3281
3335
|
export declare function formatLikes(count: number): string;
|
|
3336
|
+
export declare function isElementInsideTarget(target: EventTarget | null, selectors: string[]): boolean;
|
|
3282
3337
|
|
|
3283
3338
|
export * from './chip.utils';
|
|
3284
3339
|
export * from './common.utils';
|
|
@@ -3290,6 +3345,8 @@ export * from './regex.utils';
|
|
|
3290
3345
|
export * from './stopwatch';
|
|
3291
3346
|
export * from './position.utils';
|
|
3292
3347
|
export * from './ad-info.utils';
|
|
3348
|
+
export * from './cc-language.utils';
|
|
3349
|
+
export * from './shared-event-target.utils';
|
|
3293
3350
|
|
|
3294
3351
|
export declare function getPersonalizedParamsForRequest(personalized?: BlazePersonalized): {
|
|
3295
3352
|
PersonalPlayers?: undefined;
|
|
@@ -3322,6 +3379,8 @@ export declare const RegexStoryHash: RegExp;
|
|
|
3322
3379
|
export declare const RegexMomentHash: RegExp;
|
|
3323
3380
|
export declare const RegexVideoHash: RegExp;
|
|
3324
3381
|
|
|
3382
|
+
export declare const SharedEventTarget: EventTarget;
|
|
3383
|
+
|
|
3325
3384
|
export declare class Stopwatch {
|
|
3326
3385
|
isRunning: boolean;
|
|
3327
3386
|
extraTime: number;
|
|
@@ -3412,8 +3471,7 @@ export declare const VIDEO_EVENTS: {
|
|
|
3412
3471
|
readonly CTA_DISMISS: "cta-dismiss";
|
|
3413
3472
|
readonly RESET_INACTIVITY_TIMER: "reset-inactivity-timer";
|
|
3414
3473
|
readonly CLOSE_PLAYER: "close-player";
|
|
3415
|
-
readonly
|
|
3416
|
-
readonly CLOSED_CAPTIONS_OFF: "closed-captions-off";
|
|
3474
|
+
readonly CLOSED_CAPTIONS_OPEN_MODAL: "closed-captions-open-modal";
|
|
3417
3475
|
readonly DISPLAY_HIDE_OVERLAY_FROM_CTA: "display-hide-overlay-from-cta";
|
|
3418
3476
|
readonly DISPLAY_SEEKED_TIME: "display-seeked-time";
|
|
3419
3477
|
readonly UPDATE_CLOSED_CAPTIONS_LOCATION: "update-closed-captions-location";
|
|
@@ -3576,7 +3634,6 @@ export declare class BlazeLongFormControlsOverlay extends HTMLElement {
|
|
|
3576
3634
|
private ctaTimeout;
|
|
3577
3635
|
private ctaVisiblity;
|
|
3578
3636
|
private currentMuteState;
|
|
3579
|
-
private currentClosedCaptionState;
|
|
3580
3637
|
videoSeekBar: BlazeVideoSeekBar;
|
|
3581
3638
|
videoTimer: BlazeTimer;
|
|
3582
3639
|
videoNavigationOverlay: BlazeVideoNavigationOverlay;
|
|
@@ -3729,6 +3786,7 @@ export declare class BlazeWidgetVideoModal extends BlazeWidgetModal {
|
|
|
3729
3786
|
onResizeEventDelay(): void;
|
|
3730
3787
|
}
|
|
3731
3788
|
|
|
3789
|
+
/// <reference types="hammerjs" />
|
|
3732
3790
|
export declare class BlazeWidgetVideoPlayer extends WidgetAbstractPlayer implements IVideoPlayerController {
|
|
3733
3791
|
private boundOnNavigationPrev;
|
|
3734
3792
|
private boundOnNavigationNext;
|
|
@@ -3787,6 +3845,7 @@ export declare class BlazeVideoElement extends BlazeWidgetVideoBase {
|
|
|
3787
3845
|
private posterOverlayElement;
|
|
3788
3846
|
videoOverlay: BlazeLongFormControlsOverlay;
|
|
3789
3847
|
shareModal: BlazeWidgetShareModal;
|
|
3848
|
+
closedCaptionsModal: BlazeWidgetClosedCaptionsModal | undefined;
|
|
3790
3849
|
private widgetVastAd;
|
|
3791
3850
|
private adPercentageShownPlaces;
|
|
3792
3851
|
private lastSavedTime;
|
|
@@ -3800,6 +3859,7 @@ export declare class BlazeVideoElement extends BlazeWidgetVideoBase {
|
|
|
3800
3859
|
isActionBlocked: boolean;
|
|
3801
3860
|
private isInitializing;
|
|
3802
3861
|
private isLoaded;
|
|
3862
|
+
private isPausedManually;
|
|
3803
3863
|
private lastMarkedVideoIdAsViewed;
|
|
3804
3864
|
private videoSessionId;
|
|
3805
3865
|
private aspectRatio;
|
|
@@ -3824,6 +3884,7 @@ export declare class BlazeVideoElement extends BlazeWidgetVideoBase {
|
|
|
3824
3884
|
private boundHandleOverlayEvents;
|
|
3825
3885
|
private boundHandleAdStarted;
|
|
3826
3886
|
private boundHandleAdEnded;
|
|
3887
|
+
private boundHandleLanguageChange;
|
|
3827
3888
|
constructor();
|
|
3828
3889
|
connectedCallback(): void;
|
|
3829
3890
|
disconnectedCallback(): void;
|
|
@@ -3835,7 +3896,7 @@ export declare class BlazeVideoElement extends BlazeWidgetVideoBase {
|
|
|
3835
3896
|
setIsPlaying(isPlaying: boolean): void;
|
|
3836
3897
|
load(): Promise<void>;
|
|
3837
3898
|
private setupClosedCaptions;
|
|
3838
|
-
|
|
3899
|
+
setClosedCaptions(files: ICaptionFile[]): Promise<void>;
|
|
3839
3900
|
private setCta;
|
|
3840
3901
|
private setTitle;
|
|
3841
3902
|
private setLiked;
|
|
@@ -3847,6 +3908,8 @@ export declare class BlazeVideoElement extends BlazeWidgetVideoBase {
|
|
|
3847
3908
|
private setupVideoElement;
|
|
3848
3909
|
private setupOverlay;
|
|
3849
3910
|
private setupShareModal;
|
|
3911
|
+
configureClosedCaptionsModal(): void;
|
|
3912
|
+
toggleClosedCaptions(language?: CcLanguageCode): void;
|
|
3850
3913
|
private setupEventListeners;
|
|
3851
3914
|
destroy(): void;
|
|
3852
3915
|
private startOverlayAutoHideTimer;
|
|
@@ -3877,6 +3940,7 @@ export declare class BlazeVideoElement extends BlazeWidgetVideoBase {
|
|
|
3877
3940
|
updateWidgetStatusReadUnread(): void;
|
|
3878
3941
|
private handleVideoTimeUpdate;
|
|
3879
3942
|
private saveCurrentTime;
|
|
3943
|
+
private handleLanguageChange;
|
|
3880
3944
|
private handleAdStarted;
|
|
3881
3945
|
private handleAdEnded;
|
|
3882
3946
|
static get observedAttributes(): string[];
|
|
@@ -4007,6 +4071,7 @@ export * from './moment/widget-moment-seek-bar';
|
|
|
4007
4071
|
export * from './widget-cta-modal';
|
|
4008
4072
|
export * from './widget-captions';
|
|
4009
4073
|
export * from '../video/core/video';
|
|
4074
|
+
export * from './widget-cc-modal';
|
|
4010
4075
|
|
|
4011
4076
|
type Position = {
|
|
4012
4077
|
top?: string;
|
|
@@ -4042,6 +4107,43 @@ export declare class BlazeWidgetCaptions extends HTMLElement {
|
|
|
4042
4107
|
setAbsolutePosition(position: Position): void;
|
|
4043
4108
|
}
|
|
4044
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
|
+
|
|
4045
4147
|
export declare abstract class BlazeWidgetContent extends HTMLElement {
|
|
4046
4148
|
container: HTMLElement;
|
|
4047
4149
|
pageIndex: number;
|
|
@@ -4054,10 +4156,12 @@ export declare abstract class BlazeWidgetContent extends HTMLElement {
|
|
|
4054
4156
|
isActive: boolean;
|
|
4055
4157
|
isResumeOnFocusExecuted: boolean;
|
|
4056
4158
|
isNavigationPending: boolean;
|
|
4159
|
+
isPausedManually: boolean;
|
|
4057
4160
|
resumeAfterfocus: boolean;
|
|
4058
4161
|
boundOnFocusEvent: () => void;
|
|
4059
4162
|
boundOnBlurEvent: () => void;
|
|
4060
4163
|
boundOnVisibilityChangeEvent: () => void;
|
|
4164
|
+
boundOnLanguageChangeEvent: (event: Event) => void;
|
|
4061
4165
|
widgetParentItem: BlazeWidgetItem;
|
|
4062
4166
|
sessionId: string;
|
|
4063
4167
|
refContentModal?: BlazeWidgetStoryModal | BlazeWidgetMomentModal | BlazeWidgetVideoModal;
|
|
@@ -4238,6 +4342,7 @@ export declare class BlazeWidgetItem extends BaseWidget {
|
|
|
4238
4342
|
render(): void;
|
|
4239
4343
|
}
|
|
4240
4344
|
|
|
4345
|
+
/// <reference types="node" />
|
|
4241
4346
|
export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements Observable, IWidgetView {
|
|
4242
4347
|
storysModal: BlazeWidgetStoryModal | undefined;
|
|
4243
4348
|
momentsModal: BlazeWidgetMomentModal | undefined;
|
|
@@ -4601,6 +4706,7 @@ export declare class BlazeWidgetVideo extends BlazeWidgetVideoBase {
|
|
|
4601
4706
|
shouldShowImaAd: boolean;
|
|
4602
4707
|
isCurrentlyTryingToRunImaAd: boolean;
|
|
4603
4708
|
hasPoster: boolean;
|
|
4709
|
+
boundLanguageChangeEvent: (event: Event) => void;
|
|
4604
4710
|
static get observedAttributes(): string[];
|
|
4605
4711
|
constructor(contentParent: BlazeWidgetStory | BlazeWidgetMoment);
|
|
4606
4712
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
@@ -4653,6 +4759,7 @@ export declare class BlazeWidgetVideo extends BlazeWidgetVideoBase {
|
|
|
4653
4759
|
onContentResumeRequested(): void;
|
|
4654
4760
|
removeAdLoader(): void;
|
|
4655
4761
|
loadInteraction(): void;
|
|
4762
|
+
onLanguageChange(event: Event): Promise<void>;
|
|
4656
4763
|
handleInteractionEvent(event: CustomEvent<InteractionAnalyticCustomEvent>): void;
|
|
4657
4764
|
}
|
|
4658
4765
|
|
|
@@ -4891,6 +4998,7 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
|
|
|
4891
4998
|
modal: BlazeWidgetMomentModal;
|
|
4892
4999
|
seekBar: BlazeWidgetMomentSeekBar;
|
|
4893
5000
|
shareModal: BlazeWidgetShareModal | undefined;
|
|
5001
|
+
closedCaptionsModal: BlazeWidgetClosedCaptionsModal | undefined;
|
|
4894
5002
|
data: IMoment;
|
|
4895
5003
|
contentType: string;
|
|
4896
5004
|
momentIndex: number;
|
|
@@ -4960,6 +5068,7 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
|
|
|
4960
5068
|
appendShadowElements(): void;
|
|
4961
5069
|
createButtonElement(options: ButtonElementOptions, button: BlazeButton): void;
|
|
4962
5070
|
configureShareModal(): void;
|
|
5071
|
+
configureClosedCaptionsModal(): void;
|
|
4963
5072
|
configureButtons(): Promise<void>;
|
|
4964
5073
|
appendButtonsContainer(): void;
|
|
4965
5074
|
handleMobileSpecificFeatures(): void;
|
|
@@ -4969,6 +5078,7 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
|
|
|
4969
5078
|
createPlayPauseButton(): void;
|
|
4970
5079
|
handlePlayPauseButtonClick(): void;
|
|
4971
5080
|
setModal(modal: BlazeWidgetMomentModal): void;
|
|
5081
|
+
onLanguageChange(e: Event): void;
|
|
4972
5082
|
onVisibilityChange(): void;
|
|
4973
5083
|
onBlur(): void;
|
|
4974
5084
|
onFocus(): void;
|
|
@@ -4978,13 +5088,12 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
|
|
|
4978
5088
|
onMuteUnmuteChange(): void;
|
|
4979
5089
|
updatePlayerButtonIcons(): void;
|
|
4980
5090
|
private handleOnClosedCaptionClick;
|
|
4981
|
-
|
|
5091
|
+
toggleClosedCaptions(language?: CcLanguageCode): void;
|
|
4982
5092
|
handleOnShareClick(): Promise<void>;
|
|
4983
5093
|
loadMoments(): Promise<void>;
|
|
4984
5094
|
load(loadingType?: 'direct' | 'cache'): Promise<void>;
|
|
4985
5095
|
unload(): Promise<void>;
|
|
4986
5096
|
playToggle(): void;
|
|
4987
|
-
private updateCaptions;
|
|
4988
5097
|
handleOnMuteUnmuteToggle(): void;
|
|
4989
5098
|
setData(data: IMoment | null): void;
|
|
4990
5099
|
updateData(options: {
|
|
@@ -5079,6 +5188,7 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
|
|
|
5079
5188
|
pages: BlazeWidgetVideoBase[];
|
|
5080
5189
|
data: IStory;
|
|
5081
5190
|
shareModal: BlazeWidgetShareModal | undefined;
|
|
5191
|
+
closedCaptionsModal: BlazeWidgetClosedCaptionsModal | undefined;
|
|
5082
5192
|
isStoryLoadCompletedTriggered: boolean;
|
|
5083
5193
|
isStoryActive: boolean;
|
|
5084
5194
|
isResumeOnFocusExecuted: boolean;
|
|
@@ -5141,6 +5251,7 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
|
|
|
5141
5251
|
private createResumeAfterBlurButton;
|
|
5142
5252
|
private applyIconStyle;
|
|
5143
5253
|
onCustomActionButtonClick(e: Event, handlerOptions: CustomActionButtonOptions): void;
|
|
5254
|
+
onLanguageChange(e: Event): void;
|
|
5144
5255
|
onShareClick(): Promise<void>;
|
|
5145
5256
|
private onClosedCaptionClick;
|
|
5146
5257
|
private updateCtaButtonLayout;
|
|
@@ -5187,6 +5298,8 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
|
|
|
5187
5298
|
private addOrRemoveEventListeners;
|
|
5188
5299
|
connectedCallback(): void;
|
|
5189
5300
|
onShareModalClose(): void;
|
|
5301
|
+
configureClosedCaptionsModal(): void;
|
|
5302
|
+
toggleClosedCaptions(language?: CcLanguageCode): void;
|
|
5190
5303
|
updateStoryProgress(): void;
|
|
5191
5304
|
onShareModalButtonClick(shareButton: BlazeShareButton): Promise<void>;
|
|
5192
5305
|
onVisibilityChange(): void;
|