@descope/web-component 3.44.3 → 3.45.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/cjs/descope-wc/BaseDescopeWc.js +1 -1
- package/dist/cjs/descope-wc/DescopeWc.js +1 -1
- package/dist/cjs/descope-wc/DescopeWc.js.map +1 -1
- package/dist/esm/descope-wc/BaseDescopeWc.js +1 -1
- package/dist/esm/descope-wc/DescopeWc.js +1 -1
- package/dist/esm/descope-wc/DescopeWc.js.map +1 -1
- package/dist/index.d.ts +43 -42
- package/dist/index.js +2 -2
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -234,12 +234,12 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
234
234
|
readonly cssRules: CSSRuleList;
|
|
235
235
|
} | CSSStyleSheet;
|
|
236
236
|
nonce: string;
|
|
237
|
-
"__#
|
|
237
|
+
"__#29615@#setNonce"(): void;
|
|
238
238
|
init(): Promise<void>;
|
|
239
|
-
"__#
|
|
239
|
+
"__#29610@#observeMappings": {};
|
|
240
240
|
observeAttribute(attrName: string, onAttrChange: (attrName: string, value: string) => void): () => any;
|
|
241
241
|
observeAttributes(attrs: string[], cb: (attrName: string, value: string) => void): () => void;
|
|
242
|
-
"__#
|
|
242
|
+
"__#29609@#isInit": boolean;
|
|
243
243
|
connectedCallback: (() => void) & (() => void) & (() => void);
|
|
244
244
|
accessKey: string;
|
|
245
245
|
readonly accessKeyLabel: string;
|
|
@@ -565,8 +565,8 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
565
565
|
tabIndex: number;
|
|
566
566
|
blur(): void;
|
|
567
567
|
focus(options?: FocusOptions): void;
|
|
568
|
-
"__#
|
|
569
|
-
"__#
|
|
568
|
+
"__#29608@#logger": _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
569
|
+
"__#29608@#wrapLogger"(logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>): _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
570
570
|
get logger(): _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
571
571
|
set logger(logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>);
|
|
572
572
|
onLogEvent(logLevel: "error" | "warn" | "info" | "debug", data: any[]): void;
|
|
@@ -902,9 +902,9 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
902
902
|
focus(options?: FocusOptions): void;
|
|
903
903
|
};
|
|
904
904
|
} & (new (...params: any[]) => {
|
|
905
|
-
"__#
|
|
906
|
-
"__#
|
|
907
|
-
"__#
|
|
905
|
+
"__#29612@#lastBaseUrl"?: string;
|
|
906
|
+
"__#29612@#workingBaseUrl"?: string;
|
|
907
|
+
"__#29612@#getResourceUrls"(filename: string): (URL & {
|
|
908
908
|
baseUrl: string;
|
|
909
909
|
}) | (URL & {
|
|
910
910
|
baseUrl: string;
|
|
@@ -1242,34 +1242,34 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
1242
1242
|
blur(): void;
|
|
1243
1243
|
focus(options?: FocusOptions): void;
|
|
1244
1244
|
readonly projectId: string;
|
|
1245
|
-
"__#
|
|
1245
|
+
"__#29611@#handleError"(attrName: string, newValue: string): void;
|
|
1246
1246
|
init(): Promise<void>;
|
|
1247
|
-
"__#
|
|
1247
|
+
"__#29610@#observeMappings": {};
|
|
1248
1248
|
observeAttribute(attrName: string, onAttrChange: (attrName: string, value: string) => void): () => any;
|
|
1249
1249
|
observeAttributes(attrs: string[], cb: (attrName: string, value: string) => void): () => void;
|
|
1250
|
-
"__#
|
|
1251
|
-
"__#
|
|
1252
|
-
"__#
|
|
1250
|
+
"__#29609@#isInit": boolean;
|
|
1251
|
+
"__#29608@#logger": _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
1252
|
+
"__#29608@#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);
|
|
1253
1253
|
get logger(): _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
1254
1254
|
set logger(logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>);
|
|
1255
1255
|
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);
|
|
1256
1256
|
}) & (new (...params: any[]) => {
|
|
1257
|
-
"__#
|
|
1257
|
+
"__#29624@#globalStyle": _descope_sdk_mixins_static_resources_mixin.InjectedStyle;
|
|
1258
1258
|
readonly theme: _descope_sdk_mixins_static_resources_mixin.ThemeOptions;
|
|
1259
1259
|
readonly styleId: string;
|
|
1260
|
-
"__#
|
|
1261
|
-
"__#
|
|
1262
|
-
readonly "__#
|
|
1263
|
-
"__#
|
|
1264
|
-
"__#
|
|
1265
|
-
"__#
|
|
1260
|
+
"__#29624@#_themeResource": Promise<void | Record<string, any>>;
|
|
1261
|
+
"__#29624@#fetchTheme"(): Promise<Record<string, any>>;
|
|
1262
|
+
readonly "__#29624@#themeResource": Promise<void | Record<string, any>>;
|
|
1263
|
+
"__#29624@#loadGlobalStyle"(): Promise<void>;
|
|
1264
|
+
"__#29624@#loadComponentsStyle"(): Promise<void>;
|
|
1265
|
+
"__#29624@#getFontsConfig"(): Promise<Record<string, {
|
|
1266
1266
|
url?: string;
|
|
1267
1267
|
}>>;
|
|
1268
|
-
"__#
|
|
1269
|
-
"__#
|
|
1270
|
-
"__#
|
|
1271
|
-
"__#
|
|
1272
|
-
"__#
|
|
1268
|
+
"__#29624@#loadFonts"(): Promise<void>;
|
|
1269
|
+
"__#29624@#applyTheme"(): Promise<void>;
|
|
1270
|
+
"__#29624@#onThemeChange": () => void;
|
|
1271
|
+
"__#29624@#loadTheme"(): void;
|
|
1272
|
+
"__#29624@#toggleOsThemeChangeListener": (listen: boolean) => void;
|
|
1273
1273
|
init(): Promise<void>;
|
|
1274
1274
|
injectStyle: ((cssString: string, { prepend }?: {
|
|
1275
1275
|
prepend?: boolean;
|
|
@@ -1287,11 +1287,11 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
1287
1287
|
readonly cssRules: CSSRuleList;
|
|
1288
1288
|
});
|
|
1289
1289
|
nonce: string;
|
|
1290
|
-
"__#
|
|
1291
|
-
"__#
|
|
1290
|
+
"__#29615@#setNonce": (() => void) & (() => void);
|
|
1291
|
+
"__#29610@#observeMappings": {};
|
|
1292
1292
|
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);
|
|
1293
1293
|
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);
|
|
1294
|
-
"__#
|
|
1294
|
+
"__#29609@#isInit": boolean;
|
|
1295
1295
|
connectedCallback: (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void);
|
|
1296
1296
|
accessKey: string;
|
|
1297
1297
|
readonly accessKeyLabel: string;
|
|
@@ -1617,24 +1617,24 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
1617
1617
|
tabIndex: number;
|
|
1618
1618
|
blur(): void;
|
|
1619
1619
|
focus(options?: FocusOptions): void;
|
|
1620
|
-
"__#
|
|
1621
|
-
"__#
|
|
1620
|
+
"__#29608@#logger": _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
1621
|
+
"__#29608@#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) & ((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);
|
|
1622
1622
|
get logger(): _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
1623
1623
|
set logger(logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>);
|
|
1624
1624
|
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);
|
|
1625
1625
|
contentRootElement: HTMLElement;
|
|
1626
1626
|
rootElement: HTMLElement;
|
|
1627
1627
|
readonly config: Promise<_descope_sdk_mixins_static_resources_mixin.Config>;
|
|
1628
|
-
"__#
|
|
1629
|
-
"__#
|
|
1630
|
-
"__#
|
|
1631
|
-
"__#
|
|
1628
|
+
"__#29614@#configCacheClear": (() => void) & (() => void);
|
|
1629
|
+
"__#29614@#_configResource": Promise<_descope_sdk_mixins_static_resources_mixin.Config>;
|
|
1630
|
+
"__#29614@#fetchConfig": (() => Promise<_descope_sdk_mixins_static_resources_mixin.Config>) & (() => Promise<_descope_sdk_mixins_static_resources_mixin.Config>);
|
|
1631
|
+
"__#29613@#callbacks": Map<string, () => void> & Map<string, () => void>;
|
|
1632
1632
|
onReset: ((sectionId: string, callback: () => void | Promise<void>) => () => void) & ((sectionId: string, callback: () => void | Promise<void>) => () => void);
|
|
1633
1633
|
reset: ((...sectionIds: string[]) => Promise<void>) & ((...sectionIds: string[]) => Promise<void>);
|
|
1634
|
-
"__#
|
|
1635
|
-
"__#
|
|
1636
|
-
"__#
|
|
1637
|
-
"__#
|
|
1634
|
+
"__#29611@#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);
|
|
1635
|
+
"__#29612@#lastBaseUrl"?: string;
|
|
1636
|
+
"__#29612@#workingBaseUrl"?: string;
|
|
1637
|
+
"__#29612@#getResourceUrls": ((filename: string) => (URL & {
|
|
1638
1638
|
baseUrl: string;
|
|
1639
1639
|
}) | (URL & {
|
|
1640
1640
|
baseUrl: string;
|
|
@@ -1660,11 +1660,11 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
1660
1660
|
readonly baseStaticUrl: string;
|
|
1661
1661
|
readonly baseUrl: string;
|
|
1662
1662
|
readonly projectId: string;
|
|
1663
|
-
"__#
|
|
1664
|
-
"__#
|
|
1663
|
+
"__#29618@#getComponentsVersion"(): Promise<string>;
|
|
1664
|
+
"__#29618@#descopeUi": Promise<any>;
|
|
1665
1665
|
readonly descopeUi: Promise<any>;
|
|
1666
|
-
"__#
|
|
1667
|
-
"__#
|
|
1666
|
+
"__#29618@#loadDescopeUiComponent"(componentName: string): Promise<any>;
|
|
1667
|
+
"__#29618@#getDescopeUi"(): Promise<any>;
|
|
1668
1668
|
loadDescopeUiComponents(templateOrComponentNames: string[] | HTMLTemplateElement): Promise<any[]>;
|
|
1669
1669
|
readonly baseCdnUrl: string;
|
|
1670
1670
|
injectNpmLib(libName: string, version: string, filePath?: string, overrides?: string[]): Promise<{
|
|
@@ -1776,6 +1776,7 @@ declare class DescopeWc extends BaseDescopeWc {
|
|
|
1776
1776
|
onFlowChange(currentState: FlowState, prevState: FlowState, isChanged: IsChanged<FlowState>): Promise<void>;
|
|
1777
1777
|
handleRedirect: (redirectTo: string) => void;
|
|
1778
1778
|
onStepChange(currentState: StepState, prevState: StepState): Promise<void>;
|
|
1779
|
+
getInputs(): HTMLInputElement[];
|
|
1779
1780
|
}
|
|
1780
1781
|
|
|
1781
1782
|
type ILogger = Partial<DescopeWc['logger']>;
|