@arbidocs/react 0.5.109 → 0.5.111
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/PdfViewerImpl-QUSDLNNM.cjs +380 -0
- package/dist/PdfViewerImpl-QUSDLNNM.cjs.map +1 -0
- package/dist/PdfViewerImpl-TEBYF2QI.js +378 -0
- package/dist/PdfViewerImpl-TEBYF2QI.js.map +1 -0
- package/dist/{PdfViewer.d-bQH9yxFg.d.cts → PdfViewerImpl.d-B28hLEuj.d.cts} +8 -1
- package/dist/{PdfViewer.d-bQH9yxFg.d.ts → PdfViewerImpl.d-B28hLEuj.d.ts} +8 -1
- package/dist/annotations/freeze/index.d.cts +1 -1
- package/dist/annotations/freeze/index.d.ts +1 -1
- package/dist/artifacts/index.cjs +13 -13
- package/dist/artifacts/index.js +3 -3
- package/dist/calls/livekit/index.cjs +48 -48
- package/dist/calls/livekit/index.js +3 -3
- package/dist/{chunk-W2FATOTX.cjs → chunk-3JAEX57E.cjs} +4 -4
- package/dist/{chunk-W2FATOTX.cjs.map → chunk-3JAEX57E.cjs.map} +1 -1
- package/dist/{chunk-H5M7FXLB.js → chunk-4FL3X3LA.js} +3 -3
- package/dist/{chunk-H5M7FXLB.js.map → chunk-4FL3X3LA.js.map} +1 -1
- package/dist/{chunk-HD5H2PPP.cjs → chunk-5TRUFWKT.cjs} +66 -66
- package/dist/{chunk-HD5H2PPP.cjs.map → chunk-5TRUFWKT.cjs.map} +1 -1
- package/dist/chunk-6QNBSXCE.js +271 -0
- package/dist/chunk-6QNBSXCE.js.map +1 -0
- package/dist/{chunk-QF2BW6HZ.cjs → chunk-DI5KSVKY.cjs} +38 -38
- package/dist/{chunk-QF2BW6HZ.cjs.map → chunk-DI5KSVKY.cjs.map} +1 -1
- package/dist/{chunk-DQALOQPI.js → chunk-DZKRL5H3.js} +4 -4
- package/dist/{chunk-DQALOQPI.js.map → chunk-DZKRL5H3.js.map} +1 -1
- package/dist/{chunk-RVUGSM65.cjs → chunk-GKGAPU6T.cjs} +44 -44
- package/dist/{chunk-RVUGSM65.cjs.map → chunk-GKGAPU6T.cjs.map} +1 -1
- package/dist/chunk-L2IPPTVC.js +20 -0
- package/dist/chunk-L2IPPTVC.js.map +1 -0
- package/dist/{chunk-FZJMA32S.js → chunk-LSU4UPS5.js} +4 -4
- package/dist/{chunk-FZJMA32S.js.map → chunk-LSU4UPS5.js.map} +1 -1
- package/dist/{chunk-7LIMHY56.cjs → chunk-O32T7XRD.cjs} +3 -3
- package/dist/{chunk-7LIMHY56.cjs.map → chunk-O32T7XRD.cjs.map} +1 -1
- package/dist/chunk-PWGSIM3F.cjs +291 -0
- package/dist/chunk-PWGSIM3F.cjs.map +1 -0
- package/dist/{chunk-CPQ3CU4B.js → chunk-QMY2JKBI.js} +3 -3
- package/dist/{chunk-CPQ3CU4B.js.map → chunk-QMY2JKBI.js.map} +1 -1
- package/dist/chunk-QP3WQSAA.cjs +23 -0
- package/dist/chunk-QP3WQSAA.cjs.map +1 -0
- package/dist/chunk-SSXFVWCT.js +46 -0
- package/dist/chunk-SSXFVWCT.js.map +1 -0
- package/dist/chunk-T5FZICXN.cjs +50 -0
- package/dist/chunk-T5FZICXN.cjs.map +1 -0
- package/dist/{chunk-P6WLV5UY.js → chunk-XWPLOFDN.js} +3 -3
- package/dist/{chunk-P6WLV5UY.js.map → chunk-XWPLOFDN.js.map} +1 -1
- package/dist/{chunk-5HDKL6XB.cjs → chunk-YMB6XUR2.cjs} +57 -57
- package/dist/{chunk-5HDKL6XB.cjs.map → chunk-YMB6XUR2.cjs.map} +1 -1
- package/dist/{chunk-6H3O63TQ.js → chunk-ZM6N7YZH.js} +3 -3
- package/dist/{chunk-6H3O63TQ.js.map → chunk-ZM6N7YZH.js.map} +1 -1
- package/dist/document-tools/core.cjs +98 -98
- package/dist/document-tools/core.d.cts +2 -2
- package/dist/document-tools/core.d.ts +2 -2
- package/dist/document-tools/core.js +3 -3
- package/dist/document-tools/index.cjs +100 -100
- package/dist/document-tools/index.d.cts +1 -1
- package/dist/document-tools/index.d.ts +1 -1
- package/dist/document-tools/index.js +4 -4
- package/dist/index.cjs +1426 -1341
- package/dist/index.cjs.map +1 -1
- package/dist/{index.d-BMhTH98a.d.ts → index.d-CYXcTKYt.d.ts} +1 -0
- package/dist/{index.d-BMhTH98a.d.cts → index.d-LArLnpI8.d.cts} +1 -0
- package/dist/index.d.cts +39 -8
- package/dist/index.d.ts +39 -8
- package/dist/index.js +104 -33
- package/dist/index.js.map +1 -1
- package/dist/lazy-chunk.d-B6YDLMKI.d.cts +31 -0
- package/dist/lazy-chunk.d-B6YDLMKI.d.ts +31 -0
- package/dist/{query-keys.d-ChgpJLPF.d.cts → query-keys.d-B1Am9tIF.d.cts} +1 -1
- package/dist/{query-keys.d-ChgpJLPF.d.ts → query-keys.d-B1Am9tIF.d.ts} +1 -1
- package/dist/ui/index.cjs +13 -0
- package/dist/ui/index.d.cts +2 -1
- package/dist/ui/index.d.ts +2 -1
- package/dist/ui/index.js +1 -0
- package/dist/viewers/PdfViewer.cjs +17 -0
- package/dist/viewers/PdfViewer.cjs.map +1 -0
- package/dist/viewers/PdfViewer.d.cts +9 -0
- package/dist/viewers/PdfViewer.d.ts +9 -0
- package/dist/viewers/PdfViewer.js +4 -0
- package/dist/viewers/PdfViewer.js.map +1 -0
- package/dist/viewers/index.cjs +79 -653
- package/dist/viewers/index.cjs.map +1 -1
- package/dist/viewers/index.d.cts +3 -1
- package/dist/viewers/index.d.ts +3 -1
- package/dist/viewers/index.js +6 -639
- package/dist/viewers/index.js.map +1 -1
- package/package.json +11 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkO32T7XRD_cjs = require('./chunk-O32T7XRD.cjs');
|
|
4
4
|
var zustand = require('zustand');
|
|
5
5
|
var react = require('react');
|
|
6
6
|
var reactQuery = require('@tanstack/react-query');
|
|
@@ -17,10 +17,10 @@ function subscribeDocumentRows(listener) {
|
|
|
17
17
|
}
|
|
18
18
|
function getCachedDocuments(qc, workspaceId) {
|
|
19
19
|
if (!workspaceId) return void 0;
|
|
20
|
-
return qc.getQueryData(
|
|
20
|
+
return qc.getQueryData(chunkO32T7XRD_cjs.arbiQueryKeys.documents(workspaceId));
|
|
21
21
|
}
|
|
22
22
|
function cachedLists(qc) {
|
|
23
|
-
return qc.getQueriesData({ queryKey:
|
|
23
|
+
return qc.getQueriesData({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.allDocuments() }).flatMap(
|
|
24
24
|
([key, data]) => typeof key[2] === "string" && Array.isArray(data) ? [[key[2], data]] : []
|
|
25
25
|
);
|
|
26
26
|
}
|
|
@@ -46,13 +46,13 @@ function patchDocuments(qc, reducer, workspaceId) {
|
|
|
46
46
|
for (const [id, before] of lists) {
|
|
47
47
|
const after = reducer(before);
|
|
48
48
|
if (after === before) continue;
|
|
49
|
-
qc.setQueryData(
|
|
49
|
+
qc.setQueryData(chunkO32T7XRD_cjs.arbiQueryKeys.documents(id), after);
|
|
50
50
|
const change = diffRows(id, before, after);
|
|
51
51
|
const beforeById = new Map(before.map((doc) => [doc.external_id, doc]));
|
|
52
52
|
if (change.update.some(
|
|
53
53
|
(doc) => doc.current_version !== beforeById.get(doc.external_id)?.current_version
|
|
54
54
|
))
|
|
55
|
-
void qc.invalidateQueries({ queryKey:
|
|
55
|
+
void qc.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.allDocumentVersions() });
|
|
56
56
|
if (change.add.length || change.update.length || change.remove.length)
|
|
57
57
|
for (const listener of rowListeners) listener(change);
|
|
58
58
|
}
|
|
@@ -80,11 +80,11 @@ function upsertDocuments(qc, documents, workspaceId) {
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
function setCachedDocument(qc, doc) {
|
|
83
|
-
qc.setQueryData(
|
|
83
|
+
qc.setQueryData(chunkO32T7XRD_cjs.arbiQueryKeys.document(doc.external_id), doc);
|
|
84
84
|
}
|
|
85
85
|
function patchCachedDocument(qc, docId, reducer) {
|
|
86
|
-
const current = qc.getQueryData(
|
|
87
|
-
if (current) qc.setQueryData(
|
|
86
|
+
const current = qc.getQueryData(chunkO32T7XRD_cjs.arbiQueryKeys.document(docId));
|
|
87
|
+
if (current) qc.setQueryData(chunkO32T7XRD_cjs.arbiQueryKeys.document(docId), reducer(current));
|
|
88
88
|
}
|
|
89
89
|
function dropTagFromCachedDocuments(qc, tagId) {
|
|
90
90
|
const strip = (doc) => {
|
|
@@ -101,9 +101,9 @@ function dropTagFromCachedDocuments(qc, tagId) {
|
|
|
101
101
|
}
|
|
102
102
|
function forgetDocuments(qc, docIds) {
|
|
103
103
|
for (const id of docIds) {
|
|
104
|
-
qc.removeQueries({ queryKey:
|
|
105
|
-
qc.removeQueries({ queryKey:
|
|
106
|
-
qc.removeQueries({ queryKey:
|
|
104
|
+
qc.removeQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.document(id) });
|
|
105
|
+
qc.removeQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.documentVersions(id) });
|
|
106
|
+
qc.removeQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.parsedDocument(id) });
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
var useEntityExtractionStore = zustand.create(() => ({ docIds: [] }));
|
|
@@ -173,7 +173,7 @@ function useCapturingWorkspace(mutation, capture) {
|
|
|
173
173
|
// src/tags.ts
|
|
174
174
|
function workspaceOfTag(qc, tagId) {
|
|
175
175
|
for (const [key, tags] of qc.getQueriesData({
|
|
176
|
-
queryKey:
|
|
176
|
+
queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.allTags()
|
|
177
177
|
})) {
|
|
178
178
|
if (Array.isArray(tags) && tags.some((t) => t.external_id === tagId))
|
|
179
179
|
return key[2] ?? null;
|
|
@@ -184,23 +184,23 @@ function openWorkspaceId(arbi) {
|
|
|
184
184
|
return arbi.hasWorkspace ? arbi.getWorkspaceId() : null;
|
|
185
185
|
}
|
|
186
186
|
function patchWorkspaceTags(qc, workspaceId, reducer) {
|
|
187
|
-
const key =
|
|
187
|
+
const key = chunkO32T7XRD_cjs.arbiQueryKeys.tags(workspaceId);
|
|
188
188
|
const current = qc.getQueryData(key);
|
|
189
189
|
if (!current) return;
|
|
190
190
|
const next = reducer(current);
|
|
191
191
|
if (next !== current) qc.setQueryData(key, next);
|
|
192
192
|
}
|
|
193
193
|
function invalidateTagTables(qc, workspaceId) {
|
|
194
|
-
return qc.invalidateQueries({ queryKey:
|
|
194
|
+
return qc.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.tagLists(workspaceId) });
|
|
195
195
|
}
|
|
196
196
|
function invalidateTagData(qc, workspaceId) {
|
|
197
197
|
return Promise.all([
|
|
198
|
-
qc.invalidateQueries({ queryKey:
|
|
199
|
-
qc.invalidateQueries({ queryKey:
|
|
198
|
+
qc.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.tags(workspaceId) }),
|
|
199
|
+
qc.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.facts(workspaceId) })
|
|
200
200
|
]);
|
|
201
201
|
}
|
|
202
202
|
function useInvalidateTagData() {
|
|
203
|
-
const arbi =
|
|
203
|
+
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
204
204
|
const qc = reactQuery.useQueryClient();
|
|
205
205
|
return react.useCallback(() => {
|
|
206
206
|
const workspaceId = openWorkspaceId(arbi);
|
|
@@ -227,19 +227,19 @@ function settleChangedTag(qc, tag) {
|
|
|
227
227
|
}
|
|
228
228
|
var replayableTagMutations = [
|
|
229
229
|
{
|
|
230
|
-
mutationKey:
|
|
230
|
+
mutationKey: chunkO32T7XRD_cjs.arbiMutationKeys.createTag(),
|
|
231
231
|
// In the workspace it was made in (named on the request), opened for this session first.
|
|
232
232
|
run: (client, input) => inWorkspace(primeOnClient(client), input.workspaceId, () => browser.tags.createTag(client, input)),
|
|
233
233
|
settle: (qc, created) => settleCreatedTag(qc, created)
|
|
234
234
|
}
|
|
235
235
|
];
|
|
236
236
|
function useCreateTag() {
|
|
237
|
-
const arbi =
|
|
237
|
+
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
238
238
|
const qc = reactQuery.useQueryClient();
|
|
239
239
|
const capture = (input) => input.workspaceId || !arbi.hasWorkspace ? input : { ...input, workspaceId: arbi.getWorkspaceId() };
|
|
240
240
|
return useCapturingWorkspace(
|
|
241
241
|
reactQuery.useMutation({
|
|
242
|
-
mutationKey:
|
|
242
|
+
mutationKey: chunkO32T7XRD_cjs.arbiMutationKeys.createTag(),
|
|
243
243
|
mutationFn: (input) => inWorkspace(primeOnArbi(arbi), input.workspaceId, () => arbi.tags.create(input)),
|
|
244
244
|
onSuccess: (created) => settleCreatedTag(qc, created),
|
|
245
245
|
...QUEUED_WRITE_RETRY
|
|
@@ -253,7 +253,7 @@ function useIsCreatingTag() {
|
|
|
253
253
|
(name) => {
|
|
254
254
|
const wanted = name.trim().toLowerCase();
|
|
255
255
|
return qc.getMutationCache().findAll({
|
|
256
|
-
mutationKey:
|
|
256
|
+
mutationKey: chunkO32T7XRD_cjs.arbiMutationKeys.createTag(),
|
|
257
257
|
predicate: (m) => m.state.status === "pending" && m.state.variables?.name.trim().toLowerCase() === wanted
|
|
258
258
|
}).length > 0;
|
|
259
259
|
},
|
|
@@ -261,19 +261,19 @@ function useIsCreatingTag() {
|
|
|
261
261
|
);
|
|
262
262
|
}
|
|
263
263
|
function useUpdateTag() {
|
|
264
|
-
const arbi =
|
|
264
|
+
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
265
265
|
const qc = reactQuery.useQueryClient();
|
|
266
266
|
return reactQuery.useMutation({
|
|
267
|
-
mutationKey:
|
|
267
|
+
mutationKey: chunkO32T7XRD_cjs.arbiMutationKeys.updateTag(),
|
|
268
268
|
mutationFn: ({ tagId, change }) => arbi.tags.update(tagId, change),
|
|
269
269
|
onSuccess: (tag) => settleChangedTag(qc, tag)
|
|
270
270
|
});
|
|
271
271
|
}
|
|
272
272
|
function useSetTagValues() {
|
|
273
|
-
const arbi =
|
|
273
|
+
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
274
274
|
const qc = reactQuery.useQueryClient();
|
|
275
275
|
return reactQuery.useMutation({
|
|
276
|
-
mutationKey:
|
|
276
|
+
mutationKey: chunkO32T7XRD_cjs.arbiMutationKeys.updateTag(),
|
|
277
277
|
mutationFn: ({
|
|
278
278
|
tagId,
|
|
279
279
|
values
|
|
@@ -282,10 +282,10 @@ function useSetTagValues() {
|
|
|
282
282
|
});
|
|
283
283
|
}
|
|
284
284
|
function useDeleteTag() {
|
|
285
|
-
const arbi =
|
|
285
|
+
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
286
286
|
const qc = reactQuery.useQueryClient();
|
|
287
287
|
return reactQuery.useMutation({
|
|
288
|
-
mutationKey:
|
|
288
|
+
mutationKey: chunkO32T7XRD_cjs.arbiMutationKeys.deleteTag(),
|
|
289
289
|
mutationFn: (tagId) => arbi.tags.delete(tagId),
|
|
290
290
|
// The tag's own workspace (the cached list holding it), else the one open when it is sent: a
|
|
291
291
|
// switch while the delete runs must not patch the next workspace's list.
|
|
@@ -301,33 +301,33 @@ function useDeleteTag() {
|
|
|
301
301
|
);
|
|
302
302
|
return Promise.all([
|
|
303
303
|
invalidateTagTables(qc, workspaceId),
|
|
304
|
-
qc.invalidateQueries({ queryKey:
|
|
304
|
+
qc.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.facts(workspaceId) })
|
|
305
305
|
]);
|
|
306
306
|
}
|
|
307
307
|
});
|
|
308
308
|
}
|
|
309
309
|
function useExtractEntities() {
|
|
310
|
-
const arbi =
|
|
310
|
+
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
311
311
|
return reactQuery.useMutation({
|
|
312
|
-
mutationKey:
|
|
312
|
+
mutationKey: chunkO32T7XRD_cjs.arbiMutationKeys.extractEntities(),
|
|
313
313
|
mutationFn: (docIds) => arbi.tags.extractEntities(docIds),
|
|
314
314
|
onSuccess: (data) => startEntityExtraction(data.doc_ext_ids)
|
|
315
315
|
});
|
|
316
316
|
}
|
|
317
317
|
function useTagKindSchema(kind, options) {
|
|
318
|
-
const arbi =
|
|
318
|
+
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
319
319
|
const workspaceId = openWorkspaceId(arbi) ?? "";
|
|
320
320
|
return reactQuery.useQuery({
|
|
321
|
-
queryKey:
|
|
321
|
+
queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.tagKind(workspaceId, kind ?? ""),
|
|
322
322
|
queryFn: () => arbi.readInWorkspace(workspaceId, () => arbi.tagKinds.get(kind)),
|
|
323
323
|
enabled: (options?.enabled ?? true) && !!kind && !!workspaceId
|
|
324
324
|
});
|
|
325
325
|
}
|
|
326
326
|
function useUpdateTagKindSchema() {
|
|
327
|
-
const arbi =
|
|
327
|
+
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
328
328
|
const qc = reactQuery.useQueryClient();
|
|
329
329
|
return reactQuery.useMutation({
|
|
330
|
-
mutationKey:
|
|
330
|
+
mutationKey: chunkO32T7XRD_cjs.arbiMutationKeys.updateTagKindSchema(),
|
|
331
331
|
mutationFn: ({
|
|
332
332
|
kind,
|
|
333
333
|
fields
|
|
@@ -338,7 +338,7 @@ function useUpdateTagKindSchema() {
|
|
|
338
338
|
onSuccess: (schema, _input, context) => {
|
|
339
339
|
const workspaceId = context?.workspaceId;
|
|
340
340
|
if (!workspaceId) return;
|
|
341
|
-
qc.setQueryData(
|
|
341
|
+
qc.setQueryData(chunkO32T7XRD_cjs.arbiQueryKeys.tagKind(workspaceId, schema.kind), schema);
|
|
342
342
|
return invalidateTagData(qc, workspaceId);
|
|
343
343
|
}
|
|
344
344
|
});
|
|
@@ -541,11 +541,11 @@ function openWorkspaceId2(arbi) {
|
|
|
541
541
|
return arbi.hasWorkspace ? arbi.getWorkspaceId() : null;
|
|
542
542
|
}
|
|
543
543
|
function useDocuments(workspaceId, options) {
|
|
544
|
-
const arbi =
|
|
544
|
+
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
545
545
|
const qc = reactQuery.useQueryClient();
|
|
546
546
|
const workspace = workspaceId ?? openWorkspaceId2(arbi) ?? "";
|
|
547
547
|
return reactQuery.useQuery({
|
|
548
|
-
queryKey:
|
|
548
|
+
queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.documents(workspace),
|
|
549
549
|
queryFn: ({ signal }) => {
|
|
550
550
|
if (openWorkspaceId2(arbi) !== workspace)
|
|
551
551
|
return Promise.reject(new Error("The selected workspace changed."));
|
|
@@ -563,9 +563,9 @@ function processingInterval(doc) {
|
|
|
563
563
|
return doc?.status && !FINISHED_DOCUMENT_STATUSES.has(doc.status) ? DOCUMENT_STATUS_POLL_MS : false;
|
|
564
564
|
}
|
|
565
565
|
function useDocument(docId, options) {
|
|
566
|
-
const arbi =
|
|
566
|
+
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
567
567
|
return reactQuery.useQuery({
|
|
568
|
-
queryKey:
|
|
568
|
+
queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.document(docId ?? ""),
|
|
569
569
|
queryFn: async () => (await arbi.documents.get([docId]))[0] ?? null,
|
|
570
570
|
enabled: (options?.enabled ?? true) && !!docId && arbi.isLoggedIn,
|
|
571
571
|
refetchInterval: options?.pollWhileProcessing ? (query) => processingInterval(query.state.data) : false
|
|
@@ -573,10 +573,10 @@ function useDocument(docId, options) {
|
|
|
573
573
|
}
|
|
574
574
|
var SIMILARITY_THRESHOLD = 0.98;
|
|
575
575
|
function useSimilarDocuments(options) {
|
|
576
|
-
const arbi =
|
|
576
|
+
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
577
577
|
const workspace = openWorkspaceId2(arbi) ?? "";
|
|
578
578
|
return reactQuery.useQuery({
|
|
579
|
-
queryKey:
|
|
579
|
+
queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.similarDocuments(workspace, SIMILARITY_THRESHOLD),
|
|
580
580
|
queryFn: () => arbi.readInWorkspace(
|
|
581
581
|
workspace,
|
|
582
582
|
() => arbi.documents.similar({ threshold: SIMILARITY_THRESHOLD })
|
|
@@ -610,7 +610,7 @@ async function refreshDocuments(qc, arbi, docIds) {
|
|
|
610
610
|
}
|
|
611
611
|
function useRefreshDocuments() {
|
|
612
612
|
const qc = reactQuery.useQueryClient();
|
|
613
|
-
const arbi =
|
|
613
|
+
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
614
614
|
return react.useCallback((docIds) => refreshDocuments(qc, arbi, docIds), [qc, arbi]);
|
|
615
615
|
}
|
|
616
616
|
function reconcileTagCounts(qc, fresh) {
|
|
@@ -694,5 +694,5 @@ exports.useSimilarDocuments = useSimilarDocuments;
|
|
|
694
694
|
exports.useTagKindSchema = useTagKindSchema;
|
|
695
695
|
exports.useUpdateTag = useUpdateTag;
|
|
696
696
|
exports.useUpdateTagKindSchema = useUpdateTagKindSchema;
|
|
697
|
-
//# sourceMappingURL=chunk-
|
|
698
|
-
//# sourceMappingURL=chunk-
|
|
697
|
+
//# sourceMappingURL=chunk-GKGAPU6T.cjs.map
|
|
698
|
+
//# sourceMappingURL=chunk-GKGAPU6T.cjs.map
|