@cm-sigoo-temp/ui 0.2.38 → 0.2.40
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/lib/api/permisos.d.ts +6 -1
- package/dist/lib/auth/KeycloakContext.d.ts +6 -0
- package/dist/lib/auth/index.d.ts +1 -0
- package/dist/lib/auth/keycloak.d.ts +7 -1
- package/dist/lib/cm-sigoo-temp-ui.js +5549 -3594
- package/dist/lib/cm-sigoo-temp-ui.js.map +1 -1
- package/dist/lib/components/Auth/Keycloak/Keycloak.d.ts +4 -3
- package/dist/lib/components/Auth/OpenID/OpenID.d.ts +5 -1
- package/package.json +1 -1
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import { TPermisosResponse } from '../tipos';
|
|
2
|
-
export
|
|
2
|
+
export type EnvPermisos = 'dev' | 'test' | 'prod';
|
|
3
|
+
/**
|
|
4
|
+
* Obtiene permisos del usuario para la plataforma.
|
|
5
|
+
* Si no se recibe ambiente, se usa 'dev' por defecto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const obtenerPermisos: (usuario: string, plataforma: string, env?: EnvPermisos) => Promise<TPermisosResponse>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as Keycloak } from 'keycloak-js';
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
|
+
export declare function KeycloakProvider({ keycloak, children, }: PropsWithChildren<{
|
|
4
|
+
keycloak: Keycloak;
|
|
5
|
+
}>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function useLoginKeycloak(): Keycloak;
|
package/dist/lib/auth/index.d.ts
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
import { default as Keycloak } from 'keycloak-js';
|
|
2
|
-
export
|
|
2
|
+
export type EnvLoginKeycloak = 'dev' | 'test';
|
|
3
|
+
/**
|
|
4
|
+
* Crea la instancia de Keycloak para login según el ambiente.
|
|
5
|
+
* Si no se recibe ambiente, se usa 'dev' por defecto.
|
|
6
|
+
* El consumidor la usa una vez (p. ej. al arranque) y pasa la instancia por contexto o props.
|
|
7
|
+
*/
|
|
8
|
+
export declare function getLoginKeycloak(env?: EnvLoginKeycloak): Keycloak;
|