@wscsports/blaze-web-sdk 0.28.5 → 0.30.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 +1 -1
- package/publish/index.d.ts +11 -3
- package/publish/index.js +1 -1
package/package.json
CHANGED
package/publish/index.d.ts
CHANGED
|
@@ -173,6 +173,7 @@ export type BlazeButtonDeviceStyle = {
|
|
|
173
173
|
color: string;
|
|
174
174
|
padding: string;
|
|
175
175
|
isVisible: boolean;
|
|
176
|
+
isEmbeddedVisible?: boolean;
|
|
176
177
|
borderRadius: string;
|
|
177
178
|
backgroundColor: string;
|
|
178
179
|
};
|
|
@@ -200,6 +201,7 @@ export type BlazeVideosPlayerButtonsStyle = {
|
|
|
200
201
|
like_unlike: BlazeButtonStyle;
|
|
201
202
|
closed_captions: BlazeButtonStyle;
|
|
202
203
|
play_pause: BlazeButtonStyle;
|
|
204
|
+
replay: BlazeButtonStyle;
|
|
203
205
|
prev_next: BlazeButtonStyle;
|
|
204
206
|
fullscreen: BlazeButtonStyle;
|
|
205
207
|
};
|
|
@@ -385,7 +387,7 @@ export type BlazeAbTestType = {
|
|
|
385
387
|
id: string;
|
|
386
388
|
variant: string;
|
|
387
389
|
};
|
|
388
|
-
export type BlazeSourceType = "labels" | "ids" | "recommendations";
|
|
390
|
+
export type BlazeSourceType = "labels" | "ids" | "recommendations" | "text";
|
|
389
391
|
export type AdvancedOrdering = "LiveFirst";
|
|
390
392
|
export interface BlazeDataSourceType {
|
|
391
393
|
sourceType: BlazeSourceType;
|
|
@@ -397,6 +399,7 @@ export interface BlazeDataSourceType {
|
|
|
397
399
|
advancedOrdering?: AdvancedOrdering;
|
|
398
400
|
personalized?: BlazePersonalized;
|
|
399
401
|
recommendations?: BlazeRecommendations;
|
|
402
|
+
text?: string;
|
|
400
403
|
}
|
|
401
404
|
export interface IBlazeWidgetLabel {
|
|
402
405
|
readonly _type: "BlazeWidgetLabel";
|
|
@@ -656,10 +659,12 @@ export interface IDataSourceBuilder {
|
|
|
656
659
|
labels: (params: LabelsDataSourceParams) => BlazeDataSourceType;
|
|
657
660
|
ids: (params: IdsDataSourceParams) => BlazeDataSourceType;
|
|
658
661
|
recommendations: (params: RecommendationsDataSourceParams) => BlazeDataSourceType;
|
|
662
|
+
text: (params: TextDataSourceParams) => BlazeDataSourceType;
|
|
659
663
|
}
|
|
660
664
|
export type LabelsDataSourceParams = Omit<BlazeDataSourceType, "sourceType" | "ids" | "recommendations">;
|
|
661
|
-
export type IdsDataSourceParams = Omit<BlazeDataSourceType, "sourceType" | "labels" | "recommendations" | "labelsPriority" | "maxItems">;
|
|
662
|
-
export type RecommendationsDataSourceParams = Omit<BlazeDataSourceType, "sourceType" | "ids" | "labels">;
|
|
665
|
+
export type IdsDataSourceParams = Omit<BlazeDataSourceType, "sourceType" | "labels" | "recommendations" | "labelsPriority" | "maxItems" | "text">;
|
|
666
|
+
export type RecommendationsDataSourceParams = Omit<BlazeDataSourceType, "sourceType" | "ids" | "labels" | "text">;
|
|
667
|
+
export type TextDataSourceParams = Omit<BlazeDataSourceType, "sourceType" | "ids" | "recommendations" | "labels" | "labelsPriority">;
|
|
663
668
|
export type BaseBlazeIcons = {
|
|
664
669
|
play: string;
|
|
665
670
|
pause: string;
|
|
@@ -694,6 +699,7 @@ export type BlazeMomentIconsStyle = BaseBlazeIcons & {
|
|
|
694
699
|
};
|
|
695
700
|
};
|
|
696
701
|
export type BlazeVideoIconsStyle = BaseBlazeIcons & {
|
|
702
|
+
replay: string;
|
|
697
703
|
exit: string;
|
|
698
704
|
like: string;
|
|
699
705
|
unlike: string;
|
|
@@ -786,6 +792,7 @@ export declare function Initialize(apiKey: string, userOptions?: Partial<IBlazeS
|
|
|
786
792
|
export declare function WidgetRowView(containerId: string, options: IWidgetViewOptions): IWidgetView;
|
|
787
793
|
export declare function WidgetGridView(containerId: string, options: IWidgetViewOptions): IWidgetView;
|
|
788
794
|
export declare function WidgetEmbeddedStory(containerId: string, options: IWidgetViewOptions): IWidgetView;
|
|
795
|
+
export declare function WidgetEmbeddedVideo(containerId: string, options: IWidgetViewOptions): IWidgetView;
|
|
789
796
|
export declare function WidgetCustomView(containerId: string, options: ICustomWidgetOptionsWithDataSource): ICustomWidgetView;
|
|
790
797
|
export declare function Theme(theme: ThemeType, contentType: "moment"): IWidgetTheme<MomentPlayerStyle>;
|
|
791
798
|
export declare function Theme(theme: ThemeType, contentType: "story"): IWidgetTheme<StoryPlayerStyle>;
|
|
@@ -830,6 +837,7 @@ declare const _default: {
|
|
|
830
837
|
WidgetGridView: typeof WidgetGridView;
|
|
831
838
|
WidgetRowView: typeof WidgetRowView;
|
|
832
839
|
WidgetEmbeddedStory: typeof WidgetEmbeddedStory;
|
|
840
|
+
WidgetEmbeddedVideo: typeof WidgetEmbeddedVideo;
|
|
833
841
|
WidgetCustomView: typeof WidgetCustomView;
|
|
834
842
|
Theme: typeof Theme;
|
|
835
843
|
addDelegateListener: typeof addDelegateListener;
|