@wscsports/blaze-web-sdk 0.1.18 → 0.1.19

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.19",
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 {
@@ -65,7 +67,6 @@ export * from './events-listener';
65
67
  export * from './long-press.handler';
66
68
  export * from './singleton.class';
67
69
  export * from './throttle';
68
- export * from './url';
69
70
 
70
71
  export interface ILongPressHandlerOptions {
71
72
  onStart: () => void;
@@ -99,13 +100,6 @@ export interface ResizeEvent extends Event {
99
100
  }
100
101
  export declare function throttle<T extends Event>(func: EventHandler<T>, delay: number): (event: T) => void;
101
102
 
102
- export declare class URLManager {
103
- static isUpdateLocationByScript: boolean;
104
- static isBackWasCalled: boolean;
105
- static resetLocation(): void;
106
- static updateLocationStoryHash(story?: IStory): void;
107
- }
108
-
109
103
  export declare class BlazeAlert extends BaseWidget {
110
104
  titleContainer: HTMLDivElement;
111
105
  textContainer: HTMLDivElement;
@@ -139,8 +133,6 @@ export declare class BlazeDrawer extends BaseWidget {
139
133
  isOpen: boolean;
140
134
  drawerOptions: IDrawerOptions | undefined;
141
135
  drawerComponent: BaseWidget | undefined;
142
- onOpen: (() => void) | undefined;
143
- onClose: (() => void) | undefined;
144
136
  constructor();
145
137
  private get drawerContainerHeight();
146
138
  static get observedAttributes(): string[];
@@ -350,7 +342,11 @@ export declare enum ErrorCode {
350
342
  FailedLoadingMoments = 110,
351
343
  FailedEnrichMoments = 111,
352
344
  VisualViewportScaled = 150,
353
- VideoError = 200
345
+ VideoError = 200,
346
+ PreviewStoryNotFound = 300,
347
+ PreviewStoryLoadFailed = 301,
348
+ PreviewMomentNotFound = 310,
349
+ PreviewMomentLoadFailed = 311
354
350
  }
355
351
 
356
352
  export declare enum Delegation {
@@ -449,7 +445,7 @@ export declare const replayWhiteSvg = "data:image/svg+xml;charset=utf-8,<svg xml
449
445
  export declare const likeSvg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAVSSURBVHgBzVltTFtVGH5PvzbaLq6fTOjccmlaCKwRN/zAGCVb2NABJsuSQZaYuO3P4o/FxUEYaAS3jKiBBEUNmM0Zrcbwh83InIqb8wcOJpYSoKHFBCEW2kImbek67vGcknbQ9ePe0sCeX/fe8957nr7nvM9537cIUkRO3p4CxAKzhKAAIWAQIBlGIKNjCIMXA+vEGM0ggAkyPmQf6bdCCkB8j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3nrHTecCjH29YNxspiv1zXxBSvztQEkgP7ID/xaW5P7ErcgfX487urDR4+HlD18YL04PyrhCUbIeyUhWFVT/w9uFuX9XH1JZOxDkAluPR75pslisXjU0Qk4/JkDI0Rd3RXbv90OV239la7dH39mBDFgoxHz1QZ+4jBQaKWlpakcfRNLxAZtqYBrD+TuYlNj/9xmoO3krRjzuIcCeQrGEQT6SkzNlwdGdQ/1xfau261SuVoMWK9iMLfUHvW/98hkwW69VR8Vk6Bjp4LKMAlhbmup2Rt4M/hsRtGzly1OSQK4QDQ7FO7iYIIhuxE2p9nMhpa5MIpAt7a1VJcMJh9yPojuZgUt200EazppB5gE59i0lLlVP6QeCEBiGps8eHA0ApJMH9Bqzgk9ektj47ApNqSG8wFRvtEPqZfutxgxOOQ9BiHERBH0B5eczkgS9hOEjOOHTgRifUGeJ8MK4f6fILxNXi9tw8QPIvA/106DnSOL69cAAAAASUVORK5CYII=";
451
447
  export declare const IconLink = "data:image/svg+xml;charset=utf-8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"10\" viewBox=\"0 0 20 10\" fill=\"none\"><path d=\"M9 10H5C3.61667 10 2.4375 9.5125 1.4625 8.5375C0.4875 7.5625 0 6.38333 0 5C0 3.61667 0.4875 2.4375 1.4625 1.4625C2.4375 0.4875 3.61667 0 5 0H9V2H5C4.16667 2 3.45833 2.29167 2.875 2.875C2.29167 3.45833 2 4.16667 2 5C2 5.83333 2.29167 6.54167 2.875 7.125C3.45833 7.70833 4.16667 8 5 8H9V10ZM6 6V4H14V6H6ZM11 10V8H15C15.8333 8 16.5417 7.70833 17.125 7.125C17.7083 6.54167 18 5.83333 18 5C18 4.16667 17.7083 3.45833 17.125 2.875C16.5417 2.29167 15.8333 2 15 2H11V0H15C16.3833 0 17.5625 0.4875 18.5375 1.4625C19.5125 2.4375 20 3.61667 20 5C20 6.38333 19.5125 7.5625 18.5375 8.5375C17.5625 9.5125 16.3833 10 15 10H11Z\" fill=\"white\" fill-opacity=\"0.92\"/></svg>";
452
- export declare const IconGlobe = "data:image/svg+xml;charset=utf-8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"><path d=\"M10 20C8.61667 20 7.31667 19.7375 6.1 19.2125C4.88333 18.6875 3.825 17.975 2.925 17.075C2.025 16.175 1.3125 15.1167 0.7875 13.9C0.2625 12.6833 0 11.3833 0 10C0 8.61667 0.2625 7.31667 0.7875 6.1C1.3125 4.88333 2.025 3.825 2.925 2.925C3.825 2.025 4.88333 1.3125 6.1 0.7875C7.31667 0.2625 8.61667 0 10 0C11.3833 0 12.6833 0.2625 13.9 0.7875C15.1167 1.3125 16.175 2.025 17.075 2.925C17.975 3.825 18.6875 4.88333 19.2125 6.1C19.7375 7.31667 20 8.61667 20 10C20 11.3833 19.7375 12.6833 19.2125 13.9C18.6875 15.1167 17.975 16.175 17.075 17.075C16.175 17.975 15.1167 18.6875 13.9 19.2125C12.6833 19.7375 11.3833 20 10 20ZM9 17.95V16C8.45 16 7.97917 15.8042 7.5875 15.4125C7.19583 15.0208 7 14.55 7 14V13L2.2 8.2C2.15 8.5 2.10417 8.8 2.0625 9.1C2.02083 9.4 2 9.7 2 10C2 12.0167 2.6625 13.7833 3.9875 15.3C5.3125 16.8167 6.98333 17.7 9 17.95ZM15.9 15.4C16.2333 15.0333 16.5333 14.6375 16.8 14.2125C17.0667 13.7875 17.2875 13.3458 17.4625 12.8875C17.6375 12.4292 17.7708 11.9583 17.8625 11.475C17.9542 10.9917 18 10.5 18 10C18 8.36667 17.5458 6.875 16.6375 5.525C15.7292 4.175 14.5167 3.2 13 2.6V3C13 3.55 12.8042 4.02083 12.4125 4.4125C12.0208 4.80417 11.55 5 11 5H9V7C9 7.28333 8.90417 7.52083 8.7125 7.7125C8.52083 7.90417 8.28333 8 8 8H6V10H12C12.2833 10 12.5208 10.0958 12.7125 10.2875C12.9042 10.4792 13 10.7167 13 11V14H14C14.4333 14 14.825 14.1292 15.175 14.3875C15.525 14.6458 15.7667 14.9833 15.9 15.4Z\" fill=\"%23131313\"/></svg>";
448
+ export declare const IconGlobe = "data:image/svg+xml;charset=utf-8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"><path d=\"M10 20C8.61667 20 7.31667 19.7375 6.1 19.2125C4.88333 18.6875 3.825 17.975 2.925 17.075C2.025 16.175 1.3125 15.1167 0.7875 13.9C0.2625 12.6833 0 11.3833 0 10C0 8.61667 0.2625 7.31667 0.7875 6.1C1.3125 4.88333 2.025 3.825 2.925 2.925C3.825 2.025 4.88333 1.3125 6.1 0.7875C7.31667 0.2625 8.61667 0 10 0C11.3833 0 12.6833 0.2625 13.9 0.7875C15.1167 1.3125 16.175 2.025 17.075 2.925C17.975 3.825 18.6875 4.88333 19.2125 6.1C19.7375 7.31667 20 8.61667 20 10C20 11.3833 19.7375 12.6833 19.2125 13.9C18.6875 15.1167 17.975 16.175 17.075 17.075C16.175 17.975 15.1167 18.6875 13.9 19.2125C12.6833 19.7375 11.3833 20 10 20ZM9 17.95V16C8.45 16 7.97917 15.8042 7.5875 15.4125C7.19583 15.0208 7 14.55 7 14V13L2.2 8.2C2.15 8.5 2.10417 8.8 2.0625 9.1C2.02083 9.4 2 9.7 2 10C2 12.0167 2.6625 13.7833 3.9875 15.3C5.3125 16.8167 6.98333 17.7 9 17.95ZM15.9 15.4C16.2333 15.0333 16.5333 14.6375 16.8 14.2125C17.0667 13.7875 17.2875 13.3458 17.4625 12.8875C17.6375 12.4292 17.7708 11.9583 17.8625 11.475C17.9542 10.9917 18 10.5 18 10C18 8.36667 17.5458 6.875 16.6375 5.525C15.7292 4.175 14.5167 3.2 13 2.6V3C13 3.55 12.8042 4.02083 12.4125 4.4125C12.0208 4.80417 11.55 5 11 5H9V7C9 7.28333 8.90417 7.52083 8.7125 7.7125C8.52083 7.90417 8.28333 8 8 8H6V10H12C12.2833 10 12.5208 10.0958 12.7125 10.2875C12.9042 10.4792 13 10.7167 13 11V14H14C14.4333 14 14.825 14.1292 15.175 14.3875C15.525 14.6458 15.7667 14.9833 15.9 15.4Z\" fill=\"#131313\"/></svg>";
453
449
 
454
450
  export type EnvironmentType = 'prod' | 'uat';
455
451
  export interface IBlazeSDKOptions {
@@ -715,7 +711,9 @@ declare abstract class ApiServiceClass extends ApiServiceClass_base implements I
715
711
  totalItems: number;
716
712
  result: IMoment[];
717
713
  }>>;
718
- preview(storyId: string, publishedOnly?: boolean): Promise<IResponse<any>>;
714
+ preview(storyId: string, publishedOnly?: boolean): Promise<IResponse<IStory & {
715
+ status: number;
716
+ }>>;
719
717
  preivewMoment(momentId: string, publishedOnly?: boolean): Promise<IResponse<any>>;
720
718
  analyticsEvents(body: Partial<AnalyticsEvent>[]): Promise<IResponse<unknown>>;
721
719
  }
@@ -745,7 +743,7 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
745
743
  get analyticsApiUrl(): string;
746
744
  get apiUrl(): string;
747
745
  get apiKey(): string;
748
- get previewUrl(): string | undefined;
746
+ get previewUrl(): string;
749
747
  get previewMomentsUrl(): string;
750
748
  }
751
749
  export declare const ConfigService: ConfigServiceClass;
@@ -883,15 +881,11 @@ declare const VideoCacheServiceClass_base: {
883
881
  declare abstract class VideoCacheServiceClass extends VideoCacheServiceClass_base implements IService {
884
882
  private cache;
885
883
  private cacheName;
886
- private ongoingRequests;
887
884
  constructor();
888
885
  init(): Promise<void>;
889
886
  private fetchAndCache;
890
- abortRequest(url: string): Promise<void>;
891
- abortAllRequests(): Promise<void>;
892
887
  addCacheVideoByUrl(url: string): Promise<Response>;
893
888
  getCacheVideoByUrl(url: string): Promise<string>;
894
- isFetchingVideo(url: string): boolean;
895
889
  isVideoCached(url: string): Promise<boolean>;
896
890
  deleteCacheVideoByUrl(url: string): Promise<boolean>;
897
891
  clearAllCache(): Promise<void>;
@@ -906,14 +900,11 @@ declare const VideoPlayerServiceClass_base: {
906
900
  declare abstract class VideoPlayerServiceClass extends VideoPlayerServiceClass_base implements IService {
907
901
  private _isMuted;
908
902
  private _isPlaying;
909
- private _isNavigating;
910
903
  init(): Promise<void>;
911
904
  get isMuted(): boolean;
912
905
  set isMuted(value: boolean);
913
906
  get isPlaying(): boolean;
914
907
  set isPlaying(value: boolean);
915
- get isNavigating(): boolean;
916
- set isNavigating(value: boolean);
917
908
  }
918
909
  export declare const VideoPlayerService: VideoPlayerServiceClass;
919
910
 
@@ -1362,8 +1353,6 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
1362
1353
 
1363
1354
  export type ClientPlatform = 'Web';
1364
1355
 
1365
- export type Direction = 'UP' | 'DOWN' | 'RIGHT' | 'LEFT';
1366
-
1367
1356
  export type ComponentsElementType = 'blaze-alert' | 'blaze-toast' | 'blaze-chip' | 'blaze-image';
1368
1357
  export type WidgetElementType = 'blaze-sdk';
1369
1358
  export type ElementType = WidgetElementType | ComponentsElementType;
@@ -1372,7 +1361,6 @@ export type FetchPriorityType = 'low' | 'high' | 'auto';
1372
1361
 
1373
1362
  export * from './attribute-parser';
1374
1363
  export * from './client-platform.type';
1375
- export * from './direction.type';
1376
1364
  export * from './element.type';
1377
1365
  export * from './fetch-priority.type';
1378
1366
  export * from './order.type';
@@ -1428,11 +1416,8 @@ export * from './chip.utils';
1428
1416
  export * from './common.utils';
1429
1417
  export * from './guard.utils';
1430
1418
  export * from './helper';
1431
- export * from './regex.utils';
1432
1419
  export * from './stopwatch';
1433
1420
 
1434
- export declare const RegexHash: RegExp;
1435
-
1436
1421
  export declare class Stopwatch {
1437
1422
  isRunning: boolean;
1438
1423
  extraTime: number;
@@ -1527,18 +1512,17 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
1527
1512
  reloadTimeout: NodeJS.Timeout | undefined;
1528
1513
  analyticsStack: Record<WidgetAction, boolean>;
1529
1514
  intersectionObserver: IntersectionObserver;
1515
+ onResizeEvent: () => () => void;
1530
1516
  constructor();
1531
- connectedCallback(): void;
1532
- disconnectedCallback(): void;
1533
- set storyIds(value: string);
1534
- attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
1535
- onResizeEvent(): void;
1536
- handlePopState(_event: Event): void;
1537
- addDelegateListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
1517
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
1538
1518
  setLabels(labels: string[]): void;
1539
1519
  getTheme(): IWidgetTheme;
1540
1520
  setTheme(theme: IWidgetTheme): void;
1541
1521
  reload(labels?: string[]): void;
1522
+ connectedCallback(): void;
1523
+ disconnectedCallback(): void;
1524
+ set storyIds(value: string);
1525
+ attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
1542
1526
  setLabel(label: string | BlazeWidgetLabel): void;
1543
1527
  setMaxSize(maxSize: number): void;
1544
1528
  setMaxItemsSize(maxItemsSize: number): void;
@@ -1562,7 +1546,7 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
1562
1546
  widgetType(): 'row' | 'grid';
1563
1547
  }
1564
1548
 
1565
- export declare class BlazeWidgetModal extends HTMLElement {
1549
+ export declare class BlazeWidgetModal extends BaseWidget {
1566
1550
  isOpen: boolean;
1567
1551
  constructor();
1568
1552
  connectedCallback(): void;
@@ -1728,16 +1712,11 @@ export declare class BlazeWidgetSDK extends BaseWidget {
1728
1712
  export declare class BlazeWidgetShareModal extends BaseWidget {
1729
1713
  shareContainer: BlazeDiv;
1730
1714
  shareDrawer: BlazeDrawer;
1731
- onOpen: (() => void) | undefined;
1732
- onClose: (() => void) | undefined;
1733
1715
  constructor();
1734
1716
  connectedCallback(): Promise<void>;
1735
1717
  disconnectedCallback(): void;
1736
1718
  attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
1737
- onDarwerOpen(): void;
1738
- onDrawerClose(): void;
1739
- open(): void;
1740
- close(): void;
1719
+ show(): void;
1741
1720
  renderButtons(): void;
1742
1721
  renderTitle(): void;
1743
1722
  render(): void;
@@ -1800,6 +1779,7 @@ export declare class BlazeWidgetStoryModal extends BlazeWidgetModal {
1800
1779
  exitPopup: HTMLElement;
1801
1780
  exitButton: HTMLElement;
1802
1781
  onClose: (() => void) | undefined;
1782
+ onResize: (this: Window, ev: UIEvent) => any | undefined;
1803
1783
  hammer: HammerManager | null;
1804
1784
  isMultiTouch: boolean;
1805
1785
  constructor(parentWidget: HTMLElement);
@@ -1807,7 +1787,7 @@ export declare class BlazeWidgetStoryModal extends BlazeWidgetModal {
1807
1787
  setStories(stories: IStory[]): void;
1808
1788
  seek(id: string): void;
1809
1789
  onKeyDown(ev: KeyboardEvent): void;
1810
- close(): Promise<void>;
1790
+ close(): void;
1811
1791
  open(): void;
1812
1792
  play(): void;
1813
1793
  connectedCallback(): void;
@@ -1816,7 +1796,6 @@ export declare class BlazeWidgetStoryModal extends BlazeWidgetModal {
1816
1796
  private handlePan;
1817
1797
  private handleDoubleTap;
1818
1798
  private setupHammer;
1819
- handlePinchOut(ev: HammerInput): void;
1820
1799
  private cleanupHammer;
1821
1800
  render(): void;
1822
1801
  }
@@ -1824,6 +1803,7 @@ export declare class BlazeWidgetStoryModal extends BlazeWidgetModal {
1824
1803
  export declare class BlazeWidgetStoryPlayer extends BaseWidget {
1825
1804
  data: any;
1826
1805
  hammer: HammerManager;
1806
+ isNavigationBlocked: boolean;
1827
1807
  widgets: BlazeWidgetStory[];
1828
1808
  container: HTMLElement;
1829
1809
  index: number;
@@ -1832,12 +1812,10 @@ export declare class BlazeWidgetStoryPlayer extends BaseWidget {
1832
1812
  items: BlazeWidgetStory[];
1833
1813
  touchStartX: number;
1834
1814
  touchStartY: number;
1835
- edgeScreenThreshold: number;
1836
- isEdgeThreshold: Boolean;
1837
- isNavigationBlocked: boolean;
1838
1815
  background: HTMLCanvasElement;
1839
1816
  tmpBackground: HTMLCanvasElement;
1840
1817
  onClose: (() => void) | undefined;
1818
+ onResize: (this: Window, ev: UIEvent) => any | undefined;
1841
1819
  listeners: EventsListener;
1842
1820
  backgroundAnimation?: Animation;
1843
1821
  firstTime: boolean;
@@ -1848,10 +1826,10 @@ export declare class BlazeWidgetStoryPlayer extends BaseWidget {
1848
1826
  disconnectedCallback(): void;
1849
1827
  attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
1850
1828
  private setupHammer;
1851
- private isTouchOnScreenEdges;
1852
1829
  private handlePanStart;
1853
1830
  private handlePanMove;
1854
1831
  private handlePanEnd;
1832
+ private updateLocationStoryHash;
1855
1833
  private reverseAnimation;
1856
1834
  private cleanupHammer;
1857
1835
  renderBackground(): void;
@@ -1859,21 +1837,20 @@ export declare class BlazeWidgetStoryPlayer extends BaseWidget {
1859
1837
  fetch(labels: string, ordering?: OrderType): Promise<void>;
1860
1838
  setStories(stories: BlazeWidgetStory[]): void;
1861
1839
  close(): Promise<void>;
1862
- seek(storyId: string): void;
1840
+ seek(id: string): void;
1863
1841
  populatePrev(): Promise<void>;
1864
1842
  populateNext(): Promise<void>;
1865
1843
  resetPosition(): void;
1866
1844
  play(): void;
1867
1845
  clean(): void;
1868
- nextAnimation(): AnimeTimelineInstance | undefined;
1869
- prevAnimation(): AnimeTimelineInstance | undefined;
1846
+ nextAnimation(): AnimeTimelineInstance | null;
1847
+ prevAnimation(): AnimeTimelineInstance | null;
1870
1848
  onAnimationEnd(): void;
1871
1849
  blockInteractionWithUserInterface(): void;
1872
- closeWithAnimation(direction: Direction): void;
1850
+ closeWithAnimation(): void;
1873
1851
  goPrev(): void;
1874
1852
  goNext(): void;
1875
1853
  handleAnimation(distance: number, story: BlazeWidgetStory, currentAnimation?: AnimeInstance | null): void;
1876
- onSmallGestures(currentAnimation: AnimeInstance, currentStory: BlazeWidgetStory): void;
1877
1854
  onKeyDown(ev: KeyboardEvent): boolean;
1878
1855
  render(): void;
1879
1856
  }
@@ -1952,7 +1929,7 @@ export declare class BlazeWidgetStoryVideo extends BlazeWidgetStoryBase {
1952
1929
  constructor();
1953
1930
  setData(data: IPage): void;
1954
1931
  loadPoster(): void;
1955
- load(): Promise<void>;
1932
+ load(): void;
1956
1933
  display(): void;
1957
1934
  hide(): void;
1958
1935
  unload(): Promise<void>;
@@ -2036,7 +2013,6 @@ export declare class BlazeWidgetStory extends HTMLElement {
2036
2013
  play(): void;
2037
2014
  event(action: StoryAction, data: Partial<StoryEvent>, label?: string | undefined): void;
2038
2015
  connectedCallback(): void;
2039
- onShareModalClose(): void;
2040
2016
  onVisibilityChange(): void;
2041
2017
  onBlur(): void;
2042
2018
  onFocus(): void;