@vitnode/core 1.2.0-canary.20 → 1.2.0-canary.22
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/src/api/models/user/sign-up.d.ts.map +1 -1
- package/dist/src/api/models/user/sign-up.js +1 -2
- package/dist/src/api/models/user.d.ts.map +1 -1
- package/dist/src/api/modules/users/routes/sign-up.route.d.ts +10 -2
- package/dist/src/api/modules/users/routes/sign-up.route.d.ts.map +1 -1
- package/dist/src/api/modules/users/routes/sign-up.route.js +14 -4
- package/dist/src/api/modules/users/users.module.d.ts +10 -2
- package/dist/src/api/modules/users/users.module.d.ts.map +1 -1
- package/dist/src/app/login/page.d.ts +4 -2
- package/dist/src/app/login/page.d.ts.map +1 -1
- package/dist/src/app/login/page.js +2 -1
- package/dist/src/app/register/page.d.ts +4 -2
- package/dist/src/app/register/page.d.ts.map +1 -1
- package/dist/src/app/register/page.js +2 -1
- package/dist/src/components/table/content.js +1 -1
- package/dist/src/components/table/order-table-head.js +1 -1
- package/dist/src/components/ui/button.d.ts +1 -1
- package/dist/src/components/ui/button.d.ts.map +1 -1
- package/dist/src/components/ui/button.js +1 -0
- package/dist/src/views/admin/layouts/sidebar/nav/item.d.ts.map +1 -1
- package/dist/src/views/admin/layouts/sidebar/nav/item.js +14 -1
- package/dist/src/views/auth/sign-in/form/form.js +1 -1
- package/dist/src/views/auth/sign-in/form/{hooks/mutation-api.d.ts → mutation-api.d.ts} +1 -1
- package/dist/src/views/auth/sign-in/form/mutation-api.d.ts.map +1 -0
- package/dist/src/views/auth/sign-in/form/{hooks/mutation-api.js → mutation-api.js} +3 -3
- package/dist/src/views/auth/sign-in/form/use-form.d.ts.map +1 -0
- package/dist/src/views/auth/sign-up/email-confirmation-view.d.ts +4 -0
- package/dist/src/views/auth/sign-up/email-confirmation-view.d.ts.map +1 -0
- package/dist/src/views/auth/sign-up/email-confirmation-view.js +55 -0
- package/dist/src/views/auth/sign-up/form/form.js +1 -1
- package/dist/src/views/auth/sign-up/form/mutation-api.d.ts +14 -0
- package/dist/src/views/auth/sign-up/form/mutation-api.d.ts.map +1 -0
- package/dist/src/views/auth/sign-up/form/mutation-api.js +29 -0
- package/dist/src/views/auth/sign-up/form/use-form.d.ts.map +1 -0
- package/dist/src/views/auth/sign-up/form/{hooks/use-form.js → use-form.js} +7 -3
- package/dist/src/views/auth/sign-up/sign-up-view.d.ts.map +1 -1
- package/dist/src/views/auth/sign-up/sign-up-view.js +38 -35
- package/dist/src/views/auth/sign-up/wrapper.d.ts +8 -0
- package/dist/src/views/auth/sign-up/wrapper.d.ts.map +1 -0
- package/dist/src/views/auth/sign-up/wrapper.js +19 -0
- package/dist/src/views/auth/sso/buttons/sso-buttons.d.ts.map +1 -1
- package/dist/src/views/auth/sso/buttons/sso-buttons.js +5 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/app/login/page.tsx +3 -2
- package/src/app/register/page.tsx +3 -2
- package/src/locales/en.json +5 -0
- package/dist/src/views/auth/sign-in/form/hooks/mutation-api.d.ts.map +0 -1
- package/dist/src/views/auth/sign-in/form/hooks/use-form.d.ts.map +0 -1
- package/dist/src/views/auth/sign-up/form/hooks/mutation-api.d.ts +0 -6
- package/dist/src/views/auth/sign-up/form/hooks/mutation-api.d.ts.map +0 -1
- package/dist/src/views/auth/sign-up/form/hooks/mutation-api.js +0 -18
- package/dist/src/views/auth/sign-up/form/hooks/use-form.d.ts.map +0 -1
- /package/dist/src/views/auth/sign-in/form/{hooks/use-form.d.ts → use-form.d.ts} +0 -0
- /package/dist/src/views/auth/sign-in/form/{hooks/use-form.js → use-form.js} +0 -0
- /package/dist/src/views/auth/sign-up/form/{hooks/use-form.d.ts → use-form.d.ts} +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { EmailConfirmationView } from "./email-confirmation-view.js";
|
|
5
|
+
const WrapperSignUpContext = /*#__PURE__*/ React.createContext({
|
|
6
|
+
setShowSendingEmail: ()=>{}
|
|
7
|
+
});
|
|
8
|
+
export const useWrapperSignUp = ()=>React.useContext(WrapperSignUpContext);
|
|
9
|
+
export const WrapperSignUp = ({ children })=>{
|
|
10
|
+
const [sendingEmail, setShowSendingEmail] = React.useState('');
|
|
11
|
+
return /*#__PURE__*/ _jsx(WrapperSignUpContext.Provider, {
|
|
12
|
+
value: {
|
|
13
|
+
setShowSendingEmail
|
|
14
|
+
},
|
|
15
|
+
children: sendingEmail ? /*#__PURE__*/ _jsx(EmailConfirmationView, {
|
|
16
|
+
email: sendingEmail
|
|
17
|
+
}) : children
|
|
18
|
+
});
|
|
19
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sso-buttons.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/sso/buttons/sso-buttons.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,kBAAkB,+CAO9B,CAAC;AAEF,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"sso-buttons.d.ts","sourceRoot":"","sources":["../../../../../../src/views/auth/sso/buttons/sso-buttons.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,kBAAkB,+CAO9B,CAAC;AAEF,eAAO,MAAM,UAAU,wDAiCtB,CAAC"}
|
|
@@ -17,8 +17,10 @@ export const SSOButtonsSkeleton = ()=>{
|
|
|
17
17
|
});
|
|
18
18
|
};
|
|
19
19
|
export const SSOButtons = async ()=>{
|
|
20
|
-
const t = await
|
|
21
|
-
|
|
20
|
+
const [t, { sso }] = await Promise.all([
|
|
21
|
+
getTranslations('core.auth.sso'),
|
|
22
|
+
getMiddlewareApi()
|
|
23
|
+
]);
|
|
22
24
|
return /*#__PURE__*/ _jsxs(_Fragment, {
|
|
23
25
|
children: [
|
|
24
26
|
/*#__PURE__*/ _jsxs("div", {
|
|
@@ -30,7 +32,7 @@ export const SSOButtons = async ()=>{
|
|
|
30
32
|
className: "w-full border-t"
|
|
31
33
|
})
|
|
32
34
|
}),
|
|
33
|
-
/*#__PURE__*/ _jsx("div", {
|
|
35
|
+
sso.length > 0 && /*#__PURE__*/ _jsx("div", {
|
|
34
36
|
className: "relative flex justify-center text-xs",
|
|
35
37
|
children: /*#__PURE__*/ _jsx("span", {
|
|
36
38
|
className: "bg-card text-muted-foreground px-4",
|