@arbidocs/react 0.5.146 → 0.5.148
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/artifacts/index.cjs +14 -14
- package/dist/calls/livekit/index.cjs +48 -48
- package/dist/chat/conversation-cache.js +5 -0
- package/dist/chat/conversation-cache.js.map +2 -2
- package/dist/chat/useConversation.js +10 -5
- package/dist/chat/useConversation.js.map +2 -2
- package/dist/chat/useConversationActions.js +4 -0
- package/dist/chat/useConversationActions.js.map +2 -2
- package/dist/chat/useConversationSettings.js +4 -10
- package/dist/chat/useConversationSettings.js.map +2 -2
- package/dist/{chunk-FE6ZSNZE.cjs → chunk-5FQB5F2F.cjs} +9 -4
- package/dist/chunk-5FQB5F2F.cjs.map +1 -0
- package/dist/{chunk-26SZ3DS4.cjs → chunk-MJIXYLI4.cjs} +66 -66
- package/dist/{chunk-26SZ3DS4.cjs.map → chunk-MJIXYLI4.cjs.map} +1 -1
- package/dist/{chunk-ZZZYVNFW.cjs → chunk-VBUEDJMK.cjs} +57 -57
- package/dist/{chunk-ZZZYVNFW.cjs.map → chunk-VBUEDJMK.cjs.map} +1 -1
- package/dist/{chunk-2F24LLVZ.cjs → chunk-VVPB7NKX.cjs} +38 -38
- package/dist/{chunk-2F24LLVZ.cjs.map → chunk-VVPB7NKX.cjs.map} +1 -1
- package/dist/{chunk-FDYZA6NO.cjs → chunk-XBY4RLC6.cjs} +4 -4
- package/dist/{chunk-FDYZA6NO.cjs.map → chunk-XBY4RLC6.cjs.map} +1 -1
- package/dist/{chunk-VO7OWQP6.cjs → chunk-ZFTWH6B6.cjs} +44 -44
- package/dist/{chunk-VO7OWQP6.cjs.map → chunk-ZFTWH6B6.cjs.map} +1 -1
- package/dist/databases.js +9 -6
- package/dist/databases.js.map +2 -2
- package/dist/datasets/index.js +25 -21
- package/dist/datasets/index.js.map +2 -2
- package/dist/datasets/pages.js +208 -0
- package/dist/datasets/pages.js.map +7 -0
- package/dist/datasets/registry.js.map +2 -2
- package/dist/datasets/sources/database.js +21 -23
- package/dist/datasets/sources/database.js.map +2 -2
- package/dist/document-tools/core.cjs +98 -98
- package/dist/document-tools/core.d.ts +2 -2
- package/dist/document-tools/index.cjs +100 -100
- package/dist/document-tools/index.d.ts +1 -1
- package/dist/documents/documents-writes.js +45 -14
- package/dist/documents/documents-writes.js.map +2 -2
- package/dist/documents/index.js +8 -0
- package/dist/documents/index.js.map +2 -2
- package/dist/documents/tag-when-processed.js +47 -0
- package/dist/documents/tag-when-processed.js.map +7 -0
- package/dist/host/config.js.map +1 -1
- package/dist/index.cjs +1893 -1596
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +319 -97
- package/dist/index.js +27 -5
- package/dist/index.js.map +2 -2
- package/dist/notifications/notification-types.js +7 -0
- package/dist/notifications/notification-types.js.map +2 -2
- package/dist/notifications/server-notifications.js +66 -10
- package/dist/notifications/server-notifications.js.map +2 -2
- package/dist/{query-keys.d-d2M4FAq2.d.ts → query-keys.d-pgq-4jyZ.d.ts} +7 -2
- package/dist/query-keys.js +7 -2
- package/dist/query-keys.js.map +2 -2
- package/dist/table-views.js +166 -0
- package/dist/table-views.js.map +7 -0
- package/dist/ui/index.cjs +13 -13
- package/dist/viewers/index.cjs +9 -9
- package/package.json +3 -3
- package/dist/account/table-views.js +0 -16
- package/dist/account/table-views.js.map +0 -7
- package/dist/chunk-FE6ZSNZE.cjs.map +0 -1
- package/dist/datasets/store.js +0 -194
- package/dist/datasets/store.js.map +0 -7
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var chunkFDYZA6NO_cjs = require('../chunk-FDYZA6NO.cjs');
|
|
3
|
+
var chunkVVPB7NKX_cjs = require('../chunk-VVPB7NKX.cjs');
|
|
5
4
|
require('../chunk-SUZORMAB.cjs');
|
|
6
5
|
require('../chunk-2IJP73ZG.cjs');
|
|
7
|
-
var
|
|
6
|
+
var chunkXBY4RLC6_cjs = require('../chunk-XBY4RLC6.cjs');
|
|
7
|
+
var chunk5FQB5F2F_cjs = require('../chunk-5FQB5F2F.cjs');
|
|
8
8
|
require('../chunk-KULS4YWP.cjs');
|
|
9
9
|
require('../chunk-VOFNX4P6.cjs');
|
|
10
10
|
require('../chunk-WYZJLZ67.cjs');
|
|
@@ -37,9 +37,9 @@ async function fetchProductionPdf(client, doc) {
|
|
|
37
37
|
const pdf = isPdfDocument(doc);
|
|
38
38
|
let blob;
|
|
39
39
|
try {
|
|
40
|
-
blob = await (pdf ?
|
|
40
|
+
blob = await (pdf ? chunkXBY4RLC6_cjs.fetchDocumentFile : chunkXBY4RLC6_cjs.fetchDocumentPdf)(client, doc.external_id);
|
|
41
41
|
} catch (e) {
|
|
42
|
-
if (!pdf && e instanceof
|
|
42
|
+
if (!pdf && e instanceof chunkXBY4RLC6_cjs.DocumentFetchError) return null;
|
|
43
43
|
throw e;
|
|
44
44
|
}
|
|
45
45
|
const bytes = new Uint8Array(await blob.arrayBuffer());
|
|
@@ -249,383 +249,383 @@ async function setPdfAttachment(pdf, attachment) {
|
|
|
249
249
|
|
|
250
250
|
Object.defineProperty(exports, "DEFAULT_FIELD_SIZE", {
|
|
251
251
|
enumerable: true,
|
|
252
|
-
get: function () { return
|
|
252
|
+
get: function () { return chunkVVPB7NKX_cjs.DEFAULT_FIELD_SIZE; }
|
|
253
253
|
});
|
|
254
254
|
Object.defineProperty(exports, "FIELD_TYPE_LABELS", {
|
|
255
255
|
enumerable: true,
|
|
256
|
-
get: function () { return
|
|
256
|
+
get: function () { return chunkVVPB7NKX_cjs.FIELD_TYPE_LABELS; }
|
|
257
257
|
});
|
|
258
258
|
Object.defineProperty(exports, "INFORMAL_SIGNATURE_NOTE", {
|
|
259
259
|
enumerable: true,
|
|
260
|
-
get: function () { return
|
|
260
|
+
get: function () { return chunkVVPB7NKX_cjs.INFORMAL_SIGNATURE_NOTE; }
|
|
261
261
|
});
|
|
262
262
|
Object.defineProperty(exports, "LEGACY_LAYER_PREFIX", {
|
|
263
263
|
enumerable: true,
|
|
264
|
-
get: function () { return
|
|
264
|
+
get: function () { return chunkVVPB7NKX_cjs.LEGACY_LAYER_PREFIX; }
|
|
265
265
|
});
|
|
266
266
|
Object.defineProperty(exports, "MARK_FIELD_TYPES", {
|
|
267
267
|
enumerable: true,
|
|
268
|
-
get: function () { return
|
|
268
|
+
get: function () { return chunkVVPB7NKX_cjs.MARK_FIELD_TYPES; }
|
|
269
269
|
});
|
|
270
270
|
Object.defineProperty(exports, "MAX_MERGE_ATTEMPTS", {
|
|
271
271
|
enumerable: true,
|
|
272
|
-
get: function () { return
|
|
272
|
+
get: function () { return chunkVVPB7NKX_cjs.MAX_MERGE_ATTEMPTS; }
|
|
273
273
|
});
|
|
274
274
|
Object.defineProperty(exports, "MarkupStoreError", {
|
|
275
275
|
enumerable: true,
|
|
276
|
-
get: function () { return
|
|
276
|
+
get: function () { return chunkVVPB7NKX_cjs.MarkupStoreError; }
|
|
277
277
|
});
|
|
278
278
|
Object.defineProperty(exports, "SIGNATURE_FIELD_TYPES", {
|
|
279
279
|
enumerable: true,
|
|
280
|
-
get: function () { return
|
|
280
|
+
get: function () { return chunkVVPB7NKX_cjs.SIGNATURE_FIELD_TYPES; }
|
|
281
281
|
});
|
|
282
282
|
Object.defineProperty(exports, "SIGNED_UNCHANGED", {
|
|
283
283
|
enumerable: true,
|
|
284
|
-
get: function () { return
|
|
284
|
+
get: function () { return chunkVVPB7NKX_cjs.SIGNED_UNCHANGED; }
|
|
285
285
|
});
|
|
286
286
|
Object.defineProperty(exports, "SIGNER_PROGRESS_LABELS", {
|
|
287
287
|
enumerable: true,
|
|
288
|
-
get: function () { return
|
|
288
|
+
get: function () { return chunkVVPB7NKX_cjs.SIGNER_PROGRESS_LABELS; }
|
|
289
289
|
});
|
|
290
290
|
Object.defineProperty(exports, "SignatureVerificationError", {
|
|
291
291
|
enumerable: true,
|
|
292
|
-
get: function () { return
|
|
292
|
+
get: function () { return chunkVVPB7NKX_cjs.SignatureVerificationError; }
|
|
293
293
|
});
|
|
294
294
|
Object.defineProperty(exports, "SigningError", {
|
|
295
295
|
enumerable: true,
|
|
296
|
-
get: function () { return
|
|
296
|
+
get: function () { return chunkVVPB7NKX_cjs.SigningError; }
|
|
297
297
|
});
|
|
298
298
|
Object.defineProperty(exports, "VERIFY_PATH", {
|
|
299
299
|
enumerable: true,
|
|
300
|
-
get: function () { return
|
|
300
|
+
get: function () { return chunkVVPB7NKX_cjs.VERIFY_PATH; }
|
|
301
301
|
});
|
|
302
302
|
Object.defineProperty(exports, "addToMarkup", {
|
|
303
303
|
enumerable: true,
|
|
304
|
-
get: function () { return
|
|
304
|
+
get: function () { return chunkVVPB7NKX_cjs.addToMarkup; }
|
|
305
305
|
});
|
|
306
306
|
Object.defineProperty(exports, "canAnnotate", {
|
|
307
307
|
enumerable: true,
|
|
308
|
-
get: function () { return
|
|
308
|
+
get: function () { return chunkVVPB7NKX_cjs.canAnnotate; }
|
|
309
309
|
});
|
|
310
310
|
Object.defineProperty(exports, "copyOpenThreads", {
|
|
311
311
|
enumerable: true,
|
|
312
|
-
get: function () { return
|
|
312
|
+
get: function () { return chunkVVPB7NKX_cjs.copyOpenThreads; }
|
|
313
313
|
});
|
|
314
314
|
Object.defineProperty(exports, "createFileShare", {
|
|
315
315
|
enumerable: true,
|
|
316
|
-
get: function () { return
|
|
316
|
+
get: function () { return chunkVVPB7NKX_cjs.createFileShare; }
|
|
317
317
|
});
|
|
318
318
|
Object.defineProperty(exports, "createMarkupStore", {
|
|
319
319
|
enumerable: true,
|
|
320
|
-
get: function () { return
|
|
320
|
+
get: function () { return chunkVVPB7NKX_cjs.createMarkupStore; }
|
|
321
321
|
});
|
|
322
322
|
Object.defineProperty(exports, "deleteSavedSignature", {
|
|
323
323
|
enumerable: true,
|
|
324
|
-
get: function () { return
|
|
324
|
+
get: function () { return chunkVVPB7NKX_cjs.deleteSavedSignature; }
|
|
325
325
|
});
|
|
326
326
|
Object.defineProperty(exports, "fetchDocumentSignatureRequests", {
|
|
327
327
|
enumerable: true,
|
|
328
|
-
get: function () { return
|
|
328
|
+
get: function () { return chunkVVPB7NKX_cjs.fetchDocumentSignatureRequests; }
|
|
329
329
|
});
|
|
330
330
|
Object.defineProperty(exports, "fetchDocumentSignatures", {
|
|
331
331
|
enumerable: true,
|
|
332
|
-
get: function () { return
|
|
332
|
+
get: function () { return chunkVVPB7NKX_cjs.fetchDocumentSignatures; }
|
|
333
333
|
});
|
|
334
334
|
Object.defineProperty(exports, "fetchSavedSignature", {
|
|
335
335
|
enumerable: true,
|
|
336
|
-
get: function () { return
|
|
336
|
+
get: function () { return chunkVVPB7NKX_cjs.fetchSavedSignature; }
|
|
337
337
|
});
|
|
338
338
|
Object.defineProperty(exports, "fetchSignatureVerification", {
|
|
339
339
|
enumerable: true,
|
|
340
|
-
get: function () { return
|
|
340
|
+
get: function () { return chunkVVPB7NKX_cjs.fetchSignatureVerification; }
|
|
341
341
|
});
|
|
342
342
|
Object.defineProperty(exports, "fieldsFromSuggestions", {
|
|
343
343
|
enumerable: true,
|
|
344
|
-
get: function () { return
|
|
344
|
+
get: function () { return chunkVVPB7NKX_cjs.fieldsFromSuggestions; }
|
|
345
345
|
});
|
|
346
346
|
Object.defineProperty(exports, "fieldsInSigningOrder", {
|
|
347
347
|
enumerable: true,
|
|
348
|
-
get: function () { return
|
|
348
|
+
get: function () { return chunkVVPB7NKX_cjs.fieldsInSigningOrder; }
|
|
349
349
|
});
|
|
350
350
|
Object.defineProperty(exports, "fileShareBytes", {
|
|
351
351
|
enumerable: true,
|
|
352
|
-
get: function () { return
|
|
352
|
+
get: function () { return chunkVVPB7NKX_cjs.fileShareBytes; }
|
|
353
353
|
});
|
|
354
354
|
Object.defineProperty(exports, "fileShareSigningRequest", {
|
|
355
355
|
enumerable: true,
|
|
356
|
-
get: function () { return
|
|
356
|
+
get: function () { return chunkVVPB7NKX_cjs.fileShareSigningRequest; }
|
|
357
357
|
});
|
|
358
358
|
Object.defineProperty(exports, "forgetLegacyLayer", {
|
|
359
359
|
enumerable: true,
|
|
360
|
-
get: function () { return
|
|
360
|
+
get: function () { return chunkVVPB7NKX_cjs.forgetLegacyLayer; }
|
|
361
361
|
});
|
|
362
362
|
Object.defineProperty(exports, "frozenCopyName", {
|
|
363
363
|
enumerable: true,
|
|
364
|
-
get: function () { return
|
|
364
|
+
get: function () { return chunkVVPB7NKX_cjs.frozenCopyName; }
|
|
365
365
|
});
|
|
366
366
|
Object.defineProperty(exports, "getFileShare", {
|
|
367
367
|
enumerable: true,
|
|
368
|
-
get: function () { return
|
|
368
|
+
get: function () { return chunkVVPB7NKX_cjs.getFileShare; }
|
|
369
369
|
});
|
|
370
370
|
Object.defineProperty(exports, "initialsOf", {
|
|
371
371
|
enumerable: true,
|
|
372
|
-
get: function () { return
|
|
372
|
+
get: function () { return chunkVVPB7NKX_cjs.initialsOf; }
|
|
373
373
|
});
|
|
374
374
|
Object.defineProperty(exports, "intentText", {
|
|
375
375
|
enumerable: true,
|
|
376
|
-
get: function () { return
|
|
376
|
+
get: function () { return chunkVVPB7NKX_cjs.intentText; }
|
|
377
377
|
});
|
|
378
378
|
Object.defineProperty(exports, "inviteSigners", {
|
|
379
379
|
enumerable: true,
|
|
380
|
-
get: function () { return
|
|
380
|
+
get: function () { return chunkVVPB7NKX_cjs.inviteSigners; }
|
|
381
381
|
});
|
|
382
382
|
Object.defineProperty(exports, "isEmailSigner", {
|
|
383
383
|
enumerable: true,
|
|
384
|
-
get: function () { return
|
|
384
|
+
get: function () { return chunkVVPB7NKX_cjs.isEmailSigner; }
|
|
385
385
|
});
|
|
386
386
|
Object.defineProperty(exports, "isLegibleSignatureBox", {
|
|
387
387
|
enumerable: true,
|
|
388
|
-
get: function () { return
|
|
388
|
+
get: function () { return chunkVVPB7NKX_cjs.isLegibleSignatureBox; }
|
|
389
389
|
});
|
|
390
390
|
Object.defineProperty(exports, "isSignatureReference", {
|
|
391
391
|
enumerable: true,
|
|
392
|
-
get: function () { return
|
|
392
|
+
get: function () { return chunkVVPB7NKX_cjs.isSignatureReference; }
|
|
393
393
|
});
|
|
394
394
|
Object.defineProperty(exports, "marksByVersion", {
|
|
395
395
|
enumerable: true,
|
|
396
|
-
get: function () { return
|
|
396
|
+
get: function () { return chunkVVPB7NKX_cjs.marksByVersion; }
|
|
397
397
|
});
|
|
398
398
|
Object.defineProperty(exports, "matchSignedCopy", {
|
|
399
399
|
enumerable: true,
|
|
400
|
-
get: function () { return
|
|
400
|
+
get: function () { return chunkVVPB7NKX_cjs.matchSignedCopy; }
|
|
401
401
|
});
|
|
402
402
|
Object.defineProperty(exports, "migrateLegacyLayer", {
|
|
403
403
|
enumerable: true,
|
|
404
|
-
get: function () { return
|
|
404
|
+
get: function () { return chunkVVPB7NKX_cjs.migrateLegacyLayer; }
|
|
405
405
|
});
|
|
406
406
|
Object.defineProperty(exports, "newFieldId", {
|
|
407
407
|
enumerable: true,
|
|
408
|
-
get: function () { return
|
|
408
|
+
get: function () { return chunkVVPB7NKX_cjs.newFieldId; }
|
|
409
409
|
});
|
|
410
410
|
Object.defineProperty(exports, "openThreadsOf", {
|
|
411
411
|
enumerable: true,
|
|
412
|
-
get: function () { return
|
|
412
|
+
get: function () { return chunkVVPB7NKX_cjs.openThreadsOf; }
|
|
413
413
|
});
|
|
414
414
|
Object.defineProperty(exports, "pngBytes", {
|
|
415
415
|
enumerable: true,
|
|
416
|
-
get: function () { return
|
|
416
|
+
get: function () { return chunkVVPB7NKX_cjs.pngBytes; }
|
|
417
417
|
});
|
|
418
418
|
Object.defineProperty(exports, "pngSize", {
|
|
419
419
|
enumerable: true,
|
|
420
|
-
get: function () { return
|
|
420
|
+
get: function () { return chunkVVPB7NKX_cjs.pngSize; }
|
|
421
421
|
});
|
|
422
422
|
Object.defineProperty(exports, "readLegacyLayer", {
|
|
423
423
|
enumerable: true,
|
|
424
|
-
get: function () { return
|
|
424
|
+
get: function () { return chunkVVPB7NKX_cjs.readLegacyLayer; }
|
|
425
425
|
});
|
|
426
426
|
Object.defineProperty(exports, "redactionLogName", {
|
|
427
427
|
enumerable: true,
|
|
428
|
-
get: function () { return
|
|
428
|
+
get: function () { return chunkVVPB7NKX_cjs.redactionLogName; }
|
|
429
429
|
});
|
|
430
430
|
Object.defineProperty(exports, "saveSignatureRequest", {
|
|
431
431
|
enumerable: true,
|
|
432
|
-
get: function () { return
|
|
432
|
+
get: function () { return chunkVVPB7NKX_cjs.saveSignatureRequest; }
|
|
433
433
|
});
|
|
434
434
|
Object.defineProperty(exports, "sendBlocker", {
|
|
435
435
|
enumerable: true,
|
|
436
|
-
get: function () { return
|
|
436
|
+
get: function () { return chunkVVPB7NKX_cjs.sendBlocker; }
|
|
437
437
|
});
|
|
438
438
|
Object.defineProperty(exports, "sha256Hex", {
|
|
439
439
|
enumerable: true,
|
|
440
|
-
get: function () { return
|
|
440
|
+
get: function () { return chunkVVPB7NKX_cjs.sha256Hex; }
|
|
441
441
|
});
|
|
442
442
|
Object.defineProperty(exports, "signDocument", {
|
|
443
443
|
enumerable: true,
|
|
444
|
-
get: function () { return
|
|
444
|
+
get: function () { return chunkVVPB7NKX_cjs.signDocument; }
|
|
445
445
|
});
|
|
446
446
|
Object.defineProperty(exports, "signFileShare", {
|
|
447
447
|
enumerable: true,
|
|
448
|
-
get: function () { return
|
|
448
|
+
get: function () { return chunkVVPB7NKX_cjs.signFileShare; }
|
|
449
449
|
});
|
|
450
450
|
Object.defineProperty(exports, "signSignatureRequest", {
|
|
451
451
|
enumerable: true,
|
|
452
|
-
get: function () { return
|
|
452
|
+
get: function () { return chunkVVPB7NKX_cjs.signSignatureRequest; }
|
|
453
453
|
});
|
|
454
454
|
Object.defineProperty(exports, "signatureFieldSuggestions", {
|
|
455
455
|
enumerable: true,
|
|
456
|
-
get: function () { return
|
|
456
|
+
get: function () { return chunkVVPB7NKX_cjs.signatureFieldSuggestions; }
|
|
457
457
|
});
|
|
458
458
|
Object.defineProperty(exports, "splitSuggestions", {
|
|
459
459
|
enumerable: true,
|
|
460
|
-
get: function () { return
|
|
460
|
+
get: function () { return chunkVVPB7NKX_cjs.splitSuggestions; }
|
|
461
461
|
});
|
|
462
462
|
Object.defineProperty(exports, "storeSavedSignature", {
|
|
463
463
|
enumerable: true,
|
|
464
|
-
get: function () { return
|
|
464
|
+
get: function () { return chunkVVPB7NKX_cjs.storeSavedSignature; }
|
|
465
465
|
});
|
|
466
466
|
Object.defineProperty(exports, "suggestSignatureFields", {
|
|
467
467
|
enumerable: true,
|
|
468
|
-
get: function () { return
|
|
468
|
+
get: function () { return chunkVVPB7NKX_cjs.suggestSignatureFields; }
|
|
469
469
|
});
|
|
470
470
|
Object.defineProperty(exports, "toAppearance", {
|
|
471
471
|
enumerable: true,
|
|
472
|
-
get: function () { return
|
|
472
|
+
get: function () { return chunkVVPB7NKX_cjs.toAppearance; }
|
|
473
473
|
});
|
|
474
474
|
Object.defineProperty(exports, "uploadFrozenCopy", {
|
|
475
475
|
enumerable: true,
|
|
476
|
-
get: function () { return
|
|
476
|
+
get: function () { return chunkVVPB7NKX_cjs.uploadFrozenCopy; }
|
|
477
477
|
});
|
|
478
478
|
Object.defineProperty(exports, "useDeclineSignatureRequest", {
|
|
479
479
|
enumerable: true,
|
|
480
|
-
get: function () { return
|
|
480
|
+
get: function () { return chunkVVPB7NKX_cjs.useDeclineSignatureRequest; }
|
|
481
481
|
});
|
|
482
482
|
Object.defineProperty(exports, "useDeleteSavedSignature", {
|
|
483
483
|
enumerable: true,
|
|
484
|
-
get: function () { return
|
|
484
|
+
get: function () { return chunkVVPB7NKX_cjs.useDeleteSavedSignature; }
|
|
485
485
|
});
|
|
486
486
|
Object.defineProperty(exports, "useDocumentBytes", {
|
|
487
487
|
enumerable: true,
|
|
488
|
-
get: function () { return
|
|
488
|
+
get: function () { return chunkVVPB7NKX_cjs.useDocumentBytes; }
|
|
489
489
|
});
|
|
490
490
|
Object.defineProperty(exports, "useDocumentMarkup", {
|
|
491
491
|
enumerable: true,
|
|
492
|
-
get: function () { return
|
|
492
|
+
get: function () { return chunkVVPB7NKX_cjs.useDocumentMarkup; }
|
|
493
493
|
});
|
|
494
494
|
Object.defineProperty(exports, "useDocumentSignatureRequests", {
|
|
495
495
|
enumerable: true,
|
|
496
|
-
get: function () { return
|
|
496
|
+
get: function () { return chunkVVPB7NKX_cjs.useDocumentSignatureRequests; }
|
|
497
497
|
});
|
|
498
498
|
Object.defineProperty(exports, "useDocumentSignatures", {
|
|
499
499
|
enumerable: true,
|
|
500
|
-
get: function () { return
|
|
500
|
+
get: function () { return chunkVVPB7NKX_cjs.useDocumentSignatures; }
|
|
501
501
|
});
|
|
502
502
|
Object.defineProperty(exports, "useFileShare", {
|
|
503
503
|
enumerable: true,
|
|
504
|
-
get: function () { return
|
|
504
|
+
get: function () { return chunkVVPB7NKX_cjs.useFileShare; }
|
|
505
505
|
});
|
|
506
506
|
Object.defineProperty(exports, "useFileSharePdf", {
|
|
507
507
|
enumerable: true,
|
|
508
|
-
get: function () { return
|
|
508
|
+
get: function () { return chunkVVPB7NKX_cjs.useFileSharePdf; }
|
|
509
509
|
});
|
|
510
510
|
Object.defineProperty(exports, "useFileShares", {
|
|
511
511
|
enumerable: true,
|
|
512
|
-
get: function () { return
|
|
512
|
+
get: function () { return chunkVVPB7NKX_cjs.useFileShares; }
|
|
513
513
|
});
|
|
514
514
|
Object.defineProperty(exports, "useInviteSigners", {
|
|
515
515
|
enumerable: true,
|
|
516
|
-
get: function () { return
|
|
516
|
+
get: function () { return chunkVVPB7NKX_cjs.useInviteSigners; }
|
|
517
517
|
});
|
|
518
518
|
Object.defineProperty(exports, "useIsOnline", {
|
|
519
519
|
enumerable: true,
|
|
520
|
-
get: function () { return
|
|
520
|
+
get: function () { return chunkVVPB7NKX_cjs.useIsOnline; }
|
|
521
521
|
});
|
|
522
522
|
Object.defineProperty(exports, "useSaveSignatureRequest", {
|
|
523
523
|
enumerable: true,
|
|
524
|
-
get: function () { return
|
|
524
|
+
get: function () { return chunkVVPB7NKX_cjs.useSaveSignatureRequest; }
|
|
525
525
|
});
|
|
526
526
|
Object.defineProperty(exports, "useSavedSignature", {
|
|
527
527
|
enumerable: true,
|
|
528
|
-
get: function () { return
|
|
528
|
+
get: function () { return chunkVVPB7NKX_cjs.useSavedSignature; }
|
|
529
529
|
});
|
|
530
530
|
Object.defineProperty(exports, "useSignDocument", {
|
|
531
531
|
enumerable: true,
|
|
532
|
-
get: function () { return
|
|
532
|
+
get: function () { return chunkVVPB7NKX_cjs.useSignDocument; }
|
|
533
533
|
});
|
|
534
534
|
Object.defineProperty(exports, "useSignSignatureRequest", {
|
|
535
535
|
enumerable: true,
|
|
536
|
-
get: function () { return
|
|
536
|
+
get: function () { return chunkVVPB7NKX_cjs.useSignSignatureRequest; }
|
|
537
537
|
});
|
|
538
538
|
Object.defineProperty(exports, "useSignatureVerification", {
|
|
539
539
|
enumerable: true,
|
|
540
|
-
get: function () { return
|
|
540
|
+
get: function () { return chunkVVPB7NKX_cjs.useSignatureVerification; }
|
|
541
541
|
});
|
|
542
542
|
Object.defineProperty(exports, "useSignerCandidates", {
|
|
543
543
|
enumerable: true,
|
|
544
|
-
get: function () { return
|
|
544
|
+
get: function () { return chunkVVPB7NKX_cjs.useSignerCandidates; }
|
|
545
545
|
});
|
|
546
546
|
Object.defineProperty(exports, "useStoreSavedSignature", {
|
|
547
547
|
enumerable: true,
|
|
548
|
-
get: function () { return
|
|
548
|
+
get: function () { return chunkVVPB7NKX_cjs.useStoreSavedSignature; }
|
|
549
549
|
});
|
|
550
550
|
Object.defineProperty(exports, "useVoidSignatureRequest", {
|
|
551
551
|
enumerable: true,
|
|
552
|
-
get: function () { return
|
|
552
|
+
get: function () { return chunkVVPB7NKX_cjs.useVoidSignatureRequest; }
|
|
553
553
|
});
|
|
554
554
|
Object.defineProperty(exports, "versionsWithMarkup", {
|
|
555
555
|
enumerable: true,
|
|
556
|
-
get: function () { return
|
|
556
|
+
get: function () { return chunkVVPB7NKX_cjs.versionsWithMarkup; }
|
|
557
557
|
});
|
|
558
558
|
Object.defineProperty(exports, "DocumentFetchError", {
|
|
559
559
|
enumerable: true,
|
|
560
|
-
get: function () { return
|
|
560
|
+
get: function () { return chunkXBY4RLC6_cjs.DocumentFetchError; }
|
|
561
561
|
});
|
|
562
562
|
Object.defineProperty(exports, "DocumentToolsProvider", {
|
|
563
563
|
enumerable: true,
|
|
564
|
-
get: function () { return
|
|
564
|
+
get: function () { return chunkXBY4RLC6_cjs.DocumentToolsProvider; }
|
|
565
565
|
});
|
|
566
566
|
Object.defineProperty(exports, "MarkupDownloadError", {
|
|
567
567
|
enumerable: true,
|
|
568
|
-
get: function () { return
|
|
568
|
+
get: function () { return chunkXBY4RLC6_cjs.MarkupDownloadError; }
|
|
569
569
|
});
|
|
570
570
|
Object.defineProperty(exports, "SIGNED_LOCKED_REASON", {
|
|
571
571
|
enumerable: true,
|
|
572
|
-
get: function () { return
|
|
572
|
+
get: function () { return chunkXBY4RLC6_cjs.SIGNED_LOCKED_REASON; }
|
|
573
573
|
});
|
|
574
574
|
Object.defineProperty(exports, "certificateLink", {
|
|
575
575
|
enumerable: true,
|
|
576
|
-
get: function () { return
|
|
576
|
+
get: function () { return chunkXBY4RLC6_cjs.certificateLink; }
|
|
577
577
|
});
|
|
578
578
|
Object.defineProperty(exports, "clientUpload", {
|
|
579
579
|
enumerable: true,
|
|
580
|
-
get: function () { return
|
|
580
|
+
get: function () { return chunkXBY4RLC6_cjs.clientUpload; }
|
|
581
581
|
});
|
|
582
582
|
Object.defineProperty(exports, "contentDispositionFileName", {
|
|
583
583
|
enumerable: true,
|
|
584
|
-
get: function () { return
|
|
584
|
+
get: function () { return chunkXBY4RLC6_cjs.contentDispositionFileName; }
|
|
585
585
|
});
|
|
586
586
|
Object.defineProperty(exports, "currentHasMarkup", {
|
|
587
587
|
enumerable: true,
|
|
588
|
-
get: function () { return
|
|
588
|
+
get: function () { return chunkXBY4RLC6_cjs.currentHasMarkup; }
|
|
589
589
|
});
|
|
590
590
|
Object.defineProperty(exports, "defaultCertificateUrl", {
|
|
591
591
|
enumerable: true,
|
|
592
|
-
get: function () { return
|
|
592
|
+
get: function () { return chunkXBY4RLC6_cjs.defaultCertificateUrl; }
|
|
593
593
|
});
|
|
594
594
|
Object.defineProperty(exports, "downloadBlob", {
|
|
595
595
|
enumerable: true,
|
|
596
|
-
get: function () { return
|
|
596
|
+
get: function () { return chunkXBY4RLC6_cjs.downloadBlob; }
|
|
597
597
|
});
|
|
598
598
|
Object.defineProperty(exports, "fetchDocumentFile", {
|
|
599
599
|
enumerable: true,
|
|
600
|
-
get: function () { return
|
|
600
|
+
get: function () { return chunkXBY4RLC6_cjs.fetchDocumentFile; }
|
|
601
601
|
});
|
|
602
602
|
Object.defineProperty(exports, "fetchDocumentPdf", {
|
|
603
603
|
enumerable: true,
|
|
604
|
-
get: function () { return
|
|
604
|
+
get: function () { return chunkXBY4RLC6_cjs.fetchDocumentPdf; }
|
|
605
605
|
});
|
|
606
606
|
Object.defineProperty(exports, "fetchMarkupPdf", {
|
|
607
607
|
enumerable: true,
|
|
608
|
-
get: function () { return
|
|
608
|
+
get: function () { return chunkXBY4RLC6_cjs.fetchMarkupPdf; }
|
|
609
609
|
});
|
|
610
610
|
Object.defineProperty(exports, "isSignedVersion", {
|
|
611
611
|
enumerable: true,
|
|
612
|
-
get: function () { return
|
|
612
|
+
get: function () { return chunkXBY4RLC6_cjs.isSignedVersion; }
|
|
613
613
|
});
|
|
614
614
|
Object.defineProperty(exports, "uploadQueryString", {
|
|
615
615
|
enumerable: true,
|
|
616
|
-
get: function () { return
|
|
616
|
+
get: function () { return chunkXBY4RLC6_cjs.uploadQueryString; }
|
|
617
617
|
});
|
|
618
618
|
Object.defineProperty(exports, "useDocumentTools", {
|
|
619
619
|
enumerable: true,
|
|
620
|
-
get: function () { return
|
|
620
|
+
get: function () { return chunkXBY4RLC6_cjs.useDocumentTools; }
|
|
621
621
|
});
|
|
622
622
|
Object.defineProperty(exports, "useOptionalDocumentTools", {
|
|
623
623
|
enumerable: true,
|
|
624
|
-
get: function () { return
|
|
624
|
+
get: function () { return chunkXBY4RLC6_cjs.useOptionalDocumentTools; }
|
|
625
625
|
});
|
|
626
626
|
Object.defineProperty(exports, "documentBytesKey", {
|
|
627
627
|
enumerable: true,
|
|
628
|
-
get: function () { return
|
|
628
|
+
get: function () { return chunk5FQB5F2F_cjs.documentBytesKey; }
|
|
629
629
|
});
|
|
630
630
|
exports.PRODUCTIONS_FOLDER = PRODUCTIONS_FOLDER;
|
|
631
631
|
exports.buildProduction = buildProduction;
|
|
@@ -3,7 +3,7 @@ export { AdoptedSignature, AnnotatableState, CopyMatch, CreateFileShare, DEFAULT
|
|
|
3
3
|
import { components } from '@arbidocs/client';
|
|
4
4
|
import { P as ProductionChoices } from '../ProductionDialog.d-CpzslFn0.js';
|
|
5
5
|
import { a as BundleFile, b as BundleIndexEntry } from '../bundle.d-BnCSbHy2.js';
|
|
6
|
-
export { D as DocumentBytesKind, f as documentBytesKey } from '../query-keys.d-
|
|
6
|
+
export { D as DocumentBytesKind, f as documentBytesKey } from '../query-keys.d-pgq-4jyZ.js';
|
|
7
7
|
import 'react';
|
|
8
8
|
import '../store.d-DkFXbWDk.js';
|
|
9
9
|
import '../model.d-CNtRWKVK.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useCallback } from "react";
|
|
2
2
|
import { onlineManager, useMutation, useQueryClient } from "@tanstack/react-query";
|
|
3
|
+
import { logger } from "@arbidocs/client";
|
|
3
4
|
import {
|
|
4
5
|
documents as documentOps,
|
|
5
6
|
doctags as doctagOps
|
|
@@ -14,6 +15,7 @@ import {
|
|
|
14
15
|
setCachedDocument
|
|
15
16
|
} from "./documents-cache.js";
|
|
16
17
|
import { adjustTagCounts, refreshDocuments } from "./documents-data.js";
|
|
18
|
+
import { documentReadiness, whenProcessed } from "./tag-when-processed.js";
|
|
17
19
|
import { useArbiWsStore } from "../websocket/store.js";
|
|
18
20
|
import {
|
|
19
21
|
QUEUED_WRITE_RETRY,
|
|
@@ -400,25 +402,54 @@ function useGenerateDocTags() {
|
|
|
400
402
|
const qc = useQueryClient();
|
|
401
403
|
return useMutation({
|
|
402
404
|
mutationKey: arbiMutationKeys.generateDocTags(),
|
|
403
|
-
mutationFn:
|
|
404
|
-
|
|
405
|
-
|
|
405
|
+
mutationFn: async ({
|
|
406
|
+
tagIds,
|
|
407
|
+
docIds,
|
|
408
|
+
overwrite
|
|
409
|
+
}) => {
|
|
406
410
|
const workspaceId = arbi.hasWorkspace ? arbi.getWorkspaceId() : "";
|
|
407
|
-
const
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
undo: queueProcessing(
|
|
412
|
-
docIds.map((docId) => ({
|
|
411
|
+
const rowOf = (docId) => getCachedDocuments(qc, workspaceId)?.find((doc) => doc.external_id === docId) ?? qc.getQueryData(arbiQueryKeys.document(docId));
|
|
412
|
+
const request = async (ids) => {
|
|
413
|
+
const undo = queueProcessing(
|
|
414
|
+
ids.map((docId) => ({
|
|
413
415
|
docId,
|
|
414
416
|
workspaceId,
|
|
415
|
-
fileName:
|
|
416
|
-
version:
|
|
417
|
+
fileName: rowOf(docId)?.file_name ?? "",
|
|
418
|
+
version: rowOf(docId)?.current_version ?? 1
|
|
417
419
|
}))
|
|
418
|
-
)
|
|
420
|
+
);
|
|
421
|
+
try {
|
|
422
|
+
await arbi.doctags.generate(tagIds, ids, { overwrite });
|
|
423
|
+
} catch (error) {
|
|
424
|
+
undo();
|
|
425
|
+
throw error;
|
|
426
|
+
}
|
|
419
427
|
};
|
|
420
|
-
|
|
421
|
-
|
|
428
|
+
const result = {
|
|
429
|
+
docIds: [],
|
|
430
|
+
queuedDocIds: [],
|
|
431
|
+
unprocessableDocIds: []
|
|
432
|
+
};
|
|
433
|
+
for (const docId of docIds) {
|
|
434
|
+
const readiness = documentReadiness(rowOf(docId));
|
|
435
|
+
if (readiness === "processed") result.docIds.push(docId);
|
|
436
|
+
else if (readiness === "processing") result.queuedDocIds.push(docId);
|
|
437
|
+
else result.unprocessableDocIds.push(docId);
|
|
438
|
+
}
|
|
439
|
+
if (result.queuedDocIds.length) {
|
|
440
|
+
whenProcessed(
|
|
441
|
+
qc,
|
|
442
|
+
result.queuedDocIds,
|
|
443
|
+
(ready) => request(ready).catch(
|
|
444
|
+
(error) => logger.error("Filling AI fields on processed documents failed:", error)
|
|
445
|
+
)
|
|
446
|
+
);
|
|
447
|
+
const unread = result.queuedDocIds.filter((docId) => !rowOf(docId));
|
|
448
|
+
if (unread.length) void refreshDocuments(qc, arbi, unread);
|
|
449
|
+
}
|
|
450
|
+
if (result.docIds.length) await request(result.docIds);
|
|
451
|
+
return result;
|
|
452
|
+
}
|
|
422
453
|
});
|
|
423
454
|
}
|
|
424
455
|
function useFinaliseTranslation() {
|