@wscsports/blaze-web-sdk 0.2.5 → 0.2.6
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 +13 -2
- package/publish/index.js +1 -1
package/package.json
CHANGED
package/publish/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare function setDoNotTrack(value: boolean): void;
|
|
2
2
|
export declare function setGeoLocation(value: string): void;
|
|
3
3
|
export declare function setExternalUserId(value: string): Promise<void>;
|
|
4
|
-
export declare function Initialize(apiKey: string,
|
|
4
|
+
export declare function Initialize(apiKey: string, userOptions?: Partial<IBlazeSDKOptions>): Promise<void>;
|
|
5
5
|
export declare function WidgetRowView(containerId: string, options: IWidgetViewOptions): IWidgetView;
|
|
6
6
|
export declare function WidgetGridView(containerId: string, options: IWidgetViewOptions): IWidgetView;
|
|
7
7
|
export declare function WidgetEmbeddedStory(containerId: string, options: IWidgetViewOptions): IWidgetView;
|
|
@@ -676,6 +676,9 @@ export declare const DESKTOP_PADDING_BOTTOM = "40px";
|
|
|
676
676
|
export declare const ASPECT_RATIO_16_9: number;
|
|
677
677
|
export declare const ASPECT_RATIO_9_16: number;
|
|
678
678
|
export declare const ASPECT_RATIO_4_3: number;
|
|
679
|
+
export declare const ASPECT_RATIO_16_9_STRING = "16 / 9";
|
|
680
|
+
export declare const ASPECT_RATIO_9_16_STRING = "9 / 16";
|
|
681
|
+
export declare const ASPECT_RATIO_4_3_STRING = "4 / 3";
|
|
679
682
|
|
|
680
683
|
export * from './analytics.constants';
|
|
681
684
|
export * from './device.constants';
|
|
@@ -1055,6 +1058,7 @@ export interface IBlazeSDKOptions {
|
|
|
1055
1058
|
shouldDismissPlayer?: boolean;
|
|
1056
1059
|
shouldCreateUser?: boolean;
|
|
1057
1060
|
externalUserId?: string | null;
|
|
1061
|
+
prefetchingPolicy?: PrefetchingPolicyType;
|
|
1058
1062
|
}
|
|
1059
1063
|
|
|
1060
1064
|
export interface IButtonPlayerNavigationConfig {
|
|
@@ -1365,6 +1369,7 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
|
|
|
1365
1369
|
private _playerStyleCustomization?;
|
|
1366
1370
|
private _shouldCreateUser;
|
|
1367
1371
|
private _externalUserId;
|
|
1372
|
+
private _prefetchingPolicy;
|
|
1368
1373
|
protected constructor();
|
|
1369
1374
|
init(options: IBlazeSDKOptions): Promise<void>;
|
|
1370
1375
|
private _urls;
|
|
@@ -1396,6 +1401,8 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
|
|
|
1396
1401
|
set googleCustomNativeAdHandler(value: CustomNativeAdHandler | undefined);
|
|
1397
1402
|
get imaAdHandler(): ImaAdHandler | undefined;
|
|
1398
1403
|
set imaAdHandler(value: ImaAdHandler | undefined);
|
|
1404
|
+
get prefetchingPolicy(): PrefetchingPolicyType;
|
|
1405
|
+
set prefetchingPolicy(value: PrefetchingPolicyType);
|
|
1399
1406
|
}
|
|
1400
1407
|
export declare const ConfigService: ConfigServiceClass;
|
|
1401
1408
|
|
|
@@ -2225,6 +2232,7 @@ export * from './thumbnail.type';
|
|
|
2225
2232
|
export * from './user.type';
|
|
2226
2233
|
export * from './widget.type';
|
|
2227
2234
|
export * from './chip-status.type';
|
|
2235
|
+
export * from './prefetch.type';
|
|
2228
2236
|
|
|
2229
2237
|
export type EntitiesType = 'playerId' | 'teamId' | 'gameId';
|
|
2230
2238
|
export type PerItemStyleOverrides = Record<EntitiesType, Array<{
|
|
@@ -2254,6 +2262,8 @@ export interface PositionOffset {
|
|
|
2254
2262
|
export type PartialPositionOffset = Partial<PositionOffset>;
|
|
2255
2263
|
export type IconsPositionType = 'HORIZONTAL' | 'VERTICAL';
|
|
2256
2264
|
|
|
2265
|
+
export type PrefetchingPolicyType = 'low' | 'default';
|
|
2266
|
+
|
|
2257
2267
|
export type SeverityType = 'error' | 'warning' | 'info' | 'success';
|
|
2258
2268
|
|
|
2259
2269
|
export type SizeType = 'small' | 'medium' | 'large';
|
|
@@ -2505,6 +2515,7 @@ export declare class BlazeWidgetInteraction extends BaseWidget {
|
|
|
2505
2515
|
private responseHandler;
|
|
2506
2516
|
private focusMainWindowHandler;
|
|
2507
2517
|
private orientationChangeHandler;
|
|
2518
|
+
connectedCallback(): void;
|
|
2508
2519
|
loadInteraction(interactionData: Interaction): void;
|
|
2509
2520
|
showInteraction(interactionData?: Interaction): void;
|
|
2510
2521
|
hideInteraction(): void;
|
|
@@ -3349,7 +3360,7 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
|
|
|
3349
3360
|
get currentPage(): BlazeWidgetVideoBase;
|
|
3350
3361
|
get nextPage(): BlazeWidgetVideoBase;
|
|
3351
3362
|
get prevPage(): BlazeWidgetVideoBase;
|
|
3352
|
-
|
|
3363
|
+
prefetchAdjacentPages(): void;
|
|
3353
3364
|
loadStoryPostersByDistance(distance: number): void;
|
|
3354
3365
|
revertNextPageButtonToPreviousAction(): void;
|
|
3355
3366
|
displayRestartStoryButton(): void;
|