@cimulate/copilot-widget 1.54.1 → 1.54.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
@@ -2,6 +2,10 @@
2
2
 
3
3
  `@cimulate/copilot-widget` follows [Semantic Versioning](https://semver.org/). Each entry is a released `package.json` version (deployed on merge to `master`), newest first.
4
4
 
5
+ ## 1.54.2 — 2026-11-05
6
+
7
+ - Carousel tiles no longer strike through a compare price that displays the same amount as the current price.
8
+
5
9
  ## 1.54.1 — 2026-11-04
6
10
 
7
11
  - Messaging mode keeps the connecting indicator on screen until a shopper or agent message is visible, so the transcript is not blank while a conversation opens. If nothing arrives, the transcript offers “What can we help with?” with suggestions to get a recommendation, find a gift, or start fresh.
@@ -29851,20 +29851,20 @@ const Xn = new m4(), g4 = (e) => {
29851
29851
  if (!e) return null;
29852
29852
  const n = t || fi, r = Ou(e.promotional) ? e.promotional : null, i = Ou(e.sales) ? e.sales : null, s = Ou(e.original) ? e.original : null;
29853
29853
  if (!r && !i && !s) return null;
29854
- const o = (d) => P4({ min: d.min, max: d.max, currencyCode: n });
29854
+ const o = (h) => P4({ min: h.min, max: h.max, currencyCode: n }), a = (h, p) => p && p.value !== h.value ? p : null;
29855
29855
  if (r) {
29856
- const d = o(r);
29857
- return d ? { active: d, compare: i ? o(i) : null } : null;
29858
- }
29859
- const a = wp(e.sales), u = wp(e.original);
29860
- if (i && s && a && u && a !== u) {
29861
- const d = o(i);
29862
- return d ? { active: d, compare: o(s) } : null;
29863
- }
29864
- const c = i != null ? i : s;
29865
- if (!c) return null;
29866
- const l = o(c);
29867
- return l ? { active: l, compare: null } : null;
29856
+ const h = o(r);
29857
+ return h ? { active: h, compare: a(h, i ? o(i) : null) } : null;
29858
+ }
29859
+ const u = wp(e.sales), c = wp(e.original);
29860
+ if (i && s && u && c && u !== c) {
29861
+ const h = o(i);
29862
+ return h ? { active: h, compare: a(h, o(s)) } : null;
29863
+ }
29864
+ const l = i != null ? i : s;
29865
+ if (!l) return null;
29866
+ const d = o(l);
29867
+ return d ? { active: d, compare: null } : null;
29868
29868
  }, cd = ({
29869
29869
  retailPrice: e,
29870
29870
  discountPrice: t,