@arbidocs/react 0.5.19 → 0.5.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ProductionDialog.d-CttHqQAh.d.ts → ProductionDialog.d-BDJwBSzj.d.ts} +1 -1
- package/dist/{ProductionDialog.d-BD1osHeq.d.cts → ProductionDialog.d-DjRQFmQw.d.cts} +1 -1
- package/dist/annotations/freeze/index.cjs +15 -15
- package/dist/annotations/freeze/index.d.cts +1 -1
- package/dist/annotations/freeze/index.d.ts +1 -1
- package/dist/annotations/freeze/index.js +3 -3
- package/dist/annotations/index.cjs +56 -56
- package/dist/annotations/index.d.cts +5 -5
- package/dist/annotations/index.d.ts +5 -5
- package/dist/annotations/index.js +2 -2
- package/dist/artifacts/index.cjs +10 -10
- package/dist/artifacts/index.js +3 -3
- package/dist/bundle-DCWPYNGD.cjs +14 -0
- package/dist/{bundle-B5AN4B7H.cjs.map → bundle-DCWPYNGD.cjs.map} +1 -1
- package/dist/bundle-JCKKGEJE.js +5 -0
- package/dist/{bundle-4TKU5WEQ.js.map → bundle-JCKKGEJE.js.map} +1 -1
- package/dist/calls/livekit/index.cjs +42 -42
- package/dist/calls/livekit/index.js +3 -3
- package/dist/{chunk-YWYCEEBF.js → chunk-2HVCNYFH.js} +32 -3
- package/dist/chunk-2HVCNYFH.js.map +1 -0
- package/dist/{chunk-NSSGDZSL.cjs → chunk-2IJP73ZG.cjs} +2 -2
- package/dist/{chunk-NSSGDZSL.cjs.map → chunk-2IJP73ZG.cjs.map} +1 -1
- package/dist/{chunk-KFFH2JJM.cjs → chunk-4UDIA47U.cjs} +32 -32
- package/dist/{chunk-KFFH2JJM.cjs.map → chunk-4UDIA47U.cjs.map} +1 -1
- package/dist/{chunk-D63FAYES.js → chunk-A2XSLTIP.js} +5 -5
- package/dist/chunk-A2XSLTIP.js.map +1 -0
- package/dist/{chunk-EYOXZHXM.cjs → chunk-B6I2HRRF.cjs} +9 -9
- package/dist/chunk-B6I2HRRF.cjs.map +1 -0
- package/dist/{chunk-2M4B4FFA.cjs → chunk-CZP7FF3E.cjs} +31 -2
- package/dist/chunk-CZP7FF3E.cjs.map +1 -0
- package/dist/{chunk-GUCQMP6G.js → chunk-DUU537MW.js} +4 -4
- package/dist/{chunk-GUCQMP6G.js.map → chunk-DUU537MW.js.map} +1 -1
- package/dist/{chunk-4VQ3XHAQ.cjs → chunk-DYCONTUK.cjs} +41 -41
- package/dist/{chunk-4VQ3XHAQ.cjs.map → chunk-DYCONTUK.cjs.map} +1 -1
- package/dist/{chunk-CNRF5SLZ.cjs → chunk-FLAZSNC5.cjs} +33 -33
- package/dist/{chunk-CNRF5SLZ.cjs.map → chunk-FLAZSNC5.cjs.map} +1 -1
- package/dist/{chunk-J2GERLMU.js → chunk-LYGJVSNM.js} +3 -3
- package/dist/{chunk-J2GERLMU.js.map → chunk-LYGJVSNM.js.map} +1 -1
- package/dist/{chunk-GN33GLHR.js → chunk-MQ7LZWGP.js} +3 -3
- package/dist/{chunk-GN33GLHR.js.map → chunk-MQ7LZWGP.js.map} +1 -1
- package/dist/{chunk-RG2ZE7DF.js → chunk-PBXJFMES.js} +5 -2
- package/dist/chunk-PBXJFMES.js.map +1 -0
- package/dist/{chunk-H4FGDXYB.cjs → chunk-RRWAX52L.cjs} +5 -2
- package/dist/chunk-RRWAX52L.cjs.map +1 -0
- package/dist/{chunk-ALLWAYMB.cjs → chunk-SUZORMAB.cjs} +157 -65
- package/dist/chunk-SUZORMAB.cjs.map +1 -0
- package/dist/{chunk-XTWUMTCQ.js → chunk-T3USOSVN.js} +2 -2
- package/dist/{chunk-XTWUMTCQ.js.map → chunk-T3USOSVN.js.map} +1 -1
- package/dist/{chunk-2XMHFQ7M.js → chunk-T4CLW3DN.js} +141 -49
- package/dist/chunk-T4CLW3DN.js.map +1 -0
- package/dist/document-tools/index.cjs +174 -69
- package/dist/document-tools/index.cjs.map +1 -1
- package/dist/document-tools/index.d.cts +99 -6
- package/dist/document-tools/index.d.ts +99 -6
- package/dist/document-tools/index.js +107 -10
- package/dist/document-tools/index.js.map +1 -1
- package/dist/index.cjs +855 -746
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +68 -8
- package/dist/index.d.ts +68 -8
- package/dist/index.js +118 -12
- package/dist/index.js.map +1 -1
- package/dist/{model.d-D63gedpb.d.cts → model.d-CNtRWKVK.d.cts} +1 -1
- package/dist/{model.d-D63gedpb.d.ts → model.d-CNtRWKVK.d.ts} +1 -1
- package/dist/{query-keys.d-ClYiYNBR.d.cts → query-keys.d-DM2N5pzN.d.cts} +3 -0
- package/dist/{query-keys.d-ClYiYNBR.d.ts → query-keys.d-DM2N5pzN.d.ts} +3 -0
- package/dist/shell/index.cjs +1 -1
- package/dist/shell/index.js +1 -1
- package/dist/ui/index.cjs +9 -9
- package/dist/ui/index.js +1 -1
- package/package.json +3 -3
- package/dist/bundle-4TKU5WEQ.js +0 -5
- package/dist/bundle-B5AN4B7H.cjs +0 -14
- package/dist/chunk-2M4B4FFA.cjs.map +0 -1
- package/dist/chunk-2XMHFQ7M.js.map +0 -1
- package/dist/chunk-ALLWAYMB.cjs.map +0 -1
- package/dist/chunk-D63FAYES.js.map +0 -1
- package/dist/chunk-EYOXZHXM.cjs.map +0 -1
- package/dist/chunk-H4FGDXYB.cjs.map +0 -1
- package/dist/chunk-RG2ZE7DF.js.map +0 -1
- package/dist/chunk-YWYCEEBF.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkFLAZSNC5_cjs = require('./chunk-FLAZSNC5.cjs');
|
|
4
|
+
var chunkRRWAX52L_cjs = require('./chunk-RRWAX52L.cjs');
|
|
5
5
|
var chunkVAMPYLQ4_cjs = require('./chunk-VAMPYLQ4.cjs');
|
|
6
6
|
var chunkEEIYXVM4_cjs = require('./chunk-EEIYXVM4.cjs');
|
|
7
7
|
var chunkQQ7SCJRY_cjs = require('./chunk-QQ7SCJRY.cjs');
|
|
@@ -19,7 +19,7 @@ var LISTS = {
|
|
|
19
19
|
};
|
|
20
20
|
function patchConversationList(queryClient, workspaceId, reducer) {
|
|
21
21
|
if (!workspaceId) return;
|
|
22
|
-
const key =
|
|
22
|
+
const key = chunkRRWAX52L_cjs.arbiQueryKeys.conversations(workspaceId);
|
|
23
23
|
const current = queryClient.getQueryData(key) ?? [];
|
|
24
24
|
const next = reducer(current);
|
|
25
25
|
if (next !== current) queryClient.setQueryData(key, next);
|
|
@@ -85,11 +85,11 @@ function useProfile(options) {
|
|
|
85
85
|
const { client, enabled } = useAccountClient();
|
|
86
86
|
const qc = reactQuery.useQueryClient();
|
|
87
87
|
react.useEffect(
|
|
88
|
-
() => client.onProfileChange(() => qc.setQueryData(
|
|
88
|
+
() => client.onProfileChange(() => qc.setQueryData(chunkRRWAX52L_cjs.arbiQueryKeys.profile(), client.profile())),
|
|
89
89
|
[client, qc]
|
|
90
90
|
);
|
|
91
91
|
return reactQuery.useQuery({
|
|
92
|
-
queryKey:
|
|
92
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.profile(),
|
|
93
93
|
queryFn: () => client.profile(),
|
|
94
94
|
enabled: (options?.enabled ?? true) && enabled,
|
|
95
95
|
staleTime: Infinity
|
|
@@ -104,9 +104,9 @@ function useUpdateProfile() {
|
|
|
104
104
|
return client.profile();
|
|
105
105
|
},
|
|
106
106
|
onSuccess: (profile) => {
|
|
107
|
-
qc.setQueryData(
|
|
108
|
-
void qc.invalidateQueries({ queryKey:
|
|
109
|
-
return qc.invalidateQueries({ queryKey:
|
|
107
|
+
qc.setQueryData(chunkRRWAX52L_cjs.arbiQueryKeys.profile(), profile);
|
|
108
|
+
void qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.identity() });
|
|
109
|
+
return qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaces() });
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
112
|
}
|
|
@@ -208,7 +208,7 @@ function arbiAccountClient(arbi, overrides = {}) {
|
|
|
208
208
|
if (everywhere) await arbi.sessions.logoutAll();
|
|
209
209
|
else await arbi.logout();
|
|
210
210
|
} finally {
|
|
211
|
-
|
|
211
|
+
chunkFLAZSNC5_cjs.clearSealedDrafts();
|
|
212
212
|
}
|
|
213
213
|
},
|
|
214
214
|
requestDeletion: () => arbi.account.requestDeletion(),
|
|
@@ -265,7 +265,7 @@ function useAccountClient() {
|
|
|
265
265
|
function useEntitlements() {
|
|
266
266
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
267
267
|
return reactQuery.useQuery({
|
|
268
|
-
queryKey:
|
|
268
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.entitlements(),
|
|
269
269
|
queryFn: () => arbi.account.entitlements(),
|
|
270
270
|
enabled: arbi.isLoggedIn,
|
|
271
271
|
// A plan change shows on the next read; the API enforces it at once either way.
|
|
@@ -298,10 +298,10 @@ function entitlementRefusal(reason) {
|
|
|
298
298
|
|
|
299
299
|
// src/calls/keys.ts
|
|
300
300
|
function invalidateCall(queryClient, message) {
|
|
301
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
301
|
+
void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.callQueryKeys.call(message.call_ext_id) });
|
|
302
302
|
const thread = message.log_conversation_ext_id;
|
|
303
303
|
if (thread) {
|
|
304
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
304
|
+
void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.conversationActivity(thread) });
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
307
|
function myChatId(arbi) {
|
|
@@ -324,13 +324,13 @@ function byActivity(a, b) {
|
|
|
324
324
|
return bt - at;
|
|
325
325
|
}
|
|
326
326
|
function cachedChats(queryClient) {
|
|
327
|
-
return queryClient.getQueryData(
|
|
327
|
+
return queryClient.getQueryData(chunkRRWAX52L_cjs.arbiQueryKeys.chatList()) ?? [];
|
|
328
328
|
}
|
|
329
329
|
function cachedChat(queryClient, chatExtId) {
|
|
330
330
|
return cachedChats(queryClient).find((c) => c.external_id === chatExtId);
|
|
331
331
|
}
|
|
332
332
|
function upsertChat(queryClient, chat) {
|
|
333
|
-
queryClient.setQueryData(
|
|
333
|
+
queryClient.setQueryData(chunkRRWAX52L_cjs.arbiQueryKeys.chatList(), (old) => {
|
|
334
334
|
if (!old) return old;
|
|
335
335
|
const rest = old.filter((c) => c.external_id !== chat.external_id);
|
|
336
336
|
return [chat, ...rest].sort(byActivity);
|
|
@@ -338,13 +338,13 @@ function upsertChat(queryClient, chat) {
|
|
|
338
338
|
}
|
|
339
339
|
function removeChat(queryClient, chatExtId) {
|
|
340
340
|
queryClient.setQueryData(
|
|
341
|
-
|
|
341
|
+
chunkRRWAX52L_cjs.arbiQueryKeys.chatList(),
|
|
342
342
|
(old) => old?.filter((c) => c.external_id !== chatExtId)
|
|
343
343
|
);
|
|
344
|
-
queryClient.removeQueries({ queryKey:
|
|
344
|
+
queryClient.removeQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.chatThread(chatExtId) });
|
|
345
345
|
}
|
|
346
346
|
function appendToThread(queryClient, chatExtId, message, replaceOptimisticId) {
|
|
347
|
-
queryClient.setQueryData(
|
|
347
|
+
queryClient.setQueryData(chunkRRWAX52L_cjs.arbiQueryKeys.chatThread(chatExtId), (old) => {
|
|
348
348
|
if (!old) return old;
|
|
349
349
|
const without = old.messages.filter(
|
|
350
350
|
(m) => m.external_id !== message.external_id && m.external_id !== replaceOptimisticId
|
|
@@ -354,12 +354,12 @@ function appendToThread(queryClient, chatExtId, message, replaceOptimisticId) {
|
|
|
354
354
|
}
|
|
355
355
|
function dropFromThread(queryClient, chatExtId, messageExtId) {
|
|
356
356
|
queryClient.setQueryData(
|
|
357
|
-
|
|
357
|
+
chunkRRWAX52L_cjs.arbiQueryKeys.chatThread(chatExtId),
|
|
358
358
|
(old) => old ? { ...old, messages: old.messages.filter((m) => m.external_id !== messageExtId) } : old
|
|
359
359
|
);
|
|
360
360
|
}
|
|
361
361
|
function replaceInThread(queryClient, chatExtId, message) {
|
|
362
|
-
queryClient.setQueryData(
|
|
362
|
+
queryClient.setQueryData(chunkRRWAX52L_cjs.arbiQueryKeys.chatThread(chatExtId), (old) => {
|
|
363
363
|
if (!old || !old.messages.some((m) => m.external_id === message.external_id)) return old;
|
|
364
364
|
return {
|
|
365
365
|
...old,
|
|
@@ -369,14 +369,14 @@ function replaceInThread(queryClient, chatExtId, message) {
|
|
|
369
369
|
}
|
|
370
370
|
function patchLastMessage(queryClient, chatExtId, message) {
|
|
371
371
|
queryClient.setQueryData(
|
|
372
|
-
|
|
372
|
+
chunkRRWAX52L_cjs.arbiQueryKeys.chatList(),
|
|
373
373
|
(old) => old?.map(
|
|
374
374
|
(c) => c.external_id === chatExtId && c.last_message?.external_id === message.external_id ? { ...c, last_message: message } : c
|
|
375
375
|
)
|
|
376
376
|
);
|
|
377
377
|
}
|
|
378
378
|
async function deleteChatMessage(arbi, queryClient, chatExtId, messageExtId) {
|
|
379
|
-
const thread = queryClient.getQueryData(
|
|
379
|
+
const thread = queryClient.getQueryData(chunkRRWAX52L_cjs.arbiQueryKeys.chatThread(chatExtId));
|
|
380
380
|
const before = thread?.messages.find((m) => m.external_id === messageExtId);
|
|
381
381
|
const listed = cachedChat(queryClient, chatExtId);
|
|
382
382
|
const wasLast = listed?.last_message?.external_id === messageExtId ? listed.last_message : null;
|
|
@@ -397,7 +397,7 @@ async function applyChangedMessage(arbi, queryClient, chatExtId, message) {
|
|
|
397
397
|
return;
|
|
398
398
|
}
|
|
399
399
|
const chat = cachedChat(queryClient, chatExtId);
|
|
400
|
-
if (!chat || !queryClient.getQueryData(
|
|
400
|
+
if (!chat || !queryClient.getQueryData(chunkRRWAX52L_cjs.arbiQueryKeys.chatThread(chatExtId))) return;
|
|
401
401
|
try {
|
|
402
402
|
replaceInThread(queryClient, chatExtId, await arbi.chats.decrypt(chat, message));
|
|
403
403
|
} catch (err) {
|
|
@@ -409,7 +409,7 @@ async function applyChatMessage(arbi, queryClient, chatExtId, message) {
|
|
|
409
409
|
const me = myChatId(arbi);
|
|
410
410
|
const chat = cachedChat(queryClient, chatExtId);
|
|
411
411
|
if (!chat) {
|
|
412
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
412
|
+
void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.chatList() });
|
|
413
413
|
return;
|
|
414
414
|
}
|
|
415
415
|
const mine = message.sender_ext_id === me;
|
|
@@ -423,7 +423,7 @@ async function applyChatMessage(arbi, queryClient, chatExtId, message) {
|
|
|
423
423
|
(m) => m.user.external_id === me ? { ...m, last_read_at: message.created_at } : m
|
|
424
424
|
) : chat.members
|
|
425
425
|
});
|
|
426
|
-
if (queryClient.getQueryData(
|
|
426
|
+
if (queryClient.getQueryData(chunkRRWAX52L_cjs.arbiQueryKeys.chatThread(chatExtId))) {
|
|
427
427
|
try {
|
|
428
428
|
appendToThread(queryClient, chatExtId, await arbi.chats.decrypt(chat, message));
|
|
429
429
|
} catch (err) {
|
|
@@ -434,7 +434,7 @@ async function applyChatMessage(arbi, queryClient, chatExtId, message) {
|
|
|
434
434
|
function applyChatRead(arbi, queryClient, chatExtId, userExtId, lastReadAt) {
|
|
435
435
|
const me = myChatId(arbi);
|
|
436
436
|
queryClient.setQueryData(
|
|
437
|
-
|
|
437
|
+
chunkRRWAX52L_cjs.arbiQueryKeys.chatList(),
|
|
438
438
|
(old) => old?.map(
|
|
439
439
|
(c) => c.external_id !== chatExtId ? c : {
|
|
440
440
|
...c,
|
|
@@ -460,11 +460,11 @@ async function applyChatUpdated(arbi, queryClient, chatExtId, message) {
|
|
|
460
460
|
}
|
|
461
461
|
upsertChat(queryClient, chat);
|
|
462
462
|
if (!message)
|
|
463
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
463
|
+
void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.chatThread(chatExtId) });
|
|
464
464
|
}
|
|
465
465
|
function applyAgentDmStatus(queryClient, status) {
|
|
466
466
|
if (!["queued", "working", "done", "failed"].includes(status.status)) return;
|
|
467
|
-
queryClient.setQueryData(
|
|
467
|
+
queryClient.setQueryData(chunkRRWAX52L_cjs.arbiQueryKeys.agentDmStatus(status.agent_ext_id), status);
|
|
468
468
|
}
|
|
469
469
|
async function applyChatEvent(arbi, queryClient, event) {
|
|
470
470
|
const e = event;
|
|
@@ -575,7 +575,7 @@ function ensureMeetingChat(arbi, queryClient, callExtId, callKey) {
|
|
|
575
575
|
});
|
|
576
576
|
if (!ref) throw new Error("The server did not return a meeting chat");
|
|
577
577
|
if (ref.kind === "chat")
|
|
578
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
578
|
+
void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.chatList() });
|
|
579
579
|
else void invalidateConversationLists(queryClient);
|
|
580
580
|
return ref;
|
|
581
581
|
})();
|
|
@@ -1583,7 +1583,7 @@ async function transcribeRecording(params) {
|
|
|
1583
1583
|
function useCallsConfig() {
|
|
1584
1584
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
1585
1585
|
const { data } = reactQuery.useQuery({
|
|
1586
|
-
queryKey:
|
|
1586
|
+
queryKey: chunkRRWAX52L_cjs.callQueryKeys.config(),
|
|
1587
1587
|
queryFn: () => arbi.calls.config(),
|
|
1588
1588
|
enabled: arbi.isLoggedIn,
|
|
1589
1589
|
staleTime: 5 * 6e4,
|
|
@@ -1600,7 +1600,7 @@ function useCallTranscriptionAvailable() {
|
|
|
1600
1600
|
function useCall(callExtId) {
|
|
1601
1601
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
1602
1602
|
return reactQuery.useQuery({
|
|
1603
|
-
queryKey:
|
|
1603
|
+
queryKey: chunkRRWAX52L_cjs.callQueryKeys.call(callExtId ?? ""),
|
|
1604
1604
|
queryFn: () => arbi.calls.get(callExtId),
|
|
1605
1605
|
enabled: !!callExtId && arbi.isLoggedIn,
|
|
1606
1606
|
staleTime: 6e4,
|
|
@@ -1610,7 +1610,7 @@ function useCall(callExtId) {
|
|
|
1610
1610
|
function useCallRecordings(callExtId, enabled = true) {
|
|
1611
1611
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
1612
1612
|
return reactQuery.useQuery({
|
|
1613
|
-
queryKey:
|
|
1613
|
+
queryKey: chunkRRWAX52L_cjs.callQueryKeys.recordings(callExtId ?? ""),
|
|
1614
1614
|
queryFn: () => arbi.calls.recording.list(callExtId),
|
|
1615
1615
|
enabled: !!callExtId && enabled && arbi.isLoggedIn,
|
|
1616
1616
|
retry: false
|
|
@@ -1619,7 +1619,7 @@ function useCallRecordings(callExtId, enabled = true) {
|
|
|
1619
1619
|
function useCallRecording(callExtId, recordingExtId) {
|
|
1620
1620
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
1621
1621
|
return reactQuery.useQuery({
|
|
1622
|
-
queryKey:
|
|
1622
|
+
queryKey: chunkRRWAX52L_cjs.callQueryKeys.recording(callExtId ?? "", recordingExtId ?? ""),
|
|
1623
1623
|
queryFn: () => arbi.calls.recording.get(callExtId, recordingExtId),
|
|
1624
1624
|
enabled: !!callExtId && !!recordingExtId && arbi.isLoggedIn,
|
|
1625
1625
|
retry: false
|
|
@@ -1633,7 +1633,7 @@ function useRecordingWindows(callExtId, enabled) {
|
|
|
1633
1633
|
function useCallInviteLinks(callExtId) {
|
|
1634
1634
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
1635
1635
|
return reactQuery.useQuery({
|
|
1636
|
-
queryKey:
|
|
1636
|
+
queryKey: chunkRRWAX52L_cjs.callQueryKeys.inviteLinks(callExtId ?? ""),
|
|
1637
1637
|
queryFn: () => arbi.calls.inviteLinks.list(callExtId),
|
|
1638
1638
|
enabled: !!callExtId && arbi.isLoggedIn,
|
|
1639
1639
|
retry: false
|
|
@@ -1645,7 +1645,7 @@ function useRecordingActions(call) {
|
|
|
1645
1645
|
return react.useMemo(
|
|
1646
1646
|
() => ({
|
|
1647
1647
|
refresh: () => void queryClient.invalidateQueries({
|
|
1648
|
-
queryKey:
|
|
1648
|
+
queryKey: chunkRRWAX52L_cjs.callQueryKeys.recordingsOf(call.external_id)
|
|
1649
1649
|
}),
|
|
1650
1650
|
open: (recording) => openRecording(arbi, queryClient, call, recording.external_id, recording),
|
|
1651
1651
|
transcribe: async (opened, onProgress) => transcribeRecording({
|
|
@@ -1666,7 +1666,7 @@ function useRevokeCallInviteLink(callExtId) {
|
|
|
1666
1666
|
return react.useCallback(
|
|
1667
1667
|
async (inviteExtId) => {
|
|
1668
1668
|
await arbi.calls.inviteLinks.revoke(callExtId, inviteExtId);
|
|
1669
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1669
|
+
void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.callQueryKeys.inviteLinks(callExtId) });
|
|
1670
1670
|
},
|
|
1671
1671
|
[arbi, queryClient, callExtId]
|
|
1672
1672
|
);
|
|
@@ -1918,19 +1918,19 @@ function applyCallEvent(queryClient, event, options = {}) {
|
|
|
1918
1918
|
}
|
|
1919
1919
|
case "call.recording": {
|
|
1920
1920
|
if (callExtId)
|
|
1921
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1921
|
+
void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.callQueryKeys.recordingsOf(callExtId) });
|
|
1922
1922
|
const state2 = browser.calls.recordingStateFrom(m);
|
|
1923
1923
|
relay("call.recording", callExtId && state2 ? { ...state2, call_ext_id: callExtId } : null);
|
|
1924
1924
|
return true;
|
|
1925
1925
|
}
|
|
1926
1926
|
case "call.recording_updated": {
|
|
1927
1927
|
if (callExtId)
|
|
1928
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1928
|
+
void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.callQueryKeys.recordingsOf(callExtId) });
|
|
1929
1929
|
return true;
|
|
1930
1930
|
}
|
|
1931
1931
|
case "call.recording_deleted": {
|
|
1932
1932
|
if (callExtId)
|
|
1933
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1933
|
+
void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.callQueryKeys.recordingsOf(callExtId) });
|
|
1934
1934
|
const recordingExtId = str(m.recording_ext_id);
|
|
1935
1935
|
relay(
|
|
1936
1936
|
"call.recording_deleted",
|
|
@@ -2318,7 +2318,7 @@ function isWorkspaceGuestOf(workspaces, workspaceExtId, me) {
|
|
|
2318
2318
|
function useMeetingReadOnly(lockedWorkspaceExtId) {
|
|
2319
2319
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
2320
2320
|
const me = arbi.isLoggedIn ? arbi.user.identity()?.externalId ?? null : null;
|
|
2321
|
-
const { data: workspaces } =
|
|
2321
|
+
const { data: workspaces } = chunkFLAZSNC5_cjs.useWorkspaces({
|
|
2322
2322
|
enabled: !!lockedWorkspaceExtId && arbi.isLoggedIn
|
|
2323
2323
|
});
|
|
2324
2324
|
return isWorkspaceGuestOf(
|
|
@@ -2547,5 +2547,5 @@ exports.useServerCallsEnabled = useServerCallsEnabled;
|
|
|
2547
2547
|
exports.useUpdateProfile = useUpdateProfile;
|
|
2548
2548
|
exports.wrapTrackKey = wrapTrackKey;
|
|
2549
2549
|
exports.writeSamples = writeSamples;
|
|
2550
|
-
//# sourceMappingURL=chunk-
|
|
2551
|
-
//# sourceMappingURL=chunk-
|
|
2550
|
+
//# sourceMappingURL=chunk-DYCONTUK.cjs.map
|
|
2551
|
+
//# sourceMappingURL=chunk-DYCONTUK.cjs.map
|