@thunderid/vue 1.12.0 → 1.13.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/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { ADMINISTRATION_FLOW_TYPE, APPLICATION_GRANT_TYPES, AccountLifecycleFlowConfigKey, AccountLifecycleFlowConfigKey as AccountLifecycleFlowConfigKey$1, AdministrationFlowConfigKey, AdministrationFlowData, AdministrationFlowError, AdministrationFlowInput, AdministrationModes, AgentQueryKeys, AgentQueryKeys as AgentQueryKeys$1, ApplicationQueryKeys, ApplicationQueryKeys as ApplicationQueryKeys$1, AuthFlowSelectConstants, ConsentConstants, CredentialConstants, DEFAULT_APPLICATION_GRANT_TYPES, DEFAULT_THEME, EmbeddedFlowActionVariant, EmbeddedFlowComponentType, EmbeddedFlowComponentType as EmbeddedFlowComponentType$1, EmbeddedFlowEventType, EmbeddedFlowEventType as EmbeddedFlowEventType$1, EmbeddedFlowResponseType, EmbeddedFlowTextVariant, EmbeddedFlowType, EmbeddedSignInFlowStatus, EmbeddedSignInFlowStatus as EmbeddedSignInFlowStatus$1, EmbeddedSignInFlowType, EmbeddedSignInFlowType as EmbeddedSignInFlowType$1, EmbeddedSignUpFlowStatus, EmbeddedSignUpFlowStatus as EmbeddedSignUpFlowStatus$1, EmbeddedSignUpFlowType, FetchHttpClient, FieldType, FieldType as FieldType$1, FlowMetaType, GroupQueryKeys, GroupQueryKeys as GroupQueryKeys$1, RoleQueryKeys, RoleQueryKeys as RoleQueryKeys$1, SPAUtils, SelectConstants, ThunderIDAPIError, ThunderIDAPIError as ThunderIDAPIError$1, ThunderIDBrowserClient, ThunderIDError, ThunderIDRuntimeError, ThunderIDRuntimeError as ThunderIDRuntimeError$1, ThunderIDWordmark, TranslationBundleConstants, UserQueryKeys, UserQueryKeys as UserQueryKeys$1, UserSelectConstants, UserTypeSelectConstants, addGroupMembers, addGroupMembers as addGroupMembers$1, addRoleAssignments, addRoleAssignments as addRoleAssignments$1, applyGatewayConfiguration, arrayBufferToBase64url, base64urlToArrayBuffer, bem, compileConsentDecisions, copyTextToClipboard, createAction, createAgent, createAgent as createAgent$1, createAgentType, createApplication, createApplication as createApplication$1, createApplicationSharingPolicy, createClassObserver, createClassObserver as createClassObserver$1, createConfigurationVersion, createConnection, createDesignTheme, createFlow, createGateway, createGatewaySecret, createGatewayVariable, createGroup, createGroup as createGroup$1, createHttpClientFetcher, createLayout, createMediaQueryListener, createMediaQueryListener as createMediaQueryListener$1, createNotificationTemplate, createOrganizationUnit, createPackageComponentLogger, createPackageLogger, createResource, createResourceInvalidator, createResourceInvalidator as createResourceInvalidator$1, createResourceOptionsLoader, createResourceServer, createRole, createRole as createRole$1, createSecret, createTheme, createUser, createUser as createUser$1, createUserByPath, createUserSharingPolicy, createUserType, createVariable, deepMerge, deleteAction, deleteAgent, deleteAgent as deleteAgent$1, deleteAgentType, deleteApplication, deleteApplication as deleteApplication$1, deleteApplicationSharingPolicy, deleteConnection, deleteDesignTheme, deleteFlow, deleteGateway, deleteGatewaySecret, deleteGatewayVariable, deleteGroup, deleteImportedConfiguration, deleteLayout, deleteNotificationTemplate, deleteOrganizationUnit, deleteOrganizationUnitByPath, deleteResource, deleteResourceServer, deleteRole, deleteSecret, deleteTranslation, deleteTranslations, deleteUser, deleteUser as deleteUser$1, deleteUserSharingPolicy, deleteUserType, deleteVariable, detectThemeMode, detectThemeMode as detectThemeMode$1, evaluateChangePasswordForm, executeAdministrationFlow, executeEmbeddedDeviceGrantFlow, executeEmbeddedSignInFlow, executeEmbeddedSignUpFlow, exportConfiguration, extractEmojiFromUri, extractUserClaimsFromIdToken, fallbackResourceInvalidator, findAdministrationFlows, generateFlattenedUserProfile, get, getAccountLifecycleActions, getAccountLifecycleActions as getAccountLifecycleActions$1, getAction, getActions, getActiveTheme, getAgent, getAgent as getAgent$1, getAgentGroups, getAgentGroups as getAgentGroups$1, getAgentName, getAgentName as getAgentName$1, getAgentRoles, getAgentRoles as getAgentRoles$1, getAgentType, getAgentTypes, getAgentTypes as getAgentTypes$1, getAgents, getAgents as getAgents$1, getApplication, getApplication as getApplication$1, getApplicationClientSecret, getApplicationOAuthConfig, getApplicationOverlayRules, getApplicationSharingPolicies, getApplicationSharingPolicy, getApplications, getApplications as getApplications$1, getConfigurationVersion, getConfigurationVersions, getConnection, getConnectionUsages, getConnections, getConnectionsMeta, getConsentElementDecision, getDefaultI18nBundles, getDesignTheme, getDesignThemeUsages, getDesignThemes, getFlow, getFlowMeta, getFlowUsages, getFlowVersion, getFlowVersions, getFlows, getFlows as getFlows$1, getGateway, getGatewayAppliedConfiguration, getGatewayAppliedVersion, getGatewayConfigurationDiff, getGatewaySecret, getGatewaySecrets, getGatewayVariable, getGatewayVariables, getGateways, getGroup, getGroupMembers, getGroupMembers as getGroupMembers$1, getGroups, getGroups as getGroups$1, getLanguages, getLayout, getLayoutUsages, getLayouts, getNotificationTemplate, getNotificationTemplates, getOrganizationUnit, getOrganizationUnitByPath, getOrganizationUnitChildren, getOrganizationUnitGroups, getOrganizationUnitRoles, getOrganizationUnitUsers, getOrganizationUnits, getResource, getResourceServer, getResourceServers, getResources, getRole, getRole as getRole$1, getRoleAssignments, getRoleAssignments as getRoleAssignments$1, getRoles, getRoles as getRoles$1, getSecret, getSecrets, getSelectMessages, getServerConfig, getServerConfigs, getTokenPermissions, getUser, getUser as getUser$1, getUserGroups, getUserGroups as getUserGroups$1, getUserOverlayRules, getUserSharingPolicies, getUserSharingPolicy, getUserType, getUserTypes, getUserTypes as getUserTypes$1, getUserUsages, getUsers, getUsers as getUsers$1, getUsersByPath, getUsersMe, getUsersMeMeta, getVariable, getVariables, getVendorPrefix, handleWebAuthnAuthentication, hasAuthParamsInUrl, hasAuthParamsInUrl as hasAuthParamsInUrl$1, hasCalledForThisInstanceInUrl, hasPermission, hasPermission as hasPermission$1, hasUnresolvedTranslationParams, http, importConfiguration, isApplicationSubmissionValid, isEmojiUri, isEmpty, loadUntilOptionsGrow, mapCredentialUpdateError, mergeOptionsBatch, navigate, navigate as navigate$1, normalizeBorderRadius, normalizeSelectOptions, normalizeTranslations, parseKeyValuePairs, parseKeyValuePairs as parseKeyValuePairs$1, parseRedirectUris, previewCimdDocument, regenerateAgentSecret, regenerateClientSecret, regenerateClientSecret as regenerateClientSecret$1, regenerateFlowSecret, removeGroupMembers, removeGroupMembers as removeGroupMembers$1, removeRoleAssignments, removeRoleAssignments as removeRoleAssignments$1, resolveAdministrationFlowHandles, resolveAdministrationFlowId, resolveAdministrationFlows, resolveAdministrationFlows as resolveAdministrationFlows$1, resolveChangeCredentialPolicy, resolveDesign, resolveFlowTemplateLiterals, resolveLogoUri, resolveManagedIdentityName, resolvePageSize, resolveRequestBaseUrl, resolveResourceEndpoint, resolveTranslation, resolveTranslations, restoreFlowVersion, revertGatewayConfiguration, runAccountLifecycleAction, runAccountLifecycleAction as runAccountLifecycleAction$1, runAdministrationFlow, setTranslation, setTranslations, startCase, substituteTranslationParams, supportsCredential, suspendAgent, suspendApplication, suspendUser, toAuthFlowSelectPage, toCreateApplicationRequest, toEqualityFilter, toError, toManagementErrorMessage, toUpdateApplicationRequest, toUserSelectPage, toUserTypeSelectPage, unlockAgent, unlockUser, unsuspendAgent, unsuspendApplication, unsuspendUser, updateAction, updateAgent, updateAgentType, updateApplication, updateApplication as updateApplication$1, updateApplicationSharingPolicy, updateConnection, updateDesignTheme, updateFlow, updateGateway, updateGatewaySecret, updateGatewayVariable, updateGroup, updateLayout, updateMeCredentials, updateMeProfile, updateNotificationTemplate, updateOrganizationUnit, updateOrganizationUnitByPath, updateResource, updateResourceServer, updateRole, updateSecret, updateServerConfig, updateUser, updateUser as updateUser$1, updateUserCredentials, updateUserSharingPolicy, updateUserType, updateVariable, withVendorCSSClassPrefix } from "@thunderid/browser";
2
- import { Comment, Fragment, Teleport, computed, defineComponent, getCurrentInstance, getCurrentScope, h, inject, nextTick, onBeforeUnmount, onMounted, onScopeDispose, onUnmounted, provide, readonly, ref, shallowReadonly, shallowRef, toValue, useId, watch } from "vue";
1
+ import { ADMINISTRATION_FLOW_TYPE, APPLICATION_GRANT_TYPES, AccountLifecycleFlowConfigKey, AccountLifecycleFlowConfigKey as AccountLifecycleFlowConfigKey$1, AdministrationFlowConfigKey, AdministrationFlowData, AdministrationFlowError, AdministrationFlowInput, AdministrationModes, AgentQueryKeys, AgentQueryKeys as AgentQueryKeys$1, ApplicationQueryKeys, ApplicationQueryKeys as ApplicationQueryKeys$1, AttributeVerificationConstants, AttributeVerificationConstants as AttributeVerificationConstants$1, AuthFlowSelectConstants, ConsentConstants, CredentialConstants, DEFAULT_APPLICATION_GRANT_TYPES, DEFAULT_THEME, EmbeddedFlowActionVariant, EmbeddedFlowComponentType, EmbeddedFlowComponentType as EmbeddedFlowComponentType$1, EmbeddedFlowEventType, EmbeddedFlowEventType as EmbeddedFlowEventType$1, EmbeddedFlowResponseType, EmbeddedFlowTextVariant, EmbeddedFlowType, EmbeddedSelfFlowStatus, EmbeddedSelfFlowStatus as EmbeddedSelfFlowStatus$1, EmbeddedSignInFlowStatus, EmbeddedSignInFlowStatus as EmbeddedSignInFlowStatus$1, EmbeddedSignInFlowType, EmbeddedSignInFlowType as EmbeddedSignInFlowType$1, EmbeddedSignUpFlowStatus, EmbeddedSignUpFlowStatus as EmbeddedSignUpFlowStatus$1, EmbeddedSignUpFlowType, FetchHttpClient, FieldType, FieldType as FieldType$1, FlowMetaType, GroupQueryKeys, GroupQueryKeys as GroupQueryKeys$1, RoleQueryKeys, RoleQueryKeys as RoleQueryKeys$1, SPAUtils, SelectConstants, ThunderIDAPIError, ThunderIDAPIError as ThunderIDAPIError$1, ThunderIDBrowserClient, ThunderIDError, ThunderIDRuntimeError, ThunderIDRuntimeError as ThunderIDRuntimeError$1, ThunderIDWordmark, TranslationBundleConstants, UserQueryKeys, UserQueryKeys as UserQueryKeys$1, UserSelectConstants, UserTypeSelectConstants, addGroupMembers, addGroupMembers as addGroupMembers$1, addRoleAssignments, addRoleAssignments as addRoleAssignments$1, applyGatewayConfiguration, arrayBufferToBase64url, base64urlToArrayBuffer, bem, buildValidatorFromRules, compileConsentDecisions, copyTextToClipboard, createAction, createAgent, createAgent as createAgent$1, createAgentType, createApplication, createApplication as createApplication$1, createApplicationSharingPolicy, createClassObserver, createClassObserver as createClassObserver$1, createConfigurationVersion, createConnection, createDesignTheme, createFlow, createGateway, createGatewaySecret, createGatewayVariable, createGroup, createGroup as createGroup$1, createHttpClientFetcher, createLayout, createMediaQueryListener, createMediaQueryListener as createMediaQueryListener$1, createNotificationTemplate, createOrganizationUnit, createPackageComponentLogger, createPackageLogger, createResource, createResourceInvalidator, createResourceInvalidator as createResourceInvalidator$1, createResourceOptionsLoader, createResourceServer, createRole, createRole as createRole$1, createSecret, createTheme, createUser, createUser as createUser$1, createUserByPath, createUserSharingPolicy, createUserType, createVariable, deepMerge, deleteAction, deleteAgent, deleteAgent as deleteAgent$1, deleteAgentType, deleteApplication, deleteApplication as deleteApplication$1, deleteApplicationSharingPolicy, deleteConnection, deleteDesignTheme, deleteFlow, deleteGateway, deleteGatewaySecret, deleteGatewayVariable, deleteGroup, deleteImportedConfiguration, deleteLayout, deleteNotificationTemplate, deleteOrganizationUnit, deleteOrganizationUnitByPath, deleteResource, deleteResourceServer, deleteRole, deleteSecret, deleteTranslation, deleteTranslations, deleteUser, deleteUser as deleteUser$1, deleteUserSharingPolicy, deleteUserType, deleteVariable, detectThemeMode, detectThemeMode as detectThemeMode$1, evaluateChangePasswordForm, executeAdministrationFlow, executeEmbeddedDeviceGrantFlow, executeEmbeddedSelfFlow, executeEmbeddedSignInFlow, executeEmbeddedSignUpFlow, exportConfiguration, extractEmojiFromUri, extractUserClaimsFromIdToken, fallbackResourceInvalidator, findAdministrationFlows, generateFlattenedUserProfile, get, getAccountLifecycleActions, getAccountLifecycleActions as getAccountLifecycleActions$1, getAction, getActions, getActiveTheme, getAgent, getAgent as getAgent$1, getAgentGroups, getAgentGroups as getAgentGroups$1, getAgentName, getAgentName as getAgentName$1, getAgentRoles, getAgentRoles as getAgentRoles$1, getAgentType, getAgentTypes, getAgentTypes as getAgentTypes$1, getAgents, getAgents as getAgents$1, getApplication, getApplication as getApplication$1, getApplicationClientSecret, getApplicationOAuthConfig, getApplicationOverlayRules, getApplicationSharingPolicies, getApplicationSharingPolicy, getApplications, getApplications as getApplications$1, getConfigurationVersion, getConfigurationVersions, getConnection, getConnectionUsages, getConnections, getConnectionsMeta, getConsentElementDecision, getDefaultI18nBundles, getDesignTheme, getDesignThemeUsages, getDesignThemes, getFlow, getFlowMeta, getFlowStepComponents, getFlowUsages, getFlowVersion, getFlowVersions, getFlows, getFlows as getFlows$1, getGateway, getGatewayAppliedConfiguration, getGatewayAppliedVersion, getGatewayConfigurationDiff, getGatewaySecret, getGatewaySecrets, getGatewayVariable, getGatewayVariables, getGateways, getGroup, getGroupMembers, getGroupMembers as getGroupMembers$1, getGroups, getGroups as getGroups$1, getLanguages, getLayout, getLayoutUsages, getLayouts, getNotificationTemplate, getNotificationTemplates, getOrganizationUnit, getOrganizationUnitByPath, getOrganizationUnitChildren, getOrganizationUnitGroups, getOrganizationUnitRoles, getOrganizationUnitUsers, getOrganizationUnits, getResource, getResourceServer, getResourceServers, getResources, getRole, getRole as getRole$1, getRoleAssignments, getRoleAssignments as getRoleAssignments$1, getRoles, getRoles as getRoles$1, getSecret, getSecrets, getSelectMessages, getServerConfig, getServerConfigs, getTokenPermissions, getUser, getUser as getUser$1, getUserGroups, getUserGroups as getUserGroups$1, getUserOverlayRules, getUserSharingPolicies, getUserSharingPolicy, getUserType, getUserTypes, getUserTypes as getUserTypes$1, getUserUsages, getUsers, getUsers as getUsers$1, getUsersByPath, getUsersMe, getUsersMeMeta, getVariable, getVariables, getVendorPrefix, getVerifiedAttributes, getVerifiedAttributes as getVerifiedAttributes$1, handleWebAuthnAuthentication, hasAuthParamsInUrl, hasAuthParamsInUrl as hasAuthParamsInUrl$1, hasCalledForThisInstanceInUrl, hasPermission, hasPermission as hasPermission$1, hasUnresolvedTranslationParams, http, importConfiguration, isApplicationSubmissionValid, isEmojiUri, isEmpty, isVerifiableAttribute, isVerifiableAttribute as isVerifiableAttribute$1, loadUntilOptionsGrow, mapCredentialUpdateError, mergeOptionsBatch, navigate, navigate as navigate$1, normalizeBorderRadius, normalizeSelectOptions, normalizeTranslations, parseKeyValuePairs, parseKeyValuePairs as parseKeyValuePairs$1, parseRedirectUris, previewCimdDocument, regenerateAgentSecret, regenerateClientSecret, regenerateClientSecret as regenerateClientSecret$1, regenerateFlowSecret, removeGroupMembers, removeGroupMembers as removeGroupMembers$1, removeRoleAssignments, removeRoleAssignments as removeRoleAssignments$1, resolveAdministrationFlowHandles, resolveAdministrationFlowId, resolveAdministrationFlows, resolveAdministrationFlows as resolveAdministrationFlows$1, resolveChangeCredentialPolicy, resolveDesign, resolveFlowTemplateLiterals, resolveLogoUri, resolveManagedIdentityName, resolvePageSize, resolveRequestBaseUrl, resolveResourceEndpoint, resolveTranslation, resolveTranslations, restoreFlowVersion, revertGatewayConfiguration, runAccountLifecycleAction, runAccountLifecycleAction as runAccountLifecycleAction$1, runAdministrationFlow, setTranslation, setTranslations, startCase, substituteTranslationParams, supportsCredential, suspendAgent, suspendApplication, suspendUser, toAuthFlowSelectPage, toCreateApplicationRequest, toEqualityFilter, toError, toManagementErrorMessage, toUpdateApplicationRequest, toUserSelectPage, toUserTypeSelectPage, unlockAgent, unlockUser, unsuspendAgent, unsuspendApplication, unsuspendUser, updateAction, updateAgent, updateAgentType, updateApplication, updateApplication as updateApplication$1, updateApplicationSharingPolicy, updateConnection, updateDesignTheme, updateFlow, updateGateway, updateGatewaySecret, updateGatewayVariable, updateGroup, updateLayout, updateMeCredentials, updateMeProfile, updateNotificationTemplate, updateOrganizationUnit, updateOrganizationUnitByPath, updateResource, updateResourceServer, updateRole, updateSecret, updateServerConfig, updateUser, updateUser as updateUser$1, updateUserCredentials, updateUserSharingPolicy, updateUserType, updateVariable, withVendorCSSClassPrefix } from "@thunderid/browser";
2
+ import { Comment, Fragment, Teleport, cloneVNode, computed, defineComponent, getCurrentInstance, getCurrentScope, h, inject, isVNode, nextTick, onBeforeUnmount, onMounted, onScopeDispose, onUnmounted, provide, readonly, ref, shallowReadonly, shallowRef, toValue, useId, watch } from "vue";
3
3
  import DOMPurify from "dompurify";
4
4
 
5
5
  //#region src/keys.ts
@@ -284,7 +284,7 @@ const PACKAGE_NAME = "@thunderid/vue";
284
284
  * Package-level logger for `@thunderid/vue`.
285
285
  * Use this when logging is not tied to a specific component.
286
286
  */
287
- const logger$7 = createPackageLogger(PACKAGE_NAME);
287
+ const logger$8 = createPackageLogger(PACKAGE_NAME);
288
288
  /**
289
289
  * Creates a component-scoped logger prefixed with `@thunderid/vue - <component>`.
290
290
  *
@@ -294,7 +294,7 @@ const createVueLogger = (component) => createPackageComponentLogger(PACKAGE_NAME
294
294
 
295
295
  //#endregion
296
296
  //#region src/providers/I18nProvider.ts
297
- const logger$6 = createVueLogger("I18nProvider");
297
+ const logger$7 = createVueLogger("I18nProvider");
298
298
  const DEFAULT_URL_PARAM = "lang";
299
299
  const deriveRootDomain = (hostname) => {
300
300
  const parts = hostname.split(".");
@@ -334,7 +334,7 @@ const createStorageAdapter = (strategy, key, cookieDomain) => {
334
334
  try {
335
335
  window.localStorage.setItem(key, language);
336
336
  } catch {
337
- logger$6.warn("Failed to persist language preference to localStorage.");
337
+ logger$7.warn("Failed to persist language preference to localStorage.");
338
338
  }
339
339
  }
340
340
  };
@@ -461,7 +461,7 @@ const I18nProvider = defineComponent({
461
461
  };
462
462
  const setLanguage = (language) => {
463
463
  if (mergedBundlesComputed.value[language]) currentLanguage.value = language;
464
- else logger$6.warn(`Language '${language}' is not available. Available languages: ${Object.keys(mergedBundlesComputed.value).join(", ")}`);
464
+ else logger$7.warn(`Language '${language}' is not available. Available languages: ${Object.keys(mergedBundlesComputed.value).join(", ")}`);
465
465
  };
466
466
  provide(I18N_KEY, {
467
467
  bundles: readonly(mergedBundlesComputed),
@@ -908,7 +908,7 @@ var ThunderIDVueClient_default = ThunderIDVueClient;
908
908
 
909
909
  //#endregion
910
910
  //#region src/providers/ThunderIDProvider.ts
911
- const logger$5 = createVueLogger("ThunderIDProvider");
911
+ const logger$6 = createVueLogger("ThunderIDProvider");
912
912
  /**
913
913
  * Checks if the current URL contains authentication parameters.
914
914
  */
@@ -1182,7 +1182,7 @@ const ThunderIDProvider = defineComponent({
1182
1182
  try {
1183
1183
  await client.getDiscoveryResponse();
1184
1184
  } catch (error) {
1185
- logger$5.warn("Could not load the OIDC discovery metadata on mount.", error);
1185
+ logger$6.warn("Could not load the OIDC discovery metadata on mount.", error);
1186
1186
  }
1187
1187
  const initializedConfig = await client.getConfiguration();
1188
1188
  if (initializedConfig?.baseUrl) sessionStorage.setItem(`${vendor}_base_url`, initializedConfig.baseUrl);
@@ -2215,6 +2215,87 @@ img.thunderid-user-profile__avatar {
2215
2215
  gap: calc(var(--thunderid-spacing-unit) * 0.5);
2216
2216
  }
2217
2217
 
2218
+ .thunderid-user-profile__verification-status {
2219
+ display: inline-flex;
2220
+ flex-shrink: 0;
2221
+ gap: calc(var(--thunderid-spacing-unit) * 0.5);
2222
+ align-items: center;
2223
+ padding: 0 var(--thunderid-spacing-unit);
2224
+ border-radius: 999px;
2225
+ font-size: 0.75rem;
2226
+ font-weight: 500;
2227
+ line-height: 22px;
2228
+ white-space: nowrap;
2229
+ }
2230
+
2231
+ .thunderid-user-profile__verification-status svg {
2232
+ width: 12px;
2233
+ height: 12px;
2234
+ }
2235
+
2236
+ .thunderid-user-profile__verification-status--verified {
2237
+ color: var(--thunderid-color-success-dark, var(--thunderid-color-success-main));
2238
+ background: color-mix(in srgb, var(--thunderid-color-success-main) 12%, transparent);
2239
+ }
2240
+
2241
+ /* Amber marks an action the user can take. */
2242
+ .thunderid-user-profile__verification-status--unverified {
2243
+ color: var(--thunderid-color-warning-contrastText);
2244
+ background: color-mix(in srgb, var(--thunderid-color-warning-main) 14%, transparent);
2245
+ }
2246
+
2247
+ .thunderid-user-profile__verification {
2248
+ padding: var(--thunderid-spacing-unit) 0;
2249
+ }
2250
+
2251
+ /* Starts where the value column starts: the label's width plus the row gap. */
2252
+ .thunderid-user-profile__verification--inline {
2253
+ margin-inline-start: calc(120px + var(--thunderid-spacing-unit));
2254
+ }
2255
+
2256
+ .thunderid-user-profile__verification-overlay {
2257
+ position: fixed;
2258
+ inset: 0;
2259
+ z-index: 9999;
2260
+ display: flex;
2261
+ align-items: center;
2262
+ justify-content: center;
2263
+ background-color: rgba(0, 0, 0, 0.45);
2264
+ }
2265
+
2266
+ .thunderid-user-profile__verification-dialog {
2267
+ box-sizing: border-box;
2268
+ width: min(448px, calc(100vw - calc(var(--thunderid-spacing-unit) * 4)));
2269
+ max-height: 90vh;
2270
+ overflow-y: auto;
2271
+ padding: calc(var(--thunderid-spacing-unit) * 2);
2272
+ background: var(--thunderid-color-background-surface);
2273
+ border-radius: var(--thunderid-border-radius-large);
2274
+ box-shadow: var(--thunderid-shadow-large);
2275
+ font-family: var(--thunderid-typography-fontFamily);
2276
+ outline: none;
2277
+ }
2278
+
2279
+ .thunderid-user-profile__verification-dialog > .thunderid-user-profile__verification {
2280
+ padding: 0;
2281
+ }
2282
+
2283
+ .thunderid-user-profile__verification-notice {
2284
+ margin-bottom: calc(var(--thunderid-spacing-unit) * 2);
2285
+ }
2286
+
2287
+ .thunderid-user-profile__visually-hidden {
2288
+ position: absolute;
2289
+ width: 1px;
2290
+ height: 1px;
2291
+ padding: 0;
2292
+ margin: -1px;
2293
+ overflow: hidden;
2294
+ clip: rect(0, 0, 0, 0);
2295
+ white-space: nowrap;
2296
+ border: 0;
2297
+ }
2298
+
2218
2299
  .thunderid-user-profile__field-error {
2219
2300
  color: var(--thunderid-color-error, #d32f2f);
2220
2301
  font-size: var(--thunderid-typography-fontSize-xs, 0.8rem);
@@ -2238,6 +2319,83 @@ img.thunderid-user-profile__avatar {
2238
2319
  `;
2239
2320
  var UserProfile_css_default = USER_PROFILE_CSS;
2240
2321
 
2322
+ //#endregion
2323
+ //#region src/components/account/verify-attribute/VerifyAttribute.css.ts
2324
+ /**
2325
+ * Styles for the VerifyAttribute presentation component.
2326
+ * Parity target: `@thunderid/react` BaseVerifyAttribute.styles.ts
2327
+ */
2328
+ const VERIFY_ATTRIBUTE_CSS = `
2329
+ /* ============================================================
2330
+ VerifyAttribute (React Parity)
2331
+ ============================================================ */
2332
+
2333
+ .thunderid-verify-attribute {
2334
+ display: flex;
2335
+ flex-direction: column;
2336
+ gap: calc(var(--thunderid-spacing-unit) * 2);
2337
+ width: 100%;
2338
+ box-sizing: border-box;
2339
+ font-family: var(--thunderid-typography-fontFamily);
2340
+ }
2341
+
2342
+ .thunderid-verify-attribute--outlined {
2343
+ padding: calc(var(--thunderid-spacing-unit) * 2);
2344
+ border: 1px solid var(--thunderid-color-border);
2345
+ border-radius: var(--thunderid-border-radius-medium, 6px);
2346
+ }
2347
+
2348
+ .thunderid-verify-attribute__header {
2349
+ display: flex;
2350
+ flex-direction: column;
2351
+ gap: calc(var(--thunderid-spacing-unit) / 2);
2352
+ }
2353
+
2354
+ .thunderid-verify-attribute__heading {
2355
+ margin: 0;
2356
+ }
2357
+
2358
+ .thunderid-verify-attribute__subheading,
2359
+ .thunderid-verify-attribute__destination {
2360
+ margin: 0;
2361
+ color: var(--thunderid-color-text-secondary);
2362
+ }
2363
+
2364
+ .thunderid-verify-attribute__content {
2365
+ display: flex;
2366
+ flex-direction: column;
2367
+ gap: calc(var(--thunderid-spacing-unit) * 1.5);
2368
+ }
2369
+
2370
+ .thunderid-verify-attribute__content .thunderid-otp-field__inputs {
2371
+ justify-content: flex-start;
2372
+ }
2373
+
2374
+ .thunderid-verify-attribute__content .thunderid-otp-field__digit {
2375
+ flex: 1 1 calc(var(--thunderid-spacing-unit) * 4);
2376
+ max-width: calc(var(--thunderid-spacing-unit) * 6);
2377
+ min-width: 0;
2378
+ }
2379
+
2380
+ .thunderid-verify-attribute__alert {
2381
+ width: 100%;
2382
+ }
2383
+
2384
+ .thunderid-verify-attribute__loading {
2385
+ display: flex;
2386
+ justify-content: center;
2387
+ padding: calc(var(--thunderid-spacing-unit) * 2);
2388
+ }
2389
+
2390
+ .thunderid-verify-attribute__actions {
2391
+ display: flex;
2392
+ align-items: center;
2393
+ justify-content: flex-end;
2394
+ gap: var(--thunderid-spacing-unit);
2395
+ }
2396
+ `;
2397
+ var VerifyAttribute_css_default = VERIFY_ATTRIBUTE_CSS;
2398
+
2241
2399
  //#endregion
2242
2400
  //#region src/components/admin/shared/Admin.css.ts
2243
2401
  /**
@@ -4326,7 +4484,8 @@ const STYLES = [
4326
4484
  UserDropdown_css_default,
4327
4485
  UserProfile_css_default,
4328
4486
  Admin_css_default,
4329
- Attribution_css_default
4487
+ Attribution_css_default,
4488
+ VerifyAttribute_css_default
4330
4489
  ].join("\n");
4331
4490
  /**
4332
4491
  * Injects ThunderID Vue component styles into the document `<head>` once.
@@ -4694,7 +4853,7 @@ var useFetchAuthFlows_default = useFetchAuthFlows;
4694
4853
 
4695
4854
  //#endregion
4696
4855
  //#region src/composables/management/useInfiniteOptions.ts
4697
- const logger$4 = createPackageComponentLogger("@thunderid/vue", "useInfiniteOptions");
4856
+ const logger$5 = createPackageComponentLogger("@thunderid/vue", "useInfiniteOptions");
4698
4857
  /**
4699
4858
  * Keeps the option list of a `Select` that loads more options when the user asks for them. It owns the cursor,
4700
4859
  * appends each batch without duplicates, and stops at the end of the data. Vue counterpart of the React
@@ -4719,10 +4878,10 @@ const useInfiniteOptions = (args) => {
4719
4878
  cursor,
4720
4879
  options: options.value
4721
4880
  }, batch);
4722
- if (merged.issue === "cursor-stuck") logger$4.warn("A load returned no new options and the same cursor; the list was treated as finished.");
4881
+ if (merged.issue === "cursor-stuck") logger$5.warn("A load returned no new options and the same cursor; the list was treated as finished.");
4723
4882
  else if (merged.issue === "not-a-list" && !nonListLogged) {
4724
4883
  nonListLogged = true;
4725
- logger$4.warn("A load returned something other than a list of options; it was treated as an empty batch.");
4884
+ logger$5.warn("A load returned something other than a list of options; it was treated as an empty batch.");
4726
4885
  }
4727
4886
  const addedNothing = merged.options.length === options.value.length;
4728
4887
  cursor = merged.cursor;
@@ -4751,7 +4910,7 @@ const useInfiniteOptions = (args) => {
4751
4910
  try {
4752
4911
  args.onError?.(failureError);
4753
4912
  } catch (callbackFailure) {
4754
- logger$4.error("The onError callback threw.", callbackFailure);
4913
+ logger$5.error("The onError callback threw.", callbackFailure);
4755
4914
  }
4756
4915
  }
4757
4916
  } finally {
@@ -6984,7 +7143,7 @@ var SignUpButton_default = SignUpButton;
6984
7143
 
6985
7144
  //#endregion
6986
7145
  //#region src/components/auth/Callback.ts
6987
- const logger$3 = createVueLogger("Callback");
7146
+ const logger$4 = createVueLogger("Callback");
6988
7147
  /**
6989
7148
  * Callback — headless component that handles OAuth callback parameter forwarding.
6990
7149
  *
@@ -7073,7 +7232,7 @@ const Callback = defineComponent({
7073
7232
  navigate$2(`${returnPath}?${params.toString()}`);
7074
7233
  } catch (err) {
7075
7234
  const errorMessage = err instanceof Error ? err.message : "OAuth callback processing failed";
7076
- logger$3.error("OAuth callback error:", err);
7235
+ logger$4.error("OAuth callback error:", err);
7077
7236
  props.onError?.(err instanceof Error ? err : new Error(errorMessage));
7078
7237
  const params = new URLSearchParams();
7079
7238
  params.set("error", "callback_error");
@@ -8085,7 +8244,7 @@ var MicrosoftButton_default = MicrosoftButton;
8085
8244
 
8086
8245
  //#endregion
8087
8246
  //#region src/components/auth/flow/AuthOptionFactoryCore.ts
8088
- const logger$2 = createVueLogger("AuthOptionFactory");
8247
+ const logger$3 = createVueLogger("AuthOptionFactory");
8089
8248
  /**
8090
8249
  * Replaces `emoji:` URIs embedded in HTML before DOMPurify sanitization.
8091
8250
  *
@@ -8188,9 +8347,20 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
8188
8347
  };
8189
8348
  };
8190
8349
  const skipUnsupported = (typeName) => {
8191
- logger$2.warn(`Unsupported component type: ${typeName}. Skipping render.`);
8350
+ logger$3.warn(`Unsupported component type: ${typeName}. Skipping render.`);
8192
8351
  return null;
8193
8352
  };
8353
+ if (component.type === EmbeddedFlowComponentType$1.Resend && options.renderResend) return h(Button_default, {
8354
+ class: options.buttonClassName,
8355
+ color: "primary",
8356
+ disabled: isLoading || options.isTimeoutDisabled,
8357
+ fullWidth: true,
8358
+ id: component.id,
8359
+ key,
8360
+ onClick: () => options.onSubmit?.(component, {}, true),
8361
+ type: "button",
8362
+ variant: "text"
8363
+ }, { default: () => resolve(component.label) });
8194
8364
  switch (component.type) {
8195
8365
  case EmbeddedFlowComponentType$1.TextInput:
8196
8366
  case EmbeddedFlowComponentType$1.PasswordInput:
@@ -8443,7 +8613,7 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
8443
8613
  });
8444
8614
  }
8445
8615
  case EmbeddedFlowComponentType$1.Icon:
8446
- logger$2.warn(`Icon component type is not yet supported in the Vue SDK. Skipping render.`);
8616
+ logger$3.warn(`Icon component type is not yet supported in the Vue SDK. Skipping render.`);
8447
8617
  return null;
8448
8618
  case EmbeddedFlowComponentType$1.Stack: {
8449
8619
  const direction = component.direction || "row";
@@ -8509,7 +8679,7 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
8509
8679
  });
8510
8680
  }
8511
8681
  default:
8512
- logger$2.warn(`Unsupported component type: ${component.type}. Skipping render.`);
8682
+ logger$3.warn(`Unsupported component type: ${component.type}. Skipping render.`);
8513
8683
  return null;
8514
8684
  }
8515
8685
  };
@@ -8529,6 +8699,15 @@ const renderSignUpComponents = (components, formValues, touchedFields, formError
8529
8699
  key: component.id || index
8530
8700
  })).filter((v) => v !== null);
8531
8701
  /**
8702
+ * Processes an array of components and renders them as VNodes for self attribute verification.
8703
+ * Identical to renderSignUpComponents, except that it renders RESEND actions.
8704
+ */
8705
+ const renderVerificationComponents = (components, formValues, touchedFields, formErrors, isLoading, isFormValid, resetForm, onInputChange, options) => components.map((component, index) => createAuthComponentFromFlow(component, formValues, touchedFields, formErrors, isLoading, isFormValid, resetForm, onInputChange, {
8706
+ ...options,
8707
+ key: component.id ?? index,
8708
+ renderResend: true
8709
+ })).filter((v) => v !== null);
8710
+ /**
8532
8711
  * Processes an array of components and renders them as VNodes for invite-user flows.
8533
8712
  * Identical to renderSignInComponents — separated for semantic clarity.
8534
8713
  */
@@ -9878,7 +10057,7 @@ var getAuthComponentHeadings_default = getAuthComponentHeadings;
9878
10057
 
9879
10058
  //#endregion
9880
10059
  //#region src/components/auth/sign-up/BaseSignUp.ts
9881
- const logger$1 = createVueLogger("BaseSignUp");
10060
+ const logger$2 = createVueLogger("BaseSignUp");
9882
10061
  const extractFormFields = (components) => {
9883
10062
  const fields = [];
9884
10063
  const process = (comps) => {
@@ -10105,7 +10284,7 @@ const BaseSignUp = defineComponent({
10105
10284
  if (reusablePopup) reusablePopup.location.href = redirectUrl;
10106
10285
  const popup = reusablePopup ?? window.open(redirectUrl, "oauth_popup", "width=500,height=600,scrollbars=yes,resizable=yes");
10107
10286
  if (!popup) {
10108
- logger$1.error("Failed to open popup window");
10287
+ logger$2.error("Failed to open popup window");
10109
10288
  return false;
10110
10289
  }
10111
10290
  let hasProcessedCallback = false;
@@ -10181,7 +10360,7 @@ const BaseSignUp = defineComponent({
10181
10360
  if (!isThisRound(state)) return;
10182
10361
  hasProcessedCallback = true;
10183
10362
  if (error) {
10184
- logger$1.error("OAuth error");
10363
+ logger$2.error("OAuth error");
10185
10364
  popup.close();
10186
10365
  cleanup();
10187
10366
  return;
@@ -10190,7 +10369,7 @@ const BaseSignUp = defineComponent({
10190
10369
  }
10191
10370
  } catch {}
10192
10371
  } catch {
10193
- logger$1.error("Error monitoring popup");
10372
+ logger$2.error("Error monitoring popup");
10194
10373
  }
10195
10374
  }, 1e3);
10196
10375
  return true;
@@ -10698,7 +10877,8 @@ const FIELDS_TO_SKIP = [
10698
10877
  "preferredMFAOption",
10699
10878
  "attributes",
10700
10879
  "isReadOnly",
10701
- "isReadonly"
10880
+ "isReadonly",
10881
+ AttributeVerificationConstants$1.VERIFIED_ATTRIBUTES_KEY
10702
10882
  ];
10703
10883
  const READONLY_FIELDS = [
10704
10884
  "username",
@@ -10737,6 +10917,11 @@ const AVATAR_GRADIENTS$1 = [
10737
10917
  "linear-gradient(135deg, #14b8a6 0%, #0ea5e9 100%)",
10738
10918
  "linear-gradient(135deg, #f97316 0%, #ec4899 100%)"
10739
10919
  ];
10920
+ const isVerificationType = (type) => !!type && AttributeVerificationConstants$1.VERIFIABLE_ATTRIBUTE_TYPES.includes(type.toLowerCase());
10921
+ const isVerifiedAfterSave = (type) => !!type && AttributeVerificationConstants$1.VERIFY_AFTER_SAVE_ATTRIBUTE_TYPES.includes(type.toLowerCase());
10922
+ const storedValueOf = (user, name) => {
10923
+ return (user?.["attributes"])?.[name] ?? user?.[name];
10924
+ };
10740
10925
  function getAvatarGradient$1(seed) {
10741
10926
  if (!seed) return AVATAR_GRADIENTS$1[0];
10742
10927
  let hash = 0;
@@ -10851,6 +11036,52 @@ const BaseUserProfile = defineComponent({
10851
11036
  }
10852
11037
  return fallback ?? key;
10853
11038
  };
11039
+ const tp = (key, params = {}) => {
11040
+ const translate = props.t;
11041
+ const res = translate?.(key, params);
11042
+ if (res && res !== key) return res;
11043
+ const fallback = (getDefaultI18nBundles()["en-US"]?.translations)?.[key];
11044
+ return fallback ? substituteTranslationParams(fallback, params) : key;
11045
+ };
11046
+ const i18n = inject(I18N_KEY, null);
11047
+ const verifyingField = ref(null);
11048
+ const verifiedNotice = ref(null);
11049
+ const verificationDialogRef = ref(null);
11050
+ let focusBeforeDialog = null;
11051
+ const openVerification = (name) => {
11052
+ verifiedNotice.value = null;
11053
+ verifyingField.value = name;
11054
+ };
11055
+ watch(verifyingField, (name, previous) => {
11056
+ if (props.compact) return;
11057
+ if (name && !previous) {
11058
+ focusBeforeDialog = document.activeElement;
11059
+ nextTick(() => verificationDialogRef.value?.focus());
11060
+ } else if (!name && previous) {
11061
+ focusBeforeDialog?.focus();
11062
+ focusBeforeDialog = null;
11063
+ }
11064
+ });
11065
+ const pendingVerification = ref(null);
11066
+ const storedUser = () => props.flattenedProfile ?? props.profile ?? null;
11067
+ const reportedVerifiedAttributes = () => getVerifiedAttributes$1(props.profile ?? props.flattenedProfile);
11068
+ watch(() => [
11069
+ props.profile,
11070
+ props.flattenedProfile,
11071
+ props.error
11072
+ ], () => {
11073
+ const pending = pendingVerification.value;
11074
+ if (!pending) return;
11075
+ if (props.error) {
11076
+ pendingVerification.value = null;
11077
+ return;
11078
+ }
11079
+ const storedValue = storedValueOf(storedUser(), pending.name);
11080
+ if (storedValue === pending.previousValue) return;
11081
+ const verified = reportedVerifiedAttributes();
11082
+ if (verified && typeof storedValue === "string" && storedValue.trim() !== "" && !verified[pending.name]) openVerification(pending.name);
11083
+ pendingVerification.value = null;
11084
+ });
10854
11085
  function shouldShowField(fieldName, isSchemaBased = false) {
10855
11086
  if (!isSchemaBased && FIELDS_TO_SKIP.includes(fieldName)) return false;
10856
11087
  if (props.hideFields && props.hideFields.length > 0 && props.hideFields.includes(fieldName)) return false;
@@ -10872,6 +11103,11 @@ const BaseUserProfile = defineComponent({
10872
11103
  [fieldName]: ""
10873
11104
  };
10874
11105
  }
11106
+ function clearEditedValue(fieldName) {
11107
+ const next = { ...editedValues.value };
11108
+ delete next[fieldName];
11109
+ editedValues.value = next;
11110
+ }
10875
11111
  function cancelEditing(fieldName) {
10876
11112
  const data = props.flattenedProfile ?? props.profile ?? null;
10877
11113
  const originalValue = data?.[fieldName] ?? data?.attributes?.[fieldName] ?? "";
@@ -10923,14 +11159,124 @@ const BaseUserProfile = defineComponent({
10923
11159
  ...fieldErrors.value,
10924
11160
  [fieldName]: ""
10925
11161
  };
10926
- const payload = buildPatchValue(fieldName, typeof value === "string" ? strVal : value, schema.schemaId, schema.multiValued);
11162
+ const submitVal = typeof value === "string" ? strVal : value;
11163
+ const payload = buildPatchValue(fieldName, submitVal, schema.schemaId, schema.multiValued);
11164
+ const previousValue = storedValueOf(storedUser(), fieldName);
11165
+ pendingVerification.value = slots["verification"] && isVerifiedAfterSave(schema.type) && isVerifiableAttribute$1(props.userSchema, fieldName) && typeof submitVal === "string" && submitVal !== "" && submitVal !== previousValue ? {
11166
+ name: fieldName,
11167
+ previousValue
11168
+ } : null;
10927
11169
  try {
10928
11170
  await props.onUpdate(payload);
10929
11171
  editingFields.value = {
10930
11172
  ...editingFields.value,
10931
11173
  [fieldName]: false
10932
11174
  };
10933
- } catch {}
11175
+ clearEditedValue(fieldName);
11176
+ } catch {
11177
+ pendingVerification.value = null;
11178
+ }
11179
+ }
11180
+ function renderVerificationStatus(name) {
11181
+ const verification = reportedVerifiedAttributes()?.[name];
11182
+ let verifiedAtText;
11183
+ if (verification?.verifiedAt) {
11184
+ const verifiedAt = new Date(verification.verifiedAt);
11185
+ verifiedAtText = tp("user.verification.status.verified_at", { date: Number.isNaN(verifiedAt.getTime()) ? verification.verifiedAt : verifiedAt.toLocaleString(i18n?.currentLanguage?.value ?? props.preferences?.i18n?.language) });
11186
+ }
11187
+ const modifier = verification ? "verified" : "unverified";
11188
+ return h("span", {
11189
+ class: [px("user-profile__verification-status"), px(`user-profile__verification-status--${modifier}`)].join(" "),
11190
+ "data-testid": `thunderid-verification-status-${name}`,
11191
+ title: verifiedAtText
11192
+ }, [
11193
+ h(verification ? CircleCheckIcon : CircleAlertIcon),
11194
+ tp(`user.verification.status.${modifier}`),
11195
+ verifiedAtText ? h("span", { class: px("user-profile__visually-hidden") }, ` (${verifiedAtText})`) : null
11196
+ ]);
11197
+ }
11198
+ const verificationStatusOf = (name) => {
11199
+ const verified = reportedVerifiedAttributes();
11200
+ const stored = storedValueOf(storedUser(), name);
11201
+ if (!verified || !isVerifiableAttribute$1(props.userSchema, name)) return null;
11202
+ if (typeof stored !== "string" || stored.trim() === "") return null;
11203
+ return verified[name] ? "verified" : "unverified";
11204
+ };
11205
+ const verificationRenderProps = () => {
11206
+ const canVerify = (name) => Boolean(props.editable) && !!slots["verification"] && verificationStatusOf(name) === "unverified";
11207
+ return {
11208
+ canVerify,
11209
+ cancelVerification: () => {
11210
+ verifyingField.value = null;
11211
+ },
11212
+ renderVerification: () => {
11213
+ const name = verifyingField.value;
11214
+ if (!name) return null;
11215
+ return buildVerificationPanel({
11216
+ displayName: props.userSchema?.[name]?.displayName,
11217
+ name
11218
+ });
11219
+ },
11220
+ verificationStatus: verificationStatusOf,
11221
+ verifiedAttributes: reportedVerifiedAttributes(),
11222
+ verify: (name) => {
11223
+ if (canVerify(name)) openVerification(name);
11224
+ },
11225
+ verifyingAttribute: verifyingField.value
11226
+ };
11227
+ };
11228
+ function buildVerificationPanel(schema) {
11229
+ const name = schema.name;
11230
+ if (!slots["verification"] || !name || verifyingField.value !== name) return null;
11231
+ const attributeDisplayName = schema.displayName ?? startCase(name);
11232
+ return h("div", { class: [px("user-profile__verification"), props.compact ? px("user-profile__verification--inline") : ""].filter(Boolean).join(" ") }, slots["verification"]({
11233
+ attribute: name,
11234
+ attributeDisplayName,
11235
+ onCancel: () => {
11236
+ verifyingField.value = null;
11237
+ },
11238
+ onComplete: () => {
11239
+ verifyingField.value = null;
11240
+ verifiedNotice.value = attributeDisplayName;
11241
+ }
11242
+ }));
11243
+ }
11244
+ function handleDialogKeydown(event) {
11245
+ if (event.key === "Escape") {
11246
+ event.stopPropagation();
11247
+ verifyingField.value = null;
11248
+ return;
11249
+ }
11250
+ if (event.key !== "Tab" || !verificationDialogRef.value) return;
11251
+ const focusables = Array.from(verificationDialogRef.value.querySelectorAll("button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])"));
11252
+ if (focusables.length === 0) return;
11253
+ const first = focusables[0];
11254
+ const last = focusables[focusables.length - 1];
11255
+ if (event.shiftKey && (document.activeElement === first || document.activeElement === verificationDialogRef.value)) {
11256
+ event.preventDefault();
11257
+ last.focus();
11258
+ } else if (!event.shiftKey && document.activeElement === last) {
11259
+ event.preventDefault();
11260
+ first.focus();
11261
+ }
11262
+ }
11263
+ function renderVerificationPanel(schema) {
11264
+ const panel = buildVerificationPanel(schema);
11265
+ if (!panel || props.compact) return panel;
11266
+ return h(Teleport, { to: "body" }, [h("div", {
11267
+ class: px("user-profile__verification-overlay"),
11268
+ onClick: (event) => {
11269
+ if (event.target === event.currentTarget) verifyingField.value = null;
11270
+ }
11271
+ }, [h("div", {
11272
+ "aria-label": tp("user.verification.heading", { attribute: schema.displayName ?? startCase(schema.name) }),
11273
+ "aria-modal": "true",
11274
+ class: px("user-profile__verification-dialog"),
11275
+ onKeydown: handleDialogKeydown,
11276
+ ref: verificationDialogRef,
11277
+ role: "dialog",
11278
+ tabindex: -1
11279
+ }, [panel])])]);
10934
11280
  }
10935
11281
  function renderInput(schema) {
10936
11282
  const fieldName = schema.name ?? "";
@@ -10979,6 +11325,9 @@ const BaseUserProfile = defineComponent({
10979
11325
  const isEditing = Boolean(editingFields.value[name]);
10980
11326
  const hasValue = value !== void 0 && value !== null && value !== "";
10981
11327
  if (!hasValue && !isEditing && !(isEditable && mutability === "READ_WRITE")) return null;
11328
+ const verified = reportedVerifiedAttributes();
11329
+ const showsVerificationStatus = verified !== void 0 && hasValue && !isEditing && isVerificationType(schema.type);
11330
+ const canVerify = Boolean(props.editable) && !!slots["verification"] && showsVerificationStatus && !verified?.[name] && verifyingField.value !== name && isVerifiableAttribute$1(props.userSchema, name) && typeof value === "string";
10982
11331
  const editablePlaceholder = isEditable ? h("span", {
10983
11332
  class: px("user-profile__field-placeholder"),
10984
11333
  onClick: () => startEditing(name, value)
@@ -10987,25 +11336,44 @@ const BaseUserProfile = defineComponent({
10987
11336
  return h("div", {
10988
11337
  class: px("user-profile__field"),
10989
11338
  key: name
10990
- }, [h("div", { class: px("user-profile__field-inner") }, [h("span", { class: px("user-profile__field-label") }, label), isEditing ? h("div", { class: px("user-profile__field-edit") }, [renderInput(schema), fieldErrors.value[name] ? h("div", { class: px("user-profile__field-error") }, fieldErrors.value[name]) : null]) : displayValueNode]), isEditable && !isReadonly ? h("div", { class: px("user-profile__field-actions") }, [isEditing ? [h(Button_default, {
10991
- color: "primary",
10992
- onClick: () => saveField(schema),
10993
- size: "small",
10994
- variant: "solid"
10995
- }, () => t("userProfile.actions.save", "Save")), h(Button_default, {
10996
- color: "secondary",
10997
- onClick: () => cancelEditing(name),
10998
- size: "small",
10999
- variant: "solid"
11000
- }, () => t("userProfile.actions.cancel", "Cancel"))] : hasValue ? h(Button_default, {
11001
- class: px("user-profile__field-edit-btn"),
11002
- color: "secondary",
11003
- onClick: () => startEditing(name, value),
11004
- size: "small",
11005
- startIcon: h(PencilIcon),
11006
- title: t("userProfile.actions.edit", "Edit"),
11007
- variant: "ghost"
11008
- }) : null]) : null]);
11339
+ }, [
11340
+ h("div", { class: px("user-profile__field-inner") }, [
11341
+ h("span", { class: px("user-profile__field-label") }, label),
11342
+ isEditing ? h("div", { class: px("user-profile__field-edit") }, [renderInput(schema), fieldErrors.value[name] ? h("div", { class: px("user-profile__field-error") }, fieldErrors.value[name]) : null]) : displayValueNode,
11343
+ showsVerificationStatus ? renderVerificationStatus(name) : null
11344
+ ]),
11345
+ canVerify ? h("div", { class: px("user-profile__field-actions") }, [h(Button_default, {
11346
+ class: px("user-profile__verify-button"),
11347
+ color: "primary",
11348
+ "data-testid": `thunderid-verify-${name}`,
11349
+ onClick: () => openVerification(name),
11350
+ size: "small",
11351
+ variant: "outline"
11352
+ }, () => tp("user.verification.buttons.verify.text"))]) : null,
11353
+ isEditable && !isReadonly ? h("div", { class: px("user-profile__field-actions") }, [isEditing ? [h(Button_default, {
11354
+ color: "primary",
11355
+ onClick: () => saveField(schema),
11356
+ size: "small",
11357
+ variant: "solid"
11358
+ }, () => t("userProfile.actions.save", "Save")), h(Button_default, {
11359
+ color: "secondary",
11360
+ onClick: () => cancelEditing(name),
11361
+ size: "small",
11362
+ variant: "solid"
11363
+ }, () => t("userProfile.actions.cancel", "Cancel"))] : hasValue ? h(Button_default, {
11364
+ class: px("user-profile__field-edit-btn"),
11365
+ color: "secondary",
11366
+ onClick: () => {
11367
+ if (verifyingField.value === name) verifyingField.value = null;
11368
+ verifiedNotice.value = null;
11369
+ startEditing(name, value);
11370
+ },
11371
+ size: "small",
11372
+ startIcon: h(PencilIcon),
11373
+ title: t("userProfile.actions.edit", "Edit"),
11374
+ variant: "ghost"
11375
+ }) : null]) : null
11376
+ ]);
11009
11377
  }
11010
11378
  function renderProfileWithoutSchemas() {
11011
11379
  const data = props.flattenedProfile || props.profile;
@@ -11039,12 +11407,14 @@ const BaseUserProfile = defineComponent({
11039
11407
  if (!data && !props.isLoading) return slots["default"] ? slots["default"]({
11040
11408
  error: props.error,
11041
11409
  isLoading: props.isLoading,
11042
- profile: null
11410
+ profile: null,
11411
+ ...verificationRenderProps()
11043
11412
  }) : null;
11044
11413
  if (slots["default"]) return slots["default"]({
11045
11414
  error: props.error,
11046
11415
  isLoading: props.isLoading,
11047
- profile: data
11416
+ profile: data,
11417
+ ...verificationRenderProps()
11048
11418
  });
11049
11419
  const currentUser = data;
11050
11420
  const schemas = props.schemas ?? [];
@@ -11060,6 +11430,14 @@ const BaseUserProfile = defineComponent({
11060
11430
  class: px("user-profile__error"),
11061
11431
  severity: "error"
11062
11432
  }, () => props.error));
11433
+ if (verifiedNotice.value) {
11434
+ const attribute = verifiedNotice.value;
11435
+ children.push(h(Alert_default, {
11436
+ class: px("user-profile__verification-notice"),
11437
+ "data-testid": "thunderid-verification-notice",
11438
+ severity: "success"
11439
+ }, () => tp("user.verification.success", { attribute })));
11440
+ }
11063
11441
  if (props.isLoading) children.push(h("div", { class: px("user-profile__loading") }, [h(Spinner_default)]));
11064
11442
  else if (props.userSchema && typeof props.userSchema === "object" && Object.keys(props.userSchema).length > 0) {
11065
11443
  const fieldRows = Object.entries(props.userSchema).filter(([key, metaAttr]) => {
@@ -11077,7 +11455,11 @@ const BaseUserProfile = defineComponent({
11077
11455
  type: (metaAttr.type ?? "STRING").toUpperCase(),
11078
11456
  value: val
11079
11457
  };
11080
- }).map((schema) => renderSchemaFieldRow(schema)).filter((node) => node !== null);
11458
+ }).map((schema) => {
11459
+ const row = renderSchemaFieldRow(schema);
11460
+ const panel = row ? renderVerificationPanel(schema) : null;
11461
+ return panel ? h(Fragment, { key: schema.name }, [row, panel]) : row;
11462
+ }).filter((node) => node !== null);
11081
11463
  children.push(h("div", { class: px("user-profile__fields") }, fieldRows));
11082
11464
  } else if (hasSchemas) {
11083
11465
  const fieldRows = schemas.filter((s) => s.name && shouldShowField(s.name)).sort((a, b) => {
@@ -11128,53 +11510,579 @@ const updateMeProfile$1 = async ({ fetcher, instanceId = 0,...requestConfig }) =
11128
11510
  var updateMeProfile_default = updateMeProfile$1;
11129
11511
 
11130
11512
  //#endregion
11131
- //#region src/components/account/user-profile/UserProfile.ts
11132
- const UserProfile = defineComponent({
11133
- name: "UserProfile",
11513
+ //#region src/components/admin/shared/useAdminTranslation.ts
11514
+ /**
11515
+ * Returns a translation function that honors component-level `preferences.i18n.bundles` over the
11516
+ * provider's bundles, falling back to the configured fallback language and then to the provider.
11517
+ * Reactive when called from a render function, since it reads the current language.
11518
+ *
11519
+ * @param getPreferences - Getter for the component's `preferences` prop.
11520
+ * @returns The translation function.
11521
+ */
11522
+ const useAdminTranslation = (getPreferences) => {
11523
+ const i18n = useI18n_default();
11524
+ return (key, params) => {
11525
+ const bundles = getPreferences()?.i18n?.bundles;
11526
+ if (bundles) {
11527
+ const lookup = (language) => {
11528
+ const bundle = bundles[language];
11529
+ if (!bundle) return;
11530
+ return normalizeTranslations(bundle.translations)[key];
11531
+ };
11532
+ const translation = lookup(i18n.currentLanguage.value) ?? lookup(i18n.fallbackLanguage);
11533
+ if (translation) return substituteTranslationParams(translation, params);
11534
+ }
11535
+ return i18n.t(key, params);
11536
+ };
11537
+ };
11538
+ var useAdminTranslation_default = useAdminTranslation;
11539
+
11540
+ //#endregion
11541
+ //#region src/components/account/verify-attribute/BaseVerifyAttribute.ts
11542
+ const collectFlowIds = ({ actions, inputs }) => ({
11543
+ actions: new Set(actions.map((component) => component.id)),
11544
+ fields: new Set(inputs.map((component) => component.ref ?? component.id))
11545
+ });
11546
+ const withFlowTestIds = (node, ids) => {
11547
+ const name = node.props?.["name"];
11548
+ let testId;
11549
+ if (typeof name === "string" && ids.fields.has(name)) testId = `thunderid-field-${name}`;
11550
+ else if (node.key !== null && ids.actions.has(String(node.key))) testId = `thunderid-action-${String(node.key)}`;
11551
+ const children = Array.isArray(node.children) ? node.children.map((child) => isVNode(child) ? withFlowTestIds(child, ids) : child) : node.children;
11552
+ if (!testId && children === node.children) return node;
11553
+ const tagged = cloneVNode(node, testId ? { "data-testid": testId } : null);
11554
+ tagged.children = children;
11555
+ return tagged;
11556
+ };
11557
+ /**
11558
+ * BaseVerifyAttribute renders the server-described steps of a self attribute verification flow.
11559
+ * It takes the flow calls as props, so it stays independent of how the request reaches the server.
11560
+ *
11561
+ * It starts the flow once per mount, since starting one sends a message, and never retries a start
11562
+ * that failed.
11563
+ */
11564
+ const BaseVerifyAttribute = defineComponent({
11565
+ name: "BaseVerifyAttribute",
11134
11566
  props: {
11135
- avatarSize: {
11136
- default: "lg",
11567
+ attributeDisplayName: {
11568
+ default: "",
11137
11569
  type: String
11138
11570
  },
11139
- cardLayout: {
11140
- default: true,
11141
- type: Boolean
11142
- },
11143
- cardVariant: {
11144
- default: "elevated",
11571
+ buttonClassName: {
11572
+ default: "",
11145
11573
  type: String
11146
11574
  },
11147
11575
  className: {
11148
11576
  default: "",
11149
11577
  type: String
11150
11578
  },
11151
- compact: {
11152
- default: false,
11153
- type: Boolean
11579
+ inputClassName: {
11580
+ default: "",
11581
+ type: String
11154
11582
  },
11155
- editable: {
11583
+ isInitialized: {
11156
11584
  default: true,
11157
11585
  type: Boolean
11158
11586
  },
11159
- hideFields: {
11160
- default: () => [],
11161
- type: Array
11587
+ onCancel: {
11588
+ default: void 0,
11589
+ type: Function
11162
11590
  },
11163
- preferences: {
11591
+ onComplete: {
11164
11592
  default: void 0,
11165
- type: Object
11593
+ type: Function
11166
11594
  },
11167
- showAvatar: {
11168
- default: true,
11169
- type: Boolean
11595
+ onDone: {
11596
+ default: void 0,
11597
+ type: Function
11170
11598
  },
11171
- showFields: {
11172
- default: () => [],
11173
- type: Array
11599
+ onError: {
11600
+ default: void 0,
11601
+ type: Function
11174
11602
  },
11175
- title: {
11176
- default: "Profile",
11177
- type: String
11603
+ onFlowChange: {
11604
+ default: void 0,
11605
+ type: Function
11606
+ },
11607
+ onInitialize: {
11608
+ default: void 0,
11609
+ type: Function
11610
+ },
11611
+ onSubmit: {
11612
+ default: void 0,
11613
+ type: Function
11614
+ },
11615
+ preferences: {
11616
+ default: void 0,
11617
+ type: Object
11618
+ },
11619
+ showSubtitle: {
11620
+ default: true,
11621
+ type: Boolean
11622
+ },
11623
+ showTitle: {
11624
+ default: true,
11625
+ type: Boolean
11626
+ },
11627
+ size: {
11628
+ default: "medium",
11629
+ type: String
11630
+ },
11631
+ variant: {
11632
+ default: "outlined",
11633
+ type: String
11634
+ }
11635
+ },
11636
+ setup(props, { slots }) {
11637
+ const { meta: flowMetaRef } = useFlowMeta_default();
11638
+ const t = useAdminTranslation_default(() => props.preferences);
11639
+ const state = ref("loading");
11640
+ const isSubmitting = ref(false);
11641
+ const currentFlow = ref(null);
11642
+ const error = ref(null);
11643
+ const formValues = ref({});
11644
+ const touchedFields = ref({});
11645
+ const formErrors = ref({});
11646
+ const isFormValid = ref(true);
11647
+ let initializationAttempted = false;
11648
+ let challengeToken = null;
11649
+ const meta = () => flowMetaRef?.value ?? null;
11650
+ const labelParams = () => ({ attribute: props.attributeDisplayName ?? "" });
11651
+ const normalize = (response) => {
11652
+ if (!response?.data || Array.isArray(response.data.components)) return response;
11653
+ const { components } = normalizeFlowResponse(response, t, {
11654
+ defaultErrorKey: "user.verification.error",
11655
+ resolveTranslations: false,
11656
+ throwOnError: false
11657
+ }, meta());
11658
+ return {
11659
+ ...response,
11660
+ data: {
11661
+ ...response.data,
11662
+ components
11663
+ }
11664
+ };
11665
+ };
11666
+ const inputs = () => getFlowStepComponents(currentFlow.value?.data?.components ?? []).inputs;
11667
+ const validate = () => {
11668
+ const errors = {};
11669
+ const touched = {};
11670
+ inputs().forEach((component) => {
11671
+ const name = component.ref ?? component.id;
11672
+ const value = formValues.value[name] ?? "";
11673
+ const ruleValidator = buildValidatorFromRules(component.validation);
11674
+ touched[name] = true;
11675
+ if (component.required && value.trim() === "") errors[name] = t("validations.required.field.error");
11676
+ else if (ruleValidator && value) {
11677
+ const ruleMessage = ruleValidator(value);
11678
+ if (ruleMessage) errors[name] = t(ruleMessage);
11679
+ }
11680
+ });
11681
+ touchedFields.value = touched;
11682
+ formErrors.value = errors;
11683
+ isFormValid.value = Object.keys(errors).length === 0;
11684
+ return isFormValid.value;
11685
+ };
11686
+ const resetForm = () => {
11687
+ formValues.value = {};
11688
+ touchedFields.value = {};
11689
+ isFormValid.value = true;
11690
+ const errors = {};
11691
+ const touched = {};
11692
+ (currentFlow.value?.data?.fieldErrors ?? []).forEach((fieldError) => {
11693
+ if (!(fieldError.identifier in errors)) {
11694
+ errors[fieldError.identifier] = fieldError.message;
11695
+ touched[fieldError.identifier] = true;
11696
+ }
11697
+ });
11698
+ formErrors.value = errors;
11699
+ touchedFields.value = touched;
11700
+ };
11701
+ const handleResponse = (rawResponse) => {
11702
+ const response = normalize(rawResponse);
11703
+ props.onFlowChange?.(response);
11704
+ if (response.challengeToken !== void 0) challengeToken = response.challengeToken ?? null;
11705
+ if (response.flowStatus === EmbeddedSelfFlowStatus$1.Error) {
11706
+ const message = extractErrorMessage(response, t, "user.verification.error");
11707
+ error.value = message;
11708
+ state.value = "failed";
11709
+ props.onError?.(new Error(message));
11710
+ return;
11711
+ }
11712
+ if (response.flowStatus === EmbeddedSelfFlowStatus$1.Complete) {
11713
+ error.value = null;
11714
+ state.value = "complete";
11715
+ props.onComplete?.(response);
11716
+ return;
11717
+ }
11718
+ const previous = currentFlow.value;
11719
+ currentFlow.value = response.data?.additionalData || !previous?.data?.additionalData ? response : {
11720
+ ...response,
11721
+ data: {
11722
+ ...response.data,
11723
+ additionalData: previous.data.additionalData
11724
+ }
11725
+ };
11726
+ resetForm();
11727
+ error.value = response.error ? extractErrorMessage(response, t, "user.verification.error") : null;
11728
+ state.value = "active";
11729
+ };
11730
+ const handleFailure = (caughtError) => {
11731
+ error.value = t("user.verification.error");
11732
+ state.value = "failed";
11733
+ props.onError?.(caughtError instanceof Error ? caughtError : new Error(String(caughtError)));
11734
+ };
11735
+ watch(() => props.isInitialized, (initialized) => {
11736
+ if (!initialized || initializationAttempted) return;
11737
+ initializationAttempted = true;
11738
+ (async () => {
11739
+ try {
11740
+ const response = await props.onInitialize?.();
11741
+ if (response) handleResponse(response);
11742
+ } catch (caughtError) {
11743
+ handleFailure(caughtError);
11744
+ }
11745
+ })();
11746
+ }, { immediate: true });
11747
+ const handleInputChange = (name, value) => {
11748
+ formValues.value = {
11749
+ ...formValues.value,
11750
+ [name]: value
11751
+ };
11752
+ if (!isFormValid.value) validate();
11753
+ };
11754
+ const handleInputBlur = (name) => {
11755
+ touchedFields.value = {
11756
+ ...touchedFields.value,
11757
+ [name]: true
11758
+ };
11759
+ };
11760
+ const handleSubmit = async (component, data, skipValidation) => {
11761
+ if (!currentFlow.value || isSubmitting.value) return;
11762
+ if (!skipValidation && !validate()) return;
11763
+ isSubmitting.value = true;
11764
+ error.value = null;
11765
+ try {
11766
+ const stepInputs = Object.fromEntries(Object.entries(data ?? {}).filter(([, value]) => value !== null && value !== void 0 && value !== ""));
11767
+ const response = await props.onSubmit?.({
11768
+ executionId: currentFlow.value.executionId,
11769
+ ...component.id && { action: component.id },
11770
+ ...challengeToken ? { challengeToken } : {},
11771
+ inputs: stepInputs
11772
+ });
11773
+ if (response) handleResponse(response);
11774
+ } catch (caughtError) {
11775
+ handleFailure(caughtError);
11776
+ } finally {
11777
+ isSubmitting.value = false;
11778
+ }
11779
+ };
11780
+ return () => {
11781
+ const additionalData = currentFlow.value?.data?.additionalData ?? {};
11782
+ const maskedDestination = additionalData[AttributeVerificationConstants$1.MASKED_DESTINATION_KEY];
11783
+ const destination = typeof maskedDestination === "string" && maskedDestination ? maskedDestination : null;
11784
+ const headings = getAuthComponentHeadings_default(currentFlow.value?.data?.components ?? [], void 0, void 0, t("user.verification.heading", labelParams()), t("user.verification.subheading.generic"));
11785
+ const { componentsWithoutHeadings } = headings;
11786
+ const step = getFlowStepComponents(componentsWithoutHeadings);
11787
+ const flowIds = collectFlowIds(step);
11788
+ const isAwaitingLink = state.value === "active" && inputs().length === 0 && step.actions.length === 0;
11789
+ const title = resolveFlowTemplateLiterals(headings.title, {
11790
+ meta: meta(),
11791
+ t
11792
+ });
11793
+ let subtitle = resolveFlowTemplateLiterals(headings.subtitle, {
11794
+ meta: meta(),
11795
+ t
11796
+ });
11797
+ let destinationText = null;
11798
+ if (destination && headings.headingComponents.subheading) destinationText = t("user.verification.destination", { destination });
11799
+ else if (destination) subtitle = t(isAwaitingLink ? "user.verification.subheading.link" : "user.verification.subheading", { destination });
11800
+ const isLoading = state.value === "loading" || isSubmitting.value;
11801
+ const px = withVendorCSSClassPrefix;
11802
+ const containerClass = [
11803
+ px("verify-attribute"),
11804
+ px(`verify-attribute--${props.size}`),
11805
+ px(`verify-attribute--${props.variant}`),
11806
+ props.className
11807
+ ].filter(Boolean).join(" ");
11808
+ if (slots["default"]) {
11809
+ const resend = state.value === "active" ? step.resend : void 0;
11810
+ const renderProps = {
11811
+ additionalData,
11812
+ components: componentsWithoutHeadings,
11813
+ destination,
11814
+ destinationText,
11815
+ error: error.value,
11816
+ fieldErrors: formErrors.value,
11817
+ handleInputChange,
11818
+ handleResend: resend ? () => handleSubmit(resend, void 0, true) : void 0,
11819
+ handleSubmit,
11820
+ isAwaitingLink,
11821
+ isComplete: state.value === "complete",
11822
+ isFailed: state.value === "failed",
11823
+ isLoading,
11824
+ isValid: isFormValid.value,
11825
+ onCancel: props.onCancel,
11826
+ onDone: isAwaitingLink ? props.onDone : void 0,
11827
+ subtitle,
11828
+ successMessage: t("user.verification.success", labelParams()),
11829
+ title,
11830
+ touched: touchedFields.value,
11831
+ values: formValues.value
11832
+ };
11833
+ return h("div", { class: containerClass }, slots["default"](renderProps));
11834
+ }
11835
+ const showDone = isAwaitingLink && !!props.onDone;
11836
+ return h("div", {
11837
+ "aria-busy": isLoading,
11838
+ class: containerClass
11839
+ }, [
11840
+ state.value === "active" && (props.showTitle || props.showSubtitle) ? h("div", { class: px("verify-attribute__header") }, [props.showTitle ? h(Typography_default, {
11841
+ class: px("verify-attribute__heading"),
11842
+ variant: "h5"
11843
+ }, () => title) : null, props.showSubtitle ? h(Typography_default, {
11844
+ class: px("verify-attribute__subheading"),
11845
+ variant: "body2"
11846
+ }, () => [subtitle, destinationText ? h("span", { class: px("verify-attribute__destination") }, ` ${destinationText}`) : null]) : null]) : null,
11847
+ state.value === "loading" ? h("div", { class: px("verify-attribute__loading") }, [h(Spinner_default)]) : null,
11848
+ error.value ? h(Alert_default, {
11849
+ class: px("verify-attribute__alert"),
11850
+ severity: "error"
11851
+ }, () => error.value) : null,
11852
+ state.value === "complete" ? h(Alert_default, {
11853
+ class: px("verify-attribute__alert"),
11854
+ severity: "success"
11855
+ }, () => t("user.verification.success", labelParams())) : null,
11856
+ state.value === "active" ? h("div", { class: px("verify-attribute__content") }, renderVerificationComponents(componentsWithoutHeadings, formValues.value, touchedFields.value, formErrors.value, isLoading, isFormValid.value, resetForm, handleInputChange, {
11857
+ additionalData,
11858
+ buttonClassName: [px("verify-attribute__button"), props.buttonClassName].filter(Boolean).join(" "),
11859
+ inputClassName: [px("verify-attribute__input"), props.inputClassName].filter(Boolean).join(" "),
11860
+ meta: meta(),
11861
+ onInputBlur: handleInputBlur,
11862
+ onSubmit: (component, data, skip) => {
11863
+ handleSubmit(component, data, skip);
11864
+ },
11865
+ size: props.size,
11866
+ t,
11867
+ variant: props.variant
11868
+ }).map((node) => withFlowTestIds(node, flowIds))) : null,
11869
+ props.onCancel || showDone ? h("div", { class: px("verify-attribute__actions") }, [showDone ? h(Button_default, {
11870
+ color: "primary",
11871
+ "data-testid": "thunderid-action-verificationDone",
11872
+ onClick: () => props.onDone?.(),
11873
+ size: "small",
11874
+ variant: "solid"
11875
+ }, () => t("user.verification.buttons.done.text")) : null, props.onCancel ? h(Button_default, {
11876
+ color: "secondary",
11877
+ "data-testid": "thunderid-action-verificationCancel",
11878
+ disabled: isSubmitting.value,
11879
+ onClick: () => props.onCancel?.(),
11880
+ size: "small",
11881
+ variant: "outline"
11882
+ }, () => state.value === "active" || state.value === "loading" ? t("user.verification.buttons.cancel.text") : t("user.verification.buttons.close.text")) : null]) : null
11883
+ ]);
11884
+ };
11885
+ }
11886
+ });
11887
+ var BaseVerifyAttribute_default = BaseVerifyAttribute;
11888
+
11889
+ //#endregion
11890
+ //#region src/api/auth/executeEmbeddedSelfFlow.ts
11891
+ /**
11892
+ * Executes one step of a `SELF` flow for the signed-in user, through the authenticated
11893
+ * transport that attaches the access token the flow identifies the user by.
11894
+ *
11895
+ * @param config - Configuration object with URL, payload and optional request config.
11896
+ * @returns A promise that resolves with the flow step.
11897
+ */
11898
+ const executeEmbeddedSelfFlow$1 = async ({ fetcher, instanceId = 0,...requestConfig }) => executeEmbeddedSelfFlow({
11899
+ ...requestConfig,
11900
+ fetcher: fetcher ?? createHttpClientFetcher(instanceId)
11901
+ });
11902
+ var executeEmbeddedSelfFlow_default = executeEmbeddedSelfFlow$1;
11903
+
11904
+ //#endregion
11905
+ //#region src/components/account/verify-attribute/VerifyAttribute.ts
11906
+ const logger$1 = createVueLogger("VerifyAttribute");
11907
+ /**
11908
+ * VerifyAttribute verifies one of the signed-in user's attributes, such as their email address, by
11909
+ * running a self attribute verification flow named by `flowHandle`. The flow picks the email or mobile
11910
+ * path from the attribute's type, sends a code or a link to the attribute's current value, and the
11911
+ * component renders the steps it describes; for a link it shows a Done action. Every request carries
11912
+ * the user's access token. Once the server records the verification, and when the user selects Done,
11913
+ * it re-reads the user's profile so `useUser()` shows the new status.
11914
+ *
11915
+ * It waits for the user schema to load, and refuses an attribute the schema does not declare as an
11916
+ * `email` or `mobile` property, since starting a verification sends a message.
11917
+ *
11918
+ * Mount it with a `key` per attribute: each mount starts a new verification and sends a new code or
11919
+ * link.
11920
+ *
11921
+ * @example
11922
+ * ```vue
11923
+ * <VerifyAttribute attribute="email" @complete="open = false" @cancel="open = false" />
11924
+ * ```
11925
+ */
11926
+ const VerifyAttribute = defineComponent({
11927
+ name: "VerifyAttribute",
11928
+ props: {
11929
+ attribute: {
11930
+ required: true,
11931
+ type: String
11932
+ },
11933
+ attributeDisplayName: {
11934
+ default: void 0,
11935
+ type: String
11936
+ },
11937
+ className: {
11938
+ default: "",
11939
+ type: String
11940
+ },
11941
+ flowHandle: {
11942
+ default: AttributeVerificationConstants$1.DEFAULT_FLOW_HANDLE,
11943
+ type: String
11944
+ },
11945
+ onCancel: {
11946
+ default: void 0,
11947
+ type: Function
11948
+ },
11949
+ onComplete: {
11950
+ default: void 0,
11951
+ type: Function
11952
+ },
11953
+ onDone: {
11954
+ default: void 0,
11955
+ type: Function
11956
+ },
11957
+ onError: {
11958
+ default: void 0,
11959
+ type: Function
11960
+ },
11961
+ preferences: {
11962
+ default: void 0,
11963
+ type: Object
11964
+ },
11965
+ showSubtitle: {
11966
+ default: true,
11967
+ type: Boolean
11968
+ },
11969
+ showTitle: {
11970
+ default: true,
11971
+ type: Boolean
11972
+ },
11973
+ size: {
11974
+ default: "medium",
11975
+ type: String
11976
+ },
11977
+ variant: {
11978
+ default: "outlined",
11979
+ type: String
11980
+ }
11981
+ },
11982
+ setup(props, { slots }) {
11983
+ const { baseUrl, endpoints, instanceId, isInitialized, isLoading } = useThunderID_default();
11984
+ const { revalidateProfile, userSchema } = useUser_default();
11985
+ const flowExecuteUrl = resolveResourceEndpoint("flowExecute", { endpoints }) ?? `${baseUrl}/flow/execute`;
11986
+ const execute = (payload) => executeEmbeddedSelfFlow_default({
11987
+ baseUrl,
11988
+ instanceId,
11989
+ payload,
11990
+ url: flowExecuteUrl
11991
+ });
11992
+ const handleInitialize = () => {
11993
+ if (!isVerifiableAttribute$1(userSchema?.value, props.attribute)) return Promise.reject(new ThunderIDRuntimeError$1(`Attribute "${props.attribute}" is not a verifiable email or mobile attribute.`, "VerifyAttribute-handleInitialize-RuntimeError-001", "vue", "Only a top-level, single-valued email or mobile attribute of the user schema can be verified."));
11994
+ return execute({
11995
+ flowType: EmbeddedFlowType.Self,
11996
+ handle: props.flowHandle,
11997
+ inputs: { [AttributeVerificationConstants$1.ATTRIBUTE_INPUT]: props.attribute }
11998
+ });
11999
+ };
12000
+ const refreshProfile = async () => {
12001
+ try {
12002
+ await revalidateProfile?.();
12003
+ } catch (caughtError) {
12004
+ logger$1.warn("Failed to re-read the user profile after verification:", caughtError);
12005
+ }
12006
+ };
12007
+ return () => h(BaseVerifyAttribute_default, {
12008
+ attributeDisplayName: props.attributeDisplayName ?? userSchema?.value?.[props.attribute]?.displayName ?? startCase(props.attribute),
12009
+ class: withVendorCSSClassPrefix("verify-attribute--styled"),
12010
+ className: props.className,
12011
+ isInitialized: isInitialized.value && !isLoading.value && !!userSchema?.value,
12012
+ onCancel: props.onCancel,
12013
+ onComplete: (response) => {
12014
+ refreshProfile();
12015
+ props.onComplete?.(response);
12016
+ },
12017
+ onDone: () => {
12018
+ refreshProfile();
12019
+ props.onDone?.();
12020
+ },
12021
+ onError: props.onError,
12022
+ onInitialize: handleInitialize,
12023
+ onSubmit: execute,
12024
+ preferences: props.preferences,
12025
+ showSubtitle: props.showSubtitle,
12026
+ showTitle: props.showTitle,
12027
+ size: props.size,
12028
+ variant: props.variant
12029
+ }, slots);
12030
+ }
12031
+ });
12032
+ var VerifyAttribute_default = VerifyAttribute;
12033
+
12034
+ //#endregion
12035
+ //#region src/components/account/user-profile/UserProfile.ts
12036
+ const UserProfile = defineComponent({
12037
+ name: "UserProfile",
12038
+ props: {
12039
+ avatarSize: {
12040
+ default: "lg",
12041
+ type: String
12042
+ },
12043
+ cardLayout: {
12044
+ default: true,
12045
+ type: Boolean
12046
+ },
12047
+ cardVariant: {
12048
+ default: "elevated",
12049
+ type: String
12050
+ },
12051
+ className: {
12052
+ default: "",
12053
+ type: String
12054
+ },
12055
+ compact: {
12056
+ default: false,
12057
+ type: Boolean
12058
+ },
12059
+ editable: {
12060
+ default: true,
12061
+ type: Boolean
12062
+ },
12063
+ hideFields: {
12064
+ default: () => [],
12065
+ type: Array
12066
+ },
12067
+ preferences: {
12068
+ default: void 0,
12069
+ type: Object
12070
+ },
12071
+ showAvatar: {
12072
+ default: true,
12073
+ type: Boolean
12074
+ },
12075
+ showFields: {
12076
+ default: () => [],
12077
+ type: Array
12078
+ },
12079
+ title: {
12080
+ default: "Profile",
12081
+ type: String
12082
+ },
12083
+ verificationFlowHandle: {
12084
+ default: AttributeVerificationConstants$1.DEFAULT_FLOW_HANDLE,
12085
+ type: String
11178
12086
  }
11179
12087
  },
11180
12088
  setup(props, { slots }) {
@@ -11216,6 +12124,17 @@ const UserProfile = defineComponent({
11216
12124
  error.value = message;
11217
12125
  }
11218
12126
  }
12127
+ const renderVerification = ({ attribute, attributeDisplayName, onCancel, onComplete }) => h(VerifyAttribute_default, {
12128
+ attribute,
12129
+ attributeDisplayName,
12130
+ flowHandle: props.verificationFlowHandle,
12131
+ key: attribute,
12132
+ onCancel,
12133
+ onComplete,
12134
+ onDone: onCancel,
12135
+ preferences: resolvedPreferences.value,
12136
+ variant: props.compact ? "outlined" : "flat"
12137
+ });
11219
12138
  return () => h(BaseUserProfile_default, {
11220
12139
  avatarSize: props.avatarSize,
11221
12140
  cardLayout: props.cardLayout,
@@ -11235,39 +12154,14 @@ const UserProfile = defineComponent({
11235
12154
  t,
11236
12155
  title: props.title,
11237
12156
  userSchema: userSchema?.value
11238
- }, slots);
12157
+ }, isEditableProfile.value ? {
12158
+ verification: renderVerification,
12159
+ ...slots
12160
+ } : slots);
11239
12161
  }
11240
12162
  });
11241
12163
  var UserProfile_default = UserProfile;
11242
12164
 
11243
- //#endregion
11244
- //#region src/components/admin/shared/useAdminTranslation.ts
11245
- /**
11246
- * Returns a translation function that honors component-level `preferences.i18n.bundles` over the
11247
- * provider's bundles, falling back to the configured fallback language and then to the provider.
11248
- * Reactive when called from a render function, since it reads the current language.
11249
- *
11250
- * @param getPreferences - Getter for the component's `preferences` prop.
11251
- * @returns The translation function.
11252
- */
11253
- const useAdminTranslation = (getPreferences) => {
11254
- const i18n = useI18n_default();
11255
- return (key, params) => {
11256
- const bundles = getPreferences()?.i18n?.bundles;
11257
- if (bundles) {
11258
- const lookup = (language) => {
11259
- const bundle = bundles[language];
11260
- if (!bundle) return;
11261
- return normalizeTranslations(bundle.translations)[key];
11262
- };
11263
- const translation = lookup(i18n.currentLanguage.value) ?? lookup(i18n.fallbackLanguage);
11264
- if (translation) return substituteTranslationParams(translation, params);
11265
- }
11266
- return i18n.t(key, params);
11267
- };
11268
- };
11269
- var useAdminTranslation_default = useAdminTranslation;
11270
-
11271
12165
  //#endregion
11272
12166
  //#region src/components/common/attribution/Attribution.ts
11273
12167
  const cls$13 = (suffix) => withVendorCSSClassPrefix(`attribution${suffix}`);
@@ -17545,4 +18439,4 @@ const createCallbackRoute = (options = {}) => {
17545
18439
  };
17546
18440
 
17547
18441
  //#endregion
17548
- export { ADMINISTRATION_FLOW_TYPE, AcceptInvite_default as AcceptInvite, AccountLifecycleFlowConfigKey, AdministrationFlowConfigKey, AdministrationFlowData, AdministrationFlowError, AdministrationFlowInput, AdministrationModes, AgentCreate_default as AgentCreate, AgentDetails_default as AgentDetails, AgentList_default as AgentList, AgentQueryKeys, Alert_default as Alert, ApplicationCreate_default as ApplicationCreate, ApplicationDetails_default as ApplicationDetails, ApplicationList_default as ApplicationList, ApplicationQueryKeys, ArrowLeftRightIcon, Attribution_default as Attribution, AuthFlowSelect_default as AuthFlowSelect, BaseAcceptInvite_default as BaseAcceptInvite, BaseAgentCreate_default as BaseAgentCreate, BaseAgentDetails_default as BaseAgentDetails, BaseAgentList_default as BaseAgentList, BaseApplicationCreate_default as BaseApplicationCreate, BaseApplicationDetails_default as BaseApplicationDetails, BaseApplicationList_default as BaseApplicationList, BaseAuthFlowSelect_default as BaseAuthFlowSelect, BaseChangeCredential_default as BaseChangeCredential, BaseDeviceGrant_default as BaseDeviceGrant, BaseGroupCreate_default as BaseGroupCreate, BaseGroupList_default as BaseGroupList, BaseGroupMembers_default as BaseGroupMembers, BaseInviteUser_default as BaseInviteUser, BaseLanguageSwitcher_default as BaseLanguageSwitcher, BaseRoleAssignments_default as BaseRoleAssignments, BaseRoleCreate_default as BaseRoleCreate, BaseRoleList_default as BaseRoleList, BaseRolePermissions_default as BaseRolePermissions, BaseSignIn_default as BaseSignIn, BaseSignInButton_default as BaseSignInButton, BaseSignOutButton_default as BaseSignOutButton, BaseSignUp_default as BaseSignUp, BaseSignUpButton_default as BaseSignUpButton, BaseUserCreate_default as BaseUserCreate, BaseUserDetails_default as BaseUserDetails, BaseUserDropdown_default as BaseUserDropdown, BaseUserList_default as BaseUserList, BaseUserProfile_default as BaseUserProfile, BaseUserSelect_default as BaseUserSelect, BaseUserTypeSelect_default as BaseUserTypeSelect, BuildingIcon, Button_default as Button, Callback_default as Callback, Card_default as Card, ChangeCredential_default as ChangeCredential, CheckIcon, Checkbox_default as Checkbox, ChevronDownIcon, CircleAlertIcon, CircleCheckIcon, Consent_default as Consent, CopyableText_default as CopyableText, DEFAULT_USER_CREATE_FIELDS, DataTable_default as DataTable, DatePicker_default as DatePicker, DeviceGrant_default as DeviceGrant, Divider_default as Divider, EmbeddedFlowActionVariant, EmbeddedFlowComponentType, EmbeddedFlowEventType, EmbeddedFlowTextVariant, EmbeddedSignInFlowStatus, EmbeddedSignInFlowType, EmbeddedSignUpFlowStatus, EmbeddedSignUpFlowType, EyeIcon, EyeOffIcon, FLOW_KEY, FLOW_META_KEY, FacebookButton_default as FacebookButton, FieldFactory_default as FieldFactory, FieldType, FlowMetaProvider_default as FlowMetaProvider, FlowProvider_default as FlowProvider, GitHubButton_default as GitHubButton, GlobeIcon, GoogleButton_default as GoogleButton, GroupCreate_default as GroupCreate, GroupList_default as GroupList, GroupMembers_default as GroupMembers, GroupQueryKeys, I18N_KEY, I18nProvider_default as I18nProvider, InfoIcon, InviteUser_default as InviteUser, KeyValueList_default as KeyValueList, LanguageSwitcher_default as LanguageSwitcher, Loading_default as Loading, LogOutIcon, Logo_default as Logo, MicrosoftButton_default as MicrosoftButton, OtpField_default as OtpField, PasswordField_default as PasswordField, PencilIcon, PlusIcon, RoleAssignments_default as RoleAssignments, RoleCreate_default as RoleCreate, RoleList_default as RoleList, RolePermissions_default as RolePermissions, RoleQueryKeys, Select_default as Select, SignIn_default as SignIn, SignInButton_default as SignInButton, SignOutButton_default as SignOutButton, SignUp_default as SignUp, SignUpButton_default as SignUpButton, SignedIn_default as SignedIn, SignedOut_default as SignedOut, Spinner_default as Spinner, THEME_KEY, THUNDERID_KEY, TextField_default as TextField, ThemeProvider_default as ThemeProvider, ThunderIDAPIError, ThunderIDPlugin_default as ThunderIDPlugin, ThunderIDProvider_default as ThunderIDProvider, ThunderIDRuntimeError, ThunderIDVueClient_default as ThunderIDVueClient, TriangleAlertIcon, Typography_default as Typography, USER_KEY, User_default as User, UserCreate_default as UserCreate, UserDetails_default as UserDetails, UserDropdown_default as UserDropdown, UserIcon, UserList_default as UserList, UserProfile_default as UserProfile, UserProvider_default as UserProvider, UserQueryKeys, UserSelect_default as UserSelect, UserTypeSelect_default as UserTypeSelect, XIcon, addGroupMembers, addRoleAssignments, applyGatewayConfiguration, buildThemeConfigFromFlowMeta_default as buildThemeConfigFromFlowMeta, createAction, createAgent, createAgentType, createApplication, createApplicationSharingPolicy, createCallbackRoute, createClassObserver, createConfigurationVersion, createConnection, createDesignTheme, createField, createFlow, createGateway, createGatewaySecret, createGatewayVariable, createGroup, createLayout, createMediaQueryListener, createNotificationTemplate, createOrganizationUnit, createResource, createResourceInvalidator, createResourceServer, createRole, createSecret, createThunderIDGuard, createUser, createUserByPath, createUserSharingPolicy, createUserType, createVariable, deleteAction, deleteAgent, deleteAgentType, deleteApplication, deleteApplicationSharingPolicy, deleteConnection, deleteDesignTheme, deleteFlow, deleteGateway, deleteGatewaySecret, deleteGatewayVariable, deleteGroup, deleteImportedConfiguration, deleteLayout, deleteNotificationTemplate, deleteOrganizationUnit, deleteOrganizationUnitByPath, deleteResource, deleteResourceServer, deleteRole, deleteSecret, deleteTranslation, deleteTranslations, deleteUser, deleteUserSharingPolicy, deleteUserType, deleteVariable, detectThemeMode, executeAdministrationFlow, exportConfiguration, extractErrorMessage, findAdministrationFlows, getAccountLifecycleActions, getAction, getActions, getActiveTheme, getAgent, getAgentGroups, getAgentName, getAgentRoles, getAgentType, getAgentTypes, getAgents, getApplication, getApplicationOverlayRules, getApplicationSharingPolicies, getApplicationSharingPolicy, getApplications, getAuthComponentHeadings_default as getAuthComponentHeadings, getConfigurationVersion, getConfigurationVersions, getConnection, getConnectionUsages, getConnections, getConnectionsMeta, getDesignTheme, getDesignThemeUsages, getDesignThemes, getFlow, getFlowUsages, getFlowVersion, getFlowVersions, getFlows, getGateway, getGatewayAppliedConfiguration, getGatewayAppliedVersion, getGatewayConfigurationDiff, getGatewaySecret, getGatewaySecrets, getGatewayVariable, getGatewayVariables, getGateways, getGroup, getGroupMembers, getGroups, getLanguages, getLayout, getLayoutUsages, getLayouts, getNotificationTemplate, getNotificationTemplates, getOrganizationUnit, getOrganizationUnitByPath, getOrganizationUnitChildren, getOrganizationUnitGroups, getOrganizationUnitRoles, getOrganizationUnitUsers, getOrganizationUnits, getResource, getResourceServer, getResourceServers, getResources, getRole, getRoleAssignments, getRoles, getSecret, getSecrets, getServerConfig, getServerConfigs, getTokenPermissions, getUser, getUserGroups, getUserOverlayRules, getUserSharingPolicies, getUserSharingPolicy, getUserType, getUserTypes, getUserUsages, getUsers, getUsersByPath, getUsersMeMeta_default as getUsersMeMeta, getVariable, getVariables, handlePasskeyAuthentication, handlePasskeyRegistration, handleWebAuthnAuthentication, hasAuthParamsInUrl, hasPermission, http, importConfiguration, initiateOAuthRedirect, navigate, normalizeFlowResponse, parseKeyValuePairs, previewCimdDocument, regenerateAgentSecret, regenerateClientSecret, regenerateFlowSecret, removeGroupMembers, removeRoleAssignments, resolveAdministrationFlowHandles, resolveAdministrationFlowId, resolveAdministrationFlows, resolveDesign, resolveTranslation, resolveTranslations, restoreFlowVersion, revertGatewayConfiguration, runAccountLifecycleAction, runAdministrationFlow, setTranslation, setTranslations, suspendAgent, suspendApplication, suspendUser, unlockAgent, unlockUser, unsuspendAgent, unsuspendApplication, unsuspendUser, updateAction, updateAgent, updateAgentType, updateApplication, updateApplicationSharingPolicy, updateConnection, updateDesignTheme, updateFlow, updateGateway, updateGatewaySecret, updateGatewayVariable, updateGroup, updateLayout, updateNotificationTemplate, updateOrganizationUnit, updateOrganizationUnitByPath, updateResource, updateResourceServer, updateRole, updateSecret, updateServerConfig, updateUser, updateUserCredentials, updateUserSharingPolicy, updateUserType, updateVariable, useFetchAuthFlows_default as useFetchAuthFlows, useFetchUserTypes_default as useFetchUserTypes, useFetchUsers_default as useFetchUsers, useFlow_default as useFlow, useFlowMeta_default as useFlowMeta, useGrantedPermissions_default as useGrantedPermissions, useI18n_default as useI18n, useInfiniteOptions_default as useInfiniteOptions, useManagementEndpoint_default as useManagementEndpoint, useManagementRequestConfig_default as useManagementRequestConfig, useOAuthCallback, useTheme_default as useTheme, useThunderID_default as useThunderID, useUser_default as useUser, validateFieldValue };
18442
+ export { ADMINISTRATION_FLOW_TYPE, AcceptInvite_default as AcceptInvite, AccountLifecycleFlowConfigKey, AdministrationFlowConfigKey, AdministrationFlowData, AdministrationFlowError, AdministrationFlowInput, AdministrationModes, AgentCreate_default as AgentCreate, AgentDetails_default as AgentDetails, AgentList_default as AgentList, AgentQueryKeys, Alert_default as Alert, ApplicationCreate_default as ApplicationCreate, ApplicationDetails_default as ApplicationDetails, ApplicationList_default as ApplicationList, ApplicationQueryKeys, ArrowLeftRightIcon, AttributeVerificationConstants, Attribution_default as Attribution, AuthFlowSelect_default as AuthFlowSelect, BaseAcceptInvite_default as BaseAcceptInvite, BaseAgentCreate_default as BaseAgentCreate, BaseAgentDetails_default as BaseAgentDetails, BaseAgentList_default as BaseAgentList, BaseApplicationCreate_default as BaseApplicationCreate, BaseApplicationDetails_default as BaseApplicationDetails, BaseApplicationList_default as BaseApplicationList, BaseAuthFlowSelect_default as BaseAuthFlowSelect, BaseChangeCredential_default as BaseChangeCredential, BaseDeviceGrant_default as BaseDeviceGrant, BaseGroupCreate_default as BaseGroupCreate, BaseGroupList_default as BaseGroupList, BaseGroupMembers_default as BaseGroupMembers, BaseInviteUser_default as BaseInviteUser, BaseLanguageSwitcher_default as BaseLanguageSwitcher, BaseRoleAssignments_default as BaseRoleAssignments, BaseRoleCreate_default as BaseRoleCreate, BaseRoleList_default as BaseRoleList, BaseRolePermissions_default as BaseRolePermissions, BaseSignIn_default as BaseSignIn, BaseSignInButton_default as BaseSignInButton, BaseSignOutButton_default as BaseSignOutButton, BaseSignUp_default as BaseSignUp, BaseSignUpButton_default as BaseSignUpButton, BaseUserCreate_default as BaseUserCreate, BaseUserDetails_default as BaseUserDetails, BaseUserDropdown_default as BaseUserDropdown, BaseUserList_default as BaseUserList, BaseUserProfile_default as BaseUserProfile, BaseUserSelect_default as BaseUserSelect, BaseUserTypeSelect_default as BaseUserTypeSelect, BaseVerifyAttribute_default as BaseVerifyAttribute, BuildingIcon, Button_default as Button, Callback_default as Callback, Card_default as Card, ChangeCredential_default as ChangeCredential, CheckIcon, Checkbox_default as Checkbox, ChevronDownIcon, CircleAlertIcon, CircleCheckIcon, Consent_default as Consent, CopyableText_default as CopyableText, DEFAULT_USER_CREATE_FIELDS, DataTable_default as DataTable, DatePicker_default as DatePicker, DeviceGrant_default as DeviceGrant, Divider_default as Divider, EmbeddedFlowActionVariant, EmbeddedFlowComponentType, EmbeddedFlowEventType, EmbeddedFlowTextVariant, EmbeddedSelfFlowStatus, EmbeddedSignInFlowStatus, EmbeddedSignInFlowType, EmbeddedSignUpFlowStatus, EmbeddedSignUpFlowType, EyeIcon, EyeOffIcon, FLOW_KEY, FLOW_META_KEY, FacebookButton_default as FacebookButton, FieldFactory_default as FieldFactory, FieldType, FlowMetaProvider_default as FlowMetaProvider, FlowProvider_default as FlowProvider, GitHubButton_default as GitHubButton, GlobeIcon, GoogleButton_default as GoogleButton, GroupCreate_default as GroupCreate, GroupList_default as GroupList, GroupMembers_default as GroupMembers, GroupQueryKeys, I18N_KEY, I18nProvider_default as I18nProvider, InfoIcon, InviteUser_default as InviteUser, KeyValueList_default as KeyValueList, LanguageSwitcher_default as LanguageSwitcher, Loading_default as Loading, LogOutIcon, Logo_default as Logo, MicrosoftButton_default as MicrosoftButton, OtpField_default as OtpField, PasswordField_default as PasswordField, PencilIcon, PlusIcon, RoleAssignments_default as RoleAssignments, RoleCreate_default as RoleCreate, RoleList_default as RoleList, RolePermissions_default as RolePermissions, RoleQueryKeys, Select_default as Select, SignIn_default as SignIn, SignInButton_default as SignInButton, SignOutButton_default as SignOutButton, SignUp_default as SignUp, SignUpButton_default as SignUpButton, SignedIn_default as SignedIn, SignedOut_default as SignedOut, Spinner_default as Spinner, THEME_KEY, THUNDERID_KEY, TextField_default as TextField, ThemeProvider_default as ThemeProvider, ThunderIDAPIError, ThunderIDPlugin_default as ThunderIDPlugin, ThunderIDProvider_default as ThunderIDProvider, ThunderIDRuntimeError, ThunderIDVueClient_default as ThunderIDVueClient, TriangleAlertIcon, Typography_default as Typography, USER_KEY, User_default as User, UserCreate_default as UserCreate, UserDetails_default as UserDetails, UserDropdown_default as UserDropdown, UserIcon, UserList_default as UserList, UserProfile_default as UserProfile, UserProvider_default as UserProvider, UserQueryKeys, UserSelect_default as UserSelect, UserTypeSelect_default as UserTypeSelect, VerifyAttribute_default as VerifyAttribute, XIcon, addGroupMembers, addRoleAssignments, applyGatewayConfiguration, buildThemeConfigFromFlowMeta_default as buildThemeConfigFromFlowMeta, createAction, createAgent, createAgentType, createApplication, createApplicationSharingPolicy, createCallbackRoute, createClassObserver, createConfigurationVersion, createConnection, createDesignTheme, createField, createFlow, createGateway, createGatewaySecret, createGatewayVariable, createGroup, createLayout, createMediaQueryListener, createNotificationTemplate, createOrganizationUnit, createResource, createResourceInvalidator, createResourceServer, createRole, createSecret, createThunderIDGuard, createUser, createUserByPath, createUserSharingPolicy, createUserType, createVariable, deleteAction, deleteAgent, deleteAgentType, deleteApplication, deleteApplicationSharingPolicy, deleteConnection, deleteDesignTheme, deleteFlow, deleteGateway, deleteGatewaySecret, deleteGatewayVariable, deleteGroup, deleteImportedConfiguration, deleteLayout, deleteNotificationTemplate, deleteOrganizationUnit, deleteOrganizationUnitByPath, deleteResource, deleteResourceServer, deleteRole, deleteSecret, deleteTranslation, deleteTranslations, deleteUser, deleteUserSharingPolicy, deleteUserType, deleteVariable, detectThemeMode, executeAdministrationFlow, executeEmbeddedSelfFlow_default as executeEmbeddedSelfFlow, exportConfiguration, extractErrorMessage, findAdministrationFlows, getAccountLifecycleActions, getAction, getActions, getActiveTheme, getAgent, getAgentGroups, getAgentName, getAgentRoles, getAgentType, getAgentTypes, getAgents, getApplication, getApplicationOverlayRules, getApplicationSharingPolicies, getApplicationSharingPolicy, getApplications, getAuthComponentHeadings_default as getAuthComponentHeadings, getConfigurationVersion, getConfigurationVersions, getConnection, getConnectionUsages, getConnections, getConnectionsMeta, getDesignTheme, getDesignThemeUsages, getDesignThemes, getFlow, getFlowUsages, getFlowVersion, getFlowVersions, getFlows, getGateway, getGatewayAppliedConfiguration, getGatewayAppliedVersion, getGatewayConfigurationDiff, getGatewaySecret, getGatewaySecrets, getGatewayVariable, getGatewayVariables, getGateways, getGroup, getGroupMembers, getGroups, getLanguages, getLayout, getLayoutUsages, getLayouts, getNotificationTemplate, getNotificationTemplates, getOrganizationUnit, getOrganizationUnitByPath, getOrganizationUnitChildren, getOrganizationUnitGroups, getOrganizationUnitRoles, getOrganizationUnitUsers, getOrganizationUnits, getResource, getResourceServer, getResourceServers, getResources, getRole, getRoleAssignments, getRoles, getSecret, getSecrets, getServerConfig, getServerConfigs, getTokenPermissions, getUser, getUserGroups, getUserOverlayRules, getUserSharingPolicies, getUserSharingPolicy, getUserType, getUserTypes, getUserUsages, getUsers, getUsersByPath, getUsersMeMeta_default as getUsersMeMeta, getVariable, getVariables, getVerifiedAttributes, handlePasskeyAuthentication, handlePasskeyRegistration, handleWebAuthnAuthentication, hasAuthParamsInUrl, hasPermission, http, importConfiguration, initiateOAuthRedirect, isVerifiableAttribute, navigate, normalizeFlowResponse, parseKeyValuePairs, previewCimdDocument, regenerateAgentSecret, regenerateClientSecret, regenerateFlowSecret, removeGroupMembers, removeRoleAssignments, resolveAdministrationFlowHandles, resolveAdministrationFlowId, resolveAdministrationFlows, resolveDesign, resolveTranslation, resolveTranslations, restoreFlowVersion, revertGatewayConfiguration, runAccountLifecycleAction, runAdministrationFlow, setTranslation, setTranslations, suspendAgent, suspendApplication, suspendUser, unlockAgent, unlockUser, unsuspendAgent, unsuspendApplication, unsuspendUser, updateAction, updateAgent, updateAgentType, updateApplication, updateApplicationSharingPolicy, updateConnection, updateDesignTheme, updateFlow, updateGateway, updateGatewaySecret, updateGatewayVariable, updateGroup, updateLayout, updateNotificationTemplate, updateOrganizationUnit, updateOrganizationUnitByPath, updateResource, updateResourceServer, updateRole, updateSecret, updateServerConfig, updateUser, updateUserCredentials, updateUserSharingPolicy, updateUserType, updateVariable, useFetchAuthFlows_default as useFetchAuthFlows, useFetchUserTypes_default as useFetchUserTypes, useFetchUsers_default as useFetchUsers, useFlow_default as useFlow, useFlowMeta_default as useFlowMeta, useGrantedPermissions_default as useGrantedPermissions, useI18n_default as useI18n, useInfiniteOptions_default as useInfiniteOptions, useManagementEndpoint_default as useManagementEndpoint, useManagementRequestConfig_default as useManagementRequestConfig, useOAuthCallback, useTheme_default as useTheme, useThunderID_default as useThunderID, useUser_default as useUser, validateFieldValue };