@cimulate/copilot-widget 1.48.5 → 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 +13 -0
- package/dist/cimulate-copilot-widget.d.ts +11 -4
- package/dist/cimulate-copilot-widget.es.js +1432 -1427
- package/dist/cimulate-copilot-widget.umd.js +34 -34
- package/dist/copilot.es.js +1435 -1430
- package/dist/copilot.umd.js +34 -34
- package/dist/messaging.d.ts +14 -5
- package/dist/messaging.es.js +7544 -7499
- package/dist/messaging.umd.js +30 -30
- package/package.json +1 -1
package/dist/messaging.d.ts
CHANGED
|
@@ -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
|
|
329
|
-
* consults for its built-in UI: register one and the widget
|
|
330
|
-
* in place of the default tile/carousel/detail
|
|
331
|
-
* panel/follow-up buttons/
|
|
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;
|