@descope/web-component 3.36.0 → 3.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/descope-wc/BaseDescopeWc.js +1 -1
- package/dist/cjs/descope-wc/DescopeWc.js +1 -1
- package/dist/cjs/descope-wc/DescopeWc.js.map +1 -1
- package/dist/cjs/helpers/conditions.js +1 -1
- package/dist/cjs/helpers/conditions.js.map +1 -1
- package/dist/cjs/helpers/templates.js +1 -1
- package/dist/cjs/helpers/templates.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/helpers/conditions.js +1 -1
- package/dist/esm/helpers/conditions.js.map +1 -1
- package/dist/esm/helpers/templates.js +1 -1
- package/dist/esm/helpers/templates.js.map +1 -1
- package/dist/esm/types.js.map +1 -1
- package/dist/index.d.ts +51 -43
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,12 @@ import * as _descope_sdk_mixins_static_resources_mixin from '@descope/sdk-mixins
|
|
|
4
4
|
type SdkConfig = Parameters<typeof createSdk>[0];
|
|
5
5
|
type Sdk = ReturnType<typeof createSdk>;
|
|
6
6
|
type SdkFlowNext = Sdk['flow']['next'];
|
|
7
|
-
type
|
|
7
|
+
type ComponentsDynamicAttrs = {
|
|
8
|
+
attributes: Record<string, any>;
|
|
9
|
+
};
|
|
10
|
+
type ComponentsConfig = Record<string, any> & {
|
|
11
|
+
componentsDynamicAttrs?: Record<string, ComponentsDynamicAttrs>;
|
|
12
|
+
};
|
|
8
13
|
type CssVars = Record<string, any>;
|
|
9
14
|
type KeepArgsByIndex<F, Indices extends readonly number[]> = F extends (...args: infer A) => infer R ? (...args: PickArgsByIndex<A, Indices>) => R : never;
|
|
10
15
|
type PickArgsByIndex<All extends readonly any[], Indices extends readonly number[]> = {
|
|
@@ -93,6 +98,7 @@ type FlowState = {
|
|
|
93
98
|
samlIdpResponseRelayState: string;
|
|
94
99
|
nativeResponseType: string;
|
|
95
100
|
nativePayload: Record<string, any>;
|
|
101
|
+
reqTimestamp: number;
|
|
96
102
|
} & SSOQueryParams;
|
|
97
103
|
type StepState = {
|
|
98
104
|
screenState: ScreenState;
|
|
@@ -123,6 +129,7 @@ interface ClientConditionResult {
|
|
|
123
129
|
screenId: string;
|
|
124
130
|
screenName: string;
|
|
125
131
|
clientScripts?: ClientScript[];
|
|
132
|
+
componentsConfig?: ComponentsConfig;
|
|
126
133
|
interactionId: string;
|
|
127
134
|
}
|
|
128
135
|
interface ClientCondition {
|
|
@@ -165,6 +172,7 @@ type FlowConfig = {
|
|
|
165
172
|
}
|
|
166
173
|
];
|
|
167
174
|
clientScripts?: ClientScript[];
|
|
175
|
+
componentsConfig?: ComponentsConfig;
|
|
168
176
|
};
|
|
169
177
|
interface ProjectConfiguration {
|
|
170
178
|
componentsVersion: string;
|
|
@@ -529,9 +537,9 @@ declare const BaseClass: {
|
|
|
529
537
|
focus(options?: FocusOptions): void;
|
|
530
538
|
};
|
|
531
539
|
} & (new (...params: any[]) => {
|
|
532
|
-
"__#
|
|
533
|
-
"__#
|
|
534
|
-
"__#
|
|
540
|
+
"__#27159@#lastBaseUrl"?: string;
|
|
541
|
+
"__#27159@#workingBaseUrl"?: string;
|
|
542
|
+
"__#27159@#getResourceUrls"(filename: string): (URL & {
|
|
535
543
|
baseUrl: string;
|
|
536
544
|
}) | (URL & {
|
|
537
545
|
baseUrl: string;
|
|
@@ -869,39 +877,39 @@ declare const BaseClass: {
|
|
|
869
877
|
blur(): void;
|
|
870
878
|
focus(options?: FocusOptions): void;
|
|
871
879
|
readonly projectId: string;
|
|
872
|
-
"__#
|
|
880
|
+
"__#27158@#handleError"(attrName: string, newValue: string): void;
|
|
873
881
|
init(): Promise<void>;
|
|
874
|
-
"__#
|
|
882
|
+
"__#27157@#observeMappings": {};
|
|
875
883
|
observeAttribute(attrName: string, onAttrChange: (attrName: string, value: string) => void): () => any;
|
|
876
884
|
observeAttributes(attrs: string[], cb: (attrName: string, value: string) => void): () => void;
|
|
877
|
-
"__#
|
|
878
|
-
"__#
|
|
879
|
-
"__#
|
|
885
|
+
"__#27156@#isInit": boolean;
|
|
886
|
+
"__#27155@#logger": _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
887
|
+
"__#27155@#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);
|
|
880
888
|
get logger(): _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
881
889
|
set logger(logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>);
|
|
882
890
|
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);
|
|
883
891
|
}) & (new (...params: any[]) => {
|
|
884
|
-
"__#
|
|
892
|
+
"__#27170@#globalStyleTag": HTMLStyleElement;
|
|
885
893
|
readonly theme: _descope_sdk_mixins_static_resources_mixin.ThemeOptions;
|
|
886
894
|
readonly styleId: string;
|
|
887
|
-
"__#
|
|
888
|
-
"__#
|
|
889
|
-
readonly "__#
|
|
890
|
-
"__#
|
|
891
|
-
"__#
|
|
892
|
-
"__#
|
|
895
|
+
"__#27170@#_themeResource": Promise<void | Record<string, any>>;
|
|
896
|
+
"__#27170@#fetchTheme"(): Promise<Record<string, any>>;
|
|
897
|
+
readonly "__#27170@#themeResource": Promise<void | Record<string, any>>;
|
|
898
|
+
"__#27170@#loadGlobalStyle"(): Promise<void>;
|
|
899
|
+
"__#27170@#loadComponentsStyle"(): Promise<void>;
|
|
900
|
+
"__#27170@#getFontsConfig"(): Promise<Record<string, {
|
|
893
901
|
url?: string;
|
|
894
902
|
}>>;
|
|
895
|
-
"__#
|
|
896
|
-
"__#
|
|
897
|
-
"__#
|
|
898
|
-
"__#
|
|
899
|
-
"__#
|
|
903
|
+
"__#27170@#loadFonts"(): Promise<void>;
|
|
904
|
+
"__#27170@#applyTheme"(): Promise<void>;
|
|
905
|
+
"__#27170@#onThemeChange": () => void;
|
|
906
|
+
"__#27170@#loadTheme"(): void;
|
|
907
|
+
"__#27170@#toggleOsThemeChangeListener": (listen: boolean) => void;
|
|
900
908
|
init(): Promise<void>;
|
|
901
|
-
"__#
|
|
909
|
+
"__#27157@#observeMappings": {};
|
|
902
910
|
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);
|
|
903
911
|
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);
|
|
904
|
-
"__#
|
|
912
|
+
"__#27156@#isInit": boolean;
|
|
905
913
|
connectedCallback: (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void);
|
|
906
914
|
accessKey: string;
|
|
907
915
|
readonly accessKeyLabel: string;
|
|
@@ -1228,24 +1236,24 @@ declare const BaseClass: {
|
|
|
1228
1236
|
tabIndex: number;
|
|
1229
1237
|
blur(): void;
|
|
1230
1238
|
focus(options?: FocusOptions): void;
|
|
1231
|
-
"__#
|
|
1232
|
-
"__#
|
|
1239
|
+
"__#27155@#logger": _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
1240
|
+
"__#27155@#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);
|
|
1233
1241
|
get logger(): _descope_sdk_mixins_static_resources_mixin.Logger;
|
|
1234
1242
|
set logger(logger: Partial<_descope_sdk_mixins_static_resources_mixin.Logger>);
|
|
1235
1243
|
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);
|
|
1236
1244
|
contentRootElement: HTMLElement;
|
|
1237
1245
|
rootElement: HTMLElement;
|
|
1238
1246
|
readonly config: Promise<_descope_sdk_mixins_static_resources_mixin.Config>;
|
|
1239
|
-
"__#
|
|
1240
|
-
"__#
|
|
1241
|
-
"__#
|
|
1242
|
-
"__#
|
|
1247
|
+
"__#27161@#configCacheClear": (() => void) & (() => void);
|
|
1248
|
+
"__#27161@#_configResource": Promise<_descope_sdk_mixins_static_resources_mixin.Config>;
|
|
1249
|
+
"__#27161@#fetchConfig": (() => Promise<_descope_sdk_mixins_static_resources_mixin.Config>) & (() => Promise<_descope_sdk_mixins_static_resources_mixin.Config>);
|
|
1250
|
+
"__#27160@#callbacks": Map<string, () => void> & Map<string, () => void>;
|
|
1243
1251
|
onReset: ((sectionId: string, callback: () => void | Promise<void>) => () => void) & ((sectionId: string, callback: () => void | Promise<void>) => () => void);
|
|
1244
1252
|
reset: ((...sectionIds: string[]) => Promise<void>) & ((...sectionIds: string[]) => Promise<void>);
|
|
1245
|
-
"__#
|
|
1246
|
-
"__#
|
|
1247
|
-
"__#
|
|
1248
|
-
"__#
|
|
1253
|
+
"__#27158@#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);
|
|
1254
|
+
"__#27159@#lastBaseUrl"?: string;
|
|
1255
|
+
"__#27159@#workingBaseUrl"?: string;
|
|
1256
|
+
"__#27159@#getResourceUrls": ((filename: string) => (URL & {
|
|
1249
1257
|
baseUrl: string;
|
|
1250
1258
|
}) | (URL & {
|
|
1251
1259
|
baseUrl: string;
|
|
@@ -1271,18 +1279,18 @@ declare const BaseClass: {
|
|
|
1271
1279
|
readonly baseStaticUrl: string;
|
|
1272
1280
|
readonly baseUrl: string;
|
|
1273
1281
|
readonly projectId: string;
|
|
1274
|
-
"__#
|
|
1275
|
-
"__#
|
|
1276
|
-
"__#
|
|
1277
|
-
"__#
|
|
1278
|
-
"__#
|
|
1279
|
-
"__#
|
|
1280
|
-
"__#
|
|
1281
|
-
"__#
|
|
1282
|
+
"__#27164@#errorCbsSym": symbol;
|
|
1283
|
+
"__#27164@#loadCbsSym": symbol;
|
|
1284
|
+
"__#27164@#getComponentsVersion"(): Promise<string>;
|
|
1285
|
+
"__#27164@#exposeAlternateEvents"(scriptEle: HTMLScriptElement): void;
|
|
1286
|
+
"__#27164@#handleFallbackScript"(errorCbs: ((error: string) => void)[], loadCbs: (() => void)[], elemId: string, scriptUrl: string): Promise<void>;
|
|
1287
|
+
"__#27164@#registerEvents"(scriptEle: HTMLScriptElement): void;
|
|
1288
|
+
"__#27164@#getDescopeUiLoadingScript"(): Promise<HTMLElement>;
|
|
1289
|
+
"__#27164@#descopeUi": Promise<any>;
|
|
1282
1290
|
readonly descopeUi: Promise<any>;
|
|
1283
|
-
"__#
|
|
1291
|
+
"__#27164@#loadDescopeUiComponent"(componentName: string): Promise<any>;
|
|
1284
1292
|
loadDescopeUiComponents(templateOrComponentNames: string[] | HTMLTemplateElement): Promise<any[]>;
|
|
1285
|
-
"__#
|
|
1293
|
+
"__#27164@#getDescopeUi"(): Promise<unknown>;
|
|
1286
1294
|
readonly baseCdnUrl: string;
|
|
1287
1295
|
}) & {
|
|
1288
1296
|
new (): HTMLElement;
|