@cimulate/copilot-widget 1.48.6 → 1.48.8

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.48.8 — 2026-10-13
6
+
7
+ - Messaging mode: the in-chat order confirmation card is now overridable via the `OrderConfirmation` key in `ComponentOverrides`. Register a custom element (`window.CimulateOverrides.OrderConfirmation = "your-tag"`) and the widget mounts it in place of the built-in card, handing `{ name, payload: { order }, api }`. Leave the key unset and the default card keeps working. Customers implement their own replacement; this release only adds the slot.
8
+
9
+ ## 1.48.7 — 2026-10-13
10
+
11
+ - Messaging telemetry (when enabled in a release) now also reports connection, routing, send, and session-recovery failures, render errors, failed cart actions, and empty product searches. Error text, message content, and cart contents are never included. Telemetry is not enabled in this release. No storefront action or configuration required.
12
+
5
13
  ## 1.48.6 — 2026-10-13
6
14
 
7
15
  - Markdown phone links such as `[555-0100](tel:5550100)` keep their `tel:` href, so the number is clickable. `mailto:` and `https` links are unchanged, and unsafe protocols such as `javascript:` are still removed.
@@ -110,10 +110,11 @@ declare interface CommonParams {
110
110
  * One flat map from override key to custom-element tag name.
111
111
  *
112
112
  * `ProductTile`, `ProductCarousel`, `ProductDetailCard`, `ProductComparison`,
113
- * `ProgressSteps`, `Suggestions`, and `Cart` are the named keys the widget
114
- * consults for its built-in UI: register one and the widget mounts your element
115
- * in place of the default tile/carousel/detail card/comparison table/progress
116
- * panel/follow-up buttons/cart card (leave it unset and the built-in renders).
113
+ * `ProgressSteps`, `Suggestions`, `OrderConfirmation`, and `Cart` are the named
114
+ * keys the widget consults for its built-in UI: register one and the widget
115
+ * mounts your element in place of the default tile/carousel/detail
116
+ * card/comparison table/progress panel/follow-up buttons/order confirmation
117
+ * card/cart card (leave it unset and the built-in renders).
117
118
  * Every other key is matched against a `type:"tool_results"` block's top-level
118
119
  * `output_name` (never a field inside the arbitrary `data` payload); an
119
120
  * unmatched block renders nothing. All of them receive the same `OverrideProps`.
@@ -131,6 +132,12 @@ declare interface ComponentOverrides {
131
132
  ProductComparison?: OverrideTagName;
132
133
  ProgressSteps?: OverrideTagName;
133
134
  Suggestions?: OverrideTagName;
135
+ /**
136
+ * Replaces the in-chat order confirmation card. Receives generic
137
+ * {@link OverrideProps} with `payload.order` as the {@link OrderDetails}
138
+ * the agent emitted. Leave unset and the built-in card renders.
139
+ */
140
+ OrderConfirmation?: OverrideTagName;
134
141
  /**
135
142
  * Replaces the in-chat cart BODY (items, totals, coupons) — a presentational
136
143
  * slot. Checkout and the Apple/Google Pay iframe are NOT part of it: the widget
@@ -325,10 +325,11 @@ declare type ComparisonTableRow = {
325
325
  * One flat map from override key to custom-element tag name.
326
326
  *
327
327
  * `ProductTile`, `ProductCarousel`, `ProductDetailCard`, `ProductComparison`,
328
- * `ProgressSteps`, `Suggestions`, and `Cart` are the named keys the widget
329
- * consults for its built-in UI: register one and the widget mounts your element
330
- * in place of the default tile/carousel/detail card/comparison table/progress
331
- * panel/follow-up buttons/cart card (leave it unset and the built-in renders).
328
+ * `ProgressSteps`, `Suggestions`, `OrderConfirmation`, and `Cart` are the named
329
+ * keys the widget consults for its built-in UI: register one and the widget
330
+ * mounts your element in place of the default tile/carousel/detail
331
+ * card/comparison table/progress panel/follow-up buttons/order confirmation
332
+ * card/cart card (leave it unset and the built-in renders).
332
333
  * Every other key is matched against a `type:"tool_results"` block's top-level
333
334
  * `output_name` (never a field inside the arbitrary `data` payload); an
334
335
  * unmatched block renders nothing. All of them receive the same `OverrideProps`.
@@ -346,6 +347,12 @@ export declare interface ComponentOverrides {
346
347
  ProductComparison?: OverrideTagName;
347
348
  ProgressSteps?: OverrideTagName;
348
349
  Suggestions?: OverrideTagName;
350
+ /**
351
+ * Replaces the in-chat order confirmation card. Receives generic
352
+ * {@link OverrideProps} with `payload.order` as the {@link OrderDetails}
353
+ * the agent emitted. Leave unset and the built-in card renders.
354
+ */
355
+ OrderConfirmation?: OverrideTagName;
349
356
  /**
350
357
  * Replaces the in-chat cart BODY (items, totals, coupons) — a presentational
351
358
  * slot. Checkout and the Apple/Google Pay iframe are NOT part of it: the widget
@@ -976,6 +983,8 @@ export declare class OverrideElement extends HTMLElement {
976
983
  * the current (active) step.
977
984
  * - "Suggestions" → { suggestions: string[] } — the follow-up suggestion
978
985
  * strings shown after an agent message, in order.
986
+ * - "OrderConfirmation" → { order } — the {@link OrderDetails} the agent
987
+ * emitted on the `order_confirmation` block.
979
988
  * - "Cart" → uses its own {@link CartOverrideProps}, not this
980
989
  * generic shape: a display-only {@link DisplayCart} plus
981
990
  * a structured `cart` mutation api and NO `sendMessage`.
@@ -984,7 +993,7 @@ export declare class OverrideElement extends HTMLElement {
984
993
  * - any custom-block key → the `tool_results` block's raw `data`, your own shape
985
994
  */
986
995
  export declare interface OverrideProps {
987
- /** The resolved override key: "ProductTile"/"ProductCarousel"/"ProductDetailCard"/"ProductComparison"/"ProgressSteps"/"Suggestions"/"Cart" for the built-in slots, else the `tool_results` block's `output_name`. */
996
+ /** The resolved override key: "ProductTile"/"ProductCarousel"/"ProductDetailCard"/"ProductComparison"/"ProgressSteps"/"Suggestions"/"OrderConfirmation"/"Cart" for the built-in slots, else the `tool_results` block's `output_name`. */
988
997
  name: string;
989
998
  payload: unknown;
990
999
  api: OverrideApi;