@arbidocs/react 0.4.108 → 0.4.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/artifacts/index.cjs +6 -6
- package/dist/artifacts/index.js +1 -1
- package/dist/{chunk-LICEKTGA.js → chunk-5L46Z7HZ.js} +442 -35
- package/dist/chunk-5L46Z7HZ.js.map +1 -0
- package/dist/{chunk-IXRNX5QB.js → chunk-5WXNTCI3.js} +25 -3
- package/dist/chunk-5WXNTCI3.js.map +1 -0
- package/dist/{chunk-X2KOIXHA.cjs → chunk-AFGE55RQ.cjs} +26 -2
- package/dist/chunk-AFGE55RQ.cjs.map +1 -0
- package/dist/{chunk-KOZ2CJY6.cjs → chunk-XD4P4KRH.cjs} +450 -34
- package/dist/chunk-XD4P4KRH.cjs.map +1 -0
- package/dist/index.cjs +476 -386
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +541 -459
- package/dist/index.d.ts +541 -459
- package/dist/index.js +154 -110
- package/dist/index.js.map +1 -1
- package/dist/ui/index.cjs +113 -113
- package/dist/ui/index.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-IXRNX5QB.js.map +0 -1
- package/dist/chunk-KOZ2CJY6.cjs.map +0 -1
- package/dist/chunk-LICEKTGA.js.map +0 -1
- package/dist/chunk-X2KOIXHA.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkAFGE55RQ_cjs = require('./chunk-AFGE55RQ.cjs');
|
|
4
4
|
var chunk5DCRIWCA_cjs = require('./chunk-5DCRIWCA.cjs');
|
|
5
5
|
var chunkF7KQVVD2_cjs = require('./chunk-F7KQVVD2.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkXD4P4KRH_cjs = require('./chunk-XD4P4KRH.cjs');
|
|
7
7
|
var chunkTBELZWGV_cjs = require('./chunk-TBELZWGV.cjs');
|
|
8
8
|
var chunkWYZJLZ67_cjs = require('./chunk-WYZJLZ67.cjs');
|
|
9
9
|
var chunkZ3LLUO32_cjs = require('./chunk-Z3LLUO32.cjs');
|
|
@@ -41,7 +41,7 @@ function useUpdateConversation() {
|
|
|
41
41
|
conversationId,
|
|
42
42
|
patch
|
|
43
43
|
}) => arbi.conversations.update(conversationId, patch),
|
|
44
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
44
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.allConversations() })
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
function useCreateWork() {
|
|
@@ -49,7 +49,7 @@ function useCreateWork() {
|
|
|
49
49
|
const qc = reactQuery.useQueryClient();
|
|
50
50
|
return reactQuery.useMutation({
|
|
51
51
|
mutationFn: (body) => arbi.conversations.createWork(body),
|
|
52
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
52
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.allConversations() })
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
function useRunConversation() {
|
|
@@ -57,7 +57,7 @@ function useRunConversation() {
|
|
|
57
57
|
const qc = reactQuery.useQueryClient();
|
|
58
58
|
return reactQuery.useMutation({
|
|
59
59
|
mutationFn: (conversationId) => arbi.conversations.runWithAuth(conversationId),
|
|
60
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
60
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.allConversations() })
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
function useActOnStep() {
|
|
@@ -68,7 +68,7 @@ function useActOnStep() {
|
|
|
68
68
|
conversationId,
|
|
69
69
|
body
|
|
70
70
|
}) => arbi.conversations.actOnStep(conversationId, body),
|
|
71
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
71
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.allConversations() })
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
function useSendBackStep() {
|
|
@@ -81,7 +81,7 @@ function useSendBackStep() {
|
|
|
81
81
|
to,
|
|
82
82
|
note
|
|
83
83
|
}) => arbi.conversations.sendBackStep(conversationId, step, { to, note }),
|
|
84
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
84
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.allConversations() })
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
function usePlanWork() {
|
|
@@ -93,7 +93,7 @@ function usePlanWork() {
|
|
|
93
93
|
function useConversationPendingAuth(conversationId, options) {
|
|
94
94
|
const arbi = chunkXIDDXD5Y_cjs.useArbi();
|
|
95
95
|
return reactQuery.useQuery({
|
|
96
|
-
queryKey: [...
|
|
96
|
+
queryKey: [...chunkAFGE55RQ_cjs.arbiQueryKeys.allConversations(), conversationId ?? "", "pending-auth"],
|
|
97
97
|
queryFn: () => arbi.conversations.pendingAuth(conversationId),
|
|
98
98
|
enabled: (options?.enabled ?? true) && !!conversationId && arbi.isLoggedIn,
|
|
99
99
|
retry: false
|
|
@@ -102,7 +102,7 @@ function useConversationPendingAuth(conversationId, options) {
|
|
|
102
102
|
function useConversationActivity(conversationId, options) {
|
|
103
103
|
const arbi = chunkXIDDXD5Y_cjs.useArbi();
|
|
104
104
|
return reactQuery.useQuery({
|
|
105
|
-
queryKey: [...
|
|
105
|
+
queryKey: [...chunkAFGE55RQ_cjs.arbiQueryKeys.allConversations(), conversationId ?? "", "activity"],
|
|
106
106
|
queryFn: () => arbi.conversations.activity(conversationId),
|
|
107
107
|
enabled: (options?.enabled ?? true) && !!conversationId && arbi.isLoggedIn,
|
|
108
108
|
refetchInterval: options?.live ? 2500 : false
|
|
@@ -111,7 +111,7 @@ function useConversationActivity(conversationId, options) {
|
|
|
111
111
|
function useWorkflows(options) {
|
|
112
112
|
const arbi = chunkXIDDXD5Y_cjs.useArbi();
|
|
113
113
|
return reactQuery.useQuery({
|
|
114
|
-
queryKey:
|
|
114
|
+
queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.workflows(),
|
|
115
115
|
queryFn: () => arbi.workflows.list(),
|
|
116
116
|
refetchInterval: options?.live ? 15e3 : false,
|
|
117
117
|
enabled: options?.enabled ?? arbi.isLoggedIn
|
|
@@ -122,7 +122,7 @@ function useCreateWorkflow() {
|
|
|
122
122
|
const qc = reactQuery.useQueryClient();
|
|
123
123
|
return reactQuery.useMutation({
|
|
124
124
|
mutationFn: (body) => arbi.workflows.create(body),
|
|
125
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
125
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.workflows() })
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
function useUpdateWorkflow() {
|
|
@@ -133,7 +133,7 @@ function useUpdateWorkflow() {
|
|
|
133
133
|
workflowId,
|
|
134
134
|
patch
|
|
135
135
|
}) => arbi.workflows.update(workflowId, patch),
|
|
136
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
136
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.workflows() })
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
139
|
function useDeleteWorkflow() {
|
|
@@ -141,7 +141,7 @@ function useDeleteWorkflow() {
|
|
|
141
141
|
const qc = reactQuery.useQueryClient();
|
|
142
142
|
return reactQuery.useMutation({
|
|
143
143
|
mutationFn: (workflowId) => arbi.workflows.delete(workflowId),
|
|
144
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
144
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.workflows() })
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
function useRunWorkflow() {
|
|
@@ -150,8 +150,8 @@ function useRunWorkflow() {
|
|
|
150
150
|
return reactQuery.useMutation({
|
|
151
151
|
mutationFn: (workflowId) => arbi.workflows.run(workflowId),
|
|
152
152
|
onSuccess: () => Promise.all([
|
|
153
|
-
qc.invalidateQueries({ queryKey:
|
|
154
|
-
qc.invalidateQueries({ queryKey:
|
|
153
|
+
qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.workflows() }),
|
|
154
|
+
qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.allConversations() })
|
|
155
155
|
])
|
|
156
156
|
});
|
|
157
157
|
}
|
|
@@ -160,13 +160,13 @@ function useCreateAgent() {
|
|
|
160
160
|
const qc = reactQuery.useQueryClient();
|
|
161
161
|
return reactQuery.useMutation({
|
|
162
162
|
mutationFn: (name) => arbi.agents.create(name),
|
|
163
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
163
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.agents() })
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
166
|
function useAgentConfig(agentExtId, options) {
|
|
167
167
|
const arbi = chunkXIDDXD5Y_cjs.useArbi();
|
|
168
168
|
return reactQuery.useQuery({
|
|
169
|
-
queryKey:
|
|
169
|
+
queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.agentConfig(agentExtId),
|
|
170
170
|
queryFn: async () => agentExtId ? await arbi.agents.getConfig(agentExtId) : await arbi.agentConfig.get("default"),
|
|
171
171
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
172
172
|
});
|
|
@@ -174,7 +174,7 @@ function useAgentConfig(agentExtId, options) {
|
|
|
174
174
|
function useAgentModels(options) {
|
|
175
175
|
const arbi = chunkXIDDXD5Y_cjs.useArbi();
|
|
176
176
|
return reactQuery.useQuery({
|
|
177
|
-
queryKey:
|
|
177
|
+
queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.models(),
|
|
178
178
|
queryFn: async () => (await arbi.agentConfig.getModels()).models.map((m) => m.model_name),
|
|
179
179
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
180
180
|
});
|
|
@@ -197,17 +197,17 @@ function useSaveAgentConfig() {
|
|
|
197
197
|
});
|
|
198
198
|
},
|
|
199
199
|
onSuccess: (_saved, { agentExtId }) => Promise.all([
|
|
200
|
-
qc.invalidateQueries({ queryKey:
|
|
201
|
-
qc.invalidateQueries({ queryKey:
|
|
200
|
+
qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.configs() }),
|
|
201
|
+
qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.agentConfig(agentExtId) }),
|
|
202
202
|
// The agent list shows the pinned persona/model, so it refreshes too.
|
|
203
|
-
qc.invalidateQueries({ queryKey:
|
|
203
|
+
qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.agents() })
|
|
204
204
|
])
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
207
|
function useAgentWorkspaces(agentExtId, options) {
|
|
208
208
|
const arbi = chunkXIDDXD5Y_cjs.useArbi();
|
|
209
209
|
return reactQuery.useQuery({
|
|
210
|
-
queryKey:
|
|
210
|
+
queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.agentWorkspaces(agentExtId ?? ""),
|
|
211
211
|
queryFn: () => arbi.agents.listWorkspaces(agentExtId),
|
|
212
212
|
enabled: (options?.enabled ?? true) && !!agentExtId && arbi.isLoggedIn
|
|
213
213
|
});
|
|
@@ -228,7 +228,7 @@ function useGrantAgentAccess() {
|
|
|
228
228
|
if (!agent?.email) throw new Error("The agent's address is unknown.");
|
|
229
229
|
return arbi.workspaces.grantAccess({ workspaceId, emails: [agent.email] });
|
|
230
230
|
},
|
|
231
|
-
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey:
|
|
231
|
+
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.agentWorkspaces(agentExtId) })
|
|
232
232
|
});
|
|
233
233
|
}
|
|
234
234
|
function useRevokeAgentAccess() {
|
|
@@ -247,13 +247,13 @@ function useRevokeAgentAccess() {
|
|
|
247
247
|
if (previous && previous !== workspaceId) await arbi.selectWorkspace(previous);
|
|
248
248
|
}
|
|
249
249
|
},
|
|
250
|
-
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey:
|
|
250
|
+
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.agentWorkspaces(agentExtId) })
|
|
251
251
|
});
|
|
252
252
|
}
|
|
253
253
|
function useSkills(options) {
|
|
254
254
|
const arbi = chunkXIDDXD5Y_cjs.useArbi();
|
|
255
255
|
return reactQuery.useQuery({
|
|
256
|
-
queryKey: [...
|
|
256
|
+
queryKey: [...chunkAFGE55RQ_cjs.arbiQueryKeys.skills(), options?.includeHidden ?? false],
|
|
257
257
|
queryFn: () => arbi.assistant.listSkills({ includeHidden: options?.includeHidden }),
|
|
258
258
|
refetchInterval: options?.live ? 5e3 : false,
|
|
259
259
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn,
|
|
@@ -284,7 +284,7 @@ function useUploadSkillFiles() {
|
|
|
284
284
|
}
|
|
285
285
|
return results;
|
|
286
286
|
},
|
|
287
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
287
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.skills() })
|
|
288
288
|
});
|
|
289
289
|
}
|
|
290
290
|
function useStartWorkQuery() {
|
|
@@ -311,7 +311,7 @@ function useStartWorkQuery() {
|
|
|
311
311
|
`The run ${response.id} started, but its thread is not available yet. Do not submit it again.`
|
|
312
312
|
);
|
|
313
313
|
},
|
|
314
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
314
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.allConversations() })
|
|
315
315
|
});
|
|
316
316
|
}
|
|
317
317
|
function useAgentSession(agentId, options) {
|
|
@@ -471,8 +471,8 @@ function useArbiChat(options = {}) {
|
|
|
471
471
|
const recoveryIntervalMs = streamRecovery?.intervalMs ?? 3e3;
|
|
472
472
|
const recoveryTimeoutMs = streamRecovery?.timeoutMs ?? 12e4;
|
|
473
473
|
const arbi = chunkXIDDXD5Y_cjs.useArbi();
|
|
474
|
-
const { data: docs = [], isLoading: isLoadingDocuments, refetch } =
|
|
475
|
-
const ordinaryHistory =
|
|
474
|
+
const { data: docs = [], isLoading: isLoadingDocuments, refetch } = chunkAFGE55RQ_cjs.useDocuments(workspaceId);
|
|
475
|
+
const ordinaryHistory = chunkAFGE55RQ_cjs.useConversations(workspaceId, { enabled: !agentId, live: true });
|
|
476
476
|
const agentHistory = useAgentChats(agentId);
|
|
477
477
|
const stored = React.useMemo(
|
|
478
478
|
() => agentId ? (agentHistory.data ?? []).filter((chat) => chat.workspace_ext_id === workspaceId).map((chat) => ({
|
|
@@ -487,7 +487,7 @@ function useArbiChat(options = {}) {
|
|
|
487
487
|
);
|
|
488
488
|
const isLoadingThreads = agentId ? agentHistory.isLoading : ordinaryHistory.isLoading;
|
|
489
489
|
const refetchConversations = agentId ? agentHistory.refetch : ordinaryHistory.refetch;
|
|
490
|
-
const query =
|
|
490
|
+
const query = chunkAFGE55RQ_cjs.useAssistantQuery();
|
|
491
491
|
const { mutateAsync } = query;
|
|
492
492
|
const [stagedFiles, setStagedFiles] = React.useState([]);
|
|
493
493
|
const [threads, setThreads] = React.useState(() => [emptyThread()]);
|
|
@@ -547,7 +547,7 @@ function useArbiChat(options = {}) {
|
|
|
547
547
|
(conversation) => conversation.external_id === active.conversationId && conversation.status === "generating"
|
|
548
548
|
) || active.messages.some((message) => message.status === "streaming");
|
|
549
549
|
const needsLoad = !!active.conversationId && !active.isLoaded;
|
|
550
|
-
const loaded =
|
|
550
|
+
const loaded = chunkAFGE55RQ_cjs.useConversationThreads(workspaceId, active.conversationId ?? void 0, {
|
|
551
551
|
enabled: needsLoad || liveHistory && !isRunning && !isPostingComment,
|
|
552
552
|
live: liveHistory
|
|
553
553
|
});
|
|
@@ -1326,14 +1326,14 @@ function useArbiDocumentSync(workspaceId) {
|
|
|
1326
1326
|
if (!workspaceId) return;
|
|
1327
1327
|
if (client.isMessageType(msg, "batch_complete")) {
|
|
1328
1328
|
if (msg.workspace_ext_id !== workspaceId) return;
|
|
1329
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1330
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1329
|
+
void queryClient.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
1330
|
+
void queryClient.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.tags(workspaceId) });
|
|
1331
1331
|
return;
|
|
1332
1332
|
}
|
|
1333
1333
|
if (client.isMessageType(msg, "task_update")) {
|
|
1334
1334
|
if (msg.workspace_ext_id !== workspaceId) return;
|
|
1335
1335
|
if (TERMINAL_STATUSES.has(msg.status)) {
|
|
1336
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1336
|
+
void queryClient.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
1337
1337
|
}
|
|
1338
1338
|
}
|
|
1339
1339
|
});
|
|
@@ -1462,7 +1462,7 @@ function useShellWorkspaces(options) {
|
|
|
1462
1462
|
}
|
|
1463
1463
|
function useArbiShellWorkspaces(options = {}) {
|
|
1464
1464
|
const arbi = chunkXIDDXD5Y_cjs.useArbi();
|
|
1465
|
-
const query =
|
|
1465
|
+
const query = chunkAFGE55RQ_cjs.useWorkspaces();
|
|
1466
1466
|
const { select, ...rest } = options;
|
|
1467
1467
|
const defaultSelect = React.useCallback(
|
|
1468
1468
|
(workspace) => arbi.selectWorkspace(workspace.id),
|
|
@@ -1478,8 +1478,8 @@ function useArbiShellWorkspaces(options = {}) {
|
|
|
1478
1478
|
}
|
|
1479
1479
|
function invalidateTagData(qc, workspaceId) {
|
|
1480
1480
|
return Promise.all([
|
|
1481
|
-
qc.invalidateQueries({ queryKey:
|
|
1482
|
-
qc.invalidateQueries({ queryKey:
|
|
1481
|
+
qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.tags(workspaceId) }),
|
|
1482
|
+
qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.facts(workspaceId) })
|
|
1483
1483
|
]);
|
|
1484
1484
|
}
|
|
1485
1485
|
function useInvalidateTagData() {
|
|
@@ -1494,7 +1494,7 @@ function useTagKindSchema(kind, options) {
|
|
|
1494
1494
|
const arbi = chunkXIDDXD5Y_cjs.useArbi();
|
|
1495
1495
|
const workspaceId = arbi.getWorkspaceId() ?? "";
|
|
1496
1496
|
return reactQuery.useQuery({
|
|
1497
|
-
queryKey:
|
|
1497
|
+
queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.tagKind(workspaceId, kind ?? ""),
|
|
1498
1498
|
queryFn: () => arbi.tagKinds.get(kind),
|
|
1499
1499
|
enabled: (options?.enabled ?? true) && !!kind && !!workspaceId && arbi.hasWorkspace
|
|
1500
1500
|
});
|
|
@@ -1510,7 +1510,7 @@ function useUpdateTagKindSchema() {
|
|
|
1510
1510
|
onSuccess: (schema) => {
|
|
1511
1511
|
const workspaceId = arbi.getWorkspaceId();
|
|
1512
1512
|
if (!workspaceId) return;
|
|
1513
|
-
qc.setQueryData(
|
|
1513
|
+
qc.setQueryData(chunkAFGE55RQ_cjs.arbiQueryKeys.tagKind(workspaceId, schema.kind), schema);
|
|
1514
1514
|
return invalidateTagData(qc, workspaceId);
|
|
1515
1515
|
}
|
|
1516
1516
|
});
|
|
@@ -1529,7 +1529,7 @@ function useSetTagValues() {
|
|
|
1529
1529
|
function useFilteredProjects(filters, options) {
|
|
1530
1530
|
const arbi = chunkXIDDXD5Y_cjs.useArbi();
|
|
1531
1531
|
return reactQuery.useQuery({
|
|
1532
|
-
queryKey:
|
|
1532
|
+
queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.projectsFiltered(filters.stage, filters.leadUser),
|
|
1533
1533
|
queryFn: () => arbi.projects.list(filters),
|
|
1534
1534
|
enabled: options?.enabled ?? arbi.isLoggedIn
|
|
1535
1535
|
});
|
|
@@ -1542,14 +1542,14 @@ function useUpdateProjectFields() {
|
|
|
1542
1542
|
projectExtId,
|
|
1543
1543
|
patch
|
|
1544
1544
|
}) => arbi.projects.update(projectExtId, patch),
|
|
1545
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
1545
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.projects() })
|
|
1546
1546
|
});
|
|
1547
1547
|
}
|
|
1548
1548
|
function useProjectEvents(projectExtId, options) {
|
|
1549
1549
|
const arbi = chunkXIDDXD5Y_cjs.useArbi();
|
|
1550
1550
|
return reactQuery.useQuery({
|
|
1551
1551
|
queryKey: [
|
|
1552
|
-
...
|
|
1552
|
+
...chunkAFGE55RQ_cjs.arbiQueryKeys.projectEvents(projectExtId ?? ""),
|
|
1553
1553
|
options?.kind ?? "all",
|
|
1554
1554
|
options?.limit ?? "default"
|
|
1555
1555
|
],
|
|
@@ -1560,7 +1560,7 @@ function useProjectEvents(projectExtId, options) {
|
|
|
1560
1560
|
function useConversationUsage(conversationId, options) {
|
|
1561
1561
|
const arbi = chunkXIDDXD5Y_cjs.useArbi();
|
|
1562
1562
|
return reactQuery.useQuery({
|
|
1563
|
-
queryKey:
|
|
1563
|
+
queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.conversationUsage(conversationId ?? ""),
|
|
1564
1564
|
queryFn: () => arbi.conversations.usage(conversationId),
|
|
1565
1565
|
enabled: (options?.enabled ?? true) && !!conversationId && arbi.isLoggedIn,
|
|
1566
1566
|
refetchInterval: options?.live ? 1e4 : false
|
|
@@ -1569,7 +1569,7 @@ function useConversationUsage(conversationId, options) {
|
|
|
1569
1569
|
function useProjectConversationUsage(projectExtId, monthsBack = 0, options) {
|
|
1570
1570
|
const arbi = chunkXIDDXD5Y_cjs.useArbi();
|
|
1571
1571
|
return reactQuery.useQuery({
|
|
1572
|
-
queryKey:
|
|
1572
|
+
queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.projectConversationUsage(projectExtId ?? "", monthsBack),
|
|
1573
1573
|
queryFn: () => arbi.projects.usageByConversation(projectExtId, monthsBack),
|
|
1574
1574
|
enabled: (options?.enabled ?? true) && !!projectExtId && arbi.isLoggedIn
|
|
1575
1575
|
});
|
|
@@ -1577,7 +1577,7 @@ function useProjectConversationUsage(projectExtId, monthsBack = 0, options) {
|
|
|
1577
1577
|
function useContacts(options) {
|
|
1578
1578
|
const arbi = chunkXIDDXD5Y_cjs.useArbi();
|
|
1579
1579
|
return reactQuery.useQuery({
|
|
1580
|
-
queryKey:
|
|
1580
|
+
queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.contacts(),
|
|
1581
1581
|
queryFn: () => arbi.contacts.list(),
|
|
1582
1582
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
1583
1583
|
});
|
|
@@ -1585,27 +1585,45 @@ function useContacts(options) {
|
|
|
1585
1585
|
function usePendingContacts(options) {
|
|
1586
1586
|
const contacts = useContacts(options);
|
|
1587
1587
|
const pending = React.useMemo(
|
|
1588
|
-
() => (contacts.data ?? []).filter(
|
|
1589
|
-
(c) => c.status === "invitation_pending" || c.status === "invitation_expired"
|
|
1590
|
-
),
|
|
1588
|
+
() => (contacts.data ?? []).filter((c) => c.status === "invited" || c.status === "expired"),
|
|
1591
1589
|
[contacts.data]
|
|
1592
1590
|
);
|
|
1593
1591
|
return { ...contacts, pending };
|
|
1594
1592
|
}
|
|
1595
|
-
function
|
|
1596
|
-
const arbi = chunkXIDDXD5Y_cjs.useArbi();
|
|
1593
|
+
function useInvalidateContacts() {
|
|
1597
1594
|
const qc = reactQuery.useQueryClient();
|
|
1595
|
+
return () => qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.contacts() });
|
|
1596
|
+
}
|
|
1597
|
+
function useInviteContacts() {
|
|
1598
|
+
const arbi = chunkXIDDXD5Y_cjs.useArbi();
|
|
1599
|
+
const invalidate = useInvalidateContacts();
|
|
1598
1600
|
return reactQuery.useMutation({
|
|
1599
|
-
mutationFn: (emails) => arbi.contacts.
|
|
1600
|
-
onSuccess: () =>
|
|
1601
|
+
mutationFn: (emails) => arbi.contacts.invite(emails),
|
|
1602
|
+
onSuccess: () => invalidate()
|
|
1601
1603
|
});
|
|
1602
1604
|
}
|
|
1603
|
-
function
|
|
1605
|
+
function useCreateContact() {
|
|
1604
1606
|
const arbi = chunkXIDDXD5Y_cjs.useArbi();
|
|
1605
|
-
const
|
|
1607
|
+
const invalidate = useInvalidateContacts();
|
|
1606
1608
|
return reactQuery.useMutation({
|
|
1607
|
-
mutationFn: (
|
|
1608
|
-
onSuccess: () =>
|
|
1609
|
+
mutationFn: (body) => arbi.contacts.create(body),
|
|
1610
|
+
onSuccess: () => invalidate()
|
|
1611
|
+
});
|
|
1612
|
+
}
|
|
1613
|
+
function useUpdateContact() {
|
|
1614
|
+
const arbi = chunkXIDDXD5Y_cjs.useArbi();
|
|
1615
|
+
const invalidate = useInvalidateContacts();
|
|
1616
|
+
return reactQuery.useMutation({
|
|
1617
|
+
mutationFn: ({ id, card }) => arbi.contacts.update(id, card),
|
|
1618
|
+
onSuccess: () => invalidate()
|
|
1619
|
+
});
|
|
1620
|
+
}
|
|
1621
|
+
function useDeleteContact() {
|
|
1622
|
+
const arbi = chunkXIDDXD5Y_cjs.useArbi();
|
|
1623
|
+
const invalidate = useInvalidateContacts();
|
|
1624
|
+
return reactQuery.useMutation({
|
|
1625
|
+
mutationFn: (contactId) => arbi.contacts.delete(contactId),
|
|
1626
|
+
onSuccess: () => invalidate()
|
|
1609
1627
|
});
|
|
1610
1628
|
}
|
|
1611
1629
|
function toProfileView(profile) {
|
|
@@ -1617,7 +1635,7 @@ function toProfileView(profile) {
|
|
|
1617
1635
|
function useProfile(options) {
|
|
1618
1636
|
const arbi = chunkXIDDXD5Y_cjs.useArbi();
|
|
1619
1637
|
return reactQuery.useQuery({
|
|
1620
|
-
queryKey:
|
|
1638
|
+
queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.profile(),
|
|
1621
1639
|
queryFn: () => {
|
|
1622
1640
|
const profile = arbi.user.profile();
|
|
1623
1641
|
return profile ? toProfileView(profile) : null;
|
|
@@ -1640,9 +1658,9 @@ function useUpdateProfile() {
|
|
|
1640
1658
|
return profile ? toProfileView(profile) : null;
|
|
1641
1659
|
},
|
|
1642
1660
|
onSuccess: (profile) => {
|
|
1643
|
-
qc.setQueryData(
|
|
1644
|
-
void qc.invalidateQueries({ queryKey:
|
|
1645
|
-
return qc.invalidateQueries({ queryKey:
|
|
1661
|
+
qc.setQueryData(chunkAFGE55RQ_cjs.arbiQueryKeys.profile(), profile);
|
|
1662
|
+
void qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.identity() });
|
|
1663
|
+
return qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.workspaces() });
|
|
1646
1664
|
}
|
|
1647
1665
|
});
|
|
1648
1666
|
}
|
|
@@ -1727,7 +1745,7 @@ function useConfirmEmailChange() {
|
|
|
1727
1745
|
mutationFn: ({ newEmail, code }) => arbi.account.confirmEmailChange(newEmail, code),
|
|
1728
1746
|
onSuccess: () => {
|
|
1729
1747
|
const profile = arbi.user.profile();
|
|
1730
|
-
qc.setQueryData(
|
|
1748
|
+
qc.setQueryData(chunkAFGE55RQ_cjs.arbiQueryKeys.profile(), profile ? toProfileView(profile) : null);
|
|
1731
1749
|
}
|
|
1732
1750
|
});
|
|
1733
1751
|
}
|
|
@@ -1896,7 +1914,7 @@ function toNotificationPreferences(stored, keys) {
|
|
|
1896
1914
|
function useUserSettings(options) {
|
|
1897
1915
|
const arbi = chunkXIDDXD5Y_cjs.useArbi();
|
|
1898
1916
|
return reactQuery.useQuery({
|
|
1899
|
-
queryKey:
|
|
1917
|
+
queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.userSettings(),
|
|
1900
1918
|
queryFn: () => arbi.settings.get(),
|
|
1901
1919
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
1902
1920
|
});
|
|
@@ -1909,18 +1927,18 @@ function useNotificationPreferences(keys, options) {
|
|
|
1909
1927
|
const save = reactQuery.useMutation({
|
|
1910
1928
|
mutationFn: (patch) => arbi.settings.update({ email_notifications: patch }),
|
|
1911
1929
|
onMutate: async (patch) => {
|
|
1912
|
-
await qc.cancelQueries({ queryKey:
|
|
1913
|
-
const previous = qc.getQueryData(
|
|
1930
|
+
await qc.cancelQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.userSettings() });
|
|
1931
|
+
const previous = qc.getQueryData(chunkAFGE55RQ_cjs.arbiQueryKeys.userSettings());
|
|
1914
1932
|
qc.setQueryData(
|
|
1915
|
-
|
|
1933
|
+
chunkAFGE55RQ_cjs.arbiQueryKeys.userSettings(),
|
|
1916
1934
|
(old) => old ? { ...old, email_notifications: { ...old.email_notifications, ...patch } } : old
|
|
1917
1935
|
);
|
|
1918
1936
|
return { previous };
|
|
1919
1937
|
},
|
|
1920
1938
|
onError: (_err, _patch, context) => {
|
|
1921
|
-
qc.setQueryData(
|
|
1939
|
+
qc.setQueryData(chunkAFGE55RQ_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
1922
1940
|
},
|
|
1923
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
1941
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.userSettings() })
|
|
1924
1942
|
});
|
|
1925
1943
|
const model = React.useMemo(() => toNotificationPreferences(stored, keys), [stored, keys]);
|
|
1926
1944
|
const setAll = React.useCallback(
|
|
@@ -1947,18 +1965,18 @@ function useRelevanceSave() {
|
|
|
1947
1965
|
return reactQuery.useMutation({
|
|
1948
1966
|
mutationFn: (patch) => arbi.settings.update(patch),
|
|
1949
1967
|
onMutate: async (patch) => {
|
|
1950
|
-
await qc.cancelQueries({ queryKey:
|
|
1951
|
-
const previous = qc.getQueryData(
|
|
1968
|
+
await qc.cancelQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.userSettings() });
|
|
1969
|
+
const previous = qc.getQueryData(chunkAFGE55RQ_cjs.arbiQueryKeys.userSettings());
|
|
1952
1970
|
qc.setQueryData(
|
|
1953
|
-
|
|
1971
|
+
chunkAFGE55RQ_cjs.arbiQueryKeys.userSettings(),
|
|
1954
1972
|
(old) => old ? { ...old, ...patch } : old
|
|
1955
1973
|
);
|
|
1956
1974
|
return { previous };
|
|
1957
1975
|
},
|
|
1958
1976
|
onError: (_err, _patch, context) => {
|
|
1959
|
-
qc.setQueryData(
|
|
1977
|
+
qc.setQueryData(chunkAFGE55RQ_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
1960
1978
|
},
|
|
1961
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
1979
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.userSettings() })
|
|
1962
1980
|
});
|
|
1963
1981
|
}
|
|
1964
1982
|
function useWorkspaceNotificationLevel(workspaceId, options) {
|
|
@@ -1969,7 +1987,7 @@ function useWorkspaceNotificationLevel(workspaceId, options) {
|
|
|
1969
1987
|
const setLevel = React.useCallback(
|
|
1970
1988
|
(next) => {
|
|
1971
1989
|
if (!workspaceId) return;
|
|
1972
|
-
const current = qc.getQueryData(
|
|
1990
|
+
const current = qc.getQueryData(chunkAFGE55RQ_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
|
|
1973
1991
|
save.mutate(browser.settings.workspaceLevelPatch(current, workspaceId, next));
|
|
1974
1992
|
},
|
|
1975
1993
|
[qc, save, settings.data, workspaceId]
|
|
@@ -1990,7 +2008,7 @@ function useFollowThread(conversationId, options) {
|
|
|
1990
2008
|
const setFollowing = React.useCallback(
|
|
1991
2009
|
(on) => {
|
|
1992
2010
|
if (!conversationId) return;
|
|
1993
|
-
const current = qc.getQueryData(
|
|
2011
|
+
const current = qc.getQueryData(chunkAFGE55RQ_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
|
|
1994
2012
|
save.mutate({
|
|
1995
2013
|
followed_threads: browser.settings.withMembership(current?.followed_threads, conversationId, on)
|
|
1996
2014
|
});
|
|
@@ -2010,7 +2028,7 @@ function useTerminateSession() {
|
|
|
2010
2028
|
const qc = reactQuery.useQueryClient();
|
|
2011
2029
|
return reactQuery.useMutation({
|
|
2012
2030
|
mutationFn: (sessionId) => arbi.sessions.terminate(sessionId),
|
|
2013
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
2031
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.sessions() })
|
|
2014
2032
|
});
|
|
2015
2033
|
}
|
|
2016
2034
|
function useLogoutAllSessions() {
|
|
@@ -2153,7 +2171,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
2153
2171
|
const apiRef = React.useRef(api);
|
|
2154
2172
|
apiRef.current = api;
|
|
2155
2173
|
const query = reactQuery.useQuery({
|
|
2156
|
-
queryKey:
|
|
2174
|
+
queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.identity(),
|
|
2157
2175
|
queryFn: () => apiRef.current.status(),
|
|
2158
2176
|
enabled,
|
|
2159
2177
|
staleTime: 6e4
|
|
@@ -2171,7 +2189,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
2171
2189
|
const lastVerified = React.useRef(void 0);
|
|
2172
2190
|
const apply = React.useCallback(
|
|
2173
2191
|
(next) => {
|
|
2174
|
-
qc.setQueryData(
|
|
2192
|
+
qc.setQueryData(chunkAFGE55RQ_cjs.arbiQueryKeys.identity(), next);
|
|
2175
2193
|
if (lastVerified.current !== void 0 && lastVerified.current !== next.verified) {
|
|
2176
2194
|
onVerifiedChange?.(next.verified);
|
|
2177
2195
|
}
|
|
@@ -2376,12 +2394,12 @@ function useIdentityVerification(options = {}) {
|
|
|
2376
2394
|
return useIdentityVerificationFlow(api, {
|
|
2377
2395
|
enabled: arbi.isLoggedIn,
|
|
2378
2396
|
onVerifiedChange: (verified) => {
|
|
2379
|
-
void qc.invalidateQueries({ queryKey:
|
|
2397
|
+
void qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.profile() });
|
|
2380
2398
|
onVerifiedChange?.(verified);
|
|
2381
2399
|
},
|
|
2382
2400
|
onNameAccepted: (name) => {
|
|
2383
|
-
void qc.invalidateQueries({ queryKey:
|
|
2384
|
-
void qc.invalidateQueries({ queryKey:
|
|
2401
|
+
void qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.profile() });
|
|
2402
|
+
void qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.workspaces() });
|
|
2385
2403
|
onNameAccepted?.(name);
|
|
2386
2404
|
}
|
|
2387
2405
|
});
|
|
@@ -2792,7 +2810,7 @@ function useMailDraftReplaced(draftId, onReplaced) {
|
|
|
2792
2810
|
}, [draftId]);
|
|
2793
2811
|
}
|
|
2794
2812
|
function useWorkspaceDocs(workspaceId) {
|
|
2795
|
-
const { data: docs = [], isLoading, isError } =
|
|
2813
|
+
const { data: docs = [], isLoading, isError } = chunkAFGE55RQ_cjs.useDocuments(workspaceId);
|
|
2796
2814
|
const docIds = React.useMemo(
|
|
2797
2815
|
() => docs.map((d) => d.external_id).filter((id) => !!id),
|
|
2798
2816
|
[docs]
|
|
@@ -2800,7 +2818,7 @@ function useWorkspaceDocs(workspaceId) {
|
|
|
2800
2818
|
return { wsId: workspaceId, docs, docIds, isLoading, isError, ready: docIds.length > 0 };
|
|
2801
2819
|
}
|
|
2802
2820
|
function useAiTask() {
|
|
2803
|
-
const mutation =
|
|
2821
|
+
const mutation = chunkAFGE55RQ_cjs.useAssistantQuery();
|
|
2804
2822
|
const [status, setStatus] = React.useState("idle");
|
|
2805
2823
|
const [text, setText] = React.useState("");
|
|
2806
2824
|
const [stepCount, setStepCount] = React.useState(0);
|
|
@@ -3014,7 +3032,7 @@ function AiAnswer({
|
|
|
3014
3032
|
}
|
|
3015
3033
|
),
|
|
3016
3034
|
hasText && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3017
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3035
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkXD4P4KRH_cjs.AiMarkdown, { isStreaming: running, children: text }),
|
|
3018
3036
|
!running && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between border-t border-border pt-2.5", children: [
|
|
3019
3037
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "inline-flex items-center gap-1.5 text-xs text-muted-foreground", children: [
|
|
3020
3038
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ShieldCheck, { className: "size-3.5 text-ai-accent" }),
|
|
@@ -3059,7 +3077,7 @@ function AiActionCard({
|
|
|
3059
3077
|
const p = typeof prompt === "function" ? prompt() : prompt;
|
|
3060
3078
|
void task.run(p, docIds);
|
|
3061
3079
|
};
|
|
3062
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3080
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkXD4P4KRH_cjs.Card, { variant: "elevated", className: "rounded-xl p-5", "data-testid": testId, children: [
|
|
3063
3081
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-4", children: [
|
|
3064
3082
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
3065
3083
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-9 shrink-0 items-center justify-center rounded-lg bg-ai-accent-soft text-ai-accent", children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "size-4" }) }),
|
|
@@ -3201,11 +3219,11 @@ function ArtifactCanvas({
|
|
|
3201
3219
|
children: active.title
|
|
3202
3220
|
}
|
|
3203
3221
|
),
|
|
3204
|
-
isRedline && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3222
|
+
isRedline && /* @__PURE__ */ jsxRuntime.jsxs(chunkXD4P4KRH_cjs.Badge, { variant: "accent", className: "gap-1", children: [
|
|
3205
3223
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.GitCompareArrows, { className: "size-3" }),
|
|
3206
3224
|
" Redline"
|
|
3207
3225
|
] }),
|
|
3208
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3226
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkXD4P4KRH_cjs.Badge, { variant: "secondary", children: [
|
|
3209
3227
|
"v",
|
|
3210
3228
|
active.version
|
|
3211
3229
|
] }),
|
|
@@ -3261,7 +3279,7 @@ function ArtifactCanvas({
|
|
|
3261
3279
|
animate: { opacity: 1, y: 0 },
|
|
3262
3280
|
transition: { duration: 0.2 },
|
|
3263
3281
|
className: "mx-auto max-w-2xl rounded-lg bg-card p-8 shadow-sm ring-1 ring-border",
|
|
3264
|
-
children: active.mode === "html" ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm", dangerouslySetInnerHTML: { __html: active.content } }) : active.mode === "text" ? /* @__PURE__ */ jsxRuntime.jsx("pre", { className: "whitespace-pre-wrap font-mono text-xs text-foreground", children: active.content }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
3282
|
+
children: active.mode === "html" ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm", dangerouslySetInnerHTML: { __html: active.content } }) : active.mode === "text" ? /* @__PURE__ */ jsxRuntime.jsx("pre", { className: "whitespace-pre-wrap font-mono text-xs text-foreground", children: active.content }) : /* @__PURE__ */ jsxRuntime.jsx(chunkXD4P4KRH_cjs.AiMarkdown, { children: active.content })
|
|
3265
3283
|
},
|
|
3266
3284
|
active.doc_ext_id
|
|
3267
3285
|
) }) })
|
|
@@ -3305,7 +3323,7 @@ function MessageArtifactCard({
|
|
|
3305
3323
|
const labels = labelsFor(mode);
|
|
3306
3324
|
const Icon = labels.Icon;
|
|
3307
3325
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3308
|
-
|
|
3326
|
+
chunkXD4P4KRH_cjs.Card,
|
|
3309
3327
|
{
|
|
3310
3328
|
variant: "outline",
|
|
3311
3329
|
className: "mt-3 flex items-center gap-3 px-3 py-2.5",
|
|
@@ -3381,7 +3399,7 @@ function DocSearch({
|
|
|
3381
3399
|
status === "done" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", "data-testid": "doc-search-results", children: [
|
|
3382
3400
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: results.length === 0 ? `No passages matched \u201C${query}\u201D.` : `${results.length} passage${results.length === 1 ? "" : "s"} for \u201C${query}\u201D` }),
|
|
3383
3401
|
results.slice(0, 8).map((r, i) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3384
|
-
|
|
3402
|
+
chunkXD4P4KRH_cjs.Card,
|
|
3385
3403
|
{
|
|
3386
3404
|
variant: "elevated",
|
|
3387
3405
|
className: chunkS6A6FSG7_cjs.cn(
|
|
@@ -3394,7 +3412,7 @@ function DocSearch({
|
|
|
3394
3412
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-1 flex items-center gap-2", children: [
|
|
3395
3413
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileText, { className: "size-3.5 text-ai-accent" }),
|
|
3396
3414
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate text-xs font-medium text-foreground", children: r.docTitle ?? "Document" }),
|
|
3397
|
-
r.page != null && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3415
|
+
r.page != null && /* @__PURE__ */ jsxRuntime.jsxs(chunkXD4P4KRH_cjs.Badge, { variant: "secondary", children: [
|
|
3398
3416
|
"p.",
|
|
3399
3417
|
r.page
|
|
3400
3418
|
] }),
|
|
@@ -3420,8 +3438,8 @@ function DocumentReview({
|
|
|
3420
3438
|
onClose,
|
|
3421
3439
|
className
|
|
3422
3440
|
}) {
|
|
3423
|
-
const parsedQuery =
|
|
3424
|
-
const tagsQuery =
|
|
3441
|
+
const parsedQuery = chunkAFGE55RQ_cjs.useParsedDocument(docId, stage);
|
|
3442
|
+
const tagsQuery = chunkAFGE55RQ_cjs.useTags(workspaceId);
|
|
3425
3443
|
const tagNameById = React__default.default.useMemo(() => {
|
|
3426
3444
|
const map = /* @__PURE__ */ new Map();
|
|
3427
3445
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -3488,7 +3506,7 @@ function DocumentReview({
|
|
|
3488
3506
|
findings.length ? ` \xB7 ${findings.length} findings` : ""
|
|
3489
3507
|
] })
|
|
3490
3508
|
] }),
|
|
3491
|
-
doc?.status ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3509
|
+
doc?.status ? /* @__PURE__ */ jsxRuntime.jsx(chunkXD4P4KRH_cjs.Badge, { variant: "secondary", children: doc.status }) : null,
|
|
3492
3510
|
onClose ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3493
3511
|
"button",
|
|
3494
3512
|
{
|
|
@@ -3525,7 +3543,7 @@ function DocumentReview({
|
|
|
3525
3543
|
className: "w-full cursor-pointer rounded-md border p-2 text-left text-xs transition hover:border-ring hover:bg-muted/50 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
3526
3544
|
children: [
|
|
3527
3545
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3528
|
-
|
|
3546
|
+
chunkXD4P4KRH_cjs.TagEntity,
|
|
3529
3547
|
{
|
|
3530
3548
|
size: "sm",
|
|
3531
3549
|
tag: {
|
|
@@ -3570,7 +3588,7 @@ function DocumentReview({
|
|
|
3570
3588
|
),
|
|
3571
3589
|
children: [
|
|
3572
3590
|
highlighted ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-1", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3573
|
-
|
|
3591
|
+
chunkXD4P4KRH_cjs.TagEntity,
|
|
3574
3592
|
{
|
|
3575
3593
|
size: "sm",
|
|
3576
3594
|
tag: {
|
|
@@ -3619,7 +3637,7 @@ function ResultRow({
|
|
|
3619
3637
|
onSelect
|
|
3620
3638
|
}) {
|
|
3621
3639
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3622
|
-
|
|
3640
|
+
chunkXD4P4KRH_cjs.PassageCard,
|
|
3623
3641
|
{
|
|
3624
3642
|
onClick: onSelect,
|
|
3625
3643
|
active: isActive,
|
|
@@ -3628,7 +3646,7 @@ function ResultRow({
|
|
|
3628
3646
|
header: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3629
3647
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileText, { className: "size-3.5 shrink-0 text-ai-accent" }),
|
|
3630
3648
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate text-xs font-medium text-foreground", children: result.docTitle ?? "Document" }),
|
|
3631
|
-
result.page != null && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3649
|
+
result.page != null && /* @__PURE__ */ jsxRuntime.jsxs(chunkXD4P4KRH_cjs.Badge, { variant: "secondary", children: [
|
|
3632
3650
|
"p.",
|
|
3633
3651
|
result.page
|
|
3634
3652
|
] })
|
|
@@ -3652,7 +3670,7 @@ function SemanticSearch({
|
|
|
3652
3670
|
const { results, status, error, search, isRunning, query } = useSemanticSearch(docIds);
|
|
3653
3671
|
const [value, setValue] = React.useState("");
|
|
3654
3672
|
const [selected, setSelected] = React.useState(null);
|
|
3655
|
-
const { data: docs = [] } =
|
|
3673
|
+
const { data: docs = [] } = chunkAFGE55RQ_cjs.useDocuments(workspaceId, { enabled: !!workspaceId });
|
|
3656
3674
|
const docMap = React.useMemo(() => {
|
|
3657
3675
|
const map = /* @__PURE__ */ new Map();
|
|
3658
3676
|
for (const d of docs) if (d.external_id) map.set(d.external_id, d);
|
|
@@ -3797,7 +3815,7 @@ Question: ${question}`,
|
|
|
3797
3815
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 space-y-3", "data-testid": "doc-qa", children: [
|
|
3798
3816
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
3799
3817
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3800
|
-
|
|
3818
|
+
chunkXD4P4KRH_cjs.Input,
|
|
3801
3819
|
{
|
|
3802
3820
|
value: q,
|
|
3803
3821
|
onChange: (e) => setQ(e.target.value),
|
|
@@ -3999,7 +4017,7 @@ var CitationPopover = ({
|
|
|
3999
4017
|
return () => {
|
|
4000
4018
|
if (!restoreFocusRef.current) return;
|
|
4001
4019
|
restoreFocusRef.current = false;
|
|
4002
|
-
if (triggerRef.current)
|
|
4020
|
+
if (triggerRef.current) chunkXD4P4KRH_cjs.returnFocusToMark(triggerRef.current);
|
|
4003
4021
|
};
|
|
4004
4022
|
}, [open]);
|
|
4005
4023
|
React.useEffect(() => {
|
|
@@ -4200,7 +4218,7 @@ var CitationLink = ({
|
|
|
4200
4218
|
triggerRef,
|
|
4201
4219
|
children
|
|
4202
4220
|
}) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4203
|
-
|
|
4221
|
+
chunkXD4P4KRH_cjs.MarkMenu,
|
|
4204
4222
|
{
|
|
4205
4223
|
triggerRef,
|
|
4206
4224
|
items,
|
|
@@ -4211,8 +4229,11 @@ var CitationLink = ({
|
|
|
4211
4229
|
"data-mark-kind": "citation",
|
|
4212
4230
|
className: chunkS6A6FSG7_cjs.cn(
|
|
4213
4231
|
"cited-text relative rounded-sm px-0.5 transition-colors",
|
|
4214
|
-
// 44px touch hit area without changing the text layout.
|
|
4215
|
-
|
|
4232
|
+
// 44px touch hit area without changing the text layout. `touch-hit` grows only up to
|
|
4233
|
+
// 44px (never past the mark's own width), so it doesn't reach over the neighbouring
|
|
4234
|
+
// citation: a fixed inset let citation 2's area cover citation 1, and a tap on [1]
|
|
4235
|
+
// opened [2].
|
|
4236
|
+
"touch-hit",
|
|
4216
4237
|
isStreaming ? "cursor-default" : "cursor-pointer",
|
|
4217
4238
|
isActive ? "bg-ai-soft text-foreground" : "bg-ai-soft/30 hover:bg-ai-soft/70"
|
|
4218
4239
|
),
|
|
@@ -4238,8 +4259,8 @@ var FileIcon = ({ size = 16, className = "" }) => {
|
|
|
4238
4259
|
"path",
|
|
4239
4260
|
{
|
|
4240
4261
|
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z",
|
|
4241
|
-
fill:
|
|
4242
|
-
stroke:
|
|
4262
|
+
fill: chunkXD4P4KRH_cjs.FILE_TYPE_COLORS.generic,
|
|
4263
|
+
stroke: chunkXD4P4KRH_cjs.FILE_TYPE_COLORS.generic,
|
|
4243
4264
|
strokeWidth: "1",
|
|
4244
4265
|
strokeLinecap: "round",
|
|
4245
4266
|
strokeLinejoin: "round"
|
|
@@ -4250,7 +4271,7 @@ var FileIcon = ({ size = 16, className = "" }) => {
|
|
|
4250
4271
|
{
|
|
4251
4272
|
d: "M14 2v6h6",
|
|
4252
4273
|
fill: "none",
|
|
4253
|
-
stroke:
|
|
4274
|
+
stroke: chunkXD4P4KRH_cjs.FILE_TYPE_COLORS.white,
|
|
4254
4275
|
strokeWidth: "1",
|
|
4255
4276
|
strokeLinecap: "round",
|
|
4256
4277
|
strokeLinejoin: "round"
|
|
@@ -4606,12 +4627,10 @@ var ArbiBotIcon = ({ size = 24, className = "" }) => {
|
|
|
4606
4627
|
);
|
|
4607
4628
|
};
|
|
4608
4629
|
function getNotificationTypeMeta(type) {
|
|
4609
|
-
const WorkspaceIcon =
|
|
4630
|
+
const WorkspaceIcon = chunkXD4P4KRH_cjs.getEntityIcon("WORKSPACE");
|
|
4610
4631
|
switch (type) {
|
|
4611
4632
|
case "agent_input_requested":
|
|
4612
4633
|
return { Icon: lucideReact.MessageCircleMore, iconClassName: "text-primary", label: "Input needed" };
|
|
4613
|
-
case "user_message":
|
|
4614
|
-
return { Icon: lucideReact.MessageCircleMore, iconClassName: "text-primary", label: "Message" };
|
|
4615
4634
|
case "workspaceuser_added_owner":
|
|
4616
4635
|
case "workspaceuser_added_collaborator":
|
|
4617
4636
|
case "workspaceuser_added_guest":
|
|
@@ -4736,7 +4755,7 @@ function describeActivity(content) {
|
|
|
4736
4755
|
}
|
|
4737
4756
|
default:
|
|
4738
4757
|
return {
|
|
4739
|
-
Icon: parsed.workspace_ext_id ?
|
|
4758
|
+
Icon: parsed.workspace_ext_id ? chunkXD4P4KRH_cjs.getEntityIcon("WORKSPACE") : lucideReact.Activity,
|
|
4740
4759
|
iconClassName: "text-muted-foreground",
|
|
4741
4760
|
title: humaniseEvent(parsed.event)
|
|
4742
4761
|
};
|
|
@@ -4766,7 +4785,7 @@ function ActivityFeed({
|
|
|
4766
4785
|
enabled,
|
|
4767
4786
|
"data-testid": testId = "activity-feed"
|
|
4768
4787
|
}) {
|
|
4769
|
-
const { data, isLoading, isError } =
|
|
4788
|
+
const { data, isLoading, isError } = chunkAFGE55RQ_cjs.useActivity({ limit, enabled });
|
|
4770
4789
|
if (isLoading) {
|
|
4771
4790
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkS6A6FSG7_cjs.cn("space-y-2", className), "data-testid": testId, "aria-busy": "true", children: Array.from({ length: 3 }).map((_, i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 py-1.5", children: [
|
|
4772
4791
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-4 shrink-0 animate-pulse rounded-full bg-muted" }),
|
|
@@ -4853,6 +4872,7 @@ function isAgentUser(user) {
|
|
|
4853
4872
|
return user.external_id.startsWith("agt-");
|
|
4854
4873
|
}
|
|
4855
4874
|
var DM_QUERY_KEY = ["arbi", "directMessages"];
|
|
4875
|
+
var THREAD_LIMIT = 100;
|
|
4856
4876
|
function mergeContacts(threads, contacts) {
|
|
4857
4877
|
const byPeer = /* @__PURE__ */ new Map();
|
|
4858
4878
|
for (const t of threads) byPeer.set(t.peer.external_id, t);
|
|
@@ -4870,43 +4890,42 @@ function mergeContacts(threads, contacts) {
|
|
|
4870
4890
|
return userDisplayName(a.peer).localeCompare(userDisplayName(b.peer));
|
|
4871
4891
|
});
|
|
4872
4892
|
}
|
|
4873
|
-
function
|
|
4874
|
-
const
|
|
4875
|
-
const
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4893
|
+
function toConversation(loaded, myExtId, pending) {
|
|
4894
|
+
const { chat } = loaded;
|
|
4895
|
+
const peerMember = chat.members.find((m) => m.user.external_id !== myExtId);
|
|
4896
|
+
if (!peerMember) return null;
|
|
4897
|
+
const meMember = chat.members.find((m) => m.user.external_id === myExtId);
|
|
4898
|
+
const peer = peerMember.user;
|
|
4899
|
+
const userById = new Map(chat.members.map((m) => [m.user.external_id, m.user]));
|
|
4900
|
+
const seen = new Set(loaded.messages.map((m) => m.external_id));
|
|
4901
|
+
const rows = [
|
|
4902
|
+
...loaded.messages,
|
|
4903
|
+
...pending.filter((m) => m.chat_ext_id === chat.external_id && !seen.has(m.external_id))
|
|
4904
|
+
].filter((m) => m.kind === "text" && !m.context_only);
|
|
4905
|
+
const messages = rows.map((m) => {
|
|
4906
|
+
const isMine = m.sender_ext_id === myExtId;
|
|
4907
|
+
const sender = userById.get(m.sender_ext_id ?? "") ?? { external_id: m.sender_ext_id ?? "usr-unknown" };
|
|
4908
|
+
return {
|
|
4909
|
+
externalId: m.external_id,
|
|
4910
|
+
body: m.content ?? "",
|
|
4911
|
+
createdAt: m.created_at,
|
|
4886
4912
|
isMine,
|
|
4887
|
-
read:
|
|
4888
|
-
|
|
4889
|
-
|
|
4913
|
+
// Mine: has the peer read it? Theirs: have I?
|
|
4914
|
+
read: browser.chats.hasRead(isMine ? peerMember : meMember, m),
|
|
4915
|
+
sender,
|
|
4916
|
+
recipient: isMine ? peer : meMember?.user,
|
|
4917
|
+
chatExtId: chat.external_id
|
|
4890
4918
|
};
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
conversations.push({
|
|
4902
|
-
peer: peers.get(peerId),
|
|
4903
|
-
messages,
|
|
4904
|
-
lastMessage: messages[messages.length - 1],
|
|
4905
|
-
unreadCount
|
|
4906
|
-
});
|
|
4907
|
-
}
|
|
4908
|
-
conversations.sort((a, b) => b.lastMessage.createdAt.localeCompare(a.lastMessage.createdAt));
|
|
4909
|
-
return conversations;
|
|
4919
|
+
});
|
|
4920
|
+
messages.sort((a, b) => a.createdAt.localeCompare(b.createdAt));
|
|
4921
|
+
if (messages.length === 0) return null;
|
|
4922
|
+
return {
|
|
4923
|
+
peer,
|
|
4924
|
+
chatExtId: chat.external_id,
|
|
4925
|
+
messages,
|
|
4926
|
+
lastMessage: messages[messages.length - 1],
|
|
4927
|
+
unreadCount: chat.unread_count ?? 0
|
|
4928
|
+
};
|
|
4910
4929
|
}
|
|
4911
4930
|
function useDirectMessages(options) {
|
|
4912
4931
|
const arbi = chunkXIDDXD5Y_cjs.useArbi();
|
|
@@ -4914,17 +4933,21 @@ function useDirectMessages(options) {
|
|
|
4914
4933
|
const enabled = options?.enabled ?? arbi.isLoggedIn;
|
|
4915
4934
|
const query = reactQuery.useQuery({
|
|
4916
4935
|
queryKey: DM_QUERY_KEY,
|
|
4917
|
-
queryFn: () =>
|
|
4936
|
+
queryFn: async () => {
|
|
4937
|
+
const direct = await arbi.chats.list("direct");
|
|
4938
|
+
return Promise.all(direct.map((c) => arbi.chats.load(c.external_id, { limit: THREAD_LIMIT })));
|
|
4939
|
+
},
|
|
4918
4940
|
enabled
|
|
4919
4941
|
});
|
|
4920
4942
|
const contactsQuery = reactQuery.useQuery({
|
|
4921
|
-
queryKey:
|
|
4943
|
+
queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.contacts(),
|
|
4922
4944
|
queryFn: () => arbi.contacts.list(),
|
|
4923
4945
|
enabled
|
|
4924
4946
|
});
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4947
|
+
const invalidate = () => queryClient.invalidateQueries({ queryKey: DM_QUERY_KEY });
|
|
4948
|
+
useArbiWsMessage("chat.message", () => void invalidate());
|
|
4949
|
+
useArbiWsMessage("chat.read", () => void invalidate());
|
|
4950
|
+
useArbiWsMessage("chat.updated", () => void invalidate());
|
|
4928
4951
|
let myExtId = null;
|
|
4929
4952
|
try {
|
|
4930
4953
|
myExtId = arbi.user.identity()?.externalId ?? null;
|
|
@@ -4933,33 +4956,56 @@ function useDirectMessages(options) {
|
|
|
4933
4956
|
}
|
|
4934
4957
|
const [pendingSent, setPendingSent] = React.useState([]);
|
|
4935
4958
|
const serverIds = React.useMemo(
|
|
4936
|
-
() => new Set((query.data ?? []).map((
|
|
4959
|
+
() => new Set((query.data ?? []).flatMap((c) => c.messages.map((m) => m.external_id))),
|
|
4937
4960
|
[query.data]
|
|
4938
4961
|
);
|
|
4939
4962
|
React.useEffect(() => {
|
|
4940
4963
|
setPendingSent(
|
|
4941
|
-
(pending) => pending.some((
|
|
4964
|
+
(pending) => pending.some((p) => serverIds.has(p.message.external_id)) ? pending.filter((p) => !serverIds.has(p.message.external_id)) : pending
|
|
4942
4965
|
);
|
|
4943
4966
|
}, [serverIds]);
|
|
4944
4967
|
const conversations = React.useMemo(() => {
|
|
4945
|
-
const
|
|
4946
|
-
|
|
4968
|
+
const pending = pendingSent.filter((p) => !serverIds.has(p.message.external_id));
|
|
4969
|
+
const pendingMessages = pending.map((p) => p.message);
|
|
4970
|
+
const threads = (query.data ?? []).map((loaded) => toConversation(loaded, myExtId, pendingMessages)).filter((c) => c !== null);
|
|
4971
|
+
const merged = mergeContacts(threads, contactsQuery.data ?? []);
|
|
4972
|
+
return merged.map((c) => {
|
|
4973
|
+
if (c.chatExtId) return c;
|
|
4974
|
+
const mine = pending.filter((p) => p.peerExtId === c.peer.external_id);
|
|
4975
|
+
if (!mine.length) return c;
|
|
4976
|
+
const messages = mine.map(({ message: m }) => ({
|
|
4977
|
+
externalId: m.external_id,
|
|
4978
|
+
body: m.content ?? "",
|
|
4979
|
+
createdAt: m.created_at,
|
|
4980
|
+
isMine: true,
|
|
4981
|
+
read: false,
|
|
4982
|
+
sender: { external_id: myExtId ?? "usr-me" },
|
|
4983
|
+
recipient: c.peer,
|
|
4984
|
+
chatExtId: m.chat_ext_id
|
|
4985
|
+
})).sort((a, b) => a.createdAt.localeCompare(b.createdAt));
|
|
4986
|
+
return {
|
|
4987
|
+
...c,
|
|
4988
|
+
isContactOnly: false,
|
|
4989
|
+
chatExtId: messages[0].chatExtId,
|
|
4990
|
+
messages,
|
|
4991
|
+
lastMessage: messages[messages.length - 1]
|
|
4992
|
+
};
|
|
4993
|
+
});
|
|
4947
4994
|
}, [query.data, serverIds, pendingSent, contactsQuery.data, myExtId]);
|
|
4948
|
-
const
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
invalidate();
|
|
4995
|
+
const absorbSent = (message, peerExtId) => {
|
|
4996
|
+
setPendingSent((pending) => [{ message, peerExtId }, ...pending]);
|
|
4997
|
+
void invalidate();
|
|
4952
4998
|
};
|
|
4953
4999
|
const sendMutation = reactQuery.useMutation({
|
|
4954
|
-
mutationFn: (vars) => arbi.dm.sendTo(vars.recipientExtId, vars.
|
|
4955
|
-
onSuccess: absorbSent
|
|
5000
|
+
mutationFn: (vars) => arbi.dm.sendTo(vars.recipientExtId, vars.text),
|
|
5001
|
+
onSuccess: (message, vars) => absorbSent(message, vars.recipientExtId)
|
|
4956
5002
|
});
|
|
4957
5003
|
const sendToMutation = reactQuery.useMutation({
|
|
4958
5004
|
mutationFn: (vars) => arbi.dm.send(vars.recipient, vars.text),
|
|
4959
|
-
onSuccess: absorbSent
|
|
5005
|
+
onSuccess: (message, vars) => absorbSent(message, vars.recipient.includes("@") ? void 0 : vars.recipient)
|
|
4960
5006
|
});
|
|
4961
5007
|
const markReadMutation = reactQuery.useMutation({
|
|
4962
|
-
mutationFn: (
|
|
5008
|
+
mutationFn: (vars) => arbi.chats.markRead(vars.chatExtId, vars.messageExtId),
|
|
4963
5009
|
onSuccess: invalidate
|
|
4964
5010
|
});
|
|
4965
5011
|
return {
|
|
@@ -4968,19 +5014,19 @@ function useDirectMessages(options) {
|
|
|
4968
5014
|
isLoading: (query.isLoading || contactsQuery.isLoading) && enabled,
|
|
4969
5015
|
isError: query.isError,
|
|
4970
5016
|
error: query.error,
|
|
4971
|
-
refetch: () => query.refetch(),
|
|
4972
|
-
sendMessage: (recipientExtId,
|
|
5017
|
+
refetch: () => void query.refetch(),
|
|
5018
|
+
sendMessage: (recipientExtId, _recipientPublicKey, text) => sendMutation.mutateAsync({ recipientExtId, text }),
|
|
4973
5019
|
sendMessageTo: (recipient, text) => sendToMutation.mutateAsync({ recipient, text }),
|
|
4974
5020
|
isSending: sendMutation.isPending || sendToMutation.isPending,
|
|
4975
5021
|
sendError: sendMutation.error ?? sendToMutation.error,
|
|
4976
|
-
markRead: (
|
|
5022
|
+
markRead: (chatExtId, messageExtId) => markReadMutation.mutateAsync({ chatExtId, messageExtId })
|
|
4977
5023
|
};
|
|
4978
5024
|
}
|
|
4979
5025
|
function DmAvatar({ user, className, size = "lg" }) {
|
|
4980
5026
|
const presence = useArbiWsStore((s) => s.presence[user.external_id]);
|
|
4981
5027
|
const displayStatus = presence === void 0 ? void 0 : presence === "online" ? "connected" : "disconnected";
|
|
4982
5028
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4983
|
-
|
|
5029
|
+
chunkXD4P4KRH_cjs.UserEntity,
|
|
4984
5030
|
{
|
|
4985
5031
|
variant: "icon",
|
|
4986
5032
|
size,
|
|
@@ -4990,7 +5036,7 @@ function DmAvatar({ user, className, size = "lg" }) {
|
|
|
4990
5036
|
initials: userInitials(user),
|
|
4991
5037
|
displayName: userDisplayName(user),
|
|
4992
5038
|
picture: user.picture,
|
|
4993
|
-
avatarStyle:
|
|
5039
|
+
avatarStyle: chunkXD4P4KRH_cjs.getEntityColorStyles(user.external_id),
|
|
4994
5040
|
isAgent: isAgentUser(user),
|
|
4995
5041
|
displayStatus
|
|
4996
5042
|
}
|
|
@@ -5026,8 +5072,9 @@ function ConversationList({
|
|
|
5026
5072
|
lead,
|
|
5027
5073
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-h-0 flex-1 overflow-y-auto", children: conversations.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-4 py-6 text-xs text-muted-foreground", children: emptyState ?? "No conversations yet." }) : /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "w-full", children: conversations.map((c, i) => {
|
|
5028
5074
|
const { peer, lastMessage, unreadCount } = c;
|
|
5075
|
+
const rowId = c.id ?? peer.external_id;
|
|
5029
5076
|
const newSection = c.sectionLabel && c.sectionLabel !== conversations[i - 1]?.sectionLabel;
|
|
5030
|
-
const active =
|
|
5077
|
+
const active = rowId === selectedPeerId;
|
|
5031
5078
|
const preview = lastMessage?.body ?? "No messages yet \u2014 say hello";
|
|
5032
5079
|
const unread = unreadCount > 0;
|
|
5033
5080
|
const body = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -5042,13 +5089,13 @@ function ConversationList({
|
|
|
5042
5089
|
"truncate text-sm text-foreground",
|
|
5043
5090
|
unread ? "font-bold" : "font-semibold"
|
|
5044
5091
|
),
|
|
5045
|
-
children: userDisplayName(peer)
|
|
5092
|
+
children: c.title ?? userDisplayName(peer)
|
|
5046
5093
|
}
|
|
5047
5094
|
),
|
|
5048
|
-
c.badge ?? (isAgentUser(peer) ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
5095
|
+
c.badge ?? (isAgentUser(peer) ? /* @__PURE__ */ jsxRuntime.jsx(chunkXD4P4KRH_cjs.AgentBadge, {}) : null)
|
|
5049
5096
|
] }),
|
|
5050
5097
|
c.statusLabel ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
5051
|
-
|
|
5098
|
+
chunkXD4P4KRH_cjs.Badge,
|
|
5052
5099
|
{
|
|
5053
5100
|
variant: "outline",
|
|
5054
5101
|
className: "shrink-0 rounded-full px-2 py-0 text-xs font-medium text-muted-foreground",
|
|
@@ -5059,7 +5106,7 @@ function ConversationList({
|
|
|
5059
5106
|
// shouted louder than the message it was counting.
|
|
5060
5107
|
// Enough to catch the eye scanning the list, no more.
|
|
5061
5108
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5062
|
-
|
|
5109
|
+
chunkXD4P4KRH_cjs.Badge,
|
|
5063
5110
|
{
|
|
5064
5111
|
variant: "accent",
|
|
5065
5112
|
className: chunkS6A6FSG7_cjs.cn(
|
|
@@ -5115,27 +5162,20 @@ function ConversationList({
|
|
|
5115
5162
|
children: c.sectionLabel
|
|
5116
5163
|
}
|
|
5117
5164
|
),
|
|
5118
|
-
c.disabled ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
className: rowClass,
|
|
5123
|
-
children: [
|
|
5124
|
-
body,
|
|
5125
|
-
c.trailing
|
|
5126
|
-
]
|
|
5127
|
-
}
|
|
5128
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
5165
|
+
c.disabled ? /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-testid": `arbi-dm-conversation-${rowId}`, className: rowClass, children: [
|
|
5166
|
+
body,
|
|
5167
|
+
c.trailing
|
|
5168
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
5129
5169
|
"button",
|
|
5130
5170
|
{
|
|
5131
5171
|
type: "button",
|
|
5132
|
-
onClick: () => onSelect(
|
|
5133
|
-
"data-testid": `arbi-dm-conversation-${
|
|
5172
|
+
onClick: () => onSelect(rowId),
|
|
5173
|
+
"data-testid": `arbi-dm-conversation-${rowId}`,
|
|
5134
5174
|
className: rowClass,
|
|
5135
5175
|
children: body
|
|
5136
5176
|
}
|
|
5137
5177
|
)
|
|
5138
|
-
] },
|
|
5178
|
+
] }, rowId);
|
|
5139
5179
|
}) }) })
|
|
5140
5180
|
]
|
|
5141
5181
|
}
|
|
@@ -5209,7 +5249,7 @@ function MessageThread({
|
|
|
5209
5249
|
);
|
|
5210
5250
|
React.useEffect(() => {
|
|
5211
5251
|
bottomRef.current?.scrollIntoView({ block: "end" });
|
|
5212
|
-
}, [conversation?.peer.external_id, conversation?.messages.length]);
|
|
5252
|
+
}, [conversation?.id, conversation?.peer.external_id, conversation?.messages.length]);
|
|
5213
5253
|
if (!conversation) {
|
|
5214
5254
|
return /* @__PURE__ */ jsxRuntime.jsx("section", { className: "flex min-h-0 flex-1 flex-col items-center justify-center gap-3 p-8 text-center", children: emptyState ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
5215
5255
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-14 items-center justify-center rounded-full bg-accent", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MessagesSquare, { className: "size-6 text-muted-foreground" }) }),
|
|
@@ -5219,13 +5259,13 @@ function MessageThread({
|
|
|
5219
5259
|
] })
|
|
5220
5260
|
] }) });
|
|
5221
5261
|
}
|
|
5222
|
-
const { peer } = conversation;
|
|
5262
|
+
const { peer, title, memberCount } = conversation;
|
|
5223
5263
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
5224
5264
|
/* @__PURE__ */ jsxRuntime.jsxs("header", { className: "flex items-center gap-3 border-b border-border px-4 py-3", children: [
|
|
5225
5265
|
/* @__PURE__ */ jsxRuntime.jsx(DmAvatar, { user: peer, className: "size-9" }),
|
|
5226
5266
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
|
|
5227
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "truncate text-sm font-semibold text-foreground", children: userDisplayName(peer) }),
|
|
5228
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "truncate text-xs text-muted-foreground", children: peer.email })
|
|
5267
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "truncate text-sm font-semibold text-foreground", children: title ?? userDisplayName(peer) }),
|
|
5268
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "truncate text-xs text-muted-foreground", children: memberCount != null ? `${memberCount} members` : peer.email })
|
|
5229
5269
|
] })
|
|
5230
5270
|
] }),
|
|
5231
5271
|
/* @__PURE__ */ jsxRuntime.jsx(chunkHUZB36QU_cjs.ScrollArea, { className: "min-h-0 flex-1 bg-background", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col px-4 py-4", "data-testid": "arbi-dm-thread", children: [
|
|
@@ -5266,7 +5306,7 @@ function DmComposer({
|
|
|
5266
5306
|
if (!allowAttachments || added.length === 0) return;
|
|
5267
5307
|
const next = [...files, ...added];
|
|
5268
5308
|
try {
|
|
5269
|
-
browser.
|
|
5309
|
+
browser.chats.checkChatAttachmentLimits(next);
|
|
5270
5310
|
setFiles(next);
|
|
5271
5311
|
setAttachError(null);
|
|
5272
5312
|
} catch (err) {
|
|
@@ -5392,7 +5432,7 @@ function DmComposer({
|
|
|
5392
5432
|
)
|
|
5393
5433
|
] }),
|
|
5394
5434
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5395
|
-
|
|
5435
|
+
chunkXD4P4KRH_cjs.Textarea,
|
|
5396
5436
|
{
|
|
5397
5437
|
ref: inputRef,
|
|
5398
5438
|
value: draft,
|
|
@@ -5486,9 +5526,9 @@ function StartByEmail({
|
|
|
5486
5526
|
void submit();
|
|
5487
5527
|
},
|
|
5488
5528
|
children: [
|
|
5489
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5529
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkXD4P4KRH_cjs.Label, { htmlFor: `${uid}-email`, children: l.email }),
|
|
5490
5530
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5491
|
-
|
|
5531
|
+
chunkXD4P4KRH_cjs.Input,
|
|
5492
5532
|
{
|
|
5493
5533
|
id: `${uid}-email`,
|
|
5494
5534
|
type: "email",
|
|
@@ -5502,9 +5542,9 @@ function StartByEmail({
|
|
|
5502
5542
|
}
|
|
5503
5543
|
),
|
|
5504
5544
|
email !== "" && !valid && /* @__PURE__ */ jsxRuntime.jsx("p", { id: `${uid}-bad`, className: "text-xs text-destructive", children: l.invalidEmail }),
|
|
5505
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5545
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkXD4P4KRH_cjs.Label, { htmlFor: `${uid}-text`, children: l.message }),
|
|
5506
5546
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5507
|
-
|
|
5547
|
+
chunkXD4P4KRH_cjs.Textarea,
|
|
5508
5548
|
{
|
|
5509
5549
|
id: `${uid}-text`,
|
|
5510
5550
|
value: text,
|
|
@@ -5556,31 +5596,35 @@ function DirectMessages({
|
|
|
5556
5596
|
markRead
|
|
5557
5597
|
} = useDirectMessages();
|
|
5558
5598
|
const [selectedPeerId, setSelectedPeerId] = React.useState(null);
|
|
5599
|
+
const [startedChatId, setStartedChatId] = React.useState(null);
|
|
5559
5600
|
const conversations = React.useMemo(
|
|
5560
5601
|
() => hideOwnContact && myExtId ? allConversations.filter((c) => c.peer.external_id !== myExtId) : allConversations,
|
|
5561
5602
|
[allConversations, hideOwnContact, myExtId]
|
|
5562
5603
|
);
|
|
5563
5604
|
const openStarted = (created) => {
|
|
5564
|
-
const
|
|
5565
|
-
if (
|
|
5605
|
+
const chatId = created?.chat_ext_id;
|
|
5606
|
+
if (chatId) setStartedChatId(chatId);
|
|
5566
5607
|
};
|
|
5608
|
+
React.useEffect(() => {
|
|
5609
|
+
if (!startedChatId) return;
|
|
5610
|
+
const started = conversations.find((c) => c.chatExtId === startedChatId);
|
|
5611
|
+
if (started) {
|
|
5612
|
+
setSelectedPeerId(started.id ?? started.peer.external_id);
|
|
5613
|
+
setStartedChatId(null);
|
|
5614
|
+
}
|
|
5615
|
+
}, [conversations, startedChatId]);
|
|
5567
5616
|
const loadError = isError ? error instanceof Error ? error.message : "Couldn\u2019t load messages." : null;
|
|
5568
5617
|
const selected = React.useMemo(
|
|
5569
|
-
() => conversations.find((c) => c.peer.external_id === selectedPeerId) ?? null,
|
|
5618
|
+
() => conversations.find((c) => (c.id ?? c.peer.external_id) === selectedPeerId) ?? null,
|
|
5570
5619
|
[conversations, selectedPeerId]
|
|
5571
5620
|
);
|
|
5572
5621
|
React.useEffect(() => {
|
|
5573
|
-
if (!selected || selected.unreadCount === 0) return;
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
}, [selected?.peer.external_id, selected?.unreadCount]);
|
|
5622
|
+
if (!selected?.chatExtId || selected.unreadCount === 0) return;
|
|
5623
|
+
void markRead(selected.chatExtId);
|
|
5624
|
+
}, [selected?.chatExtId, selected?.unreadCount]);
|
|
5577
5625
|
const handleSend = async (text) => {
|
|
5578
5626
|
if (!selected) return;
|
|
5579
|
-
|
|
5580
|
-
await sendMessage(selected.peer.external_id, selected.peer.encryption_public_key, text);
|
|
5581
|
-
} else {
|
|
5582
|
-
await sendMessageTo(selected.peer.external_id, text);
|
|
5583
|
-
}
|
|
5627
|
+
await sendMessage(selected.peer.external_id, selected.peer.encryption_public_key, text);
|
|
5584
5628
|
};
|
|
5585
5629
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5586
5630
|
"div",
|
|
@@ -5604,7 +5648,7 @@ function DirectMessages({
|
|
|
5604
5648
|
ConversationList,
|
|
5605
5649
|
{
|
|
5606
5650
|
conversations,
|
|
5607
|
-
selectedPeerId: selected
|
|
5651
|
+
selectedPeerId: selected ? selected.id ?? selected.peer.external_id : null,
|
|
5608
5652
|
onSelect: setSelectedPeerId,
|
|
5609
5653
|
classNames,
|
|
5610
5654
|
emptyState: isLoading ? "Loading messages\u2026" : emptyList,
|
|
@@ -5628,7 +5672,7 @@ function DirectMessages({
|
|
|
5628
5672
|
selected ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
5629
5673
|
DmComposer,
|
|
5630
5674
|
{
|
|
5631
|
-
placeholder: `Message ${userDisplayName(selected.peer).split(" ")[0]}\u2026`,
|
|
5675
|
+
placeholder: `Message ${(selected.title ?? userDisplayName(selected.peer)).split(" ")[0]}\u2026`,
|
|
5632
5676
|
onSend: handleSend,
|
|
5633
5677
|
error: sendError?.message ?? null,
|
|
5634
5678
|
classNames
|
|
@@ -5717,7 +5761,7 @@ function ImageCropper({
|
|
|
5717
5761
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
|
|
5718
5762
|
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: "Zoom" }),
|
|
5719
5763
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5720
|
-
|
|
5764
|
+
chunkXD4P4KRH_cjs.Slider,
|
|
5721
5765
|
{
|
|
5722
5766
|
value: [zoom],
|
|
5723
5767
|
onValueChange: ([v]) => setZoom(v ?? 1),
|
|
@@ -6089,10 +6133,10 @@ function DocumentTable({
|
|
|
6089
6133
|
extraColumns,
|
|
6090
6134
|
className
|
|
6091
6135
|
}) {
|
|
6092
|
-
const query =
|
|
6136
|
+
const query = chunkAFGE55RQ_cjs.useDocuments(workspaceId, { enabled: !documents });
|
|
6093
6137
|
const rows = documents ?? query.data ?? [];
|
|
6094
6138
|
const isLoading = !documents && query.isLoading;
|
|
6095
|
-
const tagsQuery =
|
|
6139
|
+
const tagsQuery = chunkAFGE55RQ_cjs.useTags(workspaceId);
|
|
6096
6140
|
const tagNameById = React__default.default.useMemo(() => {
|
|
6097
6141
|
const map = /* @__PURE__ */ new Map();
|
|
6098
6142
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -6152,7 +6196,7 @@ function DocumentTable({
|
|
|
6152
6196
|
const doc = p.data;
|
|
6153
6197
|
if (!doc) return null;
|
|
6154
6198
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6155
|
-
|
|
6199
|
+
chunkXD4P4KRH_cjs.DocumentEntity,
|
|
6156
6200
|
{
|
|
6157
6201
|
doc,
|
|
6158
6202
|
size: "base",
|
|
@@ -6175,7 +6219,7 @@ function DocumentTable({
|
|
|
6175
6219
|
cellRenderer: (p) => {
|
|
6176
6220
|
const status = p.data?.status;
|
|
6177
6221
|
if (!status) return null;
|
|
6178
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6222
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkXD4P4KRH_cjs.Badge, { variant: STATUS_VARIANTS[status.toLowerCase()] ?? "secondary", children: status });
|
|
6179
6223
|
}
|
|
6180
6224
|
},
|
|
6181
6225
|
{
|
|
@@ -6189,7 +6233,7 @@ function DocumentTable({
|
|
|
6189
6233
|
const doctags = p.data?.doctags ?? [];
|
|
6190
6234
|
if (doctags.length === 0) return null;
|
|
6191
6235
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap items-center gap-1 py-1", children: doctags.map((dt) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6192
|
-
|
|
6236
|
+
chunkXD4P4KRH_cjs.TagEntity,
|
|
6193
6237
|
{
|
|
6194
6238
|
size: "sm",
|
|
6195
6239
|
tag: {
|
|
@@ -6273,7 +6317,7 @@ function DocumentCardMenu({
|
|
|
6273
6317
|
const invalidateDocuments = () => {
|
|
6274
6318
|
const workspaceId = arbi.getWorkspaceId();
|
|
6275
6319
|
if (workspaceId) {
|
|
6276
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
6320
|
+
void queryClient.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
6277
6321
|
}
|
|
6278
6322
|
};
|
|
6279
6323
|
const download = reactQuery.useMutation({
|
|
@@ -6372,10 +6416,10 @@ function DocumentGallery({
|
|
|
6372
6416
|
minTileWidth = 148,
|
|
6373
6417
|
className
|
|
6374
6418
|
}) {
|
|
6375
|
-
const query =
|
|
6419
|
+
const query = chunkAFGE55RQ_cjs.useDocuments(workspaceId, { enabled: !documents });
|
|
6376
6420
|
const rows = documents ?? query.data ?? [];
|
|
6377
6421
|
const isLoading = !documents && query.isLoading;
|
|
6378
|
-
const tagsQuery =
|
|
6422
|
+
const tagsQuery = chunkAFGE55RQ_cjs.useTags(workspaceId);
|
|
6379
6423
|
const tagNameById = React__default.default.useMemo(() => {
|
|
6380
6424
|
const map = /* @__PURE__ */ new Map();
|
|
6381
6425
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -6387,7 +6431,7 @@ function DocumentGallery({
|
|
|
6387
6431
|
() => rows.map((d) => d.external_id).filter((id) => !!id),
|
|
6388
6432
|
[rows]
|
|
6389
6433
|
);
|
|
6390
|
-
const thumbsQuery =
|
|
6434
|
+
const thumbsQuery = chunkAFGE55RQ_cjs.useThumbnails(docIds);
|
|
6391
6435
|
const thumbs = thumbsQuery.data ?? {};
|
|
6392
6436
|
const storeSelected = useArbiUiStore((s) => s.selectedDocIds);
|
|
6393
6437
|
const storeSetSelected = useArbiUiStore((s) => s.setSelectedDocIds);
|
|
@@ -6423,7 +6467,7 @@ function DocumentGallery({
|
|
|
6423
6467
|
setRenamingId(null);
|
|
6424
6468
|
const activeWorkspace = workspaceId ?? arbi.getWorkspaceId();
|
|
6425
6469
|
if (activeWorkspace) {
|
|
6426
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
6470
|
+
void queryClient.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.documents(activeWorkspace) });
|
|
6427
6471
|
}
|
|
6428
6472
|
}
|
|
6429
6473
|
});
|
|
@@ -6465,7 +6509,7 @@ function DocumentGallery({
|
|
|
6465
6509
|
(dt) => tagNameById.get(dt.tag_ext_id) ?? dt.tag_ext_id.slice(0, 8)
|
|
6466
6510
|
);
|
|
6467
6511
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-doc-id": id, "data-testid": "document-gallery-card", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6468
|
-
|
|
6512
|
+
chunkXD4P4KRH_cjs.DocumentCard,
|
|
6469
6513
|
{
|
|
6470
6514
|
doc,
|
|
6471
6515
|
thumbnailUrl: thumbs[id],
|
|
@@ -6502,7 +6546,7 @@ function VoiceNoteRecorder({
|
|
|
6502
6546
|
isSaving = false,
|
|
6503
6547
|
transcribe
|
|
6504
6548
|
}) {
|
|
6505
|
-
const recorder =
|
|
6549
|
+
const recorder = chunkXD4P4KRH_cjs.useAudioRecorder();
|
|
6506
6550
|
const [transcript, setTranscript] = React.useState(null);
|
|
6507
6551
|
const [isTranscribing, setIsTranscribing] = React.useState(false);
|
|
6508
6552
|
React.useEffect(() => {
|
|
@@ -6548,7 +6592,7 @@ function VoiceNoteRecorder({
|
|
|
6548
6592
|
] }),
|
|
6549
6593
|
(recorder.state === "recording" || recorder.state === "paused") && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
6550
6594
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6551
|
-
|
|
6595
|
+
chunkXD4P4KRH_cjs.MicWaveformIndicator,
|
|
6552
6596
|
{
|
|
6553
6597
|
level: recorder.level,
|
|
6554
6598
|
elapsedMs: recorder.elapsedMs,
|
|
@@ -6670,7 +6714,7 @@ function DraftTitleControls({
|
|
|
6670
6714
|
}
|
|
6671
6715
|
),
|
|
6672
6716
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6673
|
-
|
|
6717
|
+
chunkXD4P4KRH_cjs.IconToggle,
|
|
6674
6718
|
{
|
|
6675
6719
|
icon: lucideReact.Sparkles,
|
|
6676
6720
|
isActive: autoRename,
|
|
@@ -6704,7 +6748,7 @@ function useCameraStream(constraints = { video: true, audio: false }) {
|
|
|
6704
6748
|
streamRef.current = media;
|
|
6705
6749
|
setStream(media);
|
|
6706
6750
|
} catch (err) {
|
|
6707
|
-
setError(
|
|
6751
|
+
setError(chunkXD4P4KRH_cjs.classifyMediaError(err, "camera"));
|
|
6708
6752
|
} finally {
|
|
6709
6753
|
setIsStarting(false);
|
|
6710
6754
|
}
|
|
@@ -6940,7 +6984,7 @@ function VideoCapture({ onSave, onDiscard, onError, isSaving = false }) {
|
|
|
6940
6984
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "relative inline-flex h-2 w-2 rounded-full bg-red-500" })
|
|
6941
6985
|
] }),
|
|
6942
6986
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs font-semibold uppercase tracking-wide text-red-500", children: "Rec" }),
|
|
6943
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-mono text-xs tabular-nums text-muted-foreground", children:
|
|
6987
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-mono text-xs tabular-nums text-muted-foreground", children: chunkXD4P4KRH_cjs.formatElapsed(recorder.elapsedMs) })
|
|
6944
6988
|
] }),
|
|
6945
6989
|
recorder.state === "recording" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
6946
6990
|
chunkWYZJLZ67_cjs.Button,
|
|
@@ -7041,111 +7085,119 @@ function hasVideoTrack(blob) {
|
|
|
7041
7085
|
|
|
7042
7086
|
Object.defineProperty(exports, "PROJECT_CREATION_DENIED_REASON", {
|
|
7043
7087
|
enumerable: true,
|
|
7044
|
-
get: function () { return
|
|
7088
|
+
get: function () { return chunkAFGE55RQ_cjs.PROJECT_CREATION_DENIED_REASON; }
|
|
7045
7089
|
});
|
|
7046
7090
|
Object.defineProperty(exports, "arbiQueryKeys", {
|
|
7047
7091
|
enumerable: true,
|
|
7048
|
-
get: function () { return
|
|
7092
|
+
get: function () { return chunkAFGE55RQ_cjs.arbiQueryKeys; }
|
|
7049
7093
|
});
|
|
7050
7094
|
Object.defineProperty(exports, "isUsageMetered", {
|
|
7051
7095
|
enumerable: true,
|
|
7052
|
-
get: function () { return
|
|
7096
|
+
get: function () { return chunkAFGE55RQ_cjs.isUsageMetered; }
|
|
7053
7097
|
});
|
|
7054
7098
|
Object.defineProperty(exports, "useActivity", {
|
|
7055
7099
|
enumerable: true,
|
|
7056
|
-
get: function () { return
|
|
7100
|
+
get: function () { return chunkAFGE55RQ_cjs.useActivity; }
|
|
7057
7101
|
});
|
|
7058
7102
|
Object.defineProperty(exports, "useAgents", {
|
|
7059
7103
|
enumerable: true,
|
|
7060
|
-
get: function () { return
|
|
7104
|
+
get: function () { return chunkAFGE55RQ_cjs.useAgents; }
|
|
7061
7105
|
});
|
|
7062
7106
|
Object.defineProperty(exports, "useAssistantQuery", {
|
|
7063
7107
|
enumerable: true,
|
|
7064
|
-
get: function () { return
|
|
7108
|
+
get: function () { return chunkAFGE55RQ_cjs.useAssistantQuery; }
|
|
7065
7109
|
});
|
|
7066
7110
|
Object.defineProperty(exports, "useCanCreateProjects", {
|
|
7067
7111
|
enumerable: true,
|
|
7068
|
-
get: function () { return
|
|
7112
|
+
get: function () { return chunkAFGE55RQ_cjs.useCanCreateProjects; }
|
|
7069
7113
|
});
|
|
7070
7114
|
Object.defineProperty(exports, "useConfigs", {
|
|
7071
7115
|
enumerable: true,
|
|
7072
|
-
get: function () { return
|
|
7116
|
+
get: function () { return chunkAFGE55RQ_cjs.useConfigs; }
|
|
7073
7117
|
});
|
|
7074
7118
|
Object.defineProperty(exports, "useConversationThreads", {
|
|
7075
7119
|
enumerable: true,
|
|
7076
|
-
get: function () { return
|
|
7120
|
+
get: function () { return chunkAFGE55RQ_cjs.useConversationThreads; }
|
|
7077
7121
|
});
|
|
7078
7122
|
Object.defineProperty(exports, "useConversations", {
|
|
7079
7123
|
enumerable: true,
|
|
7080
|
-
get: function () { return
|
|
7124
|
+
get: function () { return chunkAFGE55RQ_cjs.useConversations; }
|
|
7081
7125
|
});
|
|
7082
7126
|
Object.defineProperty(exports, "useCurrentUser", {
|
|
7083
7127
|
enumerable: true,
|
|
7084
|
-
get: function () { return
|
|
7128
|
+
get: function () { return chunkAFGE55RQ_cjs.useCurrentUser; }
|
|
7085
7129
|
});
|
|
7086
7130
|
Object.defineProperty(exports, "useDeleteAgents", {
|
|
7087
7131
|
enumerable: true,
|
|
7088
|
-
get: function () { return
|
|
7132
|
+
get: function () { return chunkAFGE55RQ_cjs.useDeleteAgents; }
|
|
7089
7133
|
});
|
|
7090
7134
|
Object.defineProperty(exports, "useDocuments", {
|
|
7091
7135
|
enumerable: true,
|
|
7092
|
-
get: function () { return
|
|
7136
|
+
get: function () { return chunkAFGE55RQ_cjs.useDocuments; }
|
|
7093
7137
|
});
|
|
7094
7138
|
Object.defineProperty(exports, "useFacts", {
|
|
7095
7139
|
enumerable: true,
|
|
7096
|
-
get: function () { return
|
|
7140
|
+
get: function () { return chunkAFGE55RQ_cjs.useFacts; }
|
|
7141
|
+
});
|
|
7142
|
+
Object.defineProperty(exports, "useFirmPool", {
|
|
7143
|
+
enumerable: true,
|
|
7144
|
+
get: function () { return chunkAFGE55RQ_cjs.useFirmPool; }
|
|
7097
7145
|
});
|
|
7098
7146
|
Object.defineProperty(exports, "useHealth", {
|
|
7099
7147
|
enumerable: true,
|
|
7100
|
-
get: function () { return
|
|
7148
|
+
get: function () { return chunkAFGE55RQ_cjs.useHealth; }
|
|
7101
7149
|
});
|
|
7102
7150
|
Object.defineProperty(exports, "useParsedDocument", {
|
|
7103
7151
|
enumerable: true,
|
|
7104
|
-
get: function () { return
|
|
7152
|
+
get: function () { return chunkAFGE55RQ_cjs.useParsedDocument; }
|
|
7105
7153
|
});
|
|
7106
7154
|
Object.defineProperty(exports, "useProjectInvoices", {
|
|
7107
7155
|
enumerable: true,
|
|
7108
|
-
get: function () { return
|
|
7156
|
+
get: function () { return chunkAFGE55RQ_cjs.useProjectInvoices; }
|
|
7109
7157
|
});
|
|
7110
7158
|
Object.defineProperty(exports, "useProjectUsage", {
|
|
7111
7159
|
enumerable: true,
|
|
7112
|
-
get: function () { return
|
|
7160
|
+
get: function () { return chunkAFGE55RQ_cjs.useProjectUsage; }
|
|
7113
7161
|
});
|
|
7114
7162
|
Object.defineProperty(exports, "useProjects", {
|
|
7115
7163
|
enumerable: true,
|
|
7116
|
-
get: function () { return
|
|
7164
|
+
get: function () { return chunkAFGE55RQ_cjs.useProjects; }
|
|
7117
7165
|
});
|
|
7118
7166
|
Object.defineProperty(exports, "useProjectsUsage", {
|
|
7119
7167
|
enumerable: true,
|
|
7120
|
-
get: function () { return
|
|
7168
|
+
get: function () { return chunkAFGE55RQ_cjs.useProjectsUsage; }
|
|
7121
7169
|
});
|
|
7122
7170
|
Object.defineProperty(exports, "useSessions", {
|
|
7123
7171
|
enumerable: true,
|
|
7124
|
-
get: function () { return
|
|
7172
|
+
get: function () { return chunkAFGE55RQ_cjs.useSessions; }
|
|
7125
7173
|
});
|
|
7126
7174
|
Object.defineProperty(exports, "useTags", {
|
|
7127
7175
|
enumerable: true,
|
|
7128
|
-
get: function () { return
|
|
7176
|
+
get: function () { return chunkAFGE55RQ_cjs.useTags; }
|
|
7129
7177
|
});
|
|
7130
7178
|
Object.defineProperty(exports, "useThumbnails", {
|
|
7131
7179
|
enumerable: true,
|
|
7132
|
-
get: function () { return
|
|
7180
|
+
get: function () { return chunkAFGE55RQ_cjs.useThumbnails; }
|
|
7181
|
+
});
|
|
7182
|
+
Object.defineProperty(exports, "useTopUpFirmPool", {
|
|
7183
|
+
enumerable: true,
|
|
7184
|
+
get: function () { return chunkAFGE55RQ_cjs.useTopUpFirmPool; }
|
|
7133
7185
|
});
|
|
7134
7186
|
Object.defineProperty(exports, "useUserUsageToday", {
|
|
7135
7187
|
enumerable: true,
|
|
7136
|
-
get: function () { return
|
|
7188
|
+
get: function () { return chunkAFGE55RQ_cjs.useUserUsageToday; }
|
|
7137
7189
|
});
|
|
7138
7190
|
Object.defineProperty(exports, "useWorkspaceActivity", {
|
|
7139
7191
|
enumerable: true,
|
|
7140
|
-
get: function () { return
|
|
7192
|
+
get: function () { return chunkAFGE55RQ_cjs.useWorkspaceActivity; }
|
|
7141
7193
|
});
|
|
7142
7194
|
Object.defineProperty(exports, "useWorkspaceUsers", {
|
|
7143
7195
|
enumerable: true,
|
|
7144
|
-
get: function () { return
|
|
7196
|
+
get: function () { return chunkAFGE55RQ_cjs.useWorkspaceUsers; }
|
|
7145
7197
|
});
|
|
7146
7198
|
Object.defineProperty(exports, "useWorkspaces", {
|
|
7147
7199
|
enumerable: true,
|
|
7148
|
-
get: function () { return
|
|
7200
|
+
get: function () { return chunkAFGE55RQ_cjs.useWorkspaces; }
|
|
7149
7201
|
});
|
|
7150
7202
|
Object.defineProperty(exports, "cleanDraftMarkdown", {
|
|
7151
7203
|
enumerable: true,
|
|
@@ -7215,521 +7267,557 @@ Object.defineProperty(exports, "useNotify", {
|
|
|
7215
7267
|
enumerable: true,
|
|
7216
7268
|
get: function () { return chunkF7KQVVD2_cjs.useNotify; }
|
|
7217
7269
|
});
|
|
7270
|
+
Object.defineProperty(exports, "AUDIO_MIME_PREFERENCE", {
|
|
7271
|
+
enumerable: true,
|
|
7272
|
+
get: function () { return chunkXD4P4KRH_cjs.AUDIO_MIME_PREFERENCE; }
|
|
7273
|
+
});
|
|
7218
7274
|
Object.defineProperty(exports, "AgentBadge", {
|
|
7219
7275
|
enumerable: true,
|
|
7220
|
-
get: function () { return
|
|
7276
|
+
get: function () { return chunkXD4P4KRH_cjs.AgentBadge; }
|
|
7221
7277
|
});
|
|
7222
7278
|
Object.defineProperty(exports, "AiMarkdown", {
|
|
7223
7279
|
enumerable: true,
|
|
7224
|
-
get: function () { return
|
|
7280
|
+
get: function () { return chunkXD4P4KRH_cjs.AiMarkdown; }
|
|
7225
7281
|
});
|
|
7226
7282
|
Object.defineProperty(exports, "ArbiBotHeadIcon", {
|
|
7227
7283
|
enumerable: true,
|
|
7228
|
-
get: function () { return
|
|
7284
|
+
get: function () { return chunkXD4P4KRH_cjs.ArbiBotHeadIcon; }
|
|
7229
7285
|
});
|
|
7230
7286
|
Object.defineProperty(exports, "AudIcon", {
|
|
7231
7287
|
enumerable: true,
|
|
7232
|
-
get: function () { return
|
|
7288
|
+
get: function () { return chunkXD4P4KRH_cjs.AudIcon; }
|
|
7233
7289
|
});
|
|
7234
7290
|
Object.defineProperty(exports, "Avatar", {
|
|
7235
7291
|
enumerable: true,
|
|
7236
|
-
get: function () { return
|
|
7292
|
+
get: function () { return chunkXD4P4KRH_cjs.Avatar; }
|
|
7237
7293
|
});
|
|
7238
7294
|
Object.defineProperty(exports, "AvatarFallback", {
|
|
7239
7295
|
enumerable: true,
|
|
7240
|
-
get: function () { return
|
|
7296
|
+
get: function () { return chunkXD4P4KRH_cjs.AvatarFallback; }
|
|
7241
7297
|
});
|
|
7242
7298
|
Object.defineProperty(exports, "AvatarImage", {
|
|
7243
7299
|
enumerable: true,
|
|
7244
|
-
get: function () { return
|
|
7300
|
+
get: function () { return chunkXD4P4KRH_cjs.AvatarImage; }
|
|
7245
7301
|
});
|
|
7246
7302
|
Object.defineProperty(exports, "BASE_COLORS", {
|
|
7247
7303
|
enumerable: true,
|
|
7248
|
-
get: function () { return
|
|
7304
|
+
get: function () { return chunkXD4P4KRH_cjs.BASE_COLORS; }
|
|
7249
7305
|
});
|
|
7250
7306
|
Object.defineProperty(exports, "Badge", {
|
|
7251
7307
|
enumerable: true,
|
|
7252
|
-
get: function () { return
|
|
7308
|
+
get: function () { return chunkXD4P4KRH_cjs.Badge; }
|
|
7253
7309
|
});
|
|
7254
7310
|
Object.defineProperty(exports, "Card", {
|
|
7255
7311
|
enumerable: true,
|
|
7256
|
-
get: function () { return
|
|
7312
|
+
get: function () { return chunkXD4P4KRH_cjs.Card; }
|
|
7257
7313
|
});
|
|
7258
7314
|
Object.defineProperty(exports, "CardContent", {
|
|
7259
7315
|
enumerable: true,
|
|
7260
|
-
get: function () { return
|
|
7316
|
+
get: function () { return chunkXD4P4KRH_cjs.CardContent; }
|
|
7261
7317
|
});
|
|
7262
7318
|
Object.defineProperty(exports, "CardDescription", {
|
|
7263
7319
|
enumerable: true,
|
|
7264
|
-
get: function () { return
|
|
7320
|
+
get: function () { return chunkXD4P4KRH_cjs.CardDescription; }
|
|
7265
7321
|
});
|
|
7266
7322
|
Object.defineProperty(exports, "CardFooter", {
|
|
7267
7323
|
enumerable: true,
|
|
7268
|
-
get: function () { return
|
|
7324
|
+
get: function () { return chunkXD4P4KRH_cjs.CardFooter; }
|
|
7269
7325
|
});
|
|
7270
7326
|
Object.defineProperty(exports, "CardHeader", {
|
|
7271
7327
|
enumerable: true,
|
|
7272
|
-
get: function () { return
|
|
7328
|
+
get: function () { return chunkXD4P4KRH_cjs.CardHeader; }
|
|
7273
7329
|
});
|
|
7274
7330
|
Object.defineProperty(exports, "CardTitle", {
|
|
7275
7331
|
enumerable: true,
|
|
7276
|
-
get: function () { return
|
|
7332
|
+
get: function () { return chunkXD4P4KRH_cjs.CardTitle; }
|
|
7277
7333
|
});
|
|
7278
7334
|
Object.defineProperty(exports, "Checkbox", {
|
|
7279
7335
|
enumerable: true,
|
|
7280
|
-
get: function () { return
|
|
7336
|
+
get: function () { return chunkXD4P4KRH_cjs.Checkbox; }
|
|
7281
7337
|
});
|
|
7282
7338
|
Object.defineProperty(exports, "Collapsible", {
|
|
7283
7339
|
enumerable: true,
|
|
7284
|
-
get: function () { return
|
|
7340
|
+
get: function () { return chunkXD4P4KRH_cjs.Collapsible; }
|
|
7285
7341
|
});
|
|
7286
7342
|
Object.defineProperty(exports, "CollapsibleContent", {
|
|
7287
7343
|
enumerable: true,
|
|
7288
|
-
get: function () { return
|
|
7344
|
+
get: function () { return chunkXD4P4KRH_cjs.CollapsibleContent; }
|
|
7289
7345
|
});
|
|
7290
7346
|
Object.defineProperty(exports, "CollapsibleTrigger", {
|
|
7291
7347
|
enumerable: true,
|
|
7292
|
-
get: function () { return
|
|
7348
|
+
get: function () { return chunkXD4P4KRH_cjs.CollapsibleTrigger; }
|
|
7293
7349
|
});
|
|
7294
7350
|
Object.defineProperty(exports, "Command", {
|
|
7295
7351
|
enumerable: true,
|
|
7296
|
-
get: function () { return
|
|
7352
|
+
get: function () { return chunkXD4P4KRH_cjs.Command; }
|
|
7297
7353
|
});
|
|
7298
7354
|
Object.defineProperty(exports, "CommandDialog", {
|
|
7299
7355
|
enumerable: true,
|
|
7300
|
-
get: function () { return
|
|
7356
|
+
get: function () { return chunkXD4P4KRH_cjs.CommandDialog; }
|
|
7301
7357
|
});
|
|
7302
7358
|
Object.defineProperty(exports, "CommandEmpty", {
|
|
7303
7359
|
enumerable: true,
|
|
7304
|
-
get: function () { return
|
|
7360
|
+
get: function () { return chunkXD4P4KRH_cjs.CommandEmpty; }
|
|
7305
7361
|
});
|
|
7306
7362
|
Object.defineProperty(exports, "CommandGroup", {
|
|
7307
7363
|
enumerable: true,
|
|
7308
|
-
get: function () { return
|
|
7364
|
+
get: function () { return chunkXD4P4KRH_cjs.CommandGroup; }
|
|
7309
7365
|
});
|
|
7310
7366
|
Object.defineProperty(exports, "CommandInput", {
|
|
7311
7367
|
enumerable: true,
|
|
7312
|
-
get: function () { return
|
|
7368
|
+
get: function () { return chunkXD4P4KRH_cjs.CommandInput; }
|
|
7313
7369
|
});
|
|
7314
7370
|
Object.defineProperty(exports, "CommandItem", {
|
|
7315
7371
|
enumerable: true,
|
|
7316
|
-
get: function () { return
|
|
7372
|
+
get: function () { return chunkXD4P4KRH_cjs.CommandItem; }
|
|
7317
7373
|
});
|
|
7318
7374
|
Object.defineProperty(exports, "CommandList", {
|
|
7319
7375
|
enumerable: true,
|
|
7320
|
-
get: function () { return
|
|
7376
|
+
get: function () { return chunkXD4P4KRH_cjs.CommandList; }
|
|
7321
7377
|
});
|
|
7322
7378
|
Object.defineProperty(exports, "CommandSeparator", {
|
|
7323
7379
|
enumerable: true,
|
|
7324
|
-
get: function () { return
|
|
7380
|
+
get: function () { return chunkXD4P4KRH_cjs.CommandSeparator; }
|
|
7325
7381
|
});
|
|
7326
7382
|
Object.defineProperty(exports, "CommandShortcut", {
|
|
7327
7383
|
enumerable: true,
|
|
7328
|
-
get: function () { return
|
|
7384
|
+
get: function () { return chunkXD4P4KRH_cjs.CommandShortcut; }
|
|
7385
|
+
});
|
|
7386
|
+
Object.defineProperty(exports, "DEFAULT_SEGMENTER_CONFIG", {
|
|
7387
|
+
enumerable: true,
|
|
7388
|
+
get: function () { return chunkXD4P4KRH_cjs.DEFAULT_SEGMENTER_CONFIG; }
|
|
7329
7389
|
});
|
|
7330
7390
|
Object.defineProperty(exports, "DictateProvider", {
|
|
7331
7391
|
enumerable: true,
|
|
7332
|
-
get: function () { return
|
|
7392
|
+
get: function () { return chunkXD4P4KRH_cjs.DictateProvider; }
|
|
7333
7393
|
});
|
|
7334
7394
|
Object.defineProperty(exports, "DocIcon", {
|
|
7335
7395
|
enumerable: true,
|
|
7336
|
-
get: function () { return
|
|
7396
|
+
get: function () { return chunkXD4P4KRH_cjs.DocIcon; }
|
|
7337
7397
|
});
|
|
7338
7398
|
Object.defineProperty(exports, "DocumentCard", {
|
|
7339
7399
|
enumerable: true,
|
|
7340
|
-
get: function () { return
|
|
7400
|
+
get: function () { return chunkXD4P4KRH_cjs.DocumentCard; }
|
|
7341
7401
|
});
|
|
7342
7402
|
Object.defineProperty(exports, "DocumentEntity", {
|
|
7343
7403
|
enumerable: true,
|
|
7344
|
-
get: function () { return
|
|
7404
|
+
get: function () { return chunkXD4P4KRH_cjs.DocumentEntity; }
|
|
7345
7405
|
});
|
|
7346
7406
|
Object.defineProperty(exports, "ENTITY_MAPPINGS", {
|
|
7347
7407
|
enumerable: true,
|
|
7348
|
-
get: function () { return
|
|
7408
|
+
get: function () { return chunkXD4P4KRH_cjs.ENTITY_MAPPINGS; }
|
|
7349
7409
|
});
|
|
7350
7410
|
Object.defineProperty(exports, "EmlIcon", {
|
|
7351
7411
|
enumerable: true,
|
|
7352
|
-
get: function () { return
|
|
7412
|
+
get: function () { return chunkXD4P4KRH_cjs.EmlIcon; }
|
|
7353
7413
|
});
|
|
7354
7414
|
Object.defineProperty(exports, "EntityIcon", {
|
|
7355
7415
|
enumerable: true,
|
|
7356
|
-
get: function () { return
|
|
7416
|
+
get: function () { return chunkXD4P4KRH_cjs.EntityIcon; }
|
|
7357
7417
|
});
|
|
7358
7418
|
Object.defineProperty(exports, "EntityPill", {
|
|
7359
7419
|
enumerable: true,
|
|
7360
|
-
get: function () { return
|
|
7420
|
+
get: function () { return chunkXD4P4KRH_cjs.EntityPill; }
|
|
7361
7421
|
});
|
|
7362
7422
|
Object.defineProperty(exports, "FILE_TYPE_COLORS", {
|
|
7363
7423
|
enumerable: true,
|
|
7364
|
-
get: function () { return
|
|
7424
|
+
get: function () { return chunkXD4P4KRH_cjs.FILE_TYPE_COLORS; }
|
|
7365
7425
|
});
|
|
7366
7426
|
Object.defineProperty(exports, "HoverCard", {
|
|
7367
7427
|
enumerable: true,
|
|
7368
|
-
get: function () { return
|
|
7428
|
+
get: function () { return chunkXD4P4KRH_cjs.HoverCard; }
|
|
7369
7429
|
});
|
|
7370
7430
|
Object.defineProperty(exports, "HoverCardContent", {
|
|
7371
7431
|
enumerable: true,
|
|
7372
|
-
get: function () { return
|
|
7432
|
+
get: function () { return chunkXD4P4KRH_cjs.HoverCardContent; }
|
|
7373
7433
|
});
|
|
7374
7434
|
Object.defineProperty(exports, "HoverCardTrigger", {
|
|
7375
7435
|
enumerable: true,
|
|
7376
|
-
get: function () { return
|
|
7436
|
+
get: function () { return chunkXD4P4KRH_cjs.HoverCardTrigger; }
|
|
7377
7437
|
});
|
|
7378
7438
|
Object.defineProperty(exports, "HtmlIcon", {
|
|
7379
7439
|
enumerable: true,
|
|
7380
|
-
get: function () { return
|
|
7440
|
+
get: function () { return chunkXD4P4KRH_cjs.HtmlIcon; }
|
|
7441
|
+
});
|
|
7442
|
+
Object.defineProperty(exports, "INITIAL_SEGMENTER_STATE", {
|
|
7443
|
+
enumerable: true,
|
|
7444
|
+
get: function () { return chunkXD4P4KRH_cjs.INITIAL_SEGMENTER_STATE; }
|
|
7381
7445
|
});
|
|
7382
7446
|
Object.defineProperty(exports, "IconToggle", {
|
|
7383
7447
|
enumerable: true,
|
|
7384
|
-
get: function () { return
|
|
7448
|
+
get: function () { return chunkXD4P4KRH_cjs.IconToggle; }
|
|
7385
7449
|
});
|
|
7386
7450
|
Object.defineProperty(exports, "ImgIcon", {
|
|
7387
7451
|
enumerable: true,
|
|
7388
|
-
get: function () { return
|
|
7452
|
+
get: function () { return chunkXD4P4KRH_cjs.ImgIcon; }
|
|
7389
7453
|
});
|
|
7390
7454
|
Object.defineProperty(exports, "InlineMicButton", {
|
|
7391
7455
|
enumerable: true,
|
|
7392
|
-
get: function () { return
|
|
7456
|
+
get: function () { return chunkXD4P4KRH_cjs.InlineMicButton; }
|
|
7393
7457
|
});
|
|
7394
7458
|
Object.defineProperty(exports, "Input", {
|
|
7395
7459
|
enumerable: true,
|
|
7396
|
-
get: function () { return
|
|
7460
|
+
get: function () { return chunkXD4P4KRH_cjs.Input; }
|
|
7397
7461
|
});
|
|
7398
7462
|
Object.defineProperty(exports, "Label", {
|
|
7399
7463
|
enumerable: true,
|
|
7400
|
-
get: function () { return
|
|
7464
|
+
get: function () { return chunkXD4P4KRH_cjs.Label; }
|
|
7401
7465
|
});
|
|
7402
7466
|
Object.defineProperty(exports, "MarkMenu", {
|
|
7403
7467
|
enumerable: true,
|
|
7404
|
-
get: function () { return
|
|
7468
|
+
get: function () { return chunkXD4P4KRH_cjs.MarkMenu; }
|
|
7405
7469
|
});
|
|
7406
7470
|
Object.defineProperty(exports, "MicRecordingOverlay", {
|
|
7407
7471
|
enumerable: true,
|
|
7408
|
-
get: function () { return
|
|
7472
|
+
get: function () { return chunkXD4P4KRH_cjs.MicRecordingOverlay; }
|
|
7409
7473
|
});
|
|
7410
7474
|
Object.defineProperty(exports, "MicWaveformIndicator", {
|
|
7411
7475
|
enumerable: true,
|
|
7412
|
-
get: function () { return
|
|
7476
|
+
get: function () { return chunkXD4P4KRH_cjs.MicWaveformIndicator; }
|
|
7413
7477
|
});
|
|
7414
7478
|
Object.defineProperty(exports, "NEUTRAL_GRAY", {
|
|
7415
7479
|
enumerable: true,
|
|
7416
|
-
get: function () { return
|
|
7480
|
+
get: function () { return chunkXD4P4KRH_cjs.NEUTRAL_GRAY; }
|
|
7417
7481
|
});
|
|
7418
7482
|
Object.defineProperty(exports, "PLACEHOLDER_COLOR", {
|
|
7419
7483
|
enumerable: true,
|
|
7420
|
-
get: function () { return
|
|
7484
|
+
get: function () { return chunkXD4P4KRH_cjs.PLACEHOLDER_COLOR; }
|
|
7421
7485
|
});
|
|
7422
7486
|
Object.defineProperty(exports, "PassageCard", {
|
|
7423
7487
|
enumerable: true,
|
|
7424
|
-
get: function () { return
|
|
7488
|
+
get: function () { return chunkXD4P4KRH_cjs.PassageCard; }
|
|
7425
7489
|
});
|
|
7426
7490
|
Object.defineProperty(exports, "PdfIcon", {
|
|
7427
7491
|
enumerable: true,
|
|
7428
|
-
get: function () { return
|
|
7492
|
+
get: function () { return chunkXD4P4KRH_cjs.PdfIcon; }
|
|
7429
7493
|
});
|
|
7430
7494
|
Object.defineProperty(exports, "Popover", {
|
|
7431
7495
|
enumerable: true,
|
|
7432
|
-
get: function () { return
|
|
7496
|
+
get: function () { return chunkXD4P4KRH_cjs.Popover; }
|
|
7433
7497
|
});
|
|
7434
7498
|
Object.defineProperty(exports, "PopoverAnchor", {
|
|
7435
7499
|
enumerable: true,
|
|
7436
|
-
get: function () { return
|
|
7500
|
+
get: function () { return chunkXD4P4KRH_cjs.PopoverAnchor; }
|
|
7437
7501
|
});
|
|
7438
7502
|
Object.defineProperty(exports, "PopoverContent", {
|
|
7439
7503
|
enumerable: true,
|
|
7440
|
-
get: function () { return
|
|
7504
|
+
get: function () { return chunkXD4P4KRH_cjs.PopoverContent; }
|
|
7441
7505
|
});
|
|
7442
7506
|
Object.defineProperty(exports, "PopoverTrigger", {
|
|
7443
7507
|
enumerable: true,
|
|
7444
|
-
get: function () { return
|
|
7508
|
+
get: function () { return chunkXD4P4KRH_cjs.PopoverTrigger; }
|
|
7445
7509
|
});
|
|
7446
7510
|
Object.defineProperty(exports, "PresenceLabel", {
|
|
7447
7511
|
enumerable: true,
|
|
7448
|
-
get: function () { return
|
|
7512
|
+
get: function () { return chunkXD4P4KRH_cjs.PresenceLabel; }
|
|
7449
7513
|
});
|
|
7450
7514
|
Object.defineProperty(exports, "Progress", {
|
|
7451
7515
|
enumerable: true,
|
|
7452
|
-
get: function () { return
|
|
7516
|
+
get: function () { return chunkXD4P4KRH_cjs.Progress; }
|
|
7453
7517
|
});
|
|
7454
7518
|
Object.defineProperty(exports, "ProjectEntity", {
|
|
7455
7519
|
enumerable: true,
|
|
7456
|
-
get: function () { return
|
|
7520
|
+
get: function () { return chunkXD4P4KRH_cjs.ProjectEntity; }
|
|
7457
7521
|
});
|
|
7458
7522
|
Object.defineProperty(exports, "RadioGroup", {
|
|
7459
7523
|
enumerable: true,
|
|
7460
|
-
get: function () { return
|
|
7524
|
+
get: function () { return chunkXD4P4KRH_cjs.RadioGroup; }
|
|
7461
7525
|
});
|
|
7462
7526
|
Object.defineProperty(exports, "RadioGroupItem", {
|
|
7463
7527
|
enumerable: true,
|
|
7464
|
-
get: function () { return
|
|
7528
|
+
get: function () { return chunkXD4P4KRH_cjs.RadioGroupItem; }
|
|
7465
7529
|
});
|
|
7466
7530
|
Object.defineProperty(exports, "RagDot", {
|
|
7467
7531
|
enumerable: true,
|
|
7468
|
-
get: function () { return
|
|
7532
|
+
get: function () { return chunkXD4P4KRH_cjs.RagDot; }
|
|
7469
7533
|
});
|
|
7470
7534
|
Object.defineProperty(exports, "RelevanceDot", {
|
|
7471
7535
|
enumerable: true,
|
|
7472
|
-
get: function () { return
|
|
7536
|
+
get: function () { return chunkXD4P4KRH_cjs.RelevanceDot; }
|
|
7473
7537
|
});
|
|
7474
7538
|
Object.defineProperty(exports, "Select", {
|
|
7475
7539
|
enumerable: true,
|
|
7476
|
-
get: function () { return
|
|
7540
|
+
get: function () { return chunkXD4P4KRH_cjs.Select; }
|
|
7477
7541
|
});
|
|
7478
7542
|
Object.defineProperty(exports, "SelectContent", {
|
|
7479
7543
|
enumerable: true,
|
|
7480
|
-
get: function () { return
|
|
7544
|
+
get: function () { return chunkXD4P4KRH_cjs.SelectContent; }
|
|
7481
7545
|
});
|
|
7482
7546
|
Object.defineProperty(exports, "SelectGroup", {
|
|
7483
7547
|
enumerable: true,
|
|
7484
|
-
get: function () { return
|
|
7548
|
+
get: function () { return chunkXD4P4KRH_cjs.SelectGroup; }
|
|
7485
7549
|
});
|
|
7486
7550
|
Object.defineProperty(exports, "SelectItem", {
|
|
7487
7551
|
enumerable: true,
|
|
7488
|
-
get: function () { return
|
|
7552
|
+
get: function () { return chunkXD4P4KRH_cjs.SelectItem; }
|
|
7489
7553
|
});
|
|
7490
7554
|
Object.defineProperty(exports, "SelectLabel", {
|
|
7491
7555
|
enumerable: true,
|
|
7492
|
-
get: function () { return
|
|
7556
|
+
get: function () { return chunkXD4P4KRH_cjs.SelectLabel; }
|
|
7493
7557
|
});
|
|
7494
7558
|
Object.defineProperty(exports, "SelectScrollDownButton", {
|
|
7495
7559
|
enumerable: true,
|
|
7496
|
-
get: function () { return
|
|
7560
|
+
get: function () { return chunkXD4P4KRH_cjs.SelectScrollDownButton; }
|
|
7497
7561
|
});
|
|
7498
7562
|
Object.defineProperty(exports, "SelectScrollUpButton", {
|
|
7499
7563
|
enumerable: true,
|
|
7500
|
-
get: function () { return
|
|
7564
|
+
get: function () { return chunkXD4P4KRH_cjs.SelectScrollUpButton; }
|
|
7501
7565
|
});
|
|
7502
7566
|
Object.defineProperty(exports, "SelectSeparator", {
|
|
7503
7567
|
enumerable: true,
|
|
7504
|
-
get: function () { return
|
|
7568
|
+
get: function () { return chunkXD4P4KRH_cjs.SelectSeparator; }
|
|
7505
7569
|
});
|
|
7506
7570
|
Object.defineProperty(exports, "SelectTrigger", {
|
|
7507
7571
|
enumerable: true,
|
|
7508
|
-
get: function () { return
|
|
7572
|
+
get: function () { return chunkXD4P4KRH_cjs.SelectTrigger; }
|
|
7509
7573
|
});
|
|
7510
7574
|
Object.defineProperty(exports, "SelectValue", {
|
|
7511
7575
|
enumerable: true,
|
|
7512
|
-
get: function () { return
|
|
7576
|
+
get: function () { return chunkXD4P4KRH_cjs.SelectValue; }
|
|
7513
7577
|
});
|
|
7514
7578
|
Object.defineProperty(exports, "Separator", {
|
|
7515
7579
|
enumerable: true,
|
|
7516
|
-
get: function () { return
|
|
7580
|
+
get: function () { return chunkXD4P4KRH_cjs.Separator; }
|
|
7517
7581
|
});
|
|
7518
7582
|
Object.defineProperty(exports, "Slider", {
|
|
7519
7583
|
enumerable: true,
|
|
7520
|
-
get: function () { return
|
|
7584
|
+
get: function () { return chunkXD4P4KRH_cjs.Slider; }
|
|
7521
7585
|
});
|
|
7522
7586
|
Object.defineProperty(exports, "StatusPill", {
|
|
7523
7587
|
enumerable: true,
|
|
7524
|
-
get: function () { return
|
|
7588
|
+
get: function () { return chunkXD4P4KRH_cjs.StatusPill; }
|
|
7525
7589
|
});
|
|
7526
7590
|
Object.defineProperty(exports, "Switch", {
|
|
7527
7591
|
enumerable: true,
|
|
7528
|
-
get: function () { return
|
|
7592
|
+
get: function () { return chunkXD4P4KRH_cjs.Switch; }
|
|
7529
7593
|
});
|
|
7530
7594
|
Object.defineProperty(exports, "TAG_TYPE_ICONS", {
|
|
7531
7595
|
enumerable: true,
|
|
7532
|
-
get: function () { return
|
|
7596
|
+
get: function () { return chunkXD4P4KRH_cjs.TAG_TYPE_ICONS; }
|
|
7533
7597
|
});
|
|
7534
7598
|
Object.defineProperty(exports, "TAG_TYPE_LABELS", {
|
|
7535
7599
|
enumerable: true,
|
|
7536
|
-
get: function () { return
|
|
7600
|
+
get: function () { return chunkXD4P4KRH_cjs.TAG_TYPE_LABELS; }
|
|
7537
7601
|
});
|
|
7538
7602
|
Object.defineProperty(exports, "Table", {
|
|
7539
7603
|
enumerable: true,
|
|
7540
|
-
get: function () { return
|
|
7604
|
+
get: function () { return chunkXD4P4KRH_cjs.Table; }
|
|
7541
7605
|
});
|
|
7542
7606
|
Object.defineProperty(exports, "TableBody", {
|
|
7543
7607
|
enumerable: true,
|
|
7544
|
-
get: function () { return
|
|
7608
|
+
get: function () { return chunkXD4P4KRH_cjs.TableBody; }
|
|
7545
7609
|
});
|
|
7546
7610
|
Object.defineProperty(exports, "TableCaption", {
|
|
7547
7611
|
enumerable: true,
|
|
7548
|
-
get: function () { return
|
|
7612
|
+
get: function () { return chunkXD4P4KRH_cjs.TableCaption; }
|
|
7549
7613
|
});
|
|
7550
7614
|
Object.defineProperty(exports, "TableCell", {
|
|
7551
7615
|
enumerable: true,
|
|
7552
|
-
get: function () { return
|
|
7616
|
+
get: function () { return chunkXD4P4KRH_cjs.TableCell; }
|
|
7553
7617
|
});
|
|
7554
7618
|
Object.defineProperty(exports, "TableFooter", {
|
|
7555
7619
|
enumerable: true,
|
|
7556
|
-
get: function () { return
|
|
7620
|
+
get: function () { return chunkXD4P4KRH_cjs.TableFooter; }
|
|
7557
7621
|
});
|
|
7558
7622
|
Object.defineProperty(exports, "TableHead", {
|
|
7559
7623
|
enumerable: true,
|
|
7560
|
-
get: function () { return
|
|
7624
|
+
get: function () { return chunkXD4P4KRH_cjs.TableHead; }
|
|
7561
7625
|
});
|
|
7562
7626
|
Object.defineProperty(exports, "TableHeader", {
|
|
7563
7627
|
enumerable: true,
|
|
7564
|
-
get: function () { return
|
|
7628
|
+
get: function () { return chunkXD4P4KRH_cjs.TableHeader; }
|
|
7565
7629
|
});
|
|
7566
7630
|
Object.defineProperty(exports, "TableRow", {
|
|
7567
7631
|
enumerable: true,
|
|
7568
|
-
get: function () { return
|
|
7632
|
+
get: function () { return chunkXD4P4KRH_cjs.TableRow; }
|
|
7569
7633
|
});
|
|
7570
7634
|
Object.defineProperty(exports, "Tabs", {
|
|
7571
7635
|
enumerable: true,
|
|
7572
|
-
get: function () { return
|
|
7636
|
+
get: function () { return chunkXD4P4KRH_cjs.Tabs; }
|
|
7573
7637
|
});
|
|
7574
7638
|
Object.defineProperty(exports, "TabsContent", {
|
|
7575
7639
|
enumerable: true,
|
|
7576
|
-
get: function () { return
|
|
7640
|
+
get: function () { return chunkXD4P4KRH_cjs.TabsContent; }
|
|
7577
7641
|
});
|
|
7578
7642
|
Object.defineProperty(exports, "TabsList", {
|
|
7579
7643
|
enumerable: true,
|
|
7580
|
-
get: function () { return
|
|
7644
|
+
get: function () { return chunkXD4P4KRH_cjs.TabsList; }
|
|
7581
7645
|
});
|
|
7582
7646
|
Object.defineProperty(exports, "TabsTrigger", {
|
|
7583
7647
|
enumerable: true,
|
|
7584
|
-
get: function () { return
|
|
7648
|
+
get: function () { return chunkXD4P4KRH_cjs.TabsTrigger; }
|
|
7585
7649
|
});
|
|
7586
7650
|
Object.defineProperty(exports, "TagEntity", {
|
|
7587
7651
|
enumerable: true,
|
|
7588
|
-
get: function () { return
|
|
7652
|
+
get: function () { return chunkXD4P4KRH_cjs.TagEntity; }
|
|
7589
7653
|
});
|
|
7590
7654
|
Object.defineProperty(exports, "Textarea", {
|
|
7591
7655
|
enumerable: true,
|
|
7592
|
-
get: function () { return
|
|
7656
|
+
get: function () { return chunkXD4P4KRH_cjs.Textarea; }
|
|
7593
7657
|
});
|
|
7594
7658
|
Object.defineProperty(exports, "ThreadVisibilityIcon", {
|
|
7595
7659
|
enumerable: true,
|
|
7596
|
-
get: function () { return
|
|
7660
|
+
get: function () { return chunkXD4P4KRH_cjs.ThreadVisibilityIcon; }
|
|
7597
7661
|
});
|
|
7598
7662
|
Object.defineProperty(exports, "Toggle", {
|
|
7599
7663
|
enumerable: true,
|
|
7600
|
-
get: function () { return
|
|
7664
|
+
get: function () { return chunkXD4P4KRH_cjs.Toggle; }
|
|
7601
7665
|
});
|
|
7602
7666
|
Object.defineProperty(exports, "ToggleGroup", {
|
|
7603
7667
|
enumerable: true,
|
|
7604
|
-
get: function () { return
|
|
7668
|
+
get: function () { return chunkXD4P4KRH_cjs.ToggleGroup; }
|
|
7605
7669
|
});
|
|
7606
7670
|
Object.defineProperty(exports, "ToggleGroupItem", {
|
|
7607
7671
|
enumerable: true,
|
|
7608
|
-
get: function () { return
|
|
7672
|
+
get: function () { return chunkXD4P4KRH_cjs.ToggleGroupItem; }
|
|
7609
7673
|
});
|
|
7610
7674
|
Object.defineProperty(exports, "Tooltip", {
|
|
7611
7675
|
enumerable: true,
|
|
7612
|
-
get: function () { return
|
|
7676
|
+
get: function () { return chunkXD4P4KRH_cjs.Tooltip; }
|
|
7613
7677
|
});
|
|
7614
7678
|
Object.defineProperty(exports, "TooltipContent", {
|
|
7615
7679
|
enumerable: true,
|
|
7616
|
-
get: function () { return
|
|
7680
|
+
get: function () { return chunkXD4P4KRH_cjs.TooltipContent; }
|
|
7617
7681
|
});
|
|
7618
7682
|
Object.defineProperty(exports, "TooltipProvider", {
|
|
7619
7683
|
enumerable: true,
|
|
7620
|
-
get: function () { return
|
|
7684
|
+
get: function () { return chunkXD4P4KRH_cjs.TooltipProvider; }
|
|
7621
7685
|
});
|
|
7622
7686
|
Object.defineProperty(exports, "TooltipTrigger", {
|
|
7623
7687
|
enumerable: true,
|
|
7624
|
-
get: function () { return
|
|
7688
|
+
get: function () { return chunkXD4P4KRH_cjs.TooltipTrigger; }
|
|
7625
7689
|
});
|
|
7626
7690
|
Object.defineProperty(exports, "TxtIcon", {
|
|
7627
7691
|
enumerable: true,
|
|
7628
|
-
get: function () { return
|
|
7692
|
+
get: function () { return chunkXD4P4KRH_cjs.TxtIcon; }
|
|
7629
7693
|
});
|
|
7630
7694
|
Object.defineProperty(exports, "UserEntity", {
|
|
7631
7695
|
enumerable: true,
|
|
7632
|
-
get: function () { return
|
|
7696
|
+
get: function () { return chunkXD4P4KRH_cjs.UserEntity; }
|
|
7633
7697
|
});
|
|
7634
7698
|
Object.defineProperty(exports, "UserMenu", {
|
|
7635
7699
|
enumerable: true,
|
|
7636
|
-
get: function () { return
|
|
7700
|
+
get: function () { return chunkXD4P4KRH_cjs.UserMenu; }
|
|
7701
|
+
});
|
|
7702
|
+
Object.defineProperty(exports, "VIDEO_MIME_PREFERENCE", {
|
|
7703
|
+
enumerable: true,
|
|
7704
|
+
get: function () { return chunkXD4P4KRH_cjs.VIDEO_MIME_PREFERENCE; }
|
|
7637
7705
|
});
|
|
7638
7706
|
Object.defineProperty(exports, "VISIBILITY_ICONS", {
|
|
7639
7707
|
enumerable: true,
|
|
7640
|
-
get: function () { return
|
|
7708
|
+
get: function () { return chunkXD4P4KRH_cjs.VISIBILITY_ICONS; }
|
|
7641
7709
|
});
|
|
7642
7710
|
Object.defineProperty(exports, "VerifiedBadge", {
|
|
7643
7711
|
enumerable: true,
|
|
7644
|
-
get: function () { return
|
|
7712
|
+
get: function () { return chunkXD4P4KRH_cjs.VerifiedBadge; }
|
|
7645
7713
|
});
|
|
7646
7714
|
Object.defineProperty(exports, "VidIcon", {
|
|
7647
7715
|
enumerable: true,
|
|
7648
|
-
get: function () { return
|
|
7716
|
+
get: function () { return chunkXD4P4KRH_cjs.VidIcon; }
|
|
7649
7717
|
});
|
|
7650
7718
|
Object.defineProperty(exports, "VisibilityIcon", {
|
|
7651
7719
|
enumerable: true,
|
|
7652
|
-
get: function () { return
|
|
7720
|
+
get: function () { return chunkXD4P4KRH_cjs.VisibilityIcon; }
|
|
7653
7721
|
});
|
|
7654
7722
|
Object.defineProperty(exports, "VisibilityToggle", {
|
|
7655
7723
|
enumerable: true,
|
|
7656
|
-
get: function () { return
|
|
7724
|
+
get: function () { return chunkXD4P4KRH_cjs.VisibilityToggle; }
|
|
7657
7725
|
});
|
|
7658
7726
|
Object.defineProperty(exports, "XlsIcon", {
|
|
7659
7727
|
enumerable: true,
|
|
7660
|
-
get: function () { return
|
|
7728
|
+
get: function () { return chunkXD4P4KRH_cjs.XlsIcon; }
|
|
7661
7729
|
});
|
|
7662
7730
|
Object.defineProperty(exports, "badgeVariants", {
|
|
7663
7731
|
enumerable: true,
|
|
7664
|
-
get: function () { return
|
|
7732
|
+
get: function () { return chunkXD4P4KRH_cjs.badgeVariants; }
|
|
7665
7733
|
});
|
|
7666
7734
|
Object.defineProperty(exports, "cardVariants", {
|
|
7667
7735
|
enumerable: true,
|
|
7668
|
-
get: function () { return
|
|
7736
|
+
get: function () { return chunkXD4P4KRH_cjs.cardVariants; }
|
|
7669
7737
|
});
|
|
7670
7738
|
Object.defineProperty(exports, "classifyMediaError", {
|
|
7671
7739
|
enumerable: true,
|
|
7672
|
-
get: function () { return
|
|
7740
|
+
get: function () { return chunkXD4P4KRH_cjs.classifyMediaError; }
|
|
7673
7741
|
});
|
|
7674
7742
|
Object.defineProperty(exports, "configureEntityRegistry", {
|
|
7675
7743
|
enumerable: true,
|
|
7676
|
-
get: function () { return
|
|
7744
|
+
get: function () { return chunkXD4P4KRH_cjs.configureEntityRegistry; }
|
|
7677
7745
|
});
|
|
7678
7746
|
Object.defineProperty(exports, "configureRagLabels", {
|
|
7679
7747
|
enumerable: true,
|
|
7680
|
-
get: function () { return
|
|
7748
|
+
get: function () { return chunkXD4P4KRH_cjs.configureRagLabels; }
|
|
7681
7749
|
});
|
|
7682
7750
|
Object.defineProperty(exports, "configureStatusRegistry", {
|
|
7683
7751
|
enumerable: true,
|
|
7684
|
-
get: function () { return
|
|
7752
|
+
get: function () { return chunkXD4P4KRH_cjs.configureStatusRegistry; }
|
|
7753
|
+
});
|
|
7754
|
+
Object.defineProperty(exports, "createChunkedRecorder", {
|
|
7755
|
+
enumerable: true,
|
|
7756
|
+
get: function () { return chunkXD4P4KRH_cjs.createChunkedRecorder; }
|
|
7757
|
+
});
|
|
7758
|
+
Object.defineProperty(exports, "flushSegmenter", {
|
|
7759
|
+
enumerable: true,
|
|
7760
|
+
get: function () { return chunkXD4P4KRH_cjs.flushSegmenter; }
|
|
7685
7761
|
});
|
|
7686
7762
|
Object.defineProperty(exports, "formatElapsed", {
|
|
7687
7763
|
enumerable: true,
|
|
7688
|
-
get: function () { return
|
|
7764
|
+
get: function () { return chunkXD4P4KRH_cjs.formatElapsed; }
|
|
7689
7765
|
});
|
|
7690
7766
|
Object.defineProperty(exports, "getDocIcon", {
|
|
7691
7767
|
enumerable: true,
|
|
7692
|
-
get: function () { return
|
|
7768
|
+
get: function () { return chunkXD4P4KRH_cjs.getDocIcon; }
|
|
7693
7769
|
});
|
|
7694
7770
|
Object.defineProperty(exports, "getEntityColor", {
|
|
7695
7771
|
enumerable: true,
|
|
7696
|
-
get: function () { return
|
|
7772
|
+
get: function () { return chunkXD4P4KRH_cjs.getEntityColor; }
|
|
7697
7773
|
});
|
|
7698
7774
|
Object.defineProperty(exports, "getEntityColorStyles", {
|
|
7699
7775
|
enumerable: true,
|
|
7700
|
-
get: function () { return
|
|
7776
|
+
get: function () { return chunkXD4P4KRH_cjs.getEntityColorStyles; }
|
|
7701
7777
|
});
|
|
7702
7778
|
Object.defineProperty(exports, "getEntityIcon", {
|
|
7703
7779
|
enumerable: true,
|
|
7704
|
-
get: function () { return
|
|
7780
|
+
get: function () { return chunkXD4P4KRH_cjs.getEntityIcon; }
|
|
7705
7781
|
});
|
|
7706
7782
|
Object.defineProperty(exports, "getEntityLabel", {
|
|
7707
7783
|
enumerable: true,
|
|
7708
|
-
get: function () { return
|
|
7784
|
+
get: function () { return chunkXD4P4KRH_cjs.getEntityLabel; }
|
|
7709
7785
|
});
|
|
7710
7786
|
Object.defineProperty(exports, "getStatusVariant", {
|
|
7711
7787
|
enumerable: true,
|
|
7712
|
-
get: function () { return
|
|
7788
|
+
get: function () { return chunkXD4P4KRH_cjs.getStatusVariant; }
|
|
7713
7789
|
});
|
|
7714
7790
|
Object.defineProperty(exports, "getTagTypeIcon", {
|
|
7715
7791
|
enumerable: true,
|
|
7716
|
-
get: function () { return
|
|
7792
|
+
get: function () { return chunkXD4P4KRH_cjs.getTagTypeIcon; }
|
|
7717
7793
|
});
|
|
7718
7794
|
Object.defineProperty(exports, "getTagTypeLabel", {
|
|
7719
7795
|
enumerable: true,
|
|
7720
|
-
get: function () { return
|
|
7796
|
+
get: function () { return chunkXD4P4KRH_cjs.getTagTypeLabel; }
|
|
7721
7797
|
});
|
|
7722
7798
|
Object.defineProperty(exports, "getWorkspaceColor", {
|
|
7723
7799
|
enumerable: true,
|
|
7724
|
-
get: function () { return
|
|
7800
|
+
get: function () { return chunkXD4P4KRH_cjs.getWorkspaceColor; }
|
|
7801
|
+
});
|
|
7802
|
+
Object.defineProperty(exports, "levelFromRms", {
|
|
7803
|
+
enumerable: true,
|
|
7804
|
+
get: function () { return chunkXD4P4KRH_cjs.levelFromRms; }
|
|
7805
|
+
});
|
|
7806
|
+
Object.defineProperty(exports, "pickRecorderMimeType", {
|
|
7807
|
+
enumerable: true,
|
|
7808
|
+
get: function () { return chunkXD4P4KRH_cjs.pickRecorderMimeType; }
|
|
7809
|
+
});
|
|
7810
|
+
Object.defineProperty(exports, "stepSegmenter", {
|
|
7811
|
+
enumerable: true,
|
|
7812
|
+
get: function () { return chunkXD4P4KRH_cjs.stepSegmenter; }
|
|
7725
7813
|
});
|
|
7726
7814
|
Object.defineProperty(exports, "toggleVariants", {
|
|
7727
7815
|
enumerable: true,
|
|
7728
|
-
get: function () { return
|
|
7816
|
+
get: function () { return chunkXD4P4KRH_cjs.toggleVariants; }
|
|
7729
7817
|
});
|
|
7730
7818
|
Object.defineProperty(exports, "useAudioRecorder", {
|
|
7731
7819
|
enumerable: true,
|
|
7732
|
-
get: function () { return
|
|
7820
|
+
get: function () { return chunkXD4P4KRH_cjs.useAudioRecorder; }
|
|
7733
7821
|
});
|
|
7734
7822
|
Object.defineProperty(exports, "MarkdownRenderer", {
|
|
7735
7823
|
enumerable: true,
|
|
@@ -8019,7 +8107,6 @@ exports.toProfileView = toProfileView;
|
|
|
8019
8107
|
exports.toRedlineMarkdown = toRedlineMarkdown;
|
|
8020
8108
|
exports.toShellWorkspace = toShellWorkspace;
|
|
8021
8109
|
exports.useActOnStep = useActOnStep;
|
|
8022
|
-
exports.useAddContacts = useAddContacts;
|
|
8023
8110
|
exports.useAgentChats = useAgentChats;
|
|
8024
8111
|
exports.useAgentConfig = useAgentConfig;
|
|
8025
8112
|
exports.useAgentModels = useAgentModels;
|
|
@@ -8050,11 +8137,13 @@ exports.useConversationActivity = useConversationActivity;
|
|
|
8050
8137
|
exports.useConversationPendingAuth = useConversationPendingAuth;
|
|
8051
8138
|
exports.useConversationUsage = useConversationUsage;
|
|
8052
8139
|
exports.useCreateAgent = useCreateAgent;
|
|
8140
|
+
exports.useCreateContact = useCreateContact;
|
|
8053
8141
|
exports.useCreateWork = useCreateWork;
|
|
8054
8142
|
exports.useCreateWorkflow = useCreateWorkflow;
|
|
8055
8143
|
exports.useCurrentSessionId = useCurrentSessionId;
|
|
8056
8144
|
exports.useDeleteAccount = useDeleteAccount;
|
|
8057
8145
|
exports.useDeleteAccountFlow = useDeleteAccountFlow;
|
|
8146
|
+
exports.useDeleteContact = useDeleteContact;
|
|
8058
8147
|
exports.useDeleteWorkflow = useDeleteWorkflow;
|
|
8059
8148
|
exports.useDirectMessages = useDirectMessages;
|
|
8060
8149
|
exports.useDisconnectMailAccount = useDisconnectMailAccount;
|
|
@@ -8065,6 +8154,7 @@ exports.useGrantAgentAccess = useGrantAgentAccess;
|
|
|
8065
8154
|
exports.useIdentityVerification = useIdentityVerification;
|
|
8066
8155
|
exports.useIdentityVerificationFlow = useIdentityVerificationFlow;
|
|
8067
8156
|
exports.useInvalidateTagData = useInvalidateTagData;
|
|
8157
|
+
exports.useInviteContacts = useInviteContacts;
|
|
8068
8158
|
exports.useLogoutAllSessions = useLogoutAllSessions;
|
|
8069
8159
|
exports.useMailAccounts = useMailAccounts;
|
|
8070
8160
|
exports.useMailCache = useMailCache;
|
|
@@ -8088,7 +8178,6 @@ exports.usePlanWork = usePlanWork;
|
|
|
8088
8178
|
exports.useProfile = useProfile;
|
|
8089
8179
|
exports.useProjectConversationUsage = useProjectConversationUsage;
|
|
8090
8180
|
exports.useProjectEvents = useProjectEvents;
|
|
8091
|
-
exports.useRemoveContacts = useRemoveContacts;
|
|
8092
8181
|
exports.useRequestEmailChange = useRequestEmailChange;
|
|
8093
8182
|
exports.useRevokeAgentAccess = useRevokeAgentAccess;
|
|
8094
8183
|
exports.useRunConversation = useRunConversation;
|
|
@@ -8105,6 +8194,7 @@ exports.useStartAgentSession = useStartAgentSession;
|
|
|
8105
8194
|
exports.useStartWorkQuery = useStartWorkQuery;
|
|
8106
8195
|
exports.useTagKindSchema = useTagKindSchema;
|
|
8107
8196
|
exports.useTerminateSession = useTerminateSession;
|
|
8197
|
+
exports.useUpdateContact = useUpdateContact;
|
|
8108
8198
|
exports.useUpdateConversation = useUpdateConversation;
|
|
8109
8199
|
exports.useUpdateMailMessage = useUpdateMailMessage;
|
|
8110
8200
|
exports.useUpdateProfile = useUpdateProfile;
|