@descope/web-component 3.62.0 → 3.63.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/BaseDescopeWc.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/BaseDescopeWc.js.map +1 -1
- package/dist/esm/types.js.map +1 -1
- package/dist/index.d.ts +51 -47
- package/dist/index.js +2 -2
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -275,12 +275,12 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
275
275
|
readonly cssRules: CSSRuleList;
|
|
276
276
|
} | CSSStyleSheet;
|
|
277
277
|
nonce: string;
|
|
278
|
-
"__#
|
|
278
|
+
"__#32287@#setNonce"(): void;
|
|
279
279
|
init(): Promise<void>;
|
|
280
|
-
"__#
|
|
280
|
+
"__#32282@#observeMappings": {};
|
|
281
281
|
observeAttribute(attrName: string, onAttrChange: (attrName: string, value: string) => void): () => any;
|
|
282
282
|
observeAttributes(attrs: string[], cb: (attrName: string, value: string) => void): () => void;
|
|
283
|
-
"__#
|
|
283
|
+
"__#32281@#isInit": boolean;
|
|
284
284
|
connectedCallback: (() => void) & (() => void) & (() => void);
|
|
285
285
|
accessKey: string;
|
|
286
286
|
readonly accessKeyLabel: string;
|
|
@@ -606,8 +606,8 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
606
606
|
tabIndex: number;
|
|
607
607
|
blur(): void;
|
|
608
608
|
focus(options?: FocusOptions): void;
|
|
609
|
-
"__#
|
|
610
|
-
"__#
|
|
609
|
+
"__#32280@#logger": _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
610
|
+
"__#32280@#wrapLogger"(logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>): _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
611
611
|
get logger(): _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
612
612
|
set logger(logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>);
|
|
613
613
|
onLogEvent(logLevel: "error" | "warn" | "info" | "debug", data: any[]): void;
|
|
@@ -943,15 +943,15 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
943
943
|
focus(options?: FocusOptions): void;
|
|
944
944
|
};
|
|
945
945
|
} & (new (...params: any[]) => {
|
|
946
|
-
"__#
|
|
947
|
-
"__#
|
|
948
|
-
"__#
|
|
949
|
-
"__#
|
|
946
|
+
"__#32284@#lastBaseUrl"?: string;
|
|
947
|
+
"__#32284@#workingBaseUrl"?: string;
|
|
948
|
+
"__#32284@#failedUrls": Set<string>;
|
|
949
|
+
"__#32284@#getResourceUrls"(filename: string): (URL & {
|
|
950
950
|
baseUrl: string;
|
|
951
951
|
}) | (URL & {
|
|
952
952
|
baseUrl: string;
|
|
953
953
|
})[];
|
|
954
|
-
"__#
|
|
954
|
+
"__#32284@#createResourceUrl"(filename: string, baseUrl: string): URL & {
|
|
955
955
|
baseUrl: string;
|
|
956
956
|
};
|
|
957
957
|
fetchStaticResource<F extends "text" | "json">(filename: string, format: F): Promise<{
|
|
@@ -1287,34 +1287,38 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
1287
1287
|
blur(): void;
|
|
1288
1288
|
focus(options?: FocusOptions): void;
|
|
1289
1289
|
readonly projectId: string;
|
|
1290
|
-
"__#
|
|
1290
|
+
"__#32283@#handleError"(attrName: string, newValue: string): void;
|
|
1291
1291
|
init(): Promise<void>;
|
|
1292
|
-
"__#
|
|
1292
|
+
"__#32282@#observeMappings": {};
|
|
1293
1293
|
observeAttribute(attrName: string, onAttrChange: (attrName: string, value: string) => void): () => any;
|
|
1294
1294
|
observeAttributes(attrs: string[], cb: (attrName: string, value: string) => void): () => void;
|
|
1295
|
-
"__#
|
|
1296
|
-
"__#
|
|
1297
|
-
"__#
|
|
1295
|
+
"__#32281@#isInit": boolean;
|
|
1296
|
+
"__#32280@#logger": _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
1297
|
+
"__#32280@#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);
|
|
1298
1298
|
get logger(): _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
1299
1299
|
set logger(logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>);
|
|
1300
1300
|
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);
|
|
1301
1301
|
}) & (new (...params: any[]) => {
|
|
1302
|
-
"__#
|
|
1302
|
+
"__#32296@#globalStyle": _descope_sdk_mixins_static_resources_mixin.InjectedStyle;
|
|
1303
|
+
"__#32296@#customStyle": _descope_sdk_mixins_static_resources_mixin.InjectedStyle;
|
|
1303
1304
|
readonly theme: _descope_sdk_mixins_static_resources_mixin.ThemeOptions;
|
|
1304
1305
|
readonly styleId: string;
|
|
1305
|
-
|
|
1306
|
-
"__#
|
|
1307
|
-
|
|
1308
|
-
"__#
|
|
1309
|
-
"__#
|
|
1310
|
-
"__#
|
|
1306
|
+
readonly themeOverride: Record<string, any>;
|
|
1307
|
+
"__#32296@#getThemeOverrideString"(): string;
|
|
1308
|
+
"__#32296@#_themeResource": Promise<void | Record<string, any>>;
|
|
1309
|
+
"__#32296@#fetchTheme"(): Promise<Record<string, any>>;
|
|
1310
|
+
readonly "__#32296@#themeResource": Promise<void | Record<string, any>>;
|
|
1311
|
+
"__#32296@#loadGlobalStyle"(): Promise<void>;
|
|
1312
|
+
"__#32296@#loadCustomStyle"(): Promise<void>;
|
|
1313
|
+
"__#32296@#loadComponentsStyle"(): Promise<void>;
|
|
1314
|
+
"__#32296@#getFontsConfig"(): Promise<Record<string, {
|
|
1311
1315
|
url?: string;
|
|
1312
1316
|
}>>;
|
|
1313
|
-
"__#
|
|
1314
|
-
"__#
|
|
1315
|
-
"__#
|
|
1316
|
-
"__#
|
|
1317
|
-
"__#
|
|
1317
|
+
"__#32296@#loadFonts"(): Promise<void>;
|
|
1318
|
+
"__#32296@#applyTheme"(): Promise<void>;
|
|
1319
|
+
"__#32296@#onThemeChange": () => void;
|
|
1320
|
+
"__#32296@#loadTheme"(): void;
|
|
1321
|
+
"__#32296@#toggleOsThemeChangeListener": (listen: boolean) => void;
|
|
1318
1322
|
init(): Promise<void>;
|
|
1319
1323
|
injectStyle: ((cssString: string, { prepend }?: {
|
|
1320
1324
|
prepend?: boolean;
|
|
@@ -1332,11 +1336,11 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
1332
1336
|
readonly cssRules: CSSRuleList;
|
|
1333
1337
|
});
|
|
1334
1338
|
nonce: string;
|
|
1335
|
-
"__#
|
|
1336
|
-
"__#
|
|
1339
|
+
"__#32287@#setNonce": (() => void) & (() => void);
|
|
1340
|
+
"__#32282@#observeMappings": {};
|
|
1337
1341
|
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);
|
|
1338
1342
|
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);
|
|
1339
|
-
"__#
|
|
1343
|
+
"__#32281@#isInit": boolean;
|
|
1340
1344
|
connectedCallback: (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void);
|
|
1341
1345
|
accessKey: string;
|
|
1342
1346
|
readonly accessKeyLabel: string;
|
|
@@ -1662,25 +1666,25 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
1662
1666
|
tabIndex: number;
|
|
1663
1667
|
blur(): void;
|
|
1664
1668
|
focus(options?: FocusOptions): void;
|
|
1665
|
-
"__#
|
|
1666
|
-
"__#
|
|
1669
|
+
"__#32280@#logger": _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
1670
|
+
"__#32280@#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);
|
|
1667
1671
|
get logger(): _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
1668
1672
|
set logger(logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>);
|
|
1669
1673
|
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);
|
|
1670
1674
|
contentRootElement: HTMLElement;
|
|
1671
1675
|
rootElement: HTMLElement;
|
|
1672
1676
|
readonly config: Promise<_descope_sdk_mixins_static_resources_mixin.Config>;
|
|
1673
|
-
"__#
|
|
1674
|
-
"__#
|
|
1675
|
-
"__#
|
|
1676
|
-
"__#
|
|
1677
|
+
"__#32286@#configCacheClear": (() => void) & (() => void);
|
|
1678
|
+
"__#32286@#_configResource": Promise<_descope_sdk_mixins_static_resources_mixin.Config>;
|
|
1679
|
+
"__#32286@#fetchConfig": (() => Promise<_descope_sdk_mixins_static_resources_mixin.Config>) & (() => Promise<_descope_sdk_mixins_static_resources_mixin.Config>);
|
|
1680
|
+
"__#32285@#callbacks": Map<string, () => void> & Map<string, () => void>;
|
|
1677
1681
|
onReset: ((sectionId: string, callback: () => void | Promise<void>) => () => void) & ((sectionId: string, callback: () => void | Promise<void>) => () => void);
|
|
1678
1682
|
reset: ((...sectionIds: string[]) => Promise<void>) & ((...sectionIds: string[]) => Promise<void>);
|
|
1679
|
-
"__#
|
|
1680
|
-
"__#
|
|
1681
|
-
"__#
|
|
1682
|
-
"__#
|
|
1683
|
-
"__#
|
|
1683
|
+
"__#32283@#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);
|
|
1684
|
+
"__#32284@#lastBaseUrl"?: string;
|
|
1685
|
+
"__#32284@#workingBaseUrl"?: string;
|
|
1686
|
+
"__#32284@#failedUrls": Set<string>;
|
|
1687
|
+
"__#32284@#getResourceUrls": ((filename: string) => (URL & {
|
|
1684
1688
|
baseUrl: string;
|
|
1685
1689
|
}) | (URL & {
|
|
1686
1690
|
baseUrl: string;
|
|
@@ -1693,7 +1697,7 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
1693
1697
|
}) | (URL & {
|
|
1694
1698
|
baseUrl: string;
|
|
1695
1699
|
})[]);
|
|
1696
|
-
"__#
|
|
1700
|
+
"__#32284@#createResourceUrl": ((filename: string, baseUrl: string) => URL & {
|
|
1697
1701
|
baseUrl: string;
|
|
1698
1702
|
}) & ((filename: string, baseUrl: string) => URL & {
|
|
1699
1703
|
baseUrl: string;
|
|
@@ -1713,12 +1717,12 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
1713
1717
|
readonly baseStaticUrl: string;
|
|
1714
1718
|
readonly baseUrl: string;
|
|
1715
1719
|
readonly projectId: string;
|
|
1716
|
-
"__#
|
|
1717
|
-
"__#
|
|
1718
|
-
"__#
|
|
1720
|
+
"__#32290@#getComponentsVersion"(): Promise<string>;
|
|
1721
|
+
"__#32290@#getComponentsVersionSri"(): Promise<string>;
|
|
1722
|
+
"__#32290@#descopeUi": Promise<any>;
|
|
1719
1723
|
readonly descopeUi: Promise<any>;
|
|
1720
|
-
"__#
|
|
1721
|
-
"__#
|
|
1724
|
+
"__#32290@#loadDescopeUiComponent"(componentName: string): Promise<any>;
|
|
1725
|
+
"__#32290@#getDescopeUi"(): Promise<any>;
|
|
1722
1726
|
loadDescopeUiComponents(templateOrComponentNames: string[] | HTMLTemplateElement): Promise<any[]>;
|
|
1723
1727
|
readonly baseCdnUrl: string;
|
|
1724
1728
|
injectNpmLib(libName: string, version: string, filePath?: string, overrides?: string[], integrity?: string): Promise<{
|