@cimulate/copilot-widget 1.39.0 → 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 +8 -0
- package/README.md +2 -0
- package/dist/cimulate-copilot-widget.d.ts +12 -11
- package/dist/cimulate-copilot-widget.es.js +1149 -1130
- package/dist/cimulate-copilot-widget.umd.js +19 -19
- package/dist/copilot.es.js +1154 -1135
- package/dist/copilot.umd.js +19 -19
- package/dist/messaging.d.ts +15 -12
- package/dist/messaging.es.js +1679 -1621
- package/dist/messaging.umd.js +24 -24
- package/package.json +7 -7
package/dist/messaging.d.ts
CHANGED
|
@@ -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`,
|
|
217
|
-
* `ProgressSteps` are the named keys the widget consults for
|
|
218
|
-
* register one and the widget mounts your element in place of
|
|
219
|
-
* tile/carousel/detail card/comparison table/progress panel
|
|
220
|
-
* the built-in renders). Every other key
|
|
221
|
-
* `type:"tool_results"` block's top-level `output_name`
|
|
222
|
-
* the arbitrary `data` payload); an unmatched block
|
|
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
|
|
228
|
-
*
|
|
229
|
-
*
|
|
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;
|