@ezychat/web 0.1.84 → 0.1.86
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/assets/font-9f04f14429bb.woff2 +0 -0
- package/dist-lib/chunks/{admin-T9Qs91WR.js → admin-CGWT-MJA.js} +71 -59
- package/dist-lib/chunks/{admin-BSIc8-DD.js → admin-n8lWCbmd.js} +71 -59
- package/dist-lib/chunks/{common-BE996sRJ.js → common-BeKNf4n-.js} +43 -3
- package/dist-lib/chunks/{common-CBTam36M.js → common-jotvJJL9.js} +43 -3
- package/dist-lib/chunks/{inbox-C2IIv9Z3.js → inbox-D4VV1Cmg.js} +164 -59
- package/dist-lib/chunks/{inbox-BRsRaRZn.js → inbox-_dK6whtW.js} +164 -59
- package/dist-lib/ezychat-web.css +1 -1
- package/dist-lib/index.js +12065 -8683
- package/dist-lib/types/admin/AdminLayout.d.ts +21 -5
- package/dist-lib/types/admin/AgentDreamCard.d.ts +9 -0
- package/dist-lib/types/admin/AgentResolutionCard.d.ts +1 -1
- package/dist-lib/types/admin/DreamChangeDialog.d.ts +14 -0
- package/dist-lib/types/admin/HiddenChats.d.ts +16 -0
- package/dist-lib/types/admin/LiveTranslateSection.d.ts +6 -0
- package/dist-lib/types/admin/SendPermissionFields.d.ts +5 -2
- package/dist-lib/types/admin/TokenPermissionsDialog.d.ts +2 -2
- package/dist-lib/types/admin/connectors/ConnectorDetailPage.d.ts +1 -1
- package/dist-lib/types/admin/connectors/GitHubAccountCard.d.ts +8 -0
- package/dist-lib/types/admin/connectors/GitHubSettingsCard.d.ts +4 -0
- package/dist-lib/types/admin/connectors/catalog.d.ts +6 -6
- 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/chat-delete.d.ts +16 -0
- package/dist-lib/types/api/chat-hide.d.ts +21 -0
- package/dist-lib/types/api/connectors.d.ts +131 -0
- package/dist-lib/types/api/dream.d.ts +91 -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 +45 -1
- package/dist-lib/types/api/scheduled-tasks.d.ts +6 -6
- package/dist-lib/types/api/templates.d.ts +7 -0
- package/dist-lib/types/askezy/api.d.ts +2 -2
- package/dist-lib/types/auth/LoginPage.d.ts +1 -0
- package/dist-lib/types/auth/UserMenu.d.ts +2 -0
- package/dist-lib/types/extensions/index.d.ts +1 -1
- package/dist-lib/types/extensions/routes.d.ts +3 -1
- package/dist-lib/types/i18n/resources.d.ts +399 -8
- package/dist-lib/types/inbox/ChatListItem.d.ts +3 -1
- package/dist-lib/types/inbox/ConversationHeader.d.ts +6 -1
- package/dist-lib/types/inbox/DeleteChatDialog.d.ts +12 -0
- package/dist-lib/types/inbox/LiveTranslate.d.ts +54 -0
- package/dist-lib/types/lib/tips.d.ts +1 -1
- package/dist-lib/types/lib/version.d.ts +4 -0
- package/dist-lib/types/lite-import/steps.d.ts +7 -2
- package/dist-lib/types/nav/AccountPage.d.ts +2 -0
- package/dist-lib/types/nav/AppNav.d.ts +10 -0
- package/dist-lib/types/nav/MyLanguageField.d.ts +5 -0
- package/dist-lib/types/nav/PhoneBar.d.ts +14 -0
- package/dist-lib/types/nav/attention.d.ts +4 -0
- package/package.json +11 -10
- package/dist-lib/types/askezy/AskEzyButton.d.ts +0 -8
|
@@ -79,6 +79,13 @@ export declare function useEditMessage(): import("@tanstack/react-query").UseMut
|
|
|
79
79
|
deletedBy?: "phone" | "team" | "sender" | "group_admin" | null | undefined;
|
|
80
80
|
deletedByUserId?: number | null | undefined;
|
|
81
81
|
hidden?: boolean | undefined;
|
|
82
|
+
typed?: {
|
|
83
|
+
typedText: string;
|
|
84
|
+
typedLanguage: "en" | "ms" | "id" | "zh" | "ta" | "th" | "vi" | "ar" | "ja" | "ko";
|
|
85
|
+
sentLanguage: "en" | "ms" | "id" | "zh" | "ta" | "th" | "vi" | "ar" | "ja" | "ko";
|
|
86
|
+
edited: boolean;
|
|
87
|
+
} | null | undefined;
|
|
88
|
+
sentOriginal?: boolean | undefined;
|
|
82
89
|
}, Error, {
|
|
83
90
|
id: string;
|
|
84
91
|
text: string;
|
|
@@ -148,6 +155,13 @@ export declare function useDeleteMessage(): import("@tanstack/react-query").UseM
|
|
|
148
155
|
deletedBy?: "phone" | "team" | "sender" | "group_admin" | null | undefined;
|
|
149
156
|
deletedByUserId?: number | null | undefined;
|
|
150
157
|
hidden?: boolean | undefined;
|
|
158
|
+
typed?: {
|
|
159
|
+
typedText: string;
|
|
160
|
+
typedLanguage: "en" | "ms" | "id" | "zh" | "ta" | "th" | "vi" | "ar" | "ja" | "ko";
|
|
161
|
+
sentLanguage: "en" | "ms" | "id" | "zh" | "ta" | "th" | "vi" | "ar" | "ja" | "ko";
|
|
162
|
+
edited: boolean;
|
|
163
|
+
} | null | undefined;
|
|
164
|
+
sentOriginal?: boolean | undefined;
|
|
151
165
|
}, Error, {
|
|
152
166
|
id: string;
|
|
153
167
|
scope: "everyone" | "me";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type InfiniteData, type QueryClient } from '@tanstack/react-query';
|
|
2
|
-
import { type ReportPeriod, type CreateApiTokenBodyInput, type UpdateApiTokenBody, type Chat, type ChatListResponse, type ChatStatus, type DirectoryUser, type InboxStatusPayload, type SetMemberChatsBody, type Message, type MessageListResponse, type MessageLocateResponse, type PatchUserBody, type Settings, type WaStatus } from '@ezychat/shared';
|
|
2
|
+
import { type ReportPeriod, type CreateApiTokenBodyInput, type UpdateApiTokenBody, type Chat, type ChatListResponse, type ChatStatus, type DirectoryUser, type InboxStatusPayload, type SetMemberChatsBody, type Message, type MessageListResponse, type MessageLocateResponse, type PatchUserBody, type Settings, type SendTranslation, type TranslateLanguage, type WaStatus } from '@ezychat/shared';
|
|
3
3
|
export interface ChatFilters {
|
|
4
4
|
status?: ChatStatus;
|
|
5
5
|
assigned: 'me' | 'none' | 'any';
|
|
@@ -15,6 +15,7 @@ export declare const qk: {
|
|
|
15
15
|
chats: (f: ChatFilters) => readonly ["chats", ChatFilters];
|
|
16
16
|
chatsAll: readonly ["chats"];
|
|
17
17
|
openChatCount: readonly ["open-chat-count"];
|
|
18
|
+
unreadChatCount: readonly ["unread-chat-count"];
|
|
18
19
|
report: (days: number, inbox?: number | null) => readonly ["report", number, number | null];
|
|
19
20
|
chat: (jid: string) => readonly ["chat", string];
|
|
20
21
|
messages: (jid: string) => readonly ["messages", string];
|
|
@@ -122,6 +123,8 @@ export declare function useSetMyLocale(): import("@tanstack/react-query").UseMut
|
|
|
122
123
|
disabled: boolean;
|
|
123
124
|
createdAt: number;
|
|
124
125
|
locale: "en" | "ms" | "zh-CN" | null;
|
|
126
|
+
translateLanguage: "en" | "ms" | "id" | "zh" | "ta" | "th" | "vi" | "ar" | "ja" | "ko" | null;
|
|
127
|
+
sendWithoutPreview: boolean;
|
|
125
128
|
kind?: "ai" | "human" | undefined;
|
|
126
129
|
aiRole?: "sales" | undefined;
|
|
127
130
|
aiAgentId?: number | undefined;
|
|
@@ -262,6 +265,10 @@ export declare function useReport(days: ReportPeriod, inbox?: number | null): im
|
|
|
262
265
|
export declare function useOpenChatCount(): import("@tanstack/react-query").UseQueryResult<{
|
|
263
266
|
openCount: number;
|
|
264
267
|
}, Error>;
|
|
268
|
+
/** App navigation: open chats with unread messages the user may open (kept live by the chat socket events). */
|
|
269
|
+
export declare function useUnreadChatCount(): import("@tanstack/react-query").UseQueryResult<{
|
|
270
|
+
count: number;
|
|
271
|
+
}, Error>;
|
|
265
272
|
export declare function useResolveAllChats(): import("@tanstack/react-query").UseMutationResult<{
|
|
266
273
|
resolvedCount: number;
|
|
267
274
|
}, Error, void, unknown>;
|
|
@@ -332,6 +339,13 @@ export declare function useMessages(jid: string | null | undefined): import("@ta
|
|
|
332
339
|
deletedBy?: "phone" | "team" | "sender" | "group_admin" | null | undefined;
|
|
333
340
|
deletedByUserId?: number | null | undefined;
|
|
334
341
|
hidden?: boolean | undefined;
|
|
342
|
+
typed?: {
|
|
343
|
+
typedText: string;
|
|
344
|
+
typedLanguage: "en" | "ms" | "id" | "zh" | "ta" | "th" | "vi" | "ar" | "ja" | "ko";
|
|
345
|
+
sentLanguage: "en" | "ms" | "id" | "zh" | "ta" | "th" | "vi" | "ar" | "ja" | "ko";
|
|
346
|
+
edited: boolean;
|
|
347
|
+
} | null | undefined;
|
|
348
|
+
sentOriginal?: boolean | undefined;
|
|
335
349
|
}[];
|
|
336
350
|
nextBefore: string | null;
|
|
337
351
|
}, unknown>, Error>;
|
|
@@ -348,6 +362,12 @@ export interface SendTextInput {
|
|
|
348
362
|
shown?: string;
|
|
349
363
|
/** Generate with `newClientId()` (a random UUID). */
|
|
350
364
|
clientId: string;
|
|
365
|
+
/** Live translate: the checked translation being sent (the server keeps what was typed beside it). */
|
|
366
|
+
translation?: SendTranslation;
|
|
367
|
+
/** Live translate "Send original instead": the text goes out as typed. */
|
|
368
|
+
sentOriginal?: boolean;
|
|
369
|
+
/** Live translate: the language the text goes out in (for the pending bubble only). */
|
|
370
|
+
sentLanguage?: TranslateLanguage;
|
|
351
371
|
}
|
|
352
372
|
/** Optimistic text send: inserts a pending bubble immediately, reconciled by clientId. */
|
|
353
373
|
export declare function useSendText(jid: string): import("@tanstack/react-query").UseMutationResult<{
|
|
@@ -415,6 +435,13 @@ export declare function useSendText(jid: string): import("@tanstack/react-query"
|
|
|
415
435
|
deletedBy?: "phone" | "team" | "sender" | "group_admin" | null | undefined;
|
|
416
436
|
deletedByUserId?: number | null | undefined;
|
|
417
437
|
hidden?: boolean | undefined;
|
|
438
|
+
typed?: {
|
|
439
|
+
typedText: string;
|
|
440
|
+
typedLanguage: "en" | "ms" | "id" | "zh" | "ta" | "th" | "vi" | "ar" | "ja" | "ko";
|
|
441
|
+
sentLanguage: "en" | "ms" | "id" | "zh" | "ta" | "th" | "vi" | "ar" | "ja" | "ko";
|
|
442
|
+
edited: boolean;
|
|
443
|
+
} | null | undefined;
|
|
444
|
+
sentOriginal?: boolean | undefined;
|
|
418
445
|
}, Error, SendTextInput, {
|
|
419
446
|
clientId: string;
|
|
420
447
|
}>;
|
|
@@ -499,6 +526,13 @@ export declare function useSendMedia(jid: string): import("@tanstack/react-query
|
|
|
499
526
|
deletedBy?: "phone" | "team" | "sender" | "group_admin" | null | undefined;
|
|
500
527
|
deletedByUserId?: number | null | undefined;
|
|
501
528
|
hidden?: boolean | undefined;
|
|
529
|
+
typed?: {
|
|
530
|
+
typedText: string;
|
|
531
|
+
typedLanguage: "en" | "ms" | "id" | "zh" | "ta" | "th" | "vi" | "ar" | "ja" | "ko";
|
|
532
|
+
sentLanguage: "en" | "ms" | "id" | "zh" | "ta" | "th" | "vi" | "ar" | "ja" | "ko";
|
|
533
|
+
edited: boolean;
|
|
534
|
+
} | null | undefined;
|
|
535
|
+
sentOriginal?: boolean | undefined;
|
|
502
536
|
}, Error, SendMediaInput, void>;
|
|
503
537
|
export declare function useRetryMessage(): import("@tanstack/react-query").UseMutationResult<{
|
|
504
538
|
id: string;
|
|
@@ -565,6 +599,13 @@ export declare function useRetryMessage(): import("@tanstack/react-query").UseMu
|
|
|
565
599
|
deletedBy?: "phone" | "team" | "sender" | "group_admin" | null | undefined;
|
|
566
600
|
deletedByUserId?: number | null | undefined;
|
|
567
601
|
hidden?: boolean | undefined;
|
|
602
|
+
typed?: {
|
|
603
|
+
typedText: string;
|
|
604
|
+
typedLanguage: "en" | "ms" | "id" | "zh" | "ta" | "th" | "vi" | "ar" | "ja" | "ko";
|
|
605
|
+
sentLanguage: "en" | "ms" | "id" | "zh" | "ta" | "th" | "vi" | "ar" | "ja" | "ko";
|
|
606
|
+
edited: boolean;
|
|
607
|
+
} | null | undefined;
|
|
608
|
+
sentOriginal?: boolean | undefined;
|
|
568
609
|
}, Error, string, unknown>;
|
|
569
610
|
/**
|
|
570
611
|
* The linked number reacts to a message (`emoji` '' removes the reaction). The answer carries the
|
|
@@ -1066,6 +1107,7 @@ export declare function useApiTokens(): import("@tanstack/react-query").UseQuery
|
|
|
1066
1107
|
expiresAt: number | null;
|
|
1067
1108
|
canSend: boolean;
|
|
1068
1109
|
canMessageNewNumbers: boolean;
|
|
1110
|
+
canResolveChats: boolean;
|
|
1069
1111
|
connectedApp: boolean;
|
|
1070
1112
|
}[], Error>;
|
|
1071
1113
|
export interface CreateApiTokenVars {
|
|
@@ -1088,6 +1130,7 @@ export declare function useCreateApiToken(): import("@tanstack/react-query").Use
|
|
|
1088
1130
|
expiresAt: number | null;
|
|
1089
1131
|
canSend: boolean;
|
|
1090
1132
|
canMessageNewNumbers: boolean;
|
|
1133
|
+
canResolveChats: boolean;
|
|
1091
1134
|
connectedApp: boolean;
|
|
1092
1135
|
}, Error, CreateApiTokenVars, unknown>;
|
|
1093
1136
|
/** Changes whether a token may send (and message new numbers); only its owner may. */
|
|
@@ -1102,6 +1145,7 @@ export declare function useUpdateApiToken(): import("@tanstack/react-query").Use
|
|
|
1102
1145
|
expiresAt: number | null;
|
|
1103
1146
|
canSend: boolean;
|
|
1104
1147
|
canMessageNewNumbers: boolean;
|
|
1148
|
+
canResolveChats: boolean;
|
|
1105
1149
|
connectedApp: boolean;
|
|
1106
1150
|
}, Error, {
|
|
1107
1151
|
id: number;
|
|
@@ -22,7 +22,7 @@ export declare function useScheduledTasks(agentId: number): import("@tanstack/re
|
|
|
22
22
|
trigger: "schedule" | "run_now";
|
|
23
23
|
byUserName: string | null;
|
|
24
24
|
result: "failed" | "sent" | "skipped" | null;
|
|
25
|
-
reason: "window_closed" | "confidential_leak" | "ai_unavailable" | "lookup_failed" | "agent_off" | "ai_disconnected" | "wa_disconnected" | "access_closed" | "nothing_to_say" | "needs_team" | "missed" | "chat_gone" | "send_failed" | "interrupted" | null;
|
|
25
|
+
reason: "window_closed" | "confidential_leak" | "ai_unavailable" | "lookup_failed" | "agent_off" | "ai_disconnected" | "wa_disconnected" | "access_closed" | "nothing_to_say" | "needs_team" | "missed" | "chat_gone" | "chat_hidden" | "send_failed" | "interrupted" | null;
|
|
26
26
|
messageId: string | null;
|
|
27
27
|
} | null;
|
|
28
28
|
name: string;
|
|
@@ -54,7 +54,7 @@ export declare function useCreateScheduledTask(agentId: number): import("@tansta
|
|
|
54
54
|
trigger: "schedule" | "run_now";
|
|
55
55
|
byUserName: string | null;
|
|
56
56
|
result: "failed" | "sent" | "skipped" | null;
|
|
57
|
-
reason: "window_closed" | "confidential_leak" | "ai_unavailable" | "lookup_failed" | "agent_off" | "ai_disconnected" | "wa_disconnected" | "access_closed" | "nothing_to_say" | "needs_team" | "missed" | "chat_gone" | "send_failed" | "interrupted" | null;
|
|
57
|
+
reason: "window_closed" | "confidential_leak" | "ai_unavailable" | "lookup_failed" | "agent_off" | "ai_disconnected" | "wa_disconnected" | "access_closed" | "nothing_to_say" | "needs_team" | "missed" | "chat_gone" | "chat_hidden" | "send_failed" | "interrupted" | null;
|
|
58
58
|
messageId: string | null;
|
|
59
59
|
} | null;
|
|
60
60
|
name: string;
|
|
@@ -89,7 +89,7 @@ export declare function useUpdateScheduledTask(agentId: number): import("@tansta
|
|
|
89
89
|
trigger: "schedule" | "run_now";
|
|
90
90
|
byUserName: string | null;
|
|
91
91
|
result: "failed" | "sent" | "skipped" | null;
|
|
92
|
-
reason: "window_closed" | "confidential_leak" | "ai_unavailable" | "lookup_failed" | "agent_off" | "ai_disconnected" | "wa_disconnected" | "access_closed" | "nothing_to_say" | "needs_team" | "missed" | "chat_gone" | "send_failed" | "interrupted" | null;
|
|
92
|
+
reason: "window_closed" | "confidential_leak" | "ai_unavailable" | "lookup_failed" | "agent_off" | "ai_disconnected" | "wa_disconnected" | "access_closed" | "nothing_to_say" | "needs_team" | "missed" | "chat_gone" | "chat_hidden" | "send_failed" | "interrupted" | null;
|
|
93
93
|
messageId: string | null;
|
|
94
94
|
} | null;
|
|
95
95
|
name: string;
|
|
@@ -114,7 +114,7 @@ export declare function useScheduledRuns(agentId: number, taskId: number): impor
|
|
|
114
114
|
trigger: "schedule" | "run_now";
|
|
115
115
|
byUserName: string | null;
|
|
116
116
|
result: "failed" | "sent" | "skipped" | null;
|
|
117
|
-
reason: "window_closed" | "confidential_leak" | "ai_unavailable" | "lookup_failed" | "agent_off" | "ai_disconnected" | "wa_disconnected" | "access_closed" | "nothing_to_say" | "needs_team" | "missed" | "chat_gone" | "send_failed" | "interrupted" | null;
|
|
117
|
+
reason: "window_closed" | "confidential_leak" | "ai_unavailable" | "lookup_failed" | "agent_off" | "ai_disconnected" | "wa_disconnected" | "access_closed" | "nothing_to_say" | "needs_team" | "missed" | "chat_gone" | "chat_hidden" | "send_failed" | "interrupted" | null;
|
|
118
118
|
messageId: string | null;
|
|
119
119
|
}[];
|
|
120
120
|
}, Error>;
|
|
@@ -126,7 +126,7 @@ export declare function useRunScheduledTask(agentId: number): import("@tanstack/
|
|
|
126
126
|
trigger: "schedule" | "run_now";
|
|
127
127
|
byUserName: string | null;
|
|
128
128
|
result: "failed" | "sent" | "skipped" | null;
|
|
129
|
-
reason: "window_closed" | "confidential_leak" | "ai_unavailable" | "lookup_failed" | "agent_off" | "ai_disconnected" | "wa_disconnected" | "access_closed" | "nothing_to_say" | "needs_team" | "missed" | "chat_gone" | "send_failed" | "interrupted" | null;
|
|
129
|
+
reason: "window_closed" | "confidential_leak" | "ai_unavailable" | "lookup_failed" | "agent_off" | "ai_disconnected" | "wa_disconnected" | "access_closed" | "nothing_to_say" | "needs_team" | "missed" | "chat_gone" | "chat_hidden" | "send_failed" | "interrupted" | null;
|
|
130
130
|
messageId: string | null;
|
|
131
131
|
};
|
|
132
132
|
}, Error, number, unknown>;
|
|
@@ -134,7 +134,7 @@ export declare function useRunScheduledTask(agentId: number): import("@tanstack/
|
|
|
134
134
|
export declare function usePreviewScheduledTask(agentId: number): import("@tanstack/react-query").UseMutationResult<{
|
|
135
135
|
result: "sent" | "skipped";
|
|
136
136
|
text: string | null;
|
|
137
|
-
reason: "window_closed" | "confidential_leak" | "ai_unavailable" | "lookup_failed" | "agent_off" | "ai_disconnected" | "wa_disconnected" | "access_closed" | "nothing_to_say" | "needs_team" | "missed" | "chat_gone" | "send_failed" | "interrupted" | null;
|
|
137
|
+
reason: "window_closed" | "confidential_leak" | "ai_unavailable" | "lookup_failed" | "agent_off" | "ai_disconnected" | "wa_disconnected" | "access_closed" | "nothing_to_say" | "needs_team" | "missed" | "chat_gone" | "chat_hidden" | "send_failed" | "interrupted" | null;
|
|
138
138
|
lookups: {
|
|
139
139
|
title: string;
|
|
140
140
|
sourceLabel: string;
|
|
@@ -93,6 +93,13 @@ export declare function useSendTemplate(jid: string): import("@tanstack/react-qu
|
|
|
93
93
|
deletedBy?: "phone" | "team" | "sender" | "group_admin" | null | undefined;
|
|
94
94
|
deletedByUserId?: number | null | undefined;
|
|
95
95
|
hidden?: boolean | undefined;
|
|
96
|
+
typed?: {
|
|
97
|
+
typedText: string;
|
|
98
|
+
typedLanguage: "en" | "ms" | "id" | "zh" | "ta" | "th" | "vi" | "ar" | "ja" | "ko";
|
|
99
|
+
sentLanguage: "en" | "ms" | "id" | "zh" | "ta" | "th" | "vi" | "ar" | "ja" | "ko";
|
|
100
|
+
edited: boolean;
|
|
101
|
+
} | null | undefined;
|
|
102
|
+
sentOriginal?: boolean | undefined;
|
|
96
103
|
}, Error, {
|
|
97
104
|
name: string;
|
|
98
105
|
language: string;
|
|
@@ -4,11 +4,11 @@ export declare const getAskEzyStatus: () => Promise<{
|
|
|
4
4
|
}>;
|
|
5
5
|
export type AskEzyChangeAction = 'apply' | 'discard' | 'undo';
|
|
6
6
|
export declare const askEzyChange: (id: string, action: AskEzyChangeAction) => Promise<{
|
|
7
|
-
status: "
|
|
7
|
+
status: "applied" | "proposed" | "discarded";
|
|
8
8
|
version?: number | undefined;
|
|
9
9
|
related?: {
|
|
10
10
|
id: string;
|
|
11
|
-
status: "
|
|
11
|
+
status: "applied" | "proposed" | "discarded";
|
|
12
12
|
}[] | undefined;
|
|
13
13
|
agentId?: number | undefined;
|
|
14
14
|
taskId?: number | undefined;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/** Also used by the Account page (nav/AccountPage.tsx), so a new language is added once. */
|
|
2
|
+
export declare function shortLocaleLabel(code: string, nativeName: string): string;
|
|
1
3
|
export declare function UserMenu({ className, align, }: {
|
|
2
4
|
className?: string;
|
|
3
5
|
align?: 'start' | 'center' | 'end';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from './types';
|
|
2
2
|
export { WebExtensionsProvider, useWebExtensions } from './context';
|
|
3
3
|
export { registerExtensionCatalogs, useExtensionTranslation, type ExtensionTranslate, } from './i18n';
|
|
4
|
-
export { ExtensionBoundary, extensionRoutes } from './routes';
|
|
4
|
+
export { ExtensionBoundary, extensionRoutes, extensionSectionOf } from './routes';
|
|
5
5
|
export { inboxTypesOf, useInboxTypes } from './inbox-types';
|
|
6
6
|
export { AgentSectionProvider, useAgentSection, type AgentSectionInfo } from './agent-section';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type WebExtension, type WebExtensionAdminSection } from './types';
|
|
3
|
+
/** The core section an extension admin route declares for this path (e.g. `members`). */
|
|
4
|
+
export declare function extensionSectionOf(extensions: readonly WebExtension[], pathname: string): WebExtensionAdminSection | undefined;
|
|
3
5
|
/** Wraps one extension element so a crash inside it never blanks the rest of the app. */
|
|
4
6
|
export declare function ExtensionBoundary({ children }: {
|
|
5
7
|
children: ReactNode;
|