sass-template-common 0.9.198 → 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/README.md CHANGED
@@ -1,36 +1,36 @@
1
- # sass-template-common
2
-
3
- Librería web, maqueta de configuración y componentes para proyectos sass.
4
-
5
- ## Publicar nueva versión
6
-
7
- Para que los cambios se reflejen al publicar:
8
-
9
- 1. **Subir versión** (obligatorio; si no, npm rechaza o se usa la misma versión):
10
- ```bash
11
- pnpm version:patch # 0.3.21 → 0.3.22
12
- # o
13
- pnpm version:minor # 0.3.21 → 0.4.0
14
- pnpm version:major # 0.3.21 → 1.0.0
15
- ```
16
-
17
- 2. **Build limpio + publicar**:
18
- ```bash
19
- pnpm run clean && pnpm run build && pnpm publish
20
- ```
21
- O en un solo paso (patch):
22
- ```bash
23
- pnpm release:patch
24
- ```
25
-
26
- 3. **`prepublishOnly`**: Antes de cada `pnpm publish` se ejecuta `clean` + `build`, así siempre se publica un build nuevo.
27
-
28
- 4. **En proyectos que consumen la lib**: Actualizar la dependencia y reinstalar:
29
- ```bash
30
- pnpm update sass-template-common
31
- # o cambiar la versión en package.json y luego
32
- pnpm install
33
- ```
34
- Si usan versión fija (`"0.3.21"`), hay que actualizarla a la nueva (p. ej. `"0.3.22"`).
35
-
36
- **Si no ves los cambios:** comprueba que subiste la versión (`version:patch` o similar), que hiciste `clean` + `build` antes de publicar, y que el proyecto consumidor tiene actualizada la dependencia (o `^0.3.21` y ha ejecutado `pnpm update`).
1
+ # sass-template-common
2
+
3
+ Librería web, maqueta de configuración y componentes para proyectos sass.
4
+
5
+ ## Publicar nueva versión
6
+
7
+ Para que los cambios se reflejen al publicar:
8
+
9
+ 1. **Subir versión** (obligatorio; si no, npm rechaza o se usa la misma versión):
10
+ ```bash
11
+ pnpm version:patch # 0.3.21 → 0.3.22
12
+ # o
13
+ pnpm version:minor # 0.3.21 → 0.4.0
14
+ pnpm version:major # 0.3.21 → 1.0.0
15
+ ```
16
+
17
+ 2. **Build limpio + publicar**:
18
+ ```bash
19
+ pnpm run clean && pnpm run build && pnpm publish
20
+ ```
21
+ O en un solo paso (patch):
22
+ ```bash
23
+ pnpm release:patch
24
+ ```
25
+
26
+ 3. **`prepublishOnly`**: Antes de cada `pnpm publish` se ejecuta `clean` + `build`, así siempre se publica un build nuevo.
27
+
28
+ 4. **En proyectos que consumen la lib**: Actualizar la dependencia y reinstalar:
29
+ ```bash
30
+ pnpm update sass-template-common
31
+ # o cambiar la versión en package.json y luego
32
+ pnpm install
33
+ ```
34
+ Si usan versión fija (`"0.3.21"`), hay que actualizarla a la nueva (p. ej. `"0.3.22"`).
35
+
36
+ **Si no ves los cambios:** comprueba que subiste la versión (`version:patch` o similar), que hiciste `clean` + `build` antes de publicar, y que el proyecto consumidor tiene actualizada la dependencia (o `^0.3.21` y ha ejecutado `pnpm update`).
@@ -7,8 +7,7 @@ import { DetailedHTMLProps } from 'react';
7
7
  import { FC } from 'react';
8
8
  import { ForwardRefExoticComponent } from 'react';
9
9
  import { InputHTMLAttributes } from 'react';
10
- import { JSX } from 'react/jsx-runtime';
11
- import { JSX as JSX_2 } from 'react';
10
+ import { JSX } from 'react';
12
11
  import { ReactNode } from 'react';
13
12
  import { RefAttributes } from 'react';
14
13
  import { SVGProps } from 'react';
@@ -202,6 +201,7 @@ declare interface CarruselCardProps extends Omit<CarrouselProps, 'slot_id'> {
202
201
  heightImageOverwrite?: string;
203
202
  heightImageOverwriteMobile?: string;
204
203
  slot_id: string;
204
+ isHome?: boolean;
205
205
  paths: RoutePathConfig;
206
206
  }
207
207
 
@@ -379,7 +379,7 @@ export declare interface CommentDate {
379
379
  year?: number;
380
380
  }
381
381
 
382
- export declare const CommentLazyLoader: ({ internalPath, icon, API_ENV, texts, }: CommentLazyLoaderProps) => JSX.Element;
382
+ export declare const CommentLazyLoader: ({ internalPath, icon, API_ENV, texts, }: CommentLazyLoaderProps) => default_2.JSX.Element;
383
383
 
384
384
  declare type CommentLazyLoaderProps = {
385
385
  internalPath: string;
@@ -690,6 +690,7 @@ declare interface DestacadoNoticiasProps extends Omit<ImageProps_2, 'preview'>,
690
690
  description: string;
691
691
  };
692
692
  slot_id?: string;
693
+ isHome?: boolean;
693
694
  banner?: ReactNode;
694
695
  customVariables?: CSSProperties;
695
696
  paths: RoutePathConfig;
@@ -725,6 +726,7 @@ declare interface DestacadoVideosProps extends Omit<ImageProps_2, 'preview'>, Om
725
726
  description: string;
726
727
  };
727
728
  slot_id?: string;
729
+ isHome?: boolean;
728
730
  banner?: ReactNode;
729
731
  paths: RoutePathConfig;
730
732
  }
@@ -747,11 +749,11 @@ export declare class DynamicBlockServices extends CommonServices {
747
749
  }>;
748
750
  }
749
751
 
750
- 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[];
751
753
 
752
754
  export declare const DynamicMainSlot: ({ component, data, banners, rightOnlyBanner, }: Props_20) => JSX.Element;
753
755
 
754
- 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;
755
757
 
756
758
  export declare const EditorialBlock: FC<Props_7>;
757
759
 
@@ -957,7 +959,7 @@ export declare interface FreeZoneResponse {
957
959
  };
958
960
  }
959
961
 
960
- export declare const GA4: ({ id, dimensionValues }: Props_2) => "" | JSX.Element | undefined;
962
+ export declare const GA4: ({ id, dimensionValues }: Props_2) => "" | default_2.JSX.Element | undefined;
961
963
 
962
964
  export declare const GalleryHeader: ({ newsformated, internal, commonServices, }: {
963
965
  newsformated: NewListResponseData;
@@ -1158,7 +1160,7 @@ declare type HeaderProps = {
1158
1160
 
1159
1161
  export declare const HeaderSectionComponent: FC<Props_12>;
1160
1162
 
1161
- export declare function HomeCard(props: SectionCardProps_3): JSX.Element;
1163
+ export declare function HomeCard(props: SectionCardProps_3): default_2.JSX.Element;
1162
1164
 
1163
1165
  declare interface ICommonServices {
1164
1166
  config?: Config;
@@ -1273,6 +1275,12 @@ export declare interface ISection {
1273
1275
  url: string;
1274
1276
  }
1275
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
+
1276
1284
  export declare const isPhotoGallery: (news: NewListResponseData) => boolean | undefined;
1277
1285
 
1278
1286
  export declare class IssuuServices {
@@ -1457,7 +1465,7 @@ export declare const LiveBlogHeader: FC<Props_43>;
1457
1465
  declare const Location_2: FC<Props_23>;
1458
1466
  export { Location_2 as Location }
1459
1467
 
1460
- export declare function LoginForm({ API_ENV, texts, }: Props_14): JSX.Element;
1468
+ export declare function LoginForm({ API_ENV, texts, }: Props_14): default_2.JSX.Element;
1461
1469
 
1462
1470
  export declare type Logo = {
1463
1471
  url: string;
@@ -1519,7 +1527,7 @@ export declare class MainComponentServices {
1519
1527
 
1520
1528
  export declare const Marfeel: () => "" | JSX.Element | undefined;
1521
1529
 
1522
- export declare const MasNoticiasLazyLoader: ({ section, internalPath, stylesConfig, paths, API_ENV, fetchConfig, }: MasNoticiasLazyLoaderProps) => JSX.Element;
1530
+ export declare const MasNoticiasLazyLoader: ({ section, internalPath, stylesConfig, paths, API_ENV, fetchConfig, }: MasNoticiasLazyLoaderProps) => default_2.JSX.Element;
1523
1531
 
1524
1532
  declare type MasNoticiasLazyLoaderProps = {
1525
1533
  section: string;
@@ -1559,7 +1567,7 @@ export declare const metadata_defaults: {
1559
1567
 
1560
1568
  export declare type MetadataDefaultsKeys = '404' | 'home' | 'slug' | 'news' | 'anuncia' | 'autor' | 'buscar' | 'contacto' | 'pages' | 'seccion' | 'tema' | 'ultimas-noticias' | 'video' | 'videos' | 'auth';
1561
1569
 
1562
- export declare const metadataToJSX: (metadata: any) => JSX_2.Element[];
1570
+ export declare const metadataToJSX: (metadata: any) => JSX.Element[];
1563
1571
 
1564
1572
  export declare const MiddleSection: FC<Props_26>;
1565
1573
 
@@ -1572,6 +1580,7 @@ declare interface Modulo1x3CardProps {
1572
1580
  content: Array<NewListResponseData>;
1573
1581
  hasLines?: boolean;
1574
1582
  slot_id?: string;
1583
+ isHome?: boolean;
1575
1584
  showNewsLikeTitle?: boolean;
1576
1585
  }
1577
1586
 
@@ -1588,6 +1597,7 @@ declare interface Modulo1x4Props {
1588
1597
  banner?: ReactNode;
1589
1598
  banners?: BannerResponse[];
1590
1599
  slot_id?: string;
1600
+ isHome?: boolean;
1591
1601
  hasLines?: boolean;
1592
1602
  paths: RoutePathConfig;
1593
1603
  }
@@ -1602,6 +1612,7 @@ declare interface Modulo1x5Props {
1602
1612
  banner?: ReactNode;
1603
1613
  banners?: BannerResponse[];
1604
1614
  slot_id?: string;
1615
+ isHome?: boolean;
1605
1616
  hasLines?: boolean;
1606
1617
  paths: RoutePathConfig;
1607
1618
  }
@@ -1629,6 +1640,7 @@ declare interface Modulo3ColumnasProps {
1629
1640
  content: Array<NewListResponseData> | Array<VideoResponseData>;
1630
1641
  banners?: BannerResponse[];
1631
1642
  slot_id?: string;
1643
+ isHome?: boolean;
1632
1644
  hasLines?: boolean;
1633
1645
  bannerPositionIndex?: Array<number>;
1634
1646
  isVideo?: boolean;
@@ -2295,6 +2307,7 @@ declare type Props_18 = {
2295
2307
  slot_id: string;
2296
2308
  data: any;
2297
2309
  banners: BannerResponse[];
2310
+ isHome?: boolean;
2298
2311
  };
2299
2312
 
2300
2313
  declare type Props_19 = {
@@ -2326,6 +2339,7 @@ declare type Props_21 = {
2326
2339
  config: Config;
2327
2340
  banners: BannerResponse[];
2328
2341
  showTagBySection?: boolean;
2342
+ pathname?: string;
2329
2343
  };
2330
2344
 
2331
2345
  declare type Props_22 = {
@@ -2669,7 +2683,7 @@ export declare const ReCaptchaRender: ({ defaultRouteName }: {
2669
2683
  defaultRouteName: string;
2670
2684
  }) => false | "" | JSX.Element | undefined;
2671
2685
 
2672
- export declare function RegisterForm({ texts, API_ENV, termsAndConditionsUrl }: Props_15): JSX.Element;
2686
+ export declare function RegisterForm({ texts, API_ENV, termsAndConditionsUrl }: Props_15): default_2.JSX.Element;
2673
2687
 
2674
2688
  declare interface Related {
2675
2689
  automatic: boolean;
@@ -2773,6 +2787,7 @@ export declare const SectionCard5: FC<NewListResponseData & {
2773
2787
  declare interface SectionCardCarouselProps extends Omit<SectionProps, 'children'> {
2774
2788
  content: Array<NewListResponseData>;
2775
2789
  slot_id: string;
2790
+ isHome?: boolean;
2776
2791
  autorIcon: ReactNode;
2777
2792
  paths: RoutePathConfig;
2778
2793
  }