@channelhub/widget 0.1.11 → 0.1.13
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/README.md +168 -0
- package/dist/ChannelHubInbox.d.ts.map +1 -1
- package/dist/ChannelHubSettings.d.ts +3 -0
- package/dist/ChannelHubSettings.d.ts.map +1 -0
- package/dist/api.d.ts +16 -5
- package/dist/api.d.ts.map +1 -1
- package/dist/index.cjs +104 -29
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4903 -2820
- package/dist/types.d.ts +224 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/ChannelHubInbox.tsx +360 -67
- package/src/ChannelHubSettings.tsx +1654 -0
- package/src/api.ts +163 -2
- package/src/index.ts +18 -2
- package/src/types.ts +223 -2
package/dist/types.d.ts
CHANGED
|
@@ -1,16 +1,36 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Supported messaging channel providers in ChannelHub.
|
|
4
|
+
*/
|
|
5
|
+
export type Provider = 'facebook' | 'instagram' | 'telegram' | 'zalo' | 'livechat' | 'whatsapp' | string;
|
|
3
6
|
export type Connection = {
|
|
4
7
|
id: string;
|
|
5
8
|
provider: Provider;
|
|
6
9
|
type?: string;
|
|
7
10
|
metadata?: Record<string, unknown>;
|
|
8
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* Represents a staff member / support agent in the host application (CRM / POS / ERP).
|
|
14
|
+
* Used for conversation assignment (`assignedAgent`) and message attribution (`senderAgent`).
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* const currentAgent: ChannelHubAgent = {
|
|
18
|
+
* id: 'emp_101',
|
|
19
|
+
* name: 'Nguyễn Văn A',
|
|
20
|
+
* title: 'Tư vấn viên',
|
|
21
|
+
* avatarUrl: 'https://example.com/avatar.png',
|
|
22
|
+
* };
|
|
23
|
+
*/
|
|
9
24
|
export interface ChannelHubAgent {
|
|
25
|
+
/** Unique staff ID from the host platform/CRM */
|
|
10
26
|
id: string;
|
|
27
|
+
/** Display name shown on conversation badges and message bubbles */
|
|
11
28
|
name: string;
|
|
29
|
+
/** Optional avatar URL */
|
|
12
30
|
avatarUrl?: string;
|
|
31
|
+
/** Optional role/title (e.g., "Sale", "CSKH", "Lễ tân") */
|
|
13
32
|
title?: string;
|
|
33
|
+
/** Optional custom metadata from host platform */
|
|
14
34
|
metadata?: Record<string, unknown>;
|
|
15
35
|
}
|
|
16
36
|
export type Conversation = {
|
|
@@ -68,6 +88,7 @@ export interface ExtensionContact {
|
|
|
68
88
|
name?: string;
|
|
69
89
|
pictureUrl?: string;
|
|
70
90
|
providerUserId: string;
|
|
91
|
+
/** External CRM customer ID linked via `ctx.linkContact(externalId)` */
|
|
71
92
|
externalId?: string;
|
|
72
93
|
}
|
|
73
94
|
export interface ExtensionContext {
|
|
@@ -75,8 +96,11 @@ export interface ExtensionContext {
|
|
|
75
96
|
contact: ExtensionContact;
|
|
76
97
|
provider?: Provider;
|
|
77
98
|
recentMessages?: Message[];
|
|
99
|
+
/** Link or unlink this chat contact with an external CRM customer ID */
|
|
78
100
|
linkContact: (externalId: string | null) => Promise<void>;
|
|
101
|
+
/** Trigger re-fetching of `contactInfoRows` across all registered extensions */
|
|
79
102
|
refreshContactInfo: () => void;
|
|
103
|
+
/** Programmatically send a message into the active conversation */
|
|
80
104
|
sendMessage: (text?: string, attachments?: MessageAttachment[]) => Promise<void>;
|
|
81
105
|
}
|
|
82
106
|
export interface ContactInfoRow {
|
|
@@ -108,12 +132,202 @@ export interface MessageEnrichment {
|
|
|
108
132
|
pattern: RegExp;
|
|
109
133
|
render: (match: RegExpMatchArray, ctx: ExtensionContext, message: Message) => React.ReactNode;
|
|
110
134
|
}
|
|
135
|
+
/**
|
|
136
|
+
* Extension hook interface allowing host platforms (CRM, POS, Clinic, E-commerce)
|
|
137
|
+
* to inject custom customer data rows, sidebar CTA buttons, composer toolbar actions,
|
|
138
|
+
* and inline message regex enrichments into `<ChannelHubInbox />`.
|
|
139
|
+
*/
|
|
111
140
|
export interface Extension {
|
|
112
141
|
contactInfoRows?: (ctx: ExtensionContext) => Promise<ContactInfoRow[]>;
|
|
113
142
|
sidebarActions?: SidebarAction[];
|
|
114
143
|
toolbarActions?: ToolbarAction[];
|
|
115
144
|
messageEnrichments?: MessageEnrichment[];
|
|
116
145
|
}
|
|
146
|
+
export interface CannedResponse {
|
|
147
|
+
id: string;
|
|
148
|
+
title: string;
|
|
149
|
+
content: string;
|
|
150
|
+
shortcut: string | null;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* - `'off'`: AI is disabled.
|
|
154
|
+
* - `'copilot'`: AI suggests replies/drafts to human agents; does not auto-send.
|
|
155
|
+
* - `'autopilot'`: AI automatically replies when conversation is unassigned (`assignedAgent === null`).
|
|
156
|
+
*/
|
|
157
|
+
export type ChannelHubAiMode = 'off' | 'copilot' | 'autopilot';
|
|
158
|
+
export type ChannelHubAiTone = 'friendly' | 'professional' | 'concise';
|
|
159
|
+
export type ChannelHubAiProvider = 'webhook' | 'openai' | 'gemini' | 'anthropic';
|
|
160
|
+
/**
|
|
161
|
+
* Schema definition for a platform-specific business parameter rendered inside `<ChannelHubSettings />`.
|
|
162
|
+
*
|
|
163
|
+
* When a SaaS Platform embeds ChannelHub for its end-merchants (tenants), the Platform can define
|
|
164
|
+
* domain-specific fields (e.g. `allowStockCheck`, `bookingLink`, `shippingPolicy`).
|
|
165
|
+
* User inputs are persisted in `settings.ai.parameters[key]` via `PUT /v1/settings` and can be
|
|
166
|
+
* retrieved by the Platform's AI backend via `GET /v1/settings` or `onSettingsChange`.
|
|
167
|
+
*
|
|
168
|
+
* @example
|
|
169
|
+
* const customParameters: ChannelHubCustomParameter[] = [
|
|
170
|
+
* {
|
|
171
|
+
* key: 'allowStockCheck',
|
|
172
|
+
* type: 'toggle',
|
|
173
|
+
* label: 'Cho phép AI tự tra cứu & báo tồn kho',
|
|
174
|
+
* description: 'AI tự động kiểm tra tồn kho thực tế từ POS trước khi trả lời khách',
|
|
175
|
+
* defaultValue: true,
|
|
176
|
+
* },
|
|
177
|
+
* {
|
|
178
|
+
* key: 'shippingPolicy',
|
|
179
|
+
* type: 'textarea',
|
|
180
|
+
* label: 'Chính sách giao hàng & đổi trả của shop',
|
|
181
|
+
* placeholder: 'VD: Freeship đơn từ 300k, đổi trả trong 7 ngày...',
|
|
182
|
+
* },
|
|
183
|
+
* ];
|
|
184
|
+
*/
|
|
185
|
+
export interface ChannelHubCustomParameter {
|
|
186
|
+
/** Unique parameter key saved under `settings.ai.parameters[key]` */
|
|
187
|
+
key: string;
|
|
188
|
+
/** UI control type rendered in `<ChannelHubSettings />` */
|
|
189
|
+
type: 'toggle' | 'text' | 'textarea' | 'select';
|
|
190
|
+
/** Human-readable label shown to the shop owner / admin */
|
|
191
|
+
label: string;
|
|
192
|
+
/** Optional helper text explaining what this parameter controls */
|
|
193
|
+
description?: string;
|
|
194
|
+
/** Placeholder text for `'text'` and `'textarea'` inputs */
|
|
195
|
+
placeholder?: string;
|
|
196
|
+
/** Default value applied if the tenant has not configured this parameter yet */
|
|
197
|
+
defaultValue?: string | boolean;
|
|
198
|
+
/** Dropdown options when `type === 'select'` */
|
|
199
|
+
options?: {
|
|
200
|
+
label: string;
|
|
201
|
+
value: string;
|
|
202
|
+
}[];
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Tenant-level configuration stored in `tenants.settings` (JSONB) and returned by `GET /v1/settings`.
|
|
206
|
+
*/
|
|
207
|
+
export interface ChannelHubTenantSettings {
|
|
208
|
+
ai: {
|
|
209
|
+
mode: ChannelHubAiMode;
|
|
210
|
+
tone: ChannelHubAiTone;
|
|
211
|
+
/** Seconds to wait and batch consecutive customer messages before triggering AI (default: 5) */
|
|
212
|
+
debounceSeconds: number;
|
|
213
|
+
/** Automatically stop AI autopilot when a staff member claims/is assigned to the conversation */
|
|
214
|
+
autoPauseOnAgentAssign: boolean;
|
|
215
|
+
/** Automatically stop AI autopilot when a staff member manually sends a message */
|
|
216
|
+
autoPauseOnAgentReply: boolean;
|
|
217
|
+
/** Hand off to human staff when customer leaves a phone number */
|
|
218
|
+
handoffOnPhone: boolean;
|
|
219
|
+
/** Hand off to human staff when customer complains or asks for a human */
|
|
220
|
+
handoffOnComplaint: boolean;
|
|
221
|
+
schedule: 'always' | 'outside_hours';
|
|
222
|
+
businessHours: {
|
|
223
|
+
start: string;
|
|
224
|
+
end: string;
|
|
225
|
+
};
|
|
226
|
+
provider: ChannelHubAiProvider;
|
|
227
|
+
webhookUrl?: string;
|
|
228
|
+
webhookSecret?: string;
|
|
229
|
+
apiKey?: string;
|
|
230
|
+
model?: string;
|
|
231
|
+
systemPrompt?: string;
|
|
232
|
+
/**
|
|
233
|
+
* Key-value map of custom business parameters defined by `customParameters`
|
|
234
|
+
* (e.g. `{ allowStockCheck: true, shippingPolicy: "Freeship > 300k" }`).
|
|
235
|
+
*/
|
|
236
|
+
parameters: Record<string, string | boolean>;
|
|
237
|
+
};
|
|
238
|
+
inbox: {
|
|
239
|
+
/** Automatically assign an unassigned conversation to the first agent who replies */
|
|
240
|
+
autoAssignOnFirstReply: boolean;
|
|
241
|
+
/** Play notification sound on new inbound messages */
|
|
242
|
+
soundNotification: boolean;
|
|
243
|
+
/** Quick reply chips shown above the message composer */
|
|
244
|
+
quickReplies: string[];
|
|
245
|
+
welcomeMessageEnabled: boolean;
|
|
246
|
+
welcomeMessageText: string;
|
|
247
|
+
awayMessageEnabled: boolean;
|
|
248
|
+
awayMessageText: string;
|
|
249
|
+
};
|
|
250
|
+
/**
|
|
251
|
+
* `true` when the tenant belongs to a parent SaaS Platform (`tenants.platform_id != null`).
|
|
252
|
+
* When `true` (or when `hideTechnicalAiConfig` is passed), technical AI connection settings
|
|
253
|
+
* (API Keys, Model names, Webhook URLs) are hidden from end-user merchants.
|
|
254
|
+
*/
|
|
255
|
+
isPlatformManaged?: boolean;
|
|
256
|
+
}
|
|
257
|
+
export type ChannelHubSettingsTab = 'ai' | 'templates' | 'inbox' | 'channels';
|
|
258
|
+
/**
|
|
259
|
+
* Props for `<ChannelHubSettings />`.
|
|
260
|
+
*
|
|
261
|
+
* Supports two integration modes:
|
|
262
|
+
* 1. **Standalone Shop Mode (Direct Tenant)**: Omit `hideTechnicalAiConfig`. The shop can configure
|
|
263
|
+
* its own OpenAI/Gemini/Claude API Key, System Prompt, or External Webhook URL, plus Canned Responses.
|
|
264
|
+
* 2. **B2B2B Platform Mode (SaaS Host App)**: Set `hideTechnicalAiConfig={true}` and pass `customParameters`
|
|
265
|
+
* and `starterTemplates`. Technical AI fields are hidden, and the shop only sees easy business toggles/inputs.
|
|
266
|
+
*
|
|
267
|
+
* @example
|
|
268
|
+
* // Platform-Managed Mode example:
|
|
269
|
+
* <ChannelHubSettings
|
|
270
|
+
* apiUrl="https://api.channelhub.io.vn"
|
|
271
|
+
* token={tenantToken}
|
|
272
|
+
* hideTechnicalAiConfig={true}
|
|
273
|
+
* customParameters={[
|
|
274
|
+
* { key: 'autoCheckStock', type: 'toggle', label: 'Tự động báo tồn kho', defaultValue: true },
|
|
275
|
+
* { key: 'promoText', type: 'text', label: 'Khuyến mãi đang chạy' },
|
|
276
|
+
* ]}
|
|
277
|
+
* onSettingsChange={(updated) => console.log('Saved parameters:', updated.ai.parameters)}
|
|
278
|
+
* />
|
|
279
|
+
*/
|
|
280
|
+
export interface ChannelHubSettingsProps {
|
|
281
|
+
apiUrl: string;
|
|
282
|
+
token: string;
|
|
283
|
+
theme?: WidgetTheme;
|
|
284
|
+
/** Initial active tab (default: `'ai'`) */
|
|
285
|
+
initialTab?: ChannelHubSettingsTab;
|
|
286
|
+
/** Visible tabs (default: `['ai', 'templates', 'inbox']`; add `'channels'` to embed channel connection manager) */
|
|
287
|
+
tabs?: ChannelHubSettingsTab[];
|
|
288
|
+
/**
|
|
289
|
+
* Hide technical AI connection fields (API Key / Model / Webhook URL).
|
|
290
|
+
* Recommended when a SaaS Platform manages the AI backend centrally for its tenants.
|
|
291
|
+
*/
|
|
292
|
+
hideTechnicalAiConfig?: boolean;
|
|
293
|
+
/**
|
|
294
|
+
* Custom business parameters injected by the SaaS Platform into the AI settings tab.
|
|
295
|
+
* Values are persisted in `settings.ai.parameters` (`GET / PUT /v1/settings`).
|
|
296
|
+
*/
|
|
297
|
+
customParameters?: ChannelHubCustomParameter[];
|
|
298
|
+
/**
|
|
299
|
+
* Industry-specific starter canned responses offered when a shop has 0 templates.
|
|
300
|
+
*/
|
|
301
|
+
starterTemplates?: {
|
|
302
|
+
title: string;
|
|
303
|
+
content: string;
|
|
304
|
+
shortcut?: string;
|
|
305
|
+
}[];
|
|
306
|
+
/** Callback fired whenever settings are saved via `PUT /v1/settings` */
|
|
307
|
+
onSettingsChange?: (settings: ChannelHubTenantSettings) => void;
|
|
308
|
+
/** Optional close handler when rendered inside a modal/drawer */
|
|
309
|
+
onClose?: () => void;
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Props for `<ChannelHubInbox />` — the main omnichannel messaging inbox widget.
|
|
313
|
+
*
|
|
314
|
+
* @example
|
|
315
|
+
* <ChannelHubInbox
|
|
316
|
+
* apiUrl="https://api.channelhub.io.vn"
|
|
317
|
+
* token={tenantToken}
|
|
318
|
+
* currentAgent={{ id: 'emp_1', name: 'Nguyễn Văn A', title: 'CSKH' }}
|
|
319
|
+
* teamAgents={[
|
|
320
|
+
* { id: 'emp_1', name: 'Nguyễn Văn A', title: 'CSKH' },
|
|
321
|
+
* { id: 'emp_2', name: 'Trần Thị B', title: 'Sale' },
|
|
322
|
+
* ]}
|
|
323
|
+
* settingsConfig={{
|
|
324
|
+
* hideTechnicalAiConfig: true,
|
|
325
|
+
* customParameters: [
|
|
326
|
+
* { key: 'allowStockCheck', type: 'toggle', label: 'Cho phép AI báo tồn kho', defaultValue: true },
|
|
327
|
+
* ],
|
|
328
|
+
* }}
|
|
329
|
+
* />
|
|
330
|
+
*/
|
|
117
331
|
export type WidgetProps = {
|
|
118
332
|
apiUrl: string;
|
|
119
333
|
token: string;
|
|
@@ -123,9 +337,18 @@ export type WidgetProps = {
|
|
|
123
337
|
disableAttachments?: boolean;
|
|
124
338
|
disableNotificationSound?: boolean;
|
|
125
339
|
hideKeyboardHint?: boolean;
|
|
340
|
+
/** Hide the top-left `⚙️` Settings button in the inbox sidebar header */
|
|
341
|
+
hideSettingsButton?: boolean;
|
|
342
|
+
/**
|
|
343
|
+
* Configuration forwarded to the built-in `<ChannelHubSettings />` modal
|
|
344
|
+
* when opened from the inbox `⚙️` button or `+ Quản lý mẫu câu` action.
|
|
345
|
+
*/
|
|
346
|
+
settingsConfig?: Pick<ChannelHubSettingsProps, 'tabs' | 'hideTechnicalAiConfig' | 'customParameters' | 'starterTemplates'>;
|
|
126
347
|
locale?: 'vi' | 'en';
|
|
127
348
|
extensions?: Extension[];
|
|
349
|
+
/** Currently logged-in staff member (used for "+ Nhận phụ trách" and outbound message sender attribution) */
|
|
128
350
|
currentAgent?: ChannelHubAgent | null;
|
|
351
|
+
/** List of team members available in the conversation assignment dropdown */
|
|
129
352
|
teamAgents?: ChannelHubAgent[];
|
|
130
353
|
onNewMessage?: (conversationId: string) => void;
|
|
131
354
|
onConversationSelect?: (conversationId: string) => void;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,MAAM,QAAQ,GAAG,UAAU,GAAG,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,UAAU,GAAG,WAAW,GAA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