@cimulate/copilot-widget 1.23.0 → 1.24.1

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.
@@ -20,7 +20,7 @@ import { DisplayProducts } from '@cimulate/copilot-sdk';
20
20
  import { FacetedNavigationSuggestion } from '@cimulate/copilot-sdk';
21
21
  import { FollowUp } from '@cimulate/copilot-sdk';
22
22
  import { Inquiry } from '@cimulate/copilot-sdk';
23
- import { JSX as JSX_2 } from 'react/jsx-runtime';
23
+ import { JSX as JSX_2 } from 'react';
24
24
  import { PartialInquiry } from '@cimulate/copilot-sdk';
25
25
  import { ProductView } from '@cimulate/copilot-sdk';
26
26
  import { ProductViewAck } from '@cimulate/copilot-sdk';
@@ -104,12 +104,13 @@ declare interface CommonParams {
104
104
  /**
105
105
  * One flat map from override key to custom-element tag name.
106
106
  *
107
- * `ProductTile` and `ProductCarousel` are the only keys the widget consults for
108
- * its built-in product UI: register one and the widget mounts your element in
109
- * place of the default tile/carousel (leave it unset and the built-in renders).
110
- * Every other key is matched against a `type:"tool_results"` block's top-level
111
- * `output_name` (never a field inside the arbitrary `data` payload); an unmatched
112
- * block renders nothing. All of them receive the same `OverrideProps`.
107
+ * `ProductTile`, `ProductCarousel`, and `ProgressSteps` are the named keys the
108
+ * widget consults for its built-in UI: register one and the widget mounts your
109
+ * element in place of the default tile/carousel/progress panel (leave it unset
110
+ * and the built-in renders). Every other key is matched against a
111
+ * `type:"tool_results"` block's top-level `output_name` (never a field inside
112
+ * the arbitrary `data` payload); an unmatched block renders nothing. All of them
113
+ * receive the same `OverrideProps`.
113
114
  *
114
115
  * { ProductTile: "cx-product-card", recentOrders: "cx-recent-orders" }
115
116
  *
@@ -120,6 +121,7 @@ declare interface CommonParams {
120
121
  declare interface ComponentOverrides {
121
122
  ProductTile?: OverrideTagName;
122
123
  ProductCarousel?: OverrideTagName;
124
+ ProgressSteps?: OverrideTagName;
123
125
  [key: string]: OverrideTagName | undefined;
124
126
  }
125
127
 
@@ -189,6 +191,7 @@ declare interface CopilotWidgetProps extends CimCopilotSdkConfig {
189
191
  suggestionButtonConfig?: SuggestionButtonConfig;
190
192
  messageAlignment?: MessageAlignment;
191
193
  autoScroll?: boolean;
194
+ showProductDescription?: boolean;
192
195
  theme?: ThemeConfig;
193
196
  openLinksInNewTab?: boolean;
194
197
  entryType?: EntryType;
@@ -348,13 +351,9 @@ declare type MessageAlignment = "start" | "end";
348
351
  * Configuration for messaging mode (SCRT2 Agentforce).
349
352
  */
350
353
  declare interface MessagingModeConfig {
351
- /** SCRT2 instance URL (e.g. "https://xyz.salesforce-scrt.com") */
352
354
  scrt2Url: string;
353
- /** Salesforce Organization ID */
354
355
  orgId: string;
355
- /** Embedded Service developer name */
356
356
  esDeveloperName: string;
357
- /** Optional routing attributes for the conversation */
358
357
  routingAttributes?: Record<string, string>;
359
358
  /**
360
359
  * Capabilities version for the SCRT2 token request. Required (>= "63", i.e.
@@ -364,18 +363,15 @@ declare interface MessagingModeConfig {
364
363
  */
365
364
  capabilitiesVersion?: string;
366
365
  /**
367
- * Shows a "Download transcript" option in the widget's overflow menu that
368
- * saves the current conversation as a PDF. Defaults to true; set to false to
369
- * hide it. Requires the org's messaging channel to allow transcript download.
366
+ * Requires the org's messaging channel to allow transcript download.
370
367
  */
371
368
  enableDownloadTranscript?: boolean;
372
369
  /**
373
- * Shows a "Connect to a human agent" button in the messaging search bar that
374
- * asks the Agentforce agent to escalate the conversation to a human. Defaults
375
- * to false; set to true to show it. Requires the org's Agentforce agent to be
370
+ * Requires the org's Agentforce agent to be
376
371
  * configured with an escalation path/topic, otherwise the button is a no-op.
377
372
  */
378
373
  enableEscalationToAgent?: boolean;
374
+ showProductCaptions?: boolean;
379
375
  }
380
376
 
381
377
  /**