@wscsports/blaze-web-sdk 0.1.2 → 0.1.4

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.
@@ -1,385 +1,8 @@
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
- }
350
-
351
- export declare class BlazeWidgetLabel {
352
- value: string;
353
- constructor(value: string);
354
- static singleLabel(label: string): BlazeWidgetLabel;
355
- static mustInclude(...labels: Array<string | BlazeWidgetLabel>): BlazeWidgetLabel;
356
- static atLeastOneOf(...labels: Array<string | BlazeWidgetLabel>): BlazeWidgetLabel;
357
- mustInclude(...labels: Array<string | BlazeWidgetLabel>): BlazeWidgetLabel;
358
- atLeastOneOf(...labels: Array<string | BlazeWidgetLabel>): BlazeWidgetLabel;
359
- toString(): string;
1
+ export declare class BlazeSDK {
2
+ static isMuted: boolean;
3
+ static isPlaying: boolean;
360
4
  }
361
5
 
362
- export declare function formatDuration(startDate: Date): string;
363
- export declare function removeUndefined(value: any): object;
364
- export declare function isObject(item: any): boolean;
365
- export declare function mergeDeep(target: any, ...sources: any[]): any;
366
- export declare function cloneDeep<T>(target: T): T;
367
- export declare function mergeStyles(element: HTMLElement, styles: Partial<CSSStyleDeclaration>): object;
368
- export declare function formatDate(date: Date): string;
369
- export declare function formatUTCDate(date: Date): string;
370
- export declare function getRandomId(): string;
371
- export declare function loadImage(src: string): Promise<any>;
372
- export declare function setId(element: HTMLElement, prefix?: string, suffix?: string): void;
373
- declare let isMobile: boolean;
374
- declare const isIOS: boolean;
375
- declare const isSafari: boolean;
376
- declare const isChrome: boolean;
377
- export { isMobile, isIOS, isSafari, isChrome };
378
- export type DeepPartial<T> = T extends object ? {
379
- [P in keyof T]?: DeepPartial<T[P]>;
380
- } : T;
381
- export declare function flattenObject<T extends Record<string, any>>(obj: T): Record<string, any>;
382
-
383
6
  export declare function Initialize(apiKey: string, options?: Omit<IBlazeSDKOptions, "apiKey">): Promise<void>;
384
7
  export declare function WidgetRowView(containerId: string, options: IWidgetViewOptions): IWidgetView;
385
8
  export declare function WidgetGridView(containerId: string, options: IWidgetViewOptions): IWidgetView;
@@ -394,39 +17,6 @@ declare const _default: {
394
17
  };
395
18
  export default _default;
396
19
 
397
- export declare class BlazeLoader extends HTMLElement {
398
- constructor();
399
- connectedCallback(): void;
400
- }
401
-
402
- export declare class Stopwatch {
403
- isRunning: boolean;
404
- extraTime: number;
405
- startTime: number;
406
- constructor();
407
- start(): void;
408
- pause(): void;
409
- durationMS(): number;
410
- reset(): void;
411
- }
412
-
413
- 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>";
414
- 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>";
415
- 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>";
416
- 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>";
417
- 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>";
418
- 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>";
419
- 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>";
420
- 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>";
421
- 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>";
422
- 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>";
423
- 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>";
424
- 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>";
425
- 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>";
426
- 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>";
427
- export declare const likeSvg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAVSSURBVHgBzVltTFtVGH5PvzbaLq6fTOjccmlaCKwRN/zAGCVb2NABJsuSQZaYuO3P4o/FxUEYaAS3jKiBBEUNmM0Zrcbwh83InIqb8wcOJpYSoKHFBCEW2kImbek67vGcknbQ9ePe0sCeX/fe8957nr7nvM9537cIUkRO3p4CxAKzhKAAIWAQIBlGIKNjCIMXA+vEGM0ggAkyPmQf6bdCCkB8jDMzTTK5UlJOXqsMk+E8EQYnBrCiewGz3W6Z4fweFyNKbIty8xEW4UpIBzD8zJVoUoL6/KJyzEI1X48lnZh4FNgls33szi+J7ISJBvV5Tx9jAarJz5BAuoFADgLBs1vVOum8a+rP+GYxENprCkkdFqBdsB7A4PB6AmedTos3ekgQy16m3HRu3chREBWQKzbXxRp6aInpspL99hysNxBkxlruVQQZQ9FeLITXYINA9DJ3qyp7Yd41bQs/iyxxTk6xFoSoCjYYhGQ1jYHwvSh8gSXBKuJmLZeP7N9XojpQWrJti1wu/m9hIdjzY++/137qdfO1ic0QZFKiuUSEPl++hWXv4U3BTuCAzvYPnyx58YXtPp//vs/vvyfNyJBIpRmi3hu3Jmvqm0LH2cctFwqL9hRui7a5crXHcarm7WEu83jdgSoa1SEPhrzHAa3NjfmU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jOOHTgRifUGeJ8MK4f6fILxNXi9tw8QPIvA/106DnSOL69cAAAAASUVORK5CYII=";
429
-
430
20
  export interface IAPIOptions {
431
21
  baseUrl: string;
432
22
  analyticsBaseUrl: string | undefined;
@@ -530,8 +120,14 @@ export declare class BlazeImage extends BaseHTMLElement {
530
120
  export * from './alert';
531
121
  export * from './chip';
532
122
  export * from './image';
123
+ export * from './loader';
533
124
  export * from './toast';
534
125
 
126
+ export declare class BlazeLoader extends HTMLElement {
127
+ constructor();
128
+ connectedCallback(): void;
129
+ }
130
+
535
131
  export declare class BlazeToast extends BaseHTMLElement {
536
132
  constructor();
537
133
  static get observedAttributes(): string[];
@@ -656,8 +252,17 @@ export interface IThumbnail {
656
252
  rendition: IRendition;
657
253
  }
658
254
 
255
+ export declare enum ErrorCode {
256
+ FailedLoadingStories = 100,
257
+ FailedEnrichStories = 101,
258
+ FailedLoadingMoments = 110,
259
+ FailedEnrichMoments = 111,
260
+ VideoError = 200
261
+ }
262
+
659
263
  export declare enum Delegation {
660
264
  onEventTriggered = "blaze-event-triggered",
265
+ onErrorThrown = "blaze-error-event",
661
266
  onStoryPlayerDidAppear = "blaze-story-player-did-appear",
662
267
  onStoryPlayerDismissed = "blaze-story-player-dismissed",
663
268
  onStoryLoadStarted = "blaze-story-load-started",
@@ -669,15 +274,36 @@ export declare enum Delegation {
669
274
  onWidgetTriggerCTA = "blaze-widget-trigger-CTA"
670
275
  }
671
276
 
672
- export * from './event';
277
+ export * from './error-codes.enum';
278
+ export * from './event.enum';
673
279
 
674
280
  export declare abstract class ElementsFactory {
675
281
  static create<T extends BaseHTMLElement>(e: ElementType): T;
676
282
  static define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions | undefined): void;
283
+ static whenDefined(name: string): Promise<CustomElementConstructor>;
677
284
  }
678
285
 
679
286
  export * from './elements.factory';
680
287
 
288
+ export * from './svgs';
289
+
290
+ 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>";
291
+ 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>";
292
+ 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>";
293
+ 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>";
294
+ 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>";
295
+ 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>";
296
+ 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>";
297
+ 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>";
298
+ 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>";
299
+ 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>";
300
+ 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>";
301
+ 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>";
302
+ 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>";
303
+ 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>";
304
+ 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+ZQkCg0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nvironmentType = 'prod' | 'uat';
682
308
  export interface IBlazeSDKOptions {
683
309
  apiKey: string;
@@ -726,6 +352,7 @@ export interface IService {
726
352
  export type ContentType = 'story';
727
353
  export interface IWidgetViewOptions {
728
354
  labels: string[];
355
+ orderType: OrderType;
729
356
  maxItemsCount?: number;
730
357
  maxDisplayItemsCount?: number;
731
358
  contentType: ContentType;
@@ -737,6 +364,7 @@ export interface IWidgetView {
737
364
  getTheme: () => IWidgetTheme;
738
365
  setLabels: (labels: string[]) => void;
739
366
  reload: (labels?: string[]) => void;
367
+ addEventListener: (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined) => void;
740
368
  }
741
369
 
742
370
  declare const AlertServiceClass_base: {
@@ -911,12 +539,12 @@ export declare class WidgetEvent {
911
539
  'widget_content_list': string;
912
540
  }
913
541
 
914
- declare const BlazeApiServiceClass_base: {
542
+ declare const ApiServiceClass_base: {
915
543
  new (): {};
916
- _instance: BlazeApiServiceClass;
917
- getInstance(): BlazeApiServiceClass;
544
+ _instance: ApiServiceClass;
545
+ getInstance(): ApiServiceClass;
918
546
  };
919
- declare abstract class BlazeApiServiceClass extends BlazeApiServiceClass_base implements IService {
547
+ declare abstract class ApiServiceClass extends ApiServiceClass_base implements IService {
920
548
  api: API;
921
549
  init(): Promise<void>;
922
550
  getStories(labels: string, orderType: OrderType, maxItemsSize?: number): Promise<IResponse<{
@@ -933,32 +561,7 @@ declare abstract class BlazeApiServiceClass extends BlazeApiServiceClass_base im
933
561
  preivewMoment(momentId: string, publishedOnly?: boolean): Promise<IResponse<any>>;
934
562
  analyticsEvents(body: Partial<AnalyticsEvent>[]): Promise<IResponse<unknown>>;
935
563
  }
936
- export declare const ApiService: BlazeApiServiceClass;
937
-
938
- declare const BlazeDatabaseServiceClass_base: {
939
- new (): {};
940
- _instance: BlazeDatabaseServiceClass;
941
- getInstance(): BlazeDatabaseServiceClass;
942
- };
943
- declare abstract class BlazeDatabaseServiceClass extends BlazeDatabaseServiceClass_base implements IService {
944
- database: IDatabase;
945
- init(): Promise<void>;
946
- onOpen(): Promise<void>;
947
- onError(e: Event): Promise<void>;
948
- onUpgradeNeeded(db: IDBDatabase): Promise<void>;
949
- getPageViewed(id: string): Promise<any>;
950
- updatePageViewed(id: string, storyId: string): Promise<any>;
951
- getUserId(): Promise<import("../interfaces").IResponse<{
952
- id: string;
953
- value: string;
954
- }>>;
955
- updateUserId(id: string): Promise<import("../interfaces").IResponse<{
956
- id: string;
957
- value: string;
958
- }>>;
959
- update(tableName: string, value: any): Promise<any>;
960
- }
961
- export declare const BlazeDatabaseService: BlazeDatabaseServiceClass;
564
+ export declare const ApiService: ApiServiceClass;
962
565
 
963
566
  declare const ConfigServiceClass_base: {
964
567
  new (): {};
@@ -989,6 +592,33 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
989
592
  }
990
593
  export declare const ConfigService: ConfigServiceClass;
991
594
 
595
+ declare const DatabaseServiceClass_base: {
596
+ new (): {};
597
+ _instance: DatabaseServiceClass;
598
+ getInstance(): DatabaseServiceClass;
599
+ };
600
+ declare abstract class DatabaseServiceClass extends DatabaseServiceClass_base implements IService {
601
+ database: IDatabase;
602
+ init(): Promise<void>;
603
+ onOpen(): Promise<void>;
604
+ onError(e: Event): Promise<void>;
605
+ onUpgradeNeeded(db: IDBDatabase): Promise<void>;
606
+ getPageViewed(id: string): Promise<any>;
607
+ updatePageViewed(id: string, storyId: string): Promise<any>;
608
+ getUserId(): Promise<import("../interfaces").IResponse<{
609
+ id: string;
610
+ value: string;
611
+ }>>;
612
+ updateUserId(id: string): Promise<import("../interfaces").IResponse<{
613
+ id: string;
614
+ value: string;
615
+ }>>;
616
+ update(tableName: string, value: any): Promise<any>;
617
+ enrichStories(stories: IStory[]): Promise<IStory[]>;
618
+ isPageViewed(id: string): Promise<boolean>;
619
+ }
620
+ export declare const DatabaseService: DatabaseServiceClass;
621
+
992
622
  declare const ErrorServiceClass_base: {
993
623
  new (): {};
994
624
  _instance: ErrorServiceClass;
@@ -1036,166 +666,517 @@ declare abstract class EventServiceClass extends EventServiceClass_base implemen
1036
666
  private rootElement;
1037
667
  constructor();
1038
668
  init(): Promise<void>;
1039
- createAndTriggerEvent(el: HTMLElement, event: Delegation, params?: object): {
669
+ dispatch(el: HTMLElement, event: Delegation, params?: object): {
1040
670
  mainEvent: CustomEvent;
1041
671
  globalEvent: CustomEvent;
1042
672
  };
1043
673
  raiseAnalyticsEvent(name: string, event: any): {
1044
674
  mainEvent: CustomEvent;
1045
675
  };
1046
- }
1047
- export declare const EventService: EventServiceClass;
1048
-
1049
- export * from './alert.ervice';
1050
- export * from './analytics.service';
1051
- export * from './blaze-api.service';
1052
- export * from './blaze-database.service';
1053
- export * from './config.service';
1054
- export * from './error.service';
1055
- export * from './event-bus.service';
1056
- export * from './event.service';
1057
- export * from './startup.service';
1058
- export * from './video-cache.service';
1059
- export * from './widgets.service';
1060
-
1061
- declare const StartupServiceClass_base: {
1062
- new (): {};
1063
- _instance: StartupServiceClass;
1064
- getInstance(): StartupServiceClass;
1065
- };
1066
- declare abstract class StartupServiceClass extends StartupServiceClass_base implements IService {
1067
- init(configOptions: IBlazeSDKOptions): Promise<void>;
1068
- }
1069
- export declare const StartupService: StartupServiceClass;
1070
-
1071
- declare const VideoCacheServiceClass_base: {
1072
- new (): {};
1073
- _instance: VideoCacheServiceClass;
1074
- getInstance(): VideoCacheServiceClass;
1075
- };
1076
- declare abstract class VideoCacheServiceClass extends VideoCacheServiceClass_base implements IService {
1077
- private cache;
1078
- private cacheName;
1079
- constructor();
1080
- init(): Promise<void>;
1081
- private fetchAndCache;
1082
- addCacheVideoByUrl(url: string): Promise<Response>;
1083
- getCacheVideoByUrl(url: string): Promise<string>;
1084
- isVideoCached(url: string): Promise<boolean>;
1085
- deleteCacheVideoByUrl(url: string): Promise<boolean>;
1086
- clearAllCache(): Promise<void>;
1087
- }
1088
- export declare const VideoCacheService: VideoCacheServiceClass;
1089
-
1090
- declare const WidgetsServiceClass_base: {
1091
- new (): {};
1092
- _instance: WidgetsServiceClass;
1093
- getInstance(): WidgetsServiceClass;
1094
- };
1095
- declare abstract class WidgetsServiceClass extends WidgetsServiceClass_base implements IService {
1096
- init(): Promise<void>;
1097
- }
1098
- export declare const WidgetsService: WidgetsServiceClass;
1099
-
1100
- export * from './preset';
1101
- export * from './theme';
1102
- export * from './theme.interface';
1103
-
1104
- export declare class Presets {
1105
- static widgetFont: string;
1106
- static playerFont: string;
1107
- static StatusLiveStyle: IndicatorStyle;
1108
- static StatusLiveUnreadStyle: IndicatorStyle;
1109
- static StatusReadStyle: IndicatorStyle;
1110
- static StatusUnreadStyle: IndicatorStyle;
1111
- static LabelStyle: LabelStyle;
1112
- static Grid2Column: LayoutStyle;
1113
- static Grid3Column: LayoutStyle;
1114
- static RowCircle: LayoutStyle;
1115
- static RowRectangle: LayoutStyle;
1116
- static Default: LayoutStyle;
1117
- static DefaultStoryStyle: StoryPlayerStyle;
1118
- }
1119
-
1120
- export interface IndicatorStyle {
1121
- backgroundColor: string;
1122
- backgroundImage: string;
1123
- textColor: string;
1124
- font: string;
1125
- textSize: string;
1126
- letterSpacing: string;
1127
- borderRadius: string;
1128
- borderColor: string;
1129
- borderWidth: number;
1130
- text: string;
1131
- }
1132
- export interface LayoutStyle {
1133
- shape: 'circle' | 'rectangle' | 'custom';
1134
- rows: number;
1135
- columns: number;
1136
- itemRatio: number;
1137
- labelStyle: LabelStyle;
1138
- lines: number;
1139
- horizontalItemsSpacing: number;
1140
- verticalItemsSpacing: number;
1141
- borderWidth: number;
1142
- borderRadius: string;
1143
- borderPadding: number;
1144
- statusLiveStyle: IndicatorStyle;
1145
- statusLiveUnreadStyle: IndicatorStyle;
1146
- statusReadStyle: IndicatorStyle;
1147
- statusUnreadStyle: IndicatorStyle;
1148
- statusIndicatorPosition: 'insideTopLeft' | 'insideTopRight' | 'insideMiddle' | 'insideBottomRight' | 'insideBottomLeft' | 'insideBottomMiddle' | 'insideMiddleLeft' | 'insideMiddleRight' | 'outsideTop' | 'outsideTopLeft' | 'outsideTopRight' | 'outsideBottomLeft' | 'outsideBottomRight' | 'outsideBottom' | 'outsideRight' | 'outsideLeft';
1149
- }
1150
- export interface LabelStyle {
1151
- visible: boolean;
1152
- gap: number;
1153
- width: number | 'auto';
1154
- color: string;
1155
- height: number;
1156
- padding: string;
1157
- font: string;
1158
- fontSize: string;
1159
- position: 'insideTopLeft' | 'insideTopRight' | 'insideMiddle' | 'insideBottomRight' | 'insideBottomLeft' | 'insideBottomMiddle' | 'insideMiddleLeft' | 'insideMiddleRight' | 'outsideUnder' | 'outsideAbove' | 'outsideRight' | 'outsideLeft';
1160
- }
1161
- export interface StoryPlayerStyle {
1162
- titleVisible: boolean;
1163
- titleFont: string;
1164
- titleFontSize: string;
1165
- titleColor: string;
1166
- timeVisible: boolean;
1167
- timeFont: string;
1168
- timeFontSize: string;
1169
- timeColor: string;
1170
- chipVisible: boolean;
1171
- chipFont: string;
1172
- chipFontSize: string;
1173
- }
1174
- export interface IWidgetTheme {
1175
- layoutStyle: LayoutStyle;
1176
- playerStyle: StoryPlayerStyle;
1177
- }
1178
- export declare const Colors: {
1179
- readonly DarkPrimary: "#0D0F14";
1180
- readonly DarkSecondary: "#232935";
1181
- readonly DarkTertiary: "#929CB3";
1182
- readonly LightPrimary: "#F8F9FB";
1183
- readonly LightSeconday: "#DFE1E4";
1184
- readonly Accent: "#5AA3FF";
1185
- readonly LiveChip: "#FF364E";
1186
- readonly ReadGray: "#9C9C9C";
1187
- readonly TimeColor: "#7F7F7F";
1188
- };
1189
-
1190
- export type ThemeType = 'default' | 'grid-2-columns' | 'grid-3-columns' | 'row-circle' | 'row-rectangle';
1191
- export declare class ThemeFactory {
1192
- static create(name?: ThemeType): IWidgetTheme;
1193
- }
1194
- export declare function getIndicatorStyle(el: IAttributeParser, state: string): Partial<IndicatorStyle>;
1195
- export declare function getLabelStyle(el: IAttributeParser): Partial<LabelStyle>;
1196
- export declare function setupLayoutStyle(layoutStyle: LayoutStyle): void;
1197
- export declare function getLayoutStyle(el: IAttributeParser): DeepPartial<LayoutStyle>;
1198
-
676
+ }
677
+ export declare const EventService: EventServiceClass;
678
+
679
+ export * from './alert.ervice';
680
+ export * from './analytics.service';
681
+ export * from './api.service';
682
+ export * from './config.service';
683
+ export * from './database.service';
684
+ export * from './error.service';
685
+ export * from './event-bus.service';
686
+ export * from './event.service';
687
+ export * from './startup.service';
688
+ export * from './user.service';
689
+ export * from './video-cache.service';
690
+ export * from './widgets.service';
691
+
692
+ declare const StartupServiceClass_base: {
693
+ new (): {};
694
+ _instance: StartupServiceClass;
695
+ getInstance(): StartupServiceClass;
696
+ };
697
+ declare abstract class StartupServiceClass extends StartupServiceClass_base implements IService {
698
+ init(configOptions: IBlazeSDKOptions): Promise<void>;
699
+ }
700
+ export declare const StartupService: StartupServiceClass;
701
+
702
+ declare const UserServiceClass_base: {
703
+ new (): {};
704
+ _instance: UserServiceClass;
705
+ getInstance(): UserServiceClass;
706
+ };
707
+ declare abstract class UserServiceClass extends UserServiceClass_base implements IService {
708
+ _userId: string;
709
+ _sessionId: string;
710
+ constructor();
711
+ get userId(): string;
712
+ get sessionId(): string;
713
+ init(): Promise<void>;
714
+ onBlazeDatabaseServiceOpen(): Promise<void>;
715
+ getUserId(): Promise<string | null>;
716
+ }
717
+ export declare const UserService: UserServiceClass;
718
+
719
+ declare const VideoCacheServiceClass_base: {
720
+ new (): {};
721
+ _instance: VideoCacheServiceClass;
722
+ getInstance(): VideoCacheServiceClass;
723
+ };
724
+ declare abstract class VideoCacheServiceClass extends VideoCacheServiceClass_base implements IService {
725
+ private cache;
726
+ private cacheName;
727
+ constructor();
728
+ init(): Promise<void>;
729
+ private fetchAndCache;
730
+ addCacheVideoByUrl(url: string): Promise<Response>;
731
+ getCacheVideoByUrl(url: string): Promise<string>;
732
+ isVideoCached(url: string): Promise<boolean>;
733
+ deleteCacheVideoByUrl(url: string): Promise<boolean>;
734
+ clearAllCache(): Promise<void>;
735
+ }
736
+ export declare const VideoCacheService: VideoCacheServiceClass;
737
+
738
+ declare const WidgetsServiceClass_base: {
739
+ new (): {};
740
+ _instance: WidgetsServiceClass;
741
+ getInstance(): WidgetsServiceClass;
742
+ };
743
+ declare abstract class WidgetsServiceClass extends WidgetsServiceClass_base implements IService {
744
+ init(): Promise<void>;
745
+ }
746
+ export declare const WidgetsService: WidgetsServiceClass;
747
+
748
+ export * from './preset';
749
+ export * from './theme';
750
+ export * from './theme.interface';
751
+
752
+ export declare class Presets {
753
+ static widgetFont: string;
754
+ static playerFont: string;
755
+ static StatusLiveStyle: IndicatorStyle;
756
+ static StatusLiveUnreadStyle: IndicatorStyle;
757
+ static StatusReadStyle: IndicatorStyle;
758
+ static StatusUnreadStyle: IndicatorStyle;
759
+ static LabelStyle: LabelStyle;
760
+ static Grid2Column: LayoutStyle;
761
+ static Grid3Column: LayoutStyle;
762
+ static RowCircle: LayoutStyle;
763
+ static RowRectangle: LayoutStyle;
764
+ static Default: LayoutStyle;
765
+ static DefaultStoryStyle: StoryPlayerStyle;
766
+ }
767
+
768
+ export interface IndicatorStyle {
769
+ backgroundColor: string;
770
+ backgroundImage: string;
771
+ textColor: string;
772
+ font: string;
773
+ textSize: string;
774
+ letterSpacing: string;
775
+ borderRadius: string;
776
+ borderColor: string;
777
+ borderWidth: number;
778
+ text: string;
779
+ }
780
+ export interface LayoutStyle {
781
+ shape: 'circle' | 'rectangle' | 'custom';
782
+ rows: number;
783
+ columns: number;
784
+ itemRatio: number;
785
+ labelStyle: LabelStyle;
786
+ lines: number;
787
+ horizontalItemsSpacing: number;
788
+ verticalItemsSpacing: number;
789
+ borderWidth: number;
790
+ borderRadius: string;
791
+ borderPadding: number;
792
+ statusLiveStyle: IndicatorStyle;
793
+ statusLiveUnreadStyle: IndicatorStyle;
794
+ statusReadStyle: IndicatorStyle;
795
+ statusUnreadStyle: IndicatorStyle;
796
+ statusIndicatorPosition: 'insideTopLeft' | 'insideTopRight' | 'insideMiddle' | 'insideBottomRight' | 'insideBottomLeft' | 'insideBottomMiddle' | 'insideMiddleLeft' | 'insideMiddleRight' | 'outsideTop' | 'outsideTopLeft' | 'outsideTopRight' | 'outsideBottomLeft' | 'outsideBottomRight' | 'outsideBottom' | 'outsideRight' | 'outsideLeft';
797
+ }
798
+ export interface LabelStyle {
799
+ visible: boolean;
800
+ gap: number;
801
+ width: number | 'auto';
802
+ color: string;
803
+ height: number;
804
+ padding: string;
805
+ font: string;
806
+ fontSize: string;
807
+ position: 'insideTopLeft' | 'insideTopRight' | 'insideMiddle' | 'insideBottomRight' | 'insideBottomLeft' | 'insideBottomMiddle' | 'insideMiddleLeft' | 'insideMiddleRight' | 'outsideUnder' | 'outsideAbove' | 'outsideRight' | 'outsideLeft';
808
+ }
809
+ export interface StoryPlayerStyle {
810
+ titleVisible: boolean;
811
+ titleFont: string;
812
+ titleFontSize: string;
813
+ titleColor: string;
814
+ timeVisible: boolean;
815
+ timeFont: string;
816
+ timeFontSize: string;
817
+ timeColor: string;
818
+ chipVisible: boolean;
819
+ chipFont: string;
820
+ chipFontSize: string;
821
+ }
822
+ export interface IWidgetTheme {
823
+ layoutStyle: LayoutStyle;
824
+ playerStyle: StoryPlayerStyle;
825
+ }
826
+ export declare const Colors: {
827
+ readonly DarkPrimary: "#0D0F14";
828
+ readonly DarkSecondary: "#232935";
829
+ readonly DarkTertiary: "#929CB3";
830
+ readonly LightPrimary: "#F8F9FB";
831
+ readonly LightSeconday: "#DFE1E4";
832
+ readonly Accent: "#5AA3FF";
833
+ readonly LiveChip: "#FF364E";
834
+ readonly ReadGray: "#9C9C9C";
835
+ readonly TimeColor: "#7F7F7F";
836
+ };
837
+
838
+ export type ThemeType = 'default' | 'grid-2-columns' | 'grid-3-columns' | 'row-circle' | 'row-rectangle';
839
+ export declare class ThemeFactory {
840
+ static create(name?: ThemeType): IWidgetTheme;
841
+ }
842
+ export declare function getIndicatorStyle(el: IAttributeParser, state: string): Partial<IndicatorStyle>;
843
+ export declare function getLabelStyle(el: IAttributeParser): Partial<LabelStyle>;
844
+ export declare function setupLayoutStyle(layoutStyle: LayoutStyle): void;
845
+ export declare function getLayoutStyle(el: IAttributeParser): DeepPartial<LayoutStyle>;
846
+
847
+
848
+ export interface IAttributeParser {
849
+ getIntAttribute(key: string, defaultValue?: number): number | undefined;
850
+ getFloatAttribute(key: string, defaultValue?: number): number | undefined;
851
+ getStringAttribute(key: string, defaultValue?: string): string | undefined;
852
+ getBooleanAttribute(key: string, defaultValue?: boolean): boolean | undefined;
853
+ }
854
+ export type GHTMLElement = GConstructor<HTMLElement>;
855
+ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase): {
856
+ new (...args: any[]): {
857
+ getIntAttribute(key: string, defaultValue?: number): number | undefined;
858
+ getFloatAttribute(key: string, defaultValue?: number): number | undefined;
859
+ getStringAttribute(key: string, defaultValue?: string): string | undefined;
860
+ getBooleanAttribute(key: string, defaultValue?: boolean): boolean | undefined;
861
+ accessKey: string;
862
+ readonly accessKeyLabel: string;
863
+ autocapitalize: string;
864
+ dir: string;
865
+ draggable: boolean;
866
+ hidden: boolean;
867
+ inert: boolean;
868
+ innerText: string;
869
+ lang: string;
870
+ readonly offsetHeight: number;
871
+ readonly offsetLeft: number;
872
+ readonly offsetParent: Element | null;
873
+ readonly offsetTop: number;
874
+ readonly offsetWidth: number;
875
+ outerText: string;
876
+ spellcheck: boolean;
877
+ title: string;
878
+ translate: boolean;
879
+ attachInternals(): ElementInternals;
880
+ click(): void;
881
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
882
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
883
+ removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
884
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
885
+ readonly attributes: NamedNodeMap;
886
+ readonly classList: DOMTokenList;
887
+ className: string;
888
+ readonly clientHeight: number;
889
+ readonly clientLeft: number;
890
+ readonly clientTop: number;
891
+ readonly clientWidth: number;
892
+ id: string;
893
+ readonly localName: string;
894
+ readonly namespaceURI: string | null;
895
+ onfullscreenchange: ((this: Element, ev: Event) => any) | null;
896
+ onfullscreenerror: ((this: Element, ev: Event) => any) | null;
897
+ outerHTML: string;
898
+ readonly ownerDocument: Document;
899
+ readonly part: DOMTokenList;
900
+ readonly prefix: string | null;
901
+ readonly scrollHeight: number;
902
+ scrollLeft: number;
903
+ scrollTop: number;
904
+ readonly scrollWidth: number;
905
+ readonly shadowRoot: ShadowRoot | null;
906
+ slot: string;
907
+ readonly tagName: string;
908
+ attachShadow(init: ShadowRootInit): ShadowRoot;
909
+ checkVisibility(options?: CheckVisibilityOptions | undefined): boolean;
910
+ closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
911
+ closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
912
+ closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4] | null;
913
+ closest<E extends Element = Element>(selectors: string): E | null;
914
+ computedStyleMap(): StylePropertyMapReadOnly;
915
+ getAttribute(qualifiedName: string): string | null;
916
+ getAttributeNS(namespace: string | null, localName: string): string | null;
917
+ getAttributeNames(): string[];
918
+ getAttributeNode(qualifiedName: string): Attr | null;
919
+ getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
920
+ getBoundingClientRect(): DOMRect;
921
+ getClientRects(): DOMRectList;
922
+ getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
923
+ getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
924
+ getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
925
+ getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
926
+ getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
927
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
928
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
929
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
930
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
931
+ getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
932
+ hasAttribute(qualifiedName: string): boolean;
933
+ hasAttributeNS(namespace: string | null, localName: string): boolean;
934
+ hasAttributes(): boolean;
935
+ hasPointerCapture(pointerId: number): boolean;
936
+ insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
937
+ insertAdjacentHTML(position: InsertPosition, text: string): void;
938
+ insertAdjacentText(where: InsertPosition, data: string): void;
939
+ matches(selectors: string): boolean;
940
+ releasePointerCapture(pointerId: number): void;
941
+ removeAttribute(qualifiedName: string): void;
942
+ removeAttributeNS(namespace: string | null, localName: string): void;
943
+ removeAttributeNode(attr: Attr): Attr;
944
+ requestFullscreen(options?: FullscreenOptions | undefined): Promise<void>;
945
+ requestPointerLock(): void;
946
+ scroll(options?: ScrollToOptions | undefined): void;
947
+ scroll(x: number, y: number): void;
948
+ scrollBy(options?: ScrollToOptions | undefined): void;
949
+ scrollBy(x: number, y: number): void;
950
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions | undefined): void;
951
+ scrollTo(options?: ScrollToOptions | undefined): void;
952
+ scrollTo(x: number, y: number): void;
953
+ setAttribute(qualifiedName: string, value: string): void;
954
+ setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
955
+ setAttributeNode(attr: Attr): Attr | null;
956
+ setAttributeNodeNS(attr: Attr): Attr | null;
957
+ setPointerCapture(pointerId: number): void;
958
+ toggleAttribute(qualifiedName: string, force?: boolean | undefined): boolean;
959
+ webkitMatchesSelector(selectors: string): boolean;
960
+ readonly baseURI: string;
961
+ readonly childNodes: NodeListOf<ChildNode>;
962
+ readonly firstChild: ChildNode | null;
963
+ readonly isConnected: boolean;
964
+ readonly lastChild: ChildNode | null;
965
+ readonly nextSibling: ChildNode | null;
966
+ readonly nodeName: string;
967
+ readonly nodeType: number;
968
+ nodeValue: string | null;
969
+ readonly parentElement: HTMLElement | null;
970
+ readonly parentNode: ParentNode | null;
971
+ readonly previousSibling: ChildNode | null;
972
+ textContent: string | null;
973
+ appendChild<T extends Node>(node: T): T;
974
+ cloneNode(deep?: boolean | undefined): Node;
975
+ compareDocumentPosition(other: Node): number;
976
+ contains(other: Node | null): boolean;
977
+ getRootNode(options?: GetRootNodeOptions | undefined): Node;
978
+ hasChildNodes(): boolean;
979
+ insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
980
+ isDefaultNamespace(namespace: string | null): boolean;
981
+ isEqualNode(otherNode: Node | null): boolean;
982
+ isSameNode(otherNode: Node | null): boolean;
983
+ lookupNamespaceURI(prefix: string | null): string | null;
984
+ lookupPrefix(namespace: string | null): string | null;
985
+ normalize(): void;
986
+ removeChild<T_2 extends Node>(child: T_2): T_2;
987
+ replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
988
+ readonly ELEMENT_NODE: 1;
989
+ readonly ATTRIBUTE_NODE: 2;
990
+ readonly TEXT_NODE: 3;
991
+ readonly CDATA_SECTION_NODE: 4;
992
+ readonly ENTITY_REFERENCE_NODE: 5;
993
+ readonly ENTITY_NODE: 6;
994
+ readonly PROCESSING_INSTRUCTION_NODE: 7;
995
+ readonly COMMENT_NODE: 8;
996
+ readonly DOCUMENT_NODE: 9;
997
+ readonly DOCUMENT_TYPE_NODE: 10;
998
+ readonly DOCUMENT_FRAGMENT_NODE: 11;
999
+ readonly NOTATION_NODE: 12;
1000
+ readonly DOCUMENT_POSITION_DISCONNECTED: 1;
1001
+ readonly DOCUMENT_POSITION_PRECEDING: 2;
1002
+ readonly DOCUMENT_POSITION_FOLLOWING: 4;
1003
+ readonly DOCUMENT_POSITION_CONTAINS: 8;
1004
+ readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
1005
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
1006
+ dispatchEvent(event: Event): boolean;
1007
+ ariaAtomic: string | null;
1008
+ ariaAutoComplete: string | null;
1009
+ ariaBusy: string | null;
1010
+ ariaChecked: string | null;
1011
+ ariaColCount: string | null;
1012
+ ariaColIndex: string | null;
1013
+ ariaColSpan: string | null;
1014
+ ariaCurrent: string | null;
1015
+ ariaDisabled: string | null;
1016
+ ariaExpanded: string | null;
1017
+ ariaHasPopup: string | null;
1018
+ ariaHidden: string | null;
1019
+ ariaInvalid: string | null;
1020
+ ariaKeyShortcuts: string | null;
1021
+ ariaLabel: string | null;
1022
+ ariaLevel: string | null;
1023
+ ariaLive: string | null;
1024
+ ariaModal: string | null;
1025
+ ariaMultiLine: string | null;
1026
+ ariaMultiSelectable: string | null;
1027
+ ariaOrientation: string | null;
1028
+ ariaPlaceholder: string | null;
1029
+ ariaPosInSet: string | null;
1030
+ ariaPressed: string | null;
1031
+ ariaReadOnly: string | null;
1032
+ ariaRequired: string | null;
1033
+ ariaRoleDescription: string | null;
1034
+ ariaRowCount: string | null;
1035
+ ariaRowIndex: string | null;
1036
+ ariaRowSpan: string | null;
1037
+ ariaSelected: string | null;
1038
+ ariaSetSize: string | null;
1039
+ ariaSort: string | null;
1040
+ ariaValueMax: string | null;
1041
+ ariaValueMin: string | null;
1042
+ ariaValueNow: string | null;
1043
+ ariaValueText: string | null;
1044
+ role: string | null;
1045
+ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
1046
+ getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
1047
+ after(...nodes: (string | Node)[]): void;
1048
+ before(...nodes: (string | Node)[]): void;
1049
+ remove(): void;
1050
+ replaceWith(...nodes: (string | Node)[]): void;
1051
+ innerHTML: string;
1052
+ readonly nextElementSibling: Element | null;
1053
+ readonly previousElementSibling: Element | null;
1054
+ readonly childElementCount: number;
1055
+ readonly children: HTMLCollection;
1056
+ readonly firstElementChild: Element | null;
1057
+ readonly lastElementChild: Element | null;
1058
+ append(...nodes: (string | Node)[]): void;
1059
+ prepend(...nodes: (string | Node)[]): void;
1060
+ querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9] | null;
1061
+ querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10] | null;
1062
+ querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11] | null;
1063
+ querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12] | null;
1064
+ querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
1065
+ querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
1066
+ querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
1067
+ querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
1068
+ querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
1069
+ querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
1070
+ replaceChildren(...nodes: (string | Node)[]): void;
1071
+ readonly assignedSlot: HTMLSlotElement | null;
1072
+ readonly attributeStyleMap: StylePropertyMap;
1073
+ readonly style: CSSStyleDeclaration;
1074
+ contentEditable: string;
1075
+ enterKeyHint: string;
1076
+ inputMode: string;
1077
+ readonly isContentEditable: boolean;
1078
+ onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
1079
+ onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
1080
+ onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
1081
+ onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
1082
+ onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
1083
+ onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1084
+ onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
1085
+ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
1086
+ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1087
+ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1088
+ oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1089
+ onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1090
+ onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1091
+ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1092
+ oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1093
+ oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
1094
+ oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1095
+ oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
1096
+ ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1097
+ ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
1098
+ ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
1099
+ ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
1100
+ ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
1101
+ ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
1102
+ ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
1103
+ ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
1104
+ ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1105
+ onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1106
+ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1107
+ onerror: OnErrorEventHandler;
1108
+ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
1109
+ onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
1110
+ ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1111
+ oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1112
+ oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1113
+ onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
1114
+ onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
1115
+ onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
1116
+ onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1117
+ onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1118
+ onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1119
+ onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1120
+ onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1121
+ onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1122
+ onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1123
+ onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1124
+ onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1125
+ onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1126
+ onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1127
+ onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1128
+ onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
1129
+ onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1130
+ onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1131
+ onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1132
+ onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1133
+ onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1134
+ onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1135
+ onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1136
+ onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1137
+ onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1138
+ onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1139
+ onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1140
+ onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
1141
+ onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1142
+ onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1143
+ onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
1144
+ onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1145
+ onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
1146
+ onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1147
+ onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1148
+ onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1149
+ onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1150
+ onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1151
+ onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1152
+ onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1153
+ onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
1154
+ onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1155
+ ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1156
+ ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1157
+ ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
1158
+ ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
1159
+ ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
1160
+ ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
1161
+ ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1162
+ ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1163
+ ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1164
+ ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1165
+ onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1166
+ onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1167
+ onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1168
+ onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1169
+ onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1170
+ onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1171
+ onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
1172
+ autofocus: boolean;
1173
+ readonly dataset: DOMStringMap;
1174
+ nonce?: string | undefined;
1175
+ tabIndex: number;
1176
+ blur(): void;
1177
+ focus(options?: FocusOptions | undefined): void;
1178
+ };
1179
+ } & TBase;
1199
1180
 
1200
1181
  export type ClientPlatform = 'Web';
1201
1182
 
@@ -1205,6 +1186,7 @@ export type ElementType = WidgetElementType | ComponentsElementType;
1205
1186
 
1206
1187
  export type FetchPriorityType = 'low' | 'high' | 'auto';
1207
1188
 
1189
+ export * from './attribute-parser';
1208
1190
  export * from './client-platform.type';
1209
1191
  export * from './element.type';
1210
1192
  export * from './fetch-priority.type';
@@ -1213,7 +1195,7 @@ export * from './severity.type';
1213
1195
  export * from './shape.type';
1214
1196
  export * from './thumbnail.type';
1215
1197
 
1216
- export type OrderType = 'Manual' | 'RecentlyUpdatedFirst' | 'AtoZ' | 'RecentlyUpdatedLast' | 'ZtoA';
1198
+ export type OrderType = 'Manual' | 'AtoZ' | 'ZtoA' | 'RecentlyUpdatedFirst' | 'RecentlyUpdatedLast' | 'RecentlyCreatedFirst' | 'RecentlyCreatedLast';
1217
1199
 
1218
1200
  export type SeverityType = 'error' | 'warning' | 'info' | 'success';
1219
1201
 
@@ -1233,10 +1215,45 @@ export declare function delay(ms: number): Promise<void>;
1233
1215
 
1234
1216
  export declare function GuardNullOrEmpty(name: string, value: any): void;
1235
1217
 
1218
+ export declare function formatDuration(startDate: Date): string;
1219
+ export declare function removeUndefined(value: any): object;
1220
+ export declare function isObject(item: any): boolean;
1221
+ export declare function mergeDeep(target: any, ...sources: any[]): any;
1222
+ export declare function cloneDeep<T>(target: T): T;
1223
+ export declare function mergeStyles(element: HTMLElement, styles: Partial<CSSStyleDeclaration>): object;
1224
+ export declare function formatDate(date: Date): string;
1225
+ export declare function formatUTCDate(date: Date): string;
1226
+ export declare function getRandomId(): string;
1227
+ export declare function loadImage(src: string): Promise<any>;
1228
+ export declare function setId(element: HTMLElement, prefix?: string, suffix?: string): void;
1229
+ declare let isMobile: boolean;
1230
+ declare const isIOS: boolean;
1231
+ declare const isSafari: boolean;
1232
+ declare const isChrome: boolean;
1233
+ export { isMobile, isIOS, isSafari, isChrome };
1234
+ export type DeepPartial<T> = T extends object ? {
1235
+ [P in keyof T]?: DeepPartial<T[P]>;
1236
+ } : T;
1237
+ export declare function flattenObject<T extends Record<string, any>>(obj: T): Record<string, any>;
1238
+
1236
1239
  export * from './chip.utils';
1237
1240
  export * from './common.utils';
1238
1241
  export * from './guard.utils';
1242
+ export * from './helper';
1243
+ export * from './stopwatch';
1244
+
1245
+ export declare class Stopwatch {
1246
+ isRunning: boolean;
1247
+ extraTime: number;
1248
+ startTime: number;
1249
+ constructor();
1250
+ start(): void;
1251
+ pause(): void;
1252
+ durationMS(): number;
1253
+ reset(): void;
1254
+ }
1239
1255
 
1256
+ export { BlazeWidgetLabel } from './widget-label';
1240
1257
  export { BlazeWidgetItem } from './widget-item';
1241
1258
  export { BlazeWidgetLayout } from './widget-layout';
1242
1259
  export { BlazeWidgetModal } from './widget-modal';
@@ -1244,6 +1261,7 @@ export { BlazeWidgetMoment } from './widget-moment';
1244
1261
  export { BlazeWidgetMomentModal } from './widget-moment-modal';
1245
1262
  export { BlazeWidgetMomentPlayer } from './widget-moment-player';
1246
1263
  export { BlazeWidgetMomentPreview } from './widget-moment-preview';
1264
+ export { BlazeWidgetScrollable } from './widget-scrollable';
1247
1265
  export { BlazeWidgetSdk } from './widget-sdk';
1248
1266
  export { BlazeWidgetStory } from './widget-story';
1249
1267
  export { BlazeWidgetStoryImage } from './widget-story-image';
@@ -1251,7 +1269,6 @@ export { BlazeWidgetStoryModal } from './widget-story-modal';
1251
1269
  export { BlazeWidgetStoryPlayer } from './widget-story-player';
1252
1270
  export { BlazeWidgetStoryPreview } from './widget-story-preview';
1253
1271
  export { BlazeWidgetStoryVideo } from './widget-story-video';
1254
- export { BlazeWidgetScrollable } from './widget-scrollable';
1255
1272
 
1256
1273
  export interface BlazeWidgetItemOptions {
1257
1274
  theme: IWidgetTheme;
@@ -1294,8 +1311,19 @@ export declare class BlazeWidgetItem extends BaseHTMLElement {
1294
1311
  render(): void;
1295
1312
  }
1296
1313
 
1314
+ export declare class BlazeWidgetLabel {
1315
+ value: string;
1316
+ constructor(value: string);
1317
+ static singleLabel(label: string): BlazeWidgetLabel;
1318
+ static mustInclude(...labels: Array<string | BlazeWidgetLabel>): BlazeWidgetLabel;
1319
+ static atLeastOneOf(...labels: Array<string | BlazeWidgetLabel>): BlazeWidgetLabel;
1320
+ mustInclude(...labels: Array<string | BlazeWidgetLabel>): BlazeWidgetLabel;
1321
+ atLeastOneOf(...labels: Array<string | BlazeWidgetLabel>): BlazeWidgetLabel;
1322
+ toString(): string;
1323
+ }
1324
+
1297
1325
  /// <reference types="node" />
1298
- export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements Observable, IWidgetView {
1326
+ export declare class BlazeWidgetLayout extends BaseHTMLElement implements Observable, IWidgetView {
1299
1327
  modal: BlazeWidgetStoryModal | undefined;
1300
1328
  modalMoments: BlazeWidgetMomentModal | undefined;
1301
1329
  stories: IStory[];
@@ -1308,13 +1336,18 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
1308
1336
  analyticsStack: Record<WidgetAction, boolean>;
1309
1337
  intersectionObserver: IntersectionObserver;
1310
1338
  onResizeEvent: () => () => void;
1339
+ buttonsState: never[];
1340
+ totalMovement: number;
1311
1341
  constructor();
1342
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
1312
1343
  setLabels(labels: string[]): void;
1313
1344
  getTheme(): IWidgetTheme;
1314
1345
  setTheme(theme: IWidgetTheme): void;
1315
1346
  reload(labels?: string[]): void;
1316
1347
  connectedCallback(): void;
1317
1348
  disconnectedCallback(): void;
1349
+ onClick(event: MouseEvent): void;
1350
+ onMouseMove(event: MouseEvent): void;
1318
1351
  attributeChangedCallback(name: string, oldValue?: string, newValue?: string): void;
1319
1352
  setLabel(label: string | BlazeWidgetLabel): void;
1320
1353
  setMaxSize(maxSize: number): void;
@@ -1381,7 +1414,6 @@ export declare class BlazeWidgetMomentPlayer extends HTMLElement {
1381
1414
  actionLock: boolean;
1382
1415
  touchStartY: number;
1383
1416
  listeners: EventsListener;
1384
- source: HTMLElement | undefined;
1385
1417
  constructor();
1386
1418
  prefetchNeighbours(addIndex?: number): void;
1387
1419
  setMoments(moments: BlazeWidgetMoment[]): void;
@@ -1713,6 +1745,7 @@ export declare class BlazeWidgetStoryVideo extends BlazeWidgetStoryBase {
1713
1745
  removeLoader(): void;
1714
1746
  startPlayVideo(video: HTMLVideoElement, retryTimes: number): Promise<void>;
1715
1747
  reloadVideo(retry: number): void;
1748
+ tryToAddLoader(): void;
1716
1749
  play(): void;
1717
1750
  pause(): void;
1718
1751
  set currentTime(value: number);
@@ -1771,7 +1804,7 @@ export declare class BlazeWidgetStory extends HTMLElement {
1771
1804
  muteToggle(): boolean;
1772
1805
  setWidgetParent(parent: BlazeWidgetItem): void;
1773
1806
  resetStoryLocationIndexToLastUnseen(): void;
1774
- getLastUnseenIndexOfStory(): number;
1807
+ areAllPagesBeenReadByUser(): boolean;
1775
1808
  setData(data: any, modal?: any): void;
1776
1809
  get currentPage(): BlazeWidgetStoryBase;
1777
1810
  get nextPage(): BlazeWidgetStoryBase;
@@ -1794,9 +1827,10 @@ export declare class BlazeWidgetStory extends HTMLElement {
1794
1827
  pause(): void;
1795
1828
  resume(): void;
1796
1829
  resetPosition(): void;
1830
+ updateWidgetStatusReadUnread(): void;
1797
1831
  prevStory(): void;
1798
1832
  nextStory(): void;
1799
- markAsRead(): void;
1833
+ markAsRead(): Promise<any>;
1800
1834
  goNextPage(): void;
1801
1835
  goPrevPage(): void;
1802
1836
  disconnectedCallback(): void;