@grupo-elo-editorial/shared-ui-react 1.4.0 → 1.4.2

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/CHANGELOG.md CHANGED
@@ -4,6 +4,24 @@ Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) · Versioning:
4
4
 
5
5
  ---
6
6
 
7
+ ## [1.4.2] — 2026-06-10 (Footer — normalizar \n literal no endereço; ELO-392)
8
+
9
+ ### Fixed
10
+
11
+ - **`Footer`**: `contactAddress` agora normaliza `\n` literal (dois caracteres `\` + `n`, como armazenado pelo Firestore Console) para newline real antes de renderizar. Combinado com `whitespace-pre-line`, o endereço quebra corretamente em múltiplas linhas. Endereços com newline real (programático) e endereços sem `\n` continuam funcionando sem alteração.
12
+ - `package.json` `version` bumped `1.4.1 → 1.4.2`.
13
+
14
+ ---
15
+
16
+ ## [1.4.1] — 2026-06-10 (Footer — endereço com suporte a quebra de linha; ELO-389)
17
+
18
+ ### Fixed
19
+
20
+ - **`Footer`**: adicionado `whitespace-pre-line` ao `<p>` do endereço (`contactAddress`). Valores com `\n` no campo `fullAddress` do Firestore agora rendem como linhas separadas (ex.: `"Rua Laguna, 404\nSão Paulo - SP\nCEP 04728-000"`). Endereços em linha única sem `\n` mantêm comportamento idêntico ao anterior.
21
+ - `package.json` `version` bumped `1.4.0 → 1.4.1`.
22
+
23
+ ---
24
+
7
25
  ## [1.4.0] — 2026-06-10 (Footer navColumns + ProductCard/ProductGrid renderImage)
8
26
 
9
27
  ### Added
package/dist/index.js CHANGED
@@ -2430,7 +2430,8 @@ const Nt = ({ brand: a = "elo-editora", onNewsletterSubmit: t, newsletterSlot: r
2430
2430
  /* @__PURE__ */ e("p", { className: "text-[var(--muted-foreground)]", children: "Atendimento:" }),
2431
2431
  /* @__PURE__ */ e("p", { className: "font-medium text-[var(--foreground)]", children: x }),
2432
2432
  /* @__PURE__ */ e("p", { className: "font-medium text-[var(--foreground)]", children: c }),
2433
- p && /* @__PURE__ */ e("p", { className: "text-[var(--muted-foreground)]", children: p })
2433
+ p && /* @__PURE__ */ e("p", { className: "whitespace-pre-line text-[var(--muted-foreground)]", children: p.replace(/\\n/g, `
2434
+ `) })
2434
2435
  ] })
2435
2436
  ] }),
2436
2437
  (d ?? bt).map((k) => /* @__PURE__ */ e(xt, { title: k.title, links: k.links }, k.id)),