sass-template-common 0.9.186 → 0.9.189
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 +16 -9
- package/dist/sass-template-common.js +6107 -5520
- package/dist/sass-template-common.umd.cjs +167 -66
- package/package.json +69 -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,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
|
|
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';
|
|
@@ -378,7 +377,7 @@ export declare interface CommentDate {
|
|
|
378
377
|
year?: number;
|
|
379
378
|
}
|
|
380
379
|
|
|
381
|
-
export declare const CommentLazyLoader: ({ internalPath, icon, API_ENV, texts, }: CommentLazyLoaderProps) => JSX.Element;
|
|
380
|
+
export declare const CommentLazyLoader: ({ internalPath, icon, API_ENV, texts, }: CommentLazyLoaderProps) => default_2.JSX.Element;
|
|
382
381
|
|
|
383
382
|
declare type CommentLazyLoaderProps = {
|
|
384
383
|
internalPath: string;
|
|
@@ -956,7 +955,7 @@ export declare interface FreeZoneResponse {
|
|
|
956
955
|
};
|
|
957
956
|
}
|
|
958
957
|
|
|
959
|
-
export declare const GA4: ({ id, dimensionValues }: Props_2) => "" | JSX.Element | undefined;
|
|
958
|
+
export declare const GA4: ({ id, dimensionValues }: Props_2) => "" | default_2.JSX.Element | undefined;
|
|
960
959
|
|
|
961
960
|
export declare const GalleryHeader: ({ newsformated, internal, commonServices, }: {
|
|
962
961
|
newsformated: NewListResponseData;
|
|
@@ -1157,7 +1156,7 @@ declare type HeaderProps = {
|
|
|
1157
1156
|
|
|
1158
1157
|
export declare const HeaderSectionComponent: FC<Props_12>;
|
|
1159
1158
|
|
|
1160
|
-
export declare function HomeCard(props: SectionCardProps_3): JSX.Element;
|
|
1159
|
+
export declare function HomeCard(props: SectionCardProps_3): default_2.JSX.Element;
|
|
1161
1160
|
|
|
1162
1161
|
declare interface ICommonServices {
|
|
1163
1162
|
config?: Config;
|
|
@@ -1397,6 +1396,14 @@ export declare type LibraryConfig = {
|
|
|
1397
1396
|
SHOW_DEV_RANKING?: boolean;
|
|
1398
1397
|
SHOW_GOOGLE_PROFILE?: boolean;
|
|
1399
1398
|
MORE_NEWS_SSR?: boolean;
|
|
1399
|
+
/**
|
|
1400
|
+
* Activa el auditor de HTML client-side inline (panel de debug en Shadow DOM).
|
|
1401
|
+
* Se setea una vez en `initLibrary` y se propaga a todas las páginas vía GenerateHead.
|
|
1402
|
+
* Default `false`.
|
|
1403
|
+
*/
|
|
1404
|
+
HTML_AUDIT?: boolean;
|
|
1405
|
+
/** nonce opcional para CSP estricta del <script> inline del auditor. */
|
|
1406
|
+
HTML_AUDIT_NONCE?: string;
|
|
1400
1407
|
NEWS_JOURNALIST_COMPONENT?: 'op1' | 'op2' | 'op3';
|
|
1401
1408
|
COMPONENTS?: {
|
|
1402
1409
|
PlayIcon?: ComponentType<SVGProps<SVGSVGElement>>;
|
|
@@ -1448,7 +1455,7 @@ export declare const LiveBlogHeader: FC<Props_43>;
|
|
|
1448
1455
|
declare const Location_2: FC<Props_23>;
|
|
1449
1456
|
export { Location_2 as Location }
|
|
1450
1457
|
|
|
1451
|
-
export declare function LoginForm({ API_ENV, texts, }: Props_14): JSX.Element;
|
|
1458
|
+
export declare function LoginForm({ API_ENV, texts, }: Props_14): default_2.JSX.Element;
|
|
1452
1459
|
|
|
1453
1460
|
export declare type Logo = {
|
|
1454
1461
|
url: string;
|
|
@@ -1510,7 +1517,7 @@ export declare class MainComponentServices {
|
|
|
1510
1517
|
|
|
1511
1518
|
export declare const Marfeel: () => "" | JSX.Element | undefined;
|
|
1512
1519
|
|
|
1513
|
-
export declare const MasNoticiasLazyLoader: ({ section, internalPath, stylesConfig, paths, API_ENV, fetchConfig, }: MasNoticiasLazyLoaderProps) => JSX.Element;
|
|
1520
|
+
export declare const MasNoticiasLazyLoader: ({ section, internalPath, stylesConfig, paths, API_ENV, fetchConfig, }: MasNoticiasLazyLoaderProps) => default_2.JSX.Element;
|
|
1514
1521
|
|
|
1515
1522
|
declare type MasNoticiasLazyLoaderProps = {
|
|
1516
1523
|
section: string;
|
|
@@ -1550,7 +1557,7 @@ export declare const metadata_defaults: {
|
|
|
1550
1557
|
|
|
1551
1558
|
export declare type MetadataDefaultsKeys = '404' | 'home' | 'slug' | 'news' | 'anuncia' | 'autor' | 'buscar' | 'contacto' | 'pages' | 'seccion' | 'tema' | 'ultimas-noticias' | 'video' | 'videos' | 'auth';
|
|
1552
1559
|
|
|
1553
|
-
export declare const metadataToJSX: (metadata: any) =>
|
|
1560
|
+
export declare const metadataToJSX: (metadata: any) => JSX.Element[];
|
|
1554
1561
|
|
|
1555
1562
|
export declare const MiddleSection: FC<Props_26>;
|
|
1556
1563
|
|
|
@@ -2645,7 +2652,7 @@ export declare const ReCaptchaRender: ({ defaultRouteName }: {
|
|
|
2645
2652
|
defaultRouteName: string;
|
|
2646
2653
|
}) => false | "" | JSX.Element | undefined;
|
|
2647
2654
|
|
|
2648
|
-
export declare function RegisterForm({ texts, API_ENV, termsAndConditionsUrl }: Props_15): JSX.Element;
|
|
2655
|
+
export declare function RegisterForm({ texts, API_ENV, termsAndConditionsUrl }: Props_15): default_2.JSX.Element;
|
|
2649
2656
|
|
|
2650
2657
|
declare interface Related {
|
|
2651
2658
|
automatic: boolean;
|