@descope/web-component 3.31.3 → 3.32.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.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import createSdk from '@descope/web-js-sdk';
2
- import * as _descope_sdk_mixins_themeMixin from '@descope/sdk-mixins/themeMixin';
2
+ import * as _descope_sdk_mixins_static_resources_mixin from '@descope/sdk-mixins/static-resources-mixin';
3
3
 
4
4
  type SdkConfig = Parameters<typeof createSdk>[0];
5
5
  type Sdk = ReturnType<typeof createSdk>;
@@ -79,8 +79,8 @@ type FlowState = {
79
79
  } & SSOQueryParams;
80
80
  type StepState = {
81
81
  screenState: ScreenState;
82
- htmlUrl: string;
83
- htmlLocaleUrl: string;
82
+ htmlFilename: string;
83
+ htmlLocaleFilename: string;
84
84
  next: NextFn;
85
85
  direction: Direction | undefined;
86
86
  samlIdpUsername: string;
@@ -494,28 +494,19 @@ declare const BaseClass: {
494
494
  focus(options?: FocusOptions): void;
495
495
  };
496
496
  } & (new (...params: any[]) => {
497
- "__#24160@#globalStyleTag": HTMLStyleElement;
498
- readonly theme: _descope_sdk_mixins_themeMixin.ThemeOptions;
499
- readonly styleId: string;
500
- "__#24160@#_themeResource": Promise<void | Record<string, any>>;
501
- "__#24160@#fetchTheme"(): Promise<Record<string, any>>;
502
- readonly "__#24160@#themeResource": Promise<void | Record<string, any>>;
503
- "__#24160@#loadGlobalStyle"(): Promise<void>;
504
- "__#24160@#loadComponentsStyle"(): Promise<void>;
505
- "__#24160@#getFontsConfig"(): Promise<Record<string, {
506
- url?: string;
507
- }>>;
508
- "__#24160@#loadFonts"(): Promise<void>;
509
- "__#24160@#applyTheme"(): Promise<void>;
510
- "__#24160@#onThemeChange": () => void;
511
- "__#24160@#loadTheme"(): void;
512
- "__#24160@#toggleOsThemeChangeListener": (listen: boolean) => void;
513
- init(): Promise<void>;
514
- "__#24149@#observeMappings": {};
515
- 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);
516
- 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);
517
- "__#24148@#isInit": boolean;
518
- connectedCallback: (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void);
497
+ "__#24314@#lastBaseUrl"?: string;
498
+ "__#24314@#workingBaseUrl"?: string;
499
+ "__#24314@#getResourceUrls"(filename: string): (URL & {
500
+ baseUrl: string;
501
+ }) | (URL & {
502
+ baseUrl: string;
503
+ })[];
504
+ fetchStaticResource<F extends "text" | "json">(filename: string, format: F): Promise<{
505
+ body: F extends "json" ? Record<string, any> : string;
506
+ headers: Record<string, string>;
507
+ }>;
508
+ readonly baseStaticUrl: string;
509
+ readonly baseUrl: string;
519
510
  accessKey: string;
520
511
  readonly accessKeyLabel: string;
521
512
  autocapitalize: string;
@@ -545,6 +536,7 @@ declare const BaseClass: {
545
536
  removeEventListener<K_1_1 extends keyof HTMLElementEventMap>(type: K_1_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1_1]) => any, options?: boolean | EventListenerOptions): void;
546
537
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
547
538
  attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
539
+ connectedCallback: (() => void) & (() => void) & (() => void);
548
540
  readonly attributes: NamedNodeMap;
549
541
  readonly classList: DOMTokenList;
550
542
  className: string;
@@ -841,32 +833,407 @@ declare const BaseClass: {
841
833
  tabIndex: number;
842
834
  blur(): void;
843
835
  focus(options?: FocusOptions): void;
844
- "__#24147@#logger": _descope_sdk_mixins_themeMixin.Logger;
845
- "__#24147@#wrapLogger": ((logger: Partial<_descope_sdk_mixins_themeMixin.Logger>) => _descope_sdk_mixins_themeMixin.Logger) & ((logger: Partial<_descope_sdk_mixins_themeMixin.Logger>) => _descope_sdk_mixins_themeMixin.Logger) & ((logger: Partial<_descope_sdk_mixins_themeMixin.Logger>) => _descope_sdk_mixins_themeMixin.Logger) & ((logger: Partial<_descope_sdk_mixins_themeMixin.Logger>) => _descope_sdk_mixins_themeMixin.Logger) & ((logger: Partial<_descope_sdk_mixins_themeMixin.Logger>) => _descope_sdk_mixins_themeMixin.Logger) & ((logger: Partial<_descope_sdk_mixins_themeMixin.Logger>) => _descope_sdk_mixins_themeMixin.Logger) & ((logger: Partial<_descope_sdk_mixins_themeMixin.Logger>) => _descope_sdk_mixins_themeMixin.Logger) & ((logger: Partial<_descope_sdk_mixins_themeMixin.Logger>) => _descope_sdk_mixins_themeMixin.Logger) & ((logger: Partial<_descope_sdk_mixins_themeMixin.Logger>) => _descope_sdk_mixins_themeMixin.Logger) & ((logger: Partial<_descope_sdk_mixins_themeMixin.Logger>) => _descope_sdk_mixins_themeMixin.Logger) & ((logger: Partial<_descope_sdk_mixins_themeMixin.Logger>) => _descope_sdk_mixins_themeMixin.Logger) & ((logger: Partial<_descope_sdk_mixins_themeMixin.Logger>) => _descope_sdk_mixins_themeMixin.Logger) & ((logger: Partial<_descope_sdk_mixins_themeMixin.Logger>) => _descope_sdk_mixins_themeMixin.Logger);
846
- get logger(): _descope_sdk_mixins_themeMixin.Logger;
847
- set logger(logger: Partial<_descope_sdk_mixins_themeMixin.Logger>);
836
+ readonly projectId: string;
837
+ "__#24313@#handleError"(attrName: string, newValue: string): void;
838
+ init(): Promise<void>;
839
+ "__#24312@#observeMappings": {};
840
+ observeAttribute(attrName: string, onAttrChange: (attrName: string, value: string) => void): () => any;
841
+ observeAttributes(attrs: string[], cb: (attrName: string, value: string) => void): () => void;
842
+ "__#24311@#isInit": boolean;
843
+ "__#24310@#logger": _descope_sdk_mixins_static_resources_mixin.Logger;
844
+ "__#24310@#wrapLogger": ((logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>) => _descope_sdk_mixins_static_resources_mixin.Logger) & ((logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>) => _descope_sdk_mixins_static_resources_mixin.Logger) & ((logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>) => _descope_sdk_mixins_static_resources_mixin.Logger);
845
+ get logger(): _descope_sdk_mixins_static_resources_mixin.Logger;
846
+ set logger(logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>);
847
+ 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);
848
+ }) & (new (...params: any[]) => {
849
+ "__#24324@#globalStyleTag": HTMLStyleElement;
850
+ readonly theme: _descope_sdk_mixins_static_resources_mixin.ThemeOptions;
851
+ readonly styleId: string;
852
+ "__#24324@#_themeResource": Promise<void | Record<string, any>>;
853
+ "__#24324@#fetchTheme"(): Promise<Record<string, any>>;
854
+ readonly "__#24324@#themeResource": Promise<void | Record<string, any>>;
855
+ "__#24324@#loadGlobalStyle"(): Promise<void>;
856
+ "__#24324@#loadComponentsStyle"(): Promise<void>;
857
+ "__#24324@#getFontsConfig"(): Promise<Record<string, {
858
+ url?: string;
859
+ }>>;
860
+ "__#24324@#loadFonts"(): Promise<void>;
861
+ "__#24324@#applyTheme"(): Promise<void>;
862
+ "__#24324@#onThemeChange": () => void;
863
+ "__#24324@#loadTheme"(): void;
864
+ "__#24324@#toggleOsThemeChangeListener": (listen: boolean) => void;
865
+ init(): Promise<void>;
866
+ "__#24312@#observeMappings": {};
867
+ 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);
868
+ 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);
869
+ "__#24311@#isInit": boolean;
870
+ connectedCallback: (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void);
871
+ accessKey: string;
872
+ readonly accessKeyLabel: string;
873
+ autocapitalize: string;
874
+ dir: string;
875
+ draggable: boolean;
876
+ hidden: boolean;
877
+ inert: boolean;
878
+ innerText: string;
879
+ lang: string;
880
+ readonly offsetHeight: number;
881
+ readonly offsetLeft: number;
882
+ readonly offsetParent: Element;
883
+ readonly offsetTop: number;
884
+ readonly offsetWidth: number;
885
+ outerText: string;
886
+ popover: string;
887
+ spellcheck: boolean;
888
+ title: string;
889
+ translate: boolean;
890
+ attachInternals(): ElementInternals;
891
+ click(): void;
892
+ hidePopover(): void;
893
+ showPopover(): void;
894
+ togglePopover(force?: boolean): boolean;
895
+ addEventListener<K_18 extends keyof HTMLElementEventMap>(type: K_18, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_18]) => any, options?: boolean | AddEventListenerOptions): void;
896
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
897
+ removeEventListener<K_1_2 extends keyof HTMLElementEventMap>(type: K_1_2, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1_2]) => any, options?: boolean | EventListenerOptions): void;
898
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
899
+ attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
900
+ readonly attributes: NamedNodeMap;
901
+ readonly classList: DOMTokenList;
902
+ className: string;
903
+ readonly clientHeight: number;
904
+ readonly clientLeft: number;
905
+ readonly clientTop: number;
906
+ readonly clientWidth: number;
907
+ id: string;
908
+ readonly localName: string;
909
+ readonly namespaceURI: string;
910
+ onfullscreenchange: (this: Element, ev: Event) => any;
911
+ onfullscreenerror: (this: Element, ev: Event) => any;
912
+ outerHTML: string;
913
+ readonly ownerDocument: Document;
914
+ readonly part: DOMTokenList;
915
+ readonly prefix: string;
916
+ readonly scrollHeight: number;
917
+ scrollLeft: number;
918
+ scrollTop: number;
919
+ readonly scrollWidth: number;
920
+ readonly shadowRoot: ShadowRoot;
921
+ slot: string;
922
+ readonly tagName: string;
923
+ attachShadow(init: ShadowRootInit): ShadowRoot;
924
+ checkVisibility(options?: CheckVisibilityOptions): boolean;
925
+ closest<K_2_2 extends keyof HTMLElementTagNameMap>(selector: K_2_2): HTMLElementTagNameMap[K_2_2];
926
+ closest<K_3_2 extends keyof SVGElementTagNameMap>(selector: K_3_2): SVGElementTagNameMap[K_3_2];
927
+ closest<K_4_2 extends keyof MathMLElementTagNameMap>(selector: K_4_2): MathMLElementTagNameMap[K_4_2];
928
+ closest<E_4 extends Element = Element>(selectors: string): E_4;
929
+ computedStyleMap(): StylePropertyMapReadOnly;
930
+ getAttribute(qualifiedName: string): string;
931
+ getAttributeNS(namespace: string, localName: string): string;
932
+ getAttributeNames(): string[];
933
+ getAttributeNode(qualifiedName: string): Attr;
934
+ getAttributeNodeNS(namespace: string, localName: string): Attr;
935
+ getBoundingClientRect(): DOMRect;
936
+ getClientRects(): DOMRectList;
937
+ getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
938
+ getElementsByTagName<K_5_2 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5_2): HTMLCollectionOf<HTMLElementTagNameMap[K_5_2]>;
939
+ getElementsByTagName<K_6_2 extends keyof SVGElementTagNameMap>(qualifiedName: K_6_2): HTMLCollectionOf<SVGElementTagNameMap[K_6_2]>;
940
+ getElementsByTagName<K_7_2 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7_2): HTMLCollectionOf<MathMLElementTagNameMap[K_7_2]>;
941
+ getElementsByTagName<K_8_2 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8_2): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8_2]>;
942
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
943
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
944
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
945
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
946
+ getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
947
+ hasAttribute(qualifiedName: string): boolean;
948
+ hasAttributeNS(namespace: string, localName: string): boolean;
949
+ hasAttributes(): boolean;
950
+ hasPointerCapture(pointerId: number): boolean;
951
+ insertAdjacentElement(where: InsertPosition, element: Element): Element;
952
+ insertAdjacentHTML(position: InsertPosition, text: string): void;
953
+ insertAdjacentText(where: InsertPosition, data: string): void;
954
+ matches(selectors: string): boolean;
955
+ releasePointerCapture(pointerId: number): void;
956
+ removeAttribute(qualifiedName: string): void;
957
+ removeAttributeNS(namespace: string, localName: string): void;
958
+ removeAttributeNode(attr: Attr): Attr;
959
+ requestFullscreen(options?: FullscreenOptions): Promise<void>;
960
+ requestPointerLock(): void;
961
+ scroll(options?: ScrollToOptions): void;
962
+ scroll(x: number, y: number): void;
963
+ scrollBy(options?: ScrollToOptions): void;
964
+ scrollBy(x: number, y: number): void;
965
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
966
+ scrollTo(options?: ScrollToOptions): void;
967
+ scrollTo(x: number, y: number): void;
968
+ setAttribute(qualifiedName: string, value: string): void;
969
+ setAttributeNS(namespace: string, qualifiedName: string, value: string): void;
970
+ setAttributeNode(attr: Attr): Attr;
971
+ setAttributeNodeNS(attr: Attr): Attr;
972
+ setPointerCapture(pointerId: number): void;
973
+ toggleAttribute(qualifiedName: string, force?: boolean): boolean;
974
+ webkitMatchesSelector(selectors: string): boolean;
975
+ readonly baseURI: string;
976
+ readonly childNodes: NodeListOf<ChildNode>;
977
+ readonly firstChild: ChildNode;
978
+ readonly isConnected: boolean;
979
+ readonly lastChild: ChildNode;
980
+ readonly nextSibling: ChildNode;
981
+ readonly nodeName: string;
982
+ readonly nodeType: number;
983
+ nodeValue: string;
984
+ readonly parentElement: HTMLElement;
985
+ readonly parentNode: ParentNode;
986
+ readonly previousSibling: ChildNode;
987
+ textContent: string;
988
+ appendChild<T_1_2 extends Node>(node: T_1_2): T_1_2;
989
+ cloneNode(deep?: boolean): Node;
990
+ compareDocumentPosition(other: Node): number;
991
+ contains(other: Node): boolean;
992
+ getRootNode(options?: GetRootNodeOptions): Node;
993
+ hasChildNodes(): boolean;
994
+ insertBefore<T_2_2 extends Node>(node: T_2_2, child: Node): T_2_2;
995
+ isDefaultNamespace(namespace: string): boolean;
996
+ isEqualNode(otherNode: Node): boolean;
997
+ isSameNode(otherNode: Node): boolean;
998
+ lookupNamespaceURI(prefix: string): string;
999
+ lookupPrefix(namespace: string): string;
1000
+ normalize(): void;
1001
+ removeChild<T_3_2 extends Node>(child: T_3_2): T_3_2;
1002
+ replaceChild<T_4_1 extends Node>(node: Node, child: T_4_1): T_4_1;
1003
+ readonly ELEMENT_NODE: 1;
1004
+ readonly ATTRIBUTE_NODE: 2;
1005
+ readonly TEXT_NODE: 3;
1006
+ readonly CDATA_SECTION_NODE: 4;
1007
+ readonly ENTITY_REFERENCE_NODE: 5;
1008
+ readonly ENTITY_NODE: 6;
1009
+ readonly PROCESSING_INSTRUCTION_NODE: 7;
1010
+ readonly COMMENT_NODE: 8;
1011
+ readonly DOCUMENT_NODE: 9;
1012
+ readonly DOCUMENT_TYPE_NODE: 10;
1013
+ readonly DOCUMENT_FRAGMENT_NODE: 11;
1014
+ readonly NOTATION_NODE: 12;
1015
+ readonly DOCUMENT_POSITION_DISCONNECTED: 1;
1016
+ readonly DOCUMENT_POSITION_PRECEDING: 2;
1017
+ readonly DOCUMENT_POSITION_FOLLOWING: 4;
1018
+ readonly DOCUMENT_POSITION_CONTAINS: 8;
1019
+ readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
1020
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
1021
+ dispatchEvent(event: Event): boolean;
1022
+ ariaAtomic: string;
1023
+ ariaAutoComplete: string;
1024
+ ariaBusy: string;
1025
+ ariaChecked: string;
1026
+ ariaColCount: string;
1027
+ ariaColIndex: string;
1028
+ ariaColSpan: string;
1029
+ ariaCurrent: string;
1030
+ ariaDescription: string;
1031
+ ariaDisabled: string;
1032
+ ariaExpanded: string;
1033
+ ariaHasPopup: string;
1034
+ ariaHidden: string;
1035
+ ariaInvalid: string;
1036
+ ariaKeyShortcuts: string;
1037
+ ariaLabel: string;
1038
+ ariaLevel: string;
1039
+ ariaLive: string;
1040
+ ariaModal: string;
1041
+ ariaMultiLine: string;
1042
+ ariaMultiSelectable: string;
1043
+ ariaOrientation: string;
1044
+ ariaPlaceholder: string;
1045
+ ariaPosInSet: string;
1046
+ ariaPressed: string;
1047
+ ariaReadOnly: string;
1048
+ ariaRequired: string;
1049
+ ariaRoleDescription: string;
1050
+ ariaRowCount: string;
1051
+ ariaRowIndex: string;
1052
+ ariaRowSpan: string;
1053
+ ariaSelected: string;
1054
+ ariaSetSize: string;
1055
+ ariaSort: string;
1056
+ ariaValueMax: string;
1057
+ ariaValueMin: string;
1058
+ ariaValueNow: string;
1059
+ ariaValueText: string;
1060
+ role: string;
1061
+ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes, options?: number | KeyframeAnimationOptions): Animation;
1062
+ getAnimations(options?: GetAnimationsOptions): Animation[];
1063
+ after(...nodes: (string | Node)[]): void;
1064
+ before(...nodes: (string | Node)[]): void;
1065
+ remove(): void;
1066
+ replaceWith(...nodes: (string | Node)[]): void;
1067
+ innerHTML: string;
1068
+ readonly nextElementSibling: Element;
1069
+ readonly previousElementSibling: Element;
1070
+ readonly childElementCount: number;
1071
+ readonly children: HTMLCollection;
1072
+ readonly firstElementChild: Element;
1073
+ readonly lastElementChild: Element;
1074
+ append(...nodes: (string | Node)[]): void;
1075
+ prepend(...nodes: (string | Node)[]): void;
1076
+ querySelector<K_9_2 extends keyof HTMLElementTagNameMap>(selectors: K_9_2): HTMLElementTagNameMap[K_9_2];
1077
+ querySelector<K_10_2 extends keyof SVGElementTagNameMap>(selectors: K_10_2): SVGElementTagNameMap[K_10_2];
1078
+ querySelector<K_11_2 extends keyof MathMLElementTagNameMap>(selectors: K_11_2): MathMLElementTagNameMap[K_11_2];
1079
+ querySelector<K_12_2 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12_2): HTMLElementDeprecatedTagNameMap[K_12_2];
1080
+ querySelector<E_1_2 extends Element = Element>(selectors: string): E_1_2;
1081
+ querySelectorAll<K_13_2 extends keyof HTMLElementTagNameMap>(selectors: K_13_2): NodeListOf<HTMLElementTagNameMap[K_13_2]>;
1082
+ querySelectorAll<K_14_2 extends keyof SVGElementTagNameMap>(selectors: K_14_2): NodeListOf<SVGElementTagNameMap[K_14_2]>;
1083
+ querySelectorAll<K_15_2 extends keyof MathMLElementTagNameMap>(selectors: K_15_2): NodeListOf<MathMLElementTagNameMap[K_15_2]>;
1084
+ querySelectorAll<K_16_2 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16_2): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16_2]>;
1085
+ querySelectorAll<E_2_2 extends Element = Element>(selectors: string): NodeListOf<E_2_2>;
1086
+ replaceChildren(...nodes: (string | Node)[]): void;
1087
+ readonly assignedSlot: HTMLSlotElement;
1088
+ readonly attributeStyleMap: StylePropertyMap;
1089
+ readonly style: CSSStyleDeclaration;
1090
+ contentEditable: string;
1091
+ enterKeyHint: string;
1092
+ inputMode: string;
1093
+ readonly isContentEditable: boolean;
1094
+ onabort: (this: GlobalEventHandlers, ev: UIEvent) => any;
1095
+ onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
1096
+ onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
1097
+ onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
1098
+ onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
1099
+ onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1100
+ onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any;
1101
+ onbeforetoggle: (this: GlobalEventHandlers, ev: Event) => any;
1102
+ onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any;
1103
+ oncancel: (this: GlobalEventHandlers, ev: Event) => any;
1104
+ oncanplay: (this: GlobalEventHandlers, ev: Event) => any;
1105
+ oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any;
1106
+ onchange: (this: GlobalEventHandlers, ev: Event) => any;
1107
+ onclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1108
+ onclose: (this: GlobalEventHandlers, ev: Event) => any;
1109
+ oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1110
+ oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
1111
+ oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
1112
+ oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
1113
+ ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1114
+ ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
1115
+ ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
1116
+ ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any;
1117
+ ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any;
1118
+ ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any;
1119
+ ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any;
1120
+ ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any;
1121
+ ondurationchange: (this: GlobalEventHandlers, ev: Event) => any;
1122
+ onemptied: (this: GlobalEventHandlers, ev: Event) => any;
1123
+ onended: (this: GlobalEventHandlers, ev: Event) => any;
1124
+ onerror: OnErrorEventHandlerNonNull;
1125
+ onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any;
1126
+ onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any;
1127
+ ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
1128
+ oninput: (this: GlobalEventHandlers, ev: Event) => any;
1129
+ oninvalid: (this: GlobalEventHandlers, ev: Event) => any;
1130
+ onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
1131
+ onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
1132
+ onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
1133
+ onload: (this: GlobalEventHandlers, ev: Event) => any;
1134
+ onloadeddata: (this: GlobalEventHandlers, ev: Event) => any;
1135
+ onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any;
1136
+ onloadstart: (this: GlobalEventHandlers, ev: Event) => any;
1137
+ onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
1138
+ onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1139
+ onmouseenter: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1140
+ onmouseleave: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1141
+ onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1142
+ onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1143
+ onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1144
+ onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1145
+ onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
1146
+ onpause: (this: GlobalEventHandlers, ev: Event) => any;
1147
+ onplay: (this: GlobalEventHandlers, ev: Event) => any;
1148
+ onplaying: (this: GlobalEventHandlers, ev: Event) => any;
1149
+ onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any;
1150
+ onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any;
1151
+ onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any;
1152
+ onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any;
1153
+ onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any;
1154
+ onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any;
1155
+ onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any;
1156
+ onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any;
1157
+ onprogress: (this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any;
1158
+ onratechange: (this: GlobalEventHandlers, ev: Event) => any;
1159
+ onreset: (this: GlobalEventHandlers, ev: Event) => any;
1160
+ onresize: (this: GlobalEventHandlers, ev: UIEvent) => any;
1161
+ onscroll: (this: GlobalEventHandlers, ev: Event) => any;
1162
+ onscrollend: (this: GlobalEventHandlers, ev: Event) => any;
1163
+ onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any;
1164
+ onseeked: (this: GlobalEventHandlers, ev: Event) => any;
1165
+ onseeking: (this: GlobalEventHandlers, ev: Event) => any;
1166
+ onselect: (this: GlobalEventHandlers, ev: Event) => any;
1167
+ onselectionchange: (this: GlobalEventHandlers, ev: Event) => any;
1168
+ onselectstart: (this: GlobalEventHandlers, ev: Event) => any;
1169
+ onslotchange: (this: GlobalEventHandlers, ev: Event) => any;
1170
+ onstalled: (this: GlobalEventHandlers, ev: Event) => any;
1171
+ onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any;
1172
+ onsuspend: (this: GlobalEventHandlers, ev: Event) => any;
1173
+ ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any;
1174
+ ontoggle: (this: GlobalEventHandlers, ev: Event) => any;
1175
+ ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
1176
+ ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
1177
+ ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
1178
+ ontouchstart?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
1179
+ ontransitioncancel: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
1180
+ ontransitionend: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
1181
+ ontransitionrun: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
1182
+ ontransitionstart: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
1183
+ onvolumechange: (this: GlobalEventHandlers, ev: Event) => any;
1184
+ onwaiting: (this: GlobalEventHandlers, ev: Event) => any;
1185
+ onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any;
1186
+ onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any;
1187
+ onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any;
1188
+ onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any;
1189
+ onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any;
1190
+ autofocus: boolean;
1191
+ readonly dataset: DOMStringMap;
1192
+ nonce?: string;
1193
+ tabIndex: number;
1194
+ blur(): void;
1195
+ focus(options?: FocusOptions): void;
1196
+ "__#24310@#logger": _descope_sdk_mixins_static_resources_mixin.Logger;
1197
+ "__#24310@#wrapLogger": ((logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>) => _descope_sdk_mixins_static_resources_mixin.Logger) & ((logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>) => _descope_sdk_mixins_static_resources_mixin.Logger) & ((logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>) => _descope_sdk_mixins_static_resources_mixin.Logger) & ((logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>) => _descope_sdk_mixins_static_resources_mixin.Logger) & ((logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>) => _descope_sdk_mixins_static_resources_mixin.Logger) & ((logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>) => _descope_sdk_mixins_static_resources_mixin.Logger) & ((logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>) => _descope_sdk_mixins_static_resources_mixin.Logger) & ((logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>) => _descope_sdk_mixins_static_resources_mixin.Logger) & ((logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>) => _descope_sdk_mixins_static_resources_mixin.Logger) & ((logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>) => _descope_sdk_mixins_static_resources_mixin.Logger) & ((logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>) => _descope_sdk_mixins_static_resources_mixin.Logger) & ((logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>) => _descope_sdk_mixins_static_resources_mixin.Logger) & ((logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>) => _descope_sdk_mixins_static_resources_mixin.Logger);
1198
+ get logger(): _descope_sdk_mixins_static_resources_mixin.Logger;
1199
+ set logger(logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>);
848
1200
  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);
849
1201
  contentRootElement: HTMLElement;
850
1202
  rootElement: HTMLElement;
851
1203
  readonly config: any;
852
- "__#24151@#_configResource": any;
853
- "__#24151@#fetchConfig": (() => Promise<{
854
- projectConfig: _descope_sdk_mixins_themeMixin.ProjectConfiguration;
1204
+ "__#24315@#_configResource": any;
1205
+ "__#24315@#fetchConfig": (() => Promise<{
1206
+ projectConfig: _descope_sdk_mixins_static_resources_mixin.ProjectConfiguration;
855
1207
  executionContext: {
856
1208
  geo: any;
857
1209
  };
858
1210
  }>) & (() => Promise<{
859
- projectConfig: _descope_sdk_mixins_themeMixin.ProjectConfiguration;
1211
+ projectConfig: _descope_sdk_mixins_static_resources_mixin.ProjectConfiguration;
860
1212
  executionContext: {
861
1213
  geo: any;
862
1214
  };
863
1215
  }>);
864
- fetchStaticResource: (<F extends "text" | "json">(filename: string, format: F) => Promise<{
865
- body: F extends "json" ? Record<string, any> : string;
866
- headers: Record<string, string>;
867
- }>) & (<F_1 extends "text" | "json">(filename: string, format: F_1) => Promise<{
1216
+ "__#24314@#lastBaseUrl"?: string;
1217
+ "__#24314@#workingBaseUrl"?: string;
1218
+ "__#24314@#getResourceUrls": ((filename: string) => (URL & {
1219
+ baseUrl: string;
1220
+ }) | (URL & {
1221
+ baseUrl: string;
1222
+ })[]) & ((filename: string) => (URL & {
1223
+ baseUrl: string;
1224
+ }) | (URL & {
1225
+ baseUrl: string;
1226
+ })[]) & ((filename: string) => (URL & {
1227
+ baseUrl: string;
1228
+ }) | (URL & {
1229
+ baseUrl: string;
1230
+ })[]);
1231
+ fetchStaticResource: (<F_1 extends "text" | "json">(filename: string, format: F_1) => Promise<{
868
1232
  body: F_1 extends "json" ? Record<string, any> : string;
869
1233
  headers: Record<string, string>;
1234
+ }>) & (<F_1_1 extends "text" | "json">(filename: string, format: F_1_1) => Promise<{
1235
+ body: F_1_1 extends "json" ? Record<string, any> : string;
1236
+ headers: Record<string, string>;
870
1237
  }>) & (<F_2 extends "text" | "json">(filename: string, format: F_2) => Promise<{
871
1238
  body: F_2 extends "json" ? Record<string, any> : string;
872
1239
  headers: Record<string, string>;
@@ -874,19 +1241,19 @@ declare const BaseClass: {
874
1241
  readonly baseStaticUrl: string;
875
1242
  readonly baseUrl: string;
876
1243
  readonly projectId: string;
877
- "__#24150@#handleError": ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void);
878
- "__#24154@#errorCbsSym": symbol;
879
- "__#24154@#loadCbsSym": symbol;
880
- "__#24154@#getComponentsVersion"(): Promise<any>;
881
- "__#24154@#exposeAlternateEvents"(scriptEle: HTMLScriptElement): void;
882
- "__#24154@#handleFallbackScript"(errorCbs: ((error: string) => void)[], loadCbs: (() => void)[], elemId: string, scriptUrl: string): Promise<void>;
883
- "__#24154@#registerEvents"(scriptEle: HTMLScriptElement): void;
884
- "__#24154@#getDescopeUiLoadingScript"(): Promise<HTMLElement>;
885
- "__#24154@#descopeUi": Promise<any>;
1244
+ "__#24313@#handleError": ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void);
1245
+ "__#24318@#errorCbsSym": symbol;
1246
+ "__#24318@#loadCbsSym": symbol;
1247
+ "__#24318@#getComponentsVersion"(): Promise<any>;
1248
+ "__#24318@#exposeAlternateEvents"(scriptEle: HTMLScriptElement): void;
1249
+ "__#24318@#handleFallbackScript"(errorCbs: ((error: string) => void)[], loadCbs: (() => void)[], elemId: string, scriptUrl: string): Promise<void>;
1250
+ "__#24318@#registerEvents"(scriptEle: HTMLScriptElement): void;
1251
+ "__#24318@#getDescopeUiLoadingScript"(): Promise<HTMLElement>;
1252
+ "__#24318@#descopeUi": Promise<any>;
886
1253
  readonly descopeUi: Promise<any>;
887
- "__#24154@#loadDescopeUiComponent"(componentName: string): Promise<any>;
1254
+ "__#24318@#loadDescopeUiComponent"(componentName: string): Promise<any>;
888
1255
  loadDescopeUiComponents(templateOrComponentNames: string[] | HTMLTemplateElement): Promise<any[]>;
889
- "__#24154@#getDescopeUi"(): Promise<unknown>;
1256
+ "__#24318@#getDescopeUi"(): Promise<unknown>;
890
1257
  }) & {
891
1258
  new (): HTMLElement;
892
1259
  prototype: HTMLElement;
@@ -980,7 +1347,7 @@ declare class DescopeWc extends BaseDescopeWc {
980
1347
  init(): Promise<void>;
981
1348
  disconnectedCallback(): void;
982
1349
  getHtmlFilenameWithLocale(locale: string, screenId: string): Promise<string>;
983
- getPageContent(htmlUrl: string, htmlLocaleUrl: string): Promise<string>;
1350
+ getPageContent(htmlFilename: string, htmlLocaleFilename: string): Promise<string>;
984
1351
  onFlowChange(currentState: FlowState, prevState: FlowState, isChanged: IsChanged<FlowState>): Promise<void>;
985
1352
  onStepChange(currentState: StepState, prevState: StepState): Promise<void>;
986
1353
  }