@oicl/openbridge-webcomponents-svelte 2.0.0-next.139 → 2.0.0-next.140

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.
@@ -20,16 +20,28 @@
20
20
  */
21
21
  hasRecentlySignedIn?: boolean;
22
22
  /**
23
- * Current username value for sign-in layouts.
23
+ * Controls the visibility of the username field.
24
24
  *
25
25
  * Available when `type==signIn`.
26
26
  */
27
+ showUsername?: boolean;
28
+ /**
29
+ * Current username value for sign-in layouts.
30
+ *
31
+ * Available when `showUsername==true && type==signIn`.
32
+ */
27
33
  username?: string;
28
34
  /**
29
- * Current password value for sign-in layouts.
35
+ * Controls the visibility of the password field.
30
36
  *
31
37
  * Available when `type in [signIn, userSignIn]`.
32
38
  */
39
+ showPassword?: boolean;
40
+ /**
41
+ * Current password value for sign-in layouts.
42
+ *
43
+ * Available when `showPassword==true && type in [signIn, userSignIn]`.
44
+ */
33
45
  password?: string;
34
46
  /**
35
47
  * Error message for the username field.
@@ -71,7 +83,7 @@
71
83
  primaryActionId?: string | undefined
72
84
  }
73
85
  export interface Events {
74
- onSignInClick?: (event: CustomEvent<{username: string, password: string}>) => void;
86
+ onSignInClick?: (event: CustomEvent<{username?: string, password?: string}>) => void;
75
87
  onSignOutClick?: (event: CustomEvent<void>) => void;
76
88
  onSignedInActionClick?: (event: CustomEvent<{id: string, label: string}>) => void;
77
89
  onRecentUserClick?: (event: CustomEvent<{initials: string, label: string}>) => void
@@ -15,16 +15,28 @@ export interface Props {
15
15
  */
16
16
  hasRecentlySignedIn?: boolean;
17
17
  /**
18
- * Current username value for sign-in layouts.
18
+ * Controls the visibility of the username field.
19
19
  *
20
20
  * Available when `type==signIn`.
21
21
  */
22
+ showUsername?: boolean;
23
+ /**
24
+ * Current username value for sign-in layouts.
25
+ *
26
+ * Available when `showUsername==true && type==signIn`.
27
+ */
22
28
  username?: string;
23
29
  /**
24
- * Current password value for sign-in layouts.
30
+ * Controls the visibility of the password field.
25
31
  *
26
32
  * Available when `type in [signIn, userSignIn]`.
27
33
  */
34
+ showPassword?: boolean;
35
+ /**
36
+ * Current password value for sign-in layouts.
37
+ *
38
+ * Available when `showPassword==true && type in [signIn, userSignIn]`.
39
+ */
28
40
  password?: string;
29
41
  /**
30
42
  * Error message for the username field.
@@ -67,8 +79,8 @@ export interface Props {
67
79
  }
68
80
  export interface Events {
69
81
  onSignInClick?: (event: CustomEvent<{
70
- username: string;
71
- password: string;
82
+ username?: string;
83
+ password?: string;
72
84
  }>) => void;
73
85
  onSignOutClick?: (event: CustomEvent<void>) => void;
74
86
  onSignedInActionClick?: (event: CustomEvent<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oicl/openbridge-webcomponents-svelte",
3
- "version": "2.0.0-next.139",
3
+ "version": "2.0.0-next.140",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "dependencies": {
34
- "@oicl/openbridge-webcomponents": "^2.0.0-next.139"
34
+ "@oicl/openbridge-webcomponents": "^2.0.0-next.140"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "svelte": "^5.0.0"