@cm-sigoo-temp/ui 0.2.28 → 0.2.29

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.
@@ -4,8 +4,9 @@ import { ElementType, PropsWithChildren } from 'react';
4
4
  export type AuthKeycloakProps = PropsWithChildren<{
5
5
  idApp: string;
6
6
  nombreApp?: string;
7
+ plataforma: string;
7
8
  menus: TMenuDrawer[];
8
9
  LinkComponent?: ElementType<any, keyof React.JSX.IntrinsicElements>;
9
10
  tema?: Theme;
10
11
  }>;
11
- export declare function AuthKeycloak({ children, idApp, nombreApp: nombreAppProps, menus, LinkComponent, tema, }: AuthKeycloakProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare function AuthKeycloak({ children, idApp, nombreApp: nombreAppProps, plataforma, menus, LinkComponent, tema, }: AuthKeycloakProps): import("react/jsx-runtime").JSX.Element;
@@ -10,5 +10,6 @@ export type TMenuAuthLayout = TMenuDrawer & {
10
10
  export type AuthLayoutProps = PropsWithChildren<{
11
11
  idApp: string;
12
12
  nombreApp?: string;
13
+ plataforma: string;
13
14
  menus: TMenuAuthLayout[];
14
15
  }>;
@@ -5,6 +5,7 @@ export declare const obtenerAppsToolbar: (permisos: TAplicacionPermisos[]) => (i
5
5
  })[];
6
6
  /**
7
7
  * Convierte la lista de terminales de la API al formato del toolbar.
8
- * Incluye: terminales autorizadas (permisos) + la terminal del token de Keycloak (si existe en la API).
8
+ * Incluye: terminales autorizadas (permisos) y siempre la terminal del token,
9
+ * aunque el usuario no tenga permisos para ella.
9
10
  */
10
11
  export declare const convertirTerminalesToolbar: (permisos: TTerminalPermisos[], terminales: TTerminal[], codigoTerminalToken?: number) => EstadoToolbar["terminales"];
package/package.json CHANGED
@@ -104,6 +104,7 @@
104
104
  "build:plugins": "node --experimental-strip-types node/vite/plugins/build.ts",
105
105
  "build:storybook": "storybook build -o dist/storybook",
106
106
  "dev": "vite -c node/vite/app.config.ts",
107
+ "prepublishOnly": "npm run build:lib && npm run build:plugins",
107
108
  "lint": "eslint .",
108
109
  "prepare": "husky",
109
110
  "preview": "vite preview -c node/vite/app.config.ts",
@@ -111,5 +112,5 @@
111
112
  },
112
113
  "type": "module",
113
114
  "types": "dist/lib/lib.d.ts",
114
- "version": "0.2.28"
115
+ "version": "0.2.29"
115
116
  }