sass-template-common 0.9.199 → 0.9.201

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.
@@ -201,6 +201,7 @@ declare interface CarruselCardProps extends Omit<CarrouselProps, 'slot_id'> {
201
201
  heightImageOverwrite?: string;
202
202
  heightImageOverwriteMobile?: string;
203
203
  slot_id: string;
204
+ isHome?: boolean;
204
205
  paths: RoutePathConfig;
205
206
  }
206
207
 
@@ -689,6 +690,7 @@ declare interface DestacadoNoticiasProps extends Omit<ImageProps_2, 'preview'>,
689
690
  description: string;
690
691
  };
691
692
  slot_id?: string;
693
+ isHome?: boolean;
692
694
  banner?: ReactNode;
693
695
  customVariables?: CSSProperties;
694
696
  paths: RoutePathConfig;
@@ -724,6 +726,7 @@ declare interface DestacadoVideosProps extends Omit<ImageProps_2, 'preview'>, Om
724
726
  description: string;
725
727
  };
726
728
  slot_id?: string;
729
+ isHome?: boolean;
727
730
  banner?: ReactNode;
728
731
  paths: RoutePathConfig;
729
732
  }
@@ -746,11 +749,11 @@ export declare class DynamicBlockServices extends CommonServices {
746
749
  }>;
747
750
  }
748
751
 
749
- export declare const DynamicComponents: ({ slots, DYNAMIC_SLOT_SUBINDEXES, stylesConfig, AutorIcon, config, banners, showTagBySection, }: Props_21) => JSX.Element[];
752
+ export declare const DynamicComponents: ({ slots, DYNAMIC_SLOT_SUBINDEXES, stylesConfig, AutorIcon, config, banners, showTagBySection, pathname, }: Props_21) => JSX.Element[];
750
753
 
751
754
  export declare const DynamicMainSlot: ({ component, data, banners, rightOnlyBanner, }: Props_20) => JSX.Element;
752
755
 
753
- export declare function DynamicSlot({ component, slot_id, data, banners, }: Props_18): JSX.Element | undefined;
756
+ export declare function DynamicSlot({ component, slot_id, data, banners, isHome, }: Props_18): JSX.Element | undefined;
754
757
 
755
758
  export declare const EditorialBlock: FC<Props_7>;
756
759
 
@@ -1272,6 +1275,12 @@ export declare interface ISection {
1272
1275
  url: string;
1273
1276
  }
1274
1277
 
1278
+ /**
1279
+ * Única fuente de verdad para saber si un pathname corresponde al home.
1280
+ * Misma regla que usa el schema ItemList (ver schemas/item.list.server.tsx).
1281
+ */
1282
+ export declare const isHomePath: (pathname?: string) => boolean;
1283
+
1275
1284
  export declare const isPhotoGallery: (news: NewListResponseData) => boolean | undefined;
1276
1285
 
1277
1286
  export declare class IssuuServices {
@@ -1571,6 +1580,7 @@ declare interface Modulo1x3CardProps {
1571
1580
  content: Array<NewListResponseData>;
1572
1581
  hasLines?: boolean;
1573
1582
  slot_id?: string;
1583
+ isHome?: boolean;
1574
1584
  showNewsLikeTitle?: boolean;
1575
1585
  }
1576
1586
 
@@ -1587,6 +1597,7 @@ declare interface Modulo1x4Props {
1587
1597
  banner?: ReactNode;
1588
1598
  banners?: BannerResponse[];
1589
1599
  slot_id?: string;
1600
+ isHome?: boolean;
1590
1601
  hasLines?: boolean;
1591
1602
  paths: RoutePathConfig;
1592
1603
  }
@@ -1601,6 +1612,7 @@ declare interface Modulo1x5Props {
1601
1612
  banner?: ReactNode;
1602
1613
  banners?: BannerResponse[];
1603
1614
  slot_id?: string;
1615
+ isHome?: boolean;
1604
1616
  hasLines?: boolean;
1605
1617
  paths: RoutePathConfig;
1606
1618
  }
@@ -1619,6 +1631,7 @@ declare interface Modulo2ColumnasProps {
1619
1631
  bannerArray?: ReactNode[];
1620
1632
  halfPageBanner?: ReactNode;
1621
1633
  backgroundColor?: string;
1634
+ isHome?: boolean;
1622
1635
  paths: RoutePathConfig;
1623
1636
  }
1624
1637
 
@@ -1628,6 +1641,7 @@ declare interface Modulo3ColumnasProps {
1628
1641
  content: Array<NewListResponseData> | Array<VideoResponseData>;
1629
1642
  banners?: BannerResponse[];
1630
1643
  slot_id?: string;
1644
+ isHome?: boolean;
1631
1645
  hasLines?: boolean;
1632
1646
  bannerPositionIndex?: Array<number>;
1633
1647
  isVideo?: boolean;
@@ -2294,6 +2308,7 @@ declare type Props_18 = {
2294
2308
  slot_id: string;
2295
2309
  data: any;
2296
2310
  banners: BannerResponse[];
2311
+ isHome?: boolean;
2297
2312
  };
2298
2313
 
2299
2314
  declare type Props_19 = {
@@ -2325,6 +2340,7 @@ declare type Props_21 = {
2325
2340
  config: Config;
2326
2341
  banners: BannerResponse[];
2327
2342
  showTagBySection?: boolean;
2343
+ pathname?: string;
2328
2344
  };
2329
2345
 
2330
2346
  declare type Props_22 = {
@@ -2772,6 +2788,7 @@ export declare const SectionCard5: FC<NewListResponseData & {
2772
2788
  declare interface SectionCardCarouselProps extends Omit<SectionProps, 'children'> {
2773
2789
  content: Array<NewListResponseData>;
2774
2790
  slot_id: string;
2791
+ isHome?: boolean;
2775
2792
  autorIcon: ReactNode;
2776
2793
  paths: RoutePathConfig;
2777
2794
  }