@wscsports/blaze-web-sdk 0.6.0 → 0.7.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 +47 -3
- package/publish/index.js +1 -1
package/package.json
CHANGED
package/publish/index.d.ts
CHANGED
|
@@ -148,6 +148,7 @@ export declare class ReferringEventInfo {
|
|
|
148
148
|
'story_source': string;
|
|
149
149
|
}
|
|
150
150
|
export declare class AnalyticsEvent {
|
|
151
|
+
'sdk_event_session_counter': number;
|
|
151
152
|
'sdk_event_id': string;
|
|
152
153
|
'timestamp_utc': string;
|
|
153
154
|
'timestamp_user_tz': string;
|
|
@@ -208,6 +209,8 @@ export declare class StoryEvent {
|
|
|
208
209
|
'custom_action_button_name': string;
|
|
209
210
|
'enrichment_layer_id': string;
|
|
210
211
|
'enrichment_layer_url': string;
|
|
212
|
+
'story_page_parent_id': string;
|
|
213
|
+
'story_composition_type': string;
|
|
211
214
|
}
|
|
212
215
|
export declare class MomentEvent {
|
|
213
216
|
'moments_session_id': string;
|
|
@@ -355,6 +358,7 @@ export interface BlazeDataSourceType {
|
|
|
355
358
|
orderType?: OrderType;
|
|
356
359
|
maxItems?: number;
|
|
357
360
|
advancedOrdering?: AdvancedOrdering;
|
|
361
|
+
personalized?: BlazePersonalized;
|
|
358
362
|
}
|
|
359
363
|
export declare const BlazeInternalError: {
|
|
360
364
|
LabelExpressionMustNotBeEmpty: string;
|
|
@@ -666,7 +670,7 @@ export declare class BlazeButton extends BaseWidget {
|
|
|
666
670
|
isAnimationOnDesktopInitialized: boolean;
|
|
667
671
|
get refElement(): ShadowRoot | this;
|
|
668
672
|
constructor();
|
|
669
|
-
static get observedAttributes(): ("height" | "order" | "width" | "icon-color" | "
|
|
673
|
+
static get observedAttributes(): ("height" | "order" | "width" | "icon-color" | "blaze-btn-visible" | "disabled" | "blaze-btn-hidden" | "button-desktop-animation")[];
|
|
670
674
|
private onMouseEnter;
|
|
671
675
|
private onMouseLeave;
|
|
672
676
|
private onClick;
|
|
@@ -1149,6 +1153,7 @@ export interface IContentPage extends IBasePage {
|
|
|
1149
1153
|
thumbnail: IThumbnail;
|
|
1150
1154
|
baseLayer: ILayer;
|
|
1151
1155
|
cta: ICta;
|
|
1156
|
+
parentStoryId?: string;
|
|
1152
1157
|
shouldShowImaAd?: boolean;
|
|
1153
1158
|
adInfo?: IAdInfo;
|
|
1154
1159
|
interaction?: Interaction;
|
|
@@ -1173,6 +1178,7 @@ export interface IStory extends IContent {
|
|
|
1173
1178
|
isLive: boolean;
|
|
1174
1179
|
pages: IPage[];
|
|
1175
1180
|
adInfo?: IAdInfo;
|
|
1181
|
+
compositionType?: string;
|
|
1176
1182
|
}
|
|
1177
1183
|
|
|
1178
1184
|
export interface IThumbnail {
|
|
@@ -1646,6 +1652,7 @@ export interface IWidgetView extends HTMLElement {
|
|
|
1646
1652
|
updateOverrideStyles: (perItemStyleOverrides: PerItemStyleOverrides) => void;
|
|
1647
1653
|
setId: (id: string) => void;
|
|
1648
1654
|
updateDataSource: (dataSource: BlazeDataSourceType) => void;
|
|
1655
|
+
setPersonalized: (personalized: BlazePersonalized) => void;
|
|
1649
1656
|
setLabels: (labels: string | string[] | BlazeWidgetLabel, options?: ISetWidgetOptions) => void;
|
|
1650
1657
|
setLabelsPriority: (labelsPriority: string | string[] | BlazeWidgetLabel[], options?: ISetWidgetOptions) => void;
|
|
1651
1658
|
setContentIds: (storyIds: string[], options?: ISetWidgetOptions) => void;
|
|
@@ -1679,6 +1686,7 @@ declare const AnalyticsServiceClass_base: {
|
|
|
1679
1686
|
declare abstract class AnalyticsServiceClass extends AnalyticsServiceClass_base implements IService {
|
|
1680
1687
|
events: AnalyticsEvent[];
|
|
1681
1688
|
uaParsed?: IDevice;
|
|
1689
|
+
eventSessionCounter: number;
|
|
1682
1690
|
init(): Promise<void>;
|
|
1683
1691
|
sendAnalyticsData(): Promise<void>;
|
|
1684
1692
|
bulkEvent(body: Partial<AnalyticsEvent>[]): Promise<any>;
|
|
@@ -1716,6 +1724,7 @@ declare abstract class ApiServiceClass extends ApiServiceClass_base implements I
|
|
|
1716
1724
|
storyIds: string[];
|
|
1717
1725
|
orderType?: OrderType;
|
|
1718
1726
|
showLiveFirst?: boolean;
|
|
1727
|
+
personalized?: BlazePersonalized;
|
|
1719
1728
|
}): Promise<{
|
|
1720
1729
|
result: IStory[];
|
|
1721
1730
|
httpStatus?: number | undefined;
|
|
@@ -1728,6 +1737,7 @@ declare abstract class ApiServiceClass extends ApiServiceClass_base implements I
|
|
|
1728
1737
|
maxItems?: number;
|
|
1729
1738
|
labelsPriority?: string;
|
|
1730
1739
|
showLiveFirst?: boolean;
|
|
1740
|
+
personalized?: BlazePersonalized;
|
|
1731
1741
|
}): Promise<{
|
|
1732
1742
|
result: IStory[];
|
|
1733
1743
|
httpStatus?: number | undefined;
|
|
@@ -3064,7 +3074,7 @@ export type ComponentsElementType = 'blaze-alert' | 'blaze-chip' | 'blaze-image'
|
|
|
3064
3074
|
export type WidgetElementType = 'blaze-sdk';
|
|
3065
3075
|
export type ElementType = WidgetElementType | ComponentsElementType;
|
|
3066
3076
|
|
|
3067
|
-
export type EnvironmentType = 'prod' | 'uat';
|
|
3077
|
+
export type EnvironmentType = 'prod' | 'uat' | 'local';
|
|
3068
3078
|
|
|
3069
3079
|
export type StoryGestureType = 'Swipe Up' | 'CTA Click';
|
|
3070
3080
|
export type MomentGestureType = 'CTA Click';
|
|
@@ -3085,6 +3095,7 @@ export * from './item.type';
|
|
|
3085
3095
|
export * from './label.type';
|
|
3086
3096
|
export * from './locale.type';
|
|
3087
3097
|
export * from './order.type';
|
|
3098
|
+
export * from './personalized.type';
|
|
3088
3099
|
export * from './platform.type';
|
|
3089
3100
|
export * from './play.type';
|
|
3090
3101
|
export * from './player-layout.type';
|
|
@@ -3121,6 +3132,18 @@ export type LocaleDirectionType = 'LTR' | 'RTL';
|
|
|
3121
3132
|
export type OrderType = 'Manual' | 'AtoZ' | 'ZtoA' | 'RecentlyUpdatedFirst' | 'RecentlyUpdatedLast' | 'RecentlyCreatedFirst' | 'RecentlyCreatedLast';
|
|
3122
3133
|
export type ContentOrderType = 'LIVE_CHIP' | 'STORY_TITLE' | 'PUBLISHED_DATE';
|
|
3123
3134
|
|
|
3135
|
+
type BlazePersonalizedIds = {
|
|
3136
|
+
type: 'ids';
|
|
3137
|
+
teams?: Array<string>;
|
|
3138
|
+
players?: Array<string>;
|
|
3139
|
+
};
|
|
3140
|
+
type BlazePersonalizedLabels = {
|
|
3141
|
+
type: 'labels';
|
|
3142
|
+
labelsFilterExpression: string | string[] | BlazeWidgetLabel;
|
|
3143
|
+
labelsPriority: string | string[] | BlazeWidgetLabel[];
|
|
3144
|
+
};
|
|
3145
|
+
export type BlazePersonalized = BlazePersonalizedIds | BlazePersonalizedLabels;
|
|
3146
|
+
|
|
3124
3147
|
export type Platform = 'mobile' | 'tablet' | 'desktop';
|
|
3125
3148
|
|
|
3126
3149
|
export declare const PlayTypeArray: readonly ["Widget", "Share", "SingleContent", "AutoAdvance"];
|
|
@@ -3244,11 +3267,29 @@ export * from './common.utils';
|
|
|
3244
3267
|
export * from './country-location.utils';
|
|
3245
3268
|
export * from './guard.utils';
|
|
3246
3269
|
export * from './helper';
|
|
3270
|
+
export * from './personalized.utils';
|
|
3247
3271
|
export * from './regex.utils';
|
|
3248
3272
|
export * from './stopwatch';
|
|
3249
3273
|
export * from './position.utils';
|
|
3250
3274
|
export * from './ad-info.utils';
|
|
3251
3275
|
|
|
3276
|
+
export declare function getPersonalizedParamsForRequest(personalized?: BlazePersonalized): {
|
|
3277
|
+
PersonalPlayers?: undefined;
|
|
3278
|
+
PersonalTeams?: undefined;
|
|
3279
|
+
PersonalLabelFilterExpression?: undefined;
|
|
3280
|
+
PersonalLabelPriority?: undefined;
|
|
3281
|
+
} | {
|
|
3282
|
+
PersonalPlayers: string[] | undefined;
|
|
3283
|
+
PersonalTeams: string[] | undefined;
|
|
3284
|
+
PersonalLabelFilterExpression?: undefined;
|
|
3285
|
+
PersonalLabelPriority?: undefined;
|
|
3286
|
+
} | {
|
|
3287
|
+
PersonalLabelFilterExpression: string | string[] | import("../classes").BlazeWidgetLabel;
|
|
3288
|
+
PersonalLabelPriority: string | string[] | import("../classes").BlazeWidgetLabel[];
|
|
3289
|
+
PersonalPlayers?: undefined;
|
|
3290
|
+
PersonalTeams?: undefined;
|
|
3291
|
+
};
|
|
3292
|
+
|
|
3252
3293
|
export declare function calculatePosition(statusIndicatorPosition: PositionType): {
|
|
3253
3294
|
isOutside: boolean;
|
|
3254
3295
|
isInside: boolean;
|
|
@@ -3622,7 +3663,7 @@ export declare class BlazeVideoNavigationOverlay extends HTMLElement {
|
|
|
3622
3663
|
loader: BlazeLoader;
|
|
3623
3664
|
private _platform;
|
|
3624
3665
|
constructor();
|
|
3625
|
-
static get observedAttributes(): ("
|
|
3666
|
+
static get observedAttributes(): ("layout" | "hidden" | "has-next" | "has-prev")[];
|
|
3626
3667
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
3627
3668
|
private applyAttribute;
|
|
3628
3669
|
connectedCallback(): void;
|
|
@@ -4052,6 +4093,7 @@ export declare class BlazeWidgetEmbeddedStory extends BaseWidget implements IWid
|
|
|
4052
4093
|
bindedOnPlayerDismissed: (e: Event) => void;
|
|
4053
4094
|
private get theme();
|
|
4054
4095
|
constructor();
|
|
4096
|
+
setPersonalized(personalized: BlazePersonalized): void;
|
|
4055
4097
|
static get observedAttributes(): string[];
|
|
4056
4098
|
connectedCallback(): void;
|
|
4057
4099
|
disconnectedCallback(): void;
|
|
@@ -4204,6 +4246,7 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
4204
4246
|
onResizeEvent: (this: Window, ev: UIEvent) => void;
|
|
4205
4247
|
shouldReloadWhenPlayerIsClosed: boolean;
|
|
4206
4248
|
shouldReloadData: boolean;
|
|
4249
|
+
private personalized?;
|
|
4207
4250
|
get refElement(): ShadowRoot | BlazeWidgetLayout;
|
|
4208
4251
|
constructor();
|
|
4209
4252
|
connectedCallback(): void;
|
|
@@ -4298,6 +4341,7 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
4298
4341
|
connectWidgets(): void;
|
|
4299
4342
|
get thumbnailShape(): ThumbnailShape;
|
|
4300
4343
|
widgetType(): WidgetType;
|
|
4344
|
+
setPersonalized(personalized?: BlazePersonalized): void;
|
|
4301
4345
|
}
|
|
4302
4346
|
|
|
4303
4347
|
export declare class BlazeWidgetModal extends BaseWidget {
|