@wscsports/blaze-web-sdk 0.1.69 → 0.1.71
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 +12 -5
- package/publish/index.js +1 -1
package/package.json
CHANGED
package/publish/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare function setDoNotTrack(value: boolean): void;
|
|
2
|
+
export declare function setExternalUserId(value: string): void;
|
|
2
3
|
export declare function Initialize(apiKey: string, options?: Omit<IBlazeSDKOptions, "apiKey">): Promise<void>;
|
|
3
4
|
export declare function WidgetRowView(containerId: string, options: IWidgetViewOptions): IWidgetView;
|
|
4
5
|
export declare function WidgetGridView(containerId: string, options: IWidgetViewOptions): IWidgetView;
|
|
@@ -272,9 +273,10 @@ export declare class Database implements IDatabase {
|
|
|
272
273
|
constructor(options: IDatabaseOptions);
|
|
273
274
|
dbInstance: IDBDatabase;
|
|
274
275
|
init(options: IDatabaseInitOptions): Promise<void>;
|
|
275
|
-
createTransaction(tableName: string, mode: 'readonly' | 'readwrite'): IDBObjectStore;
|
|
276
|
+
createTransaction(tableName: string, mode: 'readonly' | 'readwrite'): IDBObjectStore | undefined;
|
|
276
277
|
get<T>(tableName: string, key: string): Promise<IResponse<T>>;
|
|
277
278
|
update<T>(tableName: string, value: any): Promise<IResponse<T>>;
|
|
279
|
+
private clearAndRecreateDatabase;
|
|
278
280
|
}
|
|
279
281
|
|
|
280
282
|
export * from './database';
|
|
@@ -336,6 +338,7 @@ export interface IPage {
|
|
|
336
338
|
baseLayer: ILayer;
|
|
337
339
|
cta: ICTA;
|
|
338
340
|
hasViewed: boolean;
|
|
341
|
+
ignoreReadStatusForStory: boolean;
|
|
339
342
|
}
|
|
340
343
|
|
|
341
344
|
export interface IRendition {
|
|
@@ -484,6 +487,7 @@ export interface IBlazeSDKOptions {
|
|
|
484
487
|
previewUrl?: string;
|
|
485
488
|
previewMomentUrl?: string;
|
|
486
489
|
doNotTrack?: boolean;
|
|
490
|
+
externalUserId?: string;
|
|
487
491
|
}
|
|
488
492
|
|
|
489
493
|
export interface IDatabase {
|
|
@@ -611,6 +615,7 @@ export declare enum Category {
|
|
|
611
615
|
}
|
|
612
616
|
declare class UserEventInfo {
|
|
613
617
|
'generated_user_id': string;
|
|
618
|
+
'external_user_id': string;
|
|
614
619
|
'user_id': string;
|
|
615
620
|
'age': number;
|
|
616
621
|
'gender': string;
|
|
@@ -780,6 +785,7 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
|
|
|
780
785
|
private _previewMomentUrl;
|
|
781
786
|
private _sendAnaltyics;
|
|
782
787
|
private _doNotTrack;
|
|
788
|
+
private _externalUserId;
|
|
783
789
|
protected constructor();
|
|
784
790
|
init(options: IBlazeSDKOptions): Promise<void>;
|
|
785
791
|
private _urls;
|
|
@@ -789,6 +795,8 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
|
|
|
789
795
|
private set environment(value);
|
|
790
796
|
get sendAnalytics(): boolean;
|
|
791
797
|
get analyticsApiUrl(): string;
|
|
798
|
+
get externalUserId(): string;
|
|
799
|
+
set externalUserId(value: string);
|
|
792
800
|
get doNotTrack(): boolean;
|
|
793
801
|
set doNotTrack(value: boolean);
|
|
794
802
|
get apiUrl(): string;
|
|
@@ -1583,7 +1591,7 @@ export declare class BlazeWidgetItem extends BaseWidget {
|
|
|
1583
1591
|
};
|
|
1584
1592
|
private updateChipStyles;
|
|
1585
1593
|
setTheme(theme: IWidgetTheme): void;
|
|
1586
|
-
|
|
1594
|
+
setChipStyle(): void;
|
|
1587
1595
|
event(action: WidgetAction, data: Partial<WidgetEvent>, label?: string | undefined): void;
|
|
1588
1596
|
render(): void;
|
|
1589
1597
|
}
|
|
@@ -1599,7 +1607,6 @@ export declare class BlazeWidgetLabel {
|
|
|
1599
1607
|
toString(): string;
|
|
1600
1608
|
private static createLabel;
|
|
1601
1609
|
private static validateAndProceed;
|
|
1602
|
-
private static validateNoCommas;
|
|
1603
1610
|
private static isValidLabelFormat;
|
|
1604
1611
|
}
|
|
1605
1612
|
|
|
@@ -1646,6 +1653,7 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
1646
1653
|
render(): void;
|
|
1647
1654
|
maxSize(): number;
|
|
1648
1655
|
event(action: WidgetAction, data: Partial<WidgetEvent>, label?: string | undefined): void;
|
|
1656
|
+
isReadByLastUnIgnoredPageStatus(story: IStory): boolean;
|
|
1649
1657
|
updateWidgetsData(): void;
|
|
1650
1658
|
reorderWidgets(): void;
|
|
1651
1659
|
connectWidgets(): void;
|
|
@@ -1951,7 +1959,6 @@ export declare class BlazeWidgetStoryPlayer extends BaseWidget {
|
|
|
1951
1959
|
private cleanupHammer;
|
|
1952
1960
|
renderBackground(): void;
|
|
1953
1961
|
prefetchNeighbours(storyLocation: number, action: string): void;
|
|
1954
|
-
fetch(labels: string, ordering?: OrderType): Promise<void>;
|
|
1955
1962
|
setStories(stories: BlazeWidgetStory[]): void;
|
|
1956
1963
|
close(): Promise<void>;
|
|
1957
1964
|
seek(storyId: string): void;
|
|
@@ -1960,6 +1967,7 @@ export declare class BlazeWidgetStoryPlayer extends BaseWidget {
|
|
|
1960
1967
|
resetPosition(): void;
|
|
1961
1968
|
play(): void;
|
|
1962
1969
|
clean(): void;
|
|
1970
|
+
onCompleteAnimation(currStory: BlazeWidgetStory, mode: 'NEXT' | 'PREV'): void;
|
|
1963
1971
|
nextAnimation(): AnimeTimelineInstance | undefined;
|
|
1964
1972
|
prevAnimation(): AnimeTimelineInstance | undefined;
|
|
1965
1973
|
onAnimationEnd(): void;
|
|
@@ -2127,7 +2135,6 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2127
2135
|
muteToggle(): boolean;
|
|
2128
2136
|
setWidgetParent(parent: BlazeWidgetItem): void;
|
|
2129
2137
|
resetStoryLocationIndexToLastUnseen(): void;
|
|
2130
|
-
areAllPagesBeenReadByUser(): boolean;
|
|
2131
2138
|
setData(data: any, modal?: any): void;
|
|
2132
2139
|
get currentPage(): BlazeWidgetStoryBase;
|
|
2133
2140
|
get nextPage(): BlazeWidgetStoryBase;
|