@wscsports/blaze-web-sdk 0.31.4 → 0.33.0
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 -1
- package/publish/index.d.ts +11 -0
- package/publish/index.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wscsports/blaze-web-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0",
|
|
4
4
|
"main": "publish/index",
|
|
5
5
|
"types": "publish/index",
|
|
6
6
|
"files": [
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"test:desktop": "node ./node_modules/@playwright/test/cli.js test --project='Desktop Chrome' --project='Desktop Firefox' --project='Desktop Safari'",
|
|
24
24
|
"test:desktop:stories": "node ./node_modules/@playwright/test/cli.js test --project='Desktop Chrome' --project='Desktop Safari' e2e-tests/tests/stories",
|
|
25
25
|
"test:desktop:stories:vast-ad": "node ./node_modules/@playwright/test/cli.js test --project='Desktop Chrome' --project='Desktop Firefox' --project='Desktop Safari' tests/stories/playback/story-playback-ad-vast.spec.ts --workers=1",
|
|
26
|
+
"test:desktop:stories:cta-nav": "node ./node_modules/@playwright/test/cli.js test --config=e2e-tests/playwright.config.ts --project='Desktop Chrome' --project='Desktop Safari' e2e-tests/tests/stories/navigation/story-cta-navigation.spec.ts",
|
|
26
27
|
"test:desktop:moments": "node ./node_modules/@playwright/test/cli.js test --project='Desktop Chrome' --project='Desktop Safari' e2e-tests/tests/moments",
|
|
27
28
|
"test:desktop:long-form": "node ./node_modules/@playwright/test/cli.js test --project='Desktop Chrome' --project='Desktop Safari' e2e-tests/tests/video-longform",
|
|
28
29
|
"test:mobile": "node ./node_modules/@playwright/test/cli.js test --project='iOS Safari 13' --project='Android Chrome'",
|
package/publish/index.d.ts
CHANGED
|
@@ -568,6 +568,13 @@ export type BlazeFollowEntity = {
|
|
|
568
568
|
entityType: BlazeFollowEntityType;
|
|
569
569
|
entityId: string;
|
|
570
570
|
};
|
|
571
|
+
export type RetrievedLanguages = {
|
|
572
|
+
title?: string;
|
|
573
|
+
description?: string;
|
|
574
|
+
subtitle?: string;
|
|
575
|
+
cta?: string;
|
|
576
|
+
ctaText?: string;
|
|
577
|
+
};
|
|
571
578
|
export interface IContent {
|
|
572
579
|
id: string;
|
|
573
580
|
title: string;
|
|
@@ -583,6 +590,7 @@ export interface IContent {
|
|
|
583
590
|
closedCaptions?: IClosedCaption[];
|
|
584
591
|
extraInfo: ExtraInfo;
|
|
585
592
|
followEntities?: BlazeFollowEntity[];
|
|
593
|
+
retrievedLanguages?: RetrievedLanguages;
|
|
586
594
|
}
|
|
587
595
|
export interface IBlazeContent {
|
|
588
596
|
id: string;
|
|
@@ -656,6 +664,7 @@ export interface IBlazeSDKOptions {
|
|
|
656
664
|
shouldAllowClosedCaptions?: boolean;
|
|
657
665
|
disableAutoLoadingContent?: boolean;
|
|
658
666
|
followedEntities?: string[];
|
|
667
|
+
preferredLanguage?: string;
|
|
659
668
|
}
|
|
660
669
|
export interface IDataSourceBuilder {
|
|
661
670
|
labels: (params: LabelsDataSourceParams) => BlazeDataSourceType;
|
|
@@ -788,6 +797,7 @@ declare enum ActionHandlerId {
|
|
|
788
797
|
}
|
|
789
798
|
export declare function setDoNotTrack(value: boolean): void;
|
|
790
799
|
export declare function setGeoLocation(value: string): void;
|
|
800
|
+
export declare function setPreferredLanguage(preferredLanguage: string | null): void;
|
|
791
801
|
export declare function setExternalUserId(value: string): Promise<void>;
|
|
792
802
|
export declare function setOnItemClick(callback: ItemClickCallback | undefined): void;
|
|
793
803
|
export declare function Initialize(apiKey: string, userOptions?: Partial<IBlazeSDKOptions>): Promise<void>;
|
|
@@ -846,6 +856,7 @@ declare const _default: {
|
|
|
846
856
|
setDoNotTrack: typeof setDoNotTrack;
|
|
847
857
|
setDisableAnalytics: typeof setDisableAnalytics;
|
|
848
858
|
setGeoLocation: typeof setGeoLocation;
|
|
859
|
+
setPreferredLanguage: typeof setPreferredLanguage;
|
|
849
860
|
setOnItemClick: typeof setOnItemClick;
|
|
850
861
|
LabelBuilder: typeof LabelBuilder;
|
|
851
862
|
DataSourceBuilder: typeof DataSourceBuilder;
|