sass-cms-template-common 0.0.8 → 0.0.9

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/index.d.ts CHANGED
@@ -35,7 +35,7 @@ export declare type AppMessageNode = string | {
35
35
  /** Árbol de mensajes del gestor (namespaces → claves → string anidable). */
36
36
  export declare type AppMessages = Record<string, AppMessageNode>;
37
37
 
38
- export declare function AppShell({ pathname, sites, children, notificationUnreadCount, notificationsData, profile, primaryLogo, brandLogo, selectedPublicationId, getPublicationHref, resolvePublicationImageUrl, profileAvatarOptions, legacyBaseUrl, cmsBaseUrl, legacySession, newContentGroups, previewFormats, operationPermissions, isAdmin, onNewContentSelect, onPreviewSelect, LinkComponent, permissions, locale, language, messages, appMessages, baseUrl, }: AppShellProps): JSX.Element;
38
+ export declare function AppShell({ pathname, sites, children, notificationUnreadCount, notificationsData, profile, primaryLogo, brandLogo, selectedPublicationId, getPublicationHref, resolvePublicationImageUrl, profileAvatarOptions, legacyBaseUrl, cmsBaseUrl, legacySession, newContentGroups, previewFormats, operationPermissions, isAdmin, onNewContentSelect, onPreviewSelect, LinkComponent, permissions, locale, language, messages, appMessages, baseUrl, profileServices, }: AppShellProps): JSX.Element;
39
39
 
40
40
  export declare type AppShellProps = {
41
41
  pathname: string;
@@ -80,6 +80,12 @@ export declare type AppShellProps = {
80
80
  /** Catálogo de mensajes propio del gestor (namespaces libres, es/en/pt). */
81
81
  appMessages?: AppLocaleCatalog;
82
82
  baseUrl: string;
83
+ /**
84
+ * Servicio de pines del sidebar (`CmsProfileServices`, construido por el
85
+ * host con su `axiosApi`/`authentication`). Si se omite, el anclado de
86
+ * accesos es solo visual y no persiste entre sesiones.
87
+ */
88
+ profileServices?: SidebarRailPinService;
83
89
  };
84
90
 
85
91
  /** Traductor genérico de claves del gestor por ruta con puntos (`ns.clave`). */
@@ -2856,6 +2862,8 @@ export declare const enMessages: {
2856
2862
  readonly collapse: "Collapse";
2857
2863
  readonly expand: "Expand";
2858
2864
  readonly newBadge: "New";
2865
+ readonly pin: "Pin to top";
2866
+ readonly unpin: "Unpin";
2859
2867
  };
2860
2868
  readonly topBar: {
2861
2869
  readonly openSidebar: "Open sidebar menu";
@@ -3040,6 +3048,8 @@ export declare const esMessages: {
3040
3048
  collapse: string;
3041
3049
  expand: string;
3042
3050
  newBadge: string;
3051
+ pin: string;
3052
+ unpin: string;
3043
3053
  };
3044
3054
  topBar: {
3045
3055
  openSidebar: string;
@@ -4026,6 +4036,8 @@ export declare type NavLinkItem = {
4026
4036
  badge?: string;
4027
4037
  children?: NavLinkItem[];
4028
4038
  defaultOpen?: boolean;
4039
+ /** Acento visual (p. ej. destacar un ítem generado/asistido por IA). */
4040
+ accent?: 'ai';
4029
4041
  };
4030
4042
 
4031
4043
  /** Columna del menú "Nuevo" (Frecuentes / Otros / Videos). */
@@ -5593,6 +5605,8 @@ export declare const ptMessages: {
5593
5605
  collapse: string;
5594
5606
  expand: string;
5595
5607
  newBadge: string;
5608
+ pin: string;
5609
+ unpin: string;
5596
5610
  };
5597
5611
  topBar: {
5598
5612
  openSidebar: string;
@@ -6195,6 +6209,33 @@ export declare type SidebarProps = {
6195
6209
  selectedPublicationId: string;
6196
6210
  };
6197
6211
 
6212
+ /**
6213
+ * Variante compacta del sidebar: rail vertical de íconos con etiqueta debajo,
6214
+ * sin modo expandido. Los ítems con hijos abren un menú flotante a la derecha.
6215
+ * Al pasar el mouse sobre un ítem aparece un botón para anclarlo arriba del
6216
+ * todo. El anclado se identifica por `item.module` y persiste vía
6217
+ * `profileServices.addPins`/`deletePins`/`getPins` (recurso de perfil).
6218
+ */
6219
+ export declare function SidebarRail({ pathname, permissions, LinkComponent, baseUrl, items, profileServices, }: SidebarRailProps): JSX.Element;
6220
+
6221
+ /** Servicio de pines usado por el rail: solo necesita estos tres métodos. */
6222
+ export declare type SidebarRailPinService = Pick<CmsProfileServices, 'addPins' | 'deletePins' | 'getPins'>;
6223
+
6224
+ export declare type SidebarRailProps = {
6225
+ pathname: string;
6226
+ LinkComponent?: CmsLinkComponent;
6227
+ permissions: Array<NavItemPermissions>;
6228
+ baseUrl: string;
6229
+ /** Ítems de navegación. Por defecto, `ACCOUNT_NAV_BLOCKS`. */
6230
+ items?: NavLinkItem[];
6231
+ /**
6232
+ * Servicio de pines (`CmsProfileServices`, construido por el host con su
6233
+ * `axiosApi`/`authentication`). Si se omite, el anclado es solo visual y no
6234
+ * persiste entre sesiones.
6235
+ */
6236
+ profileServices?: SidebarRailPinService;
6237
+ };
6238
+
6198
6239
  /**
6199
6240
  * Menú desplegable genérico y presentacional. Renderiza una lista de opciones
6200
6241
  * recibidas por props y ejecuta el `onClick` de cada una. Soporta una o dos
@@ -6613,8 +6654,9 @@ export declare type TopBarMessageKey = keyof CmsMessages['topBar'];
6613
6654
 
6614
6655
  export declare type TopBarProps = {
6615
6656
  sites: SiteSection[];
6616
- sidebarOpen: boolean;
6617
- onToggleSidebar: () => void;
6657
+ /** Solo aplica con un sidebar colapsable (p. ej. `Sidebar`). Omitir oculta el botón. */
6658
+ sidebarOpen?: boolean;
6659
+ onToggleSidebar?: () => void;
6618
6660
  notificationUnreadCount: number;
6619
6661
  /** Respuesta cruda de `POST /dashboard/notification` (newsTask/expireTask/videos). */
6620
6662
  notificationsData?: DashboardNotificationsResponse | null;