@descope/sdk-mixins 0.20.0 → 0.22.0

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.
Files changed (49) hide show
  1. package/dist/cjs/index.js +6 -0
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/mixins/fetchWidgetPagesMixin/createFetchWidgetPagesMixin.js +70 -0
  4. package/dist/cjs/mixins/fetchWidgetPagesMixin/createFetchWidgetPagesMixin.js.map +1 -0
  5. package/dist/cjs/mixins/flowInputMixin/flowInputMixin.js +58 -0
  6. package/dist/cjs/mixins/flowInputMixin/flowInputMixin.js.map +1 -0
  7. package/dist/cjs/mixins/localeMixin/localeMixin.js +33 -0
  8. package/dist/cjs/mixins/localeMixin/localeMixin.js.map +1 -0
  9. package/dist/esm/index.js +3 -0
  10. package/dist/esm/index.js.map +1 -1
  11. package/dist/esm/mixins/fetchWidgetPagesMixin/createFetchWidgetPagesMixin.js +68 -0
  12. package/dist/esm/mixins/fetchWidgetPagesMixin/createFetchWidgetPagesMixin.js.map +1 -0
  13. package/dist/esm/mixins/flowInputMixin/flowInputMixin.js +56 -0
  14. package/dist/esm/mixins/flowInputMixin/flowInputMixin.js.map +1 -0
  15. package/dist/esm/mixins/localeMixin/localeMixin.js +31 -0
  16. package/dist/esm/mixins/localeMixin/localeMixin.js.map +1 -0
  17. package/dist/index.d.ts +1421 -220
  18. package/dist/types/index.d.ts +3 -0
  19. package/dist/types/mixins/configMixin/configMixin.d.ts +14 -14
  20. package/dist/types/mixins/configMixin/types.d.ts +2 -0
  21. package/dist/types/mixins/createStateManagementMixin.d.ts +2 -2
  22. package/dist/types/mixins/createValidateAttributesMixin/createValidateAttributesMixin.d.ts +5 -5
  23. package/dist/types/mixins/cspNonceMixin.d.ts +5 -5
  24. package/dist/types/mixins/debuggerMixin/debugger-wc.d.ts +5 -5
  25. package/dist/types/mixins/debuggerMixin/debuggerMixin.d.ts +8 -8
  26. package/dist/types/mixins/descopeUiMixin/descopeUiMixin.d.ts +19 -19
  27. package/dist/types/mixins/fetchWidgetPagesMixin/createFetchWidgetPagesMixin.d.ts +393 -0
  28. package/dist/types/mixins/fetchWidgetPagesMixin/index.d.ts +1 -0
  29. package/dist/types/mixins/flowInputMixin/flowInputMixin.d.ts +460 -0
  30. package/dist/types/mixins/flowInputMixin/index.d.ts +1 -0
  31. package/dist/types/mixins/formMixin.d.ts +2 -2
  32. package/dist/types/mixins/initElementMixin.d.ts +5 -5
  33. package/dist/types/mixins/initLifecycleMixin.d.ts +1 -1
  34. package/dist/types/mixins/injectNpmLibMixin/injectNpmLibMixin.d.ts +2 -2
  35. package/dist/types/mixins/injectStyleMixin.d.ts +5 -5
  36. package/dist/types/mixins/localeMixin/index.d.ts +1 -0
  37. package/dist/types/mixins/localeMixin/localeMixin.d.ts +344 -0
  38. package/dist/types/mixins/loggerMixin/loggerMixin.d.ts +2 -2
  39. package/dist/types/mixins/modalMixin/modalMixin.d.ts +23 -23
  40. package/dist/types/mixins/notificationsMixin/notificationsMixin.d.ts +23 -23
  41. package/dist/types/mixins/observeAttributesMixin/observeAttributesMixin.d.ts +4 -4
  42. package/dist/types/mixins/projectIdMixin.d.ts +5 -5
  43. package/dist/types/mixins/resetMixin.d.ts +6 -6
  44. package/dist/types/mixins/staticResourcesMixin/staticResourcesMixin.d.ts +10 -10
  45. package/dist/types/mixins/tenantIdMixin.d.ts +5 -5
  46. package/dist/types/mixins/themeMixin/themeMixin.d.ts +40 -40
  47. package/dist/types/mixins/widgetConfigMixin/widgetConfigMixin.d.ts +14 -14
  48. package/dist/types/mixins/widgetIdMixin.d.ts +5 -5
  49. package/package.json +3 -3
@@ -0,0 +1,460 @@
1
+ type FlowInputConfig = {
2
+ flowId: string;
3
+ client?: Record<string, any>;
4
+ form?: Record<string, any>;
5
+ tenant?: string;
6
+ outboundAppId?: string;
7
+ };
8
+ /**
9
+ * Exposes a widget's caller-supplied flow inputs (`client.*` / `form.*`) and
10
+ * builds the internal `<descope-wc>` flow template with the widget's shared
11
+ * config, forwarding those inputs into the flow-start call - the same way they
12
+ * flow for a directly-embedded `<Descope>` flow.
13
+ *
14
+ * `createFlowTemplate` (the method) wraps the `createFlowTemplate` helper so
15
+ * every flow a widget runs gets the shared config + inputs from one place,
16
+ * instead of each call site rebuilding the config. Composes `themeMixin` for
17
+ * the resolved `theme` / `styleId`; the rest are plain attribute reads.
18
+ */
19
+ export declare const flowInputMixin: <T extends CustomElementConstructor>(superclass: T) => {
20
+ new (...params: any[]): {
21
+ readonly clientInput: Record<string, any>;
22
+ readonly formInput: string;
23
+ "__#19247@#resolveForm"(form?: Record<string, any>): Record<string, any> | string | undefined;
24
+ createFlowTemplate({ flowId, client, form, ...overrides }: FlowInputConfig): HTMLTemplateElement;
25
+ "__#19245@#globalStyle": import("../injectStyleMixin").InjectedStyle;
26
+ "__#19245@#tenantStyle": import("../injectStyleMixin").InjectedStyle;
27
+ "__#19245@#customStyle": import("../injectStyleMixin").InjectedStyle;
28
+ readonly theme: import("../themeMixin").ThemeOptions;
29
+ readonly styleId: string;
30
+ readonly themeOverride: Record<string, any>;
31
+ "__#19245@#getThemeOverrideString"(): string;
32
+ "__#19245@#_themeResource": Promise<void | Record<string, any>>;
33
+ "__#19245@#_tenantThemeResource": Promise<Record<string, any>>;
34
+ "__#19245@#fetchTheme"(): Promise<Record<string, any>>;
35
+ readonly "__#19245@#themeResource": Promise<void | Record<string, any>>;
36
+ "__#19245@#loadGlobalStyle"(): Promise<void>;
37
+ "__#19245@#fetchTenantTheme"(): Promise<Record<string, any>>;
38
+ readonly "__#19245@#tenantThemeResource": Promise<Record<string, any>>;
39
+ "__#19245@#loadTenantStyle"(): Promise<void>;
40
+ "__#19245@#loadCustomStyle"(): Promise<void>;
41
+ "__#19245@#loadComponentsStyle"(): Promise<void>;
42
+ "__#19245@#getFontsConfig"(): Promise<Record<string, {
43
+ url?: string;
44
+ }>>;
45
+ "__#19245@#loadFonts"(): Promise<void>;
46
+ "__#19245@#applyTheme"(): Promise<void>;
47
+ "__#19245@#onThemeChange": () => void;
48
+ "__#19245@#loadTheme"(): void;
49
+ "__#19245@#toggleOsThemeChangeListener": (listen: boolean) => void;
50
+ init(): Promise<void>;
51
+ injectStyle: ((cssString: string, { prepend }?: {
52
+ prepend?: boolean;
53
+ }) => {
54
+ styleEle: HTMLStyleElement;
55
+ ref: HTMLElement | ShadowRoot;
56
+ replaceSync(cssString: string): void;
57
+ readonly cssRules: CSSRuleList;
58
+ } | CSSStyleSheet) & ((cssString: string, { prepend }?: {
59
+ prepend?: boolean;
60
+ }) => {
61
+ styleEle: HTMLStyleElement;
62
+ ref: HTMLElement | ShadowRoot;
63
+ replaceSync(cssString: string): void;
64
+ readonly cssRules: CSSRuleList;
65
+ } | CSSStyleSheet);
66
+ nonce: string;
67
+ "__#19236@#setNonce": (() => void) & (() => void);
68
+ "__#19231@#observeMappings": {} & {} & {} & {} & {} & {} & {} & {} & {} & {};
69
+ observeAttribute: ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any);
70
+ observeAttributes: ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void);
71
+ "__#19230@#isInit": boolean;
72
+ connectedCallback: (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void);
73
+ accessKey: string;
74
+ readonly accessKeyLabel: string;
75
+ autocapitalize: string;
76
+ dir: string;
77
+ draggable: boolean;
78
+ hidden: boolean;
79
+ inert: boolean;
80
+ innerText: string;
81
+ lang: string;
82
+ readonly offsetHeight: number;
83
+ readonly offsetLeft: number;
84
+ readonly offsetParent: Element;
85
+ readonly offsetTop: number;
86
+ readonly offsetWidth: number;
87
+ outerText: string;
88
+ popover: string;
89
+ spellcheck: boolean;
90
+ title: string;
91
+ translate: boolean;
92
+ attachInternals(): ElementInternals;
93
+ click(): void;
94
+ hidePopover(): void;
95
+ showPopover(): void;
96
+ togglePopover(force?: boolean): boolean;
97
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
98
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
99
+ removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
100
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
101
+ attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
102
+ readonly attributes: NamedNodeMap;
103
+ readonly classList: DOMTokenList;
104
+ className: string;
105
+ readonly clientHeight: number;
106
+ readonly clientLeft: number;
107
+ readonly clientTop: number;
108
+ readonly clientWidth: number;
109
+ id: string;
110
+ readonly localName: string;
111
+ readonly namespaceURI: string;
112
+ onfullscreenchange: (this: Element, ev: Event) => any;
113
+ onfullscreenerror: (this: Element, ev: Event) => any;
114
+ outerHTML: string;
115
+ readonly ownerDocument: Document;
116
+ readonly part: DOMTokenList;
117
+ readonly prefix: string;
118
+ readonly scrollHeight: number;
119
+ scrollLeft: number;
120
+ scrollTop: number;
121
+ readonly scrollWidth: number;
122
+ readonly shadowRoot: ShadowRoot;
123
+ slot: string;
124
+ readonly tagName: string;
125
+ attachShadow(init: ShadowRootInit): ShadowRoot;
126
+ checkVisibility(options?: CheckVisibilityOptions): boolean;
127
+ closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
128
+ closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3];
129
+ closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4];
130
+ closest<E extends Element = Element>(selectors: string): E;
131
+ computedStyleMap(): StylePropertyMapReadOnly;
132
+ getAttribute(qualifiedName: string): string;
133
+ getAttributeNS(namespace: string, localName: string): string;
134
+ getAttributeNames(): string[];
135
+ getAttributeNode(qualifiedName: string): Attr;
136
+ getAttributeNodeNS(namespace: string, localName: string): Attr;
137
+ getBoundingClientRect(): DOMRect;
138
+ getClientRects(): DOMRectList;
139
+ getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
140
+ getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
141
+ getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
142
+ getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
143
+ getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
144
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
145
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
146
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
147
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
148
+ getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
149
+ hasAttribute(qualifiedName: string): boolean;
150
+ hasAttributeNS(namespace: string, localName: string): boolean;
151
+ hasAttributes(): boolean;
152
+ hasPointerCapture(pointerId: number): boolean;
153
+ insertAdjacentElement(where: InsertPosition, element: Element): Element;
154
+ insertAdjacentHTML(position: InsertPosition, text: string): void;
155
+ insertAdjacentText(where: InsertPosition, data: string): void;
156
+ matches(selectors: string): boolean;
157
+ releasePointerCapture(pointerId: number): void;
158
+ removeAttribute(qualifiedName: string): void;
159
+ removeAttributeNS(namespace: string, localName: string): void;
160
+ removeAttributeNode(attr: Attr): Attr;
161
+ requestFullscreen(options?: FullscreenOptions): Promise<void>;
162
+ requestPointerLock(): void;
163
+ scroll(options?: ScrollToOptions): void;
164
+ scroll(x: number, y: number): void;
165
+ scrollBy(options?: ScrollToOptions): void;
166
+ scrollBy(x: number, y: number): void;
167
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
168
+ scrollTo(options?: ScrollToOptions): void;
169
+ scrollTo(x: number, y: number): void;
170
+ setAttribute(qualifiedName: string, value: string): void;
171
+ setAttributeNS(namespace: string, qualifiedName: string, value: string): void;
172
+ setAttributeNode(attr: Attr): Attr;
173
+ setAttributeNodeNS(attr: Attr): Attr;
174
+ setPointerCapture(pointerId: number): void;
175
+ toggleAttribute(qualifiedName: string, force?: boolean): boolean;
176
+ webkitMatchesSelector(selectors: string): boolean;
177
+ readonly baseURI: string;
178
+ readonly childNodes: NodeListOf<ChildNode>;
179
+ readonly firstChild: ChildNode;
180
+ readonly isConnected: boolean;
181
+ readonly lastChild: ChildNode;
182
+ readonly nextSibling: ChildNode;
183
+ readonly nodeName: string;
184
+ readonly nodeType: number;
185
+ nodeValue: string;
186
+ readonly parentElement: HTMLElement;
187
+ readonly parentNode: ParentNode;
188
+ readonly previousSibling: ChildNode;
189
+ textContent: string;
190
+ appendChild<T_1 extends Node>(node: T_1): T_1;
191
+ cloneNode(deep?: boolean): Node;
192
+ compareDocumentPosition(other: Node): number;
193
+ contains(other: Node): boolean;
194
+ getRootNode(options?: GetRootNodeOptions): Node;
195
+ hasChildNodes(): boolean;
196
+ insertBefore<T_2 extends Node>(node: T_2, child: Node): T_2;
197
+ isDefaultNamespace(namespace: string): boolean;
198
+ isEqualNode(otherNode: Node): boolean;
199
+ isSameNode(otherNode: Node): boolean;
200
+ lookupNamespaceURI(prefix: string): string;
201
+ lookupPrefix(namespace: string): string;
202
+ normalize(): void;
203
+ removeChild<T_3 extends Node>(child: T_3): T_3;
204
+ replaceChild<T_4 extends Node>(node: Node, child: T_4): T_4;
205
+ readonly ELEMENT_NODE: 1;
206
+ readonly ATTRIBUTE_NODE: 2;
207
+ readonly TEXT_NODE: 3;
208
+ readonly CDATA_SECTION_NODE: 4;
209
+ readonly ENTITY_REFERENCE_NODE: 5;
210
+ readonly ENTITY_NODE: 6;
211
+ readonly PROCESSING_INSTRUCTION_NODE: 7;
212
+ readonly COMMENT_NODE: 8;
213
+ readonly DOCUMENT_NODE: 9;
214
+ readonly DOCUMENT_TYPE_NODE: 10;
215
+ readonly DOCUMENT_FRAGMENT_NODE: 11;
216
+ readonly NOTATION_NODE: 12;
217
+ readonly DOCUMENT_POSITION_DISCONNECTED: 1;
218
+ readonly DOCUMENT_POSITION_PRECEDING: 2;
219
+ readonly DOCUMENT_POSITION_FOLLOWING: 4;
220
+ readonly DOCUMENT_POSITION_CONTAINS: 8;
221
+ readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
222
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
223
+ dispatchEvent(event: Event): boolean;
224
+ ariaAtomic: string;
225
+ ariaAutoComplete: string;
226
+ ariaBusy: string;
227
+ ariaChecked: string;
228
+ ariaColCount: string;
229
+ ariaColIndex: string;
230
+ ariaColSpan: string;
231
+ ariaCurrent: string;
232
+ ariaDescription: string;
233
+ ariaDisabled: string;
234
+ ariaExpanded: string;
235
+ ariaHasPopup: string;
236
+ ariaHidden: string;
237
+ ariaInvalid: string;
238
+ ariaKeyShortcuts: string;
239
+ ariaLabel: string;
240
+ ariaLevel: string;
241
+ ariaLive: string;
242
+ ariaModal: string;
243
+ ariaMultiLine: string;
244
+ ariaMultiSelectable: string;
245
+ ariaOrientation: string;
246
+ ariaPlaceholder: string;
247
+ ariaPosInSet: string;
248
+ ariaPressed: string;
249
+ ariaReadOnly: string;
250
+ ariaRequired: string;
251
+ ariaRoleDescription: string;
252
+ ariaRowCount: string;
253
+ ariaRowIndex: string;
254
+ ariaRowSpan: string;
255
+ ariaSelected: string;
256
+ ariaSetSize: string;
257
+ ariaSort: string;
258
+ ariaValueMax: string;
259
+ ariaValueMin: string;
260
+ ariaValueNow: string;
261
+ ariaValueText: string;
262
+ role: string;
263
+ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes, options?: number | KeyframeAnimationOptions): Animation;
264
+ getAnimations(options?: GetAnimationsOptions): Animation[];
265
+ after(...nodes: (string | Node)[]): void;
266
+ before(...nodes: (string | Node)[]): void;
267
+ remove(): void;
268
+ replaceWith(...nodes: (string | Node)[]): void;
269
+ innerHTML: string;
270
+ readonly nextElementSibling: Element;
271
+ readonly previousElementSibling: Element;
272
+ readonly childElementCount: number;
273
+ readonly children: HTMLCollection;
274
+ readonly firstElementChild: Element;
275
+ readonly lastElementChild: Element;
276
+ append(...nodes: (string | Node)[]): void;
277
+ prepend(...nodes: (string | Node)[]): void;
278
+ querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9];
279
+ querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10];
280
+ querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11];
281
+ querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12];
282
+ querySelector<E_1 extends Element = Element>(selectors: string): E_1;
283
+ querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
284
+ querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
285
+ querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
286
+ querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
287
+ querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
288
+ replaceChildren(...nodes: (string | Node)[]): void;
289
+ readonly assignedSlot: HTMLSlotElement;
290
+ readonly attributeStyleMap: StylePropertyMap;
291
+ readonly style: CSSStyleDeclaration;
292
+ contentEditable: string;
293
+ enterKeyHint: string;
294
+ inputMode: string;
295
+ readonly isContentEditable: boolean;
296
+ onabort: (this: GlobalEventHandlers, ev: UIEvent) => any;
297
+ onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
298
+ onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
299
+ onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
300
+ onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
301
+ onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
302
+ onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any;
303
+ onbeforetoggle: (this: GlobalEventHandlers, ev: Event) => any;
304
+ onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any;
305
+ oncancel: (this: GlobalEventHandlers, ev: Event) => any;
306
+ oncanplay: (this: GlobalEventHandlers, ev: Event) => any;
307
+ oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any;
308
+ onchange: (this: GlobalEventHandlers, ev: Event) => any;
309
+ onclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
310
+ onclose: (this: GlobalEventHandlers, ev: Event) => any;
311
+ oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
312
+ oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
313
+ oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
314
+ oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
315
+ ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
316
+ ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
317
+ ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
318
+ ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any;
319
+ ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any;
320
+ ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any;
321
+ ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any;
322
+ ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any;
323
+ ondurationchange: (this: GlobalEventHandlers, ev: Event) => any;
324
+ onemptied: (this: GlobalEventHandlers, ev: Event) => any;
325
+ onended: (this: GlobalEventHandlers, ev: Event) => any;
326
+ onerror: OnErrorEventHandlerNonNull;
327
+ onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any;
328
+ onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any;
329
+ ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
330
+ oninput: (this: GlobalEventHandlers, ev: Event) => any;
331
+ oninvalid: (this: GlobalEventHandlers, ev: Event) => any;
332
+ onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
333
+ onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
334
+ onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
335
+ onload: (this: GlobalEventHandlers, ev: Event) => any;
336
+ onloadeddata: (this: GlobalEventHandlers, ev: Event) => any;
337
+ onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any;
338
+ onloadstart: (this: GlobalEventHandlers, ev: Event) => any;
339
+ onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
340
+ onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any;
341
+ onmouseenter: (this: GlobalEventHandlers, ev: MouseEvent) => any;
342
+ onmouseleave: (this: GlobalEventHandlers, ev: MouseEvent) => any;
343
+ onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any;
344
+ onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
345
+ onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
346
+ onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
347
+ onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
348
+ onpause: (this: GlobalEventHandlers, ev: Event) => any;
349
+ onplay: (this: GlobalEventHandlers, ev: Event) => any;
350
+ onplaying: (this: GlobalEventHandlers, ev: Event) => any;
351
+ onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any;
352
+ onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any;
353
+ onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any;
354
+ onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any;
355
+ onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any;
356
+ onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any;
357
+ onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any;
358
+ onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any;
359
+ onprogress: (this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any;
360
+ onratechange: (this: GlobalEventHandlers, ev: Event) => any;
361
+ onreset: (this: GlobalEventHandlers, ev: Event) => any;
362
+ onresize: (this: GlobalEventHandlers, ev: UIEvent) => any;
363
+ onscroll: (this: GlobalEventHandlers, ev: Event) => any;
364
+ onscrollend: (this: GlobalEventHandlers, ev: Event) => any;
365
+ onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any;
366
+ onseeked: (this: GlobalEventHandlers, ev: Event) => any;
367
+ onseeking: (this: GlobalEventHandlers, ev: Event) => any;
368
+ onselect: (this: GlobalEventHandlers, ev: Event) => any;
369
+ onselectionchange: (this: GlobalEventHandlers, ev: Event) => any;
370
+ onselectstart: (this: GlobalEventHandlers, ev: Event) => any;
371
+ onslotchange: (this: GlobalEventHandlers, ev: Event) => any;
372
+ onstalled: (this: GlobalEventHandlers, ev: Event) => any;
373
+ onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any;
374
+ onsuspend: (this: GlobalEventHandlers, ev: Event) => any;
375
+ ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any;
376
+ ontoggle: (this: GlobalEventHandlers, ev: Event) => any;
377
+ ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
378
+ ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
379
+ ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
380
+ ontouchstart?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
381
+ ontransitioncancel: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
382
+ ontransitionend: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
383
+ ontransitionrun: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
384
+ ontransitionstart: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
385
+ onvolumechange: (this: GlobalEventHandlers, ev: Event) => any;
386
+ onwaiting: (this: GlobalEventHandlers, ev: Event) => any;
387
+ onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any;
388
+ onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any;
389
+ onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any;
390
+ onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any;
391
+ onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any;
392
+ autofocus: boolean;
393
+ readonly dataset: DOMStringMap;
394
+ tabIndex: number;
395
+ blur(): void;
396
+ focus(options?: FocusOptions): void;
397
+ "__#19229@#logger": import("../loggerMixin").Logger;
398
+ "__#19229@#wrapLogger": ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger) & ((logger: Partial<import("../loggerMixin").Logger>) => import("../loggerMixin").Logger);
399
+ get logger(): import("../loggerMixin").Logger;
400
+ set logger(logger: Partial<import("../loggerMixin").Logger>);
401
+ onLogEvent: ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void);
402
+ contentRootElement: HTMLElement;
403
+ rootElement: HTMLElement;
404
+ readonly config: Promise<import("../configMixin").Config>;
405
+ "__#19235@#configCacheClear": (() => void) & (() => void);
406
+ "__#19235@#_configResource": Promise<import("../configMixin").Config>;
407
+ "__#19235@#fetchConfig": (() => Promise<import("../configMixin").Config>) & (() => Promise<import("../configMixin").Config>);
408
+ "__#19234@#callbacks": Map<string, () => void> & Map<string, () => void>;
409
+ onReset: ((sectionId: string, callback: () => void | Promise<void>) => () => void) & ((sectionId: string, callback: () => void | Promise<void>) => () => void);
410
+ reset: ((...sectionIds: string[]) => Promise<void>) & ((...sectionIds: string[]) => Promise<void>);
411
+ "__#19232@#handleError": ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void);
412
+ "__#19233@#lastBaseUrl"?: string;
413
+ "__#19233@#workingBaseUrl"?: string;
414
+ "__#19233@#failedUrls": Set<string>;
415
+ "__#19233@#getResourceUrls": ((filename: string) => (URL & {
416
+ baseUrl: string;
417
+ }) | (URL & {
418
+ baseUrl: string;
419
+ })[]) & ((filename: string) => (URL & {
420
+ baseUrl: string;
421
+ }) | (URL & {
422
+ baseUrl: string;
423
+ })[]) & ((filename: string) => (URL & {
424
+ baseUrl: string;
425
+ }) | (URL & {
426
+ baseUrl: string;
427
+ })[]);
428
+ "__#19233@#createResourceUrl": ((filename: string, baseUrl: string) => URL & {
429
+ baseUrl: string;
430
+ }) & ((filename: string, baseUrl: string) => URL & {
431
+ baseUrl: string;
432
+ }) & ((filename: string, baseUrl: string) => URL & {
433
+ baseUrl: string;
434
+ });
435
+ fetchStaticResource: (<F extends "text" | "json">(filename: string, format: F) => Promise<{
436
+ body: F extends "json" ? Record<string, any> : string;
437
+ headers: Record<string, string>;
438
+ }>) & (<F_1 extends "text" | "json">(filename: string, format: F_1) => Promise<{
439
+ body: F_1 extends "json" ? Record<string, any> : string;
440
+ headers: Record<string, string>;
441
+ }>) & (<F_2 extends "text" | "json">(filename: string, format: F_2) => Promise<{
442
+ body: F_2 extends "json" ? Record<string, any> : string;
443
+ headers: Record<string, string>;
444
+ }>);
445
+ readonly baseStaticUrl: string;
446
+ readonly baseUrl: string;
447
+ readonly projectId: string;
448
+ "__#19239@#getComponentsVersion"(): Promise<string>;
449
+ "__#19239@#getComponentsVersionSri"(): Promise<string>;
450
+ "__#19239@#descopeUi": Promise<any>;
451
+ readonly descopeUi: Promise<any>;
452
+ "__#19239@#loadDescopeUiComponent"(componentName: string): Promise<any>;
453
+ "__#19239@#getDescopeUi"(): Promise<any>;
454
+ loadDescopeUiComponents(templateOrComponentNames: HTMLTemplateElement | string[]): Promise<any[]>;
455
+ readonly baseCdnUrl: string;
456
+ injectNpmLib(libName: string, version: string, filePath?: string, overrides?: string[], integrity?: string): Promise<import("../injectNpmLibMixin/helpers").ScriptData>;
457
+ readonly tenantId: string;
458
+ };
459
+ } & T;
460
+ export {};
@@ -0,0 +1 @@
1
+ export * from './flowInputMixin';
@@ -9,8 +9,8 @@ export declare const formMixin: <T extends CustomElementConstructor>(superclass:
9
9
  getFormFieldNames(rootEle: ElementOrEmpty): string[];
10
10
  disableFormField(rootEle: ElementOrEmpty, name: string): void;
11
11
  removeFormField(rootEle: ElementOrEmpty, name: string): void;
12
- "__#16757@#logger": import("./loggerMixin").Logger;
13
- "__#16757@#wrapLogger"(logger: Partial<import("./loggerMixin").Logger>): import("./loggerMixin").Logger;
12
+ "__#19229@#logger": import("./loggerMixin").Logger;
13
+ "__#19229@#wrapLogger"(logger: Partial<import("./loggerMixin").Logger>): import("./loggerMixin").Logger;
14
14
  get logger(): import("./loggerMixin").Logger;
15
15
  set logger(logger: Partial<import("./loggerMixin").Logger>);
16
16
  onLogEvent(logLevel: "error" | "warn" | "info" | "debug", data: any[]): void;
@@ -11,12 +11,12 @@ export declare const initElementMixin: <T extends CustomElementConstructor>(supe
11
11
  readonly cssRules: CSSRuleList;
12
12
  } | CSSStyleSheet;
13
13
  nonce: string;
14
- "__#16764@#setNonce"(): void;
14
+ "__#19236@#setNonce"(): void;
15
15
  init(): Promise<void>;
16
- "__#16759@#observeMappings": {};
16
+ "__#19231@#observeMappings": {};
17
17
  observeAttribute(attrName: string, onAttrChange: (attrName: string, value: string) => void): () => any;
18
18
  observeAttributes(attrs: string[], cb: (attrName: string, value: string) => void): () => void;
19
- "__#16758@#isInit": boolean;
19
+ "__#19230@#isInit": boolean;
20
20
  connectedCallback: (() => void) & (() => void) & (() => void);
21
21
  accessKey: string;
22
22
  readonly accessKeyLabel: string;
@@ -342,8 +342,8 @@ export declare const initElementMixin: <T extends CustomElementConstructor>(supe
342
342
  tabIndex: number;
343
343
  blur(): void;
344
344
  focus(options?: FocusOptions): void;
345
- "__#16757@#logger": import("./loggerMixin").Logger;
346
- "__#16757@#wrapLogger"(logger: Partial<import("./loggerMixin").Logger>): import("./loggerMixin").Logger;
345
+ "__#19229@#logger": import("./loggerMixin").Logger;
346
+ "__#19229@#wrapLogger"(logger: Partial<import("./loggerMixin").Logger>): import("./loggerMixin").Logger;
347
347
  get logger(): import("./loggerMixin").Logger;
348
348
  set logger(logger: Partial<import("./loggerMixin").Logger>);
349
349
  onLogEvent(logLevel: "error" | "warn" | "info" | "debug", data: any[]): void;
@@ -1,6 +1,6 @@
1
1
  export declare const initLifecycleMixin: <T extends CustomElementConstructor>(superclass: T) => {
2
2
  new (...params: any[]): {
3
- "__#16758@#isInit": boolean;
3
+ "__#19230@#isInit": boolean;
4
4
  connectedCallback(): void;
5
5
  init(): Promise<void>;
6
6
  accessKey: string;
@@ -5,8 +5,8 @@ export declare const injectNpmLibMixin: <T extends CustomElementConstructor>(sup
5
5
  new (...params: any[]): {
6
6
  readonly baseCdnUrl: string;
7
7
  injectNpmLib(libName: string, version: string, filePath?: string, overrides?: string[], integrity?: string): Promise<import("./helpers").ScriptData>;
8
- "__#16757@#logger": import("../loggerMixin").Logger;
9
- "__#16757@#wrapLogger"(logger: Partial<import("../loggerMixin").Logger>): import("../loggerMixin").Logger;
8
+ "__#19229@#logger": import("../loggerMixin").Logger;
9
+ "__#19229@#wrapLogger"(logger: Partial<import("../loggerMixin").Logger>): import("../loggerMixin").Logger;
10
10
  get logger(): import("../loggerMixin").Logger;
11
11
  set logger(logger: Partial<import("../loggerMixin").Logger>);
12
12
  onLogEvent(logLevel: "error" | "warn" | "info" | "debug", data: any[]): void;
@@ -13,12 +13,12 @@ export declare const injectStyleMixin: <T extends CustomElementConstructor>(supe
13
13
  prepend?: boolean;
14
14
  }): CSSStyleSheetMock | CSSStyleSheet;
15
15
  nonce: string;
16
- "__#16764@#setNonce"(): void;
16
+ "__#19236@#setNonce"(): void;
17
17
  init(): Promise<void>;
18
- "__#16759@#observeMappings": {};
18
+ "__#19231@#observeMappings": {};
19
19
  observeAttribute(attrName: string, onAttrChange: (attrName: string, value: string) => void): () => any;
20
20
  observeAttributes(attrs: string[], cb: (attrName: string, value: string) => void): () => void;
21
- "__#16758@#isInit": boolean;
21
+ "__#19230@#isInit": boolean;
22
22
  connectedCallback: (() => void) & (() => void) & (() => void);
23
23
  accessKey: string;
24
24
  readonly accessKeyLabel: string;
@@ -344,8 +344,8 @@ export declare const injectStyleMixin: <T extends CustomElementConstructor>(supe
344
344
  tabIndex: number;
345
345
  blur(): void;
346
346
  focus(options?: FocusOptions): void;
347
- "__#16757@#logger": import("./loggerMixin").Logger;
348
- "__#16757@#wrapLogger"(logger: Partial<import("./loggerMixin").Logger>): import("./loggerMixin").Logger;
347
+ "__#19229@#logger": import("./loggerMixin").Logger;
348
+ "__#19229@#wrapLogger"(logger: Partial<import("./loggerMixin").Logger>): import("./loggerMixin").Logger;
349
349
  get logger(): import("./loggerMixin").Logger;
350
350
  set logger(logger: Partial<import("./loggerMixin").Logger>);
351
351
  onLogEvent(logLevel: "error" | "warn" | "info" | "debug", data: any[]): void;
@@ -0,0 +1 @@
1
+ export * from './localeMixin';