@cimulate/copilot-widget 1.61.1 → 1.62.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.
@@ -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. Pair with `translations` to
549
- * supply the catalog. CDN auto-loading from this code alone is coming in
550
- * W-24965756.
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;