@ezychat/web 0.1.71 → 0.1.73
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-B6UI7hY7.js → admin-BTzz29_M.js} +30 -9
- package/dist-lib/chunks/{admin-CFtHolDh.js → admin-CYW5ewdl.js} +30 -9
- package/dist-lib/chunks/app-CQ2bZhrf.js +225 -0
- package/dist-lib/chunks/{app-BXBt4xNx.js → app-DeH3RXhX.js} +137 -10
- package/dist-lib/chunks/{common-0sL8O9KV.js → common-CjI5LeVc.js} +4 -2
- package/dist-lib/chunks/{common-CIXHivlt.js → common-DYK9ZVMh.js} +4 -2
- package/dist-lib/chunks/{inbox-JiKiTquN.js → inbox-BhNcoSW9.js} +23 -4
- package/dist-lib/chunks/{inbox-BHBl1foS.js → inbox-D0mcktjU.js} +23 -4
- package/dist-lib/ezychat-web.css +1 -1
- package/dist-lib/index.js +7789 -6294
- package/dist-lib/types/admin/AgentGroupsCard.d.ts +4 -4
- package/dist-lib/types/admin/connectors/SheetsSettingsCard.d.ts +5 -3
- package/dist-lib/types/admin/connectors/sheets-tabs.d.ts +24 -0
- package/dist-lib/types/api/ai-groups.d.ts +48 -1
- package/dist-lib/types/api/ai.d.ts +22 -0
- package/dist-lib/types/api/connectors.d.ts +34 -13
- package/dist-lib/types/components/app/FeedbackDialog.d.ts +35 -0
- package/dist-lib/types/create-app.d.ts +1 -1
- package/dist-lib/types/i18n/resources.d.ts +206 -20
- package/dist-lib/types/inbox/Composer.d.ts +2 -2
- package/dist-lib/types/inbox/GroupAiRow.d.ts +5 -3
- package/dist-lib/types/inbox/PdfViewer.d.ts +9 -0
- package/dist-lib/types/lib/links.d.ts +2 -6
- package/dist-lib/types/lib/pdf.d.ts +33 -0
- package/package.json +3 -2
- package/dist-lib/chunks/app-Zoharwle.js +0 -98
- package/dist-lib/types/components/app/FeatureRequestAction.d.ts +0 -7
|
@@ -60,9 +60,9 @@ export declare const enResources: {
|
|
|
60
60
|
adminSettings: string;
|
|
61
61
|
changePassword: string;
|
|
62
62
|
share: string;
|
|
63
|
-
reportIssue: string;
|
|
64
63
|
about: string;
|
|
65
64
|
signOut: string;
|
|
65
|
+
sendFeedback: string;
|
|
66
66
|
emailSupport: string;
|
|
67
67
|
};
|
|
68
68
|
errorBoundary: {
|
|
@@ -70,6 +70,8 @@ export declare const enResources: {
|
|
|
70
70
|
body: string;
|
|
71
71
|
reload: string;
|
|
72
72
|
goHome: string;
|
|
73
|
+
report: string;
|
|
74
|
+
reportPrefix: string;
|
|
73
75
|
};
|
|
74
76
|
access: {
|
|
75
77
|
pausedTitle: string;
|
|
@@ -219,10 +221,6 @@ export declare const enResources: {
|
|
|
219
221
|
helpFeedback: string;
|
|
220
222
|
emailSupport: string;
|
|
221
223
|
};
|
|
222
|
-
featureRequest: {
|
|
223
|
-
label: string;
|
|
224
|
-
opensWebsite: string;
|
|
225
|
-
};
|
|
226
224
|
search: {
|
|
227
225
|
clear: string;
|
|
228
226
|
};
|
|
@@ -297,6 +295,137 @@ export declare const enResources: {
|
|
|
297
295
|
imageFailed: string;
|
|
298
296
|
};
|
|
299
297
|
};
|
|
298
|
+
feedback: {
|
|
299
|
+
menu: string;
|
|
300
|
+
title: string;
|
|
301
|
+
description: string;
|
|
302
|
+
type: {
|
|
303
|
+
label: string;
|
|
304
|
+
problem: string;
|
|
305
|
+
idea: string;
|
|
306
|
+
question: string;
|
|
307
|
+
other: string;
|
|
308
|
+
};
|
|
309
|
+
titleLabel: string;
|
|
310
|
+
titlePlaceholder: {
|
|
311
|
+
problem: string;
|
|
312
|
+
idea: string;
|
|
313
|
+
question: string;
|
|
314
|
+
other: string;
|
|
315
|
+
};
|
|
316
|
+
detailsLabel: string;
|
|
317
|
+
detailsPlaceholder: {
|
|
318
|
+
problem: string;
|
|
319
|
+
idea: string;
|
|
320
|
+
question: string;
|
|
321
|
+
other: string;
|
|
322
|
+
};
|
|
323
|
+
area: {
|
|
324
|
+
label: string;
|
|
325
|
+
inbox: string;
|
|
326
|
+
ai_agent: string;
|
|
327
|
+
whatsapp_link: string;
|
|
328
|
+
connectors: string;
|
|
329
|
+
reports: string;
|
|
330
|
+
settings: string;
|
|
331
|
+
install_update: string;
|
|
332
|
+
other: string;
|
|
333
|
+
};
|
|
334
|
+
frequency: {
|
|
335
|
+
label: string;
|
|
336
|
+
always: string;
|
|
337
|
+
sometimes: string;
|
|
338
|
+
once: string;
|
|
339
|
+
};
|
|
340
|
+
impact: {
|
|
341
|
+
label: string;
|
|
342
|
+
blocking: string;
|
|
343
|
+
slow: string;
|
|
344
|
+
minor: string;
|
|
345
|
+
};
|
|
346
|
+
files: {
|
|
347
|
+
label: string;
|
|
348
|
+
hint: string;
|
|
349
|
+
add: string;
|
|
350
|
+
screenshot: string;
|
|
351
|
+
remove: string;
|
|
352
|
+
tooMany: string;
|
|
353
|
+
badType: string;
|
|
354
|
+
tooBig: string;
|
|
355
|
+
screenshotFailed: string;
|
|
356
|
+
};
|
|
357
|
+
contact: {
|
|
358
|
+
legend: string;
|
|
359
|
+
name: string;
|
|
360
|
+
email: string;
|
|
361
|
+
company: string;
|
|
362
|
+
optional: string;
|
|
363
|
+
ok: string;
|
|
364
|
+
};
|
|
365
|
+
include: {
|
|
366
|
+
details: string;
|
|
367
|
+
detailsHint: string;
|
|
368
|
+
seeDetails: string;
|
|
369
|
+
log: string;
|
|
370
|
+
logHint: string;
|
|
371
|
+
seeLog: string;
|
|
372
|
+
};
|
|
373
|
+
diag: {
|
|
374
|
+
edition: string;
|
|
375
|
+
version: string;
|
|
376
|
+
os: string;
|
|
377
|
+
osVersion: string;
|
|
378
|
+
client: string;
|
|
379
|
+
mode: string;
|
|
380
|
+
language: string;
|
|
381
|
+
timeZone: string;
|
|
382
|
+
screen: string;
|
|
383
|
+
waConnected: string;
|
|
384
|
+
aiMode: string;
|
|
385
|
+
yes: string;
|
|
386
|
+
no: string;
|
|
387
|
+
};
|
|
388
|
+
privacy: string;
|
|
389
|
+
github: string;
|
|
390
|
+
send: string;
|
|
391
|
+
sending: string;
|
|
392
|
+
sent: {
|
|
393
|
+
title: string;
|
|
394
|
+
thanks: string;
|
|
395
|
+
reference: string;
|
|
396
|
+
reply: string;
|
|
397
|
+
noReply: string;
|
|
398
|
+
another: string;
|
|
399
|
+
};
|
|
400
|
+
errors: {
|
|
401
|
+
title: string;
|
|
402
|
+
details: string;
|
|
403
|
+
name: string;
|
|
404
|
+
emailRequired: string;
|
|
405
|
+
emailInvalid: string;
|
|
406
|
+
fix: string;
|
|
407
|
+
notSent: string;
|
|
408
|
+
unreachable: string;
|
|
409
|
+
rateLimited: string;
|
|
410
|
+
generic: string;
|
|
411
|
+
closed: string;
|
|
412
|
+
unavailable: string;
|
|
413
|
+
tooLarge: string;
|
|
414
|
+
fileType: string;
|
|
415
|
+
};
|
|
416
|
+
diagValue: {
|
|
417
|
+
edition: string;
|
|
418
|
+
desktop: string;
|
|
419
|
+
browser: string;
|
|
420
|
+
standalone: string;
|
|
421
|
+
service: string;
|
|
422
|
+
dev: string;
|
|
423
|
+
off: string;
|
|
424
|
+
api: string;
|
|
425
|
+
chatgpt: string;
|
|
426
|
+
claude: string;
|
|
427
|
+
};
|
|
428
|
+
};
|
|
300
429
|
};
|
|
301
430
|
auth: {
|
|
302
431
|
login: {
|
|
@@ -734,6 +863,7 @@ export declare const enResources: {
|
|
|
734
863
|
reopened: string;
|
|
735
864
|
aiToolUsed: string;
|
|
736
865
|
internalNote: string;
|
|
866
|
+
sheetRowAdded: string;
|
|
737
867
|
calendarChecked: string;
|
|
738
868
|
calendarBooked: string;
|
|
739
869
|
calendarBookedNoTime: string;
|
|
@@ -867,6 +997,16 @@ export declare const enResources: {
|
|
|
867
997
|
document: string;
|
|
868
998
|
file: string;
|
|
869
999
|
fileDownload: string;
|
|
1000
|
+
pdfPreview: string;
|
|
1001
|
+
pdfLoading: string;
|
|
1002
|
+
pdfFailed: string;
|
|
1003
|
+
pdfTooLarge: string;
|
|
1004
|
+
pdfPage: string;
|
|
1005
|
+
zoomIn: string;
|
|
1006
|
+
zoomOut: string;
|
|
1007
|
+
openFile: string;
|
|
1008
|
+
fileOpen: string;
|
|
1009
|
+
downloadFile: string;
|
|
870
1010
|
};
|
|
871
1011
|
notes: {
|
|
872
1012
|
title: string;
|
|
@@ -1122,7 +1262,15 @@ export declare const enResources: {
|
|
|
1122
1262
|
on: string;
|
|
1123
1263
|
off: string;
|
|
1124
1264
|
paused: string;
|
|
1265
|
+
agent: string;
|
|
1266
|
+
chooseAgent: string;
|
|
1267
|
+
chooseAgentPlaceholder: string;
|
|
1268
|
+
listen: string;
|
|
1269
|
+
listenTipTitle: string;
|
|
1270
|
+
listenTip: string;
|
|
1271
|
+
listenHint: string;
|
|
1125
1272
|
};
|
|
1273
|
+
badgeListen: string;
|
|
1126
1274
|
};
|
|
1127
1275
|
askEzy: {
|
|
1128
1276
|
button: string;
|
|
@@ -2418,7 +2566,7 @@ export declare const enResources: {
|
|
|
2418
2566
|
inboxHint: string;
|
|
2419
2567
|
inboxNone: string;
|
|
2420
2568
|
inboxHas: string;
|
|
2421
|
-
|
|
2569
|
+
inboxShared: string;
|
|
2422
2570
|
roleTitle: string;
|
|
2423
2571
|
roleLabel: string;
|
|
2424
2572
|
roleHint: string;
|
|
@@ -2462,7 +2610,6 @@ export declare const enResources: {
|
|
|
2462
2610
|
last_agent: string;
|
|
2463
2611
|
agent_not_found: string;
|
|
2464
2612
|
};
|
|
2465
|
-
noFreeInbox: string;
|
|
2466
2613
|
addInbox: string;
|
|
2467
2614
|
createNext: string;
|
|
2468
2615
|
typeTitle: string;
|
|
@@ -2881,9 +3028,8 @@ export declare const enResources: {
|
|
|
2881
3028
|
off: string;
|
|
2882
3029
|
none: string;
|
|
2883
3030
|
browse: string;
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
sheetsLeads: string;
|
|
3031
|
+
sheetsReads: string;
|
|
3032
|
+
sheetsAdds: string;
|
|
2887
3033
|
};
|
|
2888
3034
|
settingsPointerTitle: string;
|
|
2889
3035
|
settingsPointer: string;
|
|
@@ -3220,14 +3366,6 @@ export declare const enResources: {
|
|
|
3220
3366
|
notConnected: string;
|
|
3221
3367
|
spreadsheet: string;
|
|
3222
3368
|
open: string;
|
|
3223
|
-
chooseTab: string;
|
|
3224
|
-
tabRequired: string;
|
|
3225
|
-
readHint: string;
|
|
3226
|
-
lookupTab: string;
|
|
3227
|
-
leadsHint: string;
|
|
3228
|
-
leadsTab: string;
|
|
3229
|
-
leadsTabHint: string;
|
|
3230
|
-
changesSheet: string;
|
|
3231
3369
|
rulesTitle: string;
|
|
3232
3370
|
rule1: string;
|
|
3233
3371
|
rule2: string;
|
|
@@ -3243,7 +3381,6 @@ export declare const enResources: {
|
|
|
3243
3381
|
choose: string;
|
|
3244
3382
|
chooseAnother: string;
|
|
3245
3383
|
chooseHint: string;
|
|
3246
|
-
sheetRequired: string;
|
|
3247
3384
|
picking: string;
|
|
3248
3385
|
pickingHint: string;
|
|
3249
3386
|
pickBlocked: string;
|
|
@@ -3254,12 +3391,40 @@ export declare const enResources: {
|
|
|
3254
3391
|
expired: string;
|
|
3255
3392
|
};
|
|
3256
3393
|
pickSameComputer: string;
|
|
3394
|
+
tabsTitle: string;
|
|
3395
|
+
tabsHint: string;
|
|
3396
|
+
refresh: string;
|
|
3397
|
+
checked: string;
|
|
3398
|
+
noChanges: string;
|
|
3399
|
+
newTabs_one: string;
|
|
3400
|
+
newTabs_other: string;
|
|
3401
|
+
changedTabs_one: string;
|
|
3402
|
+
changedTabs_other: string;
|
|
3403
|
+
tabsUnknown: string;
|
|
3404
|
+
access: {
|
|
3405
|
+
off: string;
|
|
3406
|
+
read: string;
|
|
3407
|
+
add: string;
|
|
3408
|
+
};
|
|
3409
|
+
newTab: string;
|
|
3410
|
+
columnsChanged: string;
|
|
3411
|
+
newColumn: string;
|
|
3412
|
+
columnsOf: string;
|
|
3413
|
+
emptyFirstRow: string;
|
|
3414
|
+
goneBadge: string;
|
|
3415
|
+
goneHint: string;
|
|
3416
|
+
autoColumns: string;
|
|
3417
|
+
rule5: string;
|
|
3418
|
+
rule6: string;
|
|
3257
3419
|
};
|
|
3258
3420
|
sheetsAct: {
|
|
3259
3421
|
hint: string;
|
|
3260
3422
|
looked_up: string;
|
|
3261
3423
|
lead_added: string;
|
|
3262
3424
|
failed: string;
|
|
3425
|
+
row_added: string;
|
|
3426
|
+
row_addedGroup: string;
|
|
3427
|
+
looked_upTab: string;
|
|
3263
3428
|
};
|
|
3264
3429
|
};
|
|
3265
3430
|
reports: {
|
|
@@ -3371,6 +3536,8 @@ export declare const enResources: {
|
|
|
3371
3536
|
confirmBody_other: string;
|
|
3372
3537
|
confirmAction: string;
|
|
3373
3538
|
saveFailed: string;
|
|
3539
|
+
taken: string;
|
|
3540
|
+
takenUnknown: string;
|
|
3374
3541
|
};
|
|
3375
3542
|
aiGroups: {
|
|
3376
3543
|
title: string;
|
|
@@ -3391,7 +3558,6 @@ export declare const enResources: {
|
|
|
3391
3558
|
answers: string;
|
|
3392
3559
|
off: string;
|
|
3393
3560
|
paused: string;
|
|
3394
|
-
answerIn: string;
|
|
3395
3561
|
openGroup: string;
|
|
3396
3562
|
saveFailed: string;
|
|
3397
3563
|
try: {
|
|
@@ -3401,6 +3567,26 @@ export declare const enResources: {
|
|
|
3401
3567
|
lookupsOnly: string;
|
|
3402
3568
|
notSent: string;
|
|
3403
3569
|
};
|
|
3570
|
+
listens: string;
|
|
3571
|
+
listenTitle: string;
|
|
3572
|
+
listenInfo: string;
|
|
3573
|
+
listenIn: string;
|
|
3574
|
+
remove: string;
|
|
3575
|
+
removeFrom: string;
|
|
3576
|
+
add: {
|
|
3577
|
+
button: string;
|
|
3578
|
+
title: string;
|
|
3579
|
+
description: string;
|
|
3580
|
+
search: string;
|
|
3581
|
+
noMatch: string;
|
|
3582
|
+
none: string;
|
|
3583
|
+
listen: string;
|
|
3584
|
+
held: string;
|
|
3585
|
+
otherAgent: string;
|
|
3586
|
+
cancel: string;
|
|
3587
|
+
save: string;
|
|
3588
|
+
taken: string;
|
|
3589
|
+
};
|
|
3404
3590
|
};
|
|
3405
3591
|
safety: {
|
|
3406
3592
|
title: string;
|
|
@@ -39,7 +39,7 @@ export interface ComposerProps {
|
|
|
39
39
|
} | null;
|
|
40
40
|
onCancelReply?(): void;
|
|
41
41
|
/**
|
|
42
|
-
* AI reply suggestions in this chat (direct chats
|
|
42
|
+
* AI reply suggestions in this chat (direct chats and groups; null = off). `unavailable` shows the
|
|
43
43
|
* button disabled. The chips clear when `lastCustomerMessageId` changes (a new customer message).
|
|
44
44
|
*/
|
|
45
45
|
ref?: React.Ref<ComposerHandle>;
|
|
@@ -51,7 +51,7 @@ export interface ComposerProps {
|
|
|
51
51
|
/** The team's phrase list, matched on every key (docs/features/ai-phrase-dictionary). */
|
|
52
52
|
phrases?: readonly ReplyPhraseListItem[];
|
|
53
53
|
} | null;
|
|
54
|
-
/** Ask Ezy (docs/features/ask-ezy/design.md): direct chats
|
|
54
|
+
/** Ask Ezy (docs/features/ask-ezy/design.md): direct chats and groups; opens Ezy scoped to this chat. */
|
|
55
55
|
askEzy?: {
|
|
56
56
|
chatJid: string;
|
|
57
57
|
name: string;
|
|
@@ -2,9 +2,11 @@ import type { AiGroupChat } from '@ezychat/shared';
|
|
|
2
2
|
/** The AI answers tags and quotes in this group now (its switch and the agent's are both on). */
|
|
3
3
|
export declare const groupAiActive: (ai: AiGroupChat | null | undefined) => boolean;
|
|
4
4
|
/**
|
|
5
|
-
* Group info → "AI agent
|
|
6
|
-
*
|
|
7
|
-
* answer
|
|
5
|
+
* Group info → "AI agent in this group" (designs docs/features/ai-groups/ and
|
|
6
|
+
* docs/features/group-agents/). Admins switch it, choose the agent when the inbox has 2+ agents
|
|
7
|
+
* that answer in groups, and switch "Reads every message"; agents see the state. Disabled with a
|
|
8
|
+
* hint while no agent can answer here. Hidden when the server does not answer (an older server, or
|
|
9
|
+
* no access).
|
|
8
10
|
*/
|
|
9
11
|
export declare function GroupAiRow({ jid, isAdmin }: Readonly<{
|
|
10
12
|
jid: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface PdfViewerProps {
|
|
2
|
+
url: string;
|
|
3
|
+
name: string;
|
|
4
|
+
downloadName: string;
|
|
5
|
+
open: boolean;
|
|
6
|
+
onOpenChange(open: boolean): void;
|
|
7
|
+
}
|
|
8
|
+
/** Full-screen in-app PDF reader: the same frame as the image preview, with zoom and Download. */
|
|
9
|
+
export declare function PdfViewer({ url, name, downloadName, open, onOpenChange }: PdfViewerProps): import("react").JSX.Element;
|
|
@@ -4,12 +4,10 @@ export declare const ANCHOR_SPRINT_URL = "https://www.anchorsprint.com";
|
|
|
4
4
|
export declare const EZYCHAT_WEBSITE_URL = "https://ezychat.ai/";
|
|
5
5
|
export declare const GITHUB_REPO_URL = "https://github.com/ossmalaysia/ezychat-lite";
|
|
6
6
|
export declare const GITHUB_ISSUES_URL = "https://github.com/ossmalaysia/ezychat-lite/issues/new/choose";
|
|
7
|
-
/** The website feedback form in the app's language, with the running version filled in. */
|
|
8
|
-
export declare function feedbackUrl(locale: string, version: string | null): string;
|
|
9
7
|
/** Contact Anchor Sprint for custom features. */
|
|
10
8
|
export declare const CUSTOM_FEATURE_URL = "https://www.anchorsprint.com";
|
|
11
9
|
/**
|
|
12
|
-
* The outside links the UI shows (About, Report an issue, release notes,
|
|
10
|
+
* The outside links the UI shows (About, Report an issue, release notes, support).
|
|
13
11
|
* Another product build overrides them through `createInboxApp({ links })`; `null` hides a link.
|
|
14
12
|
*/
|
|
15
13
|
export interface AppLinks {
|
|
@@ -24,8 +22,6 @@ export interface AppLinks {
|
|
|
24
22
|
* release through the desktop bridge; another value is opened as a plain link.
|
|
25
23
|
*/
|
|
26
24
|
releaseNotes: ((version: string) => string | null) | null;
|
|
27
|
-
/** The feedback / feature request form in the app's language. */
|
|
28
|
-
feedback: (locale: string, version: string | null) => string;
|
|
29
25
|
/** Support email address (mailto link where there is no report-issue page). */
|
|
30
26
|
supportEmail: string | null;
|
|
31
27
|
/** "Upgrade to Enterprise" page (Lite's limits, account menu, About); null hides every upgrade link. */
|
|
@@ -50,7 +46,7 @@ export declare const ENTERPRISE_UPGRADE_URL = "https://ezychat.ai/?utm_source=ez
|
|
|
50
46
|
export declare const CONNECTOR_REQUEST_WHATSAPP = "601159246128";
|
|
51
47
|
/** A WhatsApp chat with the EzyChat team, with `message` ready to send. */
|
|
52
48
|
export declare function connectorRequestUrl(message: string): string;
|
|
53
|
-
/** Lite's links: GitHub repository and issues,
|
|
49
|
+
/** Lite's links: GitHub repository and issues, the website. */
|
|
54
50
|
export declare const LITE_APP_LINKS: Readonly<AppLinks>;
|
|
55
51
|
/** Lite's links with the given overrides (an explicit `null` hides that link). */
|
|
56
52
|
export declare function resolveAppLinks(overrides?: Partial<AppLinks>): AppLinks;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shows PDF attachments inside the app (pdf.js, loaded on first use), so a teammate can read a
|
|
3
|
+
* customer's PDF without saving it first. The bytes are fetched from our own media route and drawn on
|
|
4
|
+
* canvases: the PDF never becomes a document on our origin, its scripts never run, and no plugin or
|
|
5
|
+
* external viewer is involved.
|
|
6
|
+
*/
|
|
7
|
+
export interface PdfPage {
|
|
8
|
+
/** Size in CSS pixels at scale 1. */
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
/** Draws the page on `canvas` at `scale` (CSS pixels) × `pixelRatio`. Rejects when cancelled. */
|
|
12
|
+
render(canvas: HTMLCanvasElement, scale: number, pixelRatio: number): {
|
|
13
|
+
promise: Promise<void>;
|
|
14
|
+
cancel(): void;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export interface PdfDocument {
|
|
18
|
+
numPages: number;
|
|
19
|
+
getPage(pageNumber: number): Promise<PdfPage>;
|
|
20
|
+
destroy(): void;
|
|
21
|
+
}
|
|
22
|
+
/** PDFs larger than this are not opened in the app (download instead): parsing runs in the browser. */
|
|
23
|
+
export declare const PDF_VIEW_MAX_BYTES: number;
|
|
24
|
+
export declare class PdfLoadError extends Error {
|
|
25
|
+
readonly reason: 'too_large' | 'not_pdf' | 'failed';
|
|
26
|
+
constructor(reason: 'too_large' | 'not_pdf' | 'failed');
|
|
27
|
+
}
|
|
28
|
+
/** True for the files the in-app viewer opens. */
|
|
29
|
+
export declare function isPdfMime(mime: string | null | undefined): boolean;
|
|
30
|
+
/** Checks the first bytes: only a real PDF goes to the parser. */
|
|
31
|
+
export declare function looksLikePdf(bytes: Uint8Array): boolean;
|
|
32
|
+
/** Downloads the media file and opens it with pdf.js. */
|
|
33
|
+
export declare function loadPdf(url: string, signal: AbortSignal): Promise<PdfDocument>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ezychat/web",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.73",
|
|
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.73",
|
|
44
44
|
"@fontsource-variable/inter": "^5.3.0",
|
|
45
45
|
"@tanstack/react-query": "^5.105.0",
|
|
46
46
|
"@types/react": "^19.3.0",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"next-themes": "^0.4.6",
|
|
56
56
|
"nspell": "2.1.5",
|
|
57
57
|
"opus-recorder": "8.0.5",
|
|
58
|
+
"pdfjs-dist": "6.4.299",
|
|
58
59
|
"qrcode.react": "^4.2.0",
|
|
59
60
|
"radix-ui": "^1.8.1",
|
|
60
61
|
"react": "^19.3.1",
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
// src/i18n/locales/zh-CN/app.json
|
|
2
|
-
var e = {
|
|
3
|
-
title: "关于 {{product}}",
|
|
4
|
-
description: "一个 WhatsApp 号码,全队共用一个收件箱,在您自己的电脑上运行。",
|
|
5
|
-
version: "版本 {{version}}",
|
|
6
|
-
versionUnknown: "版本未知",
|
|
7
|
-
github: "在 GitHub 上查看",
|
|
8
|
-
website: "访问网站"
|
|
9
|
-
}, t = {
|
|
10
|
-
builtBy: "由 <a>Anchor Sprint</a> 开发",
|
|
11
|
-
versionShort: "v{{version}}",
|
|
12
|
-
supportLinks: "支持链接",
|
|
13
|
-
reportIssue: "报告问题",
|
|
14
|
-
customFeatures: "定制功能",
|
|
15
|
-
customFeature: "需要定制功能?<a>联系 Anchor Sprint</a>",
|
|
16
|
-
helpFeedback: "帮助与反馈",
|
|
17
|
-
emailSupport: "发送邮件给支持团队"
|
|
18
|
-
}, n = {
|
|
19
|
-
label: "建议新功能",
|
|
20
|
-
opensWebsite: "(在新窗口中打开 ezychat.ai)"
|
|
21
|
-
}, r = { clear: "清除{{label}}" }, i = {
|
|
22
|
-
title: "应用更新",
|
|
23
|
-
installed: "已安装 {{version}}",
|
|
24
|
-
checkingGitHub: "正在检查 GitHub…",
|
|
25
|
-
current: "没有更新的已发布版本。",
|
|
26
|
-
available: "版本 {{version}} 可用。",
|
|
27
|
-
checkFailed: "无法完成更新检查。",
|
|
28
|
-
automatic: "这台电脑会自动在 GitHub 上检查新版本。",
|
|
29
|
-
downloading: "正在下载更新… {{percent}}%",
|
|
30
|
-
downloaded: "版本 {{version}} 已下载并通过验证。",
|
|
31
|
-
preparing: "正在准备重启并更新…",
|
|
32
|
-
progressLabel: "更新下载",
|
|
33
|
-
keepsWorking: "下载期间收件箱可照常使用。",
|
|
34
|
-
preview: "预览版",
|
|
35
|
-
howManaged: "请先下载更新。准备就绪后,选择“重启并更新”并批准系统提示。应用及已安装的后台服务会自动重启。您的账户、聊天和设置都会保留。",
|
|
36
|
-
howManual: "下载安装程序,从托盘菜单退出此应用,然后安装新版本。您的账户、聊天和设置会保留在这台电脑上。",
|
|
37
|
-
noInstaller: "暂时没有适用于这台电脑的安装程序。详情请查看 GitHub 上的发布页面。",
|
|
38
|
-
interrupt: "更新会短暂中断团队访问,请选择空闲时段。",
|
|
39
|
-
interruptManual: "更新会短暂中断团队访问,请选择空闲时段。如使用 Windows 服务,请在安装前停止服务,安装后再启动。在 Mac 上,请在安装前移除服务,安装后再启用,以刷新受保护的应用副本。",
|
|
40
|
-
unverified: "此版本无法在这里验证安装。请在 GitHub 上打开发布页面获取手动安装程序。",
|
|
41
|
-
restart: "重启并更新",
|
|
42
|
-
download: "下载 {{version}}",
|
|
43
|
-
cancelDownload: "取消下载",
|
|
44
|
-
releaseOnGitHub: "GitHub 发布页面",
|
|
45
|
-
checking: "正在检查…",
|
|
46
|
-
check: "检查更新",
|
|
47
|
-
lastChecked: "上次检查:{{time}}",
|
|
48
|
-
dialogTitle: "更新 {{product}}",
|
|
49
|
-
notice: {
|
|
50
|
-
label: "有可用的应用更新",
|
|
51
|
-
title: "{{product}} {{version}} 已可用",
|
|
52
|
-
preview: "GitHub 上有新的预览版。",
|
|
53
|
-
release: "GitHub 上有新版本。",
|
|
54
|
-
dismiss: "忽略更新提示",
|
|
55
|
-
review: "查看更新",
|
|
56
|
-
previewFeed: "新的预览版已就绪。",
|
|
57
|
-
releaseFeed: "新版本已就绪。"
|
|
58
|
-
},
|
|
59
|
-
checkingFeed: "正在检查更新…",
|
|
60
|
-
automaticFeed: "这台电脑会自动检查新版本。",
|
|
61
|
-
noInstallerFeed: "暂时没有适用于这台电脑的安装程序。详情请查看发布说明。",
|
|
62
|
-
unverifiedFeed: "此版本无法在这里验证安装。请联系支持团队获取手动安装程序。",
|
|
63
|
-
releaseNotes: "发布说明",
|
|
64
|
-
whatsNew: "{{version}} 的新内容",
|
|
65
|
-
updatedTo: "已更新到 {{version}}。您的对话、账户和设置均已保留。"
|
|
66
|
-
}, a = {
|
|
67
|
-
title: "分享此应用",
|
|
68
|
-
description: "向他人介绍您的免费团队收件箱。发布什么内容由您决定。",
|
|
69
|
-
caption: "我在使用 EzyChat Lite,一个在我自己电脑上运行的免费 WhatsApp 团队收件箱。一个号码,团队共享收件箱,数据由我掌握。",
|
|
70
|
-
message: "您的消息",
|
|
71
|
-
copyMessage: "复制消息和链接",
|
|
72
|
-
publicLink: "应用公开链接",
|
|
73
|
-
privacy: "这里分享的是公开的项目页面。您的私人收件箱地址和对话不会公开。",
|
|
74
|
-
copyLink: "仅复制链接",
|
|
75
|
-
socialTitle: "LinkedIn 和 Facebook",
|
|
76
|
-
socialHint: "先复制您的消息,再粘贴到打开的帖子中。",
|
|
77
|
-
opensNewWindow: "(在新窗口中打开)",
|
|
78
|
-
instagramHint: "下载图片,在 Instagram 中创建帖子,然后把复制的消息粘贴为说明文字。将公开链接添加到个人简介或快拍链接贴纸中。",
|
|
79
|
-
imageAlt: "EzyChat Lite:免费的 WhatsApp 团队收件箱。在您的电脑上运行,数据由您掌握。",
|
|
80
|
-
downloadImage: "下载 Instagram 图片",
|
|
81
|
-
more: "更多分享方式",
|
|
82
|
-
feedback: {
|
|
83
|
-
messageCopied: "消息和公开链接已复制,请粘贴到您的帖子中。",
|
|
84
|
-
linkCopied: "应用公开链接已复制。",
|
|
85
|
-
copyUnavailable: "此处无法复制。请选中上方的消息或链接后手动复制。",
|
|
86
|
-
shareUnavailable: "此处无法分享。请选中上方的消息或链接后手动复制。",
|
|
87
|
-
imageStarted: "图片已开始下载。请上传到 Instagram 并粘贴您的说明文字。",
|
|
88
|
-
imageFailed: "无法生成图片。请重新下载,或分享消息和公开链接。"
|
|
89
|
-
}
|
|
90
|
-
}, o = {
|
|
91
|
-
about: e,
|
|
92
|
-
credits: t,
|
|
93
|
-
featureRequest: n,
|
|
94
|
-
search: r,
|
|
95
|
-
updates: i,
|
|
96
|
-
share: a
|
|
97
|
-
};
|
|
98
|
-
export { e as about, t as credits, o as default, n as featureRequest, r as search, a as share, i as updates };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Opens the feedback form on ezychat.ai in the app's language, with the app version filled in.
|
|
3
|
-
* No GitHub account needed; nothing is sent until the user submits the form.
|
|
4
|
-
*/
|
|
5
|
-
export declare function FeatureRequestAction({ placement }: {
|
|
6
|
-
placement?: 'button' | 'menu';
|
|
7
|
-
}): import("react").JSX.Element;
|