sass-template-common 0.9.235 → 0.9.237
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/README.md +36 -36
- package/dist/sass-template-common.css +1 -1
- package/dist/sass-template-common.d.ts +27 -0
- package/dist/sass-template-common.js +1202 -1169
- package/dist/sass-template-common.umd.cjs +38 -38
- package/dist/ui/components/common/cards/section-card-1/cards-section-card-1.css +1 -1
- package/dist/ui/components/common/journalist-articule-5/journalist-articule-5.css +1 -1
- package/package.json +69 -69
|
@@ -219,6 +219,22 @@ export declare interface BlockSaasResponseData {
|
|
|
219
219
|
news?: NewListResponse | undefined;
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
+
/**
|
|
223
|
+
* Ruta del recurso en el bucket: `${clientName}/${servicePrefix}/${type}/${subtype}/${subtype}.json`.
|
|
224
|
+
* `subtype` se deriva en runtime (nombre del archivo de menú sin `.html`, o el
|
|
225
|
+
* `template` de banners en minúscula) — no forma parte de esta config.
|
|
226
|
+
*/
|
|
227
|
+
export declare type BucketOriginConfig = {
|
|
228
|
+
/** Base URL pública del bucket (sin slash final). Ej: `https://debate-site-configs.s3.us-west-2.amazonaws.com` */
|
|
229
|
+
url: string;
|
|
230
|
+
/** Prefijo raíz del cliente dentro del bucket (ej. `'debate'`). */
|
|
231
|
+
clientName: string;
|
|
232
|
+
/** Sirve el menú (sidebar/menu/footer/freeZone/cintillo + equipos/sites) desde el bucket. */
|
|
233
|
+
menu?: boolean;
|
|
234
|
+
/** Sirve los banners (home/seccion/nota) desde el bucket. */
|
|
235
|
+
banners?: boolean;
|
|
236
|
+
};
|
|
237
|
+
|
|
222
238
|
export declare const buildTagUrl: (tag: Tag, paths: RoutePathConfig) => string;
|
|
223
239
|
|
|
224
240
|
declare interface ButtonCSS {
|
|
@@ -1597,6 +1613,17 @@ export declare type LibraryConfig = {
|
|
|
1597
1613
|
};
|
|
1598
1614
|
LINK_REMOVE?: string;
|
|
1599
1615
|
MULTIPUBLICATION_FETCHES?: any;
|
|
1616
|
+
/**
|
|
1617
|
+
* [origen alternativo] Sirve `getMainMenu`/`getBanners` desde un bucket S3
|
|
1618
|
+
* de configs estáticas en vez del CMS, devolviendo el mismo shape de
|
|
1619
|
+
* respuesta que el endpoint original (`{ data: [...] }`). `url` y
|
|
1620
|
+
* `clientName` son obligatorios dentro del objeto porque solo tienen
|
|
1621
|
+
* sentido junto a al menos un toggle en `true`; sin `BUCKET_ORIGIN` el
|
|
1622
|
+
* comportamiento no cambia (sigue yendo al CMS). Si un archivo no existe
|
|
1623
|
+
* en el bucket para un sitio/tipo dado, el request falla simple (sin
|
|
1624
|
+
* fallback automático al CMS) — igual que cualquier otro fetch fallido.
|
|
1625
|
+
*/
|
|
1626
|
+
BUCKET_ORIGIN?: BucketOriginConfig;
|
|
1600
1627
|
};
|
|
1601
1628
|
|
|
1602
1629
|
export declare interface Link {
|