@navservice/usuario 1.1.182

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 (39) hide show
  1. package/build/es/biblioteca/src/componentes/auth/AuthAtivarDesativarAuthenticator/AuthAtivarDesativarAuthenticator.d.ts +1 -0
  2. package/build/es/biblioteca/src/componentes/auth/AuthAtivarDesativarAuthenticator/index.d.ts +1 -0
  3. package/build/es/biblioteca/src/componentes/auth/AuthGoogle/AuthGoogle.d.ts +5 -0
  4. package/build/es/biblioteca/src/componentes/auth/AuthGoogle/index.d.ts +1 -0
  5. package/build/es/biblioteca/src/componentes/auth/AuthLogin/AuthLogin.d.ts +1 -0
  6. package/build/es/biblioteca/src/componentes/auth/AuthLogin/index.d.ts +1 -0
  7. package/build/es/biblioteca/src/componentes/auth/AuthRegister/AuthRegister.d.ts +1 -0
  8. package/build/es/biblioteca/src/componentes/auth/AuthRegister/index.d.ts +2 -0
  9. package/build/es/biblioteca/src/componentes/auth/EsqueciMinhaSenha/EsqueciMinhaSenha.d.ts +5 -0
  10. package/build/es/biblioteca/src/componentes/auth/EsqueciMinhaSenha/index.d.ts +1 -0
  11. package/build/es/biblioteca/src/componentes/auth/VerificarAuthenticator/VerificarAuthenticator.d.ts +2 -0
  12. package/build/es/biblioteca/src/componentes/auth/VerificarAuthenticator/index.d.ts +1 -0
  13. package/build/es/biblioteca/src/componentes/geral/FormularioZod/index.d.ts +45 -0
  14. package/build/es/biblioteca/src/componentes/geral/PaginaEmDesenvolvimento/index.d.ts +5 -0
  15. package/build/es/biblioteca/src/componentes/geral/TopTabs/index.d.ts +10 -0
  16. package/build/es/biblioteca/src/componentes/layout/Layout.d.ts +1 -0
  17. package/build/es/biblioteca/src/componentes/layout/NavBar/DarkMode.d.ts +2 -0
  18. package/build/es/biblioteca/src/componentes/layout/NavBar/Logo.d.ts +2 -0
  19. package/build/es/biblioteca/src/componentes/layout/NavBar/Profile.d.ts +5 -0
  20. package/build/es/biblioteca/src/componentes/layout/NavBar/index.d.ts +3 -0
  21. package/build/es/biblioteca/src/componentes/layout/index.d.ts +1 -0
  22. package/build/es/biblioteca/src/componentes/layoutPublic/Header.d.ts +1 -0
  23. package/build/es/biblioteca/src/componentes/layoutPublic/index.d.ts +1 -0
  24. package/build/es/biblioteca/src/componentes/layoutPublic/layoutPublic.d.ts +1 -0
  25. package/build/es/biblioteca/src/config_env/index.d.ts +19 -0
  26. package/build/es/biblioteca/src/contexto/contexto_layout.d.ts +74 -0
  27. package/build/es/biblioteca/src/contexto/contexto_usuario.d.ts +32 -0
  28. package/build/es/biblioteca/src/index.d.ts +12 -0
  29. package/build/es/index.js +19214 -0
  30. package/build/es/index.js.LICENSE.txt +6 -0
  31. package/build/es/shared/configuracoes/_sistema.d.ts +49 -0
  32. package/build/es/shared/configuracoes/_theme.d.ts +78 -0
  33. package/build/es/shared/configuracoes/index.d.ts +129 -0
  34. package/build/es/shared/types/controller/type_codigo_verificacao_otp.d.ts +91 -0
  35. package/build/es/shared/types/controller/type_controller_authenticator.d.ts +82 -0
  36. package/build/es/shared/types/controller/type_controller_usuario.d.ts +260 -0
  37. package/build/es/shared/types/geral/type_response.d.ts +54 -0
  38. package/build/es/shared/types/index.d.ts +45 -0
  39. package/package.json +41 -0
@@ -0,0 +1 @@
1
+ export declare const AuthAtivarDesativarAuthenticator: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { AuthAtivarDesativarAuthenticator } from "./AuthAtivarDesativarAuthenticator";
@@ -0,0 +1,5 @@
1
+ type AuthGoogleProps = {
2
+ mode: "signup_with" | "signin_with";
3
+ };
4
+ export declare function AuthGoogle({ mode }: AuthGoogleProps): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1 @@
1
+ export { AuthGoogle } from "./AuthGoogle";
@@ -0,0 +1 @@
1
+ export declare function AuthLogin(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { AuthLogin } from "./AuthLogin";
@@ -0,0 +1 @@
1
+ export declare function AuthRegister(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { AuthRegister } from "./AuthRegister";
2
+ export * from "./AuthRegister";
@@ -0,0 +1,5 @@
1
+ type Props = {
2
+ email?: string;
3
+ };
4
+ export declare function EsqueciMinhaSenha({ email: emailProp }: Props): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1 @@
1
+ export { EsqueciMinhaSenha } from "./EsqueciMinhaSenha";
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const VerificarAuthenticator: React.FC;
@@ -0,0 +1 @@
1
+ export { VerificarAuthenticator } from "./VerificarAuthenticator";
@@ -0,0 +1,45 @@
1
+ import React from "react";
2
+ import { z, ZodObject } from "zod/v4";
3
+ /**
4
+ * =============================================================
5
+ * Utils de TIPAGEM – dot paths e valores inferidos do schema
6
+ * =============================================================
7
+ */
8
+ type Primitive = string | number | boolean | bigint | symbol | null | undefined | Date | File;
9
+ type Join<K, P> = K extends string | number ? (P extends string | number ? `${K}.${P}` : never) : never;
10
+ type Prev = [never, 0, 1, 2, 3, 4, 5, 6, 7, 8];
11
+ export type DotPath<T, D extends number = 6> = [D] extends [never] ? never : T extends Primitive ? never : T extends readonly (infer A)[] ? DotPath<A, Prev[D]> : {
12
+ [K in keyof T & (string | number)]: T[K] extends Primitive | readonly any[] ? `${K}` : `${K}` | Join<K, DotPath<T[K], Prev[D]>>;
13
+ }[keyof T & (string | number)];
14
+ export type PathValue<T, P extends string> = P extends `${infer K}.${infer R}` ? (K extends keyof T ? PathValue<T[K], R> : never) : P extends keyof T ? T[P] : never;
15
+ export type FlatPaths<T> = {
16
+ [P in DotPath<T>]: PathValue<T, P>;
17
+ };
18
+ type InferSchema<TSchema extends z.ZodTypeAny> = z.infer<TSchema>;
19
+ export type DotPathOfSchema<TSchema extends z.ZodTypeAny> = DotPath<InferSchema<TSchema>>;
20
+ export type FlatPathsOfSchema<TSchema extends z.ZodTypeAny> = FlatPaths<InferSchema<TSchema>>;
21
+ /**
22
+ * =============================================================
23
+ * TIPAGEM do Ref exposto pelo componente
24
+ * =============================================================
25
+ */
26
+ export interface FormularioZodRef<TSchema extends z.ZodTypeAny> {
27
+ enviarFormulario: () => InferSchema<TSchema> | null;
28
+ limparFormulario: () => void;
29
+ getValues: () => Partial<FlatPathsOfSchema<TSchema>>;
30
+ setValue: <P extends DotPathOfSchema<TSchema>>(path: P, value: PathValue<InferSchema<TSchema>, P>) => void;
31
+ getValue: <P extends DotPathOfSchema<TSchema>>(path: P) => PathValue<InferSchema<TSchema>, P> | undefined;
32
+ }
33
+ interface FormularioZodProps<TSchema extends ZodObject<any>> {
34
+ schema: TSchema;
35
+ devMode?: boolean;
36
+ }
37
+ /**
38
+ * =============================================================
39
+ * forwardRef preservando genéricos
40
+ * =============================================================
41
+ */
42
+ declare const FormularioZod: <TSchema extends ZodObject<any>>(props: FormularioZodProps<TSchema> & {
43
+ ref?: React.Ref<FormularioZodRef<TSchema>>;
44
+ }) => React.ReactElement;
45
+ export default FormularioZod;
@@ -0,0 +1,5 @@
1
+ interface PaginaEmDesenvolvimento {
2
+ title: string;
3
+ }
4
+ export default function PaginaEmDesenvolvimento({ title }: PaginaEmDesenvolvimento): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,10 @@
1
+ import React, { ReactNode } from "react";
2
+ type TabItem = {
3
+ title: string;
4
+ content: ReactNode;
5
+ };
6
+ type TopTabNavigationProps = {
7
+ tabs: TabItem[];
8
+ };
9
+ declare const TopTabNavigation: React.FC<TopTabNavigationProps>;
10
+ export default TopTabNavigation;
@@ -0,0 +1 @@
1
+ export declare function Layout(): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ export declare function hookUseDarkMode(): void;
2
+ export default function DarkMode(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ declare const Logo: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Logo;
@@ -0,0 +1,5 @@
1
+ interface ProfileProps {
2
+ isCollapsed?: boolean;
3
+ }
4
+ export default function Profile({ isCollapsed }: ProfileProps): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const NavBar: React.FC;
3
+ export default NavBar;
@@ -0,0 +1 @@
1
+ export { Layout } from "./Layout";
@@ -0,0 +1 @@
1
+ export default function Header(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { LayoutPublic } from "./layoutPublic";
@@ -0,0 +1 @@
1
+ export declare function LayoutPublic(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import t from "../../../shared/types";
2
+ interface TypesConfigEnv {
3
+ SET_PUBLIC_BASE_URL_BACKEND_PRINCIPAL: string;
4
+ SET_PUBLIC_GOOGLE_CLIENT_ID_AUTH0: string;
5
+ SET_APP: t.Controller.Usuario.UsuarioAuth["app"];
6
+ SET_USUARIO_TIPO: t.Controller.Usuario.UsuarioAuth["usuario_tipo"];
7
+ }
8
+ declare class config_env {
9
+ private static SET_PUBLIC_BASE_URL_BACKEND_PRINCIPAL;
10
+ private static SET_PUBLIC_GOOGLE_CLIENT_ID_AUTH0;
11
+ private static SET_APP;
12
+ private static SET_USUARIO_TIPO;
13
+ static init(config: TypesConfigEnv): void;
14
+ static get PUBLIC_BASE_URL_BACKEND_PRINCIPAL(): string;
15
+ static get PUBLIC_GOOGLE_CLIENT_ID_AUTH0(): string;
16
+ static get PUBLIC_APP(): t.Controller.Usuario.UsuarioAuth["app"];
17
+ static get PUBLIC_USUARIO_TIPO(): t.Controller.Usuario.UsuarioAuth["usuario_tipo"];
18
+ }
19
+ export default config_env;
@@ -0,0 +1,74 @@
1
+ interface NotificacaoNovoRecurso {
2
+ idItem: number;
3
+ contador: number;
4
+ expiraEmDias?: number;
5
+ dataCriacao: Date;
6
+ lido: boolean;
7
+ }
8
+ interface NavbarItem {
9
+ id: number;
10
+ title: string;
11
+ icon?: any;
12
+ href?: string;
13
+ collapsible?: boolean;
14
+ children?: NavbarItem[];
15
+ subheader?: string;
16
+ disabled?: boolean;
17
+ badge?: {
18
+ color: string;
19
+ value: string | number;
20
+ };
21
+ }
22
+ declare class contexto_layout {
23
+ static contexto: {
24
+ new (): {};
25
+ jsx: {
26
+ new (): {};
27
+ get_navbar(): {
28
+ data: NavbarItem[];
29
+ loading: boolean;
30
+ _ids: any[];
31
+ };
32
+ get_expanded_item(): {
33
+ data: number | null;
34
+ loading: boolean;
35
+ };
36
+ get_mobile_open(): {
37
+ data: boolean;
38
+ loading: boolean;
39
+ };
40
+ get_novos_recursos(): {
41
+ data: NotificacaoNovoRecurso[];
42
+ loading: boolean;
43
+ };
44
+ get_recurso_novo_item(idItem: number): NotificacaoNovoRecurso | undefined;
45
+ };
46
+ state: {
47
+ new (): {};
48
+ set_navbar(values: {
49
+ data: NavbarItem[];
50
+ loading: boolean;
51
+ }): void;
52
+ get_navbar(): {
53
+ data: NavbarItem[];
54
+ loading: boolean;
55
+ _ids: any[];
56
+ };
57
+ set_expanded_item(id: number | null): void;
58
+ get_expanded_item(): {
59
+ data: number | null;
60
+ loading: boolean;
61
+ };
62
+ toggle_mobile_open(): void;
63
+ set_mobile_open(isOpen: boolean): void;
64
+ marcar_recurso_como_lido(idItem: number): void;
65
+ limpar_todos_recursos(): void;
66
+ limpar_recursos_expirados(): void;
67
+ adicionar_novos_recursos(recursos: NotificacaoNovoRecurso[]): void;
68
+ };
69
+ };
70
+ static websocket: {
71
+ new (): {};
72
+ };
73
+ }
74
+ export default contexto_layout;
@@ -0,0 +1,32 @@
1
+ import { AxiosResponse } from "axios";
2
+ import t from "../../../shared/types";
3
+ declare const contexto_usuario: {
4
+ new (): {};
5
+ api: {
6
+ new (): {};
7
+ register(props: t.Controller.Usuario.Register.Input): Promise<t.Controller.Usuario.Register.Response>;
8
+ login(props: t.Controller.Usuario.Login.Input): Promise<AxiosResponse>;
9
+ entrar_com_codigo_otp(props: t.Controller.CodigoOtp.EntrarComCodigoOtp.Input): Promise<AxiosResponse>;
10
+ login_register_google(props: t.Controller.Usuario.RegisterLoginGoogle.Input): Promise<void>;
11
+ };
12
+ contexto: {
13
+ new (): {};
14
+ jsx: {
15
+ new (): {};
16
+ get_user(): t.Controller.Usuario.Login.Output;
17
+ get_signed(): boolean;
18
+ get_loading(): boolean;
19
+ };
20
+ state: {
21
+ new (): {};
22
+ set_signed(): void;
23
+ set_user(userData: any): void;
24
+ set_loading(value: boolean): void;
25
+ set_signout(): void;
26
+ };
27
+ };
28
+ websocket: {
29
+ new (): {};
30
+ };
31
+ };
32
+ export default contexto_usuario;
@@ -0,0 +1,12 @@
1
+ export { default as config_env_usuario } from "./config_env";
2
+ export { default as contexto_usuario } from "./contexto/contexto_usuario";
3
+ export { default as contexto_layout } from "./contexto/contexto_layout";
4
+ export { AuthAtivarDesativarAuthenticator } from "./componentes/auth/AuthAtivarDesativarAuthenticator";
5
+ export { AuthGoogle } from "./componentes/auth/AuthGoogle";
6
+ export { EsqueciMinhaSenha } from "./componentes/auth/EsqueciMinhaSenha";
7
+ export { AuthLogin } from "./componentes/auth/AuthLogin";
8
+ export { AuthRegister } from "./componentes/auth/AuthRegister";
9
+ export { VerificarAuthenticator } from "./componentes/auth/VerificarAuthenticator";
10
+ export { Layout } from "./componentes/layout";
11
+ export { LayoutPublic } from "./componentes/layoutPublic";
12
+ export { default as TypesUsuario } from "../../shared/types";