@wscsports/blaze-web-sdk 0.8.0 → 0.10.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/README.md +1 -8
- package/package.json +1 -1
- package/publish/index.d.ts +204 -87
- package/publish/index.js +1 -1
package/publish/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export declare function playContent(contentType: ContentType, options: PlayConte
|
|
|
29
29
|
export declare function setAbTestParams(abTestParams: BlazeAbTestType): void;
|
|
30
30
|
export declare function getAppContextManager(): Record<string, any>;
|
|
31
31
|
export declare const pushConsentEvent: (action: string, body: Record<string, any>) => void;
|
|
32
|
+
export declare const isInitialized: () => boolean;
|
|
32
33
|
declare const _default: {
|
|
33
34
|
Initialize: typeof Initialize;
|
|
34
35
|
WidgetGridView: typeof WidgetGridView;
|
|
@@ -52,6 +53,7 @@ declare const _default: {
|
|
|
52
53
|
setAbTestParams: typeof setAbTestParams;
|
|
53
54
|
getAppContextManager: typeof getAppContextManager;
|
|
54
55
|
pushConsentEvent: (action: string, body: Record<string, any>) => void;
|
|
56
|
+
isInitialized: () => boolean;
|
|
55
57
|
};
|
|
56
58
|
export default _default;
|
|
57
59
|
|
|
@@ -618,6 +620,7 @@ export * from './image';
|
|
|
618
620
|
export * from './loader';
|
|
619
621
|
export * from './skeleton';
|
|
620
622
|
export * from './typography';
|
|
623
|
+
export * from './player-menu';
|
|
621
624
|
|
|
622
625
|
export declare class BlazeLoader extends HTMLElement {
|
|
623
626
|
constructor();
|
|
@@ -628,6 +631,48 @@ export declare class BlazeLoader extends HTMLElement {
|
|
|
628
631
|
private updateLoaderColor;
|
|
629
632
|
}
|
|
630
633
|
|
|
634
|
+
export interface IPlayerMenuOptions {
|
|
635
|
+
title: string;
|
|
636
|
+
component: BaseWidget;
|
|
637
|
+
height?: string;
|
|
638
|
+
width?: string;
|
|
639
|
+
}
|
|
640
|
+
export declare const PLAYER_MENU_EVENTS: {
|
|
641
|
+
readonly OPEN: "player-menu-open";
|
|
642
|
+
readonly CLOSE: "player-menu-close";
|
|
643
|
+
readonly EXPAND: "player-menu-expand";
|
|
644
|
+
readonly COLLAPSE: "player-menu-collapse";
|
|
645
|
+
};
|
|
646
|
+
export declare class BlazePlayerMenu extends BaseWidget {
|
|
647
|
+
private menuOptions;
|
|
648
|
+
private menuComponent;
|
|
649
|
+
private header;
|
|
650
|
+
private expander;
|
|
651
|
+
private backdropContainer;
|
|
652
|
+
private titleElement;
|
|
653
|
+
private closeButton;
|
|
654
|
+
menuContainer: BlazeDiv;
|
|
655
|
+
private detachTouchEventListeners;
|
|
656
|
+
constructor();
|
|
657
|
+
connectedCallback(): void;
|
|
658
|
+
disconnectedCallback(): void;
|
|
659
|
+
setAttribute(qualifiedName: string, value: string): void;
|
|
660
|
+
private setupEventListeners;
|
|
661
|
+
private detachEventListeners;
|
|
662
|
+
init(options: IPlayerMenuOptions): void;
|
|
663
|
+
private buildHeader;
|
|
664
|
+
private buildBackdrop;
|
|
665
|
+
private buildModal;
|
|
666
|
+
open(): void;
|
|
667
|
+
close(): void;
|
|
668
|
+
expand(): void;
|
|
669
|
+
collapse(): void;
|
|
670
|
+
private onBackdropClick;
|
|
671
|
+
private onOpenChange;
|
|
672
|
+
private onExpandedChange;
|
|
673
|
+
private animateMenu;
|
|
674
|
+
}
|
|
675
|
+
|
|
631
676
|
export declare class BlazeWidgetItemSkeleton extends BaseWidget {
|
|
632
677
|
width: number;
|
|
633
678
|
thumbnailHeight: number | string;
|
|
@@ -880,6 +925,14 @@ type ExposedFields = {
|
|
|
880
925
|
};
|
|
881
926
|
export declare const exposedFieldsByAction: ExposedFields;
|
|
882
927
|
|
|
928
|
+
export declare const CcSupportedLanguages: CcLanguageType[];
|
|
929
|
+
|
|
930
|
+
export declare const LOCAL_STORAGE_KEY_RECENT_LANGUAGES: string;
|
|
931
|
+
export declare const LOCAL_STORAGE_KEY_LAST_SELECTED: string;
|
|
932
|
+
export declare const CLOSED_CAPTIONS_LANGUAGE_CHANGE = "cc-language-change";
|
|
933
|
+
|
|
934
|
+
export declare const WSC_STORAGE_PREFIX: string;
|
|
935
|
+
|
|
883
936
|
export declare const TRANSPARENT = "transparent";
|
|
884
937
|
|
|
885
938
|
export declare const TABLET_PADDING_BOTTOM = "15px";
|
|
@@ -898,6 +951,9 @@ export * from './iso-country-codes.constants';
|
|
|
898
951
|
export * from './style.constants';
|
|
899
952
|
export * from './time.constants';
|
|
900
953
|
export * from './css.constants';
|
|
954
|
+
export * from './cc-supported-languages.constants';
|
|
955
|
+
export * from './closed-captions.constants';
|
|
956
|
+
export * from './common.constants';
|
|
901
957
|
|
|
902
958
|
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
959
|
|
|
@@ -914,6 +970,8 @@ export declare const ONE_SECOND = 1000;
|
|
|
914
970
|
export declare const ONE_AND_HALF_SECOND = 1500;
|
|
915
971
|
export declare const FAIL_TO_LOAD_TIMEOUT_MS = 3000;
|
|
916
972
|
|
|
973
|
+
export * from './common.styles';
|
|
974
|
+
|
|
917
975
|
export declare const DB_NAMES: {
|
|
918
976
|
readonly MOMENTS: "moments";
|
|
919
977
|
readonly INTERACTIONS: "interactions";
|
|
@@ -1214,9 +1272,7 @@ export declare enum ButtonState {
|
|
|
1214
1272
|
Play = 0,
|
|
1215
1273
|
Pause = 1,
|
|
1216
1274
|
Mute = 2,
|
|
1217
|
-
Unmute = 3
|
|
1218
|
-
CC_ON = 4,
|
|
1219
|
-
CC_OFF = 5
|
|
1275
|
+
Unmute = 3
|
|
1220
1276
|
}
|
|
1221
1277
|
|
|
1222
1278
|
export declare enum ErrorCode {
|
|
@@ -1305,6 +1361,7 @@ export interface WidgetsTagNameMap {
|
|
|
1305
1361
|
'blaze-widget-moment-modal': BlazeWidgetMomentModal;
|
|
1306
1362
|
'blaze-widget-moment-seek-bar': BlazeWidgetMomentSeekBar;
|
|
1307
1363
|
'blaze-widget-share-modal': BlazeWidgetShareModal;
|
|
1364
|
+
'blaze-widget-cc-modal': BlazeWidgetClosedCaptionsModal;
|
|
1308
1365
|
'blaze-widget-cta-modal': BlazeWidgetCtaModal;
|
|
1309
1366
|
'blaze-widget-video': BlazeWidgetVideo;
|
|
1310
1367
|
'blaze-widget-interaction': BlazeWidgetInteraction;
|
|
@@ -1321,6 +1378,7 @@ export interface WidgetsTagNameMap {
|
|
|
1321
1378
|
'blaze-image': BlazeImage;
|
|
1322
1379
|
'blaze-alert': BlazeAlert;
|
|
1323
1380
|
'blaze-modal': BlazeDrawer;
|
|
1381
|
+
'blaze-player-menu': BlazePlayerMenu;
|
|
1324
1382
|
'blaze-div': BlazeDiv;
|
|
1325
1383
|
'blaze-share-button': BlazeShareButton;
|
|
1326
1384
|
'blaze-button': BlazeButton;
|
|
@@ -1345,6 +1403,7 @@ interface WidgetsTagNameOptionsMap {
|
|
|
1345
1403
|
'blaze-widget-moment-modal': {};
|
|
1346
1404
|
'blaze-widget-moment-seek-bar': {};
|
|
1347
1405
|
'blaze-widget-share-modal': {};
|
|
1406
|
+
'blaze-widget-cc-modal': {};
|
|
1348
1407
|
'blaze-widget-cta-modal': {};
|
|
1349
1408
|
'blaze-widget-image': {};
|
|
1350
1409
|
'blaze-widget-video': {};
|
|
@@ -1364,6 +1423,7 @@ interface WidgetsTagNameOptionsMap {
|
|
|
1364
1423
|
'blaze-image': {};
|
|
1365
1424
|
'blaze-alert': {};
|
|
1366
1425
|
'blaze-modal': {};
|
|
1426
|
+
'blaze-player-menu': {};
|
|
1367
1427
|
'blaze-div': {};
|
|
1368
1428
|
'blaze-share-button': {};
|
|
1369
1429
|
'blaze-button': {};
|
|
@@ -1414,6 +1474,7 @@ export declare const closedCaptionsOnIconSvg = "data:image/svg+xml;base64,PHN2Zy
|
|
|
1414
1474
|
export declare const closedCaptionsOffIconSvg = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4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Zz4KPC9zdmc+Cg==";
|
|
1417
1478
|
|
|
1418
1479
|
type CustomNativeTargeting = Record<string, string | string[]>;
|
|
1419
1480
|
type CustomNativeArgs = {
|
|
@@ -1736,23 +1797,23 @@ declare abstract class ApiServiceClass extends ApiServiceClass_base implements I
|
|
|
1736
1797
|
personalized?: BlazePersonalized;
|
|
1737
1798
|
}): Promise<{
|
|
1738
1799
|
result: IStory[];
|
|
1739
|
-
httpStatus?: number;
|
|
1800
|
+
httpStatus?: number | undefined;
|
|
1740
1801
|
data?: StoriesResponse | undefined;
|
|
1741
|
-
error?: Error;
|
|
1802
|
+
error?: Error | undefined;
|
|
1742
1803
|
}>;
|
|
1743
1804
|
getStoriesByLabels(options: GetByLabelsOptions & {
|
|
1744
1805
|
showLiveFirst?: boolean;
|
|
1745
1806
|
personalized?: BlazePersonalized;
|
|
1746
1807
|
}): Promise<{
|
|
1747
1808
|
result: IStory[];
|
|
1748
|
-
httpStatus?: number;
|
|
1809
|
+
httpStatus?: number | undefined;
|
|
1749
1810
|
data?: StoriesResponse | undefined;
|
|
1750
|
-
error?: Error;
|
|
1811
|
+
error?: Error | undefined;
|
|
1751
1812
|
}>;
|
|
1752
1813
|
getMomentByIds(options: GetByIdsOptions): Promise<{
|
|
1753
|
-
httpStatus?: number;
|
|
1814
|
+
httpStatus?: number | undefined;
|
|
1754
1815
|
data?: MomentsResponse | undefined;
|
|
1755
|
-
error?: Error;
|
|
1816
|
+
error?: Error | undefined;
|
|
1756
1817
|
}>;
|
|
1757
1818
|
getMomentsByLabels(options: GetByLabelsOptions): Promise<import("../interfaces").IHttpResponse<MomentsResponse>>;
|
|
1758
1819
|
updateMomentLikeStatus(options: {
|
|
@@ -1761,14 +1822,14 @@ declare abstract class ApiServiceClass extends ApiServiceClass_base implements I
|
|
|
1761
1822
|
}): Promise<void>;
|
|
1762
1823
|
getStaticStories(): Promise<IStory | null>;
|
|
1763
1824
|
getVideosByIds(options: GetByIdsOptions): Promise<{
|
|
1764
|
-
httpStatus?: number;
|
|
1825
|
+
httpStatus?: number | undefined;
|
|
1765
1826
|
data?: VideosResponse | undefined;
|
|
1766
|
-
error?: Error;
|
|
1827
|
+
error?: Error | undefined;
|
|
1767
1828
|
}>;
|
|
1768
1829
|
getVideosByLabels(options: GetByLabelsOptions): Promise<{
|
|
1769
|
-
httpStatus?: number;
|
|
1830
|
+
httpStatus?: number | undefined;
|
|
1770
1831
|
data?: VideosResponse | undefined;
|
|
1771
|
-
error?: Error;
|
|
1832
|
+
error?: Error | undefined;
|
|
1772
1833
|
}>;
|
|
1773
1834
|
updateVideosLikeStatus(options: {
|
|
1774
1835
|
videoId: string;
|
|
@@ -2170,7 +2231,6 @@ declare abstract class VideoPlayerServiceClass extends VideoPlayerServiceClass_b
|
|
|
2170
2231
|
private _isNavigating;
|
|
2171
2232
|
private _isModalOpen;
|
|
2172
2233
|
private _isSeekBarDragging;
|
|
2173
|
-
private _isClosedCaptioningEnabled;
|
|
2174
2234
|
private _playReference;
|
|
2175
2235
|
private _currentPlayedContentId;
|
|
2176
2236
|
private _playerLayoutDisplay;
|
|
@@ -2192,8 +2252,6 @@ declare abstract class VideoPlayerServiceClass extends VideoPlayerServiceClass_b
|
|
|
2192
2252
|
set isModalOpen(value: boolean);
|
|
2193
2253
|
get isSeekBarDragging(): boolean;
|
|
2194
2254
|
set isSeekBarDragging(value: boolean);
|
|
2195
|
-
get isClosedCaptionsEnabled(): boolean;
|
|
2196
|
-
set isClosedCaptionsEnabled(value: boolean);
|
|
2197
2255
|
get playerLayout(): PlayerLayoutDisplay;
|
|
2198
2256
|
set playerLayout(value: PlayerLayoutDisplay);
|
|
2199
2257
|
}
|
|
@@ -2709,35 +2767,30 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
2709
2767
|
spellcheck: boolean;
|
|
2710
2768
|
title: string;
|
|
2711
2769
|
translate: boolean;
|
|
2712
|
-
writingSuggestions: string;
|
|
2713
2770
|
attachInternals(): ElementInternals;
|
|
2714
2771
|
click(): void;
|
|
2715
2772
|
hidePopover(): void;
|
|
2716
2773
|
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;
|
|
2774
|
+
togglePopover(force?: boolean | undefined): boolean;
|
|
2775
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
2776
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
2777
|
+
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
2778
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
2722
2779
|
readonly attributes: NamedNodeMap;
|
|
2723
|
-
|
|
2724
|
-
set classList(value: string);
|
|
2780
|
+
readonly classList: DOMTokenList;
|
|
2725
2781
|
className: string;
|
|
2726
2782
|
readonly clientHeight: number;
|
|
2727
2783
|
readonly clientLeft: number;
|
|
2728
2784
|
readonly clientTop: number;
|
|
2729
2785
|
readonly clientWidth: number;
|
|
2730
|
-
readonly currentCSSZoom: number;
|
|
2731
2786
|
id: string;
|
|
2732
|
-
innerHTML: string;
|
|
2733
2787
|
readonly localName: string;
|
|
2734
2788
|
readonly namespaceURI: string | null;
|
|
2735
2789
|
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
|
2736
2790
|
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
|
2737
2791
|
outerHTML: string;
|
|
2738
2792
|
readonly ownerDocument: Document;
|
|
2739
|
-
|
|
2740
|
-
set part(value: string);
|
|
2793
|
+
readonly part: DOMTokenList;
|
|
2741
2794
|
readonly prefix: string | null;
|
|
2742
2795
|
readonly scrollHeight: number;
|
|
2743
2796
|
scrollLeft: number;
|
|
@@ -2747,10 +2800,10 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
2747
2800
|
slot: string;
|
|
2748
2801
|
readonly tagName: string;
|
|
2749
2802
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
2750
|
-
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
|
2751
|
-
closest<
|
|
2752
|
-
closest<
|
|
2753
|
-
closest<
|
|
2803
|
+
checkVisibility(options?: CheckVisibilityOptions | undefined): boolean;
|
|
2804
|
+
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
|
|
2805
|
+
closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
|
|
2806
|
+
closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4] | null;
|
|
2754
2807
|
closest<E extends Element = Element>(selectors: string): E | null;
|
|
2755
2808
|
computedStyleMap(): StylePropertyMapReadOnly;
|
|
2756
2809
|
getAttribute(qualifiedName: string): string | null;
|
|
@@ -2761,44 +2814,42 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
2761
2814
|
getBoundingClientRect(): DOMRect;
|
|
2762
2815
|
getClientRects(): DOMRectList;
|
|
2763
2816
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
2764
|
-
getElementsByTagName<
|
|
2765
|
-
getElementsByTagName<
|
|
2766
|
-
getElementsByTagName<
|
|
2767
|
-
getElementsByTagName<
|
|
2817
|
+
getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
|
|
2818
|
+
getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
|
|
2819
|
+
getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
|
|
2820
|
+
getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
|
|
2768
2821
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
2769
2822
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
2770
2823
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
2771
2824
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
2772
2825
|
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
2773
|
-
getHTML(options?: GetHTMLOptions): string;
|
|
2774
2826
|
hasAttribute(qualifiedName: string): boolean;
|
|
2775
2827
|
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
|
2776
2828
|
hasAttributes(): boolean;
|
|
2777
2829
|
hasPointerCapture(pointerId: number): boolean;
|
|
2778
2830
|
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
2779
|
-
insertAdjacentHTML(position: InsertPosition,
|
|
2831
|
+
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
2780
2832
|
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
2781
2833
|
matches(selectors: string): boolean;
|
|
2782
2834
|
releasePointerCapture(pointerId: number): void;
|
|
2783
2835
|
removeAttribute(qualifiedName: string): void;
|
|
2784
2836
|
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
2785
2837
|
removeAttributeNode(attr: Attr): Attr;
|
|
2786
|
-
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
2787
|
-
requestPointerLock(
|
|
2788
|
-
scroll(options?: ScrollToOptions): void;
|
|
2838
|
+
requestFullscreen(options?: FullscreenOptions | undefined): Promise<void>;
|
|
2839
|
+
requestPointerLock(): void;
|
|
2840
|
+
scroll(options?: ScrollToOptions | undefined): void;
|
|
2789
2841
|
scroll(x: number, y: number): void;
|
|
2790
|
-
scrollBy(options?: ScrollToOptions): void;
|
|
2842
|
+
scrollBy(options?: ScrollToOptions | undefined): void;
|
|
2791
2843
|
scrollBy(x: number, y: number): void;
|
|
2792
|
-
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
2793
|
-
scrollTo(options?: ScrollToOptions): void;
|
|
2844
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions | undefined): void;
|
|
2845
|
+
scrollTo(options?: ScrollToOptions | undefined): void;
|
|
2794
2846
|
scrollTo(x: number, y: number): void;
|
|
2795
2847
|
setAttribute(qualifiedName: string, value: string): void;
|
|
2796
2848
|
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
2797
2849
|
setAttributeNode(attr: Attr): Attr | null;
|
|
2798
2850
|
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
2799
|
-
setHTMLUnsafe(html: string): void;
|
|
2800
2851
|
setPointerCapture(pointerId: number): void;
|
|
2801
|
-
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
2852
|
+
toggleAttribute(qualifiedName: string, force?: boolean | undefined): boolean;
|
|
2802
2853
|
webkitMatchesSelector(selectors: string): boolean;
|
|
2803
2854
|
readonly baseURI: string;
|
|
2804
2855
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
@@ -2814,20 +2865,20 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
2814
2865
|
readonly previousSibling: ChildNode | null;
|
|
2815
2866
|
textContent: string | null;
|
|
2816
2867
|
appendChild<T extends Node>(node: T): T;
|
|
2817
|
-
cloneNode(
|
|
2868
|
+
cloneNode(deep?: boolean | undefined): Node;
|
|
2818
2869
|
compareDocumentPosition(other: Node): number;
|
|
2819
2870
|
contains(other: Node | null): boolean;
|
|
2820
|
-
getRootNode(options?: GetRootNodeOptions): Node;
|
|
2871
|
+
getRootNode(options?: GetRootNodeOptions | undefined): Node;
|
|
2821
2872
|
hasChildNodes(): boolean;
|
|
2822
|
-
insertBefore<
|
|
2873
|
+
insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
|
|
2823
2874
|
isDefaultNamespace(namespace: string | null): boolean;
|
|
2824
2875
|
isEqualNode(otherNode: Node | null): boolean;
|
|
2825
2876
|
isSameNode(otherNode: Node | null): boolean;
|
|
2826
2877
|
lookupNamespaceURI(prefix: string | null): string | null;
|
|
2827
2878
|
lookupPrefix(namespace: string | null): string | null;
|
|
2828
2879
|
normalize(): void;
|
|
2829
|
-
removeChild<
|
|
2830
|
-
replaceChild<
|
|
2880
|
+
removeChild<T_2 extends Node>(child: T_2): T_2;
|
|
2881
|
+
replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
|
|
2831
2882
|
readonly ELEMENT_NODE: 1;
|
|
2832
2883
|
readonly ATTRIBUTE_NODE: 2;
|
|
2833
2884
|
readonly TEXT_NODE: 3;
|
|
@@ -2849,13 +2900,10 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
2849
2900
|
dispatchEvent(event: Event): boolean;
|
|
2850
2901
|
ariaAtomic: string | null;
|
|
2851
2902
|
ariaAutoComplete: string | null;
|
|
2852
|
-
ariaBrailleLabel: string | null;
|
|
2853
|
-
ariaBrailleRoleDescription: string | null;
|
|
2854
2903
|
ariaBusy: string | null;
|
|
2855
2904
|
ariaChecked: string | null;
|
|
2856
2905
|
ariaColCount: string | null;
|
|
2857
2906
|
ariaColIndex: string | null;
|
|
2858
|
-
ariaColIndexText: string | null;
|
|
2859
2907
|
ariaColSpan: string | null;
|
|
2860
2908
|
ariaCurrent: string | null;
|
|
2861
2909
|
ariaDescription: string | null;
|
|
@@ -2876,12 +2924,10 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
2876
2924
|
ariaPosInSet: string | null;
|
|
2877
2925
|
ariaPressed: string | null;
|
|
2878
2926
|
ariaReadOnly: string | null;
|
|
2879
|
-
ariaRelevant: string | null;
|
|
2880
2927
|
ariaRequired: string | null;
|
|
2881
2928
|
ariaRoleDescription: string | null;
|
|
2882
2929
|
ariaRowCount: string | null;
|
|
2883
2930
|
ariaRowIndex: string | null;
|
|
2884
|
-
ariaRowIndexText: string | null;
|
|
2885
2931
|
ariaRowSpan: string | null;
|
|
2886
2932
|
ariaSelected: string | null;
|
|
2887
2933
|
ariaSetSize: string | null;
|
|
@@ -2891,35 +2937,35 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
2891
2937
|
ariaValueNow: string | null;
|
|
2892
2938
|
ariaValueText: string | null;
|
|
2893
2939
|
role: string | null;
|
|
2894
|
-
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
|
2895
|
-
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
2896
|
-
after(...nodes: (
|
|
2897
|
-
before(...nodes: (
|
|
2940
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
|
|
2941
|
+
getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
|
|
2942
|
+
after(...nodes: (string | Node)[]): void;
|
|
2943
|
+
before(...nodes: (string | Node)[]): void;
|
|
2898
2944
|
remove(): void;
|
|
2899
|
-
replaceWith(...nodes: (
|
|
2945
|
+
replaceWith(...nodes: (string | Node)[]): void;
|
|
2946
|
+
innerHTML: string;
|
|
2900
2947
|
readonly nextElementSibling: Element | null;
|
|
2901
2948
|
readonly previousElementSibling: Element | null;
|
|
2902
2949
|
readonly childElementCount: number;
|
|
2903
2950
|
readonly children: HTMLCollection;
|
|
2904
2951
|
readonly firstElementChild: Element | null;
|
|
2905
2952
|
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: (
|
|
2953
|
+
append(...nodes: (string | Node)[]): void;
|
|
2954
|
+
prepend(...nodes: (string | Node)[]): void;
|
|
2955
|
+
querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9] | null;
|
|
2956
|
+
querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10] | null;
|
|
2957
|
+
querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11] | null;
|
|
2958
|
+
querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12] | null;
|
|
2959
|
+
querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
|
|
2960
|
+
querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
|
|
2961
|
+
querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
|
|
2962
|
+
querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
|
|
2963
|
+
querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
|
|
2964
|
+
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
2965
|
+
replaceChildren(...nodes: (string | Node)[]): void;
|
|
2919
2966
|
readonly assignedSlot: HTMLSlotElement | null;
|
|
2920
2967
|
readonly attributeStyleMap: StylePropertyMap;
|
|
2921
|
-
|
|
2922
|
-
set style(cssText: string);
|
|
2968
|
+
readonly style: CSSStyleDeclaration;
|
|
2923
2969
|
contentEditable: string;
|
|
2924
2970
|
enterKeyHint: string;
|
|
2925
2971
|
inputMode: string;
|
|
@@ -2939,9 +2985,7 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
2939
2985
|
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
2940
2986
|
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
2941
2987
|
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
2942
|
-
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
2943
2988
|
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
2944
|
-
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
2945
2989
|
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
2946
2990
|
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
2947
2991
|
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
@@ -2989,7 +3033,7 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
2989
3033
|
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
2990
3034
|
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
2991
3035
|
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
2992
|
-
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
|
3036
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
|
|
2993
3037
|
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
2994
3038
|
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
2995
3039
|
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
@@ -3024,10 +3068,10 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
3024
3068
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
3025
3069
|
autofocus: boolean;
|
|
3026
3070
|
readonly dataset: DOMStringMap;
|
|
3027
|
-
nonce?: string;
|
|
3071
|
+
nonce?: string | undefined;
|
|
3028
3072
|
tabIndex: number;
|
|
3029
3073
|
blur(): void;
|
|
3030
|
-
focus(options?: FocusOptions): void;
|
|
3074
|
+
focus(options?: FocusOptions | undefined): void;
|
|
3031
3075
|
};
|
|
3032
3076
|
} & TBase;
|
|
3033
3077
|
|
|
@@ -3058,6 +3102,13 @@ export type IconPropertiesType = {
|
|
|
3058
3102
|
padding?: string;
|
|
3059
3103
|
};
|
|
3060
3104
|
|
|
3105
|
+
export type CcLanguageCode = 'en' | 'es' | 'fr' | 'de' | 'nl' | 'ja' | 'null';
|
|
3106
|
+
export type CcLanguageName = 'English' | 'Spanish' | 'French' | 'German' | 'Dutch' | 'Japanese' | 'Default';
|
|
3107
|
+
export type CcLanguageType = {
|
|
3108
|
+
code: CcLanguageCode;
|
|
3109
|
+
name: CcLanguageName;
|
|
3110
|
+
};
|
|
3111
|
+
|
|
3061
3112
|
export type ChipStatusType = 'statusReadStyle' | 'statusUnreadStyle' | 'statusLiveUnreadStyle' | 'statusLiveStyle';
|
|
3062
3113
|
|
|
3063
3114
|
export type ClientPlatform = 'Web';
|
|
@@ -3069,7 +3120,9 @@ export type ICaptionFile = {
|
|
|
3069
3120
|
};
|
|
3070
3121
|
export type IClosedCaption = {
|
|
3071
3122
|
files: ICaptionFile[];
|
|
3123
|
+
language: CcLanguageCode;
|
|
3072
3124
|
};
|
|
3125
|
+
export type ClosedCaptionsState = CcLanguageCode | 'Off' | 'Unknown' | 'Unavailable';
|
|
3073
3126
|
|
|
3074
3127
|
export type FontWeightType = 'normal' | 'bold' | 'bolder' | 'lighter' | 'inherit' | 'initial' | 'unset' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
3075
3128
|
export type TextTransformType = 'capitalize' | 'uppercase' | 'lowercase' | 'none';
|
|
@@ -3136,6 +3189,7 @@ export * from './ratio.type';
|
|
|
3136
3189
|
export * from './animation.type';
|
|
3137
3190
|
export * from './screen.type';
|
|
3138
3191
|
export * from './action-handler.type';
|
|
3192
|
+
export * from './cc-language.type';
|
|
3139
3193
|
|
|
3140
3194
|
export type EntitiesType = 'playerId' | 'teamId' | 'gameId' | 'roundId';
|
|
3141
3195
|
export type PerItemStyleOverrides = Partial<Record<EntitiesType, Array<{
|
|
@@ -3227,6 +3281,8 @@ export type WidgetType = 'Row' | 'Grid';
|
|
|
3227
3281
|
|
|
3228
3282
|
export declare function isImaAdInfo(ad: IAdInfo): ad is IImaAdInfo;
|
|
3229
3283
|
|
|
3284
|
+
export declare const convertCcLanguageToState: (data: IClosedCaption[] | undefined, language?: CcLanguageCode) => ClosedCaptionsState;
|
|
3285
|
+
|
|
3230
3286
|
interface ChipSizeOptions {
|
|
3231
3287
|
statusLiveStyle: IndicatorStyle;
|
|
3232
3288
|
statusLiveUnreadStyle: IndicatorStyle;
|
|
@@ -3279,6 +3335,7 @@ export declare function removeDuplicates(source: string[], checkAgainst: string[
|
|
|
3279
3335
|
export declare function updateStyle(styleToUpdate: any, path: string[], newValue: any): void;
|
|
3280
3336
|
export declare function getNestedValue(obj: any, path: string[]): any;
|
|
3281
3337
|
export declare function formatLikes(count: number): string;
|
|
3338
|
+
export declare function isElementInsideTarget(target: EventTarget | null, selectors: string[]): boolean;
|
|
3282
3339
|
|
|
3283
3340
|
export * from './chip.utils';
|
|
3284
3341
|
export * from './common.utils';
|
|
@@ -3290,6 +3347,8 @@ export * from './regex.utils';
|
|
|
3290
3347
|
export * from './stopwatch';
|
|
3291
3348
|
export * from './position.utils';
|
|
3292
3349
|
export * from './ad-info.utils';
|
|
3350
|
+
export * from './cc-language.utils';
|
|
3351
|
+
export * from './shared-event-target.utils';
|
|
3293
3352
|
|
|
3294
3353
|
export declare function getPersonalizedParamsForRequest(personalized?: BlazePersonalized): {
|
|
3295
3354
|
PersonalPlayers?: undefined;
|
|
@@ -3322,6 +3381,8 @@ export declare const RegexStoryHash: RegExp;
|
|
|
3322
3381
|
export declare const RegexMomentHash: RegExp;
|
|
3323
3382
|
export declare const RegexVideoHash: RegExp;
|
|
3324
3383
|
|
|
3384
|
+
export declare const SharedEventTarget: EventTarget;
|
|
3385
|
+
|
|
3325
3386
|
export declare class Stopwatch {
|
|
3326
3387
|
isRunning: boolean;
|
|
3327
3388
|
extraTime: number;
|
|
@@ -3412,8 +3473,7 @@ export declare const VIDEO_EVENTS: {
|
|
|
3412
3473
|
readonly CTA_DISMISS: "cta-dismiss";
|
|
3413
3474
|
readonly RESET_INACTIVITY_TIMER: "reset-inactivity-timer";
|
|
3414
3475
|
readonly CLOSE_PLAYER: "close-player";
|
|
3415
|
-
readonly
|
|
3416
|
-
readonly CLOSED_CAPTIONS_OFF: "closed-captions-off";
|
|
3476
|
+
readonly CLOSED_CAPTIONS_OPEN_MODAL: "closed-captions-open-modal";
|
|
3417
3477
|
readonly DISPLAY_HIDE_OVERLAY_FROM_CTA: "display-hide-overlay-from-cta";
|
|
3418
3478
|
readonly DISPLAY_SEEKED_TIME: "display-seeked-time";
|
|
3419
3479
|
readonly UPDATE_CLOSED_CAPTIONS_LOCATION: "update-closed-captions-location";
|
|
@@ -3576,7 +3636,6 @@ export declare class BlazeLongFormControlsOverlay extends HTMLElement {
|
|
|
3576
3636
|
private ctaTimeout;
|
|
3577
3637
|
private ctaVisiblity;
|
|
3578
3638
|
private currentMuteState;
|
|
3579
|
-
private currentClosedCaptionState;
|
|
3580
3639
|
videoSeekBar: BlazeVideoSeekBar;
|
|
3581
3640
|
videoTimer: BlazeTimer;
|
|
3582
3641
|
videoNavigationOverlay: BlazeVideoNavigationOverlay;
|
|
@@ -3729,6 +3788,7 @@ export declare class BlazeWidgetVideoModal extends BlazeWidgetModal {
|
|
|
3729
3788
|
onResizeEventDelay(): void;
|
|
3730
3789
|
}
|
|
3731
3790
|
|
|
3791
|
+
/// <reference types="hammerjs" />
|
|
3732
3792
|
export declare class BlazeWidgetVideoPlayer extends WidgetAbstractPlayer implements IVideoPlayerController {
|
|
3733
3793
|
private boundOnNavigationPrev;
|
|
3734
3794
|
private boundOnNavigationNext;
|
|
@@ -3787,6 +3847,7 @@ export declare class BlazeVideoElement extends BlazeWidgetVideoBase {
|
|
|
3787
3847
|
private posterOverlayElement;
|
|
3788
3848
|
videoOverlay: BlazeLongFormControlsOverlay;
|
|
3789
3849
|
shareModal: BlazeWidgetShareModal;
|
|
3850
|
+
closedCaptionsModal: BlazeWidgetClosedCaptionsModal | undefined;
|
|
3790
3851
|
private widgetVastAd;
|
|
3791
3852
|
private adPercentageShownPlaces;
|
|
3792
3853
|
private lastSavedTime;
|
|
@@ -3800,6 +3861,7 @@ export declare class BlazeVideoElement extends BlazeWidgetVideoBase {
|
|
|
3800
3861
|
isActionBlocked: boolean;
|
|
3801
3862
|
private isInitializing;
|
|
3802
3863
|
private isLoaded;
|
|
3864
|
+
private isPausedManually;
|
|
3803
3865
|
private lastMarkedVideoIdAsViewed;
|
|
3804
3866
|
private videoSessionId;
|
|
3805
3867
|
private aspectRatio;
|
|
@@ -3824,6 +3886,7 @@ export declare class BlazeVideoElement extends BlazeWidgetVideoBase {
|
|
|
3824
3886
|
private boundHandleOverlayEvents;
|
|
3825
3887
|
private boundHandleAdStarted;
|
|
3826
3888
|
private boundHandleAdEnded;
|
|
3889
|
+
private boundHandleLanguageChange;
|
|
3827
3890
|
constructor();
|
|
3828
3891
|
connectedCallback(): void;
|
|
3829
3892
|
disconnectedCallback(): void;
|
|
@@ -3835,7 +3898,7 @@ export declare class BlazeVideoElement extends BlazeWidgetVideoBase {
|
|
|
3835
3898
|
setIsPlaying(isPlaying: boolean): void;
|
|
3836
3899
|
load(): Promise<void>;
|
|
3837
3900
|
private setupClosedCaptions;
|
|
3838
|
-
|
|
3901
|
+
setClosedCaptions(files: ICaptionFile[]): Promise<void>;
|
|
3839
3902
|
private setCta;
|
|
3840
3903
|
private setTitle;
|
|
3841
3904
|
private setLiked;
|
|
@@ -3847,6 +3910,8 @@ export declare class BlazeVideoElement extends BlazeWidgetVideoBase {
|
|
|
3847
3910
|
private setupVideoElement;
|
|
3848
3911
|
private setupOverlay;
|
|
3849
3912
|
private setupShareModal;
|
|
3913
|
+
configureClosedCaptionsModal(): void;
|
|
3914
|
+
toggleClosedCaptions(language?: CcLanguageCode): void;
|
|
3850
3915
|
private setupEventListeners;
|
|
3851
3916
|
destroy(): void;
|
|
3852
3917
|
private startOverlayAutoHideTimer;
|
|
@@ -3877,6 +3942,7 @@ export declare class BlazeVideoElement extends BlazeWidgetVideoBase {
|
|
|
3877
3942
|
updateWidgetStatusReadUnread(): void;
|
|
3878
3943
|
private handleVideoTimeUpdate;
|
|
3879
3944
|
private saveCurrentTime;
|
|
3945
|
+
private handleLanguageChange;
|
|
3880
3946
|
private handleAdStarted;
|
|
3881
3947
|
private handleAdEnded;
|
|
3882
3948
|
static get observedAttributes(): string[];
|
|
@@ -4007,6 +4073,7 @@ export * from './moment/widget-moment-seek-bar';
|
|
|
4007
4073
|
export * from './widget-cta-modal';
|
|
4008
4074
|
export * from './widget-captions';
|
|
4009
4075
|
export * from '../video/core/video';
|
|
4076
|
+
export * from './widget-cc-modal';
|
|
4010
4077
|
|
|
4011
4078
|
type Position = {
|
|
4012
4079
|
top?: string;
|
|
@@ -4042,6 +4109,43 @@ export declare class BlazeWidgetCaptions extends HTMLElement {
|
|
|
4042
4109
|
setAbsolutePosition(position: Position): void;
|
|
4043
4110
|
}
|
|
4044
4111
|
|
|
4112
|
+
export declare class BlazeWidgetClosedCaptionsModal extends BaseWidget {
|
|
4113
|
+
private data;
|
|
4114
|
+
private contentType;
|
|
4115
|
+
private closedCaptionsContainer;
|
|
4116
|
+
private closedCaptionsMenu;
|
|
4117
|
+
private shadow;
|
|
4118
|
+
onOpen: (() => void) | undefined;
|
|
4119
|
+
onClose: (() => void) | undefined;
|
|
4120
|
+
onExpand: (() => void) | undefined;
|
|
4121
|
+
onCollapse: (() => void) | undefined;
|
|
4122
|
+
onClosedCaptionsEnable: ((language: CcLanguageCode) => void) | undefined;
|
|
4123
|
+
onClosedCaptionsDisable: (() => void) | undefined;
|
|
4124
|
+
boundLanguageChangeEvent: (event: Event) => void;
|
|
4125
|
+
boundOnMenuOpen: () => void;
|
|
4126
|
+
boundOnMenuClose: () => void;
|
|
4127
|
+
boundOnMenuExpand: () => void;
|
|
4128
|
+
boundOnMenuCollapse: () => void;
|
|
4129
|
+
constructor(data: IClosedCaption[] | undefined, contentType: ContentType);
|
|
4130
|
+
connectedCallback(): Promise<void>;
|
|
4131
|
+
disconnectedCallback(): void;
|
|
4132
|
+
private setupEventListeners;
|
|
4133
|
+
private detachEventListeners;
|
|
4134
|
+
private onLanguageChange;
|
|
4135
|
+
private onMenuOpen;
|
|
4136
|
+
private onMenuClose;
|
|
4137
|
+
private onMenuExpand;
|
|
4138
|
+
private onMenuCollapse;
|
|
4139
|
+
open(): void;
|
|
4140
|
+
close(): void;
|
|
4141
|
+
get isOpen(): boolean;
|
|
4142
|
+
reloadData(data: IClosedCaption[]): void;
|
|
4143
|
+
private handleCcOptionClick;
|
|
4144
|
+
private buildCcOption;
|
|
4145
|
+
private fillContainerWithOptions;
|
|
4146
|
+
private render;
|
|
4147
|
+
}
|
|
4148
|
+
|
|
4045
4149
|
export declare abstract class BlazeWidgetContent extends HTMLElement {
|
|
4046
4150
|
container: HTMLElement;
|
|
4047
4151
|
pageIndex: number;
|
|
@@ -4054,10 +4158,12 @@ export declare abstract class BlazeWidgetContent extends HTMLElement {
|
|
|
4054
4158
|
isActive: boolean;
|
|
4055
4159
|
isResumeOnFocusExecuted: boolean;
|
|
4056
4160
|
isNavigationPending: boolean;
|
|
4161
|
+
isPausedManually: boolean;
|
|
4057
4162
|
resumeAfterfocus: boolean;
|
|
4058
4163
|
boundOnFocusEvent: () => void;
|
|
4059
4164
|
boundOnBlurEvent: () => void;
|
|
4060
4165
|
boundOnVisibilityChangeEvent: () => void;
|
|
4166
|
+
boundOnLanguageChangeEvent: (event: Event) => void;
|
|
4061
4167
|
widgetParentItem: BlazeWidgetItem;
|
|
4062
4168
|
sessionId: string;
|
|
4063
4169
|
refContentModal?: BlazeWidgetStoryModal | BlazeWidgetMomentModal | BlazeWidgetVideoModal;
|
|
@@ -4238,6 +4344,7 @@ export declare class BlazeWidgetItem extends BaseWidget {
|
|
|
4238
4344
|
render(): void;
|
|
4239
4345
|
}
|
|
4240
4346
|
|
|
4347
|
+
/// <reference types="node" />
|
|
4241
4348
|
export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements Observable, IWidgetView {
|
|
4242
4349
|
storysModal: BlazeWidgetStoryModal | undefined;
|
|
4243
4350
|
momentsModal: BlazeWidgetMomentModal | undefined;
|
|
@@ -4482,9 +4589,11 @@ export declare class BlazeWidgetScrollable extends BaseWidget {
|
|
|
4482
4589
|
|
|
4483
4590
|
export type playRefType = 'Share' | 'SingleContent' | 'AutoAdvance';
|
|
4484
4591
|
export declare class BlazeWidgetSDK extends BaseWidget {
|
|
4592
|
+
private static _isSdkConnected;
|
|
4485
4593
|
modal: BlazeWidgetStoryModal | BlazeWidgetMomentModal | BlazeWidgetVideoModal;
|
|
4486
4594
|
boundOnResizeEvent: (this: Window, ev: UIEvent) => void;
|
|
4487
4595
|
boundOnResizeEventDelay: () => void;
|
|
4596
|
+
static isSdkConnected(): boolean;
|
|
4488
4597
|
static get observedAttributes(): string[];
|
|
4489
4598
|
constructor();
|
|
4490
4599
|
connectedCallback(): Promise<void>;
|
|
@@ -4601,6 +4710,7 @@ export declare class BlazeWidgetVideo extends BlazeWidgetVideoBase {
|
|
|
4601
4710
|
shouldShowImaAd: boolean;
|
|
4602
4711
|
isCurrentlyTryingToRunImaAd: boolean;
|
|
4603
4712
|
hasPoster: boolean;
|
|
4713
|
+
boundLanguageChangeEvent: (event: Event) => void;
|
|
4604
4714
|
static get observedAttributes(): string[];
|
|
4605
4715
|
constructor(contentParent: BlazeWidgetStory | BlazeWidgetMoment);
|
|
4606
4716
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
@@ -4653,6 +4763,7 @@ export declare class BlazeWidgetVideo extends BlazeWidgetVideoBase {
|
|
|
4653
4763
|
onContentResumeRequested(): void;
|
|
4654
4764
|
removeAdLoader(): void;
|
|
4655
4765
|
loadInteraction(): void;
|
|
4766
|
+
onLanguageChange(event: Event): Promise<void>;
|
|
4656
4767
|
handleInteractionEvent(event: CustomEvent<InteractionAnalyticCustomEvent>): void;
|
|
4657
4768
|
}
|
|
4658
4769
|
|
|
@@ -4891,6 +5002,7 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
|
|
|
4891
5002
|
modal: BlazeWidgetMomentModal;
|
|
4892
5003
|
seekBar: BlazeWidgetMomentSeekBar;
|
|
4893
5004
|
shareModal: BlazeWidgetShareModal | undefined;
|
|
5005
|
+
closedCaptionsModal: BlazeWidgetClosedCaptionsModal | undefined;
|
|
4894
5006
|
data: IMoment;
|
|
4895
5007
|
contentType: string;
|
|
4896
5008
|
momentIndex: number;
|
|
@@ -4960,6 +5072,7 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
|
|
|
4960
5072
|
appendShadowElements(): void;
|
|
4961
5073
|
createButtonElement(options: ButtonElementOptions, button: BlazeButton): void;
|
|
4962
5074
|
configureShareModal(): void;
|
|
5075
|
+
configureClosedCaptionsModal(): void;
|
|
4963
5076
|
configureButtons(): Promise<void>;
|
|
4964
5077
|
appendButtonsContainer(): void;
|
|
4965
5078
|
handleMobileSpecificFeatures(): void;
|
|
@@ -4969,6 +5082,7 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
|
|
|
4969
5082
|
createPlayPauseButton(): void;
|
|
4970
5083
|
handlePlayPauseButtonClick(): void;
|
|
4971
5084
|
setModal(modal: BlazeWidgetMomentModal): void;
|
|
5085
|
+
onLanguageChange(e: Event): void;
|
|
4972
5086
|
onVisibilityChange(): void;
|
|
4973
5087
|
onBlur(): void;
|
|
4974
5088
|
onFocus(): void;
|
|
@@ -4978,13 +5092,12 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
|
|
|
4978
5092
|
onMuteUnmuteChange(): void;
|
|
4979
5093
|
updatePlayerButtonIcons(): void;
|
|
4980
5094
|
private handleOnClosedCaptionClick;
|
|
4981
|
-
|
|
5095
|
+
toggleClosedCaptions(language?: CcLanguageCode): void;
|
|
4982
5096
|
handleOnShareClick(): Promise<void>;
|
|
4983
5097
|
loadMoments(): Promise<void>;
|
|
4984
5098
|
load(loadingType?: 'direct' | 'cache'): Promise<void>;
|
|
4985
5099
|
unload(): Promise<void>;
|
|
4986
5100
|
playToggle(): void;
|
|
4987
|
-
private updateCaptions;
|
|
4988
5101
|
handleOnMuteUnmuteToggle(): void;
|
|
4989
5102
|
setData(data: IMoment | null): void;
|
|
4990
5103
|
updateData(options: {
|
|
@@ -5079,6 +5192,7 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
|
|
|
5079
5192
|
pages: BlazeWidgetVideoBase[];
|
|
5080
5193
|
data: IStory;
|
|
5081
5194
|
shareModal: BlazeWidgetShareModal | undefined;
|
|
5195
|
+
closedCaptionsModal: BlazeWidgetClosedCaptionsModal | undefined;
|
|
5082
5196
|
isStoryLoadCompletedTriggered: boolean;
|
|
5083
5197
|
isStoryActive: boolean;
|
|
5084
5198
|
isResumeOnFocusExecuted: boolean;
|
|
@@ -5141,6 +5255,7 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
|
|
|
5141
5255
|
private createResumeAfterBlurButton;
|
|
5142
5256
|
private applyIconStyle;
|
|
5143
5257
|
onCustomActionButtonClick(e: Event, handlerOptions: CustomActionButtonOptions): void;
|
|
5258
|
+
onLanguageChange(e: Event): void;
|
|
5144
5259
|
onShareClick(): Promise<void>;
|
|
5145
5260
|
private onClosedCaptionClick;
|
|
5146
5261
|
private updateCtaButtonLayout;
|
|
@@ -5187,6 +5302,8 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
|
|
|
5187
5302
|
private addOrRemoveEventListeners;
|
|
5188
5303
|
connectedCallback(): void;
|
|
5189
5304
|
onShareModalClose(): void;
|
|
5305
|
+
configureClosedCaptionsModal(): void;
|
|
5306
|
+
toggleClosedCaptions(language?: CcLanguageCode): void;
|
|
5190
5307
|
updateStoryProgress(): void;
|
|
5191
5308
|
onShareModalButtonClick(shareButton: BlazeShareButton): Promise<void>;
|
|
5192
5309
|
onVisibilityChange(): void;
|