@win2win/shared 1.0.192 → 1.0.194
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.
|
@@ -2,7 +2,7 @@ import { Prettify } from "../shared/shared-types";
|
|
|
2
2
|
export declare const TEMPLATES: Readonly<{
|
|
3
3
|
readonly "single-feature": {
|
|
4
4
|
readonly label: "Funcionalidad";
|
|
5
|
-
readonly params: readonly ["title", "text", "image", "button", "direction", "background"];
|
|
5
|
+
readonly params: readonly ["title", "text", "image", "button", "direction", "background", "text-lines"];
|
|
6
6
|
readonly variants: readonly ["default", "colored"];
|
|
7
7
|
};
|
|
8
8
|
readonly "feature-highlights": {
|
|
@@ -53,7 +53,7 @@ export declare const TEMPLATES: Readonly<{
|
|
|
53
53
|
};
|
|
54
54
|
readonly hero: {
|
|
55
55
|
readonly label: "Hero";
|
|
56
|
-
readonly params: readonly ["text", "title", "background", "items", "image", "custom"];
|
|
56
|
+
readonly params: readonly ["text", "title", "background", "items", "image", "custom", "text-lines"];
|
|
57
57
|
readonly variants: readonly ["default", "dense", "banner", "contact"];
|
|
58
58
|
};
|
|
59
59
|
readonly image: {
|
|
@@ -62,7 +62,7 @@ export declare const TEMPLATES: Readonly<{
|
|
|
62
62
|
};
|
|
63
63
|
readonly text: {
|
|
64
64
|
readonly label: "Textos";
|
|
65
|
-
readonly params: readonly ["background", "items", "text", "title"];
|
|
65
|
+
readonly params: readonly ["background", "items", "text", "title", "text-lines"];
|
|
66
66
|
readonly variants: readonly ["default", "simple"];
|
|
67
67
|
};
|
|
68
68
|
readonly product: {
|
|
@@ -216,6 +216,11 @@ export interface SortingParams {
|
|
|
216
216
|
by: string | null;
|
|
217
217
|
order: "ASC" | "DESC";
|
|
218
218
|
}
|
|
219
|
+
export interface SectionTextLine {
|
|
220
|
+
text: string;
|
|
221
|
+
class?: string;
|
|
222
|
+
style?: string;
|
|
223
|
+
}
|
|
219
224
|
export interface SectionParams {
|
|
220
225
|
title?: string;
|
|
221
226
|
subtitle?: string;
|
|
@@ -243,6 +248,7 @@ export interface SectionParams {
|
|
|
243
248
|
params?: Record<string, any>;
|
|
244
249
|
custom?: Record<string, any>;
|
|
245
250
|
code?: string;
|
|
251
|
+
text_lines?: SectionTextLine[];
|
|
246
252
|
}
|
|
247
253
|
export type SectionParam = keyof Partial<SectionParams>;
|
|
248
254
|
export type SectionParamValue = SectionParams[SectionParam];
|
|
@@ -4,7 +4,15 @@ exports.ITEMS_DIRECTIONS = exports.CHECKOUT_TEMPLATES_LABELS = exports.ECOMMERCE
|
|
|
4
4
|
exports.TEMPLATES = Object.freeze({
|
|
5
5
|
"single-feature": {
|
|
6
6
|
label: "Funcionalidad",
|
|
7
|
-
params: [
|
|
7
|
+
params: [
|
|
8
|
+
"title",
|
|
9
|
+
"text",
|
|
10
|
+
"image",
|
|
11
|
+
"button",
|
|
12
|
+
"direction",
|
|
13
|
+
"background",
|
|
14
|
+
"text-lines",
|
|
15
|
+
],
|
|
8
16
|
variants: ["default", "colored"],
|
|
9
17
|
},
|
|
10
18
|
"feature-highlights": {
|
|
@@ -85,7 +93,15 @@ exports.TEMPLATES = Object.freeze({
|
|
|
85
93
|
},
|
|
86
94
|
hero: {
|
|
87
95
|
label: "Hero",
|
|
88
|
-
params: [
|
|
96
|
+
params: [
|
|
97
|
+
"text",
|
|
98
|
+
"title",
|
|
99
|
+
"background",
|
|
100
|
+
"items",
|
|
101
|
+
"image",
|
|
102
|
+
"custom",
|
|
103
|
+
"text-lines",
|
|
104
|
+
],
|
|
89
105
|
variants: ["default", "dense", "banner", "contact"],
|
|
90
106
|
},
|
|
91
107
|
image: {
|
|
@@ -94,7 +110,7 @@ exports.TEMPLATES = Object.freeze({
|
|
|
94
110
|
},
|
|
95
111
|
text: {
|
|
96
112
|
label: "Textos",
|
|
97
|
-
params: ["background", "items", "text", "title"],
|
|
113
|
+
params: ["background", "items", "text", "title", "text-lines"],
|
|
98
114
|
variants: ["default", "simple"],
|
|
99
115
|
},
|
|
100
116
|
product: {
|
package/package.json
CHANGED