sass-template-common 0.9.194 → 0.9.196

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,7 +7,8 @@ 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';
10
+ import { JSX } from 'react/jsx-runtime';
11
+ import { JSX as JSX_2 } from 'react';
11
12
  import { ReactNode } from 'react';
12
13
  import { RefAttributes } from 'react';
13
14
  import { SVGProps } from 'react';
@@ -378,7 +379,7 @@ export declare interface CommentDate {
378
379
  year?: number;
379
380
  }
380
381
 
381
- export declare const CommentLazyLoader: ({ internalPath, icon, API_ENV, texts, }: CommentLazyLoaderProps) => default_2.JSX.Element;
382
+ export declare const CommentLazyLoader: ({ internalPath, icon, API_ENV, texts, }: CommentLazyLoaderProps) => JSX.Element;
382
383
 
383
384
  declare type CommentLazyLoaderProps = {
384
385
  internalPath: string;
@@ -956,7 +957,7 @@ export declare interface FreeZoneResponse {
956
957
  };
957
958
  }
958
959
 
959
- export declare const GA4: ({ id, dimensionValues }: Props_2) => "" | default_2.JSX.Element | undefined;
960
+ export declare const GA4: ({ id, dimensionValues }: Props_2) => "" | JSX.Element | undefined;
960
961
 
961
962
  export declare const GalleryHeader: ({ newsformated, internal, commonServices, }: {
962
963
  newsformated: NewListResponseData;
@@ -1010,7 +1011,7 @@ export declare const getEnvironmentUrl: () => string | undefined;
1010
1011
 
1011
1012
  export declare const getEnvironmentUrlFront: () => string | undefined;
1012
1013
 
1013
- export declare function getFrontPrefix(): string;
1014
+ export declare function getFrontPrefix(cfg?: PrefixConfig): string;
1014
1015
 
1015
1016
  export declare const getHydratorPath: (props: Props_3) => string;
1016
1017
 
@@ -1054,7 +1055,7 @@ export declare const getScriptReplaces: {
1054
1055
  [key in MetadataDefaultsKeys]: (props: Props_6) => replaces | undefined;
1055
1056
  };
1056
1057
 
1057
- export declare function getServicePrefix(): string;
1058
+ export declare function getServicePrefix(cfg?: PrefixConfig): string;
1058
1059
 
1059
1060
  export declare const getSlugs: {
1060
1061
  [key in MetadataDefaultsKeys]: any;
@@ -1157,7 +1158,7 @@ declare type HeaderProps = {
1157
1158
 
1158
1159
  export declare const HeaderSectionComponent: FC<Props_12>;
1159
1160
 
1160
- export declare function HomeCard(props: SectionCardProps_3): default_2.JSX.Element;
1161
+ export declare function HomeCard(props: SectionCardProps_3): JSX.Element;
1161
1162
 
1162
1163
  declare interface ICommonServices {
1163
1164
  config?: Config;
@@ -1456,7 +1457,7 @@ export declare const LiveBlogHeader: FC<Props_43>;
1456
1457
  declare const Location_2: FC<Props_23>;
1457
1458
  export { Location_2 as Location }
1458
1459
 
1459
- export declare function LoginForm({ API_ENV, texts, }: Props_14): default_2.JSX.Element;
1460
+ export declare function LoginForm({ API_ENV, texts, }: Props_14): JSX.Element;
1460
1461
 
1461
1462
  export declare type Logo = {
1462
1463
  url: string;
@@ -1518,7 +1519,7 @@ export declare class MainComponentServices {
1518
1519
 
1519
1520
  export declare const Marfeel: () => "" | JSX.Element | undefined;
1520
1521
 
1521
- export declare const MasNoticiasLazyLoader: ({ section, internalPath, stylesConfig, paths, API_ENV, fetchConfig, }: MasNoticiasLazyLoaderProps) => default_2.JSX.Element;
1522
+ export declare const MasNoticiasLazyLoader: ({ section, internalPath, stylesConfig, paths, API_ENV, fetchConfig, }: MasNoticiasLazyLoaderProps) => JSX.Element;
1522
1523
 
1523
1524
  declare type MasNoticiasLazyLoaderProps = {
1524
1525
  section: string;
@@ -1558,7 +1559,7 @@ export declare const metadata_defaults: {
1558
1559
 
1559
1560
  export declare type MetadataDefaultsKeys = '404' | 'home' | 'slug' | 'news' | 'anuncia' | 'autor' | 'buscar' | 'contacto' | 'pages' | 'seccion' | 'tema' | 'ultimas-noticias' | 'video' | 'videos' | 'auth';
1560
1561
 
1561
- export declare const metadataToJSX: (metadata: any) => JSX.Element[];
1562
+ export declare const metadataToJSX: (metadata: any) => JSX_2.Element[];
1562
1563
 
1563
1564
  export declare const MiddleSection: FC<Props_26>;
1564
1565
 
@@ -2116,6 +2117,18 @@ export declare const pathnameSplit: (pathname: string) => {
2116
2117
  */
2117
2118
  export declare const pickBannerVariant: (value: string, scope?: BannerScope) => string;
2118
2119
 
2120
+ /**
2121
+ * Subconjunto de config necesario para resolver prefijos.
2122
+ * Se acepta como argumento opcional para poder usar estos helpers en
2123
+ * componentes client (donde `getConfig()` no está inicializado y la config
2124
+ * llega vía prop `API_ENV`). Si no se pasa, cae en `getConfig()` (server).
2125
+ */
2126
+ declare type PrefixConfig = {
2127
+ PUBLIC_SERVICE_PREFIX?: string;
2128
+ PUBLIC_IS_SUB_PUBLICATION?: string;
2129
+ FORCE_SUB_PUBLICATION_PREFIX?: string;
2130
+ };
2131
+
2119
2132
  export declare interface PreloadImage {
2120
2133
  href: string;
2121
2134
  media?: string;
@@ -2247,6 +2260,9 @@ declare type Props_14 = {
2247
2260
  COGNITO_AUTH_PREFIX: string;
2248
2261
  PUBLIC_ENV: string;
2249
2262
  CAPTCHA_KEY: string;
2263
+ PUBLIC_SERVICE_PREFIX?: string;
2264
+ PUBLIC_IS_SUB_PUBLICATION?: string;
2265
+ FORCE_SUB_PUBLICATION_PREFIX?: string;
2250
2266
  };
2251
2267
  texts?: textsType;
2252
2268
  };
@@ -2653,7 +2669,7 @@ export declare const ReCaptchaRender: ({ defaultRouteName }: {
2653
2669
  defaultRouteName: string;
2654
2670
  }) => false | "" | JSX.Element | undefined;
2655
2671
 
2656
- export declare function RegisterForm({ texts, API_ENV, termsAndConditionsUrl }: Props_15): default_2.JSX.Element;
2672
+ export declare function RegisterForm({ texts, API_ENV, termsAndConditionsUrl }: Props_15): JSX.Element;
2657
2673
 
2658
2674
  declare interface Related {
2659
2675
  automatic: boolean;