@descope/web-component 3.48.2 → 3.49.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/cjs/types.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/esm/types.js.map +1 -1
- package/dist/index.d.ts +67 -46
- package/dist/index.js +2 -2
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -127,11 +127,32 @@ type CustomScreenState = Omit<ScreenState, 'cssVars' | 'componentsConfig' | 'inp
|
|
|
127
127
|
}[];
|
|
128
128
|
};
|
|
129
129
|
type ScriptModule = {
|
|
130
|
-
stop: () => void;
|
|
131
|
-
start: () => void;
|
|
132
130
|
/**
|
|
133
|
-
*
|
|
134
|
-
|
|
131
|
+
* Unique identifier of the module.
|
|
132
|
+
*/
|
|
133
|
+
id: string;
|
|
134
|
+
/**
|
|
135
|
+
* Notifies the module that it should start any profiling or monitoring.
|
|
136
|
+
*/
|
|
137
|
+
start?: () => void;
|
|
138
|
+
/**
|
|
139
|
+
* Notifies the module that it should stop any profiling or monitoring.
|
|
140
|
+
*/
|
|
141
|
+
stop?: () => void;
|
|
142
|
+
/**
|
|
143
|
+
* Presents the user with any required interaction to get a refreshed token or state,
|
|
144
|
+
* e.g., a challenge or captcha.
|
|
145
|
+
*
|
|
146
|
+
* Modules should return a value of true if the presentation completed successfully,
|
|
147
|
+
* false if it was cancelled by the user, and throw an error in case of failure.
|
|
148
|
+
*
|
|
149
|
+
* This is called before form submission (via a next call) after a button click.
|
|
150
|
+
*/
|
|
151
|
+
present?: () => Promise<boolean>;
|
|
152
|
+
/**
|
|
153
|
+
* Refreshes any tokens or state that might be needed before form submission.
|
|
154
|
+
*
|
|
155
|
+
* Modules should throw an error in case of failure.
|
|
135
156
|
*/
|
|
136
157
|
refresh?: () => Promise<void>;
|
|
137
158
|
};
|
|
@@ -243,12 +264,12 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
243
264
|
readonly cssRules: CSSRuleList;
|
|
244
265
|
} | CSSStyleSheet;
|
|
245
266
|
nonce: string;
|
|
246
|
-
"__#
|
|
267
|
+
"__#29688@#setNonce"(): void;
|
|
247
268
|
init(): Promise<void>;
|
|
248
|
-
"__#
|
|
269
|
+
"__#29683@#observeMappings": {};
|
|
249
270
|
observeAttribute(attrName: string, onAttrChange: (attrName: string, value: string) => void): () => any;
|
|
250
271
|
observeAttributes(attrs: string[], cb: (attrName: string, value: string) => void): () => void;
|
|
251
|
-
"__#
|
|
272
|
+
"__#29682@#isInit": boolean;
|
|
252
273
|
connectedCallback: (() => void) & (() => void) & (() => void);
|
|
253
274
|
accessKey: string;
|
|
254
275
|
readonly accessKeyLabel: string;
|
|
@@ -574,8 +595,8 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
574
595
|
tabIndex: number;
|
|
575
596
|
blur(): void;
|
|
576
597
|
focus(options?: FocusOptions): void;
|
|
577
|
-
"__#
|
|
578
|
-
"__#
|
|
598
|
+
"__#29681@#logger": _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
599
|
+
"__#29681@#wrapLogger"(logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>): _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
579
600
|
get logger(): _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
580
601
|
set logger(logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>);
|
|
581
602
|
onLogEvent(logLevel: "error" | "warn" | "info" | "debug", data: any[]): void;
|
|
@@ -911,9 +932,9 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
911
932
|
focus(options?: FocusOptions): void;
|
|
912
933
|
};
|
|
913
934
|
} & (new (...params: any[]) => {
|
|
914
|
-
"__#
|
|
915
|
-
"__#
|
|
916
|
-
"__#
|
|
935
|
+
"__#29685@#lastBaseUrl"?: string;
|
|
936
|
+
"__#29685@#workingBaseUrl"?: string;
|
|
937
|
+
"__#29685@#getResourceUrls"(filename: string): (URL & {
|
|
917
938
|
baseUrl: string;
|
|
918
939
|
}) | (URL & {
|
|
919
940
|
baseUrl: string;
|
|
@@ -1251,34 +1272,34 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
1251
1272
|
blur(): void;
|
|
1252
1273
|
focus(options?: FocusOptions): void;
|
|
1253
1274
|
readonly projectId: string;
|
|
1254
|
-
"__#
|
|
1275
|
+
"__#29684@#handleError"(attrName: string, newValue: string): void;
|
|
1255
1276
|
init(): Promise<void>;
|
|
1256
|
-
"__#
|
|
1277
|
+
"__#29683@#observeMappings": {};
|
|
1257
1278
|
observeAttribute(attrName: string, onAttrChange: (attrName: string, value: string) => void): () => any;
|
|
1258
1279
|
observeAttributes(attrs: string[], cb: (attrName: string, value: string) => void): () => void;
|
|
1259
|
-
"__#
|
|
1260
|
-
"__#
|
|
1261
|
-
"__#
|
|
1280
|
+
"__#29682@#isInit": boolean;
|
|
1281
|
+
"__#29681@#logger": _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
1282
|
+
"__#29681@#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);
|
|
1262
1283
|
get logger(): _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
1263
1284
|
set logger(logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>);
|
|
1264
1285
|
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);
|
|
1265
1286
|
}) & (new (...params: any[]) => {
|
|
1266
|
-
"__#
|
|
1287
|
+
"__#29697@#globalStyle": _descope_sdk_mixins_static_resources_mixin.InjectedStyle;
|
|
1267
1288
|
readonly theme: _descope_sdk_mixins_static_resources_mixin.ThemeOptions;
|
|
1268
1289
|
readonly styleId: string;
|
|
1269
|
-
"__#
|
|
1270
|
-
"__#
|
|
1271
|
-
readonly "__#
|
|
1272
|
-
"__#
|
|
1273
|
-
"__#
|
|
1274
|
-
"__#
|
|
1290
|
+
"__#29697@#_themeResource": Promise<void | Record<string, any>>;
|
|
1291
|
+
"__#29697@#fetchTheme"(): Promise<Record<string, any>>;
|
|
1292
|
+
readonly "__#29697@#themeResource": Promise<void | Record<string, any>>;
|
|
1293
|
+
"__#29697@#loadGlobalStyle"(): Promise<void>;
|
|
1294
|
+
"__#29697@#loadComponentsStyle"(): Promise<void>;
|
|
1295
|
+
"__#29697@#getFontsConfig"(): Promise<Record<string, {
|
|
1275
1296
|
url?: string;
|
|
1276
1297
|
}>>;
|
|
1277
|
-
"__#
|
|
1278
|
-
"__#
|
|
1279
|
-
"__#
|
|
1280
|
-
"__#
|
|
1281
|
-
"__#
|
|
1298
|
+
"__#29697@#loadFonts"(): Promise<void>;
|
|
1299
|
+
"__#29697@#applyTheme"(): Promise<void>;
|
|
1300
|
+
"__#29697@#onThemeChange": () => void;
|
|
1301
|
+
"__#29697@#loadTheme"(): void;
|
|
1302
|
+
"__#29697@#toggleOsThemeChangeListener": (listen: boolean) => void;
|
|
1282
1303
|
init(): Promise<void>;
|
|
1283
1304
|
injectStyle: ((cssString: string, { prepend }?: {
|
|
1284
1305
|
prepend?: boolean;
|
|
@@ -1296,11 +1317,11 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
1296
1317
|
readonly cssRules: CSSRuleList;
|
|
1297
1318
|
});
|
|
1298
1319
|
nonce: string;
|
|
1299
|
-
"__#
|
|
1300
|
-
"__#
|
|
1320
|
+
"__#29688@#setNonce": (() => void) & (() => void);
|
|
1321
|
+
"__#29683@#observeMappings": {};
|
|
1301
1322
|
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);
|
|
1302
1323
|
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);
|
|
1303
|
-
"__#
|
|
1324
|
+
"__#29682@#isInit": boolean;
|
|
1304
1325
|
connectedCallback: (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void);
|
|
1305
1326
|
accessKey: string;
|
|
1306
1327
|
readonly accessKeyLabel: string;
|
|
@@ -1626,24 +1647,24 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
1626
1647
|
tabIndex: number;
|
|
1627
1648
|
blur(): void;
|
|
1628
1649
|
focus(options?: FocusOptions): void;
|
|
1629
|
-
"__#
|
|
1630
|
-
"__#
|
|
1650
|
+
"__#29681@#logger": _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
1651
|
+
"__#29681@#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);
|
|
1631
1652
|
get logger(): _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
1632
1653
|
set logger(logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>);
|
|
1633
1654
|
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);
|
|
1634
1655
|
contentRootElement: HTMLElement;
|
|
1635
1656
|
rootElement: HTMLElement;
|
|
1636
1657
|
readonly config: Promise<_descope_sdk_mixins_static_resources_mixin.Config>;
|
|
1637
|
-
"__#
|
|
1638
|
-
"__#
|
|
1639
|
-
"__#
|
|
1640
|
-
"__#
|
|
1658
|
+
"__#29687@#configCacheClear": (() => void) & (() => void);
|
|
1659
|
+
"__#29687@#_configResource": Promise<_descope_sdk_mixins_static_resources_mixin.Config>;
|
|
1660
|
+
"__#29687@#fetchConfig": (() => Promise<_descope_sdk_mixins_static_resources_mixin.Config>) & (() => Promise<_descope_sdk_mixins_static_resources_mixin.Config>);
|
|
1661
|
+
"__#29686@#callbacks": Map<string, () => void> & Map<string, () => void>;
|
|
1641
1662
|
onReset: ((sectionId: string, callback: () => void | Promise<void>) => () => void) & ((sectionId: string, callback: () => void | Promise<void>) => () => void);
|
|
1642
1663
|
reset: ((...sectionIds: string[]) => Promise<void>) & ((...sectionIds: string[]) => Promise<void>);
|
|
1643
|
-
"__#
|
|
1644
|
-
"__#
|
|
1645
|
-
"__#
|
|
1646
|
-
"__#
|
|
1664
|
+
"__#29684@#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);
|
|
1665
|
+
"__#29685@#lastBaseUrl"?: string;
|
|
1666
|
+
"__#29685@#workingBaseUrl"?: string;
|
|
1667
|
+
"__#29685@#getResourceUrls": ((filename: string) => (URL & {
|
|
1647
1668
|
baseUrl: string;
|
|
1648
1669
|
}) | (URL & {
|
|
1649
1670
|
baseUrl: string;
|
|
@@ -1669,11 +1690,11 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
1669
1690
|
readonly baseStaticUrl: string;
|
|
1670
1691
|
readonly baseUrl: string;
|
|
1671
1692
|
readonly projectId: string;
|
|
1672
|
-
"__#
|
|
1673
|
-
"__#
|
|
1693
|
+
"__#29691@#getComponentsVersion"(): Promise<string>;
|
|
1694
|
+
"__#29691@#descopeUi": Promise<any>;
|
|
1674
1695
|
readonly descopeUi: Promise<any>;
|
|
1675
|
-
"__#
|
|
1676
|
-
"__#
|
|
1696
|
+
"__#29691@#loadDescopeUiComponent"(componentName: string): Promise<any>;
|
|
1697
|
+
"__#29691@#getDescopeUi"(): Promise<any>;
|
|
1677
1698
|
loadDescopeUiComponents(templateOrComponentNames: string[] | HTMLTemplateElement): Promise<any[]>;
|
|
1678
1699
|
readonly baseCdnUrl: string;
|
|
1679
1700
|
injectNpmLib(libName: string, version: string, filePath?: string, overrides?: string[]): Promise<{
|