moverlay 0.0.3 → 0.0.5
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/index.d.ts +0 -2
- package/dist/index.js +0 -2
- package/package.json +1 -1
- package/dist/templates/login.d.ts +0 -20
- package/dist/templates/login.js +0 -18
- package/dist/templates/register.d.ts +0 -20
- package/dist/templates/register.js +0 -18
package/dist/index.d.ts
CHANGED
|
@@ -3,5 +3,3 @@ export { default as useModal } from "./state/context";
|
|
|
3
3
|
export { default as RootModal } from "./state/root";
|
|
4
4
|
export { default as Modal } from "./layouts/normal";
|
|
5
5
|
export { default as FormModal } from "./layouts/form";
|
|
6
|
-
export { default as RegisterModal } from "./templates/register";
|
|
7
|
-
export { default as LoginModal } from "./templates/login";
|
package/dist/index.js
CHANGED
|
@@ -3,5 +3,3 @@ export { default as useModal } from "./state/context";
|
|
|
3
3
|
export { default as RootModal } from "./state/root";
|
|
4
4
|
export { default as Modal } from "./layouts/normal";
|
|
5
5
|
export { default as FormModal } from "./layouts/form";
|
|
6
|
-
export { default as RegisterModal } from "./templates/register";
|
|
7
|
-
export { default as LoginModal } from "./templates/login";
|
package/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Login Modal component
|
|
3
|
-
*
|
|
4
|
-
* Displays a modal for user login with handling for
|
|
5
|
-
* input validation and submission logic for existing users.
|
|
6
|
-
* Uses `nupabase` which is a Supabase wrapper.
|
|
7
|
-
*
|
|
8
|
-
* Form Fields:
|
|
9
|
-
* `email` - User's email address
|
|
10
|
-
* `password` - User's desired password
|
|
11
|
-
**/
|
|
12
|
-
export declare function LoginModal(): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export default LoginModal;
|
|
14
|
-
/**
|
|
15
|
-
* Problems:
|
|
16
|
-
*
|
|
17
|
-
* - Perfect `FormModal`.
|
|
18
|
-
* - Perfect `login`.
|
|
19
|
-
* - Perfect `LoginSchema`.
|
|
20
|
-
**/
|
package/dist/templates/login.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { FormModal } from "../layouts/form";
|
|
3
|
-
import { login, LoginSchema } from "nupabase";
|
|
4
|
-
/**
|
|
5
|
-
* Login Modal component
|
|
6
|
-
*
|
|
7
|
-
* Displays a modal for user login with handling for
|
|
8
|
-
* input validation and submission logic for existing users.
|
|
9
|
-
* Uses `nupabase` which is a Supabase wrapper.
|
|
10
|
-
*
|
|
11
|
-
* Form Fields:
|
|
12
|
-
* `email` - User's email address
|
|
13
|
-
* `password` - User's desired password
|
|
14
|
-
**/
|
|
15
|
-
export function LoginModal() {
|
|
16
|
-
return (_jsx(FormModal, { formId: "login", title: "Login to your Account", subtitle: "We'll send a verification to your email.", validator: LoginSchema.safeParse, submit: login }));
|
|
17
|
-
}
|
|
18
|
-
export default LoginModal;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Register Modal component
|
|
3
|
-
*
|
|
4
|
-
* Displays a modal for user registration with handling
|
|
5
|
-
* for input validation and submission logic for new users.
|
|
6
|
-
* Uses `nupabase` which is a Supabase wrapper.
|
|
7
|
-
*
|
|
8
|
-
* Form Fields:
|
|
9
|
-
* `email` - User's email address
|
|
10
|
-
* `password` - User's desired password
|
|
11
|
-
**/
|
|
12
|
-
export declare function RegisterModal(): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export default RegisterModal;
|
|
14
|
-
/**
|
|
15
|
-
* Problems:
|
|
16
|
-
*
|
|
17
|
-
* - Perfect `FormModal`.
|
|
18
|
-
* - Perfect `register`.
|
|
19
|
-
* - Perfect `RegisterSchema`.
|
|
20
|
-
**/
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { FormModal } from "../layouts/form";
|
|
3
|
-
import { register, RegisterSchema } from "nupabase";
|
|
4
|
-
/**
|
|
5
|
-
* Register Modal component
|
|
6
|
-
*
|
|
7
|
-
* Displays a modal for user registration with handling
|
|
8
|
-
* for input validation and submission logic for new users.
|
|
9
|
-
* Uses `nupabase` which is a Supabase wrapper.
|
|
10
|
-
*
|
|
11
|
-
* Form Fields:
|
|
12
|
-
* `email` - User's email address
|
|
13
|
-
* `password` - User's desired password
|
|
14
|
-
**/
|
|
15
|
-
export function RegisterModal() {
|
|
16
|
-
return (_jsx(FormModal, { formId: "register", title: "Create an Account", subtitle: "We'll send a verification to your email.", validator: RegisterSchema.safeParse, submit: register }));
|
|
17
|
-
}
|
|
18
|
-
export default RegisterModal;
|