react-ecosistema-unp 1.6.14 → 1.7.0-pre.1
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/assets/MenuLateral.css +1 -1
- package/dist/auth/contexts/AuthContex.js +10 -10
- package/dist/cards/tarjeta/nuevo-elemento/NuevoElemento.js +1 -1
- package/dist/cards/tarjeta-info/TarjetaInfo.js +5 -4
- package/dist/data/tarjeta-datos/TarjetaDatos.js +1 -1
- package/dist/{index-BpmHFDVa.js → index-Cpp73e44.js} +7 -7
- package/dist/lib/auth/contexts/AuthContex.d.ts +3 -0
- package/dist/lib/shared/menu-lateral/MenuLateral.d.ts +1 -0
- package/dist/lib/shared/ventana-lienzo/VentanaLienzo.d.ts +1 -0
- package/dist/lib/shared/ventana-tabs/VentanaTabs.d.ts +1 -0
- package/dist/lib/tables/tabla-registros/modal/Modal.d.ts +6 -2
- package/dist/lib/ui.d.ts +1 -0
- package/dist/lib/utils/websocket-manager/WebSocketContext.d.ts +13 -0
- package/dist/lib/utils/websocket-manager/useWebSocket.d.ts +1 -0
- package/dist/lib/utils/websocket-manager/websocket.d.ts +19 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/shared/app-list/AppList.js +1 -1
- package/dist/shared/iconos-sistema/logout-button/LogoutButton.js +1 -1
- package/dist/shared/menu-lateral/MenuLateral.js +181 -99
- package/dist/shared/ventana-lienzo/VentanaLienzo.js +13 -13
- package/dist/shared/ventana-tabs/VentanaTabs.js +104 -104
- package/dist/tables/tabla-registros/TablaRegistros.js +1 -1
- package/dist/tables/tabla-registros/buscador/Buscador.js +4 -4
- package/dist/tables/tabla-registros/modal/Modal.js +23 -22
- package/dist/tables/tabla-registros/tabla/Tabla.js +1 -1
- package/dist/ui/contenido-modal/ContenidoModal.js +1 -1
- package/dist/ui/contenido-modal/ContenidoModalv0.1.js +1 -1
- package/dist/ui/icono-tooltip/IconoTooltip.js +1 -1
- package/dist/ui/items-modal/ItemsModal.js +5 -5
- package/dist/ui.js +8 -7
- package/dist/utils/unp-historico/UnpHistorico.js +4 -3
- package/dist/utils/websocket-manager/WebSocketContext.js +23 -0
- package/dist/utils/websocket-manager/useWebSocket.js +16 -0
- package/dist/utils/websocket-manager/websocket.js +62 -0
- package/dist/utils.js +15 -10
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
@import"https://fonts.googleapis.com/css2?family=Domine:wght@400;500;600;700&family=Noto+Sans:wght@300;600&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;1,100;1,300;1,400;1,500&display=swap";:root{--color-default: #303d50;--color-white: #fff;--color-body: #ffffff;--color-light: #e0e0e0;--Color-complementario: #2e4b6b}*{padding:0%;margin:0%;box-sizing:border-box;font-family:roboto,sans-serif}body{min-height:calc(100vh - .5rem)}.sidebar-bar-panel{min-height:100vh;width:78px;padding:6px 14px;background-color:var(--color-default);transition:all .5s ease;position:fixed;top:0;left:0;z-index:0}.sidebar-bar-panel.open{width:280px;z-index:0}.sidebar-bar-panel .logo_details{height:60px;display:flex;align-items:center;position:relative}.logo-image{height:30px;max-width:30px;min-width:0px;object-fit:contain;margin-right:10px;margin-left:4px}.sidebar-bar-panel .logo_details .icon{opacity:0;transition:all .5s ease}.sidebar-bar-panel .logo_details .logo-name{color:var(--color-white);font-size:18px;font-weight:600;padding-left:0;max-width:180px;min-width:0px;opacity:0;transition:all .5s ease;z-index:0}.sidebar-bar-panel.open .logo_details .icon,.sidebar-bar-panel.open .logo_details .logo-name{opacity:1}.sidebar-bar-panel .logo_details #btn{position:absolute;top:50%;right:0;transform:translateY(-50%);font-size:23px;text-align:center;cursor:pointer;transition:all .5s ease}.sidebar-bar-panel.open .logo_details #btn{text-align:right;left:84.5%}.sidebar-bar-panel .i{color:var(--color-white);height:30px;line-height:60px;min-width:50px;font-size:25px;text-align:center;font-weight:400}.sidebar-bar-panel .i2{color:var(--color-white);height:20px;line-height:60px;min-width:50px;font-size:25px;text-align:center;font-weight:300}.sidebar-bar-panel .nav-list-panel{margin-top:20px;height:100%;padding:0}.sidebar-bar-panel li{position:relative;margin:20px 0;list-style:none}.sidebar-bar-panel li .tooltip{position:absolute;top:-20px;left:calc(100% + 15px);z-index:9000!important;background-color:var(--color-white);box-shadow:0 5px 10px #0000004d;padding:6px 14px;font-size:15px;font-weight:500;border-radius:5px;white-space:nowrap;opacity:0;pointer-events:none}.sidebar-bar-panel li:hover .tooltip{opacity:1;pointer-events:auto;transition:all .4s ease;top:50%;transform:translateY(-50%)}.sidebar-bar-panel.open li .tooltip{display:none}.sidebar-bar-panel li a{display:flex;height:100%;width:100%;align-items:center;text-decoration:none;background-color:var(--color-default);position:relative;transition:all .5s ease;z-index:12}.sidebar-bar-panel li a:after{content:"";position:absolute;width:100%;height:35px;transform:scaleX(0);background-color:var(--color-white);border-radius:5px;transition:transform .3s ease-in-out;transform-origin:left;z-index:-2}.sidebar-bar-panel li a:hover:after{transform:scaleX(1);color:var(--color-default);height:35px}.sidebar-bar-panel li a .link_name{color:var(--color-white);font-size:15px;font-weight:500;white-space:nowrap;pointer-events:auto;transition:all .4s ease;pointer-events:none;opacity:0}.sidebar-bar-panel li a:hover .link_name,.sidebar-bar-panel li a:hover .i{transition:all .5s ease;color:var(--color-default)}.sidebar-bar-panel li a:hover .bx{color:var(--color-default)}.sidebar-bar-panel.open li a .link_name{opacity:1;pointer-events:auto}.sidebar-bar-panel .profile-content{position:absolute;color:var(--color-white);bottom:0;left:0;width:100%}.sidebar-bar-panel .profile-content .profile{position:relative;padding:18px;height:75px;background:none;transition:all .5s ease}.sidebar-bar-panel .profile-content .profile a{text-decoration:none;color:var(--color-white)}.sidebar-bar-panel.open .profile-content .profile{background-color:var(--Color-complementario)}.profile-content .profile .profile-detail{display:flex;align-items:center;opacity:0;pointer-events:auto;white-space:nowrap}.sidebar-bar-panel.open .profile .profile-detail{opacity:1;pointer-events:auto}.sidebar-bar-panel.open .profile .icon{left:90%;background:none}.sidebar-bar-panel .profile .icon:hover{cursor:pointer}.profile .profile-detail .name-job{margin-left:10px}.profile .profile-detail .name{font-size:15px;font-weight:600}.profile .profile-detail .job{font-size:12px;font-weight:400}.profile .icon{position:absolute;left:50%;bottom:23%;transform:translate(-50%);min-width:40px;line-height:60px;height:38px;text-align:center;transition:all .5s ease;background:var(--Color-complementario);padding:7px;border-radius:7px}.main-section{margin-top:0;margin-left:78px;margin-right:0;transition:margin-left .5s ease;z-index:1}.menu-open .main-section{margin-left:280px;z-index:1}.bg-custom{background-color:#303d50;border:#ffffff}.bg-custom:hover{background-color:#2e465f}.custom-collapse{animation:slideFromRight .5s ease forwards}.custom-collapse-reverse{animation:slideToRight .5s ease forwards}@keyframes slideFromRight{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes slideToRight{0%{transform:translate(0)}to{transform:translate(100%)}}
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Domine:wght@400;500;600;700&family=Noto+Sans:wght@300;600&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;1,100;1,300;1,400;1,500&display=swap";:root{--color-default: #303d50;--color-white: #fff;--color-body: #ffffff;--color-light: #e0e0e0;--Color-complementario: #2e4b6b}*{padding:0%;margin:0%;box-sizing:border-box;font-family:roboto,sans-serif}body{min-height:calc(100vh - .5rem)}.sidebar-bar-panel{min-height:100vh;width:78px;padding:6px 14px;background-color:var(--color-default);transition:all .5s ease;position:fixed;top:0;left:0;z-index:0}.sidebar-bar-panel.open{width:280px;z-index:0}.sidebar-bar-panel .logo_details{height:60px;display:flex;align-items:center;position:relative}.logo-image{height:30px;max-width:30px;min-width:0px;object-fit:contain;margin-right:10px;margin-left:4px}.sidebar-bar-panel .logo_details .icon{opacity:0;transition:all .5s ease}.sidebar-bar-panel .logo_details .logo-name{color:var(--color-white);font-size:18px;font-weight:600;padding-left:0;max-width:180px;min-width:0px;opacity:0;transition:all .5s ease;z-index:0}.sidebar-bar-panel.open .logo_details .icon,.sidebar-bar-panel.open .logo_details .logo-name{opacity:1}.sidebar-bar-panel .logo_details #btn{position:absolute;top:50%;right:0;transform:translateY(-50%);font-size:23px;text-align:center;cursor:pointer;transition:all .5s ease}.sidebar-bar-panel.open .logo_details #btn{text-align:right;left:84.5%}.sidebar-bar-panel .i{color:var(--color-white);height:30px;line-height:60px;min-width:50px;font-size:25px;text-align:center;font-weight:400}.sidebar-bar-panel .i2{color:var(--color-white);height:20px;line-height:60px;min-width:50px;font-size:25px;text-align:center;font-weight:300}.sidebar-bar-panel .nav-list-panel{margin-top:20px;height:100%;padding:0}.sidebar-bar-panel li{position:relative;margin:20px 0;list-style:none}.sidebar-bar-panel li .tooltip{position:absolute;top:-20px;left:calc(100% + 15px);z-index:9000!important;background-color:var(--color-white);box-shadow:0 5px 10px #0000004d;padding:6px 14px;font-size:15px;font-weight:500;border-radius:5px;white-space:nowrap;opacity:0;pointer-events:none}.sidebar-bar-panel li:hover .tooltip{opacity:1;pointer-events:auto;transition:all .4s ease;top:50%;transform:translateY(-50%)}.sidebar-bar-panel.open li .tooltip{display:none}.sidebar-bar-panel li a{display:flex;height:100%;width:100%;align-items:center;text-decoration:none;background-color:var(--color-default);position:relative;transition:all .5s ease;z-index:12}.sidebar-bar-panel li a:after{content:"";position:absolute;width:100%;height:35px;transform:scaleX(0);background-color:var(--color-white);border-radius:5px;transition:transform .3s ease-in-out;transform-origin:left;z-index:-2}.sidebar-bar-panel li a:hover:after{transform:scaleX(1);color:var(--color-default);height:35px}.sidebar-bar-panel li a .link_name{color:var(--color-white);font-size:15px;font-weight:500;white-space:nowrap;pointer-events:auto;transition:all .4s ease;pointer-events:none;opacity:0}.sidebar-bar-panel li a:hover .link_name,.sidebar-bar-panel li a:hover .i{transition:all .5s ease;color:var(--color-default)}.sidebar-bar-panel li a:hover .bx{color:var(--color-default)}.sidebar-bar-panel.open li a .link_name{opacity:1;pointer-events:auto}.sidebar-bar-panel .profile-content{position:absolute;color:var(--color-white);bottom:0;left:0;width:100%}.sidebar-bar-panel .profile-content .profile{position:relative;padding:18px;height:75px;background:none;transition:all .5s ease}.sidebar-bar-panel .profile-content .profile a{text-decoration:none;color:var(--color-white)}.sidebar-bar-panel.open .profile-content .profile{background-color:var(--Color-complementario)}.profile-content .profile .profile-detail{display:flex;align-items:center;opacity:0;pointer-events:auto;white-space:nowrap}.sidebar-bar-panel.open .profile .profile-detail{opacity:1;pointer-events:auto}.sidebar-bar-panel.open .profile .icon{left:90%;background:none}.sidebar-bar-panel .profile .icon:hover{cursor:pointer}.profile .profile-detail .name-job{margin-left:10px}.profile .profile-detail .name{font-size:15px;font-weight:600}.profile .profile-detail .job{font-size:12px;font-weight:400}.profile .icon{position:absolute;left:50%;bottom:23%;transform:translate(-50%);min-width:40px;line-height:60px;height:38px;text-align:center;transition:all .5s ease;background:var(--Color-complementario);padding:7px;border-radius:7px}.main-section{margin-top:0;margin-left:78px;margin-right:0;transition:margin-left .5s ease;z-index:1}.menu-open .main-section{margin-left:280px;z-index:1}.bg-custom{background-color:#303d50;border:#ffffff}.bg-custom:hover{background-color:#2e465f}.custom-collapse{animation:slideFromRight .5s ease forwards}.custom-collapse-reverse{animation:slideToRight .5s ease forwards}@keyframes slideFromRight{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes slideToRight{0%{transform:translate(0)}to{transform:translate(100%)}}.checkmark__circle{stroke-dasharray:166;stroke-dashoffset:166;stroke-width:2;stroke-miterlimit:10;stroke:#7ac142;fill:none;animation:stroke-check .6s cubic-bezier(.65,0,.45,1) forwards}.checkmark{width:20px;height:20px;border-radius:50%;display:block;stroke-width:3;stroke:#fff;stroke-miterlimit:10;margin:10% auto;box-shadow:inset 0 0 #7ac142;animation:fill-check .4s ease-in-out .4s forwards,scale-check .3s ease-in-out .9s both}.checkmark__check{transform-origin:50% 50%;stroke-dasharray:48;stroke-dashoffset:48;animation:stroke-check .3s cubic-bezier(.65,0,.45,1) .8s forwards}@keyframes stroke-check{to{stroke-dashoffset:0}}@keyframes scale-check{0%,to{transform:none}50%{transform:scale3d(1.1,1.1,1)}}@keyframes fill-check{to{box-shadow:inset 0 0 0 30px #98e2609a}}.x-checkmark{width:20px;height:20px;border-radius:50%;display:block;stroke-width:3;stroke:#fff;stroke-miterlimit:10;margin:10% auto;box-shadow:inset 0 0 #c14242;animation:fill-x .4s ease-in-out .4s forwards,scale-x .3s ease-in-out .9s both}.x-checkmark_circle{stroke-dasharray:166;stroke-dashoffset:166;stroke-width:2;stroke-miterlimit:10;stroke:#c14242;fill:none;animation:stroke-x .6s cubic-bezier(.65,0,.45,1) forwards}.x-checkmark_check{transform-origin:50% 50%;stroke-dasharray:48;stroke-dashoffset:48;animation:stroke-x .3s cubic-bezier(.65,0,.45,1) .8s forwards}@keyframes stroke-x{to{stroke-dashoffset:0}}@keyframes scale-x{0%,to{transform:none}50%{transform:scale3d(1.1,1.1,1)}}@keyframes fill-x{to{box-shadow:inset 0 0 0 30px #e260609a}}.ripplemark{width:20px;height:20px;display:block;margin:10% auto;background-color:#60c4e29a;border-radius:50%;overflow:visible}.ripplemark__wave{fill:none;stroke:#fff;stroke-width:5;opacity:.8;transform-origin:center;animation:ripple-wave 1.5s ease-out infinite}@keyframes ripple-wave{0%{r:0;opacity:.8}70%{r:20;opacity:.2}to{r:25;opacity:0}}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { createContext as c, useState as
|
|
3
|
-
const
|
|
4
|
-
const [o,
|
|
2
|
+
import { createContext as c, useState as e } from "react";
|
|
3
|
+
const i = c(void 0), h = ({ children: t }) => {
|
|
4
|
+
const [o, r] = e(
|
|
5
5
|
// localStorage.getItem("access_token")
|
|
6
6
|
""
|
|
7
|
-
), [
|
|
7
|
+
), [n, s] = e(
|
|
8
8
|
// localStorage.getItem("user_token")
|
|
9
9
|
""
|
|
10
10
|
);
|
|
11
|
-
return
|
|
12
|
-
|
|
11
|
+
return /* @__PURE__ */ u(
|
|
12
|
+
i.Provider,
|
|
13
13
|
{
|
|
14
|
-
value: { authToken: o, setAuthToken:
|
|
15
|
-
children:
|
|
14
|
+
value: { authToken: o, setAuthToken: r, userToken: n, setUserToken: s },
|
|
15
|
+
children: t
|
|
16
16
|
}
|
|
17
17
|
);
|
|
18
18
|
};
|
|
19
19
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
i as AuthContext,
|
|
21
|
+
h as AuthProvider
|
|
22
22
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { q as s } from "../../../index-Cpp73e44.js";
|
|
3
3
|
import '../../../assets/Bootstrap.css';/* empty css */
|
|
4
4
|
import { B as a } from "../../../Button-B87TJYml.js";
|
|
5
5
|
const d = {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useState as r, useRef as d, useEffect as u } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import '../../assets/UnpHistorico.css'
|
|
3
|
+
import { o as j, p } from "../../index-Cpp73e44.js";
|
|
4
|
+
import '../../assets/UnpHistorico.css';/* empty css */
|
|
5
|
+
const x = ({ icon: c, label: l, show: h = !1, children: o }) => {
|
|
5
6
|
const [e, i] = r(h), [f, s] = r(0), a = d(null);
|
|
6
7
|
return u(() => {
|
|
7
8
|
if (!a.current) return;
|
|
@@ -22,7 +23,7 @@ import '../../assets/UnpHistorico.css';const C = ({ icon: c, label: l, show: h =
|
|
|
22
23
|
onClick: () => i(!e)
|
|
23
24
|
}
|
|
24
25
|
) : /* @__PURE__ */ t(
|
|
25
|
-
|
|
26
|
+
p,
|
|
26
27
|
{
|
|
27
28
|
className: "tarjeta-info-show-button",
|
|
28
29
|
onClick: () => i(!e)
|
|
@@ -40,5 +41,5 @@ import '../../assets/UnpHistorico.css';const C = ({ icon: c, label: l, show: h =
|
|
|
40
41
|
] });
|
|
41
42
|
};
|
|
42
43
|
export {
|
|
43
|
-
|
|
44
|
+
x as TarjetaInfo
|
|
44
45
|
};
|
|
@@ -3,7 +3,7 @@ import "react";
|
|
|
3
3
|
import '../../assets/SeccionTarjetaLectura.css';import '../../assets/Logo.css';import '../../assets/TarjetaLectura.css';import '../../assets/ContenedorTarjeta.css';import '../../assets/Bootstrap.css';import '../../assets/Tarjeta.css';/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
import "../../cards/tarjeta/seccion-tarjeta/SeccionTarjeta.js";
|
|
6
|
-
import { m as t } from "../../index-
|
|
6
|
+
import { m as t } from "../../index-Cpp73e44.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
@@ -4,5 +4,8 @@ declare const AuthContext: React.Context<AuthContextType | undefined>;
|
|
|
4
4
|
interface AuthProviderProps {
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
}
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated since version 1.7.x
|
|
9
|
+
*/
|
|
7
10
|
declare const AuthProvider: React.FC<AuthProviderProps>;
|
|
8
11
|
export { AuthContext, AuthProvider };
|
|
@@ -3,6 +3,7 @@ import { IconoSistema } from '../iconos-sistema/IconosSistema.js';
|
|
|
3
3
|
interface VentanaUsuarioProps {
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
extraInput?: IconoSistema[];
|
|
6
|
+
showConnectionStatus?: boolean;
|
|
6
7
|
}
|
|
7
8
|
declare const VentanaTabs: React.FC<VentanaUsuarioProps>;
|
|
8
9
|
export { VentanaTabs };
|
|
@@ -6,5 +6,9 @@ interface CustomModalProps {
|
|
|
6
6
|
children: React.ReactNode;
|
|
7
7
|
closeModalOut: boolean;
|
|
8
8
|
}
|
|
9
|
-
declare const
|
|
10
|
-
|
|
9
|
+
declare const EcoModal: React.FC<CustomModalProps>;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated since version 1.7.x — use `EcoModal` instead.
|
|
12
|
+
*/
|
|
13
|
+
export declare const CustomModal: React.FC<CustomModalProps>;
|
|
14
|
+
export { EcoModal };
|
package/dist/lib/ui.d.ts
CHANGED
|
@@ -7,4 +7,5 @@ export { ItemsModal } from './ui/items-modal/ItemsModal.js';
|
|
|
7
7
|
export { IconoTooltip } from './ui/icono-tooltip/IconoTooltip.js';
|
|
8
8
|
export { ContenedorVentana } from './ui/contenedor-ventana/ContenedorVentana.js';
|
|
9
9
|
export { CustomModal } from './tables/tabla-registros/modal/Modal.js';
|
|
10
|
+
export { EcoModal } from './tables/tabla-registros/modal/Modal.js';
|
|
10
11
|
export { Animacion } from './ui/animacion/Animacion.js';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
export type ConnectionStatus = 'connected' | 'connecting' | 'disconnected';
|
|
3
|
+
interface WebSocketContextType {
|
|
4
|
+
connectionStatus: ConnectionStatus;
|
|
5
|
+
connectWebSocket: (url: string) => void;
|
|
6
|
+
disconnectWebSocket: () => void;
|
|
7
|
+
sendWebSocketMessage: (data: any) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const WebSocketProvider: React.FC<{
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const useWebSocketConnection: () => WebSocketContextType;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useWebSocket: (url: string, onMessage: (data: any) => void) => void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type MessageHandler = (data: any) => void;
|
|
2
|
+
type ConnectionStatus = 'connected' | 'connecting' | 'disconnected';
|
|
3
|
+
declare class WebSocketService {
|
|
4
|
+
private socket;
|
|
5
|
+
private messageHandlers;
|
|
6
|
+
private statusCallbacks;
|
|
7
|
+
private url;
|
|
8
|
+
private reconnectTimer;
|
|
9
|
+
private reconnectionAttempts;
|
|
10
|
+
private setStatus;
|
|
11
|
+
subscribeToStatus(callback: (status: ConnectionStatus) => void): () => void;
|
|
12
|
+
connect(url: string): void;
|
|
13
|
+
disconnect(): void;
|
|
14
|
+
send(data: any): void;
|
|
15
|
+
subscribe(handler: MessageHandler): () => void;
|
|
16
|
+
unsubscribe(handler: MessageHandler): void;
|
|
17
|
+
}
|
|
18
|
+
export declare const webSocketService: WebSocketService;
|
|
19
|
+
export {};
|
package/dist/lib/utils.d.ts
CHANGED
|
@@ -6,3 +6,5 @@ export { useFormValidation } from './utils/validations/useFormValidation.js';
|
|
|
6
6
|
export { IsInvalidStyles } from './utils/validations/useFormValidation.js';
|
|
7
7
|
export { CaptchaEcosistema } from './utils/captcha/CaptchaEcosistema.js';
|
|
8
8
|
export { useFetchData } from './utils/fetch-data/useFetchData.js';
|
|
9
|
+
export { WebSocketProvider, useWebSocketConnection } from './utils/websocket-manager/WebSocketContext.js';
|
|
10
|
+
export { useWebSocket } from './utils/websocket-manager/useWebSocket.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o, jsxs as r } from "react/jsx-runtime";
|
|
2
2
|
import { useState as d, useEffect as h } from "react";
|
|
3
3
|
import { F as t, e as u, f, g as v, h as z } from "../../index-CgSyrJ_X.js";
|
|
4
|
-
import { w as N } from "../../index-
|
|
4
|
+
import { w as N } from "../../index-Cpp73e44.js";
|
|
5
5
|
import { G as g } from "../../iconBase-LROS5hdG.js";
|
|
6
6
|
import { j as w } from "../../index-CuHybtft.js";
|
|
7
7
|
import { N as b } from "../../NavDropdown-ei8eIwIE.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { useFinalizarSesion as t } from "../../../auth/hooks/useFinalizarSesion.js";
|
|
3
|
-
import { v as i } from "../../../index-
|
|
3
|
+
import { v as i } from "../../../index-Cpp73e44.js";
|
|
4
4
|
import '../../../assets/LogoutButton.css';const a = () => {
|
|
5
5
|
const { FinSesion: o } = t();
|
|
6
6
|
return /* @__PURE__ */ r(i, { className: "icono-logout", onClick: o });
|