@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.
Files changed (56) hide show
  1. package/dist/src/api/models/user/sign-up.d.ts.map +1 -1
  2. package/dist/src/api/models/user/sign-up.js +1 -2
  3. package/dist/src/api/models/user.d.ts.map +1 -1
  4. package/dist/src/api/modules/users/routes/sign-up.route.d.ts +10 -2
  5. package/dist/src/api/modules/users/routes/sign-up.route.d.ts.map +1 -1
  6. package/dist/src/api/modules/users/routes/sign-up.route.js +14 -4
  7. package/dist/src/api/modules/users/users.module.d.ts +10 -2
  8. package/dist/src/api/modules/users/users.module.d.ts.map +1 -1
  9. package/dist/src/app/login/page.d.ts +4 -2
  10. package/dist/src/app/login/page.d.ts.map +1 -1
  11. package/dist/src/app/login/page.js +2 -1
  12. package/dist/src/app/register/page.d.ts +4 -2
  13. package/dist/src/app/register/page.d.ts.map +1 -1
  14. package/dist/src/app/register/page.js +2 -1
  15. package/dist/src/components/table/content.js +1 -1
  16. package/dist/src/components/table/order-table-head.js +1 -1
  17. package/dist/src/components/ui/button.d.ts +1 -1
  18. package/dist/src/components/ui/button.d.ts.map +1 -1
  19. package/dist/src/components/ui/button.js +1 -0
  20. package/dist/src/views/admin/layouts/sidebar/nav/item.d.ts.map +1 -1
  21. package/dist/src/views/admin/layouts/sidebar/nav/item.js +14 -1
  22. package/dist/src/views/auth/sign-in/form/form.js +1 -1
  23. package/dist/src/views/auth/sign-in/form/{hooks/mutation-api.d.ts → mutation-api.d.ts} +1 -1
  24. package/dist/src/views/auth/sign-in/form/mutation-api.d.ts.map +1 -0
  25. package/dist/src/views/auth/sign-in/form/{hooks/mutation-api.js → mutation-api.js} +3 -3
  26. package/dist/src/views/auth/sign-in/form/use-form.d.ts.map +1 -0
  27. package/dist/src/views/auth/sign-up/email-confirmation-view.d.ts +4 -0
  28. package/dist/src/views/auth/sign-up/email-confirmation-view.d.ts.map +1 -0
  29. package/dist/src/views/auth/sign-up/email-confirmation-view.js +55 -0
  30. package/dist/src/views/auth/sign-up/form/form.js +1 -1
  31. package/dist/src/views/auth/sign-up/form/mutation-api.d.ts +14 -0
  32. package/dist/src/views/auth/sign-up/form/mutation-api.d.ts.map +1 -0
  33. package/dist/src/views/auth/sign-up/form/mutation-api.js +29 -0
  34. package/dist/src/views/auth/sign-up/form/use-form.d.ts.map +1 -0
  35. package/dist/src/views/auth/sign-up/form/{hooks/use-form.js → use-form.js} +7 -3
  36. package/dist/src/views/auth/sign-up/sign-up-view.d.ts.map +1 -1
  37. package/dist/src/views/auth/sign-up/sign-up-view.js +38 -35
  38. package/dist/src/views/auth/sign-up/wrapper.d.ts +8 -0
  39. package/dist/src/views/auth/sign-up/wrapper.d.ts.map +1 -0
  40. package/dist/src/views/auth/sign-up/wrapper.js +19 -0
  41. package/dist/src/views/auth/sso/buttons/sso-buttons.d.ts.map +1 -1
  42. package/dist/src/views/auth/sso/buttons/sso-buttons.js +5 -3
  43. package/dist/tsconfig.tsbuildinfo +1 -1
  44. package/package.json +2 -2
  45. package/src/app/login/page.tsx +3 -2
  46. package/src/app/register/page.tsx +3 -2
  47. package/src/locales/en.json +5 -0
  48. package/dist/src/views/auth/sign-in/form/hooks/mutation-api.d.ts.map +0 -1
  49. package/dist/src/views/auth/sign-in/form/hooks/use-form.d.ts.map +0 -1
  50. package/dist/src/views/auth/sign-up/form/hooks/mutation-api.d.ts +0 -6
  51. package/dist/src/views/auth/sign-up/form/hooks/mutation-api.d.ts.map +0 -1
  52. package/dist/src/views/auth/sign-up/form/hooks/mutation-api.js +0 -18
  53. package/dist/src/views/auth/sign-up/form/hooks/use-form.d.ts.map +0 -1
  54. /package/dist/src/views/auth/sign-in/form/{hooks/use-form.d.ts → use-form.d.ts} +0 -0
  55. /package/dist/src/views/auth/sign-in/form/{hooks/use-form.js → use-form.js} +0 -0
  56. /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,wDA0BtB,CAAC"}
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 getTranslations('core.auth.sso');
21
- const { sso } = await getMiddlewareApi();
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",