@cimulate/copilot-widget 1.61.1 → 1.62.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 +5 -1
- package/dist/cimulate-copilot-widget.d.ts +9 -4
- package/dist/cimulate-copilot-widget.es.js +4299 -4255
- package/dist/cimulate-copilot-widget.umd.js +29 -29
- package/dist/copilot.d.ts +1 -0
- package/dist/copilot.es.js +4297 -4253
- package/dist/copilot.umd.js +29 -29
- package/dist/messaging.d.ts +8 -4
- package/dist/messaging.es.js +5429 -5386
- package/dist/messaging.umd.js +28 -28
- package/package.json +1 -1
package/dist/messaging.d.ts
CHANGED
|
@@ -545,16 +545,17 @@ declare interface CopilotWidgetProps extends CimCopilotSdkConfig {
|
|
|
545
545
|
messagingConfig?: MessagingModeConfig;
|
|
546
546
|
/**
|
|
547
547
|
* BCP-47 locale code for the widget language (e.g. `"fr-FR"`). Sets the
|
|
548
|
-
* `lang` attribute on widget root elements
|
|
549
|
-
*
|
|
550
|
-
*
|
|
548
|
+
* `lang` attribute on widget root elements and automatically fetches the
|
|
549
|
+
* matching locale catalog from the CDN. Supply `translations` directly to
|
|
550
|
+
* skip the CDN fetch and use your own catalog instead.
|
|
551
551
|
*/
|
|
552
552
|
locale?: LocaleCode;
|
|
553
553
|
/**
|
|
554
554
|
* Translated or customized widget copy. Pass a full locale catalog (e.g.
|
|
555
555
|
* imported from `@cimulate/copilot-widget/locales/fr-FR`) or a partial
|
|
556
556
|
* object to override individual strings. Any key omitted falls back to the
|
|
557
|
-
* bundled English (`en-US`) default.
|
|
557
|
+
* bundled English (`en-US`) default. When set, the CDN auto-load triggered
|
|
558
|
+
* by `locale` is skipped.
|
|
558
559
|
*/
|
|
559
560
|
translations?: WidgetMessageCatalog;
|
|
560
561
|
/**
|
|
@@ -1783,6 +1784,9 @@ declare function updateCart(cart: CartDetails): void;
|
|
|
1783
1784
|
|
|
1784
1785
|
export declare function useMessaging(): MessagingContextType;
|
|
1785
1786
|
|
|
1787
|
+
/** The semver version of this widget build, e.g. `"1.62.0"`. */
|
|
1788
|
+
export declare const version: string;
|
|
1789
|
+
|
|
1786
1790
|
declare interface WidgetComponentConfig {
|
|
1787
1791
|
isOpen?: boolean;
|
|
1788
1792
|
isMinimized?: boolean;
|