sass-template-common 0.10.42 → 0.11.0

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.
@@ -2708,6 +2708,7 @@ declare type PrefixConfig = {
2708
2708
  PUBLIC_SERVICE_PREFIX?: string;
2709
2709
  PUBLIC_IS_SUB_PUBLICATION?: string;
2710
2710
  FORCE_SUB_PUBLICATION_PREFIX?: string;
2711
+ LINK_REMOVE?: string;
2711
2712
  };
2712
2713
 
2713
2714
  export declare interface PreloadImage {
@@ -3846,11 +3847,22 @@ export declare const toISOWithTimeZone: (value: number | string, timeZone: strin
3846
3847
  * front prefix público. Se arma: origin público + front prefix + path sin el
3847
3848
  * service prefix. El origin ajeno queda normalizado como efecto.
3848
3849
  *
3850
+ * IMPORTANTE — el swap sólo se habilita si el sitio DECLARA que el service
3851
+ * prefix es un namespace interno, vía front prefix (`FORCE_SUB_PUBLICATION_PREFIX`
3852
+ * / `PUBLIC_IS_SUB_PUBLICATION`) o vía `LINK_REMOVE` apuntando al mismo prefijo.
3853
+ * Sin esa declaración el "swap" degeneraría en un BORRADO de segmento, y el
3854
+ * nombre del service prefix puede coincidir con el de una sección real: en
3855
+ * `futbol.radioformula.com.mx` (`PUBLIC_SERVICE_PREFIX=futbol`, sin front
3856
+ * prefix) el canonical `.../futbol/nota.html` apunta a la sección `/futbol`,
3857
+ * no a un namespace filtrado, y reescribirlo rompía la URL.
3858
+ *
3849
3859
  * Todo lo demás se devuelve sin tocar → retrocompatible:
3850
3860
  * - URL ya correcta (path bajo `/en`, no bajo `/soyfutbolen`),
3851
3861
  * - canónica cross-domain intencional de contenido sindicado (path NO bajo
3852
3862
  * el service prefix),
3853
3863
  * - publicación principal (sin service prefix → return temprano),
3864
+ * - sitio con service prefix pero sin front prefix ni `LINK_REMOVE` (no hay
3865
+ * namespace interno declarado → return temprano),
3854
3866
  * - subpublicación directa (`frontPrefix === servicePrefix`: el swap deja el
3855
3867
  * path igual y el origin ya es el propio → no-op).
3856
3868
  *