@paramms/chat-widget 1.6.3 → 1.7.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/dist/react.d.ts CHANGED
@@ -47,6 +47,8 @@ interface BaseProps {
47
47
  quickReplies?: string[];
48
48
  /** Container height when rendered inline. Default: '100%' */
49
49
  height?: string;
50
+ /** UI language ('ko', 'ko-KR', …). Omit to auto-detect from the browser. */
51
+ locale?: MountOptions['locale'];
50
52
  /** i18n string overrides for non-English sites */
51
53
  i18n?: MountOptions['i18n'];
52
54
  /** Per-tenant feature switches (default all ON). Set a flag false to disable
@@ -101,7 +103,7 @@ export interface ChatWidgetProps extends BaseProps {
101
103
  * (inline) or `<ChatAppLauncher />` (floating bubble) — this component renders
102
104
  * a single conversation.
103
105
  */
104
- export declare function ChatWidget({ url, apiUrl, profileId, token, refreshToken, userId, userName, userEmail, userAvatar, contextTitle, contextSubtitle, contextStatus, subjectId, accent, accent2, theme, webfont, launcher, position, launcherMessage, quickReplies, height, i18n, features, translateLang, inbox, inboxScope, }: ChatWidgetProps): JSX.Element;
106
+ export declare function ChatWidget({ url, apiUrl, profileId, token, refreshToken, userId, userName, userEmail, userAvatar, contextTitle, contextSubtitle, contextStatus, subjectId, accent, accent2, theme, webfont, launcher, position, launcherMessage, quickReplies, height, i18n, features, translateLang, inbox, inboxScope, locale, }: ChatWidgetProps): JSX.Element;
105
107
  export interface MarketplaceChatProps extends BaseProps {
106
108
  /** Unique ID for this listing — each listing gets its own thread.
107
109
  * Omit for a general (non-item-specific) conversation. */
@@ -151,7 +153,7 @@ export interface MarketplaceChatProps extends BaseProps {
151
153
  *
152
154
  * Only `url` and `profileId` are required. All other props are optional.
153
155
  */
154
- export declare function MarketplaceChat({ url, apiUrl, profileId, token, refreshToken, listingId, listingTitle, listingMeta, listingPrice, listingStatus, userId, userName, userEmail, userAvatar, accent, accent2, theme, webfont, launcher, position, launcherMessage, quickReplies, height, i18n, features, translateLang, inbox, inboxScope, }: MarketplaceChatProps): JSX.Element;
156
+ export declare function MarketplaceChat({ url, apiUrl, profileId, token, refreshToken, listingId, listingTitle, listingMeta, listingPrice, listingStatus, userId, userName, userEmail, userAvatar, accent, accent2, theme, webfont, launcher, position, launcherMessage, quickReplies, height, i18n, features, translateLang, inbox, inboxScope, locale, }: MarketplaceChatProps): JSX.Element;
155
157
  export interface ChatAppProps {
156
158
  /** Relay URL — ONE url, any scheme; `https://api.relay.paramms.com` is the
157
159
  * recommended form. The WebSocket URL and REST base are derived from it —
@@ -208,6 +210,8 @@ export interface ChatAppProps {
208
210
  * fullscreen panel on a phone (no Escape key, no reachable backdrop) traps
209
211
  * the user. Omit for a bare inline embed the host chromes itself. */
210
212
  onClose?: () => void;
213
+ /** UI language ('ko', 'ko-KR', …). Omit to auto-detect from the browser. */
214
+ locale?: string;
211
215
  /** i18n overrides */
212
216
  i18n?: import('./chatlist.js').ChatListOptions['i18n'];
213
217
  }
@@ -252,7 +256,7 @@ export interface ChatAppProps {
252
256
  * }
253
257
  * ```
254
258
  */
255
- export declare function ChatApp({ url, apiUrl, profileId, tenantId, token, refreshToken, userId, userName, userEmail, accent, theme, webfont, height, i18n, onClose, scope, }: ChatAppProps): JSX.Element;
259
+ export declare function ChatApp({ url, apiUrl, profileId, tenantId, token, refreshToken, userId, userName, userEmail, accent, theme, webfont, height, i18n, onClose, locale, scope, }: ChatAppProps): JSX.Element;
256
260
  export interface ChatAppLauncherProps {
257
261
  /** Relay URL — ONE url, any scheme; `https://api.relay.paramms.com` is the
258
262
  * recommended form. The WebSocket URL and REST base are derived from it. */