@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
@@ -0,0 +1,11 @@
1
+ # README #
2
+ version 1.0.1
3
+
4
+ ### Como hacer deploy del repo
5
+
6
+ * Correr el comando
7
+ `npm run deploy`
8
+
9
+ * [Enlace al repo](https://www.npmjs.com/package/@win2win/shared)
10
+
11
+
@@ -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) => k.toLowerCase());
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";
@@ -41,7 +41,9 @@ exports.TEMPLATES = Object.freeze({
41
41
  "secondary-highlight-image",
42
42
  "highlight-title",
43
43
  "texts-columns",
44
- "images-columns"
44
+ "images-columns",
45
+ "secondary-images-columns",
46
+ "secondary-hero"
45
47
  ],
46
48
  },
47
49
  "product-hero-searcher": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@win2win/shared",
3
- "version": "1.0.169",
3
+ "version": "1.0.171",
4
4
  "description": "Tipos, interfaces, funciones, constantes, clases y enums compartidos por todos los proyectos de Win2Win",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",