@descope/web-component 3.61.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.
@@ -1,2 +1,2 @@
1
- let o;const w=(w,l)=>{o?o.setItem(w,l):void 0!==(null===window||void 0===window?void 0:window.localStorage)&&window.localStorage.setItem(w,l)},l=w=>o?o.getItem(w):void 0!==(null===window||void 0===window?void 0:window.localStorage)?window.localStorage.getItem(w):null,t=w=>{o=w};export{l as getStorageItem,t as setCustomStorage,w as setStorageItem};
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,KAiBIO,EAAoBC,IAC/BV,EAAgBU,CAAO"}
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"}
@@ -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 interface LastAuthState {\n loginId?: string;\n name?: 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"}
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\ntype ThemeColor = {\n main: string;\n dark: string;\n light: string;\n highlight: string;\n contrast: string;\n};\n\nexport type OverrideTheme = {\n globals?: {\n colors?: {\n primary?: ThemeColor;\n secondary?: ThemeColor;\n };\n };\n};\n\nexport type OverrideThemes = {\n dark?: OverrideTheme;\n light?: OverrideTheme;\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
- interface LastAuthState {
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
- "__#32163@#setNonce"(): void;
278
+ "__#32287@#setNonce"(): void;
277
279
  init(): Promise<void>;
278
- "__#32158@#observeMappings": {};
280
+ "__#32282@#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
- "__#32157@#isInit": boolean;
283
+ "__#32281@#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
- "__#32156@#logger": _descope_sdk_mixins_static_resources_mixin.Logger;
608
- "__#32156@#wrapLogger"(logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>): _descope_sdk_mixins_static_resources_mixin.Logger;
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;
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
- "__#32160@#lastBaseUrl"?: string;
945
- "__#32160@#workingBaseUrl"?: string;
946
- "__#32160@#failedUrls": Set<string>;
947
- "__#32160@#getResourceUrls"(filename: string): (URL & {
946
+ "__#32284@#lastBaseUrl"?: string;
947
+ "__#32284@#workingBaseUrl"?: string;
948
+ "__#32284@#failedUrls": Set<string>;
949
+ "__#32284@#getResourceUrls"(filename: string): (URL & {
948
950
  baseUrl: string;
949
951
  }) | (URL & {
950
952
  baseUrl: string;
951
953
  })[];
952
- "__#32160@#createResourceUrl"(filename: string, baseUrl: string): URL & {
954
+ "__#32284@#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,38 @@ declare const BaseClass: (new (...params: any[]) => {
1285
1287
  blur(): void;
1286
1288
  focus(options?: FocusOptions): void;
1287
1289
  readonly projectId: string;
1288
- "__#32159@#handleError"(attrName: string, newValue: string): void;
1290
+ "__#32283@#handleError"(attrName: string, newValue: string): void;
1289
1291
  init(): Promise<void>;
1290
- "__#32158@#observeMappings": {};
1292
+ "__#32282@#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
- "__#32157@#isInit": boolean;
1294
- "__#32156@#logger": _descope_sdk_mixins_static_resources_mixin.Logger;
1295
- "__#32156@#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);
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);
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
- "__#32172@#globalStyle": _descope_sdk_mixins_static_resources_mixin.InjectedStyle;
1302
+ "__#32296@#globalStyle": _descope_sdk_mixins_static_resources_mixin.InjectedStyle;
1303
+ "__#32296@#customStyle": _descope_sdk_mixins_static_resources_mixin.InjectedStyle;
1301
1304
  readonly theme: _descope_sdk_mixins_static_resources_mixin.ThemeOptions;
1302
1305
  readonly styleId: string;
1303
- "__#32172@#_themeResource": Promise<void | Record<string, any>>;
1304
- "__#32172@#fetchTheme"(): Promise<Record<string, any>>;
1305
- readonly "__#32172@#themeResource": Promise<void | Record<string, any>>;
1306
- "__#32172@#loadGlobalStyle"(): Promise<void>;
1307
- "__#32172@#loadComponentsStyle"(): Promise<void>;
1308
- "__#32172@#getFontsConfig"(): Promise<Record<string, {
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, {
1309
1315
  url?: string;
1310
1316
  }>>;
1311
- "__#32172@#loadFonts"(): Promise<void>;
1312
- "__#32172@#applyTheme"(): Promise<void>;
1313
- "__#32172@#onThemeChange": () => void;
1314
- "__#32172@#loadTheme"(): void;
1315
- "__#32172@#toggleOsThemeChangeListener": (listen: boolean) => void;
1317
+ "__#32296@#loadFonts"(): Promise<void>;
1318
+ "__#32296@#applyTheme"(): Promise<void>;
1319
+ "__#32296@#onThemeChange": () => void;
1320
+ "__#32296@#loadTheme"(): void;
1321
+ "__#32296@#toggleOsThemeChangeListener": (listen: boolean) => void;
1316
1322
  init(): Promise<void>;
1317
1323
  injectStyle: ((cssString: string, { prepend }?: {
1318
1324
  prepend?: boolean;
@@ -1330,11 +1336,11 @@ declare const BaseClass: (new (...params: any[]) => {
1330
1336
  readonly cssRules: CSSRuleList;
1331
1337
  });
1332
1338
  nonce: string;
1333
- "__#32163@#setNonce": (() => void) & (() => void);
1334
- "__#32158@#observeMappings": {};
1339
+ "__#32287@#setNonce": (() => void) & (() => void);
1340
+ "__#32282@#observeMappings": {};
1335
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);
1336
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);
1337
- "__#32157@#isInit": boolean;
1343
+ "__#32281@#isInit": boolean;
1338
1344
  connectedCallback: (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void);
1339
1345
  accessKey: string;
1340
1346
  readonly accessKeyLabel: string;
@@ -1660,25 +1666,25 @@ declare const BaseClass: (new (...params: any[]) => {
1660
1666
  tabIndex: number;
1661
1667
  blur(): void;
1662
1668
  focus(options?: FocusOptions): void;
1663
- "__#32156@#logger": _descope_sdk_mixins_static_resources_mixin.Logger;
1664
- "__#32156@#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);
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);
1665
1671
  get logger(): _descope_sdk_mixins_static_resources_mixin.Logger;
1666
1672
  set logger(logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>);
1667
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);
1668
1674
  contentRootElement: HTMLElement;
1669
1675
  rootElement: HTMLElement;
1670
1676
  readonly config: Promise<_descope_sdk_mixins_static_resources_mixin.Config>;
1671
- "__#32162@#configCacheClear": (() => void) & (() => void);
1672
- "__#32162@#_configResource": Promise<_descope_sdk_mixins_static_resources_mixin.Config>;
1673
- "__#32162@#fetchConfig": (() => Promise<_descope_sdk_mixins_static_resources_mixin.Config>) & (() => Promise<_descope_sdk_mixins_static_resources_mixin.Config>);
1674
- "__#32161@#callbacks": Map<string, () => void> & Map<string, () => void>;
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>;
1675
1681
  onReset: ((sectionId: string, callback: () => void | Promise<void>) => () => void) & ((sectionId: string, callback: () => void | Promise<void>) => () => void);
1676
1682
  reset: ((...sectionIds: string[]) => Promise<void>) & ((...sectionIds: string[]) => Promise<void>);
1677
- "__#32159@#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);
1678
- "__#32160@#lastBaseUrl"?: string;
1679
- "__#32160@#workingBaseUrl"?: string;
1680
- "__#32160@#failedUrls": Set<string>;
1681
- "__#32160@#getResourceUrls": ((filename: string) => (URL & {
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 & {
1682
1688
  baseUrl: string;
1683
1689
  }) | (URL & {
1684
1690
  baseUrl: string;
@@ -1691,7 +1697,7 @@ declare const BaseClass: (new (...params: any[]) => {
1691
1697
  }) | (URL & {
1692
1698
  baseUrl: string;
1693
1699
  })[]);
1694
- "__#32160@#createResourceUrl": ((filename: string, baseUrl: string) => URL & {
1700
+ "__#32284@#createResourceUrl": ((filename: string, baseUrl: string) => URL & {
1695
1701
  baseUrl: string;
1696
1702
  }) & ((filename: string, baseUrl: string) => URL & {
1697
1703
  baseUrl: string;
@@ -1711,12 +1717,12 @@ declare const BaseClass: (new (...params: any[]) => {
1711
1717
  readonly baseStaticUrl: string;
1712
1718
  readonly baseUrl: string;
1713
1719
  readonly projectId: string;
1714
- "__#32166@#getComponentsVersion"(): Promise<string>;
1715
- "__#32166@#getComponentsVersionSri"(): Promise<string>;
1716
- "__#32166@#descopeUi": Promise<any>;
1720
+ "__#32290@#getComponentsVersion"(): Promise<string>;
1721
+ "__#32290@#getComponentsVersionSri"(): Promise<string>;
1722
+ "__#32290@#descopeUi": Promise<any>;
1717
1723
  readonly descopeUi: Promise<any>;
1718
- "__#32166@#loadDescopeUiComponent"(componentName: string): Promise<any>;
1719
- "__#32166@#getDescopeUi"(): Promise<any>;
1724
+ "__#32290@#loadDescopeUiComponent"(componentName: string): Promise<any>;
1725
+ "__#32290@#getDescopeUi"(): Promise<any>;
1720
1726
  loadDescopeUiComponents(templateOrComponentNames: string[] | HTMLTemplateElement): Promise<any[]>;
1721
1727
  readonly baseCdnUrl: string;
1722
1728
  injectNpmLib(libName: string, version: string, filePath?: string, overrides?: string[], integrity?: string): Promise<{