@sqrzro/auth 2.0.0-bz.6 → 2.0.0-bz.7
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/.turbo/turbo-build.log
CHANGED
package/.turbo/turbo-dev.log
CHANGED
|
@@ -1,28 +1,36 @@
|
|
|
1
1
|
|
|
2
|
-
> @sqrzro/auth@2.0.0-bz.
|
|
2
|
+
> @sqrzro/auth@2.0.0-bz.6 dev /Users/richard/Sites/@sqrzro/sqrzro/packages/auth
|
|
3
3
|
> tsc -p tsconfig.json --watch
|
|
4
4
|
|
|
5
|
-
c[[
|
|
5
|
+
c[[90m1:59:10 PM[0m] Starting compilation in watch mode...
|
|
6
6
|
|
|
7
|
-
[[
|
|
7
|
+
[[90m1:59:12 PM[0m] Found 0 errors. Watching for file changes.
|
|
8
8
|
|
|
9
|
-
c[[
|
|
9
|
+
c[[90m1:59:13 PM[0m] File change detected. Starting incremental compilation...
|
|
10
10
|
|
|
11
|
-
[[
|
|
11
|
+
[[90m1:59:13 PM[0m] Found 0 errors. Watching for file changes.
|
|
12
12
|
|
|
13
|
-
c[[
|
|
13
|
+
c[[90m1:59:15 PM[0m] File change detected. Starting incremental compilation...
|
|
14
14
|
|
|
15
|
-
[[
|
|
15
|
+
[[90m1:59:15 PM[0m] Found 0 errors. Watching for file changes.
|
|
16
16
|
|
|
17
|
-
c[[
|
|
17
|
+
c[[90m1:59:19 PM[0m] File change detected. Starting incremental compilation...
|
|
18
18
|
|
|
19
|
-
[[
|
|
19
|
+
[[90m1:59:19 PM[0m] Found 0 errors. Watching for file changes.
|
|
20
20
|
|
|
21
|
-
c[[90m2:
|
|
21
|
+
c[[90m2:56:35 PM[0m] File change detected. Starting incremental compilation...
|
|
22
22
|
|
|
23
|
-
[[90m2:
|
|
23
|
+
[[90m2:56:35 PM[0m] Found 0 errors. Watching for file changes.
|
|
24
24
|
|
|
25
|
-
c[[90m2:
|
|
25
|
+
c[[90m2:56:41 PM[0m] File change detected. Starting incremental compilation...
|
|
26
26
|
|
|
27
|
-
[[90m2:
|
|
27
|
+
[[90m2:56:41 PM[0m] Found 0 errors. Watching for file changes.
|
|
28
|
+
|
|
29
|
+
c[[90m2:57:45 PM[0m] File change detected. Starting incremental compilation...
|
|
30
|
+
|
|
31
|
+
[[90m2:57:46 PM[0m] Found 0 errors. Watching for file changes.
|
|
32
|
+
|
|
33
|
+
c[[90m3:01:10 PM[0m] File change detected. Starting incremental compilation...
|
|
34
|
+
|
|
35
|
+
[[90m3:01:10 PM[0m] Found 0 errors. Watching for file changes.
|
|
28
36
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { AuthClassNames } from '../Auth';
|
|
3
|
+
interface TokenPasswordResetFormProps {
|
|
4
|
+
classNames?: Partial<AuthClassNames>;
|
|
5
|
+
token: string;
|
|
6
|
+
}
|
|
7
|
+
declare function TokenPasswordResetForm({ classNames, token, }: Readonly<TokenPasswordResetFormProps>): React.ReactElement;
|
|
8
|
+
export default TokenPasswordResetForm;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Form, FormSubmit, PasswordFormField } from '@sqrzro/components';
|
|
4
|
+
import { useForm } from '@sqrzro/hooks';
|
|
5
|
+
import { useRouter } from 'next/navigation';
|
|
6
|
+
import { submitTokenPasswordResetForm } from '../../server';
|
|
7
|
+
function TokenPasswordResetForm({ classNames, token, }) {
|
|
8
|
+
const router = useRouter();
|
|
9
|
+
const { fieldProps, formProps } = useForm({
|
|
10
|
+
defaults: { token },
|
|
11
|
+
hiddenFields: ['token'],
|
|
12
|
+
onSubmit: submitTokenPasswordResetForm,
|
|
13
|
+
onSuccess: (response) => {
|
|
14
|
+
router.push(response || '/');
|
|
15
|
+
},
|
|
16
|
+
toasts: { success: false },
|
|
17
|
+
});
|
|
18
|
+
return (_jsxs(Form, { ...formProps, children: [_jsx("h1", { className: classNames?.title, children: "Reset Your Password" }), _jsx("div", { className: "relative", children: _jsx(PasswordFormField, { ...fieldProps('password', 'New Password') }) }), _jsx("div", { className: "mt-8", children: _jsx(FormSubmit, { children: "Reset Password" }) })] }));
|
|
19
|
+
}
|
|
20
|
+
export default TokenPasswordResetForm;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sqrzro/auth",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.0-bz.
|
|
4
|
+
"version": "2.0.0-bz.7",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
"@sqrzro/hooks": "bz",
|
|
10
10
|
"@sqrzro/interfaces": "bz",
|
|
11
11
|
"@sqrzro/server": "bz",
|
|
12
|
-
"next": "
|
|
13
|
-
"react": "
|
|
12
|
+
"next": "15.0.2",
|
|
13
|
+
"react": "rc"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@types/react": "
|
|
16
|
+
"@types/react": "npm:types-react@rc",
|
|
17
17
|
"typescript": "^5.4.4"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|