@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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
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
|
+
|
|
9
|
+
## 1.39.1 — 2026-09-16
|
|
10
|
+
|
|
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.
|
|
12
|
+
|
|
5
13
|
## 1.39.0 — 2026-09-15
|
|
6
14
|
|
|
7
15
|
- Agentforce messaging mode now exposes `eventHandlers.session.endConversation()` for storefronts (CDN and NPM). Calling it ends the SCRT2 conversation and clears the in-widget transcript WITHOUT starting a new session — unlike `resetConversation()`, it does not reconnect or create a replacement conversation. The next time the widget is opened it connects and starts a fresh session on demand.
|
package/README.md
CHANGED
|
@@ -10,6 +10,8 @@ Cimulate's Copilot Widget SDK is a React component library which allows you to e
|
|
|
10
10
|
npm install @cimulate/copilot-widget
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
+
NPM hosts must provide `react` and `react-dom` (`^18.3 || ^19`). CDN/UMD `<script>` installs are unchanged and still bundle React.
|
|
14
|
+
|
|
13
15
|
## Playgrounds
|
|
14
16
|
|
|
15
17
|
### React App Playground
|
|
@@ -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`,
|
|
112
|
-
* `ProgressSteps` are the named keys the widget consults for
|
|
113
|
-
* register one and the widget mounts your element in place of
|
|
114
|
-
* tile/carousel/detail card/comparison table/progress panel
|
|
115
|
-
* the built-in renders). Every other key
|
|
116
|
-
* `type:"tool_results"` block's top-level `output_name`
|
|
117
|
-
* the arbitrary `data` payload); an unmatched block
|
|
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
|
|
123
|
-
*
|
|
124
|
-
*
|
|
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
|
|