@isoftdata/svelte-user-configuration 2.3.0 → 2.3.2

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.
@@ -346,7 +346,7 @@
346
346
  {@render children?.()}
347
347
  </div>
348
348
  <div class="card-footer">
349
- {#if !myAccountMode}
349
+ {#if !myAccountMode && sendPasswordRecoveryToken}
350
350
  <Button
351
351
  size="sm"
352
352
  outline
@@ -55,7 +55,7 @@
55
55
  accountInfoChanged?: AccountInfoChangedFn
56
56
  sendPasswordRecoveryToken?: SendPasswordRecoveryTokenFn
57
57
  generateNewActivationPIN?: GenerateNewActivationPINFn
58
- userSites: UserSites
58
+ userSites?: UserSites
59
59
  canEditSiteAccess?: CanEditSiteAccess
60
60
  showSiteAccess?: boolean
61
61
  siteAccessChange?: SiteAccessChangeFn
@@ -21,7 +21,7 @@ interface Props {
21
21
  accountInfoChanged?: AccountInfoChangedFn;
22
22
  sendPasswordRecoveryToken?: SendPasswordRecoveryTokenFn;
23
23
  generateNewActivationPIN?: GenerateNewActivationPINFn;
24
- userSites: UserSites;
24
+ userSites?: UserSites;
25
25
  canEditSiteAccess?: CanEditSiteAccess;
26
26
  showSiteAccess?: boolean;
27
27
  siteAccessChange?: SiteAccessChangeFn;
package/dist/util.d.ts CHANGED
@@ -52,7 +52,7 @@ export type PermissionValueMap = ComponentProps<typeof PermissionList>['permissi
52
52
  export type GroupPermissionValueMap = ComponentProps<typeof PermissionList>['groupPermissionValueMap'];
53
53
  export type PermissionValueChangeFn = ComponentProps<typeof PermissionList>['permissionValueChange'];
54
54
  export type PermissionListCardHeaderTitle = ComponentProps<typeof PermissionList>['cardHeaderTitle'];
55
- /** Returns a Map where the key is the `permissioniId` and the value is the highest permission level for the given group membership
55
+ /** Returns a Map where the key is the `permissionId` and the value is the highest permission level for the given group membership
56
56
  *
57
57
  * You'll probably want to call this in your code when the group membership changes, and pass the result to the `groupPermissionValueMap` prop of the `PermissionList` component.
58
58
  */
package/dist/util.js CHANGED
@@ -9,7 +9,7 @@ export const valueRank = {
9
9
  SITE: 1,
10
10
  GLOBAL: 2,
11
11
  };
12
- /** Returns a Map where the key is the `permissioniId` and the value is the highest permission level for the given group membership
12
+ /** Returns a Map where the key is the `permissionId` and the value is the highest permission level for the given group membership
13
13
  *
14
14
  * You'll probably want to call this in your code when the group membership changes, and pass the result to the `groupPermissionValueMap` prop of the `PermissionList` component.
15
15
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isoftdata/svelte-user-configuration",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",