@dbx-tools/ui-email 0.6.55 → 0.6.56
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/package.json +6 -6
- package/src/react/auth-gate.tsx +5 -2
package/package.json
CHANGED
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"typescript": "^5.9.3"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@dbx-tools/shared-core": "0.6.
|
|
28
|
-
"@dbx-tools/shared-email": "0.6.
|
|
29
|
-
"@dbx-tools/shared-email-template": "0.6.
|
|
30
|
-
"@dbx-tools/ui-appkit": "0.6.
|
|
31
|
-
"@dbx-tools/ui-branding": "0.6.
|
|
27
|
+
"@dbx-tools/shared-core": "0.6.56",
|
|
28
|
+
"@dbx-tools/shared-email": "0.6.56",
|
|
29
|
+
"@dbx-tools/shared-email-template": "0.6.56",
|
|
30
|
+
"@dbx-tools/ui-appkit": "0.6.56",
|
|
31
|
+
"@dbx-tools/ui-branding": "0.6.56",
|
|
32
32
|
"lucide-react": "^0.554.0",
|
|
33
33
|
"react": "^19.2.4",
|
|
34
34
|
"react-dom": "^19.2.4"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"version": "0.6.
|
|
40
|
+
"version": "0.6.56",
|
|
41
41
|
"type": "module",
|
|
42
42
|
"exports": {
|
|
43
43
|
"./react": "./src/react/index.ts",
|
package/src/react/auth-gate.tsx
CHANGED
|
@@ -158,9 +158,10 @@ export function AuthGate({ children, title, description }: AuthGateProps): React
|
|
|
158
158
|
</p>
|
|
159
159
|
|
|
160
160
|
{phase === "email" ? (
|
|
161
|
-
<form onSubmit={requestCode} className="space-y-3">
|
|
161
|
+
<form key="email" onSubmit={requestCode} className="space-y-3">
|
|
162
162
|
<Input
|
|
163
163
|
type="email"
|
|
164
|
+
name="email"
|
|
164
165
|
autoComplete="email"
|
|
165
166
|
aria-label="Email address"
|
|
166
167
|
placeholder="you@company.com"
|
|
@@ -173,7 +174,7 @@ export function AuthGate({ children, title, description }: AuthGateProps): React
|
|
|
173
174
|
</Button>
|
|
174
175
|
</form>
|
|
175
176
|
) : (
|
|
176
|
-
<form onSubmit={verifyCode} className="space-y-3">
|
|
177
|
+
<form key="code" onSubmit={verifyCode} className="space-y-3">
|
|
177
178
|
{/*
|
|
178
179
|
`autoComplete="one-time-code"` is what lets iOS/Android/Safari offer
|
|
179
180
|
the code straight from the notification, and it only pays off when
|
|
@@ -182,6 +183,8 @@ export function AuthGate({ children, title, description }: AuthGateProps): React
|
|
|
182
183
|
number pad without rejecting a paste.
|
|
183
184
|
*/}
|
|
184
185
|
<Input
|
|
186
|
+
type="text"
|
|
187
|
+
name="code"
|
|
185
188
|
inputMode="numeric"
|
|
186
189
|
autoComplete="one-time-code"
|
|
187
190
|
aria-label="Verification code"
|