@ezychat/web 0.1.59 → 0.1.61

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.
Files changed (39) hide show
  1. package/dist-lib/chunks/admin-DJH4L6VN.js +896 -0
  2. package/dist-lib/chunks/admin-i6F-0wNq.js +897 -0
  3. package/dist-lib/chunks/{inbox-Dn_zMX5x.js → inbox-DI6Z9gdw.js} +28 -3
  4. package/dist-lib/chunks/{inbox-CostSOFa.js → inbox-hT-ebVtf.js} +28 -3
  5. package/dist-lib/ezychat-web.css +1 -1
  6. package/dist-lib/index.js +12487 -8177
  7. package/dist-lib/types/admin/AdminLayout.d.ts +8 -0
  8. package/dist-lib/types/admin/AgentGroupsCard.d.ts +16 -0
  9. package/dist-lib/types/admin/ReportCharts.d.ts +48 -0
  10. package/dist-lib/types/admin/ReportsPage.d.ts +13 -0
  11. package/dist-lib/types/admin/connectors/AgentConnectorsCard.d.ts +8 -0
  12. package/dist-lib/types/admin/connectors/AgentPicker.d.ts +9 -0
  13. package/dist-lib/types/admin/connectors/BookingSettingsCard.d.ts +13 -0
  14. package/dist-lib/types/admin/connectors/ConnectorDetailPage.d.ts +8 -0
  15. package/dist-lib/types/admin/connectors/ConnectorsGalleryPage.d.ts +7 -0
  16. package/dist-lib/types/admin/connectors/GoogleCalendarAccountCard.d.ts +7 -0
  17. package/dist-lib/types/admin/connectors/PartnerConnectionCard.d.ts +10 -0
  18. package/dist-lib/types/admin/connectors/PartnerConnectorPage.d.ts +8 -0
  19. package/dist-lib/types/admin/connectors/PartnerSettingsCard.d.ts +18 -0
  20. package/dist-lib/types/admin/connectors/catalog.d.ts +41 -0
  21. package/dist-lib/types/admin/connectors/connector-ui.d.ts +49 -0
  22. package/dist-lib/types/admin/connectors/list.d.ts +14 -0
  23. package/dist-lib/types/api/ai-groups.d.ts +53 -0
  24. package/dist-lib/types/api/ai.d.ts +18 -6
  25. package/dist-lib/types/api/connector-list.d.ts +428 -0
  26. package/dist-lib/types/api/connectors.d.ts +106 -0
  27. package/dist-lib/types/api/queries.d.ts +60 -1
  28. package/dist-lib/types/api/reply-suggestions.d.ts +1 -1
  29. package/dist-lib/types/api/voice.d.ts +2 -2
  30. package/dist-lib/types/extensions/types.d.ts +7 -1
  31. package/dist-lib/types/i18n/resources.d.ts +539 -0
  32. package/dist-lib/types/inbox/ConversationHeader.d.ts +4 -2
  33. package/dist-lib/types/inbox/GroupAiRow.d.ts +16 -0
  34. package/dist-lib/types/inbox/GroupPanel.d.ts +3 -1
  35. package/dist-lib/types/lib/format.d.ts +5 -0
  36. package/dist-lib/types/lib/links.d.ts +9 -0
  37. package/package.json +2 -2
  38. package/dist-lib/chunks/admin-BfXPHTDq.js +0 -779
  39. package/dist-lib/chunks/admin-BzKDTnlu.js +0 -780
@@ -585,6 +585,15 @@ export declare const enResources: {
585
585
  reopened: string;
586
586
  aiToolUsed: string;
587
587
  internalNote: string;
588
+ calendarChecked: string;
589
+ calendarBooked: string;
590
+ calendarBookedNoTime: string;
591
+ aiGroupAnswered: string;
592
+ aiGroupQuoted: string;
593
+ aiGroupHandover: string;
594
+ aiGroupHandoverNoReason: string;
595
+ aiGroupPaused: string;
596
+ aiGroupMember: string;
588
597
  };
589
598
  messageList: {
590
599
  label: string;
@@ -911,6 +920,22 @@ export declare const enResources: {
911
920
  sync: string;
912
921
  synced: string;
913
922
  };
923
+ aiGroups: {
924
+ badge: string;
925
+ badgePaused: string;
926
+ info: {
927
+ title: string;
928
+ hint: string;
929
+ noAgent: string;
930
+ agentDisabled: string;
931
+ agentOff: string;
932
+ openAgent: string;
933
+ readOnly: string;
934
+ on: string;
935
+ off: string;
936
+ paused: string;
937
+ };
938
+ };
914
939
  };
915
940
  admin: {
916
941
  title: string;
@@ -923,6 +948,8 @@ export declare const enResources: {
923
948
  tunnel: string;
924
949
  settings: string;
925
950
  audit: string;
951
+ connectors: string;
952
+ reports: string;
926
953
  };
927
954
  layout: {
928
955
  inbox: string;
@@ -1726,6 +1753,10 @@ export declare const enResources: {
1726
1753
  needsConnection: string;
1727
1754
  noRole: string;
1728
1755
  confidentialLeak: string;
1756
+ calendarChecked: string;
1757
+ wouldBook: string;
1758
+ wouldBookSlot: string;
1759
+ wouldRun: string;
1729
1760
  };
1730
1761
  voice: {
1731
1762
  title: string;
@@ -2337,6 +2368,514 @@ export declare const enResources: {
2337
2368
  aiWindowNote: string;
2338
2369
  createdOther: string;
2339
2370
  };
2371
+ connectors: {
2372
+ title: string;
2373
+ description: string;
2374
+ searchLabel: string;
2375
+ searchPlaceholder: string;
2376
+ categoryLabel: string;
2377
+ category: {
2378
+ all: string;
2379
+ booking: string;
2380
+ accounting: string;
2381
+ crm: string;
2382
+ data: string;
2383
+ payments: string;
2384
+ commerce: string;
2385
+ custom: string;
2386
+ other: string;
2387
+ };
2388
+ status: {
2389
+ connected: string;
2390
+ attention: string;
2391
+ notConnected: string;
2392
+ comingSoon: string;
2393
+ enterprise: string;
2394
+ needsUpdate: string;
2395
+ delisted: string;
2396
+ beta: string;
2397
+ };
2398
+ yours: string;
2399
+ more: string;
2400
+ noMatch: string;
2401
+ noMatchHint: string;
2402
+ missing: string;
2403
+ vote: string;
2404
+ voteMessage: string;
2405
+ request: string;
2406
+ requestMessage: string;
2407
+ breadcrumb: string;
2408
+ notFound: string;
2409
+ backToGallery: string;
2410
+ byCore: string;
2411
+ byEnterprise: string;
2412
+ tabs: {
2413
+ overview: string;
2414
+ settings: string;
2415
+ activity: string;
2416
+ bookings: string;
2417
+ };
2418
+ aboutTitle: string;
2419
+ aiCan: string;
2420
+ lookUp: string;
2421
+ changes: string;
2422
+ switchNote: string;
2423
+ privacyTitle: string;
2424
+ enterpriseOnly: string;
2425
+ comingSoonTitle: string;
2426
+ comingSoonBody: string;
2427
+ forAgent: string;
2428
+ noAgent: string;
2429
+ addAgent: string;
2430
+ activityTitle: string;
2431
+ activityHint: string;
2432
+ activityEmpty: string;
2433
+ act: {
2434
+ checked: string;
2435
+ booked: string;
2436
+ bookedNoTime: string;
2437
+ handed_over: string;
2438
+ failed: string;
2439
+ };
2440
+ agentCard: {
2441
+ description: string;
2442
+ checkAndBook: string;
2443
+ checkOnly: string;
2444
+ off: string;
2445
+ none: string;
2446
+ browse: string;
2447
+ };
2448
+ settingsPointerTitle: string;
2449
+ settingsPointer: string;
2450
+ tools: {
2451
+ checkFree: string;
2452
+ checkFreeHint: string;
2453
+ book: string;
2454
+ bookHint: string;
2455
+ };
2456
+ items: {
2457
+ "google-calendar": {
2458
+ name: string;
2459
+ short: string;
2460
+ long: string;
2461
+ privacy: string;
2462
+ };
2463
+ "custom-mcp": {
2464
+ name: string;
2465
+ short: string;
2466
+ long: string;
2467
+ privacy: string;
2468
+ };
2469
+ };
2470
+ gc: {
2471
+ accountTitle: string;
2472
+ accountDescription: string;
2473
+ what1: string;
2474
+ what2: string;
2475
+ what3: string;
2476
+ connect: string;
2477
+ connectHint: string;
2478
+ connectedToast: string;
2479
+ notConfiguredTitle: string;
2480
+ notConfiguredBody: string;
2481
+ waiting: string;
2482
+ waitingHint: string;
2483
+ blocked: string;
2484
+ openSignIn: string;
2485
+ sameComputer: string;
2486
+ cancelSignIn: string;
2487
+ failed: {
2488
+ denied: string;
2489
+ expired: string;
2490
+ error: string;
2491
+ };
2492
+ account: string;
2493
+ state: {
2494
+ connected: string;
2495
+ expired: string;
2496
+ unavailable: string;
2497
+ };
2498
+ expiredTitle: string;
2499
+ expiredBody: string;
2500
+ signInAgain: string;
2501
+ unavailableTitle: string;
2502
+ unavailableBody: string;
2503
+ calendars: string;
2504
+ noCalendars: string;
2505
+ readOnly: string;
2506
+ perAgent: string;
2507
+ openSettings: string;
2508
+ disconnect: string;
2509
+ disconnectTitle: string;
2510
+ disconnectBody: string;
2511
+ disconnected: string;
2512
+ };
2513
+ booking: {
2514
+ title: string;
2515
+ description: string;
2516
+ notConnected: string;
2517
+ paused: {
2518
+ expired: string;
2519
+ unavailable: string;
2520
+ };
2521
+ pausedBody: string;
2522
+ openAccount: string;
2523
+ calendar: string;
2524
+ calendarHint: string;
2525
+ chooseCalendar: string;
2526
+ calendarRequired: string;
2527
+ checkFreeHint: string;
2528
+ changesCalendar: string;
2529
+ bookHint: string;
2530
+ bookNeedsFree: string;
2531
+ eventTitle: string;
2532
+ eventTitleHint: string;
2533
+ titleRequired: string;
2534
+ length: string;
2535
+ minutes_one: string;
2536
+ minutes_other: string;
2537
+ hours: string;
2538
+ daysRequired: string;
2539
+ from: string;
2540
+ to: string;
2541
+ toAfterFrom: string;
2542
+ hoursHint: string;
2543
+ gap: string;
2544
+ noGap: string;
2545
+ notice: string;
2546
+ noNotice: string;
2547
+ hoursAhead_one: string;
2548
+ hoursAhead_other: string;
2549
+ ahead: string;
2550
+ daysAhead_one: string;
2551
+ daysAhead_other: string;
2552
+ rulesTitle: string;
2553
+ rule1: string;
2554
+ rule2: string;
2555
+ rule3: string;
2556
+ rule4: string;
2557
+ save: string;
2558
+ saved: string;
2559
+ };
2560
+ bookings: {
2561
+ title: string;
2562
+ hint: string;
2563
+ upcoming: string;
2564
+ past: string;
2565
+ noneUpcoming: string;
2566
+ empty: string;
2567
+ emptyHint: string;
2568
+ by: string;
2569
+ openChat: string;
2570
+ openEvent: string;
2571
+ openCalendar: string;
2572
+ unknownCustomer: string;
2573
+ };
2574
+ list: {
2575
+ updated: string;
2576
+ copyFrom: string;
2577
+ builtin: string;
2578
+ saved: string;
2579
+ check: string;
2580
+ checking: string;
2581
+ checkedUpToDate: string;
2582
+ checkedNew: string;
2583
+ checkedOffline: string;
2584
+ checkedRejected: string;
2585
+ offlineTitle: string;
2586
+ offlineBody: string;
2587
+ rejectedTitle: string;
2588
+ rejectedBody: string;
2589
+ needsUpdateShort: string;
2590
+ byPublisher: string;
2591
+ };
2592
+ partner: {
2593
+ website: string;
2594
+ showDetails: string;
2595
+ hideDetails: string;
2596
+ detail: {
2597
+ server: string;
2598
+ signIn: string;
2599
+ entry: string;
2600
+ entryValue: string;
2601
+ };
2602
+ signInType: {
2603
+ oauth: string;
2604
+ oauth_own_app: string;
2605
+ api_key: string;
2606
+ credentials: string;
2607
+ none: string;
2608
+ };
2609
+ needsUpdateTitle: string;
2610
+ needsUpdateBody: string;
2611
+ delistedTitle: string;
2612
+ delistedBody: string;
2613
+ connectFirst: string;
2614
+ connectFirstHint: string;
2615
+ goToOverview: string;
2616
+ connectionTitle: string;
2617
+ connection: {
2618
+ oauth: string;
2619
+ oauth_own_app: string;
2620
+ api_key: string;
2621
+ credentials: string;
2622
+ none: string;
2623
+ };
2624
+ hint: {
2625
+ oauth: string;
2626
+ oauth_own_app: string;
2627
+ api_key: string;
2628
+ credentials: string;
2629
+ none: string;
2630
+ };
2631
+ cancelledTitle: string;
2632
+ cancelledBody: string;
2633
+ unreachableTitle: string;
2634
+ unreachableBody: string;
2635
+ problem: {
2636
+ refused: string;
2637
+ expired: string;
2638
+ not_https: string;
2639
+ private_address: string;
2640
+ missing_tools: string;
2641
+ error: string;
2642
+ };
2643
+ needsSignInTitle: string;
2644
+ needsSignInBody: string;
2645
+ waitingTitle: string;
2646
+ waitingBody: string;
2647
+ blocked: string;
2648
+ openSignIn: string;
2649
+ cancel: string;
2650
+ account: string;
2651
+ key: string;
2652
+ keyEnding: string;
2653
+ connectedSince: string;
2654
+ openSettings: string;
2655
+ signInAgain: string;
2656
+ tryAgain: string;
2657
+ connect: string;
2658
+ connectKey: string;
2659
+ connectForm: string;
2660
+ connectOwnApp: string;
2661
+ testConnection: string;
2662
+ testOk_one: string;
2663
+ testOk_other: string;
2664
+ replaceKey: string;
2665
+ changeDetails: string;
2666
+ disconnect: string;
2667
+ disconnectTitle: string;
2668
+ disconnectBody: string;
2669
+ disconnected: string;
2670
+ connectedToast: string;
2671
+ dialogTitle: string;
2672
+ ownAppTitle: string;
2673
+ replaceKeyTitle: string;
2674
+ changeDetailsTitle: string;
2675
+ dialogBody: {
2676
+ api_key: string;
2677
+ credentials: string;
2678
+ oauth_own_app: string;
2679
+ };
2680
+ help: {
2681
+ api_key: string;
2682
+ credentials: string;
2683
+ oauth_own_app: string;
2684
+ };
2685
+ clientId: string;
2686
+ clientSecret: string;
2687
+ keyStored: string;
2688
+ keyRefused: string;
2689
+ required: string;
2690
+ test: string;
2691
+ save: string;
2692
+ saveAndSignIn: string;
2693
+ agentTitle: string;
2694
+ agentHint: string;
2695
+ toolsTitle: string;
2696
+ toolsNote: string;
2697
+ choose: string;
2698
+ choicesError: string;
2699
+ retry: string;
2700
+ from: string;
2701
+ to: string;
2702
+ settingProblem: {
2703
+ required: string;
2704
+ number: string;
2705
+ timeOrder: string;
2706
+ };
2707
+ saved: string;
2708
+ field: {
2709
+ name: string;
2710
+ email: string;
2711
+ phone: string;
2712
+ };
2713
+ rulesTitle: string;
2714
+ rule: {
2715
+ asDescribed: string;
2716
+ noUndo: string;
2717
+ writeOff: string;
2718
+ confirmFirst: string;
2719
+ valueFrom: string;
2720
+ fromCustomer: string;
2721
+ within: string;
2722
+ limitsBoth: string;
2723
+ limitsChat_one: string;
2724
+ limitsChat_other: string;
2725
+ limitsDay_one: string;
2726
+ limitsDay_other: string;
2727
+ };
2728
+ rulesFor: string;
2729
+ activityHint: string;
2730
+ actLine: string;
2731
+ act: {
2732
+ checked: string;
2733
+ done: string;
2734
+ refused: string;
2735
+ failed: string;
2736
+ };
2737
+ actBy: string;
2738
+ reason: {
2739
+ confirm_first: string;
2740
+ value_from: string;
2741
+ from_customer: string;
2742
+ within: string;
2743
+ limit: string;
2744
+ unreachable: string;
2745
+ partner_error: string;
2746
+ needs_sign_in: string;
2747
+ };
2748
+ agentCardTools_one: string;
2749
+ agentCardTools_other: string;
2750
+ };
2751
+ };
2752
+ reports: {
2753
+ title: string;
2754
+ description: string;
2755
+ period: string;
2756
+ days_one: string;
2757
+ days_other: string;
2758
+ loading: string;
2759
+ totals: string;
2760
+ newCustomers: string;
2761
+ messagesIn: string;
2762
+ messagesOut_one: string;
2763
+ messagesOut_other: string;
2764
+ firstReply: string;
2765
+ firstReplyHint: string;
2766
+ missedLeads: string;
2767
+ missedLeadsHint: string;
2768
+ waitingHandoff: string;
2769
+ waitingOldest_one: string;
2770
+ waitingOldest_other: string;
2771
+ waitingNone: string;
2772
+ openChats: string;
2773
+ aiAnswered: string;
2774
+ aiAnsweredHint: string;
2775
+ deltaUp_one: string;
2776
+ deltaUp_other: string;
2777
+ deltaDown_one: string;
2778
+ deltaDown_other: string;
2779
+ same_one: string;
2780
+ same_other: string;
2781
+ underMinute: string;
2782
+ minutes_one: string;
2783
+ minutes_other: string;
2784
+ hoursMinutes: string;
2785
+ since: string;
2786
+ shortTitle_one: string;
2787
+ shortTitle_other: string;
2788
+ shortText: string;
2789
+ tooEarly: string;
2790
+ emptyTitle: string;
2791
+ emptyText: string;
2792
+ weekdaysTitle: string;
2793
+ weekdaysFinding: string;
2794
+ hoursTitle: string;
2795
+ hoursFinding: string;
2796
+ heatHint: string;
2797
+ readoutHour_one: string;
2798
+ readoutHour_other: string;
2799
+ fewer: string;
2800
+ more: string;
2801
+ dailyTitle: string;
2802
+ dailyFinding: string;
2803
+ busiestDay: string;
2804
+ readoutDay: string;
2805
+ legendWeekday: string;
2806
+ legendWeekend: string;
2807
+ newTitle: string;
2808
+ newFinding: string;
2809
+ newAverage: string;
2810
+ readoutNew_one: string;
2811
+ readoutNew_other: string;
2812
+ handoffsTitle: string;
2813
+ handoffsFinding_one: string;
2814
+ handoffsFinding_other: string;
2815
+ handoffsNone: string;
2816
+ addContext: string;
2817
+ reason: {
2818
+ missing_facts: string;
2819
+ business_rule: string;
2820
+ needs_action: string;
2821
+ unsupported_message: string;
2822
+ asked_for_human: string;
2823
+ ai_unavailable: string;
2824
+ sensitive: string;
2825
+ lookup_failed: string;
2826
+ other: string;
2827
+ };
2828
+ teamTitle: string;
2829
+ teamFinding: string;
2830
+ teamNone: string;
2831
+ ai: string;
2832
+ phone: string;
2833
+ showTable: string;
2834
+ showChart: string;
2835
+ colDay: string;
2836
+ colAvgIn: string;
2837
+ colAvgChats: string;
2838
+ colHour: string;
2839
+ colDate: string;
2840
+ colIn: string;
2841
+ colOut: string;
2842
+ colChats: string;
2843
+ colNew: string;
2844
+ colMember: string;
2845
+ colReplies: string;
2846
+ colReplyTime: string;
2847
+ hourRange: string;
2848
+ };
2849
+ aiGroups: {
2850
+ title: string;
2851
+ description: string;
2852
+ switch: string;
2853
+ switchHint: string;
2854
+ offSummary_one: string;
2855
+ offSummary_other: string;
2856
+ listLabel: string;
2857
+ noneOn: string;
2858
+ noGroups: string;
2859
+ noInbox: string;
2860
+ loopGuard: string;
2861
+ lookupsOnly: string;
2862
+ agentOff: string;
2863
+ members_one: string;
2864
+ members_other: string;
2865
+ answers: string;
2866
+ off: string;
2867
+ paused: string;
2868
+ answerIn: string;
2869
+ openGroup: string;
2870
+ saveFailed: string;
2871
+ try: {
2872
+ group: string;
2873
+ groupHint: string;
2874
+ inGroup: string;
2875
+ lookupsOnly: string;
2876
+ notSent: string;
2877
+ };
2878
+ };
2340
2879
  };
2341
2880
  errors: {
2342
2881
  generic: string;
@@ -1,4 +1,4 @@
1
- import type { Chat, Inbox } from '@ezychat/shared';
1
+ import type { AiGroupChat, Chat, Inbox } from '@ezychat/shared';
2
2
  import type { Directory } from './useDirectory';
3
3
  export interface ConversationHeaderProps {
4
4
  chat: Chat;
@@ -22,6 +22,8 @@ export interface ConversationHeaderProps {
22
22
  memberCount?: number | null;
23
23
  /** The chat's inbox, only while the user sees two or more inboxes (replies leave from it). */
24
24
  inbox?: Pick<Inbox, 'name' | 'tone'>;
25
+ /** Group chats: whether the AI agent answers when tagged or quoted (the header badge). */
26
+ groupAi?: AiGroupChat | null;
25
27
  busy?: boolean;
26
28
  }
27
- export declare function ConversationHeader({ chat, directory, onBack, onAssign, onToggleStatus, notesOpen, notesCount, onToggleNotes, showCustomer, customerOpen, onToggleCustomer, onOpenInfo, memberCount, inbox, busy, }: ConversationHeaderProps): import("react").JSX.Element;
29
+ export declare function ConversationHeader({ chat, directory, onBack, onAssign, onToggleStatus, notesOpen, notesCount, onToggleNotes, showCustomer, customerOpen, onToggleCustomer, onOpenInfo, memberCount, inbox, groupAi, busy, }: ConversationHeaderProps): import("react").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import type { AiGroupChat } from '@ezychat/shared';
2
+ /** The AI answers tags and quotes in this group now (its switch and the agent's are both on). */
3
+ export declare const groupAiActive: (ai: AiGroupChat | null | undefined) => boolean;
4
+ /**
5
+ * Group info → "AI agent answers when tagged or quoted". Admins switch it; agents see the state.
6
+ * Disabled with a hint while the agent's "Answer in groups" is off. Hidden when the server does not
7
+ * answer (an older server, or no access).
8
+ */
9
+ export declare function GroupAiRow({ jid, isAdmin }: Readonly<{
10
+ jid: string;
11
+ isAdmin: boolean;
12
+ }>): import("react").JSX.Element | null;
13
+ /** Chat header badge on a group where the AI answers when tagged or quoted (or is paused there). */
14
+ export declare function GroupAiBadge({ ai }: Readonly<{
15
+ ai: AiGroupChat | null | undefined;
16
+ }>): import("react").JSX.Element | null;
@@ -7,6 +7,8 @@ export interface GroupPanelProps {
7
7
  jid: string;
8
8
  open: boolean;
9
9
  onClose(): void;
10
+ /** Admins switch whether the AI agent answers in this group; agents see the state. */
11
+ isAdmin?: boolean;
10
12
  }
11
13
  type T = ReturnType<typeof useTranslation<'inbox'>>['t'];
12
14
  /** What the team can call a member: our name for them, else their number, else their WhatsApp ID. */
@@ -15,5 +17,5 @@ export declare function memberLabel(m: GroupMember, t: T): string;
15
17
  * Group info: the members of a WhatsApp group (read from WhatsApp, view-only), with search, an
16
18
  * admins filter and per-member details. Side panel on >= lg, full-height Sheet below.
17
19
  */
18
- export declare function GroupPanel({ jid, open, onClose }: GroupPanelProps): React.JSX.Element | null;
20
+ export declare function GroupPanel({ jid, open, onClose, isAdmin }: GroupPanelProps): React.JSX.Element | null;
19
21
  export {};
@@ -18,3 +18,8 @@ export declare function formatBytes(n: number): string;
18
18
  */
19
19
  export declare function initials(name: string): string;
20
20
  export declare function truncate(s: string, max: number): string;
21
+ /**
22
+ * A booked time in the browser's time zone and the UI language: "Fri, 30 Oct, 7:30–9:00 pm".
23
+ * Empty when either end is not a valid date.
24
+ */
25
+ export declare function formatTimeRange(startIso: string, endIso: string): string;
@@ -29,12 +29,21 @@ export interface AppLinks {
29
29
  supportEmail: string | null;
30
30
  /** "Upgrade to Enterprise" page (Lite's limits, account menu, About); null hides every upgrade link. */
31
31
  upgrade: string | null;
32
+ /**
33
+ * Admin → Connectors "Vote for this connector" / "Ask for a connector": the address that opens a
34
+ * ready message (in the UI language) to the team. Nothing is counted in the app. null hides them.
35
+ */
36
+ connectorRequest: ((message: string) => string) | null;
32
37
  }
33
38
  /**
34
39
  * The EzyChat Enterprise section of the website. The campaign tag lets the website count upgrade
35
40
  * visits from the app; the app itself sends nothing (no tracking in Lite).
36
41
  */
37
42
  export declare const ENTERPRISE_UPGRADE_URL = "https://ezychat.ai/?utm_source=ezychat-lite&utm_medium=app&utm_campaign=upgrade#enterprise";
43
+ /** The EzyChat team's WhatsApp number (the website's contact number) for connector requests. */
44
+ export declare const CONNECTOR_REQUEST_WHATSAPP = "601159246128";
45
+ /** A WhatsApp chat with the EzyChat team, with `message` ready to send. */
46
+ export declare function connectorRequestUrl(message: string): string;
38
47
  /** Lite's links: GitHub repository and issues, feedback on ezychat.ai. */
39
48
  export declare const LITE_APP_LINKS: Readonly<AppLinks>;
40
49
  /** Lite's links with the given overrides (an explicit `null` hides that link). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ezychat/web",
3
- "version": "0.1.59",
3
+ "version": "0.1.61",
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.59",
43
+ "@ezychat/shared": "0.1.61",
44
44
  "@fontsource-variable/inter": "^5.3.0",
45
45
  "@tanstack/react-query": "^5.104.5",
46
46
  "@types/react": "^19.3.0",