@descope/web-component 3.47.12 → 3.48.1
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/descope-wc/index.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/descope-wc/index.js.map +1 -1
- package/dist/esm/types.js.map +1 -1
- package/dist/index.d.ts +47 -44
- package/dist/index.js +2 -2
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createSdk } from '@descope/web-js-sdk';
|
|
1
|
+
import { JWTResponse, createSdk } from '@descope/web-js-sdk';
|
|
2
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];
|
|
@@ -208,6 +208,9 @@ type CustomStorage = {
|
|
|
208
208
|
setItem: (key: string, value: string) => void;
|
|
209
209
|
removeItem: (key: string) => void;
|
|
210
210
|
};
|
|
211
|
+
type FlowJWTResponse = JWTResponse & {
|
|
212
|
+
flowOutput?: Record<string, any>;
|
|
213
|
+
};
|
|
211
214
|
|
|
212
215
|
declare const createIsChanged: <T extends Record<string, any>>(state: T, prevState: T) => (attrName: keyof T) => boolean;
|
|
213
216
|
|
|
@@ -240,12 +243,12 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
240
243
|
readonly cssRules: CSSRuleList;
|
|
241
244
|
} | CSSStyleSheet;
|
|
242
245
|
nonce: string;
|
|
243
|
-
"__#
|
|
246
|
+
"__#29684@#setNonce"(): void;
|
|
244
247
|
init(): Promise<void>;
|
|
245
|
-
"__#
|
|
248
|
+
"__#29679@#observeMappings": {};
|
|
246
249
|
observeAttribute(attrName: string, onAttrChange: (attrName: string, value: string) => void): () => any;
|
|
247
250
|
observeAttributes(attrs: string[], cb: (attrName: string, value: string) => void): () => void;
|
|
248
|
-
"__#
|
|
251
|
+
"__#29678@#isInit": boolean;
|
|
249
252
|
connectedCallback: (() => void) & (() => void) & (() => void);
|
|
250
253
|
accessKey: string;
|
|
251
254
|
readonly accessKeyLabel: string;
|
|
@@ -571,8 +574,8 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
571
574
|
tabIndex: number;
|
|
572
575
|
blur(): void;
|
|
573
576
|
focus(options?: FocusOptions): void;
|
|
574
|
-
"__#
|
|
575
|
-
"__#
|
|
577
|
+
"__#29677@#logger": _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
578
|
+
"__#29677@#wrapLogger"(logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>): _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
576
579
|
get logger(): _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
577
580
|
set logger(logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>);
|
|
578
581
|
onLogEvent(logLevel: "error" | "warn" | "info" | "debug", data: any[]): void;
|
|
@@ -908,9 +911,9 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
908
911
|
focus(options?: FocusOptions): void;
|
|
909
912
|
};
|
|
910
913
|
} & (new (...params: any[]) => {
|
|
911
|
-
"__#
|
|
912
|
-
"__#
|
|
913
|
-
"__#
|
|
914
|
+
"__#29681@#lastBaseUrl"?: string;
|
|
915
|
+
"__#29681@#workingBaseUrl"?: string;
|
|
916
|
+
"__#29681@#getResourceUrls"(filename: string): (URL & {
|
|
914
917
|
baseUrl: string;
|
|
915
918
|
}) | (URL & {
|
|
916
919
|
baseUrl: string;
|
|
@@ -1248,34 +1251,34 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
1248
1251
|
blur(): void;
|
|
1249
1252
|
focus(options?: FocusOptions): void;
|
|
1250
1253
|
readonly projectId: string;
|
|
1251
|
-
"__#
|
|
1254
|
+
"__#29680@#handleError"(attrName: string, newValue: string): void;
|
|
1252
1255
|
init(): Promise<void>;
|
|
1253
|
-
"__#
|
|
1256
|
+
"__#29679@#observeMappings": {};
|
|
1254
1257
|
observeAttribute(attrName: string, onAttrChange: (attrName: string, value: string) => void): () => any;
|
|
1255
1258
|
observeAttributes(attrs: string[], cb: (attrName: string, value: string) => void): () => void;
|
|
1256
|
-
"__#
|
|
1257
|
-
"__#
|
|
1258
|
-
"__#
|
|
1259
|
+
"__#29678@#isInit": boolean;
|
|
1260
|
+
"__#29677@#logger": _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
1261
|
+
"__#29677@#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);
|
|
1259
1262
|
get logger(): _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
1260
1263
|
set logger(logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>);
|
|
1261
1264
|
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);
|
|
1262
1265
|
}) & (new (...params: any[]) => {
|
|
1263
|
-
"__#
|
|
1266
|
+
"__#29693@#globalStyle": _descope_sdk_mixins_static_resources_mixin.InjectedStyle;
|
|
1264
1267
|
readonly theme: _descope_sdk_mixins_static_resources_mixin.ThemeOptions;
|
|
1265
1268
|
readonly styleId: string;
|
|
1266
|
-
"__#
|
|
1267
|
-
"__#
|
|
1268
|
-
readonly "__#
|
|
1269
|
-
"__#
|
|
1270
|
-
"__#
|
|
1271
|
-
"__#
|
|
1269
|
+
"__#29693@#_themeResource": Promise<void | Record<string, any>>;
|
|
1270
|
+
"__#29693@#fetchTheme"(): Promise<Record<string, any>>;
|
|
1271
|
+
readonly "__#29693@#themeResource": Promise<void | Record<string, any>>;
|
|
1272
|
+
"__#29693@#loadGlobalStyle"(): Promise<void>;
|
|
1273
|
+
"__#29693@#loadComponentsStyle"(): Promise<void>;
|
|
1274
|
+
"__#29693@#getFontsConfig"(): Promise<Record<string, {
|
|
1272
1275
|
url?: string;
|
|
1273
1276
|
}>>;
|
|
1274
|
-
"__#
|
|
1275
|
-
"__#
|
|
1276
|
-
"__#
|
|
1277
|
-
"__#
|
|
1278
|
-
"__#
|
|
1277
|
+
"__#29693@#loadFonts"(): Promise<void>;
|
|
1278
|
+
"__#29693@#applyTheme"(): Promise<void>;
|
|
1279
|
+
"__#29693@#onThemeChange": () => void;
|
|
1280
|
+
"__#29693@#loadTheme"(): void;
|
|
1281
|
+
"__#29693@#toggleOsThemeChangeListener": (listen: boolean) => void;
|
|
1279
1282
|
init(): Promise<void>;
|
|
1280
1283
|
injectStyle: ((cssString: string, { prepend }?: {
|
|
1281
1284
|
prepend?: boolean;
|
|
@@ -1293,11 +1296,11 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
1293
1296
|
readonly cssRules: CSSRuleList;
|
|
1294
1297
|
});
|
|
1295
1298
|
nonce: string;
|
|
1296
|
-
"__#
|
|
1297
|
-
"__#
|
|
1299
|
+
"__#29684@#setNonce": (() => void) & (() => void);
|
|
1300
|
+
"__#29679@#observeMappings": {};
|
|
1298
1301
|
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);
|
|
1299
1302
|
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);
|
|
1300
|
-
"__#
|
|
1303
|
+
"__#29678@#isInit": boolean;
|
|
1301
1304
|
connectedCallback: (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void);
|
|
1302
1305
|
accessKey: string;
|
|
1303
1306
|
readonly accessKeyLabel: string;
|
|
@@ -1623,24 +1626,24 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
1623
1626
|
tabIndex: number;
|
|
1624
1627
|
blur(): void;
|
|
1625
1628
|
focus(options?: FocusOptions): void;
|
|
1626
|
-
"__#
|
|
1627
|
-
"__#
|
|
1629
|
+
"__#29677@#logger": _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
1630
|
+
"__#29677@#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);
|
|
1628
1631
|
get logger(): _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
1629
1632
|
set logger(logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>);
|
|
1630
1633
|
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);
|
|
1631
1634
|
contentRootElement: HTMLElement;
|
|
1632
1635
|
rootElement: HTMLElement;
|
|
1633
1636
|
readonly config: Promise<_descope_sdk_mixins_static_resources_mixin.Config>;
|
|
1634
|
-
"__#
|
|
1635
|
-
"__#
|
|
1636
|
-
"__#
|
|
1637
|
-
"__#
|
|
1637
|
+
"__#29683@#configCacheClear": (() => void) & (() => void);
|
|
1638
|
+
"__#29683@#_configResource": Promise<_descope_sdk_mixins_static_resources_mixin.Config>;
|
|
1639
|
+
"__#29683@#fetchConfig": (() => Promise<_descope_sdk_mixins_static_resources_mixin.Config>) & (() => Promise<_descope_sdk_mixins_static_resources_mixin.Config>);
|
|
1640
|
+
"__#29682@#callbacks": Map<string, () => void> & Map<string, () => void>;
|
|
1638
1641
|
onReset: ((sectionId: string, callback: () => void | Promise<void>) => () => void) & ((sectionId: string, callback: () => void | Promise<void>) => () => void);
|
|
1639
1642
|
reset: ((...sectionIds: string[]) => Promise<void>) & ((...sectionIds: string[]) => Promise<void>);
|
|
1640
|
-
"__#
|
|
1641
|
-
"__#
|
|
1642
|
-
"__#
|
|
1643
|
-
"__#
|
|
1643
|
+
"__#29680@#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);
|
|
1644
|
+
"__#29681@#lastBaseUrl"?: string;
|
|
1645
|
+
"__#29681@#workingBaseUrl"?: string;
|
|
1646
|
+
"__#29681@#getResourceUrls": ((filename: string) => (URL & {
|
|
1644
1647
|
baseUrl: string;
|
|
1645
1648
|
}) | (URL & {
|
|
1646
1649
|
baseUrl: string;
|
|
@@ -1666,11 +1669,11 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
1666
1669
|
readonly baseStaticUrl: string;
|
|
1667
1670
|
readonly baseUrl: string;
|
|
1668
1671
|
readonly projectId: string;
|
|
1669
|
-
"__#
|
|
1670
|
-
"__#
|
|
1672
|
+
"__#29687@#getComponentsVersion"(): Promise<string>;
|
|
1673
|
+
"__#29687@#descopeUi": Promise<any>;
|
|
1671
1674
|
readonly descopeUi: Promise<any>;
|
|
1672
|
-
"__#
|
|
1673
|
-
"__#
|
|
1675
|
+
"__#29687@#loadDescopeUiComponent"(componentName: string): Promise<any>;
|
|
1676
|
+
"__#29687@#getDescopeUi"(): Promise<any>;
|
|
1674
1677
|
loadDescopeUiComponents(templateOrComponentNames: string[] | HTMLTemplateElement): Promise<any[]>;
|
|
1675
1678
|
readonly baseCdnUrl: string;
|
|
1676
1679
|
injectNpmLib(libName: string, version: string, filePath?: string, overrides?: string[]): Promise<{
|
|
@@ -1791,4 +1794,4 @@ declare class DescopeWc extends BaseDescopeWc {
|
|
|
1791
1794
|
|
|
1792
1795
|
type ILogger = Partial<DescopeWc['logger']>;
|
|
1793
1796
|
|
|
1794
|
-
export { type AutoFocusOptions, type CustomStorage, type ILogger, type ThemeOptions, DescopeWc as default };
|
|
1797
|
+
export { type AutoFocusOptions, type CustomStorage, type FlowJWTResponse, type ILogger, type ThemeOptions, DescopeWc as default };
|