@paramms/chat-widget 1.0.45 → 1.0.46
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/chatlist.d.ts +1 -0
- package/dist/chatlist.js +29 -25
- package/dist/chatlist.js.map +1 -1
- package/dist/embed-lite.js +3 -3
- package/dist/embed-lite.js.map +1 -1
- package/dist/embed.d.ts +2 -0
- package/dist/embed.js +3 -3
- package/dist/embed.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +95 -88
- package/dist/index.js.map +1 -1
- package/dist/react.d.ts +6 -3
- package/dist/react.js +319 -307
- package/dist/react.js.map +1 -1
- package/dist/renderer.d.ts +3 -0
- package/package.json +1 -1
package/dist/react.d.ts
CHANGED
|
@@ -31,6 +31,8 @@ interface BaseProps {
|
|
|
31
31
|
accent2?: string;
|
|
32
32
|
/** Colour scheme: 'auto'|'light'|'dark'. */
|
|
33
33
|
theme?: 'auto' | 'light' | 'dark';
|
|
34
|
+
/** Load Baloo 2 + Nunito webfonts (default true). */
|
|
35
|
+
webfont?: boolean;
|
|
34
36
|
/** Render as a floating launcher button instead of inline */
|
|
35
37
|
launcher?: boolean;
|
|
36
38
|
/** Launcher position — default 'bottom-right' */
|
|
@@ -99,7 +101,7 @@ export interface ChatWidgetProps extends BaseProps {
|
|
|
99
101
|
* (inline) or `<ChatAppLauncher />` (floating bubble) — this component renders
|
|
100
102
|
* a single conversation.
|
|
101
103
|
*/
|
|
102
|
-
export declare function ChatWidget({ url, apiUrl, profileId, token, refreshToken, userId, userName, userEmail, userAvatar, contextTitle, contextSubtitle, contextStatus, subjectId, accent, accent2, theme, launcher, position, launcherMessage, quickReplies, height, i18n, features, translateLang, inbox, inboxScope, }: ChatWidgetProps): JSX.Element;
|
|
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;
|
|
103
105
|
export interface MarketplaceChatProps extends BaseProps {
|
|
104
106
|
/** Unique ID for this listing — each listing gets its own thread.
|
|
105
107
|
* Omit for a general (non-item-specific) conversation. */
|
|
@@ -149,7 +151,7 @@ export interface MarketplaceChatProps extends BaseProps {
|
|
|
149
151
|
*
|
|
150
152
|
* Only `url` and `profileId` are required. All other props are optional.
|
|
151
153
|
*/
|
|
152
|
-
export declare function MarketplaceChat({ url, apiUrl, profileId, token, refreshToken, listingId, listingTitle, listingMeta, listingPrice, listingStatus, userId, userName, userEmail, userAvatar, accent, accent2, theme, launcher, position, launcherMessage, quickReplies, height, i18n, features, translateLang, inbox, inboxScope, }: MarketplaceChatProps): JSX.Element;
|
|
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;
|
|
153
155
|
export interface ChatAppProps {
|
|
154
156
|
/** Relay URL — ONE url, any scheme; `https://api.relay.paramms.com` is the
|
|
155
157
|
* recommended form. The WebSocket URL and REST base are derived from it —
|
|
@@ -196,6 +198,7 @@ export interface ChatAppProps {
|
|
|
196
198
|
/** Brand colour hex — default '#6c5ce7' */
|
|
197
199
|
accent?: string;
|
|
198
200
|
theme?: 'auto' | 'light' | 'dark';
|
|
201
|
+
webfont?: boolean;
|
|
199
202
|
/** Container height. Default: '100%' */
|
|
200
203
|
height?: string;
|
|
201
204
|
/** When provided, ChatApp renders an always-visible close (✕) control in the
|
|
@@ -249,7 +252,7 @@ export interface ChatAppProps {
|
|
|
249
252
|
* }
|
|
250
253
|
* ```
|
|
251
254
|
*/
|
|
252
|
-
export declare function ChatApp({ url, apiUrl, profileId, tenantId, token, refreshToken, userId, userName, userEmail, accent, theme, height, i18n, onClose, scope, }: ChatAppProps): JSX.Element;
|
|
255
|
+
export declare function ChatApp({ url, apiUrl, profileId, tenantId, token, refreshToken, userId, userName, userEmail, accent, theme, webfont, height, i18n, onClose, scope, }: ChatAppProps): JSX.Element;
|
|
253
256
|
export interface ChatAppLauncherProps {
|
|
254
257
|
/** Relay URL — ONE url, any scheme; `https://api.relay.paramms.com` is the
|
|
255
258
|
* recommended form. The WebSocket URL and REST base are derived from it. */
|