@win2win/shared 1.0.169 → 1.0.171
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
ADDED
|
@@ -26,6 +26,10 @@ export declare function formatContactName(contact?: {
|
|
|
26
26
|
NOMBRE?: string | null;
|
|
27
27
|
APELLIDO?: string | null;
|
|
28
28
|
APELLIDO2?: string | null;
|
|
29
|
+
} | {
|
|
30
|
+
CONTACTO_NOMBRE?: string | null;
|
|
31
|
+
CONTACTO_APELLIDO?: string | null;
|
|
32
|
+
CONTACTO_APELLIDO2?: string | null;
|
|
29
33
|
} | {
|
|
30
34
|
nombre?: string | null;
|
|
31
35
|
apellido: string | null;
|
|
@@ -114,7 +114,12 @@ function capitalize(text, allWords = false) {
|
|
|
114
114
|
function formatContactName(contact) {
|
|
115
115
|
if (!contact)
|
|
116
116
|
return "";
|
|
117
|
-
const { nombre, apellido, apellido2 } = (0, lodash_1.mapKeys)(contact, (v, k) =>
|
|
117
|
+
const { nombre, apellido, apellido2 } = (0, lodash_1.mapKeys)(contact, (v, k) => {
|
|
118
|
+
if (k.startsWith("CONTACTO_")) {
|
|
119
|
+
return k.replace("CONTACTO_", "").toLowerCase();
|
|
120
|
+
}
|
|
121
|
+
return k.toLowerCase();
|
|
122
|
+
});
|
|
118
123
|
return capitalize([nombre, apellido, apellido2]
|
|
119
124
|
.map((v) => (v || "").trim())
|
|
120
125
|
.filter(Boolean)
|
|
@@ -20,7 +20,7 @@ export declare const TEMPLATES: Readonly<{
|
|
|
20
20
|
readonly "features-presentation": {
|
|
21
21
|
readonly label: "Presentación de funcionalidades";
|
|
22
22
|
readonly params: readonly ["title", "subtitle", "text", "background", "items", "image", "button"];
|
|
23
|
-
readonly variants: readonly ["default", "images", "hero", "parallel-images", "texts", "simple", "highlight-image", "secondary-highlight-image", "highlight-title", "texts-columns", "images-columns"];
|
|
23
|
+
readonly variants: readonly ["default", "images", "hero", "parallel-images", "texts", "simple", "highlight-image", "secondary-highlight-image", "highlight-title", "texts-columns", "images-columns", "secondary-images-columns", "secondary-hero"];
|
|
24
24
|
};
|
|
25
25
|
readonly "product-hero-searcher": {
|
|
26
26
|
readonly label: "Buscador de productos hero";
|
package/package.json
CHANGED