@cimulate/copilot-widget 1.63.0 → 1.64.0

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,14 @@
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.64.0 — 2026-12-01
6
+
7
+ - New `enableOrderTracking` messaging config option (default `false`). While it is off, `order_status`, `order_history` and `order_lookup_form` blocks are replaced by one "not available" notice, so the widget stays safe if the agent emits them before order tracking is enabled on the client side. The three order features below only render when it is on.
8
+ - Messaging mode: guest order lookup form for `order_lookup_form` blocks. The shopper enters email, order number and ZIP code. Each field is checked on submit and shows its own error. Lookup errors from the agent (`ORDER_NOT_FOUND`, `INSUFFICIENT_DETAILS`, `LOOKUP_UNREACHABLE`) appear above the form, and `LOOKUP_UNREACHABLE` withholds it. Answered forms stay read-only in the transcript, and the form unlocks when its send fails before the message appears, since there is no Retry to resend it.
9
+ - Messaging mode: order details card for `order_status` blocks, one card per order. It shows the status badge, est. delivery, totals, shipping details and each item, and groups items by shipment, with unshipped items under "No shipment assigned yet" or "Items Ordered". Each shipment has its own tracking link, and the card shows the first shipment's address. Collapsed by default. Order dates name the year when it isn't this year, and the card and its details button follow the theme's `borderRadius`.
10
+ - Messaging mode: `order_history` blocks show a signed-in shopper's recent orders as a carousel of tiles. Tapping a tile sends `Order #<number>` and locks the list. A tile with orders on both sides is centered between them, and in a narrow list tiles narrow so the next one still peeks in. One order shows its status card, a failed lookup shows an error line, and older lists stay read-only.
11
+ - Carousels: arrow keys, Home and End move focus between slides, and a slide that takes keyboard focus scrolls into view. Partly hidden slides stay readable by screen readers, and a carousel whose slides are all disabled can still be scrolled from the keyboard. Focus events inside a slide no longer bubble out of the widget.
12
+
5
13
  ## 1.63.0 — 2026-11-30
6
14
 
7
15
  - Add `anchorUserMessage`, a messaging-only option that is on by default and anchors a live shopper message to the top of the transcript while the reply renders underneath. Set it to false to disable.
@@ -550,6 +550,12 @@ declare interface MessagingModeConfig {
550
550
  * configured for file uploads, otherwise uploads are rejected downstream.
551
551
  */
552
552
  enableImageUpload?: boolean;
553
+ /**
554
+ * Renders `order_status`, `order_history` and `order_lookup_form` UI blocks. When false
555
+ * (default), those blocks are replaced with a not available notice, so the widget stays
556
+ * safe even if agent still emits them. Enable together with order tracking on agent.
557
+ */
558
+ enableOrderTracking?: boolean;
553
559
  showProductCaptions?: boolean;
554
560
  /**
555
561
  * Max number of progress steps to display in chat window.