@wscsports/blaze-web-sdk 0.1.69 → 0.1.70
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 -4
- 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
|
}
|
|
@@ -1646,6 +1654,7 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
1646
1654
|
render(): void;
|
|
1647
1655
|
maxSize(): number;
|
|
1648
1656
|
event(action: WidgetAction, data: Partial<WidgetEvent>, label?: string | undefined): void;
|
|
1657
|
+
isReadByLastUnIgnoredPageStatus(story: IStory): boolean;
|
|
1649
1658
|
updateWidgetsData(): void;
|
|
1650
1659
|
reorderWidgets(): void;
|
|
1651
1660
|
connectWidgets(): void;
|
|
@@ -1951,7 +1960,6 @@ export declare class BlazeWidgetStoryPlayer extends BaseWidget {
|
|
|
1951
1960
|
private cleanupHammer;
|
|
1952
1961
|
renderBackground(): void;
|
|
1953
1962
|
prefetchNeighbours(storyLocation: number, action: string): void;
|
|
1954
|
-
fetch(labels: string, ordering?: OrderType): Promise<void>;
|
|
1955
1963
|
setStories(stories: BlazeWidgetStory[]): void;
|
|
1956
1964
|
close(): Promise<void>;
|
|
1957
1965
|
seek(storyId: string): void;
|
|
@@ -1960,6 +1968,7 @@ export declare class BlazeWidgetStoryPlayer extends BaseWidget {
|
|
|
1960
1968
|
resetPosition(): void;
|
|
1961
1969
|
play(): void;
|
|
1962
1970
|
clean(): void;
|
|
1971
|
+
onCompleteAnimation(currStory: BlazeWidgetStory, mode: 'NEXT' | 'PREV'): void;
|
|
1963
1972
|
nextAnimation(): AnimeTimelineInstance | undefined;
|
|
1964
1973
|
prevAnimation(): AnimeTimelineInstance | undefined;
|
|
1965
1974
|
onAnimationEnd(): void;
|
|
@@ -2127,7 +2136,6 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2127
2136
|
muteToggle(): boolean;
|
|
2128
2137
|
setWidgetParent(parent: BlazeWidgetItem): void;
|
|
2129
2138
|
resetStoryLocationIndexToLastUnseen(): void;
|
|
2130
|
-
areAllPagesBeenReadByUser(): boolean;
|
|
2131
2139
|
setData(data: any, modal?: any): void;
|
|
2132
2140
|
get currentPage(): BlazeWidgetStoryBase;
|
|
2133
2141
|
get nextPage(): BlazeWidgetStoryBase;
|