sass-template-common 0.9.71 → 0.9.73
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 +198 -41
- package/dist/sass-template-common.js +3812 -3574
- package/dist/sass-template-common.umd.cjs +61 -61
- 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`).
|
|
@@ -185,6 +185,18 @@ export declare const CarruselOpinion: FC<SectionCardCarouselProps>;
|
|
|
185
185
|
|
|
186
186
|
export declare const coloringByStrokeSVGs: string[];
|
|
187
187
|
|
|
188
|
+
/** Textos del popup anónimo (AnonimusPopUp.tsx) */
|
|
189
|
+
export declare type ComentariosAnonimusPopUpTexts = {
|
|
190
|
+
/** Botón para continuar de forma anónima */
|
|
191
|
+
anonimusContinueButton?: string;
|
|
192
|
+
/** Texto del divisor entre opciones (ej. "o") */
|
|
193
|
+
anonimusDividerOr?: string;
|
|
194
|
+
/** alt de la imagen de usuario anónimo */
|
|
195
|
+
anonimusImageAlt?: string;
|
|
196
|
+
/** aria-label del botón de cerrar popup */
|
|
197
|
+
popupCloseAriaLabel?: string;
|
|
198
|
+
};
|
|
199
|
+
|
|
188
200
|
/** Solo fase ChangePassword (código + nueva contraseña). changePasswordMessage puede usar {{email}} */
|
|
189
201
|
export declare type ComentariosChangePasswordPhaseTexts = {
|
|
190
202
|
changePasswordMessage?: string;
|
|
@@ -195,6 +207,20 @@ export declare type ComentariosChangePasswordPhaseTexts = {
|
|
|
195
207
|
changePasswordButton?: string;
|
|
196
208
|
};
|
|
197
209
|
|
|
210
|
+
/** Textos del formulario de comentario/respuesta (CommentInput, CommentUsername, CommentButton) */
|
|
211
|
+
export declare type ComentariosCommentFormTexts = {
|
|
212
|
+
/** Label del textarea de comentario */
|
|
213
|
+
commentInputLabel?: string;
|
|
214
|
+
/** Placeholder del textarea de comentario */
|
|
215
|
+
commentInputPlaceholder?: string;
|
|
216
|
+
/** Label del input de nombre anónimo */
|
|
217
|
+
usernameInputLabel?: string;
|
|
218
|
+
/** Placeholder del input de nombre anónimo */
|
|
219
|
+
usernameInputPlaceholder?: string;
|
|
220
|
+
/** Texto del botón de envío del comentario */
|
|
221
|
+
submitCommentButton?: string;
|
|
222
|
+
};
|
|
223
|
+
|
|
198
224
|
/** Textos de la lista/cabecera de comentarios (Comments.tsx) */
|
|
199
225
|
export declare type ComentariosCommentsSectionTexts = {
|
|
200
226
|
commentsSectionTitle?: string;
|
|
@@ -203,6 +229,18 @@ export declare type ComentariosCommentsSectionTexts = {
|
|
|
203
229
|
loadMoreButton?: string;
|
|
204
230
|
/** Botón para cargar más respuestas en un hilo (Comment.tsx) */
|
|
205
231
|
moreRepliesButton?: string;
|
|
232
|
+
/** Saludo al usuario autenticado en UserHeader (usa {{name}} como placeholder del nombre) */
|
|
233
|
+
userGreeting?: string;
|
|
234
|
+
/** Botón de cerrar sesión en UserHeader */
|
|
235
|
+
logoutButton?: string;
|
|
236
|
+
/** Prefijo del mensaje anónimo antes del botón de login (Comments.tsx) */
|
|
237
|
+
anonimusPromptPrefix?: string;
|
|
238
|
+
/** Texto del botón para iniciar sesión dentro del mensaje anónimo */
|
|
239
|
+
anonimusPromptLinkText?: string;
|
|
240
|
+
/** Sufijo del mensaje anónimo después del botón de login */
|
|
241
|
+
anonimusPromptSuffix?: string;
|
|
242
|
+
/** Etiqueta "Respondiendo a" en Reply.tsx */
|
|
243
|
+
replyingToLabel?: string;
|
|
206
244
|
};
|
|
207
245
|
|
|
208
246
|
/** Solo fase Feedback (éxito al cambiar contraseña) */
|
|
@@ -279,7 +317,7 @@ export declare type ComentariosReportPopTexts = {
|
|
|
279
317
|
export declare type ComentariosReportReasonKey = 'spam' | 'inappropriate' | 'hate' | 'misinformation' | 'terrorism' | 'intellectual' | 'bullying';
|
|
280
318
|
|
|
281
319
|
/** Textos de la sección comentarios: común + por fase + register (usado en LoginForm y RegisterForm) */
|
|
282
|
-
export declare type ComentariosTexts = ComentariosTextsCommon & ComentariosLoginPhaseTexts & ComentariosForgotPhaseTexts & ComentariosChangePasswordPhaseTexts & ComentariosFeedbackPhaseTexts & ComentariosRegisterFormPhaseTexts & ComentariosCommentsSectionTexts & ComentariosReportPopTexts & {
|
|
320
|
+
export declare type ComentariosTexts = ComentariosTextsCommon & ComentariosLoginPhaseTexts & ComentariosForgotPhaseTexts & ComentariosChangePasswordPhaseTexts & ComentariosFeedbackPhaseTexts & ComentariosRegisterFormPhaseTexts & ComentariosCommentsSectionTexts & ComentariosCommentFormTexts & ComentariosAnonimusPopUpTexts & ComentariosReportPopTexts & {
|
|
283
321
|
/** Labels para campos del formulario de registro; usados en FIELDS_CONFIG */
|
|
284
322
|
registerForm?: ComentariosRegisterFormLabels;
|
|
285
323
|
};
|
|
@@ -1384,6 +1422,7 @@ export declare interface MainBlock1Props extends SectionCardProps, NewDescriptio
|
|
|
1384
1422
|
textPosition?: 'center' | 'start';
|
|
1385
1423
|
heightImageOverwrite?: string;
|
|
1386
1424
|
heightImageOverwriteMobile?: string;
|
|
1425
|
+
speculationPrerenderClass?: string;
|
|
1387
1426
|
}
|
|
1388
1427
|
|
|
1389
1428
|
export declare class MainComponentServices {
|
|
@@ -1529,6 +1568,10 @@ declare interface Modulo3ColumnasProps {
|
|
|
1529
1568
|
showVideoTime?: boolean;
|
|
1530
1569
|
showVideosubtitle?: boolean;
|
|
1531
1570
|
showVideoAuthor?: boolean;
|
|
1571
|
+
speculationPrerender?: {
|
|
1572
|
+
class: string;
|
|
1573
|
+
length?: number;
|
|
1574
|
+
};
|
|
1532
1575
|
}
|
|
1533
1576
|
|
|
1534
1577
|
export declare const ModuloNewsletter: FC<ModuloNewsletterProps>;
|
|
@@ -1552,6 +1595,151 @@ declare type Network = {
|
|
|
1552
1595
|
show: boolean;
|
|
1553
1596
|
};
|
|
1554
1597
|
|
|
1598
|
+
export declare const new_speculationRules_home: {
|
|
1599
|
+
prefetch: {
|
|
1600
|
+
where: {
|
|
1601
|
+
href_matches: string;
|
|
1602
|
+
};
|
|
1603
|
+
eagerness: string;
|
|
1604
|
+
}[];
|
|
1605
|
+
prerender: ({
|
|
1606
|
+
where: {
|
|
1607
|
+
and: ({
|
|
1608
|
+
selector_matches: string;
|
|
1609
|
+
href_matches?: undefined;
|
|
1610
|
+
} | {
|
|
1611
|
+
href_matches: string;
|
|
1612
|
+
selector_matches?: undefined;
|
|
1613
|
+
})[];
|
|
1614
|
+
href_matches?: undefined;
|
|
1615
|
+
};
|
|
1616
|
+
eagerness: string;
|
|
1617
|
+
} | {
|
|
1618
|
+
where: {
|
|
1619
|
+
href_matches: string;
|
|
1620
|
+
and?: undefined;
|
|
1621
|
+
};
|
|
1622
|
+
eagerness: string;
|
|
1623
|
+
})[];
|
|
1624
|
+
};
|
|
1625
|
+
|
|
1626
|
+
export declare const new_speculationRules_note: {
|
|
1627
|
+
prefetch: ({
|
|
1628
|
+
urls: string[];
|
|
1629
|
+
eagerness: string;
|
|
1630
|
+
where?: undefined;
|
|
1631
|
+
} | {
|
|
1632
|
+
where: {
|
|
1633
|
+
and: ({
|
|
1634
|
+
href_matches: string;
|
|
1635
|
+
not?: undefined;
|
|
1636
|
+
} | {
|
|
1637
|
+
not: {
|
|
1638
|
+
selector_matches: string;
|
|
1639
|
+
};
|
|
1640
|
+
href_matches?: undefined;
|
|
1641
|
+
})[];
|
|
1642
|
+
};
|
|
1643
|
+
eagerness: string;
|
|
1644
|
+
urls?: undefined;
|
|
1645
|
+
})[];
|
|
1646
|
+
prerender: {
|
|
1647
|
+
where: {
|
|
1648
|
+
and: ({
|
|
1649
|
+
selector_matches: string;
|
|
1650
|
+
href_matches?: undefined;
|
|
1651
|
+
not?: undefined;
|
|
1652
|
+
} | {
|
|
1653
|
+
href_matches: string;
|
|
1654
|
+
selector_matches?: undefined;
|
|
1655
|
+
not?: undefined;
|
|
1656
|
+
} | {
|
|
1657
|
+
not: {
|
|
1658
|
+
selector_matches: string;
|
|
1659
|
+
};
|
|
1660
|
+
selector_matches?: undefined;
|
|
1661
|
+
href_matches?: undefined;
|
|
1662
|
+
})[];
|
|
1663
|
+
};
|
|
1664
|
+
eagerness: string;
|
|
1665
|
+
}[];
|
|
1666
|
+
};
|
|
1667
|
+
|
|
1668
|
+
export declare const new_speculationRules_noteList: {
|
|
1669
|
+
prefetch: ({
|
|
1670
|
+
urls: string[];
|
|
1671
|
+
eagerness: string;
|
|
1672
|
+
where?: undefined;
|
|
1673
|
+
} | {
|
|
1674
|
+
where: {
|
|
1675
|
+
and: ({
|
|
1676
|
+
href_matches: string;
|
|
1677
|
+
not?: undefined;
|
|
1678
|
+
} | {
|
|
1679
|
+
not: {
|
|
1680
|
+
selector_matches: string;
|
|
1681
|
+
};
|
|
1682
|
+
href_matches?: undefined;
|
|
1683
|
+
})[];
|
|
1684
|
+
};
|
|
1685
|
+
eagerness: string;
|
|
1686
|
+
urls?: undefined;
|
|
1687
|
+
})[];
|
|
1688
|
+
prerender: {
|
|
1689
|
+
where: {
|
|
1690
|
+
and: ({
|
|
1691
|
+
selector_matches: string;
|
|
1692
|
+
href_matches?: undefined;
|
|
1693
|
+
not?: undefined;
|
|
1694
|
+
} | {
|
|
1695
|
+
href_matches: string;
|
|
1696
|
+
selector_matches?: undefined;
|
|
1697
|
+
not?: undefined;
|
|
1698
|
+
} | {
|
|
1699
|
+
not: {
|
|
1700
|
+
selector_matches: string;
|
|
1701
|
+
};
|
|
1702
|
+
selector_matches?: undefined;
|
|
1703
|
+
href_matches?: undefined;
|
|
1704
|
+
})[];
|
|
1705
|
+
};
|
|
1706
|
+
eagerness: string;
|
|
1707
|
+
}[];
|
|
1708
|
+
};
|
|
1709
|
+
|
|
1710
|
+
export declare const new_speculationRules_section: {
|
|
1711
|
+
prefetch: ({
|
|
1712
|
+
urls: string[];
|
|
1713
|
+
eagerness: string;
|
|
1714
|
+
where?: undefined;
|
|
1715
|
+
} | {
|
|
1716
|
+
where: {
|
|
1717
|
+
href_matches: string;
|
|
1718
|
+
};
|
|
1719
|
+
eagerness: string;
|
|
1720
|
+
urls?: undefined;
|
|
1721
|
+
})[];
|
|
1722
|
+
prerender: ({
|
|
1723
|
+
where: {
|
|
1724
|
+
and: ({
|
|
1725
|
+
selector_matches: string;
|
|
1726
|
+
href_matches?: undefined;
|
|
1727
|
+
} | {
|
|
1728
|
+
href_matches: string;
|
|
1729
|
+
selector_matches?: undefined;
|
|
1730
|
+
})[];
|
|
1731
|
+
href_matches?: undefined;
|
|
1732
|
+
};
|
|
1733
|
+
eagerness: string;
|
|
1734
|
+
} | {
|
|
1735
|
+
where: {
|
|
1736
|
+
href_matches: string;
|
|
1737
|
+
and?: undefined;
|
|
1738
|
+
};
|
|
1739
|
+
eagerness: string;
|
|
1740
|
+
})[];
|
|
1741
|
+
};
|
|
1742
|
+
|
|
1555
1743
|
declare interface NewDescriptionBlockProps {
|
|
1556
1744
|
imageSize?: {
|
|
1557
1745
|
height: string;
|
|
@@ -1566,6 +1754,7 @@ declare interface NewDescriptionBlockProps {
|
|
|
1566
1754
|
itemReverseOrder?: boolean;
|
|
1567
1755
|
customNewsDescriptionStyles?: CSSProperties;
|
|
1568
1756
|
paths: RoutePathConfig;
|
|
1757
|
+
speculationPrerenderClass?: string;
|
|
1569
1758
|
}
|
|
1570
1759
|
|
|
1571
1760
|
export declare interface NewListResponse {
|
|
@@ -1743,6 +1932,7 @@ declare type NewsDescriptionProps = {
|
|
|
1743
1932
|
paths: RoutePathConfig;
|
|
1744
1933
|
useNewHeaderFormat?: boolean;
|
|
1745
1934
|
newsDescriptionSectionTag?: 'span' | 'h3';
|
|
1935
|
+
speculationPrerenderClass?: string;
|
|
1746
1936
|
} & NewListResponseData;
|
|
1747
1937
|
|
|
1748
1938
|
export declare interface NewsResponse {
|
|
@@ -1983,6 +2173,7 @@ declare type Props_16 = {
|
|
|
1983
2173
|
item: NewListResponseData;
|
|
1984
2174
|
autorIcon: ReactNode;
|
|
1985
2175
|
paths: RoutePathConfig;
|
|
2176
|
+
speculationPrerenderClass?: string;
|
|
1986
2177
|
};
|
|
1987
2178
|
|
|
1988
2179
|
declare type Props_17 = {
|
|
@@ -2335,6 +2526,10 @@ declare type Props_8 = {
|
|
|
2335
2526
|
[key: string]: string;
|
|
2336
2527
|
};
|
|
2337
2528
|
paths: RoutePathConfig;
|
|
2529
|
+
speculationPrerender?: {
|
|
2530
|
+
class: string;
|
|
2531
|
+
length?: number;
|
|
2532
|
+
};
|
|
2338
2533
|
};
|
|
2339
2534
|
|
|
2340
2535
|
declare type Props_9 = {
|
|
@@ -2482,6 +2677,7 @@ declare interface SectionCardProps extends Omit<NewsDescriptionProps, 'preview'>
|
|
|
2482
2677
|
isLarge?: boolean;
|
|
2483
2678
|
sectionCardNewsDescClass?: string;
|
|
2484
2679
|
customSectionCardStyles?: CSSProperties;
|
|
2680
|
+
speculationPrerenderClass?: string;
|
|
2485
2681
|
}
|
|
2486
2682
|
|
|
2487
2683
|
declare interface SectionCardProps_2 extends Omit<NewsDescriptionProps, 'preview'>, ImageProps_2 {
|
|
@@ -2602,49 +2798,10 @@ export declare type Socials = {
|
|
|
2602
2798
|
|
|
2603
2799
|
export declare const SpeculationRules: ({ active, type, customSpeculation }: {
|
|
2604
2800
|
active: boolean;
|
|
2605
|
-
type: "Home" | "Common";
|
|
2801
|
+
type: "Home" | "Common" | "Nota" | "NotaLista";
|
|
2606
2802
|
customSpeculation?: string;
|
|
2607
2803
|
}) => false | JSX.Element;
|
|
2608
2804
|
|
|
2609
|
-
export declare const speculationRules: {
|
|
2610
|
-
prerender: ({
|
|
2611
|
-
where: {
|
|
2612
|
-
and: ({
|
|
2613
|
-
href_matches: string;
|
|
2614
|
-
not?: undefined;
|
|
2615
|
-
} | {
|
|
2616
|
-
not: {
|
|
2617
|
-
selector_matches: string;
|
|
2618
|
-
};
|
|
2619
|
-
href_matches?: undefined;
|
|
2620
|
-
})[];
|
|
2621
|
-
};
|
|
2622
|
-
eagerness: string;
|
|
2623
|
-
urls?: undefined;
|
|
2624
|
-
} | {
|
|
2625
|
-
eagerness: string;
|
|
2626
|
-
urls: string[];
|
|
2627
|
-
where?: undefined;
|
|
2628
|
-
})[];
|
|
2629
|
-
};
|
|
2630
|
-
|
|
2631
|
-
export declare const speculationRulesHome: {
|
|
2632
|
-
prerender: {
|
|
2633
|
-
where: {
|
|
2634
|
-
and: ({
|
|
2635
|
-
href_matches: string;
|
|
2636
|
-
not?: undefined;
|
|
2637
|
-
} | {
|
|
2638
|
-
not: {
|
|
2639
|
-
selector_matches: string;
|
|
2640
|
-
};
|
|
2641
|
-
href_matches?: undefined;
|
|
2642
|
-
})[];
|
|
2643
|
-
};
|
|
2644
|
-
eagerness: string;
|
|
2645
|
-
}[];
|
|
2646
|
-
};
|
|
2647
|
-
|
|
2648
2805
|
export declare const Spin: ({ className }: {
|
|
2649
2806
|
className?: string;
|
|
2650
2807
|
}) => JSX.Element;
|