sass-template-common 0.9.199 → 0.9.200
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 +18 -2
- package/dist/sass-template-common.js +1248 -1243
- package/dist/sass-template-common.umd.cjs +34 -34
- package/package.json +1 -1
|
@@ -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
|
}
|
|
@@ -1628,6 +1640,7 @@ declare interface Modulo3ColumnasProps {
|
|
|
1628
1640
|
content: Array<NewListResponseData> | Array<VideoResponseData>;
|
|
1629
1641
|
banners?: BannerResponse[];
|
|
1630
1642
|
slot_id?: string;
|
|
1643
|
+
isHome?: boolean;
|
|
1631
1644
|
hasLines?: boolean;
|
|
1632
1645
|
bannerPositionIndex?: Array<number>;
|
|
1633
1646
|
isVideo?: boolean;
|
|
@@ -2294,6 +2307,7 @@ declare type Props_18 = {
|
|
|
2294
2307
|
slot_id: string;
|
|
2295
2308
|
data: any;
|
|
2296
2309
|
banners: BannerResponse[];
|
|
2310
|
+
isHome?: boolean;
|
|
2297
2311
|
};
|
|
2298
2312
|
|
|
2299
2313
|
declare type Props_19 = {
|
|
@@ -2325,6 +2339,7 @@ declare type Props_21 = {
|
|
|
2325
2339
|
config: Config;
|
|
2326
2340
|
banners: BannerResponse[];
|
|
2327
2341
|
showTagBySection?: boolean;
|
|
2342
|
+
pathname?: string;
|
|
2328
2343
|
};
|
|
2329
2344
|
|
|
2330
2345
|
declare type Props_22 = {
|
|
@@ -2772,6 +2787,7 @@ export declare const SectionCard5: FC<NewListResponseData & {
|
|
|
2772
2787
|
declare interface SectionCardCarouselProps extends Omit<SectionProps, 'children'> {
|
|
2773
2788
|
content: Array<NewListResponseData>;
|
|
2774
2789
|
slot_id: string;
|
|
2790
|
+
isHome?: boolean;
|
|
2775
2791
|
autorIcon: ReactNode;
|
|
2776
2792
|
paths: RoutePathConfig;
|
|
2777
2793
|
}
|