@wscsports/blaze-web-sdk 0.0.108 → 0.0.110

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wscsports/blaze-web-sdk",
3
- "version": "0.0.108",
3
+ "version": "0.0.110",
4
4
  "main": "publish/index",
5
5
  "types": "publish/index",
6
6
  "files": [
@@ -9,7 +9,7 @@
9
9
  "scripts": {
10
10
  "start:dev": "webpack --config webpack.config.dev.js && webpack-dev-server --config webpack.config.dev",
11
11
  "build:dev": "webpack --config webpack.config.dev.js",
12
- "build:prod": "webpack --config webpack.config.prod.js",
12
+ "build:prod": "webpack --config webpack.config.prod.js",
13
13
  "publish:npm": "npm publish --access public --tag latest"
14
14
  },
15
15
  "devDependencies": {
@@ -433,6 +433,7 @@ export interface IAPIOptions {
433
433
  }
434
434
  export interface IRequestOptions {
435
435
  init?: RequestInit;
436
+ baseUrl?: string;
436
437
  urlSearchParams?: {};
437
438
  }
438
439
  export declare class API {
@@ -681,7 +682,7 @@ export default interface IntersectionObservable {
681
682
 
682
683
  export interface IResponse<T = any> {
683
684
  data: T;
684
- error: Error;
685
+ error?: Error;
685
686
  }
686
687
 
687
688
  export interface IService {
@@ -875,23 +876,19 @@ declare const BlazeApiServiceClass_base: {
875
876
  declare abstract class BlazeApiServiceClass extends BlazeApiServiceClass_base implements IService {
876
877
  api: API;
877
878
  init(): Promise<void>;
878
- getStories(labels: string, orderType: OrderType, maxItemsSize?: number): Promise<import("../interfaces").IResponse<{
879
+ getStories(labels: string, orderType: OrderType, maxItemsSize?: number): Promise<IResponse<{
879
880
  assetsExpiryTime: string;
880
881
  totalItems: number;
881
882
  result: IStory[];
882
883
  }>>;
883
- getShorts(labels: string, orderType: OrderType, maxItemsSize?: number): Promise<import("../interfaces").IResponse<{
884
+ getShorts(labels: string, orderType: OrderType, maxItemsSize?: number): Promise<IResponse<{
884
885
  assetsExpiryTime: string;
885
886
  totalItems: number;
886
887
  result: IMoment[];
887
888
  }>>;
888
- preview(storyId: string, publishedOnly?: boolean): Promise<import("../interfaces").IResponse<IStory[]>>;
889
- preivewMoment(momentId: string, publishedOnly?: boolean): Promise<import("../interfaces").IResponse<{
890
- assetsExpiryTime: string;
891
- totalItems: number;
892
- result: IMoment[];
893
- }>>;
894
- analyticsEvents(body: Partial<AnalyticsEvent>[]): Promise<import("../interfaces").IResponse<unknown>>;
889
+ preview(storyId: string, publishedOnly?: boolean): Promise<IResponse<any>>;
890
+ preivewMoment(momentId: string, publishedOnly?: boolean): Promise<IResponse<any>>;
891
+ analyticsEvents(body: Partial<AnalyticsEvent>[]): Promise<IResponse<unknown>>;
895
892
  }
896
893
  export declare const ApiService: BlazeApiServiceClass;
897
894
 
@@ -1216,7 +1213,6 @@ export declare class BlazeWidgetItem extends BaseHTMLElement {
1216
1213
  modal: BlazeWidgetModal | undefined;
1217
1214
  thumbnailType: string | undefined;
1218
1215
  theme: IWidgetTheme;
1219
- labelWidth: number;
1220
1216
  data: IStory | IMoment | undefined;
1221
1217
  onClick: (() => void) | undefined;
1222
1218
  chip: HTMLElement;