@isoftdata/svelte-user-configuration
Advanced tools
@@ -29,3 +29,3 @@ <script lang="ts"> | ||
| error?: ((info: { heading: string; message: string }) => void | Promise<void>) | undefined | ||
| accountInfoChanged?: (() => void | Promise<void>) | undefined | ||
| accountInfoChanged?: ((userAccount: UserAccount) => void | Promise<void>) | undefined | ||
| sendPasswordRecoveryToken?: ComponentProps<typeof PasswordRecoveryModal>['sendPasswordRecoveryToken'] | ||
@@ -106,3 +106,3 @@ doSendPasswordRecoveryToken?: boolean | ||
| isLoading = false | ||
| await accountInfoChanged?.() | ||
| await accountInfoChanged?.(userAccount) | ||
| } catch (err) { | ||
@@ -143,3 +143,3 @@ console.error(err) | ||
| userAccount.lockNotes = null | ||
| await accountInfoChanged?.() | ||
| await accountInfoChanged?.(userAccount) | ||
| } | ||
@@ -402,3 +402,3 @@ } | ||
| await deactivateUser?.({ id: userAccount.id, lockNotes }) | ||
| await accountInfoChanged?.() | ||
| await accountInfoChanged?.(userAccount) | ||
| } catch (err) { | ||
@@ -405,0 +405,0 @@ console.error(err) |
@@ -21,3 +21,3 @@ import type { HTMLDivAttributes } from './'; | ||
| }) => void | Promise<void>) | undefined; | ||
| accountInfoChanged?: (() => void | Promise<void>) | undefined; | ||
| accountInfoChanged?: ((userAccount: UserAccount) => void | Promise<void>) | undefined; | ||
| sendPasswordRecoveryToken?: ComponentProps<typeof PasswordRecoveryModal>['sendPasswordRecoveryToken']; | ||
@@ -24,0 +24,0 @@ doSendPasswordRecoveryToken?: boolean; |
@@ -70,2 +70,3 @@ <script lang="ts"> | ||
| userAccountInfo?: Snippet | ||
| userAccountFormFields?: Snippet | ||
| siteAccess?: Snippet | ||
@@ -109,2 +110,3 @@ userGroupMembership?: Snippet | ||
| userAccountInfo, | ||
| userAccountFormFields, | ||
| siteAccess, | ||
@@ -137,2 +139,3 @@ userGroupMembership, | ||
| {sendPasswordRecoveryToken} | ||
| formFields={userAccountFormFields} | ||
| > | ||
@@ -139,0 +142,0 @@ {@render userAccountInfo?.()} |
@@ -36,2 +36,3 @@ import { type Snippet } from 'svelte'; | ||
| userAccountInfo?: Snippet; | ||
| userAccountFormFields?: Snippet; | ||
| siteAccess?: Snippet; | ||
@@ -38,0 +39,0 @@ userGroupMembership?: Snippet; |
+1
-1
| { | ||
| "name": "@isoftdata/svelte-user-configuration", | ||
| "version": "2.1.0", | ||
| "version": "2.2.0", | ||
| "exports": { | ||
@@ -5,0 +5,0 @@ ".": { |
64883
0.34%280
0.36%