@wscsports/blaze-web-sdk 0.0.100

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.
@@ -0,0 +1,1999 @@
1
+ export interface IAttributeParser {
2
+ getIntAttribute(key: string, defaultValue?: number): number | undefined;
3
+ getFloatAttribute(key: string, defaultValue?: number): number | undefined;
4
+ getStringAttribute(key: string, defaultValue?: string): string | undefined;
5
+ getBooleanAttribute(key: string, defaultValue?: boolean): boolean | undefined;
6
+ }
7
+ export type GHTMLElement = GConstructor<HTMLElement>;
8
+ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase): {
9
+ new (...args: any[]): {
10
+ getIntAttribute(key: string, defaultValue?: number): number | undefined;
11
+ getFloatAttribute(key: string, defaultValue?: number): number | undefined;
12
+ getStringAttribute(key: string, defaultValue?: string): string | undefined;
13
+ getBooleanAttribute(key: string, defaultValue?: boolean): boolean | undefined;
14
+ accessKey: string;
15
+ readonly accessKeyLabel: string;
16
+ autocapitalize: string;
17
+ dir: string;
18
+ draggable: boolean;
19
+ hidden: boolean;
20
+ inert: boolean;
21
+ innerText: string;
22
+ lang: string;
23
+ readonly offsetHeight: number;
24
+ readonly offsetLeft: number;
25
+ readonly offsetParent: Element | null;
26
+ readonly offsetTop: number;
27
+ readonly offsetWidth: number;
28
+ outerText: string;
29
+ spellcheck: boolean;
30
+ title: string;
31
+ translate: boolean;
32
+ attachInternals(): ElementInternals;
33
+ click(): void;
34
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
35
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
36
+ removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
37
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
38
+ readonly attributes: NamedNodeMap;
39
+ readonly classList: DOMTokenList;
40
+ className: string;
41
+ readonly clientHeight: number;
42
+ readonly clientLeft: number;
43
+ readonly clientTop: number;
44
+ readonly clientWidth: number;
45
+ id: string;
46
+ readonly localName: string;
47
+ readonly namespaceURI: string | null;
48
+ onfullscreenchange: ((this: Element, ev: Event) => any) | null;
49
+ onfullscreenerror: ((this: Element, ev: Event) => any) | null;
50
+ outerHTML: string;
51
+ readonly ownerDocument: Document;
52
+ readonly part: DOMTokenList;
53
+ readonly prefix: string | null;
54
+ readonly scrollHeight: number;
55
+ scrollLeft: number;
56
+ scrollTop: number;
57
+ readonly scrollWidth: number;
58
+ readonly shadowRoot: ShadowRoot | null;
59
+ slot: string;
60
+ readonly tagName: string;
61
+ attachShadow(init: ShadowRootInit): ShadowRoot;
62
+ checkVisibility(options?: CheckVisibilityOptions | undefined): boolean;
63
+ closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
64
+ closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
65
+ closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4] | null;
66
+ closest<E extends Element = Element>(selectors: string): E | null;
67
+ computedStyleMap(): StylePropertyMapReadOnly;
68
+ getAttribute(qualifiedName: string): string | null;
69
+ getAttributeNS(namespace: string | null, localName: string): string | null;
70
+ getAttributeNames(): string[];
71
+ getAttributeNode(qualifiedName: string): Attr | null;
72
+ getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
73
+ getBoundingClientRect(): DOMRect;
74
+ getClientRects(): DOMRectList;
75
+ getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
76
+ getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
77
+ getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
78
+ getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
79
+ getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
80
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
81
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
82
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
83
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
84
+ getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
85
+ hasAttribute(qualifiedName: string): boolean;
86
+ hasAttributeNS(namespace: string | null, localName: string): boolean;
87
+ hasAttributes(): boolean;
88
+ hasPointerCapture(pointerId: number): boolean;
89
+ insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
90
+ insertAdjacentHTML(position: InsertPosition, text: string): void;
91
+ insertAdjacentText(where: InsertPosition, data: string): void;
92
+ matches(selectors: string): boolean;
93
+ releasePointerCapture(pointerId: number): void;
94
+ removeAttribute(qualifiedName: string): void;
95
+ removeAttributeNS(namespace: string | null, localName: string): void;
96
+ removeAttributeNode(attr: Attr): Attr;
97
+ requestFullscreen(options?: FullscreenOptions | undefined): Promise<void>;
98
+ requestPointerLock(): void;
99
+ scroll(options?: ScrollToOptions | undefined): void;
100
+ scroll(x: number, y: number): void;
101
+ scrollBy(options?: ScrollToOptions | undefined): void;
102
+ scrollBy(x: number, y: number): void;
103
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions | undefined): void;
104
+ scrollTo(options?: ScrollToOptions | undefined): void;
105
+ scrollTo(x: number, y: number): void;
106
+ setAttribute(qualifiedName: string, value: string): void;
107
+ setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
108
+ setAttributeNode(attr: Attr): Attr | null;
109
+ setAttributeNodeNS(attr: Attr): Attr | null;
110
+ setPointerCapture(pointerId: number): void;
111
+ toggleAttribute(qualifiedName: string, force?: boolean | undefined): boolean;
112
+ webkitMatchesSelector(selectors: string): boolean;
113
+ readonly baseURI: string;
114
+ readonly childNodes: NodeListOf<ChildNode>;
115
+ readonly firstChild: ChildNode | null;
116
+ readonly isConnected: boolean;
117
+ readonly lastChild: ChildNode | null;
118
+ readonly nextSibling: ChildNode | null;
119
+ readonly nodeName: string;
120
+ readonly nodeType: number;
121
+ nodeValue: string | null;
122
+ readonly parentElement: HTMLElement | null;
123
+ readonly parentNode: ParentNode | null;
124
+ readonly previousSibling: ChildNode | null;
125
+ textContent: string | null;
126
+ appendChild<T extends Node>(node: T): T;
127
+ cloneNode(deep?: boolean | undefined): Node;
128
+ compareDocumentPosition(other: Node): number;
129
+ contains(other: Node | null): boolean;
130
+ getRootNode(options?: GetRootNodeOptions | undefined): Node;
131
+ hasChildNodes(): boolean;
132
+ insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
133
+ isDefaultNamespace(namespace: string | null): boolean;
134
+ isEqualNode(otherNode: Node | null): boolean;
135
+ isSameNode(otherNode: Node | null): boolean;
136
+ lookupNamespaceURI(prefix: string | null): string | null;
137
+ lookupPrefix(namespace: string | null): string | null;
138
+ normalize(): void;
139
+ removeChild<T_2 extends Node>(child: T_2): T_2;
140
+ replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
141
+ readonly ELEMENT_NODE: 1;
142
+ readonly ATTRIBUTE_NODE: 2;
143
+ readonly TEXT_NODE: 3;
144
+ readonly CDATA_SECTION_NODE: 4;
145
+ readonly ENTITY_REFERENCE_NODE: 5;
146
+ readonly ENTITY_NODE: 6;
147
+ readonly PROCESSING_INSTRUCTION_NODE: 7;
148
+ readonly COMMENT_NODE: 8;
149
+ readonly DOCUMENT_NODE: 9;
150
+ readonly DOCUMENT_TYPE_NODE: 10;
151
+ readonly DOCUMENT_FRAGMENT_NODE: 11;
152
+ readonly NOTATION_NODE: 12;
153
+ readonly DOCUMENT_POSITION_DISCONNECTED: 1;
154
+ readonly DOCUMENT_POSITION_PRECEDING: 2;
155
+ readonly DOCUMENT_POSITION_FOLLOWING: 4;
156
+ readonly DOCUMENT_POSITION_CONTAINS: 8;
157
+ readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
158
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
159
+ dispatchEvent(event: Event): boolean;
160
+ ariaAtomic: string | null;
161
+ ariaAutoComplete: string | null;
162
+ ariaBusy: string | null;
163
+ ariaChecked: string | null;
164
+ ariaColCount: string | null;
165
+ ariaColIndex: string | null;
166
+ ariaColSpan: string | null;
167
+ ariaCurrent: string | null;
168
+ ariaDisabled: string | null;
169
+ ariaExpanded: string | null;
170
+ ariaHasPopup: string | null;
171
+ ariaHidden: string | null;
172
+ ariaInvalid: string | null;
173
+ ariaKeyShortcuts: string | null;
174
+ ariaLabel: string | null;
175
+ ariaLevel: string | null;
176
+ ariaLive: string | null;
177
+ ariaModal: string | null;
178
+ ariaMultiLine: string | null;
179
+ ariaMultiSelectable: string | null;
180
+ ariaOrientation: string | null;
181
+ ariaPlaceholder: string | null;
182
+ ariaPosInSet: string | null;
183
+ ariaPressed: string | null;
184
+ ariaReadOnly: string | null;
185
+ ariaRequired: string | null;
186
+ ariaRoleDescription: string | null;
187
+ ariaRowCount: string | null;
188
+ ariaRowIndex: string | null;
189
+ ariaRowSpan: string | null;
190
+ ariaSelected: string | null;
191
+ ariaSetSize: string | null;
192
+ ariaSort: string | null;
193
+ ariaValueMax: string | null;
194
+ ariaValueMin: string | null;
195
+ ariaValueNow: string | null;
196
+ ariaValueText: string | null;
197
+ role: string | null;
198
+ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
199
+ getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
200
+ after(...nodes: (string | Node)[]): void;
201
+ before(...nodes: (string | Node)[]): void;
202
+ remove(): void;
203
+ replaceWith(...nodes: (string | Node)[]): void;
204
+ innerHTML: string;
205
+ readonly nextElementSibling: Element | null;
206
+ readonly previousElementSibling: Element | null;
207
+ readonly childElementCount: number;
208
+ readonly children: HTMLCollection;
209
+ readonly firstElementChild: Element | null;
210
+ readonly lastElementChild: Element | null;
211
+ append(...nodes: (string | Node)[]): void;
212
+ prepend(...nodes: (string | Node)[]): void;
213
+ querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9] | null;
214
+ querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10] | null;
215
+ querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11] | null;
216
+ querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12] | null;
217
+ querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
218
+ querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
219
+ querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
220
+ querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
221
+ querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
222
+ querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
223
+ replaceChildren(...nodes: (string | Node)[]): void;
224
+ readonly assignedSlot: HTMLSlotElement | null;
225
+ readonly attributeStyleMap: StylePropertyMap;
226
+ readonly style: CSSStyleDeclaration;
227
+ contentEditable: string;
228
+ enterKeyHint: string;
229
+ inputMode: string;
230
+ readonly isContentEditable: boolean;
231
+ onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
232
+ onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
233
+ onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
234
+ onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
235
+ onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
236
+ onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
237
+ onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
238
+ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
239
+ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
240
+ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
241
+ oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
242
+ onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
243
+ onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
244
+ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
245
+ oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
246
+ oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
247
+ oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
248
+ oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
249
+ ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
250
+ ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
251
+ ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
252
+ ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
253
+ ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
254
+ ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
255
+ ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
256
+ ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
257
+ ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
258
+ onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
259
+ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
260
+ onerror: OnErrorEventHandler;
261
+ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
262
+ onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
263
+ ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
264
+ oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
265
+ oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
266
+ onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
267
+ onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
268
+ onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
269
+ onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
270
+ onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
271
+ onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
272
+ onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
273
+ onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
274
+ onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
275
+ onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
276
+ onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
277
+ onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
278
+ onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
279
+ onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
280
+ onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
281
+ onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
282
+ onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
283
+ onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
284
+ onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
285
+ onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
286
+ onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
287
+ onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
288
+ onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
289
+ onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
290
+ onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
291
+ onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
292
+ onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
293
+ onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
294
+ onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
295
+ onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
296
+ onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
297
+ onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
298
+ onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
299
+ onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
300
+ onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
301
+ onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
302
+ onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
303
+ onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
304
+ onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
305
+ onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
306
+ onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
307
+ onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
308
+ ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
309
+ ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
310
+ ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
311
+ ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
312
+ ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
313
+ ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
314
+ ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
315
+ ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
316
+ ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
317
+ ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
318
+ onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
319
+ onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
320
+ onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
321
+ onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
322
+ onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
323
+ onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
324
+ onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
325
+ autofocus: boolean;
326
+ readonly dataset: DOMStringMap;
327
+ nonce?: string | undefined;
328
+ tabIndex: number;
329
+ blur(): void;
330
+ focus(options?: FocusOptions | undefined): void;
331
+ };
332
+ } & TBase;
333
+
334
+ export declare class BlazeData extends HTMLElement {
335
+ static store: any;
336
+ static userId: string;
337
+ static sessionId: string;
338
+ static onBlazeDatabaseServiceOpen(): Promise<void>;
339
+ static enrichStories(stories: IStory[]): Promise<IStory[]>;
340
+ static pageViewed(id: string, storyId: string): Promise<any>;
341
+ static isPageViewed(id: string): Promise<boolean>;
342
+ static getUserId(): Promise<string | null>;
343
+ }
344
+
345
+ export declare class BlazeSDK {
346
+ static isMuted: boolean;
347
+ static isPlaying: boolean;
348
+ static version: string;
349
+ static defaultStoryPlayerStyle: StoryPlayerStyle;
350
+ }
351
+
352
+ export declare class BlazeWidgetLabel {
353
+ value: string;
354
+ constructor(value: string);
355
+ static singleLabel(label: string): BlazeWidgetLabel;
356
+ static mustInclude(...labels: Array<string | BlazeWidgetLabel>): BlazeWidgetLabel;
357
+ static atLeastOneOf(...labels: Array<string | BlazeWidgetLabel>): BlazeWidgetLabel;
358
+ mustInclude(...labels: Array<string | BlazeWidgetLabel>): BlazeWidgetLabel;
359
+ atLeastOneOf(...labels: Array<string | BlazeWidgetLabel>): BlazeWidgetLabel;
360
+ toString(): string;
361
+ }
362
+
363
+ export declare function formatDuration(startDate: Date): string;
364
+ export declare function removeUndefined(value: any): object;
365
+ export declare function isObject(item: any): boolean;
366
+ export declare function mergeDeep(target: any, ...sources: any[]): any;
367
+ export declare function cloneDeep<T>(target: T): T;
368
+ export declare function mergeStyles(element: HTMLElement, styles: Partial<CSSStyleDeclaration>): object;
369
+ export declare function formatDate(date: Date): string;
370
+ export declare function formatUTCDate(date: Date): string;
371
+ export declare function getRandomId(): string;
372
+ export declare function loadImage(src: string, priority?: 'low' | 'high' | 'auto'): Promise<any>;
373
+ export declare function setId(element: HTMLElement, prefix?: string, suffix?: string): void;
374
+ declare let isMobile: boolean;
375
+ declare const isIOS: boolean;
376
+ export { isMobile, isIOS };
377
+ export type DeepPartial<T> = T extends object ? {
378
+ [P in keyof T]?: DeepPartial<T[P]>;
379
+ } : T;
380
+ export declare function flattenObject<T extends Record<string, any>>(obj: T): Record<string, any>;
381
+
382
+ export declare function Initialize(apiKey: string, options?: IBlazeSDKOptions): Promise<void>;
383
+ export declare function WidgetRowView(id: string, options: IWidgetViewOptions): IWidgetView;
384
+ export declare function WidgetGridView(id: string, options: IWidgetViewOptions): IWidgetView;
385
+ export declare function Theme(preset?: string): IWidgetTheme;
386
+ export declare const Delegations: typeof Delegation;
387
+ declare const _default: {
388
+ Initialize: typeof Initialize;
389
+ WidgetGridView: typeof WidgetGridView;
390
+ WidgetRowView: typeof WidgetRowView;
391
+ Theme: typeof Theme;
392
+ Delegations: typeof Delegation;
393
+ };
394
+ export default _default;
395
+
396
+ export declare class BlazeLoader extends HTMLElement {
397
+ constructor();
398
+ connectedCallback(): void;
399
+ }
400
+
401
+ export declare class Stopwatch {
402
+ isRunning: boolean;
403
+ extraTime: number;
404
+ startTime: number;
405
+ constructor();
406
+ start(): void;
407
+ pause(): void;
408
+ durationMS(): number;
409
+ reset(): void;
410
+ }
411
+
412
+ export declare const playSvg = "data:image/svg+xml;charset=utf-8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"48\" height=\"48\" fill=\"none\"><path stroke=\"%23fff\" stroke-linecap=\"round\" stroke-width=\"1.9\" d=\"M17.74 30.34V18.53a1.8 1.8 0 0 1 2.77-1.52l9.23 5.92a1.8 1.8 0 0 1 0 3.03l-9.23 5.9a1.8 1.8 0 0 1-2.77-1.52z\"/></svg>";
413
+ export declare const pauseSvg = "data:image/svg+xml;charset=utf-8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"48\" height=\"48\" fill=\"none\"><path stroke=\"%23fff\" stroke-linecap=\"round\" stroke-width=\"2.1\" d=\"M20.33 16.86v15.4m7.34-15.4v15.4\"/></svg>";
414
+ export declare const unmuteSvg = "data:image/svg+xml;charset=utf-8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"48\" height=\"48\" fill=\"none\"><path fill=\"%23fff\" fill-rule=\"evenodd\" d=\"M27.53 16.97a.95.95 0 0 1 1.1-.76c.75.13 2.28.7 3.63 1.9a7.71 7.71 0 0 1 2.62 5.95c0 1.86-.55 3.32-1.33 4.45l-1.38-1.37c.48-.8.8-1.81.8-3.08 0-2.16-.92-3.59-1.97-4.53a6.43 6.43 0 0 0-2.7-1.45.95.95 0 0 1-.77-1.1z\" clip-rule=\"evenodd\"/><path fill=\"%23fff\" fill-rule=\"evenodd\" d=\"M27.54 21.03a.95.95 0 0 1 1.14-.72c.7.16 2.5 1.19 2.5 3.71 0 .7-.15 1.28-.36 1.76l-1.56-1.52c.05-.6-.07-1.25-.48-1.71-.23-.26-.47-.36-.51-.38 0 0-.01 0 0 0a.95.95 0 0 1-.73-1.14z\" clip-rule=\"evenodd\"/><path fill=\"%23fff\" d=\"M23.4 16.79v1.56l1.9 1.9v-4.27c0-.3-.12-.6-.29-.84a1.59 1.59 0 0 0-.7-.57c-.29-.11-.61-.16-.9-.1-.3.06-.61.21-.82.42l-1.31 1.34 1.33 1.34.8-.78z\"/><path stroke=\"%23fff\" stroke-linecap=\"round\" stroke-width=\"1.9\" d=\"m20.12 18.73-1.76 1.81h-2.59c-.94 0-1.7.76-1.7 1.7v3.45c0 .93.75 1.68 1.67 1.7l2.6.04 4.9 4.9a.65.65 0 0 0 1.1-.46v-9.1\"/><path stroke=\"%23fff\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m17.13 15.36 17.2 17.19\"/><path stroke=\"%23fff\" stroke-linecap=\"round\" stroke-width=\"1.9\" d=\"M28.47 30.84A7.2 7.2 0 0 0 31 29.67\"/></svg>";
415
+ export declare const muteSvg = "data:image/svg+xml;charset=utf-8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"48\" height=\"48\" fill=\"none\"><path stroke=\"%23fff\" stroke-linecap=\"round\" stroke-width=\"1.9\" d=\"M28.47 17.14c1.15.2 5.46 1.98 5.46 6.92 0 4.95-4.39 6.63-5.46 6.83\"/><path stroke=\"%23fff\" stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"M28.47 21.24c.37.08 1.75.79 1.75 2.78 0 1.99-1.4 2.67-1.75 2.74\"/><path stroke=\"%23fff\" stroke-linecap=\"round\" stroke-width=\"1.9\" d=\"m18.36 27.48 4.88 4.9a.65.65 0 0 0 1.1-.46V16.09c0-.58-.7-.87-1.1-.45l-4.88 4.94h-2.59c-.94 0-1.7.77-1.7 1.7v3.45c0 .93.75 1.69 1.67 1.7l2.62.05z\"/></svg>";
416
+ export declare const shareSvg = "data:image/svg+xml;charset=utf-8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"48\" height=\"48\" fill=\"none\"><path fill=\"%23fff\" d=\"m21.1 25.4 9.87-9.86 1.42 1.42-9.86 9.87z\"/><path stroke=\"%23fff\" stroke-linecap=\"round\" stroke-width=\"1.9\" d=\"m16.85 19.82 15.33-4.14c.04 0 .07.03.06.06l-4.02 15.34a1.6 1.6 0 0 1-2.97.33l-2.93-5.73-5.77-2.88a1.6 1.6 0 0 1 .3-2.98z\"/></svg>";
417
+ export declare const nextSvg = "data:image/svg+xml;charset=utf-8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"48\" height=\"48\" fill=\"none\"><path stroke=\"%23000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.4\" d=\"m21.52 16.22 7.75 7.75m-7.75 7.78L29.27 24\"/></svg>";
418
+ export declare const prevSvg = "data:image/svg+xml;charset=utf-8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"48\" height=\"48\" fill=\"none\"><path stroke=\"%23000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.4\" d=\"m21.52 16.22 7.75 7.75m-7.75 7.78L29.27 24\"/></svg>";
419
+ export declare const closeSvg = "data:image/svg+xml;charset=utf-8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"48\" height=\"48\" focusable=\"false\" aria-hidden=\"true\" viewBox=\"0 0 24 24\" data-testid=\"CloseIcon\"><path fill=\"%23fff\" d=\"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"></path></svg>";
420
+ export declare const closeSvgBlack = "data:image/svg+xml;charset=utf-8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"48\" height=\"48\" focusable=\"false\" aria-hidden=\"true\" viewBox=\"0 0 24 24\" data-testid=\"CloseIcon\"><path fill=\"%23000\" d=\"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"></path></svg>";
421
+ export declare const nextStory = "data:image/svg+xml;charset=utf-8,<svg viewBox=\"0 0 48 48\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"> <g> <circle cx=\"24\" cy=\"24\" r=\"20\" fill=\"rgba(1,1,1,0.2)\" fill-opacity=\"0.2\" shape-rendering=\"crispEdges\"/> </g> <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M 25.725 28.753 L 27.705 30.899 L 34.296 23.756 L 27.705 16.613 L 25.725 18.759 L 30.334 23.756 L 25.725 28.753 Z\" fill=\"white\"/> <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M 15.098 29.053 L 17.078 31.199 L 23.669 24.056 L 17.078 16.913 L 15.098 19.059 L 19.707 24.056 L 15.098 29.053 Z\" fill=\"white\"/> </svg>";
422
+ export declare const fullScreenSvg = "data:image/svg+xml;charset=utf-8,<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"> <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M2 11.9999L5 11.9999L5 13.9999L2.15329e-09 13.9999L1.38309e-09 8.99988L2 8.99988L2 11.9999ZM12 1.99988L9 1.99988L9 -0.000122069L14 -0.000122068L14 4.99988L12 4.99988L12 1.99988ZM14 13.9999L9 13.9999L9 11.9999L12 11.9999L12 8.99988L14 8.99988L14 13.9999ZM0 -0.00012207L5 -0.00012207L5 1.99988L2 1.99988L2 4.99988L7.68381e-10 4.99988L0 -0.00012207Z\" fill=\"white\"/> </svg>";
423
+ export declare const rightArrowSvg = "data:image/svg+xml;charset=utf-8,<svg width=\"6\" height=\"10\" viewBox=\"0 0 6 10\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"> <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0 8.49779L1.38618 10L6 5L1.38618 0L0 1.50221L3.22686 5L0 8.49779Z\" fill=\"white\"/> </svg>";
424
+ export declare const replaySvg = "data:image/svg+xml;charset=utf-8,<svg xmlns=\"http://www.w3.org/2000/svg\" focusable=\"false\" aria-hidden=\"true\" viewBox=\"0 0 24 24\" data-testid=\"ReplayIcon\" aria-label=\"fontSize large\"><path d=\"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z\"></path></svg>";
425
+ export declare const replayWhiteSvg = "data:image/svg+xml;charset=utf-8,<svg xmlns=\"http://www.w3.org/2000/svg\" focusable=\"false\" aria-hidden=\"true\" viewBox=\"0 0 24 24\" data-testid=\"ReplayIcon\" aria-label=\"fontSize large\"><path fill=\"white\" d=\"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z\"></path></svg>";
426
+ export declare const likeSvg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAVSSURBVHgBzVltTFtVGH5PvzbaLq6fTOjccmlaCKwRN/zAGCVb2NABJsuSQZaYuO3P4o/FxUEYaAS3jKiBBEUNmM0Zrcbwh83InIqb8wcOJpYSoKHFBCEW2kImbek67vGcknbQ9ePe0sCeX/fe8957nr7nvM9537cIUkRO3p4CxAKzhKAAIWAQIBlGIKNjCIMXA+vEGM0ggAkyPmQf6bdCCkB8jDMzTTK5UlJOXqsMk+E8EQYnBrCiewGz3W6Z4fweFyNKbIty8xEW4UpIBzD8zJVoUoL6/KJyzEI1X48lnZh4FNgls33szi+J7ISJBvV5Tx9jAarJz5BAuoFADgLBs1vVOum8a+rP+GYxENprCkkdFqBdsB7A4PB6AmedTos3ekgQy16m3HRu3chREBWQKzbXxRp6aInpspL99hysNxBkxlruVQQZQ9FeLITXYINA9DJ3qyp7Yd41bQs/iyxxTk6xFoSoCjYYhGQ1jYHwvSh8gSXBKuJmLZeP7N9XojpQWrJti1wu/m9hIdjzY++/137qdfO1ic0QZFKiuUSEPl++hWXv4U3BTuCAzvYPnyx58YXtPp//vs/vvyfNyJBIpRmi3hu3Jmvqm0LH2cctFwqL9hRui7a5crXHcarm7WEu83jdgSoa1SEPhrzHAa3NjfmU3JXvexxNF1psbs9ckD5vaqgxVh85ZPiioy2D3uflGtSfdFwavnjZPBltQ6+5kJQpJBXEi+ZQkCg0uhOQ5KQw6JmMxndqd3/9bddYTf17o37/Ihse6735uzvg9/tfrXiZ0ahVUkrug9Z2R7QNs3OHuPzgfsZmG3ePO/72Q0IgZs413SWkWQkhVwFJ0FB72mg05CjO1DX+5Z5b9spKDAxa7mpUSjQ0POI619w6Husb/QOD8ydeP6pfYpeC1673ziackJxeSnXWkAhj2MUlZZDLpWKX2+Oz2R2+eDYNTc1jib7h8niC9Bs0cIADWJLOCWguB+sIGjCcjYVQQHQQabjYjtrsd9UqpfQAkQ9IEXQf02juuz2YXG4glPEwAiLVmVyML5GIpLJx5vQb+SqlQgQ8Qd/5tO39otlZt//GzVucCBKKMgHZg5zyPLp/PmrvsO54Yvtj333VWcyXJNVG+m5L22fWRPt4NT+QCRWabM7HG41UKievlJXuLN33kvbqD9enVkpJPFBxf774mWwqPx0Xv5wEHhAqtdlUYjhvXL4kwycP1c948hMXpPgSKtS6MuCZznMl+W79W8bKg2UMJdfQ2GwDvkDwj1CpeZzoINIBTyQjSckdrTpsSJkcUAfiMaFKm6XAgJ6CFBCPZDrIUZC6+zeyxFli4sG9kCKiSRaaCuSHD1XqaUJBz2xYCzD+RkgO5Bm+gZKIpNGgV/xKUq+Tp2qHYA0gJ5zTMdLfuZzNaLMIubUVSWGSQYJjJ98chLUCQx9xXl8oTTCZTLKF+5vM8AgBiQLH7RbLTKgmsVgsXgFG3fCogLRGKDl6GSmapOJFM1l3L2ww6N5D4kBkNSNlp9PpDKo0WcFUJSddQLDUabcORlp1q+piz+z0mEqto30+I2wASD+xm0Ru18pnD3UWPK6pO0qNroBcckrD0gjHxMjt89EPY/dmRIvnSXg7YP1g9YoCZ2MNJKxGSJ/mOGlaJi2o1gK6rBMjf8StyRP2B+lyk3xxhpaA5Da9DUxE+9j4MlnWhPrLqQWcYyKdh2CoNZLymb0S1Gs+ImtOiyWprPFqoj8gSo9FzKmPE5ko5DHU7RUudnMhlhLBlWBydxOSiPwFIWBI+aWljadwfRMiwyLv8l8Q7BDL4gnH6EBKycP/05ePdBFq824AAAAASUVORK5CYII=";
427
+ export declare const newShareSvg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAW4SURBVHgBxVl7TFNnFD9fW1FafEB5bVKdF6wwKsYBbhozxnROp+B0bBEmmqDRPTSLWWYWWVyyTZds/+4PtxG3YVw14nR1mxqDG+hU3goo0qXFDR8U2s452lI6+u07F4u1Fri9XOCX0Ps45/b+OOf7zqsERCIxJUNHvMD1EdARAhwBoqIEVCgjFBwUvBZKSScBaGPyJlNLbTOIAAlFOS4uTRURFZbDHlvtIyP4RRQsFKCZ9Lr1JlNjp+DnhCghsclRk9Z5CV0NUoBCuVCiwxJMSs3MoV4oCNViw76YWRS8fXpTa/3ZofTkQwmTUhZs8gIUsH8jDKQGgQiQyZ6ZFp2gvGu91TC4WhDway0ybBeVkbkwFqBgdtjdxRZLoyNQJAumr4qauGfMyCFYFIiInLQrmOgRF6Nb2XpbCGMNAnHB3P0QQU6buYTKYSOME1i8TJ6mnt5913rb6Ls34OLExEWxICf5MM5gJAtwD/iuBwjSME8+2/uxMEpQR0Uq3tvx9qwtRYUJQyqycKZkMdd3qcAPtB4lniUwCqSWZmdFFxbkzUpJ1kb7y77af+DmYM8RlhCYFQ/hruYJ8taTEC8uzVYvX5Yd/8LzWZrw8PAJgXKWo4dNEKrIsFwWyvWK+5znYjAaCWYncsrC/LyEtS+v5HyknE7Xfzf+bL/3xEzNFH/disrztmG/kJBc9qlXYFVCRa49dGHRxgJN1uKF8f4uvHbdaKs4d7HDcOJkx74vPs/wkVUqwxUtrX9YjSazc9gvZ2sRuSkohbmh1TT9Ltz+5iYts8xUf2sdN/xiPvB9WbvRZHIi+SMHSxbNnKGZilbs6rI6MzPmx/944vRNoe/xsnJOgbWcUOd+9MFObaALDT+fMp8+81vHqTNnB9wWSK54957LB7/b96zT5fJ8/U1pOwiFHHRsDZIYIbpbNxUmvJ6fNwfP0YUHD5WZzpRX2G32vz3+eoHkXlu/+ULemlVxKKuqruuAEMAqHk7GImGcEOXJk6fwFY3VanNWVv5+p76h8Z4QcqizasWyGSgvO/aTcOv1U1TJI2OmC0ptRqOpe9681IjZSVxkRvr82PX5eVyaLkXpdvd6TOYbrsHIaZO48B3b39B1ddlc7+/+5CqEAlbmKYTqWu12T/6GrTVaFk52vrtNq0tNic7OWqzBP7Sqw+n0BJLD597aUsTh8WJ1zR0QAZKYmqlnO1lUtby1aINm1cplmieTtWq8RiutXFtQ4e/6qsqTS6LVauWK3HXlgsKLP1jzJaNe4gCR+HJ/aXvOK+sv7Prw0xq8drmcvf7kMBwhOcGxLxAELDIC3jYYIQ6XHeu41tJqm8FcvJyR8t1/dW2OBo+hxD5/UKCdMuxZQQJUnL/Eh5BtLID77j2dmf4YLxOS2oKA9d1tMrb+zCABvi3Vt2PgxpSHOxrjJqa26tr6DlHu5UGbZdjxMyuKXoc+4C4v//XcX3j+zrYt3HNZi3nrHTecCjH29YNxspiv1zXxBSvztQEkgP7ID/xaW5P7ErcgfX487urDR4+HlD18YL04PyrhCUbIeyUhWFVT/w9uFuX9XH1JZOxDkAluPR75pslisXjU0Qk4/JkDI0Rd3RXbv90OV239la7dH39mBDFgoxHz1QZ+4jBQaKWlpakcfRNLxAZtqYBrD+TuYlNj/9xmoO3krRjzuIcCeQrGEQT6SkzNlwdGdQ/1xfau261SuVoMWK9iMLfUHvW/98hkwW69VR8Vk6Bjp4LKMAlhbmup2Rt4M/hsRtGzly1OSQK4QDQ7FO7iYIIhuxE2p9nMhpa5MIpAt7a1VJcMJh9yPojuZgUt200EazppB5gE59i0lLlVP6QeCEBiGps8eHA0ApJMH9Bqzgk9ektj47ApNqSG8wFRvtEPqZfutxgxOOQ9BiHERBH0B5eczkgS9hOEjOOHTgRifUGeJ8MK4f6fILxNXi9tw8QPIvA/106DnSOL69cAAAAASUVORK5CYII=";
428
+
429
+ export type ClientPlatform = 'Web';
430
+ export type OrderType = 'Manual' | 'RecentlyUpdatedFirst' | 'AtoZ' | 'RecentlyUpdatedLast' | 'ZtoA';
431
+
432
+ export interface IAPIOptions {
433
+ baseUrl: string;
434
+ analyticsBaseUrl: string | undefined;
435
+ }
436
+ export interface IRequestOptions {
437
+ init?: RequestInit;
438
+ urlSearchParams?: {};
439
+ }
440
+ export declare class API {
441
+ private readonly options;
442
+ constructor(options: IAPIOptions);
443
+ private get baseUrl();
444
+ private get analyticsBaseUrl();
445
+ get<T>(url: string, options?: IRequestOptions): Promise<IResponse<T>>;
446
+ post<T>(url: string, body?: any | null, options?: IRequestOptions): Promise<IResponse<T>>;
447
+ put<T>(url: string, options?: IRequestOptions): Promise<IResponse<T>>;
448
+ request<T>(url: string, options?: IRequestOptions): Promise<IResponse<T>>;
449
+ }
450
+
451
+ export * from './api';
452
+
453
+ export declare class BaseHTMLElement extends HTMLElement {
454
+ protected _animationDuration: number;
455
+ constructor();
456
+ getAttribute<T = any>(qualifiedName: string): T;
457
+ }
458
+
459
+ export declare class EventsListener {
460
+ listeners: {
461
+ node: Node;
462
+ type: string;
463
+ callback: (ev: any) => any;
464
+ }[];
465
+ add<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
466
+ addAttached<K extends keyof HTMLElementEventMap>(element: HTMLElement, type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
467
+ removeAll(): void;
468
+ }
469
+
470
+ export * from './base-html-element.class';
471
+ export * from './long-press.handler';
472
+ export * from './singleton.class';
473
+ export * from './throttle';
474
+ export * from './events-listener';
475
+
476
+ export interface ILongPressHandlerOptions {
477
+ onStart: () => void;
478
+ onEnd: () => void;
479
+ }
480
+ export declare class LongPressHandler {
481
+ private readonly options;
482
+ private pressTimer?;
483
+ private isDuringPress;
484
+ constructor(options: ILongPressHandlerOptions);
485
+ private startPress;
486
+ private endPress;
487
+ attach(element: HTMLElement): void;
488
+ detach(element: HTMLElement): void;
489
+ }
490
+
491
+ export declare function Singleton<T>(): {
492
+ new (): {};
493
+ _instance: T;
494
+ getInstance(): T;
495
+ };
496
+
497
+ export type EventHandler<E extends Event> = (event: E) => void;
498
+ export interface ResizeEvent extends Event {
499
+ target: Window;
500
+ currentTarget: Window;
501
+ fromElement: Element | null;
502
+ toElement: Element | null;
503
+ readonly width: number;
504
+ readonly height: number;
505
+ }
506
+ export declare function throttle<T extends Event>(func: EventHandler<T>, delay: number): (event: T) => void;
507
+
508
+ export declare enum StoryAction {
509
+ Start = "story_start",
510
+ Exit = "story_exit",
511
+ PageStart = "story_page_start",
512
+ PageExit = "story_page_exit",
513
+ CTAClick = "cta_click",
514
+ Audio = "audio",
515
+ ShareClick = "share_click",
516
+ ShareSelect = "share_select",
517
+ ShareSuccess = "share_success",
518
+ PlaybackPause = "playback_pause",
519
+ PlaybackPlay = "playback_play"
520
+ }
521
+ export declare enum WidgetAction {
522
+ Load = "widget_load",
523
+ Visible = "widget_visible",
524
+ Click = "widget_click"
525
+ }
526
+ type ExposedFields = {
527
+ [key in StoryAction | WidgetAction]?: string[];
528
+ };
529
+ export declare const exposedFieldsByAction: ExposedFields;
530
+
531
+ export declare class Database implements IDatabase {
532
+ private readonly options;
533
+ private static _instances;
534
+ constructor(options: IDatabaseOptions);
535
+ dbInstance: IDBDatabase;
536
+ init(): Promise<void>;
537
+ open(databaseName: string, version: number): Promise<void>;
538
+ createTransaction(tableName: string, mode: 'readonly' | 'readwrite'): IDBObjectStore;
539
+ get<T>(tableName: string, key: string): Promise<IResponse<T>>;
540
+ update<T>(tableName: string, value: any): Promise<IResponse<T>>;
541
+ }
542
+
543
+ export * from './database';
544
+
545
+ export interface ICTA {
546
+ type: 'Deeplink' | 'Web' | null;
547
+ text: string;
548
+ url: string;
549
+ backgroundColor: string;
550
+ textColor: string;
551
+ }
552
+
553
+ export * from './cta.interface';
554
+ export * from './layer-content.interface';
555
+ export * from './layer.interface';
556
+ export * from './moment.interface';
557
+ export * from './page.interface';
558
+ export * from './rendition.interface';
559
+ export * from './story.interface';
560
+ export * from './thumbnail.interface';
561
+
562
+ export interface ILayerContent {
563
+ renditions: IRendition[];
564
+ }
565
+
566
+ export interface ILayer {
567
+ type: 'Video' | 'Image';
568
+ content: ILayerContent;
569
+ }
570
+
571
+ export interface IMoment {
572
+ id: string;
573
+ title: string;
574
+ duration: string;
575
+ updateTime: string;
576
+ createTime: string;
577
+ thumbnails: IThumbnail[];
578
+ likes: number;
579
+ baseLayer: ILayer;
580
+ poster: {
581
+ rendition: IRendition;
582
+ type: string;
583
+ };
584
+ hasViewed: boolean;
585
+ }
586
+
587
+ export interface IPage {
588
+ id: string;
589
+ type: 'Content';
590
+ index: number;
591
+ duration: number;
592
+ isSkippable: boolean;
593
+ thumbnail: IThumbnail;
594
+ baseLayer: ILayer;
595
+ cta: ICTA;
596
+ hasViewed: boolean;
597
+ }
598
+
599
+ export interface IRendition {
600
+ url: string;
601
+ }
602
+
603
+ export interface IStory {
604
+ id: string;
605
+ title: string;
606
+ description: string;
607
+ isLive: boolean;
608
+ updateTime: string;
609
+ thumbnails: IThumbnail[];
610
+ pages: IPage[];
611
+ hasViewed: boolean;
612
+ isAd: boolean;
613
+ }
614
+
615
+ export interface IThumbnail {
616
+ type: 'SquareIcon' | 'VerticalTwoByThree' | 'MainThumbnail';
617
+ rendition: IRendition;
618
+ }
619
+
620
+ export declare enum Delegation {
621
+ onEventTriggered = "blaze-event-triggered",
622
+ onStoryPlayerDidAppear = "blaze-story-player-did-appear",
623
+ onStoryPlayerDismissed = "blaze-story-player-dismissed",
624
+ onStoryLoadStarted = "blaze-story-load-started",
625
+ onStoryLoadComplete = "blaze-story-load-completed",
626
+ onGetAds = "blaze-get-ads",
627
+ onWidgetDataLoadStarted = "blaze-widget-data-load-started",
628
+ onWidgetDataLoadCompleted = "blaze-widget-data-load-completed",
629
+ onWidgetStoryPlayerDismissed = "blaze-widget-story-player-dismissed",
630
+ onWidgetTriggerCTA = "blaze-widget-trigger-CTA"
631
+ }
632
+
633
+ export * from './event';
634
+
635
+ export type EnvironmentType = 'prod' | 'uat';
636
+ export interface IBlazeSDKOptions {
637
+ apiKey: string;
638
+ environment: EnvironmentType;
639
+ sendAnalytics: boolean;
640
+ previewUrl: string;
641
+ previewMomentUrl: string;
642
+ }
643
+ export interface IBlazeSDK {
644
+ Initialize: (apiKey: string) => Promise<void>;
645
+ CreateWidgetView: (id: string, options: IWidgetViewOptions) => any;
646
+ Theme: () => IWidgetTheme;
647
+ }
648
+
649
+ export interface IDatabase {
650
+ dbInstance: IDBDatabase;
651
+ get: <T>(tableName: string, key: string) => Promise<IResponse<T>>;
652
+ update: <T>(tableName: string, value: any) => Promise<IResponse<T>>;
653
+ }
654
+ export interface IDatabaseOptions {
655
+ databaseName: string;
656
+ version: number;
657
+ onSuccess?: (db: IDBDatabase) => Promise<void>;
658
+ onUpgradeNeeded?: (db: IDBDatabase) => Promise<void>;
659
+ onError?: () => Promise<void>;
660
+ }
661
+
662
+ export * from './blaze-sdk.interface';
663
+ export * from './database.interface';
664
+ export * from './response.interface';
665
+ export * from './service.interface';
666
+ export * from './widget-options.interface';
667
+ export * from './widget-view.interface';
668
+
669
+ export default interface IntersectionObservable {
670
+ intersectionObserver: IntersectionObserver;
671
+ handleIntersection(entries: IntersectionObserverEntry[]): void;
672
+ }
673
+
674
+ export interface IResponse<T = any> {
675
+ data: T;
676
+ error: Error;
677
+ }
678
+
679
+ export interface IService {
680
+ init: (...args: any[]) => void;
681
+ }
682
+
683
+ export type ContentType = 'story';
684
+ export interface IWidgetViewOptions {
685
+ labels: string[];
686
+ maxItemsCount?: number;
687
+ maxDisplayItemsCount?: number;
688
+ contentType: ContentType;
689
+ theme?: IWidgetTheme | string;
690
+ }
691
+
692
+ export interface IWidgetView {
693
+ setTheme: (theme: IWidgetTheme) => void;
694
+ getTheme: () => IWidgetTheme;
695
+ setLabels: (labels: string[]) => void;
696
+ reload: (labels?: string[]) => void;
697
+ }
698
+
699
+ export declare enum AdAction {
700
+ Request = "ad_request",
701
+ Load = "ad_load",
702
+ Insert = "ad_insert",
703
+ View = "ad_view",
704
+ Click = "ad_click",
705
+ Exit = "ad_exit",
706
+ Pause = "ad_playback_pause",
707
+ Play = "ad_playback_play"
708
+ }
709
+ export declare enum SessionAction {
710
+ Start = "start",
711
+ End = "end"
712
+ }
713
+ declare const AnalyticsServiceClass_base: {
714
+ new (): {};
715
+ _instance: AnalyticsServiceClass;
716
+ getInstance(): AnalyticsServiceClass;
717
+ };
718
+ declare abstract class AnalyticsServiceClass extends AnalyticsServiceClass_base implements IService {
719
+ events: AnalyticsEvent[];
720
+ inited: boolean;
721
+ enabled: boolean;
722
+ init(enable: boolean): Promise<void>;
723
+ sendLoop(): Promise<void>;
724
+ bulkEvent(body: Partial<AnalyticsEvent>[]): Promise<any>;
725
+ pushSessionEvent(action: SessionAction, body: Partial<WidgetEvent>, label?: string | undefined): void;
726
+ pushStoryEvent(action: StoryAction, body: Partial<StoryEvent>, label?: string | undefined, referrer?: ReferringEventInfo | undefined): void;
727
+ pushWidgetEvent(action: WidgetAction, body: Partial<WidgetEvent>, label?: string | undefined, referrer?: ReferringEventInfo | undefined): void;
728
+ setupEvent(category: Category, action: string, body: object, label?: string | undefined, referrer?: ReferringEventInfo | undefined): AnalyticsEvent;
729
+ }
730
+ export declare const AnalyticsService: AnalyticsServiceClass;
731
+ export declare enum Category {
732
+ Story = "story",
733
+ Widget = "widget",
734
+ Session = "session"
735
+ }
736
+ declare class UserEventInfo {
737
+ 'generated_user_id': string;
738
+ 'user_id': string;
739
+ 'age': number;
740
+ 'gender': string;
741
+ 'locale': string;
742
+ 'user_email_address': string;
743
+ 'ip_address': string;
744
+ 'mac_address': string;
745
+ 'user_type': string;
746
+ 'is_bot': true;
747
+ }
748
+ declare class TechEventInfo {
749
+ 'device_type': string;
750
+ 'device_brand': string;
751
+ 'device_model': string;
752
+ 'network_domain': string;
753
+ 'os': string;
754
+ 'os_version': string;
755
+ 'screen_color': string;
756
+ 'screen_resolution': string;
757
+ 'browser': string;
758
+ 'browser_size': string;
759
+ 'browser_version': string;
760
+ 'app_id': string;
761
+ 'app_version': string;
762
+ 'user_agent': string;
763
+ 'connection_type': string;
764
+ }
765
+ declare class GeoEventInfo {
766
+ 'latitude': string;
767
+ 'longitude': string;
768
+ 'city': string;
769
+ 'city_id': string;
770
+ 'region': string;
771
+ 'region_id': string;
772
+ 'country': string;
773
+ 'sub_continent': string;
774
+ 'sub_continent_code': string;
775
+ 'continent': string;
776
+ 'continent_id': string;
777
+ }
778
+ export declare class ReferringEventInfo {
779
+ 'referrer_page_type': string;
780
+ 'referrer_page_url': string;
781
+ 'referrer_page_domain': string;
782
+ 'session_referrer_page_type': string;
783
+ 'session_referrer_url': string;
784
+ 'session_referrer_domain': string;
785
+ 'session_referrer_type': string;
786
+ 'origin_widget_id': string;
787
+ 'origin_widget_name': string;
788
+ 'origin_widget_type': string;
789
+ 'origin_placement_id': string;
790
+ 'origin_placement_name': string;
791
+ }
792
+ export declare class AnalyticsEvent {
793
+ 'timestamp_utc': string;
794
+ 'timestamp_user_tz': string;
795
+ 'sdk_id': string;
796
+ 'sdk_version': string;
797
+ 'sdk_type': string;
798
+ 'event_category': string;
799
+ 'event_action': string;
800
+ 'event_label': string;
801
+ 'session_id': string;
802
+ 'user': UserEventInfo;
803
+ 'tech': TechEventInfo;
804
+ 'geo': GeoEventInfo;
805
+ 'wsc_internal': {
806
+ customer_name: string;
807
+ customer_id: string;
808
+ };
809
+ 'page': {
810
+ page_url: string;
811
+ };
812
+ 'referring': ReferringEventInfo;
813
+ story: Partial<StoryEvent> | undefined;
814
+ widget: Partial<WidgetEvent> | undefined;
815
+ }
816
+ export declare class StoryEvent {
817
+ 'story_start_id': string;
818
+ 'story_id': string;
819
+ 'story_name': string;
820
+ 'story_page_id': string;
821
+ 'story_page_count': number;
822
+ 'story_page_type': string;
823
+ 'story_page_action_type': string;
824
+ 'story_page_player_name': string;
825
+ 'story_page_game_name': string;
826
+ 'story_page_navigation_type': string;
827
+ 'story_page_navigation_direction': string;
828
+ 'story_start_type': string;
829
+ 'story_exit_type': string;
830
+ 'content_duration_viewd': number;
831
+ 'story_page_duration': number;
832
+ 'story_page_duration_viewd_percent': number;
833
+ 'story_session_id': string;
834
+ 'story_page_index': number;
835
+ 'is_last_page': boolean;
836
+ 'audio_state': boolean;
837
+ 'playback_action_method': 'Press' | 'Release' | 'Click';
838
+ }
839
+ export declare class WidgetEvent {
840
+ 'page_view_id': string;
841
+ 'placement_id': string;
842
+ 'placement_name': string;
843
+ 'placement_distance': string;
844
+ 'widget_id': string;
845
+ 'widget_name': string;
846
+ 'widget_type': string;
847
+ 'widget_size': string;
848
+ 'widget_content_count': number;
849
+ 'content_id': string;
850
+ 'content_name': string;
851
+ 'content_version_id': string;
852
+ 'content_type': string;
853
+ 'content_index': number;
854
+ 'thumbnail_size': string;
855
+ 'thumbnail_aspect_ratio': string;
856
+ 'thumbnail_type': string;
857
+ 'page_type': string;
858
+ 'page_size': string;
859
+ 'widget_content_list': string;
860
+ }
861
+
862
+ declare const BlazeApiServiceClass_base: {
863
+ new (): {};
864
+ _instance: BlazeApiServiceClass;
865
+ getInstance(): BlazeApiServiceClass;
866
+ };
867
+ declare abstract class BlazeApiServiceClass extends BlazeApiServiceClass_base implements IService {
868
+ api: API;
869
+ init(): Promise<void>;
870
+ getStories(labels: string, orderType: OrderType, maxItemsSize?: number): Promise<import("../interfaces").IResponse<{
871
+ assetsExpiryTime: string;
872
+ totalItems: number;
873
+ result: IStory[];
874
+ }>>;
875
+ getShorts(labels: string, orderType: OrderType, maxItemsSize?: number): Promise<import("../interfaces").IResponse<{
876
+ assetsExpiryTime: string;
877
+ totalItems: number;
878
+ result: IMoment[];
879
+ }>>;
880
+ preview(storyId: string, publishedOnly?: boolean): Promise<import("../interfaces").IResponse<IStory[]>>;
881
+ preivewMoment(momentId: string, publishedOnly?: boolean): Promise<import("../interfaces").IResponse<{
882
+ assetsExpiryTime: string;
883
+ totalItems: number;
884
+ result: IMoment[];
885
+ }>>;
886
+ analyticsEvents(body: Partial<AnalyticsEvent>[]): Promise<import("../interfaces").IResponse<unknown>>;
887
+ }
888
+ export declare const ApiService: BlazeApiServiceClass;
889
+
890
+ declare const BlazeDatabaseServiceClass_base: {
891
+ new (): {};
892
+ _instance: BlazeDatabaseServiceClass;
893
+ getInstance(): BlazeDatabaseServiceClass;
894
+ };
895
+ declare abstract class BlazeDatabaseServiceClass extends BlazeDatabaseServiceClass_base implements IService {
896
+ database: IDatabase;
897
+ init(): Promise<void>;
898
+ onSuccess(db: IDBDatabase): Promise<void>;
899
+ onUpgradeNeeded(db: IDBDatabase): Promise<void>;
900
+ getPageViewed(id: string): Promise<any>;
901
+ updatePageViewed(id: string, storyId: string): Promise<any>;
902
+ getUserId(): Promise<import("../interfaces").IResponse<{
903
+ id: string;
904
+ value: string;
905
+ }>>;
906
+ updateUserId(id: string): Promise<import("../interfaces").IResponse<{
907
+ id: string;
908
+ value: string;
909
+ }>>;
910
+ update(tableName: string, value: any): Promise<any>;
911
+ }
912
+ export declare const BlazeDatabaseService: BlazeDatabaseServiceClass;
913
+
914
+ declare const ConfigServiceClass_base: {
915
+ new (): {};
916
+ _instance: ConfigServiceClass;
917
+ getInstance(): ConfigServiceClass;
918
+ };
919
+ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implements IService {
920
+ private _environment;
921
+ private _apiUrl;
922
+ private _analyticsApiUrl;
923
+ private _apiKey;
924
+ private _sendAnaltyics;
925
+ private _previewUrl;
926
+ private _previewMomentUrl;
927
+ protected constructor();
928
+ init(options: IBlazeSDKOptions): Promise<void>;
929
+ private _urls;
930
+ private _apiPath;
931
+ private _analyticsUrls;
932
+ get environment(): EnvironmentType;
933
+ private set environment(value);
934
+ get sendAnalytics(): boolean | undefined;
935
+ get analyticsApiUrl(): string;
936
+ get apiUrl(): string;
937
+ get apiKey(): string;
938
+ get previewUrl(): string | undefined;
939
+ get previewMomentsUrl(): string;
940
+ }
941
+ export declare const ConfigService: ConfigServiceClass;
942
+
943
+ export interface Registry {
944
+ unsubscribed: () => void;
945
+ }
946
+ export interface Callable {
947
+ [key: string]: Function;
948
+ }
949
+ export interface Subscriber {
950
+ [key: string]: Callable;
951
+ }
952
+ export interface IEventBus extends IService {
953
+ publish<T>(event: string, arg?: T): void;
954
+ subscribe(event: string, callback: Function): Registry;
955
+ }
956
+ declare const EventBusServiceClass_base: {
957
+ new (): {};
958
+ _instance: EventBusServiceClass;
959
+ getInstance(): EventBusServiceClass;
960
+ };
961
+ declare abstract class EventBusServiceClass extends EventBusServiceClass_base implements IEventBus {
962
+ private subscribers;
963
+ private static nextId;
964
+ init(): void;
965
+ publish<T>(event: string, arg?: T): void;
966
+ subscribe(event: string, callback: Function): Registry;
967
+ private getNextId;
968
+ }
969
+ export declare const EventBusService: EventBusServiceClass;
970
+
971
+ declare const EventServiceClass_base: {
972
+ new (): {};
973
+ _instance: EventServiceClass;
974
+ getInstance(): EventServiceClass;
975
+ };
976
+ declare abstract class EventServiceClass extends EventServiceClass_base implements IService {
977
+ private rootElement;
978
+ constructor();
979
+ init(): Promise<void>;
980
+ createAndTriggerEvent(el: HTMLElement, event: Delegation, params?: object): {
981
+ mainEvent: CustomEvent;
982
+ globalEvent: CustomEvent;
983
+ };
984
+ raiseAnalyticsEvent(name: string, event: any): {
985
+ mainEvent: CustomEvent;
986
+ };
987
+ }
988
+ export declare const EventService: EventServiceClass;
989
+
990
+ export * from './analytics.service';
991
+ export * from './blaze-api.service';
992
+ export * from './blaze-database.service';
993
+ export * from './config.service';
994
+ export * from './event-bus.service';
995
+ export * from './startup.service';
996
+ export * from './widgets.service';
997
+ export * from './event.service';
998
+
999
+ declare const StartupServiceClass_base: {
1000
+ new (): {};
1001
+ _instance: StartupServiceClass;
1002
+ getInstance(): StartupServiceClass;
1003
+ };
1004
+ declare abstract class StartupServiceClass extends StartupServiceClass_base implements IService {
1005
+ init(configOptions: IBlazeSDKOptions): Promise<void>;
1006
+ }
1007
+ export declare const StartupService: StartupServiceClass;
1008
+
1009
+ declare const WidgetsServiceClass_base: {
1010
+ new (): {};
1011
+ _instance: WidgetsServiceClass;
1012
+ getInstance(): WidgetsServiceClass;
1013
+ };
1014
+ declare abstract class WidgetsServiceClass extends WidgetsServiceClass_base implements IService {
1015
+ init(): Promise<void>;
1016
+ }
1017
+ export declare const WidgetsService: WidgetsServiceClass;
1018
+
1019
+ export * from './preset';
1020
+ export * from './theme';
1021
+ export * from './theme.interface';
1022
+
1023
+ export declare class Presets {
1024
+ static widgetFont: string;
1025
+ static playerFont: string;
1026
+ static StatusLiveStyle: IndicatorStyle;
1027
+ static StatusLiveUnreadStyle: IndicatorStyle;
1028
+ static StatusReadStyle: IndicatorStyle;
1029
+ static StatusUnreadStyle: IndicatorStyle;
1030
+ static LabelStyle: LabelStyle;
1031
+ static Grid2Column: LayoutStyle;
1032
+ static Grid3Column: LayoutStyle;
1033
+ static RowCircle: LayoutStyle;
1034
+ static RowRectangle: LayoutStyle;
1035
+ static Default: LayoutStyle;
1036
+ static DefaultStoryStyle: StoryPlayerStyle;
1037
+ }
1038
+
1039
+ export interface IndicatorStyle {
1040
+ backgroundColor: string;
1041
+ backgroundImage: string;
1042
+ textColor: string;
1043
+ font: string;
1044
+ textSize: string;
1045
+ letterSpacing: string;
1046
+ borderRadius: string;
1047
+ borderColor: string;
1048
+ borderWidth: number;
1049
+ text: string;
1050
+ }
1051
+ export interface LayoutStyle {
1052
+ shape: 'circle' | 'rectangle' | 'custom';
1053
+ rows: number;
1054
+ columns: number;
1055
+ itemRatio: number;
1056
+ labelStyle: LabelStyle;
1057
+ lines: number;
1058
+ horizontalItemsSpacing: number;
1059
+ verticalItemsSpacing: number;
1060
+ borderWidth: number;
1061
+ borderRadius: string;
1062
+ borderPadding: number;
1063
+ statusLiveStyle: IndicatorStyle;
1064
+ statusLiveUnreadStyle: IndicatorStyle;
1065
+ statusReadStyle: IndicatorStyle;
1066
+ statusUnreadStyle: IndicatorStyle;
1067
+ statusIndicatorPosition: 'insideTopLeft' | 'insideTopRight' | 'insideMiddle' | 'insideBottomRight' | 'insideBottomLeft' | 'insideBottomMiddle' | 'insideMiddleLeft' | 'insideMiddleRight' | 'outsideTop' | 'outsideTopLeft' | 'outsideTopRight' | 'outsideBottomLeft' | 'outsideBottomRight' | 'outsideBottom' | 'outsideRight' | 'outsideLeft';
1068
+ }
1069
+ export interface LabelStyle {
1070
+ visible: boolean;
1071
+ gap: number;
1072
+ width: number | 'auto';
1073
+ color: string;
1074
+ height: number;
1075
+ padding: string;
1076
+ font: string;
1077
+ fontSize: string;
1078
+ position: 'insideTopLeft' | 'insideTopRight' | 'insideMiddle' | 'insideBottomRight' | 'insideBottomLeft' | 'insideBottomMiddle' | 'insideMiddleLeft' | 'insideMiddleRight' | 'outsideUnder' | 'outsideAbove' | 'outsideRight' | 'outsideLeft';
1079
+ }
1080
+ export interface StoryPlayerStyle {
1081
+ titleVisible: boolean;
1082
+ titleFont: string;
1083
+ titleFontSize: string;
1084
+ titleColor: string;
1085
+ timeVisible: boolean;
1086
+ timeFont: string;
1087
+ timeFontSize: string;
1088
+ timeColor: string;
1089
+ chipVisible: boolean;
1090
+ chipFont: string;
1091
+ chipFontSize: string;
1092
+ }
1093
+ export interface IWidgetTheme {
1094
+ layoutStyle: LayoutStyle;
1095
+ playerStyle: StoryPlayerStyle;
1096
+ }
1097
+ export declare const Colors: {
1098
+ readonly DarkPrimary: "#0D0F14";
1099
+ readonly DarkSecondary: "#232935";
1100
+ readonly DarkTertiary: "#929CB3";
1101
+ readonly LightPrimary: "#F8F9FB";
1102
+ readonly LightSeconday: "#DFE1E4";
1103
+ readonly Accent: "#5AA3FF";
1104
+ readonly LiveChip: "#FF364E";
1105
+ readonly ReadGray: "#9C9C9C";
1106
+ readonly TimeColor: "#7F7F7F";
1107
+ };
1108
+
1109
+ export declare class ThemeFactory {
1110
+ static GRID_WIDGET_TWO_COLUMNS(): IWidgetTheme;
1111
+ static GRID_WIDGET_THREE_COLUMNS(): IWidgetTheme;
1112
+ static ROW_WIDGET_CIRCLES(): IWidgetTheme;
1113
+ static ROW_WIDGET_RECTANGLES(): IWidgetTheme;
1114
+ static getTheme(): IWidgetTheme;
1115
+ static getThemeByString(name?: string): IWidgetTheme;
1116
+ }
1117
+ export declare function getIndicatorStyle(el: IAttributeParser, state: string): Partial<IndicatorStyle>;
1118
+ export declare function getLabelStyle(el: IAttributeParser): Partial<LabelStyle>;
1119
+ export declare function setupLayoutStyle(layoutStyle: LayoutStyle): void;
1120
+ export declare function getLayoutStyle(el: IAttributeParser): DeepPartial<LayoutStyle>;
1121
+
1122
+ export declare function GuardNullOrEmpty(name: string, value: any): void;
1123
+
1124
+ export * from './guard';
1125
+
1126
+ export { BlazeWidgetItem } from './widget-item';
1127
+ export { BlazeWidgetLayout } from './widget-layout';
1128
+ export { BlazeWidgetModal } from './widget-modal';
1129
+ export { BlazeWidgetMoment } from './widget-moment';
1130
+ export { BlazeWidgetMomentModal } from './widget-moment-modal';
1131
+ export { BlazeWidgetMomentPlayer } from './widget-moment-player';
1132
+ export { BlazeWidgetMomentPreview } from './widget-moment-preview';
1133
+ export { BlazeWidgetSdk } from './widget-sdk';
1134
+ export { BlazeWidgetStory } from './widget-story';
1135
+ export { BlazeWidgetStoryImage } from './widget-story-image';
1136
+ export { BlazeWidgetStoryModal } from './widget-story-modal';
1137
+ export { BlazeWidgetStoryPlayer } from './widget-story-player';
1138
+ export { BlazeWidgetStoryPreview } from './widget-story-preview';
1139
+ export { BlazeWidgetStoryVideo } from './widget-story-video';
1140
+ export { BlazeWidgetScrollable } from './wigdet-scrollable';
1141
+
1142
+ export declare class BlazeWidgetItem extends HTMLElement {
1143
+ wrapper: HTMLElement;
1144
+ container: HTMLElement;
1145
+ image: HTMLElement;
1146
+ label: HTMLElement;
1147
+ labelContainer: HTMLElement;
1148
+ labelBackground: HTMLElement;
1149
+ modal: BlazeWidgetModal | undefined;
1150
+ cornerRadius: string;
1151
+ cornerWidth: number;
1152
+ cornerMargin: number;
1153
+ cornerColor: string;
1154
+ thumbnailAspectRatio: string | undefined;
1155
+ thumbnailType: string | undefined;
1156
+ labelStyle: LabelStyle;
1157
+ labelMaxLines: number;
1158
+ labelWidth: number;
1159
+ data: IStory | IMoment | undefined;
1160
+ onClick: (() => void) | undefined;
1161
+ chip: HTMLElement;
1162
+ newChip: HTMLElement | undefined;
1163
+ state: 'loading' | 'done' | 'failed';
1164
+ fetchpriority: 'low' | 'high' | 'auto';
1165
+ isLive: boolean | undefined;
1166
+ statusIndicatorPosition: 'insideTopLeft' | 'insideTopRight' | 'insideMiddle' | 'insideBottomRight' | 'insideBottomLeft' | 'insideBottomMiddle' | 'insideMiddleLeft' | 'insideMiddleRight' | 'outsideTop' | 'outsideTopLeft' | 'outsideTopRight' | 'outsideBottomLeft' | 'outsideBottomRight' | 'outsideBottom' | 'outsideRight' | 'outsideLeft';
1167
+ chipWidth: number;
1168
+ chipHeight: number;
1169
+ statusIndicatorSettings: IndicatorStyle;
1170
+ constructor();
1171
+ setData(data: IStory | IMoment): void;
1172
+ analyticsCalls: any;
1173
+ event(action: WidgetAction, data: Partial<WidgetEvent>, label?: string | undefined): void;
1174
+ static getChipSize(indicatorSettings: IndicatorStyle): DOMRect | null;
1175
+ connectedCallback(): void;
1176
+ updateWidget(): void;
1177
+ disconnectedCallback(): void;
1178
+ thumbnailUrl(): string;
1179
+ render(): void;
1180
+ }
1181
+
1182
+ declare const BlazeWidgetLayout_base: {
1183
+ new (...args: any[]): {
1184
+ getIntAttribute(key: string, defaultValue?: number | undefined): number | undefined;
1185
+ getFloatAttribute(key: string, defaultValue?: number | undefined): number | undefined;
1186
+ getStringAttribute(key: string, defaultValue?: string | undefined): string | undefined;
1187
+ getBooleanAttribute(key: string, defaultValue?: boolean | undefined): boolean | undefined;
1188
+ accessKey: string;
1189
+ readonly accessKeyLabel: string;
1190
+ autocapitalize: string;
1191
+ dir: string;
1192
+ draggable: boolean;
1193
+ hidden: boolean;
1194
+ inert: boolean;
1195
+ innerText: string;
1196
+ lang: string;
1197
+ readonly offsetHeight: number;
1198
+ readonly offsetLeft: number;
1199
+ readonly offsetParent: Element | null;
1200
+ readonly offsetTop: number;
1201
+ readonly offsetWidth: number;
1202
+ outerText: string;
1203
+ spellcheck: boolean;
1204
+ title: string;
1205
+ translate: boolean;
1206
+ attachInternals(): ElementInternals;
1207
+ click(): void;
1208
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
1209
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
1210
+ removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
1211
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
1212
+ readonly attributes: NamedNodeMap;
1213
+ readonly classList: DOMTokenList;
1214
+ className: string;
1215
+ readonly clientHeight: number;
1216
+ readonly clientLeft: number;
1217
+ readonly clientTop: number;
1218
+ readonly clientWidth: number;
1219
+ id: string;
1220
+ readonly localName: string;
1221
+ readonly namespaceURI: string | null;
1222
+ onfullscreenchange: ((this: Element, ev: Event) => any) | null;
1223
+ onfullscreenerror: ((this: Element, ev: Event) => any) | null;
1224
+ outerHTML: string;
1225
+ readonly ownerDocument: Document;
1226
+ readonly part: DOMTokenList;
1227
+ readonly prefix: string | null;
1228
+ readonly scrollHeight: number;
1229
+ scrollLeft: number;
1230
+ scrollTop: number;
1231
+ readonly scrollWidth: number;
1232
+ readonly shadowRoot: ShadowRoot | null;
1233
+ slot: string;
1234
+ readonly tagName: string;
1235
+ attachShadow(init: ShadowRootInit): ShadowRoot;
1236
+ checkVisibility(options?: CheckVisibilityOptions | undefined): boolean;
1237
+ closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
1238
+ closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
1239
+ closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4] | null;
1240
+ closest<E extends Element = Element>(selectors: string): E | null;
1241
+ computedStyleMap(): StylePropertyMapReadOnly;
1242
+ getAttribute(qualifiedName: string): string | null;
1243
+ getAttributeNS(namespace: string | null, localName: string): string | null;
1244
+ getAttributeNames(): string[];
1245
+ getAttributeNode(qualifiedName: string): Attr | null;
1246
+ getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
1247
+ getBoundingClientRect(): DOMRect;
1248
+ getClientRects(): DOMRectList;
1249
+ getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
1250
+ getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
1251
+ getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
1252
+ getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
1253
+ getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
1254
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
1255
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
1256
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
1257
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
1258
+ getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
1259
+ hasAttribute(qualifiedName: string): boolean;
1260
+ hasAttributeNS(namespace: string | null, localName: string): boolean;
1261
+ hasAttributes(): boolean;
1262
+ hasPointerCapture(pointerId: number): boolean;
1263
+ insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
1264
+ insertAdjacentHTML(position: InsertPosition, text: string): void;
1265
+ insertAdjacentText(where: InsertPosition, data: string): void;
1266
+ matches(selectors: string): boolean;
1267
+ releasePointerCapture(pointerId: number): void;
1268
+ removeAttribute(qualifiedName: string): void;
1269
+ removeAttributeNS(namespace: string | null, localName: string): void;
1270
+ removeAttributeNode(attr: Attr): Attr;
1271
+ requestFullscreen(options?: FullscreenOptions | undefined): Promise<void>;
1272
+ requestPointerLock(): void;
1273
+ scroll(options?: ScrollToOptions | undefined): void;
1274
+ scroll(x: number, y: number): void;
1275
+ scrollBy(options?: ScrollToOptions | undefined): void;
1276
+ scrollBy(x: number, y: number): void;
1277
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions | undefined): void;
1278
+ scrollTo(options?: ScrollToOptions | undefined): void;
1279
+ scrollTo(x: number, y: number): void;
1280
+ setAttribute(qualifiedName: string, value: string): void;
1281
+ setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
1282
+ setAttributeNode(attr: Attr): Attr | null;
1283
+ setAttributeNodeNS(attr: Attr): Attr | null;
1284
+ setPointerCapture(pointerId: number): void;
1285
+ toggleAttribute(qualifiedName: string, force?: boolean | undefined): boolean;
1286
+ webkitMatchesSelector(selectors: string): boolean;
1287
+ readonly baseURI: string;
1288
+ readonly childNodes: NodeListOf<ChildNode>;
1289
+ readonly firstChild: ChildNode | null;
1290
+ readonly isConnected: boolean;
1291
+ readonly lastChild: ChildNode | null;
1292
+ readonly nextSibling: ChildNode | null;
1293
+ readonly nodeName: string;
1294
+ readonly nodeType: number;
1295
+ nodeValue: string | null;
1296
+ readonly parentElement: HTMLElement | null;
1297
+ readonly parentNode: ParentNode | null;
1298
+ readonly previousSibling: ChildNode | null;
1299
+ textContent: string | null;
1300
+ appendChild<T extends Node>(node: T): T;
1301
+ cloneNode(deep?: boolean | undefined): Node;
1302
+ compareDocumentPosition(other: Node): number;
1303
+ contains(other: Node | null): boolean;
1304
+ getRootNode(options?: GetRootNodeOptions | undefined): Node;
1305
+ hasChildNodes(): boolean;
1306
+ insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
1307
+ isDefaultNamespace(namespace: string | null): boolean;
1308
+ isEqualNode(otherNode: Node | null): boolean;
1309
+ isSameNode(otherNode: Node | null): boolean;
1310
+ lookupNamespaceURI(prefix: string | null): string | null;
1311
+ lookupPrefix(namespace: string | null): string | null;
1312
+ normalize(): void;
1313
+ removeChild<T_2 extends Node>(child: T_2): T_2;
1314
+ replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
1315
+ readonly ELEMENT_NODE: 1;
1316
+ readonly ATTRIBUTE_NODE: 2;
1317
+ readonly TEXT_NODE: 3;
1318
+ readonly CDATA_SECTION_NODE: 4;
1319
+ readonly ENTITY_REFERENCE_NODE: 5;
1320
+ readonly ENTITY_NODE: 6;
1321
+ readonly PROCESSING_INSTRUCTION_NODE: 7;
1322
+ readonly COMMENT_NODE: 8;
1323
+ readonly DOCUMENT_NODE: 9;
1324
+ readonly DOCUMENT_TYPE_NODE: 10;
1325
+ readonly DOCUMENT_FRAGMENT_NODE: 11;
1326
+ readonly NOTATION_NODE: 12;
1327
+ readonly DOCUMENT_POSITION_DISCONNECTED: 1;
1328
+ readonly DOCUMENT_POSITION_PRECEDING: 2;
1329
+ readonly DOCUMENT_POSITION_FOLLOWING: 4;
1330
+ readonly DOCUMENT_POSITION_CONTAINS: 8;
1331
+ readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
1332
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
1333
+ dispatchEvent(event: Event): boolean;
1334
+ ariaAtomic: string | null;
1335
+ ariaAutoComplete: string | null;
1336
+ ariaBusy: string | null;
1337
+ ariaChecked: string | null;
1338
+ ariaColCount: string | null;
1339
+ ariaColIndex: string | null;
1340
+ ariaColSpan: string | null;
1341
+ ariaCurrent: string | null;
1342
+ ariaDisabled: string | null;
1343
+ ariaExpanded: string | null;
1344
+ ariaHasPopup: string | null;
1345
+ ariaHidden: string | null;
1346
+ ariaInvalid: string | null;
1347
+ ariaKeyShortcuts: string | null;
1348
+ ariaLabel: string | null;
1349
+ ariaLevel: string | null;
1350
+ ariaLive: string | null;
1351
+ ariaModal: string | null;
1352
+ ariaMultiLine: string | null;
1353
+ ariaMultiSelectable: string | null;
1354
+ ariaOrientation: string | null;
1355
+ ariaPlaceholder: string | null;
1356
+ ariaPosInSet: string | null;
1357
+ ariaPressed: string | null;
1358
+ ariaReadOnly: string | null;
1359
+ ariaRequired: string | null;
1360
+ ariaRoleDescription: string | null;
1361
+ ariaRowCount: string | null;
1362
+ ariaRowIndex: string | null;
1363
+ ariaRowSpan: string | null;
1364
+ ariaSelected: string | null;
1365
+ ariaSetSize: string | null;
1366
+ ariaSort: string | null;
1367
+ ariaValueMax: string | null;
1368
+ ariaValueMin: string | null;
1369
+ ariaValueNow: string | null;
1370
+ ariaValueText: string | null;
1371
+ role: string | null;
1372
+ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
1373
+ getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
1374
+ after(...nodes: (string | Node)[]): void;
1375
+ before(...nodes: (string | Node)[]): void;
1376
+ remove(): void;
1377
+ replaceWith(...nodes: (string | Node)[]): void;
1378
+ innerHTML: string;
1379
+ readonly nextElementSibling: Element | null;
1380
+ readonly previousElementSibling: Element | null;
1381
+ readonly childElementCount: number;
1382
+ readonly children: HTMLCollection;
1383
+ readonly firstElementChild: Element | null;
1384
+ readonly lastElementChild: Element | null;
1385
+ append(...nodes: (string | Node)[]): void;
1386
+ prepend(...nodes: (string | Node)[]): void;
1387
+ querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9] | null;
1388
+ querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10] | null;
1389
+ querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11] | null;
1390
+ querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12] | null;
1391
+ querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
1392
+ querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
1393
+ querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
1394
+ querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
1395
+ querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
1396
+ querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
1397
+ replaceChildren(...nodes: (string | Node)[]): void;
1398
+ readonly assignedSlot: HTMLSlotElement | null;
1399
+ readonly attributeStyleMap: StylePropertyMap;
1400
+ readonly style: CSSStyleDeclaration;
1401
+ contentEditable: string;
1402
+ enterKeyHint: string;
1403
+ inputMode: string;
1404
+ readonly isContentEditable: boolean;
1405
+ onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
1406
+ onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
1407
+ onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
1408
+ onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
1409
+ onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
1410
+ onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1411
+ onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
1412
+ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
1413
+ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1414
+ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1415
+ oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1416
+ onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1417
+ onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1418
+ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1419
+ oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1420
+ oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
1421
+ oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1422
+ oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
1423
+ ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1424
+ ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
1425
+ ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
1426
+ ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
1427
+ ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
1428
+ ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
1429
+ ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
1430
+ ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
1431
+ ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1432
+ onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1433
+ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1434
+ onerror: OnErrorEventHandler;
1435
+ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
1436
+ onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
1437
+ ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1438
+ oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1439
+ oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1440
+ onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
1441
+ onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
1442
+ onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
1443
+ onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1444
+ onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1445
+ onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1446
+ onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1447
+ onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1448
+ onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1449
+ onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1450
+ onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1451
+ onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1452
+ onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1453
+ onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1454
+ onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1455
+ onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
1456
+ onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1457
+ onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1458
+ onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1459
+ onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1460
+ onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1461
+ onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1462
+ onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1463
+ onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1464
+ onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1465
+ onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1466
+ onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1467
+ onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
1468
+ onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1469
+ onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1470
+ onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
1471
+ onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1472
+ onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
1473
+ onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1474
+ onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1475
+ onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1476
+ onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1477
+ onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1478
+ onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1479
+ onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1480
+ onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
1481
+ onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1482
+ ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1483
+ ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1484
+ ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
1485
+ ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
1486
+ ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
1487
+ ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
1488
+ ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1489
+ ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1490
+ ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1491
+ ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1492
+ onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1493
+ onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1494
+ onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1495
+ onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1496
+ onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1497
+ onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1498
+ onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
1499
+ autofocus: boolean;
1500
+ readonly dataset: DOMStringMap;
1501
+ nonce?: string | undefined;
1502
+ tabIndex: number;
1503
+ blur(): void;
1504
+ focus(options?: FocusOptions | undefined): void;
1505
+ };
1506
+ } & typeof BlazeWidgetScrollable;
1507
+ export declare class BlazeWidgetLayout extends BlazeWidgetLayout_base implements Observable, IWidgetView {
1508
+ modal: BlazeWidgetStoryModal | undefined;
1509
+ modalMoments: BlazeWidgetMomentModal | undefined;
1510
+ stories: IStory[];
1511
+ moments: IMoment[];
1512
+ widgetItems: BlazeWidgetItem[];
1513
+ preset: IWidgetTheme;
1514
+ styles: LayoutStyle;
1515
+ thumbnailWidth: number | undefined;
1516
+ thumbnailHeight: number | undefined;
1517
+ staticHeight: number | undefined;
1518
+ reloadCallback: any;
1519
+ analyticsCalls: any;
1520
+ intersectionObserver: IntersectionObserver;
1521
+ constructor(id?: string, options?: IWidgetViewOptions);
1522
+ setLabels(labels: string[]): void;
1523
+ getTheme(): IWidgetTheme;
1524
+ setTheme(theme: IWidgetTheme): void;
1525
+ reload(labels?: string[]): void;
1526
+ connectedCallback(): void;
1527
+ disconnectedCallback(): void;
1528
+ attributeChangedCallback(name: string, oldValue: any, newValue: string | undefined): void;
1529
+ setLabel(label: string | BlazeWidgetLabel): void;
1530
+ private setMaxSize;
1531
+ private setMaxItemsSize;
1532
+ handleIntersection(entries: IntersectionObserverEntry[]): void;
1533
+ createModal(): void;
1534
+ createMomentsModal(): void;
1535
+ static get observedAttributes(): string[];
1536
+ onItemClick(item: BlazeWidgetItem, i: number): void;
1537
+ loadStories(): Promise<void>;
1538
+ maxSize(): number;
1539
+ loadMoments(): Promise<void>;
1540
+ event(action: WidgetAction, data: Partial<WidgetEvent>, label?: string | undefined): void;
1541
+ updateWidgetsData(): void;
1542
+ reorderWidgets(): void;
1543
+ connectWidgets(): void;
1544
+ get shape(): 'rectangle' | 'custom' | 'circle';
1545
+ get aspectRatio(): number;
1546
+ get thumbnailType(): 'SquareIcon' | 'VerticalTwoByThree';
1547
+ getMaxChipSize(): DOMRect;
1548
+ widgetType(): 'row' | 'grid';
1549
+ render(): void;
1550
+ }
1551
+
1552
+ export declare class BlazeWidgetModal extends HTMLElement {
1553
+ isOpen: boolean;
1554
+ constructor();
1555
+ connectedCallback(): void;
1556
+ open(): void;
1557
+ close(): void;
1558
+ disconnectedCallback(): void;
1559
+ }
1560
+
1561
+ export declare class BlazeWidgetMomentModal extends BlazeWidgetModal {
1562
+ player: BlazeWidgetMomentPlayer;
1563
+ exitPopup: HTMLElement;
1564
+ exitButton: HTMLElement;
1565
+ resizeCallback: any;
1566
+ onClose: (() => void) | undefined;
1567
+ parentWidget: HTMLElement;
1568
+ constructor();
1569
+ setMoments(data: IMoment[]): void;
1570
+ seekMoment(id: string): void;
1571
+ onKeyDown(ev: KeyboardEvent): void;
1572
+ close(): void;
1573
+ open(): void;
1574
+ play(): void;
1575
+ connectedCallback(): void;
1576
+ disconnectedCallback(): void;
1577
+ render(): void;
1578
+ }
1579
+
1580
+ export declare class BlazeWidgetMomentPlayer extends HTMLElement {
1581
+ data: any;
1582
+ widgets: BlazeWidgetMoment[];
1583
+ container: HTMLElement;
1584
+ index: number;
1585
+ currentNextAnimation?: anime.AnimeInstance;
1586
+ currentPrevAnimation?: anime.AnimeInstance;
1587
+ preload: number;
1588
+ cached: number;
1589
+ items: BlazeWidgetMoment[];
1590
+ actionLock: boolean;
1591
+ touchStartY: number;
1592
+ listeners: EventsListener;
1593
+ constructor();
1594
+ fetchMoments(labels: string, ordering?: OrderType): Promise<void>;
1595
+ prefetchNeighbours(addIndex?: number): void;
1596
+ setMoments(moments: BlazeWidgetMoment[]): void;
1597
+ seekMoment(id: string): void;
1598
+ populatePrev(): Promise<void>;
1599
+ populateNext(): Promise<void>;
1600
+ play(): void;
1601
+ clean(): void;
1602
+ nextAnimation(): AnimeTimelineInstance;
1603
+ prevAnimation(): AnimeTimelineInstance;
1604
+ onAnimationUpdate(anime: AnimeInstance): void;
1605
+ onAnimationEnd(anime: AnimeInstance): void;
1606
+ goPrev(): void;
1607
+ goNext(): void;
1608
+ handleTouchStart(evt: TouchEvent): void;
1609
+ handleTouchMove(evt: TouchEvent): void;
1610
+ handleTouchEnd(evt: TouchEvent): void;
1611
+ handleWheel(evt: WheelEvent): void;
1612
+ onKeyDown(ev: KeyboardEvent): void;
1613
+ connectedCallback(): void;
1614
+ disconnectedCallback(): void;
1615
+ attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
1616
+ render(): void;
1617
+ }
1618
+
1619
+ export declare class BlazeWidgetMomentPreview extends BlazeWidgetMoment {
1620
+ static isPlaying: boolean;
1621
+ constructor();
1622
+ loadMoments(): Promise<void>;
1623
+ static get observedAttributes(): string[];
1624
+ attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
1625
+ }
1626
+
1627
+ /// <reference types="node" />
1628
+ export declare class BlazeWidgetMoment extends HTMLElement {
1629
+ player?: BlazeWidgetStoryBase;
1630
+ data: IMoment | any;
1631
+ pageIndex: number;
1632
+ container: HTMLElement;
1633
+ progress: HTMLElement;
1634
+ progressContainer: HTMLElement;
1635
+ onPageStart: (() => void) | undefined;
1636
+ onPrevStory: (() => void) | undefined;
1637
+ onNextStory: (() => void) | undefined;
1638
+ onClose: (() => void) | undefined;
1639
+ playbackParts: HTMLElement[];
1640
+ playToggleBtn: HTMLElement;
1641
+ closeButton: HTMLElement;
1642
+ muteToggleBtn: HTMLElement;
1643
+ storyTitle: HTMLElement;
1644
+ storyThumbnail: HTMLElement;
1645
+ storyChip: HTMLElement;
1646
+ ctaButton: HTMLElement;
1647
+ likesContainer: HTMLElement;
1648
+ likesCounter: HTMLElement;
1649
+ shareBtn: HTMLElement;
1650
+ playCallback: string | number | NodeJS.Timeout | null | undefined;
1651
+ modal: BlazeWidgetMomentModal;
1652
+ fullscreenMode: boolean;
1653
+ listener: EventsListener;
1654
+ constructor();
1655
+ onTitleClick(): void;
1656
+ updateButtonsPositions(isInside: boolean): void;
1657
+ onMouseSeek(ev: MouseEvent): void;
1658
+ onTouchMove(ev: TouchEvent): void;
1659
+ updateChip(): void;
1660
+ updateButtonsState(): void;
1661
+ static get observedAttributes(): string[];
1662
+ attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
1663
+ loadMoments(): Promise<void>;
1664
+ playToggle(): boolean;
1665
+ load(): void;
1666
+ unload(): void;
1667
+ openFullscreen(play?: boolean): void;
1668
+ closeFullscreen(): void;
1669
+ fullscreenPress(): void;
1670
+ muteToggle(): boolean;
1671
+ setData(data: IMoment | null, modal: BlazeWidgetMomentModal): void;
1672
+ play(): void;
1673
+ connectedCallback(): void;
1674
+ close(): void;
1675
+ pause(): void;
1676
+ unpause(): void;
1677
+ resetPosition(): void;
1678
+ replay(): void;
1679
+ goReplay(): void;
1680
+ disconnectedCallback(): void;
1681
+ playInternal(): void;
1682
+ render(): void;
1683
+ }
1684
+
1685
+ export declare class BlazeWidgetSdk extends BaseHTMLElement {
1686
+ protected readonly apiKey: string;
1687
+ static isMuted: boolean;
1688
+ static isPlaying: boolean;
1689
+ static version: string;
1690
+ static defaultStoryPlayerStyle: StoryPlayerStyle;
1691
+ static get observedAttributes(): string[];
1692
+ constructor(apiKey: string, options?: IBlazeSDKOptions);
1693
+ connectedCallback(): Promise<void>;
1694
+ attributeChangedCallback(name: string, oldValue: string, newValue: string): Promise<void>;
1695
+ private getConfigAttributes;
1696
+ private initialize;
1697
+ private injectFontResource;
1698
+ }
1699
+
1700
+ export declare class BlazeWidgetStoryBase extends HTMLElement {
1701
+ data: IPage | undefined;
1702
+ constructor();
1703
+ setData(data: IPage): void;
1704
+ play(): void;
1705
+ pause(): void;
1706
+ get paused(): boolean;
1707
+ get currentTime(): number;
1708
+ set currentTime(value: number);
1709
+ get muted(): boolean;
1710
+ load(): void;
1711
+ unload(): void;
1712
+ display(): void;
1713
+ hide(): void;
1714
+ set muted(value: boolean);
1715
+ get duration(): number;
1716
+ get progress(): number;
1717
+ mainElement(): CanvasImageSource;
1718
+ requestFrameCallback(callback?: any): void;
1719
+ connectedCallback(): void;
1720
+ disconnectedCallback(): void;
1721
+ render(): void;
1722
+ }
1723
+
1724
+ export declare class BlazeWidgetStoryImage extends BlazeWidgetStoryBase {
1725
+ data: IPage | undefined;
1726
+ video: HTMLImageElement | undefined;
1727
+ startTime: Date;
1728
+ excessTime: number;
1729
+ isPlaying: boolean;
1730
+ mode: 'contain' | 'cover';
1731
+ constructor();
1732
+ setData(data: IPage): void;
1733
+ play(): void;
1734
+ pause(): void;
1735
+ set currentTime(value: number);
1736
+ get currentTime(): number;
1737
+ get duration(): number;
1738
+ requestFrameCallback(): void;
1739
+ mainElement(): CanvasImageSource;
1740
+ get paused(): boolean;
1741
+ get muted(): boolean;
1742
+ set muted(value: boolean);
1743
+ connectedCallback(): void;
1744
+ disconnectedCallback(): void;
1745
+ render(): void;
1746
+ }
1747
+
1748
+ /// <reference types="hammerjs" />
1749
+ export declare class BlazeWidgetStoryModal extends BlazeWidgetModal {
1750
+ player: BlazeWidgetStoryPlayer;
1751
+ exitPopup: HTMLElement;
1752
+ exitButton: HTMLElement;
1753
+ onClose: (() => void) | undefined;
1754
+ resizeHandler: (event: UIEvent) => void;
1755
+ parentWidget: HTMLElement;
1756
+ hammer: HammerManager | null;
1757
+ isMultiTouch: boolean;
1758
+ constructor();
1759
+ setStories(stories: IStory[]): void;
1760
+ seek(id: string): void;
1761
+ onKeyDown(ev: KeyboardEvent): void;
1762
+ close(): void;
1763
+ open(): void;
1764
+ play(): void;
1765
+ connectedCallback(): void;
1766
+ disconnectedCallback(): void;
1767
+ private handlePanStart;
1768
+ private handlePan;
1769
+ private setupHammer;
1770
+ private cleanupHammer;
1771
+ render(): void;
1772
+ }
1773
+
1774
+ export declare class BlazeWidgetStoryPlayer extends BaseHTMLElement {
1775
+ data: any;
1776
+ hammer: HammerManager;
1777
+ widgets: BlazeWidgetStory[];
1778
+ container: HTMLElement;
1779
+ index: number;
1780
+ currentNextAnimation?: anime.AnimeInstance;
1781
+ currentPrevAnimation?: anime.AnimeInstance;
1782
+ items: BlazeWidgetStory[];
1783
+ actionLock: boolean;
1784
+ touchStartX: number;
1785
+ touchStartY: number;
1786
+ background: HTMLCanvasElement;
1787
+ tmpBackground: HTMLCanvasElement;
1788
+ onClose: (() => void) | undefined;
1789
+ resizeHandler: (this: Window, ev: UIEvent) => any;
1790
+ listeners: EventsListener;
1791
+ isLooping: boolean;
1792
+ backgroundAnimation?: Animation;
1793
+ firstTime: boolean;
1794
+ secondTime: boolean;
1795
+ constructor();
1796
+ connectedCallback(): void;
1797
+ disconnectedCallback(): void;
1798
+ attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
1799
+ private setupHammer;
1800
+ private handlePanStart;
1801
+ private handlePanMove;
1802
+ private handlePanEnd;
1803
+ private reverseAnimation;
1804
+ private cleanupHammer;
1805
+ renderBackground(): void;
1806
+ prefetchNeighbours(addIndex?: number): void;
1807
+ fetch(labels: string, ordering?: OrderType): Promise<void>;
1808
+ setStories(stories: BlazeWidgetStory[]): void;
1809
+ close(): void;
1810
+ seek(id: string): void;
1811
+ populatePrev(): Promise<void>;
1812
+ populateNext(): Promise<void>;
1813
+ resetPosition(): void;
1814
+ play(): void;
1815
+ clean(): void;
1816
+ nextAnimation(): AnimeTimelineInstance;
1817
+ prevAnimation(): AnimeTimelineInstance;
1818
+ onAnimationEnd(): void;
1819
+ closeWithAnimation(): void;
1820
+ goPrev(): void;
1821
+ goNext(): void;
1822
+ handleAnimation(distance: number, story: BlazeWidgetStory, currentAnimation?: AnimeInstance): void;
1823
+ onKeyDown(ev: KeyboardEvent): boolean;
1824
+ render(): void;
1825
+ }
1826
+
1827
+ export declare class BlazeWidgetStoryPreview extends BlazeWidgetStory {
1828
+ pages: BlazeWidgetStoryBase[];
1829
+ data: IStory;
1830
+ pageIndex: number;
1831
+ container: HTMLElement;
1832
+ progress: HTMLElement;
1833
+ onPageStart: (() => void) | undefined;
1834
+ onPrevStory: (() => void) | undefined;
1835
+ onNextStory: (() => void) | undefined;
1836
+ onClose: (() => void) | undefined;
1837
+ playbackParts: HTMLElement[];
1838
+ playToggleBtn: HTMLElement;
1839
+ muteToggleBtn: HTMLElement;
1840
+ storyTitle: HTMLElement;
1841
+ storySubtitle: HTMLElement;
1842
+ storyThumbnail: HTMLElement;
1843
+ storyChip: HTMLElement;
1844
+ ctaButton: HTMLElement;
1845
+ prevButton: HTMLElement;
1846
+ nextButton: HTMLElement;
1847
+ prevButtonFS: HTMLElement;
1848
+ nextButtonFS: HTMLElement;
1849
+ replayButton: HTMLElement;
1850
+ replayButtonFS: HTMLElement;
1851
+ playCallback: string | number | NodeJS.Timeout | null | undefined;
1852
+ modal: BlazeWidgetStoryModal;
1853
+ fullscreenMode: boolean;
1854
+ static isPlaying: boolean;
1855
+ constructor();
1856
+ updateChip(): void;
1857
+ updateButtonsState(): void;
1858
+ static get observedAttributes(): string[];
1859
+ attributeChangedCallback(name: string, oldValue: any, newValue: string): void;
1860
+ setPageId(): void;
1861
+ loadStory(): Promise<void>;
1862
+ prefetchNeighbours(distance?: number): void;
1863
+ playToggle(): boolean;
1864
+ openFullscreen(play?: boolean): void;
1865
+ closeFullscreen(): void;
1866
+ fullscreenPress(): void;
1867
+ muteToggle(): boolean;
1868
+ setData(data: IStory | IStory[] | null | undefined): void;
1869
+ setVisible(isVisible: boolean): boolean;
1870
+ get currentPage(): BlazeWidgetStoryBase;
1871
+ get nextPage(): BlazeWidgetStoryBase;
1872
+ get prevPage(): BlazeWidgetStoryBase;
1873
+ play(): void;
1874
+ connectedCallback(): void;
1875
+ close(): void;
1876
+ pause(): void;
1877
+ resetPosition(): void;
1878
+ updateReplay(): void;
1879
+ goNextPage(): void;
1880
+ goReplay(): void;
1881
+ goPrevPage(): void;
1882
+ disconnectedCallback(): void;
1883
+ playPage(index: number): void;
1884
+ render(): void;
1885
+ }
1886
+
1887
+ export declare class BlazeWidgetStoryVideo extends BlazeWidgetStoryBase {
1888
+ data: IPage | undefined;
1889
+ video: HTMLVideoElement | undefined;
1890
+ loader: HTMLElement | undefined;
1891
+ isPlaying: boolean;
1892
+ mode: 'contain' | 'cover';
1893
+ videoFrameCallback?: () => any;
1894
+ source: HTMLSourceElement;
1895
+ constructor();
1896
+ setData(data: IPage): void;
1897
+ load(): void;
1898
+ display(): void;
1899
+ hide(): void;
1900
+ unload(): void;
1901
+ startPlayVideo(video: HTMLVideoElement): void;
1902
+ play(): void;
1903
+ pause(): void;
1904
+ set currentTime(value: number);
1905
+ get currentTime(): number;
1906
+ get duration(): number;
1907
+ requestFrameCallback(callback: any): void;
1908
+ mainElement(): CanvasImageSource;
1909
+ get paused(): boolean;
1910
+ get muted(): boolean;
1911
+ set muted(value: boolean);
1912
+ connectedCallback(): void;
1913
+ disconnectedCallback(): void;
1914
+ render(): void;
1915
+ }
1916
+
1917
+ export declare class BlazeWidgetStory extends HTMLElement {
1918
+ pages: BlazeWidgetStoryBase[];
1919
+ data: IStory;
1920
+ pageIndex: number;
1921
+ container: HTMLElement;
1922
+ progress: HTMLElement;
1923
+ onPageStart: (() => void) | undefined;
1924
+ onPrevStory: (() => void) | undefined;
1925
+ onNextStory: (() => void) | undefined;
1926
+ onClose: (() => void) | undefined;
1927
+ playbackParts: HTMLElement[];
1928
+ playToggleBtn: HTMLElement;
1929
+ muteToggleBtn: HTMLElement;
1930
+ storyTitle: HTMLElement;
1931
+ storySubtitle: HTMLElement;
1932
+ storyThumbnail: HTMLElement;
1933
+ storyChip: HTMLElement;
1934
+ ctaButton: HTMLElement;
1935
+ prevButton: HTMLElement;
1936
+ nextButton: HTMLElement;
1937
+ prevStoryButton: HTMLElement;
1938
+ nextStoryButton: HTMLElement;
1939
+ widgetParent: BlazeWidgetItem;
1940
+ playCallback: any;
1941
+ sessionId: string;
1942
+ startTrigger: 'Widget' | 'Deeplink' | 'Swipe' | 'Skip' | '';
1943
+ exitTrigger: 'Swipe' | 'Swipe Down' | 'Skip' | 'Close Button' | 'CTA Click' | 'Escape Button' | '';
1944
+ navigationType: 'Automatic' | 'Manual' | undefined;
1945
+ navigationDirection: 'Forwards' | 'Backwards' | undefined;
1946
+ referring: ReferringEventInfo | undefined;
1947
+ resumeAfterUnfocus: boolean;
1948
+ onFocusCallback: () => void;
1949
+ totalPlayStopwatch: Stopwatch;
1950
+ playerStyle: StoryPlayerStyle;
1951
+ listeners: EventsListener;
1952
+ constructor();
1953
+ updateChip(): void;
1954
+ setTheme(storyPlayerStyle: StoryPlayerStyle): void;
1955
+ updatePlayerButtonIcons(): void;
1956
+ playToggle(): void;
1957
+ muteToggle(): boolean;
1958
+ setWidgetParent(parent: BlazeWidgetItem): void;
1959
+ resetStoryLocationIndexToLastUnseen(): void;
1960
+ setData(data: any, modal?: any): void;
1961
+ get currentPage(): BlazeWidgetStoryBase;
1962
+ get nextPage(): BlazeWidgetStoryBase;
1963
+ get prevPage(): BlazeWidgetStoryBase;
1964
+ prefetchNeighbours(distance?: number): void;
1965
+ playPage(pageIndexToPlayNext: number): void;
1966
+ unload(): void;
1967
+ load(): void;
1968
+ play(): void;
1969
+ event(action: StoryAction, data: Partial<StoryEvent>, label?: string | undefined): void;
1970
+ connectedCallback(): void;
1971
+ onFocus(): void;
1972
+ close(): void;
1973
+ pause(): void;
1974
+ resume(): void;
1975
+ resetPosition(): void;
1976
+ prevStory(): void;
1977
+ nextStory(): void;
1978
+ markAsRead(): void;
1979
+ goNextPage(): void;
1980
+ goPrevPage(): void;
1981
+ disconnectedCallback(): void;
1982
+ render(): void;
1983
+ }
1984
+
1985
+ export declare class BlazeWidgetScrollable extends BaseHTMLElement {
1986
+ buttonsState: never[];
1987
+ mouseMoveEvent: ((e: MouseEvent) => void | undefined) | undefined;
1988
+ touchMoveEvent: ((e: TouchEvent) => boolean | undefined) | undefined;
1989
+ clickEvent: ((e: MouseEvent) => void | undefined) | undefined;
1990
+ totalMovement: number;
1991
+ constructor();
1992
+ connectedCallback(): void;
1993
+ onClick(event: MouseEvent): void;
1994
+ onMouseMove(event: MouseEvent): void;
1995
+ onMouseWheel(event: WheelEvent): void;
1996
+ onTouchMove(event: TouchEvent): boolean;
1997
+ disconnectedCallback(): void;
1998
+ }
1999
+