@ezychat/web 0.1.85 → 0.1.87
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-lib/chunks/{admin-Bcel7ZqO.js → admin-DA-ZeETJ.js} +126 -13
- package/dist-lib/chunks/{admin-BDciacjd.js → admin-PCeCUotx.js} +126 -13
- package/dist-lib/chunks/{auth-CQo75iLg.js → auth-DfAHhbd8.js} +10 -1
- package/dist-lib/chunks/{auth-Bc0bOKPN.js → auth-y6WyLxWX.js} +10 -1
- package/dist-lib/chunks/{common-BAoxGts5.js → common-5l92M5hP.js} +15 -3
- package/dist-lib/chunks/{common-C3KIPASu.js → common-BjtNhvrz.js} +15 -3
- package/dist-lib/chunks/{inbox-HnJhomm8.js → inbox-DpnmsGVa.js} +96 -2
- package/dist-lib/chunks/{inbox-wUMY4TKD.js → inbox-NBT3qYF9.js} +96 -2
- package/dist-lib/ezychat-web.css +1 -1
- package/dist-lib/index.js +10164 -8224
- package/dist-lib/types/admin/AiModelsSection.d.ts +6 -0
- package/dist-lib/types/admin/HiddenChats.d.ts +1 -1
- package/dist-lib/types/admin/LiveTranslateSection.d.ts +6 -0
- package/dist-lib/types/admin/ReplySuggestionsSection.d.ts +2 -1
- package/dist-lib/types/admin/SendPermissionFields.d.ts +13 -3
- package/dist-lib/types/admin/TokenPermissionsDialog.d.ts +7 -3
- package/dist-lib/types/admin/connectors/AgentPicker.d.ts +7 -0
- package/dist-lib/types/admin/connectors/GitHubAccountCard.d.ts +1 -1
- package/dist-lib/types/admin/connectors/connector-ui.d.ts +8 -0
- package/dist-lib/types/admin/connectors/google-connect.d.ts +1 -0
- package/dist-lib/types/api/ai-models.d.ts +50 -0
- package/dist-lib/types/api/ai.d.ts +1 -1
- package/dist-lib/types/api/chat-delete.d.ts +1 -1
- package/dist-lib/types/api/chat-hide.d.ts +1 -1
- package/dist-lib/types/api/connectors.d.ts +3 -0
- package/dist-lib/types/api/forward.d.ts +7 -0
- package/dist-lib/types/api/live-translate.d.ts +125 -0
- package/dist-lib/types/api/message-changes.d.ts +14 -0
- package/dist-lib/types/api/queries.d.ts +52 -2
- package/dist-lib/types/api/reply-suggestions.d.ts +0 -9
- package/dist-lib/types/api/templates.d.ts +7 -0
- package/dist-lib/types/auth/OAuthConsentPage.d.ts +5 -3
- package/dist-lib/types/i18n/resources.d.ts +237 -4
- package/dist-lib/types/inbox/ChatListItem.d.ts +3 -1
- package/dist-lib/types/inbox/ConversationHeader.d.ts +4 -1
- package/dist-lib/types/inbox/DeleteChatDialog.d.ts +1 -1
- package/dist-lib/types/inbox/LiveTranslate.d.ts +54 -0
- package/dist-lib/types/inbox/MessageBubble.d.ts +5 -1
- package/dist-lib/types/lib/tips.d.ts +1 -1
- package/dist-lib/types/nav/MemberAssistantCard.d.ts +1 -0
- package/dist-lib/types/nav/MyLanguageField.d.ts +5 -0
- package/package.json +2 -2
|
@@ -66,6 +66,7 @@ export declare const enResources: {
|
|
|
66
66
|
emailSupport: string;
|
|
67
67
|
signingOut: string;
|
|
68
68
|
signOutFailed: string;
|
|
69
|
+
aiAssistants: string;
|
|
69
70
|
};
|
|
70
71
|
errorBoundary: {
|
|
71
72
|
title: string;
|
|
@@ -244,6 +245,10 @@ export declare const enResources: {
|
|
|
244
245
|
body: string;
|
|
245
246
|
action: string;
|
|
246
247
|
};
|
|
248
|
+
memberNewChats: {
|
|
249
|
+
title: string;
|
|
250
|
+
body: string;
|
|
251
|
+
};
|
|
247
252
|
};
|
|
248
253
|
appNav: {
|
|
249
254
|
main: string;
|
|
@@ -267,6 +272,13 @@ export declare const enResources: {
|
|
|
267
272
|
backTo: string;
|
|
268
273
|
more: string;
|
|
269
274
|
};
|
|
275
|
+
liveTranslate: {
|
|
276
|
+
label: string;
|
|
277
|
+
help: string;
|
|
278
|
+
default: string;
|
|
279
|
+
skipPreview: string;
|
|
280
|
+
skipPreviewHelp: string;
|
|
281
|
+
};
|
|
270
282
|
};
|
|
271
283
|
app: {
|
|
272
284
|
about: {
|
|
@@ -638,6 +650,15 @@ export declare const enResources: {
|
|
|
638
650
|
accessOff: string;
|
|
639
651
|
badRequest: string;
|
|
640
652
|
backToInbox: string;
|
|
653
|
+
member: {
|
|
654
|
+
title: string;
|
|
655
|
+
body: string;
|
|
656
|
+
signedInAs: string;
|
|
657
|
+
sendLabel: string;
|
|
658
|
+
sendHint: string;
|
|
659
|
+
off: string;
|
|
660
|
+
offTitle: string;
|
|
661
|
+
};
|
|
641
662
|
};
|
|
642
663
|
};
|
|
643
664
|
inbox: {
|
|
@@ -971,6 +992,7 @@ export declare const enResources: {
|
|
|
971
992
|
jumpToLatest: string;
|
|
972
993
|
};
|
|
973
994
|
message: {
|
|
995
|
+
openAgent: string;
|
|
974
996
|
status: {
|
|
975
997
|
pending: string;
|
|
976
998
|
sent: string;
|
|
@@ -1925,6 +1947,99 @@ export declare const enResources: {
|
|
|
1925
1947
|
done: string;
|
|
1926
1948
|
isBlocked: string;
|
|
1927
1949
|
};
|
|
1950
|
+
liveTranslate: {
|
|
1951
|
+
button: string;
|
|
1952
|
+
buttonShort: string;
|
|
1953
|
+
buttonOn: string;
|
|
1954
|
+
buttonOff: string;
|
|
1955
|
+
composer: {
|
|
1956
|
+
placeholder: string;
|
|
1957
|
+
placeholderShort: string;
|
|
1958
|
+
};
|
|
1959
|
+
hint: {
|
|
1960
|
+
text: string;
|
|
1961
|
+
dismiss: string;
|
|
1962
|
+
};
|
|
1963
|
+
bar: {
|
|
1964
|
+
label: string;
|
|
1965
|
+
pair: string;
|
|
1966
|
+
groupPair: string;
|
|
1967
|
+
unknown: string;
|
|
1968
|
+
detected: string;
|
|
1969
|
+
showOriginals: string;
|
|
1970
|
+
languages: string;
|
|
1971
|
+
languagesTitle: string;
|
|
1972
|
+
customerWrites: string;
|
|
1973
|
+
auto: string;
|
|
1974
|
+
autoDetected: string;
|
|
1975
|
+
autoCommon: string;
|
|
1976
|
+
customerHelp: string;
|
|
1977
|
+
groupGets: string;
|
|
1978
|
+
groupHelp: string;
|
|
1979
|
+
youWrite: string;
|
|
1980
|
+
youHelp: string;
|
|
1981
|
+
usage: string;
|
|
1982
|
+
usageNoLimit: string;
|
|
1983
|
+
turnOff: string;
|
|
1984
|
+
noConnection: string;
|
|
1985
|
+
limit: string;
|
|
1986
|
+
same: string;
|
|
1987
|
+
notDetected: string;
|
|
1988
|
+
groupNote: string;
|
|
1989
|
+
offline: string;
|
|
1990
|
+
};
|
|
1991
|
+
bubble: {
|
|
1992
|
+
translatedFrom: string;
|
|
1993
|
+
showOriginal: string;
|
|
1994
|
+
hide: string;
|
|
1995
|
+
originalLabel: string;
|
|
1996
|
+
translating: string;
|
|
1997
|
+
retry: string;
|
|
1998
|
+
failed: {
|
|
1999
|
+
error: string;
|
|
2000
|
+
unsafe: string;
|
|
2001
|
+
limit: string;
|
|
2002
|
+
ai: string;
|
|
2003
|
+
offline: string;
|
|
2004
|
+
};
|
|
2005
|
+
sentIn: string;
|
|
2006
|
+
showSent: string;
|
|
2007
|
+
sentLabel: string;
|
|
2008
|
+
writtenIn: string;
|
|
2009
|
+
showTyped: string;
|
|
2010
|
+
typedLabel: string;
|
|
2011
|
+
typedEdited: string;
|
|
2012
|
+
sentOriginal: string;
|
|
2013
|
+
};
|
|
2014
|
+
preview: {
|
|
2015
|
+
title: string;
|
|
2016
|
+
close: string;
|
|
2017
|
+
youWrote: string;
|
|
2018
|
+
editMine: string;
|
|
2019
|
+
translateAgain: string;
|
|
2020
|
+
translating: string;
|
|
2021
|
+
sending: string;
|
|
2022
|
+
edit: string;
|
|
2023
|
+
done: string;
|
|
2024
|
+
editLabel: string;
|
|
2025
|
+
edited: string;
|
|
2026
|
+
kept: string;
|
|
2027
|
+
refusedTitle: string;
|
|
2028
|
+
refused: string;
|
|
2029
|
+
errors: {
|
|
2030
|
+
offline: string;
|
|
2031
|
+
noAi: string;
|
|
2032
|
+
limit: string;
|
|
2033
|
+
off: string;
|
|
2034
|
+
error: string;
|
|
2035
|
+
changed: string;
|
|
2036
|
+
expired: string;
|
|
2037
|
+
};
|
|
2038
|
+
retry: string;
|
|
2039
|
+
sendOriginal: string;
|
|
2040
|
+
send: string;
|
|
2041
|
+
};
|
|
2042
|
+
};
|
|
1928
2043
|
};
|
|
1929
2044
|
admin: {
|
|
1930
2045
|
title: string;
|
|
@@ -2142,6 +2257,7 @@ export declare const enResources: {
|
|
|
2142
2257
|
chatNewNumber: string;
|
|
2143
2258
|
settingsNewChatStaff: string;
|
|
2144
2259
|
settingsNewChatDailyLimit: string;
|
|
2260
|
+
settingsMcpMembers: string;
|
|
2145
2261
|
};
|
|
2146
2262
|
fields: {
|
|
2147
2263
|
chat: string;
|
|
@@ -2201,6 +2317,8 @@ export declare const enResources: {
|
|
|
2201
2317
|
userInactive: string;
|
|
2202
2318
|
notAdmin: string;
|
|
2203
2319
|
mustChangePassword: string;
|
|
2320
|
+
membersOff: string;
|
|
2321
|
+
notAllowed: string;
|
|
2204
2322
|
};
|
|
2205
2323
|
yes: string;
|
|
2206
2324
|
no: string;
|
|
@@ -2272,8 +2390,10 @@ export declare const enResources: {
|
|
|
2272
2390
|
revoked: string;
|
|
2273
2391
|
canSendBadge: string;
|
|
2274
2392
|
canNewBadge: string;
|
|
2393
|
+
canResolveBadge: string;
|
|
2275
2394
|
signedInBadge: string;
|
|
2276
2395
|
tokenBadge: string;
|
|
2396
|
+
memberBadge: string;
|
|
2277
2397
|
};
|
|
2278
2398
|
create: {
|
|
2279
2399
|
title: string;
|
|
@@ -2295,6 +2415,8 @@ export declare const enResources: {
|
|
|
2295
2415
|
canNewHint: string;
|
|
2296
2416
|
canNewWarningTitle: string;
|
|
2297
2417
|
canNewWarning: string;
|
|
2418
|
+
canResolve: string;
|
|
2419
|
+
canResolveHint: string;
|
|
2298
2420
|
};
|
|
2299
2421
|
created: {
|
|
2300
2422
|
title: string;
|
|
@@ -2327,6 +2449,18 @@ export declare const enResources: {
|
|
|
2327
2449
|
save: string;
|
|
2328
2450
|
saved: string;
|
|
2329
2451
|
};
|
|
2452
|
+
members: {
|
|
2453
|
+
label: string;
|
|
2454
|
+
hint: string;
|
|
2455
|
+
needsAccess: string;
|
|
2456
|
+
turnedOn: string;
|
|
2457
|
+
turnedOff_one: string;
|
|
2458
|
+
turnedOff_other: string;
|
|
2459
|
+
offTitle: string;
|
|
2460
|
+
offBody_one: string;
|
|
2461
|
+
offBody_other: string;
|
|
2462
|
+
offConfirm: string;
|
|
2463
|
+
};
|
|
2330
2464
|
};
|
|
2331
2465
|
settings: {
|
|
2332
2466
|
title: string;
|
|
@@ -2383,11 +2517,72 @@ export declare const enResources: {
|
|
|
2383
2517
|
cost: string;
|
|
2384
2518
|
noConnection: string;
|
|
2385
2519
|
upgraded: string;
|
|
2520
|
+
modelNote: string;
|
|
2521
|
+
};
|
|
2522
|
+
aiModels: {
|
|
2523
|
+
title: string;
|
|
2524
|
+
description: string;
|
|
2525
|
+
connection: string;
|
|
2526
|
+
perConnection: string;
|
|
2527
|
+
mode: {
|
|
2528
|
+
chatgpt: string;
|
|
2529
|
+
api: string;
|
|
2530
|
+
claude: string;
|
|
2531
|
+
};
|
|
2386
2532
|
model: string;
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2533
|
+
fast: string;
|
|
2534
|
+
main: string;
|
|
2535
|
+
recommended: string;
|
|
2536
|
+
fastShort: string;
|
|
2537
|
+
mainShort: string;
|
|
2538
|
+
notOffered: string;
|
|
2539
|
+
useDefault: string;
|
|
2540
|
+
tier: {
|
|
2541
|
+
fast: string;
|
|
2542
|
+
balanced: string;
|
|
2543
|
+
smart: string;
|
|
2544
|
+
};
|
|
2545
|
+
tierShort: {
|
|
2546
|
+
fast: string;
|
|
2547
|
+
balanced: string;
|
|
2548
|
+
smart: string;
|
|
2549
|
+
};
|
|
2550
|
+
thinking: string;
|
|
2551
|
+
thinkingLevel: {
|
|
2552
|
+
low: string;
|
|
2553
|
+
medium: string;
|
|
2554
|
+
high: string;
|
|
2555
|
+
};
|
|
2556
|
+
thinkingHint: {
|
|
2557
|
+
low: string;
|
|
2558
|
+
medium: string;
|
|
2559
|
+
high: string;
|
|
2560
|
+
};
|
|
2561
|
+
unavailable: string;
|
|
2562
|
+
alwaysMain: string;
|
|
2563
|
+
tasks: {
|
|
2564
|
+
agentReplies: {
|
|
2565
|
+
title: string;
|
|
2566
|
+
what: string;
|
|
2567
|
+
};
|
|
2568
|
+
askEzy: {
|
|
2569
|
+
title: string;
|
|
2570
|
+
what: string;
|
|
2571
|
+
};
|
|
2572
|
+
translate: {
|
|
2573
|
+
title: string;
|
|
2574
|
+
what: string;
|
|
2575
|
+
};
|
|
2576
|
+
writing: {
|
|
2577
|
+
title: string;
|
|
2578
|
+
what: string;
|
|
2579
|
+
};
|
|
2580
|
+
background: {
|
|
2581
|
+
title: string;
|
|
2582
|
+
what: string;
|
|
2583
|
+
};
|
|
2584
|
+
};
|
|
2585
|
+
writingSlow: string;
|
|
2391
2586
|
};
|
|
2392
2587
|
askEzy: {
|
|
2393
2588
|
title: string;
|
|
@@ -3661,6 +3856,7 @@ export declare const enResources: {
|
|
|
3661
3856
|
requestMessage: string;
|
|
3662
3857
|
breadcrumb: string;
|
|
3663
3858
|
notFound: string;
|
|
3859
|
+
backToAgent: string;
|
|
3664
3860
|
backToGallery: string;
|
|
3665
3861
|
byCore: string;
|
|
3666
3862
|
byEnterprise: string;
|
|
@@ -3697,6 +3893,7 @@ export declare const enResources: {
|
|
|
3697
3893
|
checkAndBook: string;
|
|
3698
3894
|
checkOnly: string;
|
|
3699
3895
|
off: string;
|
|
3896
|
+
setUp: string;
|
|
3700
3897
|
none: string;
|
|
3701
3898
|
browse: string;
|
|
3702
3899
|
sheetsReads: string;
|
|
@@ -3792,6 +3989,7 @@ export declare const enResources: {
|
|
|
3792
3989
|
blocked: string;
|
|
3793
3990
|
openSignIn: string;
|
|
3794
3991
|
sameComputer: string;
|
|
3992
|
+
remoteSignIn: string;
|
|
3795
3993
|
cancelSignIn: string;
|
|
3796
3994
|
failed: {
|
|
3797
3995
|
denied: string;
|
|
@@ -4104,6 +4302,7 @@ export declare const enResources: {
|
|
|
4104
4302
|
expired: string;
|
|
4105
4303
|
};
|
|
4106
4304
|
pickSameComputer: string;
|
|
4305
|
+
remotePick: string;
|
|
4107
4306
|
tabsTitle: string;
|
|
4108
4307
|
tabsHint: string;
|
|
4109
4308
|
refresh: string;
|
|
@@ -4242,6 +4441,7 @@ export declare const enResources: {
|
|
|
4242
4441
|
pickBlocked: string;
|
|
4243
4442
|
openPicker: string;
|
|
4244
4443
|
pickSameComputer: string;
|
|
4444
|
+
remotePick: string;
|
|
4245
4445
|
pickError: {
|
|
4246
4446
|
cancelled: string;
|
|
4247
4447
|
failed: string;
|
|
@@ -5196,6 +5396,39 @@ export declare const enResources: {
|
|
|
5196
5396
|
limitBanTitle: string;
|
|
5197
5397
|
limitBanBody: string;
|
|
5198
5398
|
};
|
|
5399
|
+
memberAssistants: {
|
|
5400
|
+
title: string;
|
|
5401
|
+
description: string;
|
|
5402
|
+
off: string;
|
|
5403
|
+
reach: string;
|
|
5404
|
+
reachLimited: string;
|
|
5405
|
+
howTo: string;
|
|
5406
|
+
apps: string;
|
|
5407
|
+
empty: string;
|
|
5408
|
+
sendNote: string;
|
|
5409
|
+
connectedOn: string;
|
|
5410
|
+
disconnect: string;
|
|
5411
|
+
disconnectLabel: string;
|
|
5412
|
+
disconnectTitle: string;
|
|
5413
|
+
disconnectBody: string;
|
|
5414
|
+
disconnected: string;
|
|
5415
|
+
newBlocked: string;
|
|
5416
|
+
permsDescription: string;
|
|
5417
|
+
takesEffect: string;
|
|
5418
|
+
};
|
|
5419
|
+
liveTranslate: {
|
|
5420
|
+
title: string;
|
|
5421
|
+
description: string;
|
|
5422
|
+
enable: string;
|
|
5423
|
+
enableHelp: string;
|
|
5424
|
+
limit: string;
|
|
5425
|
+
limitHelp: string;
|
|
5426
|
+
privacy: string;
|
|
5427
|
+
usage_one: string;
|
|
5428
|
+
usage_other: string;
|
|
5429
|
+
noConnection: string;
|
|
5430
|
+
languages: string;
|
|
5431
|
+
};
|
|
5199
5432
|
};
|
|
5200
5433
|
errors: {
|
|
5201
5434
|
generic: string;
|
|
@@ -10,8 +10,10 @@ export interface ChatListItemProps {
|
|
|
10
10
|
inbox?: Pick<Inbox, 'name' | 'tone'>;
|
|
11
11
|
/** The chat's reply window has closed (WhatsApp Business API): only a template may be sent. */
|
|
12
12
|
windowClosed?: boolean;
|
|
13
|
+
/** Live translate on in this chat: the cached translation of the last message (the list never asks the AI). */
|
|
14
|
+
translatedPreview?: string | null;
|
|
13
15
|
}
|
|
14
16
|
export declare function GroupIcon({ className }: {
|
|
15
17
|
className?: string;
|
|
16
18
|
}): import("react").JSX.Element;
|
|
17
|
-
export declare function ChatListItem({ chat, active, assigneeName, assignedToMe, inbox, windowClosed, }: ChatListItemProps): import("react").JSX.Element;
|
|
19
|
+
export declare function ChatListItem({ chat, active, assigneeName, assignedToMe, inbox, windowClosed, translatedPreview, }: ChatListItemProps): import("react").JSX.Element;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { AiGroupChat, Chat, Inbox } from '@ezychat/shared';
|
|
2
2
|
import type { Directory } from './useDirectory';
|
|
3
3
|
export interface ConversationHeaderProps {
|
|
4
|
+
/** Live translate's button, once for a narrow header (beside the name) and once for a wide one (action row). */
|
|
5
|
+
translateNarrow?: React.ReactNode;
|
|
6
|
+
translateWide?: React.ReactNode;
|
|
4
7
|
chat: Chat;
|
|
5
8
|
directory: Directory;
|
|
6
9
|
onBack(): void;
|
|
@@ -28,4 +31,4 @@ export interface ConversationHeaderProps {
|
|
|
28
31
|
/** Admins only: the ⋮ menu with Delete chat (no menu without it). */
|
|
29
32
|
onDelete?(): void;
|
|
30
33
|
}
|
|
31
|
-
export declare function ConversationHeader({ chat, directory, onBack, onAssign, onToggleStatus, notesOpen, notesCount, onToggleNotes, showCustomer, customerOpen, onToggleCustomer, onOpenInfo, memberCount, inbox, groupAi, busy, onDelete, }: ConversationHeaderProps): import("react").JSX.Element;
|
|
34
|
+
export declare function ConversationHeader({ translateNarrow, translateWide, chat, directory, onBack, onAssign, onToggleStatus, notesOpen, notesCount, onToggleNotes, showCustomer, customerOpen, onToggleCustomer, onOpenInfo, memberCount, inbox, groupAi, busy, onDelete, }: ConversationHeaderProps): import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Delete chat (admins; docs/
|
|
2
|
+
* Delete chat (admins; docs/chat-hide-delete.md Part B): the chat's name, what goes
|
|
3
3
|
* (messages and files) and that the WhatsApp phone keeps its copy. Stays open until the server
|
|
4
4
|
* answers; on success the chat leaves every list and `onDeleted` takes the page back to the inbox.
|
|
5
5
|
*/
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { type TranslateLanguage as Lang } from '../api/live-translate';
|
|
2
|
+
import type { Message } from '@ezychat/shared';
|
|
3
|
+
/** Header button: turns Live translate on or off for this chat, for me only. Hidden while an admin has it off. */
|
|
4
|
+
export declare function TranslateHeaderButton({ jid, className }: {
|
|
5
|
+
jid: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
}): import("react").JSX.Element | null;
|
|
8
|
+
/** The slim bar under the header while Live translate is on in this chat. */
|
|
9
|
+
export declare function TranslateBar({ jid, isGroup, showOriginals, onShowOriginals, }: {
|
|
10
|
+
jid: string;
|
|
11
|
+
isGroup: boolean;
|
|
12
|
+
showOriginals: boolean;
|
|
13
|
+
onShowOriginals(v: boolean): void;
|
|
14
|
+
}): import("react").JSX.Element | null;
|
|
15
|
+
/**
|
|
16
|
+
* Off, in a direct chat whose customer writes another language: a one-line hint above the composer. A hint only;
|
|
17
|
+
* Live translate never turns itself on.
|
|
18
|
+
*/
|
|
19
|
+
export declare function TranslateHint({ jid, isGroup }: {
|
|
20
|
+
jid: string;
|
|
21
|
+
isGroup: boolean;
|
|
22
|
+
}): import("react").JSX.Element | null;
|
|
23
|
+
/**
|
|
24
|
+
* The text of a bubble. On: the message in my language (what I typed for my own replies), with the other version
|
|
25
|
+
* one tap away. Off: the real message, plus "Written in …" on a reply that went through Live translate.
|
|
26
|
+
*/
|
|
27
|
+
export declare function BubbleText({ m, render, className, }: {
|
|
28
|
+
m: Message;
|
|
29
|
+
render(text: string): React.ReactNode;
|
|
30
|
+
className?: string;
|
|
31
|
+
}): import("react").JSX.Element;
|
|
32
|
+
/** What "Send" hands to the conversation: the checked text and the record the server keeps beside it. */
|
|
33
|
+
export interface PreviewSend {
|
|
34
|
+
text: string;
|
|
35
|
+
typedText: string;
|
|
36
|
+
edited: boolean;
|
|
37
|
+
draftId: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* "Customer will get · 中文": the translation, the protected items kept, Send / Edit translation / Send original
|
|
41
|
+
* instead. With "Send without preview" on it sends as soon as the translation passes the check, and stays only when
|
|
42
|
+
* something went wrong. Nothing is sent until the person presses a send button (or chose to skip the preview).
|
|
43
|
+
*/
|
|
44
|
+
export declare function SendPreview({ jid, typed, my, customer, dailyLimit, autoSend, onSend, onSendOriginal, onDiscard, }: {
|
|
45
|
+
jid: string;
|
|
46
|
+
typed: string;
|
|
47
|
+
my: Lang;
|
|
48
|
+
customer: Lang;
|
|
49
|
+
dailyLimit: number;
|
|
50
|
+
autoSend: boolean;
|
|
51
|
+
onSend(send: PreviewSend): void;
|
|
52
|
+
onSendOriginal(text: string): void;
|
|
53
|
+
onDiscard(): void;
|
|
54
|
+
}): import("react").JSX.Element;
|
|
@@ -29,6 +29,10 @@ export interface MessageBubbleProps {
|
|
|
29
29
|
highlighted?: boolean;
|
|
30
30
|
/** Edit and delete (⋮ menu; under Reply in the press-and-hold bar on touch). */
|
|
31
31
|
changes?: MessageChangeProps;
|
|
32
|
+
/** Admins: the AI agent's setup page, so its name above its message is a link there. */
|
|
33
|
+
outboundHref?: string | null;
|
|
34
|
+
/** The agent's own name (without the "(AI)" mark), for the link's screen-reader label. */
|
|
35
|
+
outboundName?: string | null;
|
|
32
36
|
}
|
|
33
37
|
/**
|
|
34
38
|
* Who wrote a quoted message. In a direct chat the customer is named like the chat header
|
|
@@ -39,7 +43,7 @@ export declare function quotedPreview(q: Message, t: TFunction<'inbox'>): string
|
|
|
39
43
|
export declare function StatusTicks({ status }: {
|
|
40
44
|
status: Message['status'];
|
|
41
45
|
}): React.JSX.Element;
|
|
42
|
-
export declare function MessageBubble({ message: m, showSender, outboundLabel, quoted, onRetry, retrying, onMediaLoad, directory, onReply, onReact, reactDisabledReason, contactName, changes, onOpenQuote, highlighted, }: MessageBubbleProps): React.JSX.Element;
|
|
46
|
+
export declare function MessageBubble({ message: m, showSender, outboundLabel, quoted, onRetry, retrying, onMediaLoad, directory, onReply, onReact, reactDisabledReason, contactName, changes, onOpenQuote, highlighted, outboundHref, outboundName, }: MessageBubbleProps): React.JSX.Element;
|
|
43
47
|
/** From this size a file shows that it is still uploading, and Forward warns before sending it. */
|
|
44
48
|
export declare const LARGE_FILE_BYTES: number;
|
|
45
49
|
/** Why a message was not sent, in plain words. */
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* under `tips.<topic>` (`title`, `body`, `step1`…`stepN`, `action`); this file holds each tip's shape.
|
|
4
4
|
* Design: docs/features/concept-tips/design.md.
|
|
5
5
|
*/
|
|
6
|
-
export declare const TIP_TOPICS: readonly ["whatsappLink", "aiConnection", "apiKey", "claudeKey", "aiModel", "businessContext", "instructions", "handoff", "tryIt", "voice", "tunnel", "lan", "mcp", "accessToken", "connectors", "safetyAi", "autoBlock", "lockedFiles", "driveFiles", "reportNumber", "sqlApiService", "sqlKeys", "sqlCustomerCode", "usageStats", "githubApp", "githubToken"];
|
|
6
|
+
export declare const TIP_TOPICS: readonly ["whatsappLink", "aiConnection", "apiKey", "claudeKey", "aiModel", "businessContext", "instructions", "handoff", "tryIt", "voice", "tunnel", "lan", "mcp", "accessToken", "memberNewChats", "connectors", "safetyAi", "autoBlock", "lockedFiles", "driveFiles", "reportNumber", "sqlApiService", "sqlKeys", "sqlCustomerCode", "usageStats", "githubApp", "githubToken"];
|
|
7
7
|
export type TipTopic = (typeof TIP_TOPICS)[number];
|
|
8
8
|
/** The ezychat.ai guides a tip can link to (each exists in en, ms and zh). */
|
|
9
9
|
export type TipGuide = 'getting-started' | 'set-up-ai-agent' | 'connect-cloudflare' | 'connect-ai-assistant';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function MemberAssistantCard(): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Account → My language and "Send without preview" (off by default). My language defaults to
|
|
3
|
+
* the app language until the person picks one. Hidden while an admin has Live translate off.
|
|
4
|
+
*/
|
|
5
|
+
export declare function MyLanguageField(): import("react").JSX.Element | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ezychat/web",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.87",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "EzyChat core: the team inbox web app (React) as a library, with createInboxApp and its extension API.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"build:lib": "node ../../scripts/build-web-lib.mjs"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@ezychat/shared": "0.1.
|
|
43
|
+
"@ezychat/shared": "0.1.87",
|
|
44
44
|
"@fontsource-variable/inter": "^5.3.0",
|
|
45
45
|
"@tanstack/react-query": "^5.107.1",
|
|
46
46
|
"@types/react": "^19.3.0",
|