@cimulate/copilot-widget 1.62.4 → 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 +12 -0
- package/README.md +1 -1
- package/dist/cimulate-copilot-widget.d.ts +11 -1
- package/dist/cimulate-copilot-widget.es.js +5517 -5474
- package/dist/cimulate-copilot-widget.umd.js +28 -28
- package/dist/copilot.es.js +5518 -5475
- package/dist/copilot.umd.js +28 -28
- package/dist/messaging.css +1 -1
- package/dist/messaging.d.ts +93 -3
- package/dist/messaging.es.js +12563 -11436
- package/dist/messaging.umd.js +49 -46
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
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
|
+
|
|
13
|
+
## 1.63.0 — 2026-11-30
|
|
14
|
+
|
|
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.
|
|
16
|
+
|
|
5
17
|
## 1.62.4 — 2026-11-30
|
|
6
18
|
|
|
7
19
|
- Resolve prechat fields for the new Shopper Agent conversation when the shopper sends a message after a human agent ends the chat.
|
package/README.md
CHANGED
|
@@ -700,7 +700,7 @@ Optionally set `messagingConfig.storefrontCartPageUrl` to embed your cart page,
|
|
|
700
700
|
|
|
701
701
|
## Localization
|
|
702
702
|
|
|
703
|
-
>
|
|
703
|
+
> **Coming soon.** Multi-locale support is under active development and is not yet available in a released version. The widget currently renders English (`en-US`) only. This section documents the planned API — do not use it in production yet.
|
|
704
704
|
|
|
705
705
|
The widget will ship with English (`en-US`) copy embedded in the bundle. All visible and accessible labels will fall back to English when no catalog is supplied. A `translations` prop will let you switch languages or override individual strings.
|
|
706
706
|
|
|
@@ -255,6 +255,10 @@ declare interface CopilotWidgetProps extends CimCopilotSdkConfig {
|
|
|
255
255
|
suggestionButtonConfig?: SuggestionButtonConfig;
|
|
256
256
|
messageAlignment?: MessageAlignment;
|
|
257
257
|
autoScroll?: boolean;
|
|
258
|
+
/**
|
|
259
|
+
* Anchors the latest live shopper message to the top of the transcript. On by default.
|
|
260
|
+
*/
|
|
261
|
+
anchorUserMessage?: boolean;
|
|
258
262
|
showProductDescription?: boolean;
|
|
259
263
|
theme?: ThemeInput;
|
|
260
264
|
openLinksInNewTab?: boolean;
|
|
@@ -375,7 +379,7 @@ declare interface CopilotWidgetProps extends CimCopilotSdkConfig {
|
|
|
375
379
|
* PromptsExtensionContext >
|
|
376
380
|
* CopilotProvider (SocketSdk: copilot-sdk)
|
|
377
381
|
*/
|
|
378
|
-
declare const CopilotWidgetProvider: ({ mode, apiKey, apiToken, baseUrl, customerId, tenantId, logoUrl, headerText, headerConfig, theme, openLinksInNewTab, onNavigate, globalClassName, isDevelopment, componentType, componentConfig, entryType, initialEntry, entryMessage, disclaimerText, disclaimerMarkdown, clientContext, baseCatalogParams, searchPlaceholder, searchButtonLabel, searchConfig, suggestionButtonConfig, messageAlignment, autoScroll, promptsConfig, resetConversationMessage, conversationHistory, onConnect, onCopilotEvent, onRefinedSearch, onRefinedBrowse, locale, translations, translationOverrides, __features, children, }: CopilotWidgetProps & {
|
|
382
|
+
declare const CopilotWidgetProvider: ({ mode, apiKey, apiToken, baseUrl, customerId, tenantId, logoUrl, headerText, headerConfig, theme, openLinksInNewTab, onNavigate, globalClassName, isDevelopment, componentType, componentConfig, entryType, initialEntry, entryMessage, disclaimerText, disclaimerMarkdown, clientContext, baseCatalogParams, searchPlaceholder, searchButtonLabel, searchConfig, suggestionButtonConfig, messageAlignment, autoScroll, anchorUserMessage, promptsConfig, resetConversationMessage, conversationHistory, onConnect, onCopilotEvent, onRefinedSearch, onRefinedBrowse, locale, translations, translationOverrides, __features, children, }: CopilotWidgetProps & {
|
|
379
383
|
children: ReactNode;
|
|
380
384
|
}) => JSX_2.Element;
|
|
381
385
|
|
|
@@ -546,6 +550,12 @@ declare interface MessagingModeConfig {
|
|
|
546
550
|
* configured for file uploads, otherwise uploads are rejected downstream.
|
|
547
551
|
*/
|
|
548
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;
|
|
549
559
|
showProductCaptions?: boolean;
|
|
550
560
|
/**
|
|
551
561
|
* Max number of progress steps to display in chat window.
|