@cimulate/copilot-widget 1.44.0 → 1.44.2
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 +10 -1
- package/dist/messaging.d.ts +18 -2
- package/dist/messaging.es.js +5761 -5688
- package/dist/messaging.umd.js +30 -30
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
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.44.2 — 2026-09-30
|
|
6
|
+
|
|
7
|
+
- Agentforce message groups now include a `chatbot` or `human-agent` class from the sender role, so a storefront can style a bot reply differently from a human agent reply.
|
|
8
|
+
|
|
9
|
+
## 1.44.1 — 2026-09-29
|
|
10
|
+
|
|
11
|
+
- Messaging mode now snaps instantly to the latest message on open, navigation, new tab, and history restore in both `autoScroll` modes. Resolves an intermittent animated crawl on widget open. Additionaly, scrolling animation will honor `prefers-reduced-motion` OS setting.
|
|
12
|
+
- Preserve a scrolled-up transcript position when the dialog/modal remounts.
|
|
13
|
+
|
|
5
14
|
## 1.44.0 — 2026-09-28
|
|
6
15
|
|
|
7
16
|
- Added image upload in Agentforce messaging mode. Shoppers can attach an image (upload button, drag-and-drop, or paste) alongside an optional caption; it is downsized client-side (correcting EXIF orientation so phone photos aren't rotated) and sent to SCRT2 via the new `sendFile` API, and the sent image is echoed as a thumbnail in the shopper's own message bubble. Uploaded images persist across a page refresh. Gated behind the `messagingConfig.enableImageUpload` config flag. Requires `@cimulate/agentforce-sdk` >= 1.4.0. Enabling in production also requires per-org setup: the Agentforce agent must have file uploads enabled and the agent user granted the file-upload permissions, or sends fail with `FORBIDDEN / Content document is not accessible`.
|
|
@@ -10,7 +19,7 @@
|
|
|
10
19
|
|
|
11
20
|
- Agentforce product-search responses now announce the response text followed by the number and titles of products returned. Product IDs are used when titles are unavailable, and unrelated response blocks are skipped.
|
|
12
21
|
|
|
13
|
-
## 1.43.1
|
|
22
|
+
## 1.43.1 - 2026-09-23
|
|
14
23
|
|
|
15
24
|
- When `isCartMgmtSupported` custom preference property is set to true, the shopper will not be presented product detail and product comparison UI assets within the chat conversation where the product names are hyperlinked to their detail pages. This will minimize page refreshes and subsequently not impact chat widget scrolling behavior during the middle of a conversation. When this flag is true, it grants user cart management abilities within the chat, allowing user to view product details and manage their cart in-chat without navigating through various parts of the storefront.
|
|
16
25
|
|
package/dist/messaging.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ import { FacetedNavigationSuggestion } from '@cimulate/copilot-sdk';
|
|
|
21
21
|
import { FollowUp } from '@cimulate/copilot-sdk';
|
|
22
22
|
import { Inquiry } from '@cimulate/copilot-sdk';
|
|
23
23
|
import { JSX as JSX_2 } from 'react';
|
|
24
|
+
import { MutableRefObject } from 'react';
|
|
24
25
|
import { PartialInquiry } from '@cimulate/copilot-sdk';
|
|
25
26
|
import { ProductView } from '@cimulate/copilot-sdk';
|
|
26
27
|
import { ProductViewAck } from '@cimulate/copilot-sdk';
|
|
@@ -568,7 +569,11 @@ export declare interface MessagingContextType {
|
|
|
568
569
|
* Messaging mode Dialog — mirrors CopilotDialog with the same CSS and layout,
|
|
569
570
|
* but consumes from the messaging (SCRT2/Agentforce) context.
|
|
570
571
|
*/
|
|
571
|
-
export declare const MessagingDialog: () => JSX_2.Element | null;
|
|
572
|
+
export declare const MessagingDialog: ({ scrollSnapshotRef }: MessagingDialogProps) => JSX_2.Element | null;
|
|
573
|
+
|
|
574
|
+
declare interface MessagingDialogProps {
|
|
575
|
+
scrollSnapshotRef: MutableRefObject<MessagingScrollSnapshot | null>;
|
|
576
|
+
}
|
|
572
577
|
|
|
573
578
|
/**
|
|
574
579
|
* Messaging mode Embed — mirrors CopilotEmbed with the same CSS and layout,
|
|
@@ -604,7 +609,11 @@ export declare interface MessagingMessage {
|
|
|
604
609
|
* Messaging mode Modal — mirrors CopilotModal with the same CSS and layout,
|
|
605
610
|
* but consumes from the messaging (SCRT2/Agentforce) context.
|
|
606
611
|
*/
|
|
607
|
-
export declare const MessagingModal: () => JSX_2.Element | null;
|
|
612
|
+
export declare const MessagingModal: ({ scrollSnapshotRef }: MessagingModalProps) => JSX_2.Element | null;
|
|
613
|
+
|
|
614
|
+
declare interface MessagingModalProps {
|
|
615
|
+
scrollSnapshotRef: MutableRefObject<MessagingScrollSnapshot | null>;
|
|
616
|
+
}
|
|
608
617
|
|
|
609
618
|
/**
|
|
610
619
|
* Configuration for messaging mode (SCRT2 Agentforce).
|
|
@@ -685,6 +694,13 @@ declare interface MessagingProviderProps {
|
|
|
685
694
|
children: ReactNode;
|
|
686
695
|
}
|
|
687
696
|
|
|
697
|
+
declare type MessagingScrollSnapshot = {
|
|
698
|
+
scrollTop: number;
|
|
699
|
+
shouldStickToBottom: boolean;
|
|
700
|
+
hasSentLiveMessage: boolean;
|
|
701
|
+
anchorMessageId: string | null;
|
|
702
|
+
};
|
|
703
|
+
|
|
688
704
|
/**
|
|
689
705
|
* Full state shape for the messaging reducer.
|
|
690
706
|
*/
|