@draftlab/auth 0.2.0 → 0.2.1
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/dist/ui/code.js +10 -6
- package/dist/ui/passkey.d.ts +1 -6
- package/dist/ui/passkey.js +3 -24
- package/dist/ui/password.js +1 -1
- package/package.json +1 -1
package/dist/ui/code.js
CHANGED
|
@@ -139,13 +139,17 @@ const CodeUI = (options) => {
|
|
|
139
139
|
type: "hidden",
|
|
140
140
|
value: contact
|
|
141
141
|
}),
|
|
142
|
-
/* @__PURE__ */
|
|
142
|
+
/* @__PURE__ */ jsx("div", {
|
|
143
143
|
"data-component": "form-footer",
|
|
144
|
-
children:
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
144
|
+
children: /* @__PURE__ */ jsxs("span", { children: [
|
|
145
|
+
copy.code_didnt_get,
|
|
146
|
+
" ",
|
|
147
|
+
/* @__PURE__ */ jsx("button", {
|
|
148
|
+
type: "submit",
|
|
149
|
+
"data-component": "link",
|
|
150
|
+
children: copy.code_resend
|
|
151
|
+
})
|
|
152
|
+
] })
|
|
149
153
|
})
|
|
150
154
|
]
|
|
151
155
|
})] });
|
package/dist/ui/passkey.d.ts
CHANGED
|
@@ -6,17 +6,12 @@ import { PasskeyProviderConfig } from "../provider/passkey.js";
|
|
|
6
6
|
* Strongly typed copy text configuration for passkey UI
|
|
7
7
|
*/
|
|
8
8
|
interface PasskeyUICopy {
|
|
9
|
-
readonly authorize_title: string;
|
|
10
|
-
readonly authorize_description: string;
|
|
11
|
-
readonly register_title: string;
|
|
12
|
-
readonly register_description: string;
|
|
13
9
|
readonly register: string;
|
|
14
|
-
readonly
|
|
10
|
+
readonly button_continue: string;
|
|
15
11
|
readonly register_other_device: string;
|
|
16
12
|
readonly register_prompt: string;
|
|
17
13
|
readonly login_prompt: string;
|
|
18
14
|
readonly login: string;
|
|
19
|
-
readonly login_with_passkey: string;
|
|
20
15
|
readonly change_prompt: string;
|
|
21
16
|
readonly code_resend: string;
|
|
22
17
|
readonly code_return: string;
|
package/dist/ui/passkey.js
CHANGED
|
@@ -4,17 +4,12 @@ import { jsx, jsxs } from "preact/jsx-runtime";
|
|
|
4
4
|
|
|
5
5
|
//#region src/ui/passkey.tsx
|
|
6
6
|
const DEFAULT_COPY = {
|
|
7
|
-
authorize_title: "Sign in with Passkey",
|
|
8
|
-
authorize_description: "Passkeys are a simple and more secure alternative to passwords. With passkeys, you can log in with your PIN, biometric sensor, or hardware security key.",
|
|
9
|
-
register_title: "Create a Passkey",
|
|
10
|
-
register_description: "Create a passkey to enable secure, passwordless authentication for your account.",
|
|
11
7
|
register: "Register",
|
|
12
|
-
register_with_passkey: "Register With Passkey",
|
|
13
8
|
register_other_device: "Use another device",
|
|
14
9
|
register_prompt: "Don't have an account?",
|
|
15
10
|
login_prompt: "Already have an account?",
|
|
16
11
|
login: "Login",
|
|
17
|
-
|
|
12
|
+
button_continue: "Continue",
|
|
18
13
|
change_prompt: "Forgot password?",
|
|
19
14
|
code_resend: "Resend code",
|
|
20
15
|
code_return: "Back to",
|
|
@@ -103,14 +98,6 @@ const PasskeyUI = (options) => {
|
|
|
103
98
|
});
|
|
104
99
|
});
|
|
105
100
|
` } }),
|
|
106
|
-
/* @__PURE__ */ jsx("h1", {
|
|
107
|
-
"data-component": "title",
|
|
108
|
-
children: copy.authorize_title
|
|
109
|
-
}),
|
|
110
|
-
/* @__PURE__ */ jsx("p", {
|
|
111
|
-
"data-component": "description",
|
|
112
|
-
children: copy.authorize_description
|
|
113
|
-
}),
|
|
114
101
|
/* @__PURE__ */ jsxs("form", {
|
|
115
102
|
id: "authorizeForm",
|
|
116
103
|
"data-component": "form",
|
|
@@ -131,7 +118,7 @@ const PasskeyUI = (options) => {
|
|
|
131
118
|
type: "submit",
|
|
132
119
|
id: "btnLogin",
|
|
133
120
|
"data-component": "button",
|
|
134
|
-
children: copy.
|
|
121
|
+
children: copy.button_continue
|
|
135
122
|
}),
|
|
136
123
|
/* @__PURE__ */ jsx("div", {
|
|
137
124
|
"data-component": "form-footer",
|
|
@@ -247,14 +234,6 @@ const PasskeyUI = (options) => {
|
|
|
247
234
|
});
|
|
248
235
|
});
|
|
249
236
|
` } }),
|
|
250
|
-
/* @__PURE__ */ jsx("h1", {
|
|
251
|
-
"data-component": "title",
|
|
252
|
-
children: copy.register_title
|
|
253
|
-
}),
|
|
254
|
-
/* @__PURE__ */ jsx("p", {
|
|
255
|
-
"data-component": "description",
|
|
256
|
-
children: copy.register_description
|
|
257
|
-
}),
|
|
258
237
|
/* @__PURE__ */ jsxs("form", {
|
|
259
238
|
id: "registerForm",
|
|
260
239
|
"data-component": "form",
|
|
@@ -275,7 +254,7 @@ const PasskeyUI = (options) => {
|
|
|
275
254
|
"data-component": "button",
|
|
276
255
|
type: "submit",
|
|
277
256
|
id: "btnRegister",
|
|
278
|
-
children: copy.
|
|
257
|
+
children: copy.button_continue
|
|
279
258
|
}),
|
|
280
259
|
/* @__PURE__ */ jsx("button", {
|
|
281
260
|
"data-component": "button",
|
package/dist/ui/password.js
CHANGED