@wscsports/blaze-web-sdk 0.1.91 → 0.1.93
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 +29 -6
- package/publish/index.js +1 -1
package/package.json
CHANGED
package/publish/index.d.ts
CHANGED
|
@@ -8,8 +8,9 @@ export declare function Theme(theme: ThemeType): IWidgetTheme;
|
|
|
8
8
|
export declare function addDelegateListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
9
9
|
export declare const Delegations: typeof Delegation;
|
|
10
10
|
export declare function LabelBuilder(): IWidgetLabelBuilder;
|
|
11
|
-
export declare function
|
|
12
|
-
export declare function
|
|
11
|
+
export declare function pauseCurrentPlayer(): void;
|
|
12
|
+
export declare function resumeCurrentPlayer(): void;
|
|
13
|
+
export declare function setGoogleCustomNativeAdsHandler(handler: CustomNativeAdHandler): void;
|
|
13
14
|
declare const _default: {
|
|
14
15
|
Initialize: typeof Initialize;
|
|
15
16
|
WidgetGridView: typeof WidgetGridView;
|
|
@@ -20,8 +21,9 @@ declare const _default: {
|
|
|
20
21
|
setGeoLocation: typeof setGeoLocation;
|
|
21
22
|
LabelBuilder: typeof LabelBuilder;
|
|
22
23
|
Delegations: typeof Delegation;
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
setGoogleCustomNativeAdsHandler: typeof setGoogleCustomNativeAdsHandler;
|
|
25
|
+
pauseCurrentPlayer: typeof pauseCurrentPlayer;
|
|
26
|
+
resumeCurrentPlayer: typeof resumeCurrentPlayer;
|
|
25
27
|
};
|
|
26
28
|
export default _default;
|
|
27
29
|
|
|
@@ -262,6 +264,7 @@ export declare class BlazeTypography extends BaseWidget {
|
|
|
262
264
|
type AttributeType = 'disabled' | 'hidden' | 'height' | 'width' | 'icon-color';
|
|
263
265
|
export declare class BlazeButton extends BaseWidget {
|
|
264
266
|
buttonElement: HTMLButtonElement;
|
|
267
|
+
get refElement(): ShadowRoot | this;
|
|
265
268
|
constructor();
|
|
266
269
|
static observedAttributes: string[];
|
|
267
270
|
connectedCallback(): void;
|
|
@@ -653,6 +656,14 @@ export declare const pauseIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgi
|
|
|
653
656
|
export declare const arrowUpCtaIcon = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyMCA4IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJtMTggNy43LTAuNy0wLjItNy4zLTQtNy4zIDRjLTAuNyAwLjQtMS42IDAuMi0yLTAuNi0wLjQtMC43LTAuMS0xLjYgMC42LTJsOC00LjRhMiAyIDAgMCAxIDEuNSAwbDggNC40YzAuNyAwLjQgMSAxLjMgMC42IDItMC40IDAuNS0wLjkgMC44LTEuNCAwLjh6Ii8+Cjwvc3ZnPgo=";
|
|
654
657
|
export declare const externalLinkIcon = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgY3Jvc3NvcmlnaW49ImFub255bW91cyI+CjxwYXRoIGQ9Im0xMiAwYzYuNiAwIDEyIDUuNCAxMiAxMnMtNS40IDEyLTEyIDEyLTEyLTUuNC0xMi0xMiA1LjQtMTIgMTItMTJ6IiBmaWxsLW9wYWNpdHk9Ii4xIi8+CjxwYXRoIGQ9Im0xMy44IDE0LjYgMC4yIDAuNS0wLjIgMC41LTEuNSAxLjRjLTAuNyAwLjctMS43IDEuMS0yLjcgMS4xYTQgNCAwIDAgMS0yLjctMS4xIDMuOSAzLjkgMCAwIDEtMS4xLTIuNyA0IDQgMCAwIDEgMS4xLTIuN2wxLjUtMS41IDAuNS0wLjEgMC41IDAuMiAwLjIgMC41LTAuMiAwLjUtMS41IDEuNWMtMC41IDAuNS0wLjcgMS4xLTAuNyAxLjdzMC4zIDEuMyAwLjcgMS43YzAuNSAwLjUgMS4xIDAuNyAxLjcgMC43czEuMy0wLjMgMS43LTAuN2wxLjUtMS41YzAuMy0wLjMgMC43LTAuMyAxIDB6bTMuMi03LjZhMy45IDMuOSAwIDAgMC0yLjctMS4xIDQgNCAwIDAgMC0yLjcgMS4xbC0xLjUgMS41LTAuMSAwLjQgMC4yIDAuNSAwLjUgMC4yIDAuNS0wLjIgMS41LTEuNWMwLjUtMC41IDEuMS0wLjcgMS43LTAuN3MxLjMgMC4zIDEuNyAwLjdjMC41IDAuNSAwLjcgMS4xIDAuNyAxLjdzLTAuMyAxLjMtMC43IDEuN2wtMS41IDEuNS0wLjIgMC41IDAuMiAwLjUgMC41IDAuMiAwLjUtMC4yIDEuNS0xLjVjMC43LTAuNyAxLjEtMS43IDEuMS0yLjctMC4xLTEtMC41LTEuOS0xLjItMi42em0tNy45IDcuMiAwLjIgMC41IDAuNSAwLjIgMC41LTAuMiA0LjUtNC41IDAuMi0wLjUtMC4yLTAuNWMtMC4zLTAuMi0wLjgtMC4yLTEgMC4xbC00LjUgNC41eiIvPgo8L3N2Zz4K";
|
|
655
658
|
|
|
659
|
+
type CustomNativeTargeting = Record<string, string | string[]>;
|
|
660
|
+
type CustomNativeArgs = {
|
|
661
|
+
path: string;
|
|
662
|
+
};
|
|
663
|
+
export interface CustomNativeAdHandler {
|
|
664
|
+
provideAdExtraParams?: (args: CustomNativeArgs) => CustomNativeTargeting;
|
|
665
|
+
}
|
|
666
|
+
|
|
656
667
|
export type EnvironmentType = 'prod' | 'uat';
|
|
657
668
|
export interface IBlazeSDKOptions {
|
|
658
669
|
apiKey: string;
|
|
@@ -664,6 +675,7 @@ export interface IBlazeSDKOptions {
|
|
|
664
675
|
externalUserId?: string;
|
|
665
676
|
geoLocation?: string;
|
|
666
677
|
staticContent?: boolean;
|
|
678
|
+
runInShadowDom?: boolean;
|
|
667
679
|
}
|
|
668
680
|
|
|
669
681
|
export interface IDatabase {
|
|
@@ -750,6 +762,7 @@ export interface IWidgetViewOptionsBase {
|
|
|
750
762
|
delegates?: Record<Delegation, EventListenerOrEventListenerObject>;
|
|
751
763
|
labelsPriority?: string;
|
|
752
764
|
perItemStyleOverrides?: PerItemStyleOverrides;
|
|
765
|
+
shouldOrderWidgetByReadStatus?: boolean;
|
|
753
766
|
}
|
|
754
767
|
export interface IWidgetViewOptionsWithLabels extends IWidgetViewOptionsBase {
|
|
755
768
|
labels: string | string[] | BlazeWidgetLabel;
|
|
@@ -1032,6 +1045,8 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
|
|
|
1032
1045
|
private _externalUserId;
|
|
1033
1046
|
private _geoLocation;
|
|
1034
1047
|
private _staticContent;
|
|
1048
|
+
private _runInShadowDom;
|
|
1049
|
+
private _googleCustomNativeAdHandler?;
|
|
1035
1050
|
protected constructor();
|
|
1036
1051
|
init(options: IBlazeSDKOptions): Promise<void>;
|
|
1037
1052
|
private _urls;
|
|
@@ -1053,6 +1068,9 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
|
|
|
1053
1068
|
get apiKey(): string;
|
|
1054
1069
|
get previewUrl(): string;
|
|
1055
1070
|
get previewMomentsUrl(): string;
|
|
1071
|
+
get runInShadowDom(): boolean;
|
|
1072
|
+
get googleCustomNativeAdHandler(): CustomNativeAdHandler | undefined;
|
|
1073
|
+
set googleCustomNativeAdHandler(value: CustomNativeAdHandler | undefined);
|
|
1056
1074
|
}
|
|
1057
1075
|
export declare const ConfigService: ConfigServiceClass;
|
|
1058
1076
|
|
|
@@ -1444,7 +1462,7 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
1444
1462
|
click(): void;
|
|
1445
1463
|
hidePopover(): void;
|
|
1446
1464
|
showPopover(): void;
|
|
1447
|
-
togglePopover(force?: boolean | undefined):
|
|
1465
|
+
togglePopover(force?: boolean | undefined): boolean;
|
|
1448
1466
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
1449
1467
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
1450
1468
|
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
@@ -1579,6 +1597,7 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
1579
1597
|
ariaColIndex: string | null;
|
|
1580
1598
|
ariaColSpan: string | null;
|
|
1581
1599
|
ariaCurrent: string | null;
|
|
1600
|
+
ariaDescription: string | null;
|
|
1582
1601
|
ariaDisabled: string | null;
|
|
1583
1602
|
ariaExpanded: string | null;
|
|
1584
1603
|
ariaHasPopup: string | null;
|
|
@@ -1649,6 +1668,7 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
1649
1668
|
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
1650
1669
|
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
1651
1670
|
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
1671
|
+
onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1652
1672
|
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
1653
1673
|
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1654
1674
|
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -1800,7 +1820,7 @@ export type OrderType = 'Manual' | 'AtoZ' | 'ZtoA' | 'RecentlyUpdatedFirst' | 'R
|
|
|
1800
1820
|
export declare const PlayTypeArray: readonly ["Widget", "Share", "SingleStory"];
|
|
1801
1821
|
export type PlayType = typeof PlayTypeArray[number];
|
|
1802
1822
|
|
|
1803
|
-
export type PositionInsideType = 'insideTopLeft' | 'insideTopRight' | '
|
|
1823
|
+
export type PositionInsideType = 'insideTopLeft' | 'insideTopRight' | 'insideTop' | 'insideTopMiddle' | 'insideBottomRight' | 'insideBottomLeft' | 'insideBottom' | 'insideBottomMiddle' | 'insideMiddle' | 'insideMiddleLeft' | 'insideMiddleRight';
|
|
1804
1824
|
export type PositionOutsideType = 'outsideTop' | 'outsideTopLeft' | 'outsideTopRight' | 'outsideBottomLeft' | 'outsideBottomRight' | 'outsideBottom' | 'outsideRight' | 'outsideLeft';
|
|
1805
1825
|
export type PositionType = PositionInsideType | PositionOutsideType;
|
|
1806
1826
|
export interface PositionOffset {
|
|
@@ -1977,6 +1997,7 @@ export declare class BlazeWidgetItem extends BaseWidget {
|
|
|
1977
1997
|
private badge;
|
|
1978
1998
|
private isLive;
|
|
1979
1999
|
private analyticsCalls;
|
|
2000
|
+
get parentRef(): BlazeWidgetLayout;
|
|
1980
2001
|
private statusIndicatorSettings;
|
|
1981
2002
|
paddingItem: PositionOffset;
|
|
1982
2003
|
content: IStory;
|
|
@@ -2048,6 +2069,7 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
2048
2069
|
analyticsStack: Record<WidgetAction, boolean>;
|
|
2049
2070
|
onResizeEvent: (this: Window, ev: UIEvent) => void;
|
|
2050
2071
|
shouldReloadWhenPlayerIsClosed: boolean;
|
|
2072
|
+
get refElement(): ShadowRoot | this;
|
|
2051
2073
|
constructor();
|
|
2052
2074
|
onResizeEventDelay(): void;
|
|
2053
2075
|
onResize(): void;
|
|
@@ -2427,6 +2449,7 @@ export declare class BlazeWidgetStoryModal extends BlazeWidgetModal {
|
|
|
2427
2449
|
onStoryChange?: (mode: StoryDirectionType) => void;
|
|
2428
2450
|
hammer: HammerManager | null;
|
|
2429
2451
|
isMultiTouch: boolean;
|
|
2452
|
+
get refElement(): this;
|
|
2430
2453
|
constructor(parentWidget: HTMLElement, playerLayout: StoryPlayerStyle);
|
|
2431
2454
|
handleOnStoryChange(mode: StoryDirectionType): void;
|
|
2432
2455
|
setTheme(theme: IWidgetTheme): void;
|