@descope/web-component 3.61.0 → 3.62.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/constants/index.js +1 -1
- package/dist/cjs/constants/index.js.map +1 -1
- 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/helpers/lastAuth.js +1 -1
- package/dist/cjs/helpers/lastAuth.js.map +1 -1
- package/dist/cjs/helpers/storage.js +1 -1
- package/dist/cjs/helpers/storage.js.map +1 -1
- package/dist/cjs/types.js.map +1 -1
- package/dist/esm/constants/index.js +1 -1
- package/dist/esm/constants/index.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/helpers/lastAuth.js +1 -1
- package/dist/esm/helpers/lastAuth.js.map +1 -1
- package/dist/esm/helpers/storage.js +1 -1
- package/dist/esm/helpers/storage.js.map +1 -1
- package/dist/esm/types.js.map +1 -1
- package/dist/index.d.ts +51 -49
- package/dist/index.js +2 -2
- package/package.json +4 -4
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
let o;const w=(w,
|
|
1
|
+
let o;const w=(w,e)=>{o?o.setItem(w,e):void 0!==(null===window||void 0===window?void 0:window.localStorage)&&window.localStorage.setItem(w,e)},e=w=>o?o.getItem(w):void 0!==(null===window||void 0===window?void 0:window.localStorage)?window.localStorage.getItem(w):null,d=w=>{o?o.removeItem(w):void 0!==(null===window||void 0===window?void 0:window.localStorage)&&window.localStorage.removeItem(w)},i=w=>{o=w};export{e as getStorageItem,d as removeStorageItem,i as setCustomStorage,w as setStorageItem};
|
|
2
2
|
//# sourceMappingURL=storage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.js","sources":["../../../src/lib/helpers/storage.ts"],"sourcesContent":["// Storage helper functions for web-component package\n// These functions provide a consistent interface for storage operations\n// Currently uses localStorage, but structured to support custom storage in the future\n\nimport type { CustomStorage } from '../types';\n\n// this is a singleton\n// but in order to keep the code clean\n// it was implemented in this way\nlet customStorage: CustomStorage | undefined;\n\n/**\n * Set an item in storage\n */\nexport const setStorageItem = (key: string, value: string): void => {\n if (customStorage) {\n customStorage.setItem(key, value);\n } else if (typeof window?.localStorage !== 'undefined') {\n window.localStorage.setItem(key, value);\n }\n};\n\n/**\n * Get an item from storage\n */\nexport const getStorageItem = (key: string): string | null => {\n if (customStorage) {\n return customStorage.getItem(key);\n }\n\n if (typeof window?.localStorage !== 'undefined') {\n return window.localStorage.getItem(key);\n }\n return null;\n};\n\n/**\n * Remove an item from storage\n */\nexport const removeStorageItem = (key: string): void => {\n if (customStorage) {\n customStorage.removeItem(key);\n } else if (typeof window?.localStorage !== 'undefined') {\n window.localStorage.removeItem(key);\n }\n};\n\n/**\n * Set custom storage for the web-component package\n */\nexport const setCustomStorage = (storage: CustomStorage) => {\n customStorage = storage;\n};\n\n/**\n * Reset custom storage (for testing)\n */\nexport const resetCustomStorage = () => {\n customStorage = undefined;\n};\n"],"names":["customStorage","setStorageItem","key","value","setItem","window","localStorage","getStorageItem","getItem","setCustomStorage","storage"],"mappings":"AASA,IAAIA,QAKSC,EAAiB,CAACC,EAAaC,KACtCH,EACFA,EAAcI,QAAQF,EAAKC,QACc,KAAnB,OAANE,aAAM,IAANA,YAAM,EAANA,OAAQC,eACxBD,OAAOC,aAAaF,QAAQF,EAAKC,EAClC,EAMUI,EAAkBL,GACzBF,EACKA,EAAcQ,QAAQN,QAGK,KAAnB,OAANG,aAAM,IAANA,YAAM,EAANA,OAAQC,cACVD,OAAOC,aAAaE,QAAQN,GAE9B,
|
|
1
|
+
{"version":3,"file":"storage.js","sources":["../../../src/lib/helpers/storage.ts"],"sourcesContent":["// Storage helper functions for web-component package\n// These functions provide a consistent interface for storage operations\n// Currently uses localStorage, but structured to support custom storage in the future\n\nimport type { CustomStorage } from '../types';\n\n// this is a singleton\n// but in order to keep the code clean\n// it was implemented in this way\nlet customStorage: CustomStorage | undefined;\n\n/**\n * Set an item in storage\n */\nexport const setStorageItem = (key: string, value: string): void => {\n if (customStorage) {\n customStorage.setItem(key, value);\n } else if (typeof window?.localStorage !== 'undefined') {\n window.localStorage.setItem(key, value);\n }\n};\n\n/**\n * Get an item from storage\n */\nexport const getStorageItem = (key: string): string | null => {\n if (customStorage) {\n return customStorage.getItem(key);\n }\n\n if (typeof window?.localStorage !== 'undefined') {\n return window.localStorage.getItem(key);\n }\n return null;\n};\n\n/**\n * Remove an item from storage\n */\nexport const removeStorageItem = (key: string): void => {\n if (customStorage) {\n customStorage.removeItem(key);\n } else if (typeof window?.localStorage !== 'undefined') {\n window.localStorage.removeItem(key);\n }\n};\n\n/**\n * Set custom storage for the web-component package\n */\nexport const setCustomStorage = (storage: CustomStorage) => {\n customStorage = storage;\n};\n\n/**\n * Reset custom storage (for testing)\n */\nexport const resetCustomStorage = () => {\n customStorage = undefined;\n};\n"],"names":["customStorage","setStorageItem","key","value","setItem","window","localStorage","getStorageItem","getItem","removeStorageItem","removeItem","setCustomStorage","storage"],"mappings":"AASA,IAAIA,QAKSC,EAAiB,CAACC,EAAaC,KACtCH,EACFA,EAAcI,QAAQF,EAAKC,QACc,KAAnB,OAANE,aAAM,IAANA,YAAM,EAANA,OAAQC,eACxBD,OAAOC,aAAaF,QAAQF,EAAKC,EAClC,EAMUI,EAAkBL,GACzBF,EACKA,EAAcQ,QAAQN,QAGK,KAAnB,OAANG,aAAM,IAANA,YAAM,EAANA,OAAQC,cACVD,OAAOC,aAAaE,QAAQN,GAE9B,KAMIO,EAAqBP,IAC5BF,EACFA,EAAcU,WAAWR,QACgB,KAAnB,OAANG,aAAM,IAANA,YAAM,EAANA,OAAQC,eACxBD,OAAOC,aAAaI,WAAWR,EAChC,EAMUS,EAAoBC,IAC/BZ,EAAgBY,CAAO"}
|
package/dist/esm/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sources":["../../src/lib/types.ts"],"sourcesContent":["/* istanbul ignore file */\n\nimport type { JWTResponse } from '@descope/web-js-sdk';\nimport { createSdk } from '@descope/web-js-sdk';\n\nexport type SdkConfig = Parameters<typeof createSdk>[0];\nexport type Sdk = ReturnType<typeof createSdk>;\n\nexport type SdkFlowNext = Sdk['flow']['next'];\n\nexport type ComponentsDynamicAttrs = {\n attributes: Record<string, any>;\n};\n\nexport type ComponentsConfig = Record<string, any> & {\n componentsDynamicAttrs?: Record<string, ComponentsDynamicAttrs>;\n};\nexport type CssVars = Record<string, any>;\n\ntype KeepArgsByIndex<F, Indices extends readonly number[]> = F extends (\n ...args: infer A\n) => infer R\n ? (...args: PickArgsByIndex<A, Indices>) => R\n : never;\n\ntype PickArgsByIndex<\n All extends readonly any[],\n Indices extends readonly number[],\n> = {\n [K in keyof Indices]: Indices[K] extends keyof All ? All[Indices[K]] : never;\n};\n\ntype Project = {\n name: string;\n};\n\nexport enum Direction {\n backward = 'backward',\n forward = 'forward',\n}\n\nexport
|
|
1
|
+
{"version":3,"file":"types.js","sources":["../../src/lib/types.ts"],"sourcesContent":["/* istanbul ignore file */\n\nimport type { JWTResponse } from '@descope/web-js-sdk';\nimport { createSdk } from '@descope/web-js-sdk';\n\nexport type SdkConfig = Parameters<typeof createSdk>[0];\nexport type Sdk = ReturnType<typeof createSdk>;\n\nexport type SdkFlowNext = Sdk['flow']['next'];\n\nexport type ComponentsDynamicAttrs = {\n attributes: Record<string, any>;\n};\n\nexport type ComponentsConfig = Record<string, any> & {\n componentsDynamicAttrs?: Record<string, ComponentsDynamicAttrs>;\n};\nexport type CssVars = Record<string, any>;\n\ntype KeepArgsByIndex<F, Indices extends readonly number[]> = F extends (\n ...args: infer A\n) => infer R\n ? (...args: PickArgsByIndex<A, Indices>) => R\n : never;\n\ntype PickArgsByIndex<\n All extends readonly any[],\n Indices extends readonly number[],\n> = {\n [K in keyof Indices]: Indices[K] extends keyof All ? All[Indices[K]] : never;\n};\n\ntype Project = {\n name: string;\n};\n\nexport enum Direction {\n backward = 'backward',\n forward = 'forward',\n}\n\nexport type LastAuthState = NonNullable<\n NextFnReturnPromiseValue['data']['lastAuth']\n> & {\n loginId?: string;\n name?: string;\n lastUsedPerScreen?: Record<string, string>;\n};\n\nexport interface ScreenState {\n errorText?: string;\n errorType?: string;\n componentsConfig?: ComponentsConfig;\n cssVars?: CssVars;\n form?: Record<string, string>;\n inputs?: Record<string, string>; // Backward compatibility\n lastAuth?: LastAuthState;\n project?: Project;\n totp?: { image?: string; provisionUrl?: string };\n notp?: { image?: string; redirectUrl?: string };\n selfProvisionDomains?: unknown;\n user?: unknown;\n sso?: unknown;\n dynamicSelects?: unknown;\n keysInUse?: unknown;\n genericForm?: unknown;\n linkId?: unknown;\n sentTo?: unknown;\n clientScripts?: ClientScript[];\n // map of component IDs to their state\n componentsState?: Record<string, string>;\n}\n\nexport type SSOQueryParams = {\n oidcIdpStateId?: string;\n samlIdpStateId?: string;\n wsfedIdpStateId?: string;\n samlIdpUsername?: string;\n descopeIdpInitiated?: boolean;\n ssoAppId?: string;\n thirdPartyAppId: string;\n thirdPartyAppStateId?: string;\n applicationScopes?: string;\n} & OIDCOptions;\n\nexport type OIDCOptions = {\n oidcLoginHint?: string;\n oidcPrompt?: string;\n oidcErrorRedirectUri?: string;\n oidcResource?: string;\n};\n\nexport type Locale = {\n locale: string;\n fallback: string;\n};\n\nexport type FlowState = {\n flowId: string;\n projectId: string;\n baseUrl: string;\n tenant: string;\n stepId: string;\n stepName: string;\n executionId: string;\n action: string;\n redirectTo: string;\n redirectIsPopup: boolean;\n openInNewTabUrl?: string;\n redirectUrl: string;\n screenId: string;\n screenState: ScreenState;\n token: string;\n code: string;\n isPopup: boolean;\n exchangeError: string;\n webauthnTransactionId: string;\n webauthnOptions: string;\n redirectAuthCodeChallenge: string;\n redirectAuthCallbackUrl: string;\n redirectAuthBackupCallbackUri: string;\n redirectAuthInitiator: string;\n deferredRedirect: boolean;\n deferredPolling: boolean;\n locale: string;\n samlIdpResponseUrl: string;\n samlIdpResponseSamlResponse: string;\n samlIdpResponseRelayState: string;\n wsFedIdpResponseUrl: string;\n wsFedIdpResponseWresult: string;\n wsFedIdpResponseWctx: string;\n nativeResponseType: string;\n nativePayload: Record<string, any>;\n reqTimestamp: number;\n} & SSOQueryParams;\n\nexport type StepState = {\n screenState: ScreenState;\n screenId: string;\n stepName: string;\n htmlFilename: string;\n htmlLocaleFilename: string;\n next: NextFn;\n direction: Direction | undefined;\n samlIdpUsername: string;\n action?: string;\n locale?: string;\n} & OIDCOptions;\n\nexport type CustomScreenState = Omit<\n ScreenState,\n 'cssVars' | 'componentsConfig' | 'inputs'\n> & {\n error?: {\n text: ScreenState['errorText'];\n type: ScreenState['errorType'];\n };\n action?: string;\n inboundAppApproveScopes?: {\n desc: string;\n id: string;\n required: boolean;\n }[];\n};\n\nexport type DebugState = {\n isDebug: boolean;\n};\n\nexport interface ScriptElement extends HTMLDivElement {\n moduleRes?: ScriptModule;\n}\n\nexport type ScriptModule = {\n /**\n * Unique identifier of the module.\n */\n id: string;\n /**\n * Notifies the module that it should start any profiling or monitoring.\n */\n start?: () => void;\n /**\n * Notifies the module that it should stop any profiling or monitoring.\n */\n stop?: () => void;\n /**\n * Presents the user with any required interaction to get a refreshed token or state,\n * e.g., a challenge or captcha.\n *\n * Modules should return a value of true if the presentation completed successfully,\n * false if it was cancelled by the user, and throw an error in case of failure.\n *\n * This is called before form submission (via a next call) after a button click.\n */\n present?: () => Promise<boolean>;\n /**\n * Refreshes any tokens or state that might be needed before form submission.\n *\n * Modules should throw an error in case of failure.\n */\n refresh?: () => Promise<void>;\n};\n\nexport type ClientScript = {\n id: string;\n initArgs: Record<string, any>;\n resultKey?: string;\n};\n\nexport type NextFn = KeepArgsByIndex<SdkFlowNext, [2, 5]> & {\n isCustomScreen?: boolean;\n};\nexport type NextFnReturnPromiseValue = Awaited<ReturnType<NextFn>>;\n\nexport type DebuggerMessage = {\n title: string;\n description?: string;\n};\n\nexport type FlowStateUpdateFn = (state: FlowState) => void;\n\ntype Operator =\n | 'equal'\n | 'not-equal'\n | 'contains'\n | 'greater-than'\n | 'greater-than-or-equal'\n | 'less-than'\n | 'less-than-or-equal'\n | 'empty'\n | 'not-empty'\n | 'is-true'\n | 'is-false'\n | 'in'\n | 'not-in'\n | 'in-range'\n | 'not-in-range'\n | 'devised-by';\n\nexport interface ClientConditionResult {\n screenId: string;\n screenName: string;\n clientScripts?: ClientScript[];\n componentsConfig?: ComponentsConfig;\n interactionId: string;\n}\n\nexport interface ClientCondition {\n operator: Operator;\n key: string;\n predicate?: string | number;\n met: ClientConditionResult;\n unmet?: ClientConditionResult;\n}\n\nexport type AutoFocusOptions = true | false | 'skipFirstScreen';\n\nexport type ThemeOptions = 'light' | 'dark' | 'os';\n\nexport type Key =\n | 'lastAuth.loginId'\n | 'idpInitiated'\n | 'externalToken'\n | 'abTestingKey';\n\ntype CheckFunction = (ctx: Context, predicate?: string | number) => boolean;\n\nexport type ConditionsMap = {\n [key in Key]: {\n [operator in Operator]?: CheckFunction;\n };\n};\n\nexport interface Context {\n loginId?: string;\n code?: string;\n token?: string;\n abTestingKey?: number;\n lastAuth?: LastAuthState;\n}\n\nexport type DescopeUI = Record<string, () => Promise<void>> & {\n componentsThemeManager: Record<string, any>;\n};\n\ntype Font = {\n family: string[];\n label: string;\n url?: string;\n};\n\ntype ThemeTemplate = {\n fonts: {\n font1: Font;\n font2: Font;\n };\n};\n\nexport type FlowConfig = {\n startScreenId?: string;\n startScreenName?: string;\n version: number;\n targetLocales?: string[];\n conditions?: ClientCondition[];\n condition?: ClientCondition;\n fingerprintEnabled?: boolean;\n fingerprintKey?: string;\n sdkScripts?: [\n {\n id: string;\n initArgs: Record<string, any>;\n resultKey?: string;\n },\n ];\n clientScripts?: ClientScript[];\n componentsConfig?: ComponentsConfig;\n};\n\nexport interface ProjectConfiguration {\n componentsVersion: string;\n cssTemplate: {\n dark: ThemeTemplate;\n light: ThemeTemplate;\n };\n flows: {\n [key: string]: FlowConfig; // dynamic key names for flows\n };\n}\n\nexport type FlowStatus = 'loading' | 'error' | 'success' | 'ready' | 'initial';\n\nexport type CustomStorage = {\n getItem: (key: string) => string | null;\n setItem: (key: string, value: string) => void;\n removeItem: (key: string) => void;\n};\n\nexport type FlowJWTResponse = JWTResponse & {\n flowOutput?: Record<string, any>;\n};\n"],"names":["Direction"],"mappings":"IAoCYA,GAAZ,SAAYA,GACVA,EAAA,SAAA,WACAA,EAAA,QAAA,SACD,CAHD,CAAYA,IAAAA,EAGX,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -22,10 +22,11 @@ declare enum Direction {
|
|
|
22
22
|
backward = "backward",
|
|
23
23
|
forward = "forward"
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
type LastAuthState = NonNullable<NextFnReturnPromiseValue['data']['lastAuth']> & {
|
|
26
26
|
loginId?: string;
|
|
27
27
|
name?: string;
|
|
28
|
-
|
|
28
|
+
lastUsedPerScreen?: Record<string, string>;
|
|
29
|
+
};
|
|
29
30
|
interface ScreenState {
|
|
30
31
|
errorText?: string;
|
|
31
32
|
errorType?: string;
|
|
@@ -171,6 +172,7 @@ type ClientScript = {
|
|
|
171
172
|
type NextFn = KeepArgsByIndex<SdkFlowNext, [2, 5]> & {
|
|
172
173
|
isCustomScreen?: boolean;
|
|
173
174
|
};
|
|
175
|
+
type NextFnReturnPromiseValue = Awaited<ReturnType<NextFn>>;
|
|
174
176
|
type FlowStateUpdateFn = (state: FlowState) => void;
|
|
175
177
|
type Operator = 'equal' | 'not-equal' | 'contains' | 'greater-than' | 'greater-than-or-equal' | 'less-than' | 'less-than-or-equal' | 'empty' | 'not-empty' | 'is-true' | 'is-false' | 'in' | 'not-in' | 'in-range' | 'not-in-range' | 'devised-by';
|
|
176
178
|
interface ClientConditionResult {
|
|
@@ -273,12 +275,12 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
273
275
|
readonly cssRules: CSSRuleList;
|
|
274
276
|
} | CSSStyleSheet;
|
|
275
277
|
nonce: string;
|
|
276
|
-
"__#
|
|
278
|
+
"__#32165@#setNonce"(): void;
|
|
277
279
|
init(): Promise<void>;
|
|
278
|
-
"__#
|
|
280
|
+
"__#32160@#observeMappings": {};
|
|
279
281
|
observeAttribute(attrName: string, onAttrChange: (attrName: string, value: string) => void): () => any;
|
|
280
282
|
observeAttributes(attrs: string[], cb: (attrName: string, value: string) => void): () => void;
|
|
281
|
-
"__#
|
|
283
|
+
"__#32159@#isInit": boolean;
|
|
282
284
|
connectedCallback: (() => void) & (() => void) & (() => void);
|
|
283
285
|
accessKey: string;
|
|
284
286
|
readonly accessKeyLabel: string;
|
|
@@ -604,8 +606,8 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
604
606
|
tabIndex: number;
|
|
605
607
|
blur(): void;
|
|
606
608
|
focus(options?: FocusOptions): void;
|
|
607
|
-
"__#
|
|
608
|
-
"__#
|
|
609
|
+
"__#32158@#logger": _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
610
|
+
"__#32158@#wrapLogger"(logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>): _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
609
611
|
get logger(): _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
610
612
|
set logger(logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>);
|
|
611
613
|
onLogEvent(logLevel: "error" | "warn" | "info" | "debug", data: any[]): void;
|
|
@@ -941,15 +943,15 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
941
943
|
focus(options?: FocusOptions): void;
|
|
942
944
|
};
|
|
943
945
|
} & (new (...params: any[]) => {
|
|
944
|
-
"__#
|
|
945
|
-
"__#
|
|
946
|
-
"__#
|
|
947
|
-
"__#
|
|
946
|
+
"__#32162@#lastBaseUrl"?: string;
|
|
947
|
+
"__#32162@#workingBaseUrl"?: string;
|
|
948
|
+
"__#32162@#failedUrls": Set<string>;
|
|
949
|
+
"__#32162@#getResourceUrls"(filename: string): (URL & {
|
|
948
950
|
baseUrl: string;
|
|
949
951
|
}) | (URL & {
|
|
950
952
|
baseUrl: string;
|
|
951
953
|
})[];
|
|
952
|
-
"__#
|
|
954
|
+
"__#32162@#createResourceUrl"(filename: string, baseUrl: string): URL & {
|
|
953
955
|
baseUrl: string;
|
|
954
956
|
};
|
|
955
957
|
fetchStaticResource<F extends "text" | "json">(filename: string, format: F): Promise<{
|
|
@@ -1285,34 +1287,34 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
1285
1287
|
blur(): void;
|
|
1286
1288
|
focus(options?: FocusOptions): void;
|
|
1287
1289
|
readonly projectId: string;
|
|
1288
|
-
"__#
|
|
1290
|
+
"__#32161@#handleError"(attrName: string, newValue: string): void;
|
|
1289
1291
|
init(): Promise<void>;
|
|
1290
|
-
"__#
|
|
1292
|
+
"__#32160@#observeMappings": {};
|
|
1291
1293
|
observeAttribute(attrName: string, onAttrChange: (attrName: string, value: string) => void): () => any;
|
|
1292
1294
|
observeAttributes(attrs: string[], cb: (attrName: string, value: string) => void): () => void;
|
|
1293
|
-
"__#
|
|
1294
|
-
"__#
|
|
1295
|
-
"__#
|
|
1295
|
+
"__#32159@#isInit": boolean;
|
|
1296
|
+
"__#32158@#logger": _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
1297
|
+
"__#32158@#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);
|
|
1296
1298
|
get logger(): _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
1297
1299
|
set logger(logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>);
|
|
1298
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);
|
|
1299
1301
|
}) & (new (...params: any[]) => {
|
|
1300
|
-
"__#
|
|
1302
|
+
"__#32174@#globalStyle": _descope_sdk_mixins_static_resources_mixin.InjectedStyle;
|
|
1301
1303
|
readonly theme: _descope_sdk_mixins_static_resources_mixin.ThemeOptions;
|
|
1302
1304
|
readonly styleId: string;
|
|
1303
|
-
"__#
|
|
1304
|
-
"__#
|
|
1305
|
-
readonly "__#
|
|
1306
|
-
"__#
|
|
1307
|
-
"__#
|
|
1308
|
-
"__#
|
|
1305
|
+
"__#32174@#_themeResource": Promise<void | Record<string, any>>;
|
|
1306
|
+
"__#32174@#fetchTheme"(): Promise<Record<string, any>>;
|
|
1307
|
+
readonly "__#32174@#themeResource": Promise<void | Record<string, any>>;
|
|
1308
|
+
"__#32174@#loadGlobalStyle"(): Promise<void>;
|
|
1309
|
+
"__#32174@#loadComponentsStyle"(): Promise<void>;
|
|
1310
|
+
"__#32174@#getFontsConfig"(): Promise<Record<string, {
|
|
1309
1311
|
url?: string;
|
|
1310
1312
|
}>>;
|
|
1311
|
-
"__#
|
|
1312
|
-
"__#
|
|
1313
|
-
"__#
|
|
1314
|
-
"__#
|
|
1315
|
-
"__#
|
|
1313
|
+
"__#32174@#loadFonts"(): Promise<void>;
|
|
1314
|
+
"__#32174@#applyTheme"(): Promise<void>;
|
|
1315
|
+
"__#32174@#onThemeChange": () => void;
|
|
1316
|
+
"__#32174@#loadTheme"(): void;
|
|
1317
|
+
"__#32174@#toggleOsThemeChangeListener": (listen: boolean) => void;
|
|
1316
1318
|
init(): Promise<void>;
|
|
1317
1319
|
injectStyle: ((cssString: string, { prepend }?: {
|
|
1318
1320
|
prepend?: boolean;
|
|
@@ -1330,11 +1332,11 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
1330
1332
|
readonly cssRules: CSSRuleList;
|
|
1331
1333
|
});
|
|
1332
1334
|
nonce: string;
|
|
1333
|
-
"__#
|
|
1334
|
-
"__#
|
|
1335
|
+
"__#32165@#setNonce": (() => void) & (() => void);
|
|
1336
|
+
"__#32160@#observeMappings": {};
|
|
1335
1337
|
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);
|
|
1336
1338
|
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);
|
|
1337
|
-
"__#
|
|
1339
|
+
"__#32159@#isInit": boolean;
|
|
1338
1340
|
connectedCallback: (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void);
|
|
1339
1341
|
accessKey: string;
|
|
1340
1342
|
readonly accessKeyLabel: string;
|
|
@@ -1660,25 +1662,25 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
1660
1662
|
tabIndex: number;
|
|
1661
1663
|
blur(): void;
|
|
1662
1664
|
focus(options?: FocusOptions): void;
|
|
1663
|
-
"__#
|
|
1664
|
-
"__#
|
|
1665
|
+
"__#32158@#logger": _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
1666
|
+
"__#32158@#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);
|
|
1665
1667
|
get logger(): _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
1666
1668
|
set logger(logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>);
|
|
1667
1669
|
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);
|
|
1668
1670
|
contentRootElement: HTMLElement;
|
|
1669
1671
|
rootElement: HTMLElement;
|
|
1670
1672
|
readonly config: Promise<_descope_sdk_mixins_static_resources_mixin.Config>;
|
|
1671
|
-
"__#
|
|
1672
|
-
"__#
|
|
1673
|
-
"__#
|
|
1674
|
-
"__#
|
|
1673
|
+
"__#32164@#configCacheClear": (() => void) & (() => void);
|
|
1674
|
+
"__#32164@#_configResource": Promise<_descope_sdk_mixins_static_resources_mixin.Config>;
|
|
1675
|
+
"__#32164@#fetchConfig": (() => Promise<_descope_sdk_mixins_static_resources_mixin.Config>) & (() => Promise<_descope_sdk_mixins_static_resources_mixin.Config>);
|
|
1676
|
+
"__#32163@#callbacks": Map<string, () => void> & Map<string, () => void>;
|
|
1675
1677
|
onReset: ((sectionId: string, callback: () => void | Promise<void>) => () => void) & ((sectionId: string, callback: () => void | Promise<void>) => () => void);
|
|
1676
1678
|
reset: ((...sectionIds: string[]) => Promise<void>) & ((...sectionIds: string[]) => Promise<void>);
|
|
1677
|
-
"__#
|
|
1678
|
-
"__#
|
|
1679
|
-
"__#
|
|
1680
|
-
"__#
|
|
1681
|
-
"__#
|
|
1679
|
+
"__#32161@#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);
|
|
1680
|
+
"__#32162@#lastBaseUrl"?: string;
|
|
1681
|
+
"__#32162@#workingBaseUrl"?: string;
|
|
1682
|
+
"__#32162@#failedUrls": Set<string>;
|
|
1683
|
+
"__#32162@#getResourceUrls": ((filename: string) => (URL & {
|
|
1682
1684
|
baseUrl: string;
|
|
1683
1685
|
}) | (URL & {
|
|
1684
1686
|
baseUrl: string;
|
|
@@ -1691,7 +1693,7 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
1691
1693
|
}) | (URL & {
|
|
1692
1694
|
baseUrl: string;
|
|
1693
1695
|
})[]);
|
|
1694
|
-
"__#
|
|
1696
|
+
"__#32162@#createResourceUrl": ((filename: string, baseUrl: string) => URL & {
|
|
1695
1697
|
baseUrl: string;
|
|
1696
1698
|
}) & ((filename: string, baseUrl: string) => URL & {
|
|
1697
1699
|
baseUrl: string;
|
|
@@ -1711,12 +1713,12 @@ declare const BaseClass: (new (...params: any[]) => {
|
|
|
1711
1713
|
readonly baseStaticUrl: string;
|
|
1712
1714
|
readonly baseUrl: string;
|
|
1713
1715
|
readonly projectId: string;
|
|
1714
|
-
"__#
|
|
1715
|
-
"__#
|
|
1716
|
-
"__#
|
|
1716
|
+
"__#32168@#getComponentsVersion"(): Promise<string>;
|
|
1717
|
+
"__#32168@#getComponentsVersionSri"(): Promise<string>;
|
|
1718
|
+
"__#32168@#descopeUi": Promise<any>;
|
|
1717
1719
|
readonly descopeUi: Promise<any>;
|
|
1718
|
-
"__#
|
|
1719
|
-
"__#
|
|
1720
|
+
"__#32168@#loadDescopeUiComponent"(componentName: string): Promise<any>;
|
|
1721
|
+
"__#32168@#getDescopeUi"(): Promise<any>;
|
|
1720
1722
|
loadDescopeUiComponents(templateOrComponentNames: string[] | HTMLTemplateElement): Promise<any[]>;
|
|
1721
1723
|
readonly baseCdnUrl: string;
|
|
1722
1724
|
injectNpmLib(libName: string, version: string, filePath?: string, overrides?: string[], integrity?: string): Promise<{
|