@wscsports/blaze-web-sdk 0.1.86 → 0.1.88
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 +2 -2
- package/publish/index.d.ts +10 -5
- package/publish/index.js +1 -1
package/package.json
CHANGED
package/publish/index.d.ts
CHANGED
|
@@ -194,6 +194,7 @@ export declare class BlazeImage extends BaseWidget {
|
|
|
194
194
|
thumbnailElement: HTMLImageElement;
|
|
195
195
|
constructor();
|
|
196
196
|
load(src: string): void;
|
|
197
|
+
setHeight(value: string): void;
|
|
197
198
|
setRatio(ratio: string): void;
|
|
198
199
|
setBorderRadius(radius: string): void;
|
|
199
200
|
}
|
|
@@ -1784,7 +1785,6 @@ export declare function isValidCountryCode(countryCode: string): countryCode is
|
|
|
1784
1785
|
export declare function GuardNullOrEmpty(name: string, value: any): void;
|
|
1785
1786
|
|
|
1786
1787
|
export declare function formatDuration(startDate: Date): string;
|
|
1787
|
-
export declare function removeUndefined(value: any): object;
|
|
1788
1788
|
export declare function isCssPropertySupported(property: string): boolean;
|
|
1789
1789
|
export declare function pixelsToNumber(pxString: string): number;
|
|
1790
1790
|
export declare function isObject(item: any): boolean;
|
|
@@ -1793,6 +1793,8 @@ export declare function cloneDeep<T>(target: T): T;
|
|
|
1793
1793
|
export declare function formatDate(date: Date): string;
|
|
1794
1794
|
export declare function formatUTCDate(date: Date): string;
|
|
1795
1795
|
export declare function calculatePercentage(value: number, element: BlazeDiv): string;
|
|
1796
|
+
type RatioType = '16/9' | '9/16' | '2/3' | 'Custom Ratio';
|
|
1797
|
+
export declare function checkAspectRatios(decimal: number): RatioType;
|
|
1796
1798
|
export declare function getRandomId(): string;
|
|
1797
1799
|
export declare function isEmpty(obj: Record<string, any>): boolean;
|
|
1798
1800
|
export declare function setId(element: HTMLElement, prefix?: string, suffix?: string): void;
|
|
@@ -1856,7 +1858,6 @@ export * from './widget-story-modal';
|
|
|
1856
1858
|
export * from './widget-story-player';
|
|
1857
1859
|
export * from './widget-story-preview';
|
|
1858
1860
|
export * from './widget-story-video';
|
|
1859
|
-
export * from './widget-interaction';
|
|
1860
1861
|
|
|
1861
1862
|
export declare class BlazeWidgetStoryAd extends BlazeWidgetStoryBase {
|
|
1862
1863
|
data: IPage | undefined;
|
|
@@ -1924,6 +1925,7 @@ export declare class BlazeWidgetItem extends BaseWidget {
|
|
|
1924
1925
|
connectedCallback(): void;
|
|
1925
1926
|
disconnectedCallback(): void;
|
|
1926
1927
|
updateWidget(): void;
|
|
1928
|
+
updateWidgetItemPadding(): void;
|
|
1927
1929
|
updateWidgetItemStyle(theme: IWidgetTheme): void;
|
|
1928
1930
|
private setupDOMElements;
|
|
1929
1931
|
private setupEventListeners;
|
|
@@ -1974,6 +1976,7 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
1974
1976
|
preset: IWidgetTheme | undefined;
|
|
1975
1977
|
perItemStyleOverrides: PerItemStyleOverrides;
|
|
1976
1978
|
activeOverridesLayoutThemes: PerItemStyleOverrides;
|
|
1979
|
+
isWidgetVisible: boolean;
|
|
1977
1980
|
thumbnailWidth: number | undefined;
|
|
1978
1981
|
thumbnailHeight: number | undefined;
|
|
1979
1982
|
widgetHeight: number;
|
|
@@ -1983,6 +1986,7 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
1983
1986
|
reloadTimeout: NodeJS.Timeout | undefined;
|
|
1984
1987
|
analyticsStack: Record<WidgetAction, boolean>;
|
|
1985
1988
|
onResizeEvent: (this: Window, ev: UIEvent) => void;
|
|
1989
|
+
shouldReloadWhenPlayerIsClosed: boolean;
|
|
1986
1990
|
constructor();
|
|
1987
1991
|
onResizeEventDelay(): void;
|
|
1988
1992
|
onResize(): void;
|
|
@@ -1993,9 +1997,10 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
1993
1997
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
1994
1998
|
onKeyDown(e: KeyboardEvent): void;
|
|
1995
1999
|
onStoryChange(mode: StoryDirectionType): void;
|
|
2000
|
+
onPlayerClose(): void;
|
|
1996
2001
|
getParentHeightWithoutPadding(): number | null;
|
|
1997
2002
|
setId(id: string): void;
|
|
1998
|
-
handlePopState(
|
|
2003
|
+
handlePopState(): void;
|
|
1999
2004
|
addDelegateListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
2000
2005
|
set storyIds(value: string);
|
|
2001
2006
|
setContentIds(storyIds: string[]): void;
|
|
@@ -2008,6 +2013,7 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
2008
2013
|
reload(): void;
|
|
2009
2014
|
updateActiveLayoutThemesPerItemWithEntity(key: EntitiesType, value: string, theme: IWidgetTheme): void;
|
|
2010
2015
|
updateWidgetUI(): void;
|
|
2016
|
+
setMaxPaddingOnWidgetItems(): void;
|
|
2011
2017
|
setDelegations(delegates: Record<Delegation, EventListenerOrEventListenerObject>): void;
|
|
2012
2018
|
setMaxItemsDisplaySize(maxSize: number): void;
|
|
2013
2019
|
setMaxItemsSize(maxItemsSize: number): void;
|
|
@@ -2068,8 +2074,6 @@ export declare class BlazeWidgetModal extends BaseWidget {
|
|
|
2068
2074
|
connectedCallback(): void;
|
|
2069
2075
|
open(): void;
|
|
2070
2076
|
close(): void;
|
|
2071
|
-
disconnectedCallback(): void;
|
|
2072
|
-
setTheme(theme: IWidgetTheme): void;
|
|
2073
2077
|
}
|
|
2074
2078
|
|
|
2075
2079
|
export declare class BlazeWidgetMomentModal extends BlazeWidgetModal {
|
|
@@ -2522,6 +2526,7 @@ export declare class BlazeWidgetStoryVideo extends BlazeWidgetStoryBase {
|
|
|
2522
2526
|
storyParent: BlazeWidgetStory;
|
|
2523
2527
|
googleIMA: any;
|
|
2524
2528
|
isCurrentlyTryingToRunImaAd: boolean;
|
|
2529
|
+
hasPoster: boolean;
|
|
2525
2530
|
constructor(storyParent: BlazeWidgetStory, disableInteraction?: boolean);
|
|
2526
2531
|
connectedCallback(): void;
|
|
2527
2532
|
disconnectedCallback(): void;
|