sass-cms-template-common 0.0.8 → 0.0.10
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 +51 -5
- package/dist/index.js +1801 -1453
- package/dist/index.js.map +1 -1
- package/dist/server.d.ts +4 -0
- package/package.json +1 -1
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,10 @@ 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';
|
|
4041
|
+
/** Si el href apunta al admin legacy (JSP/Angular), se prefija con `legacyBaseUrl`. */
|
|
4042
|
+
legacy?: boolean;
|
|
4029
4043
|
};
|
|
4030
4044
|
|
|
4031
4045
|
/** Columna del menú "Nuevo" (Frecuentes / Otros / Videos). */
|
|
@@ -5593,6 +5607,8 @@ export declare const ptMessages: {
|
|
|
5593
5607
|
collapse: string;
|
|
5594
5608
|
expand: string;
|
|
5595
5609
|
newBadge: string;
|
|
5610
|
+
pin: string;
|
|
5611
|
+
unpin: string;
|
|
5596
5612
|
};
|
|
5597
5613
|
topBar: {
|
|
5598
5614
|
openSidebar: string;
|
|
@@ -6182,7 +6198,7 @@ export declare const shadows: {
|
|
|
6182
6198
|
readonly flyout: "0px 8px 16px rgba(0, 0, 0, 0.18)";
|
|
6183
6199
|
};
|
|
6184
6200
|
|
|
6185
|
-
export declare function Sidebar({ open, pathname, permissions, LinkComponent,
|
|
6201
|
+
export declare function Sidebar({ open, pathname, permissions, LinkComponent, legacyBaseUrl, selectedPublicationId, }: SidebarProps): JSX.Element;
|
|
6186
6202
|
|
|
6187
6203
|
export declare type SidebarMessageKey = keyof CmsMessages['sidebar'];
|
|
6188
6204
|
|
|
@@ -6191,10 +6207,39 @@ export declare type SidebarProps = {
|
|
|
6191
6207
|
pathname: string;
|
|
6192
6208
|
LinkComponent?: CmsLinkComponent;
|
|
6193
6209
|
permissions: Array<NavItemPermissions>;
|
|
6194
|
-
|
|
6210
|
+
/** Dominio del admin legacy (JSP/Angular) para prefijar hrefs con `item.legacy`. */
|
|
6211
|
+
legacyBaseUrl?: string;
|
|
6195
6212
|
selectedPublicationId: string;
|
|
6196
6213
|
};
|
|
6197
6214
|
|
|
6215
|
+
/**
|
|
6216
|
+
* Variante compacta del sidebar: rail vertical de íconos con etiqueta debajo,
|
|
6217
|
+
* sin modo expandido. Los ítems con hijos abren un menú flotante a la derecha.
|
|
6218
|
+
* Al pasar el mouse sobre un ítem aparece un botón para anclarlo arriba del
|
|
6219
|
+
* todo. El anclado se identifica por `item.module` y persiste vía
|
|
6220
|
+
* `profileServices.addPins`/`deletePins`/`getPins` (recurso de perfil).
|
|
6221
|
+
*/
|
|
6222
|
+
export declare function SidebarRail({ pathname, permissions, LinkComponent, legacyBaseUrl, items, profileServices, }: SidebarRailProps): JSX.Element;
|
|
6223
|
+
|
|
6224
|
+
/** Servicio de pines usado por el rail: solo necesita estos tres métodos. */
|
|
6225
|
+
export declare type SidebarRailPinService = Pick<CmsProfileServices, 'addPins' | 'deletePins' | 'getPins'>;
|
|
6226
|
+
|
|
6227
|
+
export declare type SidebarRailProps = {
|
|
6228
|
+
pathname: string;
|
|
6229
|
+
LinkComponent?: CmsLinkComponent;
|
|
6230
|
+
permissions: Array<NavItemPermissions>;
|
|
6231
|
+
/** Dominio del admin legacy (JSP/Angular) para prefijar hrefs con `item.legacy`. */
|
|
6232
|
+
legacyBaseUrl?: string;
|
|
6233
|
+
/** Ítems de navegación. Por defecto, `ACCOUNT_NAV_BLOCKS`. */
|
|
6234
|
+
items?: NavLinkItem[];
|
|
6235
|
+
/**
|
|
6236
|
+
* Servicio de pines (`CmsProfileServices`, construido por el host con su
|
|
6237
|
+
* `axiosApi`/`authentication`). Si se omite, el anclado es solo visual y no
|
|
6238
|
+
* persiste entre sesiones.
|
|
6239
|
+
*/
|
|
6240
|
+
profileServices?: SidebarRailPinService;
|
|
6241
|
+
};
|
|
6242
|
+
|
|
6198
6243
|
/**
|
|
6199
6244
|
* Menú desplegable genérico y presentacional. Renderiza una lista de opciones
|
|
6200
6245
|
* recibidas por props y ejecuta el `onClick` de cada una. Soporta una o dos
|
|
@@ -6613,8 +6658,9 @@ export declare type TopBarMessageKey = keyof CmsMessages['topBar'];
|
|
|
6613
6658
|
|
|
6614
6659
|
export declare type TopBarProps = {
|
|
6615
6660
|
sites: SiteSection[];
|
|
6616
|
-
|
|
6617
|
-
|
|
6661
|
+
/** Solo aplica con un sidebar colapsable (p. ej. `Sidebar`). Omitir oculta el botón. */
|
|
6662
|
+
sidebarOpen?: boolean;
|
|
6663
|
+
onToggleSidebar?: () => void;
|
|
6618
6664
|
notificationUnreadCount: number;
|
|
6619
6665
|
/** Respuesta cruda de `POST /dashboard/notification` (newsTask/expireTask/videos). */
|
|
6620
6666
|
notificationsData?: DashboardNotificationsResponse | null;
|