sass-template-common 0.9.181 → 0.9.183
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 +36 -36
- package/dist/sass-template-common.d.ts +18 -8
- package/dist/sass-template-common.js +5047 -5423
- package/dist/sass-template-common.umd.cjs +65 -68
- package/package.json +68 -68
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';
|
|
@@ -192,6 +193,14 @@ declare interface CarruselCardProps extends Omit<CarrouselProps, 'slot_id'> {
|
|
|
192
193
|
|
|
193
194
|
export declare const CarruselOpinion: FC<SectionCardCarouselProps>;
|
|
194
195
|
|
|
196
|
+
/**
|
|
197
|
+
* Recorre recursivamente un schema (objeto o array) y elimina toda entry
|
|
198
|
+
* que quede sin valor. Si una propiedad de un objeto queda sin valor, la
|
|
199
|
+
* propiedad se elimina del objeto; si un item de un array queda sin valor,
|
|
200
|
+
* se quita del array.
|
|
201
|
+
*/
|
|
202
|
+
export declare const cleanSchema: <T>(value: T) => T;
|
|
203
|
+
|
|
195
204
|
export declare const coloringByStrokeSVGs: string[];
|
|
196
205
|
|
|
197
206
|
/** Textos del popup anónimo (AnonimusPopUp.tsx) */
|
|
@@ -356,7 +365,7 @@ export declare interface CommentDate {
|
|
|
356
365
|
year?: number;
|
|
357
366
|
}
|
|
358
367
|
|
|
359
|
-
export declare const CommentLazyLoader: ({ internalPath, icon, API_ENV, texts, }: CommentLazyLoaderProps) =>
|
|
368
|
+
export declare const CommentLazyLoader: ({ internalPath, icon, API_ENV, texts, }: CommentLazyLoaderProps) => JSX.Element;
|
|
360
369
|
|
|
361
370
|
declare type CommentLazyLoaderProps = {
|
|
362
371
|
internalPath: string;
|
|
@@ -934,7 +943,7 @@ export declare interface FreeZoneResponse {
|
|
|
934
943
|
};
|
|
935
944
|
}
|
|
936
945
|
|
|
937
|
-
export declare const GA4: ({ id, dimensionValues }: Props_2) => "" |
|
|
946
|
+
export declare const GA4: ({ id, dimensionValues }: Props_2) => "" | JSX.Element | undefined;
|
|
938
947
|
|
|
939
948
|
export declare const GalleryHeader: ({ newsformated, internal, commonServices, }: {
|
|
940
949
|
newsformated: NewListResponseData;
|
|
@@ -1135,7 +1144,7 @@ declare type HeaderProps = {
|
|
|
1135
1144
|
|
|
1136
1145
|
export declare const HeaderSectionComponent: FC<Props_12>;
|
|
1137
1146
|
|
|
1138
|
-
export declare function HomeCard(props: SectionCardProps_3):
|
|
1147
|
+
export declare function HomeCard(props: SectionCardProps_3): JSX.Element;
|
|
1139
1148
|
|
|
1140
1149
|
declare interface ICommonServices {
|
|
1141
1150
|
config?: Config;
|
|
@@ -1426,7 +1435,7 @@ export declare const LiveBlogHeader: FC<Props_43>;
|
|
|
1426
1435
|
declare const Location_2: FC<Props_23>;
|
|
1427
1436
|
export { Location_2 as Location }
|
|
1428
1437
|
|
|
1429
|
-
export declare function LoginForm({ API_ENV, texts, }: Props_14):
|
|
1438
|
+
export declare function LoginForm({ API_ENV, texts, }: Props_14): JSX.Element;
|
|
1430
1439
|
|
|
1431
1440
|
export declare type Logo = {
|
|
1432
1441
|
url: string;
|
|
@@ -1488,7 +1497,7 @@ export declare class MainComponentServices {
|
|
|
1488
1497
|
|
|
1489
1498
|
export declare const Marfeel: () => "" | JSX.Element | undefined;
|
|
1490
1499
|
|
|
1491
|
-
export declare const MasNoticiasLazyLoader: ({ section, internalPath, stylesConfig, paths, API_ENV, fetchConfig, }: MasNoticiasLazyLoaderProps) =>
|
|
1500
|
+
export declare const MasNoticiasLazyLoader: ({ section, internalPath, stylesConfig, paths, API_ENV, fetchConfig, }: MasNoticiasLazyLoaderProps) => JSX.Element;
|
|
1492
1501
|
|
|
1493
1502
|
declare type MasNoticiasLazyLoaderProps = {
|
|
1494
1503
|
section: string;
|
|
@@ -1528,7 +1537,7 @@ export declare const metadata_defaults: {
|
|
|
1528
1537
|
|
|
1529
1538
|
export declare type MetadataDefaultsKeys = '404' | 'home' | 'slug' | 'news' | 'anuncia' | 'autor' | 'buscar' | 'contacto' | 'pages' | 'seccion' | 'tema' | 'ultimas-noticias' | 'video' | 'videos' | 'auth';
|
|
1530
1539
|
|
|
1531
|
-
export declare const metadataToJSX: (metadata: any) =>
|
|
1540
|
+
export declare const metadataToJSX: (metadata: any) => JSX_2.Element[];
|
|
1532
1541
|
|
|
1533
1542
|
export declare const MiddleSection: FC<Props_26>;
|
|
1534
1543
|
|
|
@@ -2623,7 +2632,7 @@ export declare const ReCaptchaRender: ({ defaultRouteName }: {
|
|
|
2623
2632
|
defaultRouteName: string;
|
|
2624
2633
|
}) => false | "" | JSX.Element | undefined;
|
|
2625
2634
|
|
|
2626
|
-
export declare function RegisterForm({ texts, API_ENV, termsAndConditionsUrl }: Props_15):
|
|
2635
|
+
export declare function RegisterForm({ texts, API_ENV, termsAndConditionsUrl }: Props_15): JSX.Element;
|
|
2627
2636
|
|
|
2628
2637
|
declare interface Related {
|
|
2629
2638
|
automatic: boolean;
|
|
@@ -2831,6 +2840,7 @@ declare interface SectionProps {
|
|
|
2831
2840
|
isOpinion?: boolean;
|
|
2832
2841
|
children: ReactNode;
|
|
2833
2842
|
isTitle?: boolean;
|
|
2843
|
+
noHeading?: boolean;
|
|
2834
2844
|
}
|
|
2835
2845
|
|
|
2836
2846
|
export declare const SectionServerComponent: FC<Props_8>;
|