@arbidocs/react 0.5.104 → 0.5.106
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/annotations/freeze/index.cjs +14 -14
- package/dist/annotations/freeze/index.js +3 -3
- package/dist/artifacts/index.cjs +34 -34
- package/dist/artifacts/index.js +6 -6
- package/dist/bundle-IC65W2AO.cjs +14 -0
- package/dist/{bundle-DCWPYNGD.cjs.map → bundle-IC65W2AO.cjs.map} +1 -1
- package/dist/bundle-YNOX7VIL.js +5 -0
- package/dist/{bundle-JCKKGEJE.js.map → bundle-YNOX7VIL.js.map} +1 -1
- package/dist/calls/livekit/index.cjs +44 -44
- package/dist/calls/livekit/index.js +5 -5
- package/dist/{chunk-YD25DEMR.cjs → chunk-2YRQJ3DR.cjs} +25 -25
- package/dist/{chunk-YD25DEMR.cjs.map → chunk-2YRQJ3DR.cjs.map} +1 -1
- package/dist/{chunk-LD2SJBXC.js → chunk-7NKF3VUN.js} +5 -5
- package/dist/{chunk-LD2SJBXC.js.map → chunk-7NKF3VUN.js.map} +1 -1
- package/dist/{chunk-RC42YRVA.js → chunk-AXKIOI2U.js} +3 -3
- package/dist/{chunk-RC42YRVA.js.map → chunk-AXKIOI2U.js.map} +1 -1
- package/dist/{chunk-TTHJNRLY.cjs → chunk-C72FSQUE.cjs} +6 -6
- package/dist/{chunk-TTHJNRLY.cjs.map → chunk-C72FSQUE.cjs.map} +1 -1
- package/dist/{chunk-NNAJLY6B.js → chunk-DPR7LVZO.js} +3 -3
- package/dist/{chunk-NNAJLY6B.js.map → chunk-DPR7LVZO.js.map} +1 -1
- package/dist/{chunk-LBAG7KL7.cjs → chunk-FQVNZCTD.cjs} +3 -3
- package/dist/{chunk-LBAG7KL7.cjs.map → chunk-FQVNZCTD.cjs.map} +1 -1
- package/dist/{chunk-524AFWK7.cjs → chunk-K7UUWND5.cjs} +7 -6
- package/dist/chunk-K7UUWND5.cjs.map +1 -0
- package/dist/{chunk-7C77IBQZ.cjs → chunk-NDIKMOBJ.cjs} +3 -3
- package/dist/{chunk-7C77IBQZ.cjs.map → chunk-NDIKMOBJ.cjs.map} +1 -1
- package/dist/{chunk-A2XSLTIP.js → chunk-NIKPG4PW.js} +3 -3
- package/dist/{chunk-A2XSLTIP.js.map → chunk-NIKPG4PW.js.map} +1 -1
- package/dist/{chunk-7KZS22EK.js → chunk-OSFKAJT2.js} +5 -5
- package/dist/{chunk-7KZS22EK.js.map → chunk-OSFKAJT2.js.map} +1 -1
- package/dist/{chunk-B6I2HRRF.cjs → chunk-PC4O3JDV.cjs} +3 -3
- package/dist/{chunk-B6I2HRRF.cjs.map → chunk-PC4O3JDV.cjs.map} +1 -1
- package/dist/{chunk-GR7CZEJJ.js → chunk-UW2SGTI5.js} +3 -3
- package/dist/{chunk-GR7CZEJJ.js.map → chunk-UW2SGTI5.js.map} +1 -1
- package/dist/{chunk-A6HUB6PX.js → chunk-VAO76OJO.js} +5 -4
- package/dist/chunk-VAO76OJO.js.map +1 -0
- package/dist/{chunk-6TUNWGRJ.cjs → chunk-XOS7ISIR.cjs} +5 -5
- package/dist/{chunk-6TUNWGRJ.cjs.map → chunk-XOS7ISIR.cjs.map} +1 -1
- package/dist/{chunk-YNKV4MN6.cjs → chunk-YUESCKE2.cjs} +19 -7
- package/dist/chunk-YUESCKE2.cjs.map +1 -0
- package/dist/{chunk-V73GLDHD.js → chunk-ZGGDH54R.js} +18 -6
- package/dist/chunk-ZGGDH54R.js.map +1 -0
- package/dist/document-tools/core.cjs +100 -100
- package/dist/document-tools/core.d.cts +2 -1
- package/dist/document-tools/core.d.ts +2 -1
- package/dist/document-tools/core.js +6 -6
- package/dist/document-tools/index.cjs +103 -103
- package/dist/document-tools/index.js +8 -8
- package/dist/index.cjs +1630 -1578
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +135 -10
- package/dist/index.d.ts +135 -10
- package/dist/index.js +76 -24
- package/dist/index.js.map +1 -1
- package/dist/shell/index.cjs +40 -40
- package/dist/shell/index.js +5 -5
- package/dist/ui/index.cjs +154 -154
- package/dist/ui/index.js +2 -2
- package/package.json +3 -3
- package/dist/bundle-DCWPYNGD.cjs +0 -14
- package/dist/bundle-JCKKGEJE.js +0 -5
- package/dist/chunk-524AFWK7.cjs.map +0 -1
- package/dist/chunk-A6HUB6PX.js.map +0 -1
- package/dist/chunk-V73GLDHD.js.map +0 -1
- package/dist/chunk-YNKV4MN6.cjs.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { toProfileView, useCallTranscriptionAvailable, onCallEvent, transcriptPersistRole, persistTranscriptSegment, newSegmentId, encodeCaptionPacket, CALL_CAPTION_TOPIC, ensureMeetingChat, trackUploaderFor, conversationKeyForCall, loadMeetingHistory, CALL_CHAT_MAX_CHARS, newPacketId, encodeCallChatPacket, CALL_CHAT_TOPIC, persistMeetingMessage, mergeChatLines, openQuestion, markRejoining, sealQuestionText, createMutedNotifier, CALL_RECORDING_TOPIC, CALL_TRANSCRIPTION_TOPIC, decodeCaptionPacket, CALL_MODERATION_TOPIC, mutedNoticeFromPacket, decodeCallChatPacket, CALL_WEBINAR_TOPIC, parseWebinarPacket } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-RC42YRVA.js';
|
|
1
|
+
import { toProfileView, useCallTranscriptionAvailable, onCallEvent, transcriptPersistRole, persistTranscriptSegment, newSegmentId, encodeCaptionPacket, CALL_CAPTION_TOPIC, ensureMeetingChat, trackUploaderFor, conversationKeyForCall, loadMeetingHistory, CALL_CHAT_MAX_CHARS, newPacketId, encodeCallChatPacket, CALL_CHAT_TOPIC, persistMeetingMessage, mergeChatLines, openQuestion, markRejoining, sealQuestionText, createMutedNotifier, CALL_RECORDING_TOPIC, CALL_TRANSCRIPTION_TOPIC, decodeCaptionPacket, CALL_MODERATION_TOPIC, mutedNoticeFromPacket, decodeCallChatPacket, CALL_WEBINAR_TOPIC, parseWebinarPacket } from '../../chunk-VAO76OJO.js';
|
|
2
|
+
import '../../chunk-AXKIOI2U.js';
|
|
4
3
|
import { useArbi, useArbiHost } from '../../chunk-M74JCOXW.js';
|
|
5
4
|
import { notify } from '../../chunk-BF5KW5ZI.js';
|
|
6
5
|
import '../../chunk-DPYBZDJB.js';
|
|
7
|
-
import '../../chunk-
|
|
6
|
+
import '../../chunk-UW2SGTI5.js';
|
|
7
|
+
import '../../chunk-WUTL62MC.js';
|
|
8
|
+
import '../../chunk-APZZQZ6P.js';
|
|
8
9
|
import '../../chunk-VSCU7K4V.js';
|
|
9
10
|
import '../../chunk-SN5YV6FF.js';
|
|
10
|
-
import '../../chunk-WUTL62MC.js';
|
|
11
11
|
import { useState, useEffect, useRef, useCallback, useMemo } from 'react';
|
|
12
12
|
import { RoomEvent, ExternalE2EEKeyProvider, Room } from 'livekit-client';
|
|
13
13
|
import { useRoomContext, useLocalParticipant, useLocalParticipantPermissions } from '@livekit/components-react';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkYUESCKE2_cjs = require('./chunk-YUESCKE2.cjs');
|
|
4
|
+
var chunkQ2GNEVG2_cjs = require('./chunk-Q2GNEVG2.cjs');
|
|
4
5
|
var chunkSUZORMAB_cjs = require('./chunk-SUZORMAB.cjs');
|
|
5
6
|
var chunk2IJP73ZG_cjs = require('./chunk-2IJP73ZG.cjs');
|
|
6
|
-
var
|
|
7
|
-
var chunk7C77IBQZ_cjs = require('./chunk-7C77IBQZ.cjs');
|
|
7
|
+
var chunkNDIKMOBJ_cjs = require('./chunk-NDIKMOBJ.cjs');
|
|
8
8
|
var react = require('react');
|
|
9
9
|
var reactQuery = require('@tanstack/react-query');
|
|
10
10
|
var client = require('@arbidocs/client');
|
|
@@ -210,7 +210,7 @@ function versionsWithMarkup(versions) {
|
|
|
210
210
|
}
|
|
211
211
|
var SIGNED_UNCHANGED = "The signed PDF is unchanged: the comments are kept beside it as markup.";
|
|
212
212
|
function useDocumentMarkup(documentData, snapshotVersion, currentSigned = false) {
|
|
213
|
-
const { client, notify, saveFile, onDocumentsChanged } =
|
|
213
|
+
const { client, notify, saveFile, onDocumentsChanged } = chunkYUESCKE2_cjs.useDocumentTools();
|
|
214
214
|
const documentId = documentData?.external_id;
|
|
215
215
|
const currentVersion = documentData?.current_version ?? 1;
|
|
216
216
|
const shownVersion = snapshotVersion ?? currentVersion;
|
|
@@ -241,11 +241,11 @@ function useDocumentMarkup(documentData, snapshotVersion, currentSigned = false)
|
|
|
241
241
|
const downloadMarkup = react.useCallback(async () => {
|
|
242
242
|
if (!documentId) return;
|
|
243
243
|
if (currentSigned) {
|
|
244
|
-
notify(
|
|
244
|
+
notify(chunkYUESCKE2_cjs.SIGNED_LOCKED_REASON, "info");
|
|
245
245
|
return;
|
|
246
246
|
}
|
|
247
247
|
try {
|
|
248
|
-
const { blob, fileName } = await
|
|
248
|
+
const { blob, fileName } = await chunkYUESCKE2_cjs.fetchMarkupPdf(
|
|
249
249
|
client,
|
|
250
250
|
documentId,
|
|
251
251
|
snapshotVersion ? snapshotVersion : void 0
|
|
@@ -383,7 +383,7 @@ function useIsOnline() {
|
|
|
383
383
|
);
|
|
384
384
|
}
|
|
385
385
|
function useDocumentBytes(documentRef, options) {
|
|
386
|
-
const { client } =
|
|
386
|
+
const { client } = chunkYUESCKE2_cjs.useDocumentTools();
|
|
387
387
|
const { version, kind, enabled = true, fallback } = options;
|
|
388
388
|
return reactQuery.useQuery({
|
|
389
389
|
queryKey: chunkQ2GNEVG2_cjs.documentBytesKey(documentRef, version ?? null, kind),
|
|
@@ -393,7 +393,7 @@ function useDocumentBytes(documentRef, options) {
|
|
|
393
393
|
if (offline) return offline;
|
|
394
394
|
}
|
|
395
395
|
try {
|
|
396
|
-
return await (kind === "original" ?
|
|
396
|
+
return await (kind === "original" ? chunkYUESCKE2_cjs.fetchDocumentFile : chunkYUESCKE2_cjs.fetchDocumentPdf)(
|
|
397
397
|
client,
|
|
398
398
|
documentRef,
|
|
399
399
|
{ signal }
|
|
@@ -430,7 +430,7 @@ function errorDetail(error, fallback) {
|
|
|
430
430
|
return typeof detail3 === "string" ? detail3 : fallback;
|
|
431
431
|
}
|
|
432
432
|
async function fetchDocumentSignatures(client, documentRef) {
|
|
433
|
-
const { docId, version } =
|
|
433
|
+
const { docId, version } = chunkNDIKMOBJ_cjs.parseVersionRef(documentRef);
|
|
434
434
|
const { data, error } = await client.GET(SIGNATURES_PATH, {
|
|
435
435
|
params: { path: { document_ext_id: docId }, ...version ? { query: { version } } : {} }
|
|
436
436
|
});
|
|
@@ -438,8 +438,8 @@ async function fetchDocumentSignatures(client, documentRef) {
|
|
|
438
438
|
return data;
|
|
439
439
|
}
|
|
440
440
|
function useDocumentSignatures(documentId, enabled = true) {
|
|
441
|
-
const { client } =
|
|
442
|
-
const { docId, version } =
|
|
441
|
+
const { client } = chunkYUESCKE2_cjs.useDocumentTools();
|
|
442
|
+
const { docId, version } = chunkNDIKMOBJ_cjs.parseVersionRef(documentId);
|
|
443
443
|
return reactQuery.useQuery({
|
|
444
444
|
queryKey: chunkQ2GNEVG2_cjs.arbiQueryKeys.documentSignatures(docId ?? "", version),
|
|
445
445
|
queryFn: () => fetchDocumentSignatures(client, documentId),
|
|
@@ -506,7 +506,7 @@ async function signDocument(client$1, deploymentDomain, {
|
|
|
506
506
|
return signed.data;
|
|
507
507
|
}
|
|
508
508
|
function useSignDocument() {
|
|
509
|
-
const env =
|
|
509
|
+
const env = chunkYUESCKE2_cjs.useDocumentTools();
|
|
510
510
|
const queryClient = reactQuery.useQueryClient();
|
|
511
511
|
return reactQuery.useMutation({
|
|
512
512
|
mutationFn: (vars) => {
|
|
@@ -552,7 +552,7 @@ async function fetchSignatureVerification(client, reference) {
|
|
|
552
552
|
return data;
|
|
553
553
|
}
|
|
554
554
|
function useSignatureVerification(reference) {
|
|
555
|
-
const { client } =
|
|
555
|
+
const { client } = chunkYUESCKE2_cjs.useDocumentTools();
|
|
556
556
|
return reactQuery.useQuery({
|
|
557
557
|
queryKey: chunkQ2GNEVG2_cjs.arbiQueryKeys.signatureVerification(reference ?? ""),
|
|
558
558
|
queryFn: () => fetchSignatureVerification(client, reference),
|
|
@@ -661,7 +661,7 @@ async function fetchDocumentSignatureRequests(client, documentId) {
|
|
|
661
661
|
return data;
|
|
662
662
|
}
|
|
663
663
|
function useDocumentSignatureRequests(documentId, enabled = true) {
|
|
664
|
-
const { client } =
|
|
664
|
+
const { client } = chunkYUESCKE2_cjs.useDocumentTools();
|
|
665
665
|
return reactQuery.useQuery({
|
|
666
666
|
queryKey: chunkQ2GNEVG2_cjs.arbiQueryKeys.signatureRequestsForDocument(documentId ?? ""),
|
|
667
667
|
queryFn: () => fetchDocumentSignatureRequests(client, documentId),
|
|
@@ -709,7 +709,7 @@ function useInvalidateRequests() {
|
|
|
709
709
|
return () => queryClient.invalidateQueries({ queryKey: chunkQ2GNEVG2_cjs.arbiQueryKeys.signatureRequests() });
|
|
710
710
|
}
|
|
711
711
|
function useSaveSignatureRequest() {
|
|
712
|
-
const { client } =
|
|
712
|
+
const { client } = chunkYUESCKE2_cjs.useDocumentTools();
|
|
713
713
|
const invalidate = useInvalidateRequests();
|
|
714
714
|
return reactQuery.useMutation({
|
|
715
715
|
mutationFn: (vars) => saveSignatureRequest(client, vars),
|
|
@@ -717,7 +717,7 @@ function useSaveSignatureRequest() {
|
|
|
717
717
|
});
|
|
718
718
|
}
|
|
719
719
|
function useVoidSignatureRequest() {
|
|
720
|
-
const { client } =
|
|
720
|
+
const { client } = chunkYUESCKE2_cjs.useDocumentTools();
|
|
721
721
|
const invalidate = useInvalidateRequests();
|
|
722
722
|
return reactQuery.useMutation({
|
|
723
723
|
mutationFn: async (requestId) => {
|
|
@@ -731,7 +731,7 @@ function useVoidSignatureRequest() {
|
|
|
731
731
|
});
|
|
732
732
|
}
|
|
733
733
|
function useDeclineSignatureRequest() {
|
|
734
|
-
const { client } =
|
|
734
|
+
const { client } = chunkYUESCKE2_cjs.useDocumentTools();
|
|
735
735
|
const invalidate = useInvalidateRequests();
|
|
736
736
|
return reactQuery.useMutation({
|
|
737
737
|
mutationFn: async ({ requestId, reason }) => {
|
|
@@ -771,7 +771,7 @@ async function signSignatureRequest(client$1, deploymentDomain, { request, pdfBl
|
|
|
771
771
|
return signed.data;
|
|
772
772
|
}
|
|
773
773
|
function useSignSignatureRequest() {
|
|
774
|
-
const env =
|
|
774
|
+
const env = chunkYUESCKE2_cjs.useDocumentTools();
|
|
775
775
|
const invalidate = useInvalidateRequests();
|
|
776
776
|
const queryClient = reactQuery.useQueryClient();
|
|
777
777
|
return reactQuery.useMutation({
|
|
@@ -789,7 +789,7 @@ function useSignSignatureRequest() {
|
|
|
789
789
|
});
|
|
790
790
|
}
|
|
791
791
|
function useSignerCandidates(enabled = true) {
|
|
792
|
-
const { client, user } =
|
|
792
|
+
const { client, user } = chunkYUESCKE2_cjs.useDocumentTools();
|
|
793
793
|
const { workspaceId, read } = useOpenWorkspaceRead();
|
|
794
794
|
return reactQuery.useQuery({
|
|
795
795
|
queryKey: chunkQ2GNEVG2_cjs.arbiQueryKeys.signatureCandidates(workspaceId ?? ""),
|
|
@@ -830,7 +830,7 @@ async function inviteSigners(client, documentId, emails) {
|
|
|
830
830
|
}
|
|
831
831
|
}
|
|
832
832
|
function useInviteSigners() {
|
|
833
|
-
const { client } =
|
|
833
|
+
const { client } = chunkYUESCKE2_cjs.useDocumentTools();
|
|
834
834
|
const invalidate = useInvalidateRequests();
|
|
835
835
|
const queryClient = reactQuery.useQueryClient();
|
|
836
836
|
return reactQuery.useMutation({
|
|
@@ -874,7 +874,7 @@ async function deleteSavedSignature(client) {
|
|
|
874
874
|
if (!response.ok) throw new Error(detail2(error, "Your saved signature could not be deleted"));
|
|
875
875
|
}
|
|
876
876
|
function useSavedSignature(enabled = true) {
|
|
877
|
-
const { client } =
|
|
877
|
+
const { client } = chunkYUESCKE2_cjs.useDocumentTools();
|
|
878
878
|
return reactQuery.useQuery({
|
|
879
879
|
queryKey: chunkQ2GNEVG2_cjs.arbiQueryKeys.savedSignature(),
|
|
880
880
|
queryFn: () => fetchSavedSignature(client),
|
|
@@ -884,7 +884,7 @@ function useSavedSignature(enabled = true) {
|
|
|
884
884
|
});
|
|
885
885
|
}
|
|
886
886
|
function useStoreSavedSignature() {
|
|
887
|
-
const { client } =
|
|
887
|
+
const { client } = chunkYUESCKE2_cjs.useDocumentTools();
|
|
888
888
|
const queryClient = reactQuery.useQueryClient();
|
|
889
889
|
return reactQuery.useMutation({
|
|
890
890
|
mutationFn: (signature) => storeSavedSignature(client, signature),
|
|
@@ -892,7 +892,7 @@ function useStoreSavedSignature() {
|
|
|
892
892
|
});
|
|
893
893
|
}
|
|
894
894
|
function useDeleteSavedSignature() {
|
|
895
|
-
const { client } =
|
|
895
|
+
const { client } = chunkYUESCKE2_cjs.useDocumentTools();
|
|
896
896
|
const queryClient = reactQuery.useQueryClient();
|
|
897
897
|
return reactQuery.useMutation({
|
|
898
898
|
mutationFn: () => deleteSavedSignature(client),
|
|
@@ -1085,5 +1085,5 @@ exports.useSignerCandidates = useSignerCandidates;
|
|
|
1085
1085
|
exports.useStoreSavedSignature = useStoreSavedSignature;
|
|
1086
1086
|
exports.useVoidSignatureRequest = useVoidSignatureRequest;
|
|
1087
1087
|
exports.versionsWithMarkup = versionsWithMarkup;
|
|
1088
|
-
//# sourceMappingURL=chunk-
|
|
1089
|
-
//# sourceMappingURL=chunk-
|
|
1088
|
+
//# sourceMappingURL=chunk-2YRQJ3DR.cjs.map
|
|
1089
|
+
//# sourceMappingURL=chunk-2YRQJ3DR.cjs.map
|