@isoftdata/svelte-user-configuration
Advanced tools
@@ -24,2 +24,3 @@ <script lang="ts"> | ||
| hasPermissionToChangePassword?: boolean | ||
| hasPermissionToChangeUsername?: boolean | ||
| generateNewActivationPIN?: (userName: string, hasWorkEmail: boolean) => Promise<void> | ||
@@ -50,2 +51,3 @@ confirmPasswordSet?: ConfirmPasswordSetFn | ||
| hasPermissionToChangePassword = false, | ||
| hasPermissionToChangeUsername = true, | ||
| generateNewActivationPIN = () => Promise.resolve(), | ||
@@ -264,3 +266,3 @@ confirmPasswordSet = undefined, | ||
| bind:input={usernameInput} | ||
| readonly={myAccountMode || undefined} | ||
| readonly={myAccountMode || !hasPermissionToChangeUsername || undefined} | ||
| tabindex={myAccountMode ? -1 : undefined} | ||
@@ -267,0 +269,0 @@ onchange={() => accountInfoChanged?.(userAccount)} |
@@ -10,2 +10,3 @@ import type { HTMLDivAttributes } from './'; | ||
| hasPermissionToChangePassword?: boolean; | ||
| hasPermissionToChangeUsername?: boolean; | ||
| generateNewActivationPIN?: (userName: string, hasWorkEmail: boolean) => Promise<void>; | ||
@@ -12,0 +13,0 @@ confirmPasswordSet?: ConfirmPasswordSetFn; |
@@ -50,2 +50,3 @@ <script lang="ts"> | ||
| hasPermissionToChangePassword?: HasPermissionToChangePassword | ||
| hasPermissionToChangeUsername?: boolean | ||
| passwordValidationRules?: PasswordValidationRules | undefined | ||
@@ -92,2 +93,3 @@ error?: ErrorFn | ||
| hasPermissionToChangePassword = false, | ||
| hasPermissionToChangeUsername = true, | ||
| passwordValidationRules = undefined, | ||
@@ -137,2 +139,3 @@ error = undefined, | ||
| {hasPermissionToChangePassword} | ||
| {hasPermissionToChangeUsername} | ||
| icon={userAccountInfoIcon} | ||
@@ -139,0 +142,0 @@ bind:userAccount |
@@ -16,2 +16,3 @@ import { type Snippet } from 'svelte'; | ||
| hasPermissionToChangePassword?: HasPermissionToChangePassword; | ||
| hasPermissionToChangeUsername?: boolean; | ||
| passwordValidationRules?: PasswordValidationRules | undefined; | ||
@@ -18,0 +19,0 @@ error?: ErrorFn; |
+2
-2
| { | ||
| "name": "@isoftdata/svelte-user-configuration", | ||
| "version": "2.3.3", | ||
| "version": "2.4.0", | ||
| "exports": { | ||
@@ -68,3 +68,3 @@ ".": { | ||
| "engines": { | ||
| "pnpm": "10.x" | ||
| "pnpm": ">=10.x" | ||
| }, | ||
@@ -71,0 +71,0 @@ "scripts": { |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
68096
2.48%285
0.71%1
Infinity%