@cimulate/copilot-widget 1.39.1 → 1.40.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,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.40.0 — 2026-09-18
6
+
7
+ - Messaging mode: the follow-up suggestion buttons shown after an agent message are now overridable via the `Suggestions` key in `ComponentOverrides`, consistent with `ProductTile`/`ProductCarousel`/`ProductDetailCard`/`ProductComparison`/`ProgressSteps`. The override receives `{ suggestions }` (the follow-up strings, in order) and the standard `api`; posting a suggestion back to the agent goes through `api.sendMessage`, same as every other override.
8
+
5
9
  ## 1.39.1 — 2026-09-16
6
10
 
7
11
  - NPM installs no longer ship React: `react` and `react-dom` are peer-only (`^18.3 || ^19`). Host apps must provide React 18.3+ or 19 when using NPM integration. CDN/UMD bundles are unchanged and still include React.
@@ -108,20 +108,20 @@ declare interface CommonParams {
108
108
  /**
109
109
  * One flat map from override key to custom-element tag name.
110
110
  *
111
- * `ProductTile`, `ProductCarousel`, `ProductDetailCard`, `ProductComparison`, and
112
- * `ProgressSteps` are the named keys the widget consults for its built-in UI:
113
- * register one and the widget mounts your element in place of the default
114
- * tile/carousel/detail card/comparison table/progress panel (leave it unset and
115
- * the built-in renders). Every other key is matched against a
116
- * `type:"tool_results"` block's top-level `output_name` (never a field inside
117
- * the arbitrary `data` payload); an unmatched block renders nothing. All of them
118
- * receive the same `OverrideProps`.
111
+ * `ProductTile`, `ProductCarousel`, `ProductDetailCard`, `ProductComparison`,
112
+ * `ProgressSteps`, and `Suggestions` are the named keys the widget consults for
113
+ * its built-in UI: register one and the widget mounts your element in place of
114
+ * the default tile/carousel/detail card/comparison table/progress panel/
115
+ * follow-up buttons (leave it unset and the built-in renders). Every other key
116
+ * is matched against a `type:"tool_results"` block's top-level `output_name`
117
+ * (never a field inside the arbitrary `data` payload); an unmatched block
118
+ * renders nothing. All of them receive the same `OverrideProps`.
119
119
  *
120
120
  * { ProductTile: "cx-product-card", recentOrders: "cx-recent-orders" }
121
121
  *
122
- * Widget chrome (header, search bar, follow-up suggestions) is intentionally NOT
123
- * overridable: those keys are accepted by the open index signature but have no
124
- * render path, so they are silently ignored.
122
+ * Widget chrome (header, search bar) is intentionally NOT overridable: those
123
+ * keys are accepted by the open index signature but have no render path, so
124
+ * they are silently ignored.
125
125
  */
126
126
  declare interface ComponentOverrides {
127
127
  ProductTile?: OverrideTagName;
@@ -129,6 +129,7 @@ declare interface ComponentOverrides {
129
129
  ProductDetailCard?: OverrideTagName;
130
130
  ProductComparison?: OverrideTagName;
131
131
  ProgressSteps?: OverrideTagName;
132
+ Suggestions?: OverrideTagName;
132
133
  [key: string]: OverrideTagName | undefined;
133
134
  }
134
135
 
@@ -213,20 +213,20 @@ declare type ComparisonTableRow = {
213
213
  /**
214
214
  * One flat map from override key to custom-element tag name.
215
215
  *
216
- * `ProductTile`, `ProductCarousel`, `ProductDetailCard`, `ProductComparison`, and
217
- * `ProgressSteps` are the named keys the widget consults for its built-in UI:
218
- * register one and the widget mounts your element in place of the default
219
- * tile/carousel/detail card/comparison table/progress panel (leave it unset and
220
- * the built-in renders). Every other key is matched against a
221
- * `type:"tool_results"` block's top-level `output_name` (never a field inside
222
- * the arbitrary `data` payload); an unmatched block renders nothing. All of them
223
- * receive the same `OverrideProps`.
216
+ * `ProductTile`, `ProductCarousel`, `ProductDetailCard`, `ProductComparison`,
217
+ * `ProgressSteps`, and `Suggestions` are the named keys the widget consults for
218
+ * its built-in UI: register one and the widget mounts your element in place of
219
+ * the default tile/carousel/detail card/comparison table/progress panel/
220
+ * follow-up buttons (leave it unset and the built-in renders). Every other key
221
+ * is matched against a `type:"tool_results"` block's top-level `output_name`
222
+ * (never a field inside the arbitrary `data` payload); an unmatched block
223
+ * renders nothing. All of them receive the same `OverrideProps`.
224
224
  *
225
225
  * { ProductTile: "cx-product-card", recentOrders: "cx-recent-orders" }
226
226
  *
227
- * Widget chrome (header, search bar, follow-up suggestions) is intentionally NOT
228
- * overridable: those keys are accepted by the open index signature but have no
229
- * render path, so they are silently ignored.
227
+ * Widget chrome (header, search bar) is intentionally NOT overridable: those
228
+ * keys are accepted by the open index signature but have no render path, so
229
+ * they are silently ignored.
230
230
  */
231
231
  export declare interface ComponentOverrides {
232
232
  ProductTile?: OverrideTagName;
@@ -234,6 +234,7 @@ export declare interface ComponentOverrides {
234
234
  ProductDetailCard?: OverrideTagName;
235
235
  ProductComparison?: OverrideTagName;
236
236
  ProgressSteps?: OverrideTagName;
237
+ Suggestions?: OverrideTagName;
237
238
  [key: string]: OverrideTagName | undefined;
238
239
  }
239
240
 
@@ -744,10 +745,12 @@ export declare class OverrideElement extends HTMLElement {
744
745
  * - "ProgressSteps" → { steps: string[] } — one entry per progress-indicator
745
746
  * message received so far, in order; the last entry is
746
747
  * the current (active) step.
748
+ * - "Suggestions" → { suggestions: string[] } — the follow-up suggestion
749
+ * strings shown after an agent message, in order.
747
750
  * - any custom-block key → the `tool_results` block's raw `data`, your own shape
748
751
  */
749
752
  export declare interface OverrideProps {
750
- /** The resolved override key: "ProductTile"/"ProductCarousel"/"ProductDetailCard"/"ProductComparison"/"ProgressSteps" for the built-in slots, else the `tool_results` block's `output_name`. */
753
+ /** The resolved override key: "ProductTile"/"ProductCarousel"/"ProductDetailCard"/"ProductComparison"/"ProgressSteps"/"Suggestions" for the built-in slots, else the `tool_results` block's `output_name`. */
751
754
  name: string;
752
755
  payload: unknown;
753
756
  api: OverrideApi;