sass-template-common 0.10.11 → 0.10.13
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/sass-template-common.d.ts +25 -5
- package/dist/sass-template-common.js +1718 -1712
- package/dist/sass-template-common.umd.cjs +20 -20
- package/package.json +1 -1
|
@@ -1304,9 +1304,7 @@ export declare function getConfigOriginAuditReport(comparison?: ConfigOriginComp
|
|
|
1304
1304
|
|
|
1305
1305
|
export declare const getDynamicSlots: (axiosApi: AxiosInstance, config: Config, imgSizes: {
|
|
1306
1306
|
[key: string]: any;
|
|
1307
|
-
},
|
|
1308
|
-
[key: string]: any;
|
|
1309
|
-
}, DYNAMIC_SLOT_TOTAL: number, DYNAMIC_SLOT_SUBINDEXES: number, exclude?: string) => Promise<{
|
|
1307
|
+
}, imageSizes: ImageSizesContractInput | undefined, DYNAMIC_SLOT_TOTAL: number, DYNAMIC_SLOT_SUBINDEXES: number, exclude?: string) => Promise<{
|
|
1310
1308
|
[key: string]: any;
|
|
1311
1309
|
}>;
|
|
1312
1310
|
|
|
@@ -1342,7 +1340,7 @@ export declare const getPreloadImages: (list: NewListResponseData[], PRELOADED_I
|
|
|
1342
1340
|
|
|
1343
1341
|
export declare const getPrevMeta: (config: Config, paths: Array<string>, page: number) => string;
|
|
1344
1342
|
|
|
1345
|
-
export declare const getRelatedNewsCarrousel: (currentNew: NewListResponseData, internalPath: string, commonServices: CommonServices
|
|
1343
|
+
export declare const getRelatedNewsCarrousel: (currentNew: NewListResponseData, internalPath: string, commonServices: CommonServices) => Promise<NewListResponseData[] | undefined>;
|
|
1346
1344
|
|
|
1347
1345
|
export declare function getReportReasonLabel(reasonKey: ReportReasonKey): string;
|
|
1348
1346
|
|
|
@@ -1616,15 +1614,28 @@ export declare interface ImageSizesContract {
|
|
|
1616
1614
|
og: {
|
|
1617
1615
|
social: SizeString;
|
|
1618
1616
|
};
|
|
1617
|
+
/**
|
|
1618
|
+
* Corte opcional propio de un repo (NO resuelto por `resolveImageSizes`, sin
|
|
1619
|
+
* default congelado). El repo que lo usa lo declara; si un consumidor lo usa
|
|
1620
|
+
* sin declararlo es `undefined` → falla (obliga a configurar, decisión del
|
|
1621
|
+
* owner). Hoy: preview cuadrado-grande de video/clip (`squareLg`) en
|
|
1622
|
+
* radioformula/template/crack-family. Repos que no lo usan lo omiten.
|
|
1623
|
+
*/
|
|
1624
|
+
squareLg?: SizeString;
|
|
1619
1625
|
}
|
|
1620
1626
|
|
|
1621
1627
|
/**
|
|
1622
1628
|
* Partial real (por slot, no solo por grupo): `Partial<ImageSizesContract>` es
|
|
1623
1629
|
* shallow y obligaría a mandar cada grupo completo o nada. Un app puede mandar
|
|
1624
1630
|
* solo algunos slots de `note` y dejar el resto en manos del default congelado.
|
|
1631
|
+
*
|
|
1632
|
+
* `squareLg` (opcional, sin default) va aparte del mapeo de grupos: es un
|
|
1633
|
+
* escalar, no un grupo — pasa tal cual si se provee, se omite si no.
|
|
1625
1634
|
*/
|
|
1626
1635
|
export declare type ImageSizesContractInput = {
|
|
1627
|
-
[G in
|
|
1636
|
+
[G in RequiredGroup]?: Partial<ImageSizesContract[G]>;
|
|
1637
|
+
} & {
|
|
1638
|
+
squareLg?: SizeString;
|
|
1628
1639
|
};
|
|
1629
1640
|
|
|
1630
1641
|
export declare interface ImageSizesResolution {
|
|
@@ -3261,6 +3272,15 @@ export declare interface ReportCommentParams {
|
|
|
3261
3272
|
|
|
3262
3273
|
export declare type ReportReasonKey = keyof typeof REPORT_REASONS;
|
|
3263
3274
|
|
|
3275
|
+
/**
|
|
3276
|
+
* Grupos requeridos del contrato: los que `resolveImageSizes` completa con el
|
|
3277
|
+
* default congelado y el assert exige enteros. Los slots OPCIONALES sin default
|
|
3278
|
+
* (como `squareLg`) se excluyen a mano — no participan del merge ni del assert
|
|
3279
|
+
* obligatorio. Derivado (no hardcode) para que un grupo requerido nuevo entre
|
|
3280
|
+
* solo y siga cubierto por el guard de completitud.
|
|
3281
|
+
*/
|
|
3282
|
+
export declare type RequiredGroup = Exclude<keyof ImageSizesContract, 'squareLg'>;
|
|
3283
|
+
|
|
3264
3284
|
/**
|
|
3265
3285
|
* Reintenta `fn` con backoff exponencial, acotando cada intento con `timeoutMs`
|
|
3266
3286
|
* (un fetch a un bucket S3 colgado no debe bloquear el request indefinidamente).
|