sass-template-common 0.11.19 → 0.11.21

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.
@@ -1079,6 +1079,8 @@ export declare type EmailParams = {
1079
1079
  body: string;
1080
1080
  };
1081
1081
 
1082
+ export declare const EMPTY_PREVIEW: Preview;
1083
+
1082
1084
  /**
1083
1085
  * Fallback completo (no solo `{data: []}`) para endpoints tipados `NewListResponse`:
1084
1086
  * algunos consumidores leen `response.data.entity`/`site`/`publication`, no solo `.data.data`.
@@ -1087,6 +1089,9 @@ export declare function emptyNewListResponse(): NewListResponse;
1087
1089
 
1088
1090
  export declare function encodeApiEnv<T extends Record<string, any>>(env: T): Record<string, any>;
1089
1091
 
1092
+ /** El CMS manda `preview: false` cuando la nota no tiene imagen. `??` no lo cubre. */
1093
+ export declare function ensurePreview(value: unknown): Preview;
1094
+
1090
1095
  export declare interface Entity {
1091
1096
  color: string;
1092
1097
  description: string;
@@ -4130,6 +4135,8 @@ export declare const WebsiteList: ({ config }: {
4130
4135
  config: Config;
4131
4136
  }) => JSX.Element;
4132
4137
 
4138
+ export declare function withPreviewFallback(item: NewListResponseData): NewListResponseData;
4139
+
4133
4140
  /**
4134
4141
  * Prefija una clase base con `nota-prerender` cuando corresponde.
4135
4142
  * Usar solo en el link principal de título/texto de la card, nunca en links de imagen.