@wscsports/blaze-web-sdk 0.1.18 → 0.1.20

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.1.18",
3
+ "version": "0.1.20",
4
4
  "main": "publish/index",
5
5
  "types": "publish/index",
6
6
  "files": [
@@ -2,12 +2,14 @@ export declare function Initialize(apiKey: string, options?: Omit<IBlazeSDKOptio
2
2
  export declare function WidgetRowView(containerId: string, options: IWidgetViewOptions): IWidgetView;
3
3
  export declare function WidgetGridView(containerId: string, options: IWidgetViewOptions): IWidgetView;
4
4
  export declare function Theme(theme: ThemeType): IWidgetTheme;
5
+ export declare function addDelegateListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
5
6
  export declare const Delegations: typeof Delegation;
6
7
  declare const _default: {
7
8
  Initialize: typeof Initialize;
8
9
  WidgetGridView: typeof WidgetGridView;
9
10
  WidgetRowView: typeof WidgetRowView;
10
11
  Theme: typeof Theme;
12
+ addDelegateListener: typeof addDelegateListener;
11
13
  Delegations: typeof Delegation;
12
14
  };
13
15
  export default _default;
@@ -45,7 +47,7 @@ export declare abstract class BaseWidget extends HTMLElement {
45
47
  protected _animationDuration: number;
46
48
  constructor();
47
49
  getAttribute<T = boolean | string | number>(qualifiedName: string): T;
48
- setStyle<T extends keyof CSSStyleDeclaration>(styles: Record<T, string | null>): void;
50
+ setStyle<T extends keyof CSSStyleDeclaration | string>(styles: Record<T, string | null>): void;
49
51
  }
50
52
 
51
53
  export declare class EventsListener {
@@ -350,7 +352,11 @@ export declare enum ErrorCode {
350
352
  FailedLoadingMoments = 110,
351
353
  FailedEnrichMoments = 111,
352
354
  VisualViewportScaled = 150,
353
- VideoError = 200
355
+ VideoError = 200,
356
+ PreviewStoryNotFound = 300,
357
+ PreviewStoryLoadFailed = 301,
358
+ PreviewMomentNotFound = 310,
359
+ PreviewMomentLoadFailed = 311
354
360
  }
355
361
 
356
362
  export declare enum Delegation {
@@ -715,7 +721,9 @@ declare abstract class ApiServiceClass extends ApiServiceClass_base implements I
715
721
  totalItems: number;
716
722
  result: IMoment[];
717
723
  }>>;
718
- preview(storyId: string, publishedOnly?: boolean): Promise<IResponse<any>>;
724
+ preview(storyId: string, publishedOnly?: boolean): Promise<IResponse<IStory & {
725
+ status: number;
726
+ }>>;
719
727
  preivewMoment(momentId: string, publishedOnly?: boolean): Promise<IResponse<any>>;
720
728
  analyticsEvents(body: Partial<AnalyticsEvent>[]): Promise<IResponse<unknown>>;
721
729
  }
@@ -745,7 +753,7 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
745
753
  get analyticsApiUrl(): string;
746
754
  get apiUrl(): string;
747
755
  get apiKey(): string;
748
- get previewUrl(): string | undefined;
756
+ get previewUrl(): string;
749
757
  get previewMomentsUrl(): string;
750
758
  }
751
759
  export declare const ConfigService: ConfigServiceClass;
@@ -1562,7 +1570,7 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
1562
1570
  widgetType(): 'row' | 'grid';
1563
1571
  }
1564
1572
 
1565
- export declare class BlazeWidgetModal extends HTMLElement {
1573
+ export declare class BlazeWidgetModal extends BaseWidget {
1566
1574
  isOpen: boolean;
1567
1575
  constructor();
1568
1576
  connectedCallback(): void;