@arbidocs/blocks 0.5.5 → 0.5.6
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/{ConnectedCallDock-Q7GSQICC.cjs → ConnectedCallDock-WSYIEIYQ.cjs} +9 -9
- package/dist/{ConnectedCallDock-Q7GSQICC.cjs.map → ConnectedCallDock-WSYIEIYQ.cjs.map} +1 -1
- package/dist/{ConnectedCallDock-XCTBUJOT.js → ConnectedCallDock-XUDNF7WJ.js} +8 -8
- package/dist/{ConnectedCallDock-XCTBUJOT.js.map → ConnectedCallDock-XUDNF7WJ.js.map} +1 -1
- package/dist/{ConnectedCallRoom-T6PGW6VC.cjs → ConnectedCallRoom-ATSCANHS.cjs} +9 -9
- package/dist/{ConnectedCallRoom-T6PGW6VC.cjs.map → ConnectedCallRoom-ATSCANHS.cjs.map} +1 -1
- package/dist/{ConnectedCallRoom-W2AHTPYR.js → ConnectedCallRoom-LKXXPK6N.js} +8 -8
- package/dist/{ConnectedCallRoom-W2AHTPYR.js.map → ConnectedCallRoom-LKXXPK6N.js.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-4MI22H2R.js → ConnectedNativeDocxComparison-F47WEZVU.js} +10 -10
- package/dist/{ConnectedNativeDocxComparison-4MI22H2R.js.map → ConnectedNativeDocxComparison-F47WEZVU.js.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-VZLB7WWW.cjs → ConnectedNativeDocxComparison-WEFO2EPP.cjs} +11 -11
- package/dist/{ConnectedNativeDocxComparison-VZLB7WWW.cjs.map → ConnectedNativeDocxComparison-WEFO2EPP.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxEditor-YBHAQQSY.js → ConnectedNativeDocxEditor-BLMQUKP7.js} +9 -9
- package/dist/{ConnectedNativeDocxEditor-YBHAQQSY.js.map → ConnectedNativeDocxEditor-BLMQUKP7.js.map} +1 -1
- package/dist/{ConnectedNativeDocxEditor-74PFGTMR.cjs → ConnectedNativeDocxEditor-RUABE4VP.cjs} +11 -11
- package/dist/{ConnectedNativeDocxEditor-74PFGTMR.cjs.map → ConnectedNativeDocxEditor-RUABE4VP.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-ELHQ2VYL.js → ConnectedStreamedWordArtifact-F66VKPLJ.js} +10 -10
- package/dist/ConnectedStreamedWordArtifact-F66VKPLJ.js.map +1 -0
- package/dist/{ConnectedStreamedWordArtifact-63ME4QD5.cjs → ConnectedStreamedWordArtifact-I2XIXZFY.cjs} +11 -11
- package/dist/ConnectedStreamedWordArtifact-I2XIXZFY.cjs.map +1 -0
- package/dist/NativeDocxEditor-ATPL3Q3O.js +1 -1
- package/dist/NativeDocxEditor-R4EIHWNL.cjs +1 -1
- package/dist/{WorkspaceTableView-FROHEPCT.cjs → WorkspaceTableView-56W7D7UC.cjs} +8 -8
- package/dist/{WorkspaceTableView-FROHEPCT.cjs.map → WorkspaceTableView-56W7D7UC.cjs.map} +1 -1
- package/dist/{WorkspaceTableView-3TIMUU2J.js → WorkspaceTableView-YOZPUVBW.js} +6 -6
- package/dist/{WorkspaceTableView-3TIMUU2J.js.map → WorkspaceTableView-YOZPUVBW.js.map} +1 -1
- package/dist/agents/index.cjs +330 -330
- package/dist/agents/index.js +8 -8
- package/dist/calls/index.cjs +2 -2
- package/dist/calls/index.js +2 -2
- package/dist/{chunk-S4KPVLHO.js → chunk-2UAHEONJ.js} +3 -3
- package/dist/{chunk-S4KPVLHO.js.map → chunk-2UAHEONJ.js.map} +1 -1
- package/dist/{chunk-4MQKXHMC.js → chunk-3XM3IS26.js} +3 -3
- package/dist/{chunk-4MQKXHMC.js.map → chunk-3XM3IS26.js.map} +1 -1
- package/dist/{chunk-M7LMEVXY.cjs → chunk-4VAPCCUZ.cjs} +50 -50
- package/dist/{chunk-M7LMEVXY.cjs.map → chunk-4VAPCCUZ.cjs.map} +1 -1
- package/dist/{chunk-WB4B6TSW.cjs → chunk-6H2V4A33.cjs} +4 -4
- package/dist/{chunk-WB4B6TSW.cjs.map → chunk-6H2V4A33.cjs.map} +1 -1
- package/dist/{chunk-NHY4AKA4.js → chunk-6LPLKK32.js} +3 -3
- package/dist/{chunk-NHY4AKA4.js.map → chunk-6LPLKK32.js.map} +1 -1
- package/dist/{chunk-54RSCDE6.cjs → chunk-6RNNLWCU.cjs} +3 -3
- package/dist/{chunk-54RSCDE6.cjs.map → chunk-6RNNLWCU.cjs.map} +1 -1
- package/dist/{chunk-2CTG4DHL.cjs → chunk-7F6P3GYU.cjs} +5 -5
- package/dist/{chunk-2CTG4DHL.cjs.map → chunk-7F6P3GYU.cjs.map} +1 -1
- package/dist/{chunk-QIY3ZHD2.cjs → chunk-AJXGZV5G.cjs} +3 -3
- package/dist/{chunk-QIY3ZHD2.cjs.map → chunk-AJXGZV5G.cjs.map} +1 -1
- package/dist/{chunk-3IQUMSJI.js → chunk-AOXEVFKP.js} +3 -3
- package/dist/{chunk-3IQUMSJI.js.map → chunk-AOXEVFKP.js.map} +1 -1
- package/dist/{chunk-FEYRHZYB.js → chunk-AP5WW4XJ.js} +6 -6
- package/dist/{chunk-FEYRHZYB.js.map → chunk-AP5WW4XJ.js.map} +1 -1
- package/dist/{chunk-TUODUKDK.cjs → chunk-AXVVXAOY.cjs} +4 -4
- package/dist/{chunk-TUODUKDK.cjs.map → chunk-AXVVXAOY.cjs.map} +1 -1
- package/dist/{chunk-X5FS27BM.js → chunk-BFKHJZ3P.js} +3 -3
- package/dist/{chunk-X5FS27BM.js.map → chunk-BFKHJZ3P.js.map} +1 -1
- package/dist/{chunk-DAEDRTIN.cjs → chunk-GWA4N43X.cjs} +3 -3
- package/dist/{chunk-DAEDRTIN.cjs.map → chunk-GWA4N43X.cjs.map} +1 -1
- package/dist/{chunk-2A2QX3MS.js → chunk-I23WVKEX.js} +5 -5
- package/dist/{chunk-2A2QX3MS.js.map → chunk-I23WVKEX.js.map} +1 -1
- package/dist/{chunk-LSKTOCKN.js → chunk-I4BGKX2H.js} +4 -4
- package/dist/{chunk-LSKTOCKN.js.map → chunk-I4BGKX2H.js.map} +1 -1
- package/dist/{chunk-AY66THUZ.cjs → chunk-I7N5PRTQ.cjs} +12 -12
- package/dist/{chunk-AY66THUZ.cjs.map → chunk-I7N5PRTQ.cjs.map} +1 -1
- package/dist/{chunk-L22BJYHL.cjs → chunk-JVPFKYXE.cjs} +3 -3
- package/dist/{chunk-L22BJYHL.cjs.map → chunk-JVPFKYXE.cjs.map} +1 -1
- package/dist/{chunk-Z7KGBVKI.js → chunk-LBJYN5TJ.js} +6 -6
- package/dist/{chunk-Z7KGBVKI.js.map → chunk-LBJYN5TJ.js.map} +1 -1
- package/dist/{chunk-RC2REIM4.js → chunk-MWQFMVX7.js} +3 -3
- package/dist/{chunk-RC2REIM4.js.map → chunk-MWQFMVX7.js.map} +1 -1
- package/dist/{chunk-PSTA227J.cjs → chunk-NKBVMHE3.cjs} +8 -8
- package/dist/{chunk-PSTA227J.cjs.map → chunk-NKBVMHE3.cjs.map} +1 -1
- package/dist/{chunk-AQ2XKOQ7.js → chunk-OBOWJBHS.js} +3 -3
- package/dist/{chunk-AQ2XKOQ7.js.map → chunk-OBOWJBHS.js.map} +1 -1
- package/dist/{chunk-IK4AWPDW.js → chunk-OWRQLGRM.js} +3 -3
- package/dist/{chunk-IK4AWPDW.js.map → chunk-OWRQLGRM.js.map} +1 -1
- package/dist/{chunk-32W6STZ2.cjs → chunk-PGZJ7JPX.cjs} +5 -5
- package/dist/{chunk-32W6STZ2.cjs.map → chunk-PGZJ7JPX.cjs.map} +1 -1
- package/dist/{chunk-LPUQHIVP.cjs → chunk-SGDM6ZVT.cjs} +3 -3
- package/dist/{chunk-LPUQHIVP.cjs.map → chunk-SGDM6ZVT.cjs.map} +1 -1
- package/dist/{chunk-6HPBSKXG.cjs → chunk-US43A35W.cjs} +4 -4
- package/dist/{chunk-6HPBSKXG.cjs.map → chunk-US43A35W.cjs.map} +1 -1
- package/dist/{chunk-XHJAYCPQ.js → chunk-V2NEQGHA.js} +3 -3
- package/dist/{chunk-XHJAYCPQ.js.map → chunk-V2NEQGHA.js.map} +1 -1
- package/dist/{chunk-QH4OY5GP.js → chunk-W76ZUOZO.js} +3 -3
- package/dist/{chunk-QH4OY5GP.js.map → chunk-W76ZUOZO.js.map} +1 -1
- package/dist/{chunk-M6Z7HTJ2.cjs → chunk-ZNFTHDL2.cjs} +5 -5
- package/dist/{chunk-M6Z7HTJ2.cjs.map → chunk-ZNFTHDL2.cjs.map} +1 -1
- package/dist/collaboration/index.cjs +1 -1
- package/dist/collaboration/index.js +1 -1
- package/dist/connect/docx.cjs +13 -13
- package/dist/connect/docx.js +9 -9
- package/dist/connect/index.cjs +790 -775
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +51 -36
- package/dist/connect/index.js.map +1 -1
- package/dist/connect/viewer.cjs +76 -76
- package/dist/connect/viewer.js +15 -15
- package/dist/connection/config/useDeveloperConfig.d.ts +3 -0
- package/dist/connection/config/useModelPicker.d.ts +12 -0
- package/dist/document-tools/index.cjs +19 -19
- package/dist/document-tools/index.js +2 -2
- package/dist/docx/index.cjs +1 -1
- package/dist/docx/index.js +1 -1
- package/dist/facts/index.cjs +1 -1
- package/dist/facts/index.js +1 -1
- package/dist/files/index.cjs +224 -224
- package/dist/files/index.js +4 -4
- package/dist/index.cjs +458 -458
- package/dist/index.js +14 -14
- package/dist/settings/index.cjs +155 -155
- package/dist/settings/index.js +2 -2
- package/dist/shell/index.cjs +11 -11
- package/dist/shell/index.js +3 -3
- package/dist/site/index.cjs +22 -22
- package/dist/site/index.js +2 -2
- package/dist/studio/index.cjs +9 -9
- package/dist/studio/index.js +8 -8
- package/dist/workflow-canvas/index.cjs +22 -22
- package/dist/workflow-canvas/index.js +9 -9
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/dist/ConnectedStreamedWordArtifact-63ME4QD5.cjs.map +0 -1
- package/dist/ConnectedStreamedWordArtifact-ELHQ2VYL.js.map +0 -1
package/dist/connect/viewer.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
require('../chunk-2WLXQGWC.cjs');
|
|
4
|
+
var chunk6H2V4A33_cjs = require('../chunk-6H2V4A33.cjs');
|
|
5
|
+
var chunkAJXGZV5G_cjs = require('../chunk-AJXGZV5G.cjs');
|
|
7
6
|
require('../chunk-223D4727.cjs');
|
|
8
|
-
|
|
7
|
+
require('../chunk-2WLXQGWC.cjs');
|
|
8
|
+
var chunkSGDM6ZVT_cjs = require('../chunk-SGDM6ZVT.cjs');
|
|
9
9
|
var chunkJH6JTI76_cjs = require('../chunk-JH6JTI76.cjs');
|
|
10
|
-
var chunkUWIILWDI_cjs = require('../chunk-UWIILWDI.cjs');
|
|
11
10
|
require('../chunk-NMZI3K6R.cjs');
|
|
11
|
+
var chunkUWIILWDI_cjs = require('../chunk-UWIILWDI.cjs');
|
|
12
12
|
require('../chunk-JPWPR6QU.cjs');
|
|
13
13
|
require('../chunk-CIJUKCZI.cjs');
|
|
14
14
|
var chunkTM2D4XT4_cjs = require('../chunk-TM2D4XT4.cjs');
|
|
@@ -26,6 +26,12 @@ require('../chunk-C2CWWEHO.cjs');
|
|
|
26
26
|
var chunk2YV7FBLO_cjs = require('../chunk-2YV7FBLO.cjs');
|
|
27
27
|
require('../chunk-VG24E4JJ.cjs');
|
|
28
28
|
require('../chunk-QVBZESYQ.cjs');
|
|
29
|
+
require('../chunk-5UHAWSEX.cjs');
|
|
30
|
+
require('../chunk-Z2XZ2D4N.cjs');
|
|
31
|
+
require('../chunk-B6MVQCXW.cjs');
|
|
32
|
+
require('../chunk-32HW2Q33.cjs');
|
|
33
|
+
var chunkFX3K6LNZ_cjs = require('../chunk-FX3K6LNZ.cjs');
|
|
34
|
+
require('../chunk-3Z3DWP3R.cjs');
|
|
29
35
|
var chunkQGSVHWXR_cjs = require('../chunk-QGSVHWXR.cjs');
|
|
30
36
|
var chunk3LDVSHRD_cjs = require('../chunk-3LDVSHRD.cjs');
|
|
31
37
|
require('../chunk-ZAVEMQ37.cjs');
|
|
@@ -34,12 +40,6 @@ var chunkMEMWZ72Y_cjs = require('../chunk-MEMWZ72Y.cjs');
|
|
|
34
40
|
require('../chunk-ZW6FPIFC.cjs');
|
|
35
41
|
var chunk6TJQTDQI_cjs = require('../chunk-6TJQTDQI.cjs');
|
|
36
42
|
require('../chunk-ULWRNGGE.cjs');
|
|
37
|
-
require('../chunk-5UHAWSEX.cjs');
|
|
38
|
-
require('../chunk-Z2XZ2D4N.cjs');
|
|
39
|
-
require('../chunk-B6MVQCXW.cjs');
|
|
40
|
-
require('../chunk-32HW2Q33.cjs');
|
|
41
|
-
var chunkFX3K6LNZ_cjs = require('../chunk-FX3K6LNZ.cjs');
|
|
42
|
-
require('../chunk-3Z3DWP3R.cjs');
|
|
43
43
|
var chunkUUMUCWFR_cjs = require('../chunk-UUMUCWFR.cjs');
|
|
44
44
|
require('../chunk-PPCATBOY.cjs');
|
|
45
45
|
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
@@ -150,9 +150,9 @@ function fileExtension(fileName) {
|
|
|
150
150
|
function useViewedDocument(documentId) {
|
|
151
151
|
const [webmHasVideoTrack, setWebmHasVideoTrack] = React.useState(null);
|
|
152
152
|
React.useEffect(() => setWebmHasVideoTrack(null), [documentId]);
|
|
153
|
-
const streamingDoc =
|
|
153
|
+
const streamingDoc = chunk6H2V4A33_cjs.useViewerStreamingDocument(documentId);
|
|
154
154
|
const isStreaming = !!streamingDoc && !streamingDoc.isComplete;
|
|
155
|
-
const draftDoc =
|
|
155
|
+
const draftDoc = chunk6H2V4A33_cjs.useViewerDraftDocument(documentId);
|
|
156
156
|
const isDraft = !!draftDoc;
|
|
157
157
|
const isCaptureDraft = draftDoc?.kind === "audio" || draftDoc?.kind === "photo" || draftDoc?.kind === "video";
|
|
158
158
|
const isTextDraft = draftDoc?.kind === "text";
|
|
@@ -166,7 +166,7 @@ function useViewedDocument(documentId) {
|
|
|
166
166
|
const documentData = record?.external_id === documentId ? record : void 0;
|
|
167
167
|
const { data: tags } = chunkQGSVHWXR_cjs.useConnectedTags();
|
|
168
168
|
const labelSummaries = React.useMemo(
|
|
169
|
-
() =>
|
|
169
|
+
() => chunkAJXGZV5G_cjs.summariseDocTags(documentData?.doctags ?? [], tags.filter(chunkAJXGZV5G_cjs.isDocumentLabel)),
|
|
170
170
|
[documentData, tags]
|
|
171
171
|
);
|
|
172
172
|
const fileName = documentData?.file_name;
|
|
@@ -233,7 +233,7 @@ function useViewerBlobs(documentId, doc) {
|
|
|
233
233
|
const { setWebmHasVideoTrack } = doc;
|
|
234
234
|
const { client, saveFile } = documentTools.useDocumentTools();
|
|
235
235
|
const { notify } = chunk6TJQTDQI_cjs.useBlocksEnvironment();
|
|
236
|
-
const { loadOfflineCopy } =
|
|
236
|
+
const { loadOfflineCopy } = chunk6H2V4A33_cjs.useDocumentViewerSupport();
|
|
237
237
|
const currentVersion = documentData?.current_version ?? 1;
|
|
238
238
|
const name = documentData?.file_name;
|
|
239
239
|
const original = ui.isImageFile(name) || ui.isVideoFile(name) || ui.isAudioFile(name);
|
|
@@ -593,7 +593,7 @@ function PassageTagPanel({
|
|
|
593
593
|
onClose,
|
|
594
594
|
onViewTaggedChunks
|
|
595
595
|
}) {
|
|
596
|
-
const { createTag } =
|
|
596
|
+
const { createTag } = chunk6H2V4A33_cjs.useDocumentViewerSupport();
|
|
597
597
|
const [editingNoteTagId, setEditingNoteTagId] = React.useState(null);
|
|
598
598
|
const [noteValue, setNoteValue] = React.useState("");
|
|
599
599
|
const { data: allTags } = chunkQGSVHWXR_cjs.useConnectedTags();
|
|
@@ -672,7 +672,7 @@ function PassageTagPanel({
|
|
|
672
672
|
[workspaceTags]
|
|
673
673
|
);
|
|
674
674
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
675
|
-
|
|
675
|
+
chunkAJXGZV5G_cjs.TagPassagePanel,
|
|
676
676
|
{
|
|
677
677
|
pageNumber,
|
|
678
678
|
preview,
|
|
@@ -797,7 +797,7 @@ var ParsedPassage = React.memo(function ParsedPassage2({
|
|
|
797
797
|
];
|
|
798
798
|
}) : [];
|
|
799
799
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
800
|
-
|
|
800
|
+
chunkAJXGZV5G_cjs.HtmlPassage,
|
|
801
801
|
{
|
|
802
802
|
chunkId,
|
|
803
803
|
highlight: isStrong ? "strong" : isLight ? "light" : void 0,
|
|
@@ -837,7 +837,7 @@ var ParsedPassage = React.memo(function ParsedPassage2({
|
|
|
837
837
|
items: passageItems
|
|
838
838
|
}
|
|
839
839
|
) : void 0,
|
|
840
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
840
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunk6H2V4A33_cjs.ConnectedMarkdown, { children: chunk.content })
|
|
841
841
|
}
|
|
842
842
|
);
|
|
843
843
|
});
|
|
@@ -974,11 +974,11 @@ function useDocumentLabels(documentId, doctags, orderedChunkIds) {
|
|
|
974
974
|
const workspaceTags = React.useMemo(() => allTags.filter(isDocumentTag), [allTags]);
|
|
975
975
|
const documentDoctags = React.useMemo(() => doctags ?? [], [doctags]);
|
|
976
976
|
const tagSummaries = React.useMemo(
|
|
977
|
-
() =>
|
|
977
|
+
() => chunkAJXGZV5G_cjs.summariseDocTags(documentDoctags, workspaceTags),
|
|
978
978
|
[documentDoctags, workspaceTags]
|
|
979
979
|
);
|
|
980
980
|
const labelSummaries = React.useMemo(
|
|
981
|
-
() =>
|
|
981
|
+
() => chunkAJXGZV5G_cjs.summariseDocTags(documentDoctags, workspaceTags.filter(chunkAJXGZV5G_cjs.isDocumentLabel)),
|
|
982
982
|
[documentDoctags, workspaceTags]
|
|
983
983
|
);
|
|
984
984
|
const labelsByChunk = React.useMemo(() => {
|
|
@@ -1065,7 +1065,7 @@ function useCitationSelection({
|
|
|
1065
1065
|
orderedChunkIds,
|
|
1066
1066
|
pageOf
|
|
1067
1067
|
}) {
|
|
1068
|
-
const passageCitation =
|
|
1068
|
+
const passageCitation = chunk6H2V4A33_cjs.useViewerPassageCitation();
|
|
1069
1069
|
const activeCitationContext = passageCitation?.active ?? null;
|
|
1070
1070
|
const setPendingPassagesForCitation = passageCitation?.pick ?? noop;
|
|
1071
1071
|
const setUnselectedPassagesForCitation = passageCitation?.unpick ?? noop;
|
|
@@ -1422,7 +1422,7 @@ function ParsedTextView({
|
|
|
1422
1422
|
onZoomChange
|
|
1423
1423
|
}) {
|
|
1424
1424
|
const { workspaceId } = chunk3LDVSHRD_cjs.useConnectedWorkspace();
|
|
1425
|
-
const { openInNavigator } =
|
|
1425
|
+
const { openInNavigator } = chunk6H2V4A33_cjs.useDocumentViewerSupport();
|
|
1426
1426
|
const containerRef = React.useRef(null);
|
|
1427
1427
|
const { data: documentRecord } = react.useDocument(artifacts.parseVersionRef(documentId).docId, {
|
|
1428
1428
|
enabled: !!documentId && !!workspaceId
|
|
@@ -1486,14 +1486,14 @@ function ParsedTextView({
|
|
|
1486
1486
|
}
|
|
1487
1487
|
}
|
|
1488
1488
|
}, [maxPageNumber, onLoadSuccess]);
|
|
1489
|
-
if (isLoading) return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1489
|
+
if (isLoading) return /* @__PURE__ */ jsxRuntime.jsx(chunkAJXGZV5G_cjs.ViewerMessage, { children: "Loading parsed document..." });
|
|
1490
1490
|
if (error) {
|
|
1491
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1491
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkAJXGZV5G_cjs.ViewerMessage, { children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-red-text", children: "Failed to load parsed document" }) });
|
|
1492
1492
|
}
|
|
1493
1493
|
const taggingChunk = labels.taggingChunkId ? processedChunks.flatMap((page) => page.chunks).find((c) => c.chunkExtId === labels.taggingChunkId) : void 0;
|
|
1494
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1494
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkAJXGZV5G_cjs.HtmlViewerRoot, { children: [
|
|
1495
1495
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1496
|
-
|
|
1496
|
+
chunkAJXGZV5G_cjs.DocumentLabelBar,
|
|
1497
1497
|
{
|
|
1498
1498
|
summaries: labels.labelSummaries,
|
|
1499
1499
|
activeTagExtId: labels.activeTagExtId,
|
|
@@ -1518,15 +1518,15 @@ function ParsedTextView({
|
|
|
1518
1518
|
}
|
|
1519
1519
|
),
|
|
1520
1520
|
!citation.factCitationActive && citation.runStartIds.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1521
|
-
|
|
1521
|
+
chunkAJXGZV5G_cjs.CitedRunNav,
|
|
1522
1522
|
{
|
|
1523
1523
|
position: citation.runCursor + 1,
|
|
1524
1524
|
total: citation.runStartIds.length,
|
|
1525
1525
|
onStep: citation.gotoRun
|
|
1526
1526
|
}
|
|
1527
1527
|
),
|
|
1528
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1529
|
-
|
|
1528
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkAJXGZV5G_cjs.HtmlViewerSurface, { surfaceRef: containerRef, onMouseUp: citation.handleSelectionEnd, children: processedChunks.length > 0 ? processedChunks.map((page, pageIndex) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1529
|
+
chunkAJXGZV5G_cjs.HtmlPage,
|
|
1530
1530
|
{
|
|
1531
1531
|
pageNumber: page.pageNumber,
|
|
1532
1532
|
totalPages,
|
|
@@ -1567,7 +1567,7 @@ function ParsedTextView({
|
|
|
1567
1567
|
})
|
|
1568
1568
|
},
|
|
1569
1569
|
pageIndex
|
|
1570
|
-
)) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1570
|
+
)) : /* @__PURE__ */ jsxRuntime.jsx(chunkAJXGZV5G_cjs.HtmlViewerEmpty, {}) })
|
|
1571
1571
|
] });
|
|
1572
1572
|
}
|
|
1573
1573
|
var AnnotatedPdfViewer = React.lazy(
|
|
@@ -1585,7 +1585,7 @@ var GuidedSigningViewer = React.lazy(
|
|
|
1585
1585
|
function SessionPdfViewer(props) {
|
|
1586
1586
|
const session = react.useArbiSessionStore();
|
|
1587
1587
|
const viewingId = react.useArbiSessionState((s) => s.viewingDocument?.id);
|
|
1588
|
-
const isDetached =
|
|
1588
|
+
const isDetached = chunk6H2V4A33_cjs.useViewerIsDetached();
|
|
1589
1589
|
const onPageChange = React.useCallback(
|
|
1590
1590
|
(page) => {
|
|
1591
1591
|
if (viewingId) session.setViewingDocument({ id: viewingId, page });
|
|
@@ -1617,7 +1617,7 @@ function ViewerPdfPane({
|
|
|
1617
1617
|
const showMarkup = markup.hasMarkup && !markup.showOriginal;
|
|
1618
1618
|
if (isDownloadOnly) {
|
|
1619
1619
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1620
|
-
|
|
1620
|
+
chunkAJXGZV5G_cjs.ViewerPreviewUnavailable,
|
|
1621
1621
|
{
|
|
1622
1622
|
extension: fileExtension(documentData?.file_name),
|
|
1623
1623
|
onDownload
|
|
@@ -1627,26 +1627,26 @@ function ViewerPdfPane({
|
|
|
1627
1627
|
const loadingLabel = isVideo ? "Loading video..." : isAudio ? "Loading audio..." : isImage ? "Loading image..." : !documentData ? "Loading document..." : ui.friendlyFileType(documentData.file_type, documentData.file_name) === "Text" ? "Loading text..." : "Loading PDF...";
|
|
1628
1628
|
const errorLabel = isVideo ? "Failed to load video" : isAudio ? "Failed to load audio" : isImage ? "Failed to load image" : "Failed to load PDF";
|
|
1629
1629
|
if (isDocx && documentData && !["completed", "low-content", "failed"].includes(documentData.status || "")) {
|
|
1630
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1630
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkAJXGZV5G_cjs.ViewerMessage, { children: "PDF and search indexing are processing. Open the DOCX tab to edit now." });
|
|
1631
1631
|
}
|
|
1632
|
-
if (isPdfLoading) return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1632
|
+
if (isPdfLoading) return /* @__PURE__ */ jsxRuntime.jsx(chunkAJXGZV5G_cjs.ViewerMessage, { children: loadingLabel });
|
|
1633
1633
|
if (pdfError) {
|
|
1634
1634
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1635
|
-
|
|
1635
|
+
chunkAJXGZV5G_cjs.ViewerLoadError,
|
|
1636
1636
|
{
|
|
1637
1637
|
message: isVideo || isAudio || isImage ? `${errorLabel} \u2014 download it instead.` : "Couldn't display the PDF \u2014 download it instead.",
|
|
1638
1638
|
onDownload
|
|
1639
1639
|
}
|
|
1640
1640
|
);
|
|
1641
1641
|
}
|
|
1642
|
-
if (!pdfBlob) return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1642
|
+
if (!pdfBlob) return /* @__PURE__ */ jsxRuntime.jsx(chunkAJXGZV5G_cjs.ViewerMessage, { children: loadingLabel });
|
|
1643
1643
|
if (isVideo) return /* @__PURE__ */ jsxRuntime.jsx(viewers.VideoViewer, { blob: pdfBlob, title: documentData?.file_name || "Video" });
|
|
1644
1644
|
if (isAudio) return /* @__PURE__ */ jsxRuntime.jsx(viewers.AudioViewer, { blob: pdfBlob, title: documentData?.file_name || "Audio" });
|
|
1645
1645
|
if (isImage) {
|
|
1646
1646
|
return /* @__PURE__ */ jsxRuntime.jsx(viewers.ImageViewer, { blob: pdfBlob, alt: documentData?.file_name || "Document image" });
|
|
1647
1647
|
}
|
|
1648
1648
|
if (signatureFlow?.kind === "prepare") {
|
|
1649
|
-
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1649
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkAJXGZV5G_cjs.ViewerMessage, { children: "Loading\u2026" }), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1650
1650
|
SignatureRequestEditor,
|
|
1651
1651
|
{
|
|
1652
1652
|
...viewerProps,
|
|
@@ -1662,7 +1662,7 @@ function ViewerPdfPane({
|
|
|
1662
1662
|
}
|
|
1663
1663
|
if (signatureFlow?.kind === "sign" && currentUserId) {
|
|
1664
1664
|
const { currentPage: _page, scrollTrigger: _trigger, ...guidedProps } = viewerProps;
|
|
1665
|
-
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1665
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkAJXGZV5G_cjs.ViewerMessage, { children: "Loading\u2026" }), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1666
1666
|
GuidedSigningViewer,
|
|
1667
1667
|
{
|
|
1668
1668
|
...guidedProps,
|
|
@@ -1676,7 +1676,7 @@ function ViewerPdfPane({
|
|
|
1676
1676
|
) });
|
|
1677
1677
|
}
|
|
1678
1678
|
if (placingSignature) {
|
|
1679
|
-
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1679
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkAJXGZV5G_cjs.ViewerMessage, { children: "Loading\u2026" }), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1680
1680
|
SignaturePlacementViewer,
|
|
1681
1681
|
{
|
|
1682
1682
|
...viewerProps,
|
|
@@ -1692,7 +1692,7 @@ function ViewerPdfPane({
|
|
|
1692
1692
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1693
1693
|
React.Suspense,
|
|
1694
1694
|
{
|
|
1695
|
-
fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1695
|
+
fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkAJXGZV5G_cjs.ViewerMessage, { children: annotating ? "Loading annotation tools\u2026" : "Loading markup\u2026" }),
|
|
1696
1696
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1697
1697
|
AnnotatedPdfViewer,
|
|
1698
1698
|
{
|
|
@@ -1717,17 +1717,17 @@ function ViewerPdfPane({
|
|
|
1717
1717
|
return /* @__PURE__ */ jsxRuntime.jsx(SessionPdfViewer, { ...viewerProps, file: pdfBlob });
|
|
1718
1718
|
}
|
|
1719
1719
|
var NativeDocxEditor = React.lazy(
|
|
1720
|
-
() => import('../ConnectedNativeDocxEditor-
|
|
1720
|
+
() => import('../ConnectedNativeDocxEditor-RUABE4VP.cjs').then((m) => ({
|
|
1721
1721
|
default: m.ConnectedNativeDocxEditor
|
|
1722
1722
|
}))
|
|
1723
1723
|
);
|
|
1724
1724
|
var StreamedWordArtifact = React.lazy(
|
|
1725
|
-
() => import('../ConnectedStreamedWordArtifact-
|
|
1725
|
+
() => import('../ConnectedStreamedWordArtifact-I2XIXZFY.cjs').then((m) => ({
|
|
1726
1726
|
default: m.ConnectedStreamedWordArtifact
|
|
1727
1727
|
}))
|
|
1728
1728
|
);
|
|
1729
1729
|
var NativeDocxComparison = React.lazy(
|
|
1730
|
-
() => import('../ConnectedNativeDocxComparison-
|
|
1730
|
+
() => import('../ConnectedNativeDocxComparison-WEFO2EPP.cjs').then((m) => ({
|
|
1731
1731
|
default: m.ConnectedNativeDocxComparison
|
|
1732
1732
|
}))
|
|
1733
1733
|
);
|
|
@@ -1742,7 +1742,7 @@ function ConnectedDocumentViewer(props) {
|
|
|
1742
1742
|
resetKey: openedId,
|
|
1743
1743
|
labels: { title: "This document couldn't be displayed" },
|
|
1744
1744
|
testId: "document-viewer-error",
|
|
1745
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1745
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunk6H2V4A33_cjs.ConnectedDocumentToolsProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(DocumentViewerContent, { ...props, openedId }) })
|
|
1746
1746
|
}
|
|
1747
1747
|
);
|
|
1748
1748
|
}
|
|
@@ -1753,7 +1753,7 @@ function DocumentViewerContent({
|
|
|
1753
1753
|
}) {
|
|
1754
1754
|
const arbi = react.useArbi();
|
|
1755
1755
|
const session = react.useArbiSessionStore();
|
|
1756
|
-
const support =
|
|
1756
|
+
const support = chunk6H2V4A33_cjs.useDocumentViewerSupport();
|
|
1757
1757
|
const formatDate = support.formatDate ?? chunkKDG6FER6_cjs.fmtDate;
|
|
1758
1758
|
const tools = documentTools.useDocumentTools();
|
|
1759
1759
|
const { openConversation, openNewConversation, notify } = chunk6TJQTDQI_cjs.useBlocksEnvironment();
|
|
@@ -1876,15 +1876,15 @@ function DocumentViewerContent({
|
|
|
1876
1876
|
};
|
|
1877
1877
|
const documentTitle = streamingDoc?.title || draftDoc?.title || documentData?.doc_metadata?.title || documentData?.file_name || "Document";
|
|
1878
1878
|
const pageNav = totalPages > 0 && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1879
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1879
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkAJXGZV5G_cjs.ViewerZoomControl, { zoom, onCycle: () => setZoom(viewers.cycleZoom(zoom)) }),
|
|
1880
1880
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1881
|
-
|
|
1881
|
+
chunkAJXGZV5G_cjs.PdfPageNav,
|
|
1882
1882
|
{
|
|
1883
1883
|
canPrev: (viewingDocumentPage || 1) > 1,
|
|
1884
1884
|
canNext: (viewingDocumentPage || 1) < totalPages,
|
|
1885
1885
|
onPrev: () => stepPage(-1),
|
|
1886
1886
|
onNext: () => stepPage(1),
|
|
1887
|
-
counter: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1887
|
+
counter: /* @__PURE__ */ jsxRuntime.jsx(chunkAJXGZV5G_cjs.ViewerPageCounter, { page: viewingDocumentPage || 1, total: totalPages, onGoTo: goToPage })
|
|
1888
1888
|
}
|
|
1889
1889
|
)
|
|
1890
1890
|
] });
|
|
@@ -1908,7 +1908,7 @@ function DocumentViewerContent({
|
|
|
1908
1908
|
);
|
|
1909
1909
|
const titleBlock = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1910
1910
|
isDraft ? support.renderDraftTitle?.(documentId) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1911
|
-
|
|
1911
|
+
chunkAJXGZV5G_cjs.ViewerTitle,
|
|
1912
1912
|
{
|
|
1913
1913
|
title: documentTitle,
|
|
1914
1914
|
versionLabel: currentVersionLabel,
|
|
@@ -1917,7 +1917,7 @@ function DocumentViewerContent({
|
|
|
1917
1917
|
),
|
|
1918
1918
|
isCompact && !isDraft && documentData?.shared && /* @__PURE__ */ jsxRuntime.jsx(chunkUWIILWDI_cjs.ViewerStatusNote, { testId: "document-shared-status", children: "Shared with the workspace" }),
|
|
1919
1919
|
isCompact && activeTab === "pdf" && pdfBlob && markup.hasMarkup && !annotating && !placingSignature && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1920
|
-
|
|
1920
|
+
chunkSGDM6ZVT_cjs.MarkupViewNote,
|
|
1921
1921
|
{
|
|
1922
1922
|
showOriginal: markup.showOriginal,
|
|
1923
1923
|
onToggle: () => markup.setShowOriginal((on) => !on)
|
|
@@ -1926,14 +1926,14 @@ function DocumentViewerContent({
|
|
|
1926
1926
|
!isComparing && !liveKind && documentData && support.renderRelated?.(documentData),
|
|
1927
1927
|
isStreaming && /* @__PURE__ */ jsxRuntime.jsx(chunkUWIILWDI_cjs.ViewerStatusNote, { pulse: true, children: "streaming..." }),
|
|
1928
1928
|
isDraft && /* @__PURE__ */ jsxRuntime.jsx(chunkUWIILWDI_cjs.ViewerStatusNote, { testId: "draft-unsaved-indicator", children: "Draft \u2014 not saved" }),
|
|
1929
|
-
signatureStatus?.signed && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1929
|
+
signatureStatus?.signed && /* @__PURE__ */ jsxRuntime.jsx(chunkSGDM6ZVT_cjs.SignatureStatus, { status: signatureStatus, formatDate })
|
|
1930
1930
|
] });
|
|
1931
1931
|
const leftContent = /* @__PURE__ */ jsxRuntime.jsxs(chunkUWIILWDI_cjs.ViewerHeaderStart, { children: [
|
|
1932
1932
|
isDraft ? (
|
|
1933
1933
|
// A draft's kind replaces the tabs: neither Versions nor the text view means anything
|
|
1934
1934
|
// before the first save.
|
|
1935
1935
|
support.renderDraftKind?.(documentId)
|
|
1936
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1936
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(chunkAJXGZV5G_cjs.ViewerTabBar, { tabs: viewerTabs, activeId: activeTab, onChange: handleTabChange }),
|
|
1937
1937
|
!isCompact && titleBlock
|
|
1938
1938
|
] });
|
|
1939
1939
|
const annotatable = documentTools.canAnnotate({
|
|
@@ -1949,7 +1949,7 @@ function DocumentViewerContent({
|
|
|
1949
1949
|
isComparing
|
|
1950
1950
|
});
|
|
1951
1951
|
const signatureBanner = !isDraft && !liveKind && !snapshotDocumentId && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1952
|
-
|
|
1952
|
+
chunkSGDM6ZVT_cjs.SignatureRequestBanner,
|
|
1953
1953
|
{
|
|
1954
1954
|
documentId,
|
|
1955
1955
|
hidden: !!signatureFlow,
|
|
@@ -1976,7 +1976,7 @@ function DocumentViewerContent({
|
|
|
1976
1976
|
const shownRef = snapshotDocumentId || documentId;
|
|
1977
1977
|
const rightContent = /* @__PURE__ */ jsxRuntime.jsxs(chunkUWIILWDI_cjs.ViewerHeaderEnd, { isCompact, children: [
|
|
1978
1978
|
annotatable && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1979
|
-
|
|
1979
|
+
chunkSGDM6ZVT_cjs.AnnotateButton,
|
|
1980
1980
|
{
|
|
1981
1981
|
active: annotating,
|
|
1982
1982
|
compact: isCompact,
|
|
@@ -1988,7 +1988,7 @@ function DocumentViewerContent({
|
|
|
1988
1988
|
}
|
|
1989
1989
|
),
|
|
1990
1990
|
activeTab === "pdf" && pdfBlob && !placingSignature && (markup.hasMarkup || annotating) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1991
|
-
|
|
1991
|
+
chunkSGDM6ZVT_cjs.ShowOriginalButton,
|
|
1992
1992
|
{
|
|
1993
1993
|
active: markup.showOriginal,
|
|
1994
1994
|
compact: isCompact,
|
|
@@ -1999,14 +1999,14 @@ function DocumentViewerContent({
|
|
|
1999
1999
|
}
|
|
2000
2000
|
),
|
|
2001
2001
|
activeTab === "pdf" && markup.hasMarkup && !annotating && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2002
|
-
|
|
2002
|
+
chunkSGDM6ZVT_cjs.DownloadMarkupButton,
|
|
2003
2003
|
{
|
|
2004
2004
|
onClick: () => void markup.downloadMarkup(),
|
|
2005
2005
|
disabledReason: isSigned ? documentTools.SIGNED_LOCKED_REASON : void 0
|
|
2006
2006
|
}
|
|
2007
2007
|
),
|
|
2008
2008
|
activeTab === "pdf" && isImage && pdfBlob && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2009
|
-
|
|
2009
|
+
chunkAJXGZV5G_cjs.ViewerImageActions,
|
|
2010
2010
|
{
|
|
2011
2011
|
compact: isCompact,
|
|
2012
2012
|
onUseAsReference: support.useImageAsReference ? () => support.useImageAsReference(documentId) : void 0,
|
|
@@ -2053,7 +2053,7 @@ function DocumentViewerContent({
|
|
|
2053
2053
|
{
|
|
2054
2054
|
state: documentData?.shared ? "shared" : "private",
|
|
2055
2055
|
onToggle: share,
|
|
2056
|
-
disabled: !
|
|
2056
|
+
disabled: !chunkAJXGZV5G_cjs.canChangeVisibility(documentData, currentUserId),
|
|
2057
2057
|
disabledTooltip: "Only the owner can change visibility",
|
|
2058
2058
|
tooltip: documentData?.shared ? "Shared with the workspace \u2014 click to share with specific people" : "Share with the workspace, then optionally notify specific people by email",
|
|
2059
2059
|
variant: "outline",
|
|
@@ -2107,7 +2107,7 @@ function DocumentViewerContent({
|
|
|
2107
2107
|
),
|
|
2108
2108
|
!isStreaming && !snapshotDocumentId && /* @__PURE__ */ jsxRuntime.jsx(FinaliseTranslationButton, { document: documentData ?? void 0, isCompact }),
|
|
2109
2109
|
annotatable && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2110
|
-
|
|
2110
|
+
chunkSGDM6ZVT_cjs.SignButton,
|
|
2111
2111
|
{
|
|
2112
2112
|
active: placingSignature,
|
|
2113
2113
|
compact: isCompact,
|
|
@@ -2119,7 +2119,7 @@ function DocumentViewerContent({
|
|
|
2119
2119
|
}
|
|
2120
2120
|
),
|
|
2121
2121
|
annotatable && !isSigned && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2122
|
-
|
|
2122
|
+
chunkSGDM6ZVT_cjs.PlaceMySignatureButton,
|
|
2123
2123
|
{
|
|
2124
2124
|
compact: isCompact,
|
|
2125
2125
|
onPlace: (mark) => {
|
|
@@ -2132,7 +2132,7 @@ function DocumentViewerContent({
|
|
|
2132
2132
|
}
|
|
2133
2133
|
),
|
|
2134
2134
|
annotatable && !isSigned && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2135
|
-
|
|
2135
|
+
chunkSGDM6ZVT_cjs.RequestSignaturesButton,
|
|
2136
2136
|
{
|
|
2137
2137
|
active: signatureFlow?.kind === "prepare",
|
|
2138
2138
|
compact: isCompact,
|
|
@@ -2164,7 +2164,7 @@ function DocumentViewerContent({
|
|
|
2164
2164
|
onZoomChange: setZoom
|
|
2165
2165
|
};
|
|
2166
2166
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2167
|
-
|
|
2167
|
+
chunkAJXGZV5G_cjs.ViewerFrame,
|
|
2168
2168
|
{
|
|
2169
2169
|
frameRef: containerRef,
|
|
2170
2170
|
contentId: documentId,
|
|
@@ -2182,7 +2182,7 @@ function DocumentViewerContent({
|
|
|
2182
2182
|
),
|
|
2183
2183
|
isCompact && !isCoEditing && /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "viewer-title-row", className: "flex min-w-0 items-center gap-2 px-3 pb-2", children: titleBlock }),
|
|
2184
2184
|
snapshotDocumentId && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2185
|
-
|
|
2185
|
+
chunkSGDM6ZVT_cjs.VersionSnapshotBar,
|
|
2186
2186
|
{
|
|
2187
2187
|
versionNumber: snapshotNumber,
|
|
2188
2188
|
live: isDocx || isArtifact,
|
|
@@ -2209,7 +2209,7 @@ function DocumentViewerContent({
|
|
|
2209
2209
|
)
|
|
2210
2210
|
),
|
|
2211
2211
|
children: [
|
|
2212
|
-
isComparing && /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2212
|
+
isComparing && /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkAJXGZV5G_cjs.ViewerMessage, { children: "Loading comparison\u2026" }), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2213
2213
|
NativeDocxComparison,
|
|
2214
2214
|
{
|
|
2215
2215
|
baseId: compareDocumentId,
|
|
@@ -2219,17 +2219,17 @@ function DocumentViewerContent({
|
|
|
2219
2219
|
) }),
|
|
2220
2220
|
isCaptureDraft && support.renderCaptureDraft?.(documentId),
|
|
2221
2221
|
!isCaptureDraft && (activeTab === "pdf" || isMedia && activeTab === "html") && !isArtifact && !isComparing && /* @__PURE__ */ jsxRuntime.jsxs(chunkUWIILWDI_cjs.ViewerPane, { hidden: activeTab !== "pdf", children: [
|
|
2222
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2222
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkAJXGZV5G_cjs.DocumentLabelBar, { summaries: labelSummaries }),
|
|
2223
2223
|
!isMedia && !isImage && signatureBanner,
|
|
2224
2224
|
activeTab === "pdf" && !isMedia && !isImage && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2225
|
-
|
|
2225
|
+
chunkSGDM6ZVT_cjs.MarkupNotices,
|
|
2226
2226
|
{
|
|
2227
2227
|
legacyPrompt: markup.legacyPrompt,
|
|
2228
2228
|
olderNote: markup.olderNote,
|
|
2229
2229
|
onOpenVersion: (n) => setSnapshotDocumentId(`${documentId}@v${n}`)
|
|
2230
2230
|
}
|
|
2231
2231
|
),
|
|
2232
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2232
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkAJXGZV5G_cjs.ViewerControlBar, { controls: activeTab === "pdf" && pageNav, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2233
2233
|
ViewerPdfPane,
|
|
2234
2234
|
{
|
|
2235
2235
|
documentId,
|
|
@@ -2268,8 +2268,8 @@ function DocumentViewerContent({
|
|
|
2268
2268
|
}
|
|
2269
2269
|
),
|
|
2270
2270
|
activeTab === "edit" && isArtifact && liveKind && /* @__PURE__ */ jsxRuntime.jsx(chunk2YV7FBLO_cjs.ArtifactCodeView, { source: liveSource, fileName: documentData?.file_name ?? void 0 }),
|
|
2271
|
-
activeTab === "edit" && isArtifact && !liveKind && !isStreaming && !isComparing && /* @__PURE__ */ jsxRuntime.jsxs(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2272
|
-
isSigned && !snapshotDocumentId && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2271
|
+
activeTab === "edit" && isArtifact && !liveKind && !isStreaming && !isComparing && /* @__PURE__ */ jsxRuntime.jsxs(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkAJXGZV5G_cjs.ViewerMessage, { children: "Loading editor\u2026" }), children: [
|
|
2272
|
+
isSigned && !snapshotDocumentId && /* @__PURE__ */ jsxRuntime.jsx(chunkSGDM6ZVT_cjs.SignedEditNote, {}),
|
|
2273
2273
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2274
2274
|
NativeDocxEditor,
|
|
2275
2275
|
{
|
|
@@ -2311,10 +2311,10 @@ function DocumentViewerContent({
|
|
|
2311
2311
|
onOpenTranslation: (id) => setViewingDocumentId(id)
|
|
2312
2312
|
}
|
|
2313
2313
|
),
|
|
2314
|
-
activeTab === "xlsx" && isXlsx && (xlsxBlob ? /* @__PURE__ */ jsxRuntime.jsx(viewers.XlsxViewer, { blob: xlsxBlob }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
2315
|
-
activeTab === "docx" && isDocx && !isComparing && /* @__PURE__ */ jsxRuntime.jsxs(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2314
|
+
activeTab === "xlsx" && isXlsx && (xlsxBlob ? /* @__PURE__ */ jsxRuntime.jsx(viewers.XlsxViewer, { blob: xlsxBlob }) : /* @__PURE__ */ jsxRuntime.jsx(chunkAJXGZV5G_cjs.ViewerMessage, { children: xlsxError ? "Failed to load spreadsheet" : "Loading spreadsheet..." })),
|
|
2315
|
+
activeTab === "docx" && isDocx && !isComparing && /* @__PURE__ */ jsxRuntime.jsxs(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkAJXGZV5G_cjs.ViewerMessage, { children: "Loading editor\u2026" }), children: [
|
|
2316
2316
|
signatureBanner,
|
|
2317
|
-
isSigned && !snapshotDocumentId && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2317
|
+
isSigned && !snapshotDocumentId && /* @__PURE__ */ jsxRuntime.jsx(chunkSGDM6ZVT_cjs.SignedEditNote, {}),
|
|
2318
2318
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2319
2319
|
NativeDocxEditor,
|
|
2320
2320
|
{
|
|
@@ -2325,7 +2325,7 @@ function DocumentViewerContent({
|
|
|
2325
2325
|
`${snapshotDocumentId || documentId}-${snapshotDocumentId ? "snapshot" : "live"}`
|
|
2326
2326
|
)
|
|
2327
2327
|
] }),
|
|
2328
|
-
streamingDoc && isStreaming && isArtifact && !liveKind && !isComparing && (activeTab === "html" || activeTab === "edit") && /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2328
|
+
streamingDoc && isStreaming && isArtifact && !liveKind && !isComparing && (activeTab === "html" || activeTab === "edit") && /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkAJXGZV5G_cjs.ViewerMessage, { children: "Opening draft\u2026" }), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2329
2329
|
StreamedWordArtifact,
|
|
2330
2330
|
{
|
|
2331
2331
|
documentId: documentId.startsWith("doc-") ? documentId : void 0,
|
|
@@ -2335,7 +2335,7 @@ function DocumentViewerContent({
|
|
|
2335
2335
|
},
|
|
2336
2336
|
documentId
|
|
2337
2337
|
) }),
|
|
2338
|
-
!isCaptureDraft && !isComparing && activeTab === "html" && !(isStreaming && isArtifact && !liveKind) && /* @__PURE__ */ jsxRuntime.jsx(chunkUWIILWDI_cjs.ViewerPane, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2338
|
+
!isCaptureDraft && !isComparing && activeTab === "html" && !(isStreaming && isArtifact && !liveKind) && /* @__PURE__ */ jsxRuntime.jsx(chunkUWIILWDI_cjs.ViewerPane, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkAJXGZV5G_cjs.ViewerControlBar, { controls: pageNav, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2339
2339
|
ParsedTextView,
|
|
2340
2340
|
{
|
|
2341
2341
|
documentId: pdfSnapshotId || documentId,
|
|
@@ -2352,7 +2352,7 @@ function DocumentViewerContent({
|
|
|
2352
2352
|
|
|
2353
2353
|
Object.defineProperty(exports, "ConnectedDocumentToolsProvider", {
|
|
2354
2354
|
enumerable: true,
|
|
2355
|
-
get: function () { return
|
|
2355
|
+
get: function () { return chunk6H2V4A33_cjs.ConnectedDocumentToolsProvider; }
|
|
2356
2356
|
});
|
|
2357
2357
|
exports.ConnectedDocumentViewer = ConnectedDocumentViewer;
|
|
2358
2358
|
//# sourceMappingURL=viewer.cjs.map
|
package/dist/connect/viewer.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { ConnectedMarkdown, ConnectedDocumentToolsProvider, useDocumentViewerSupport, useViewerStreamingDocument, useViewerDraftDocument, useViewerIsDetached, useViewerPassageCitation } from '../chunk-
|
|
3
|
-
export { ConnectedDocumentToolsProvider } from '../chunk-
|
|
4
|
-
import { HtmlPassage, ViewerTitle, ViewerTabBar, ViewerImageActions, canChangeVisibility, ViewerFrame, ViewerMessage, DocumentLabelBar, ViewerControlBar, ViewerZoomControl, PdfPageNav, ViewerPageCounter, summariseDocTags, isDocumentLabel, ViewerPreviewUnavailable, ViewerLoadError, HtmlViewerRoot, CitedRunNav, HtmlViewerSurface, HtmlPage, HtmlViewerEmpty, TagPassagePanel } from '../chunk-
|
|
5
|
-
import '../chunk-JJA6GQKH.js';
|
|
2
|
+
import { ConnectedMarkdown, ConnectedDocumentToolsProvider, useDocumentViewerSupport, useViewerStreamingDocument, useViewerDraftDocument, useViewerIsDetached, useViewerPassageCitation } from '../chunk-I4BGKX2H.js';
|
|
3
|
+
export { ConnectedDocumentToolsProvider } from '../chunk-I4BGKX2H.js';
|
|
4
|
+
import { HtmlPassage, ViewerTitle, ViewerTabBar, ViewerImageActions, canChangeVisibility, ViewerFrame, ViewerMessage, DocumentLabelBar, ViewerControlBar, ViewerZoomControl, PdfPageNav, ViewerPageCounter, summariseDocTags, isDocumentLabel, ViewerPreviewUnavailable, ViewerLoadError, HtmlViewerRoot, CitedRunNav, HtmlViewerSurface, HtmlPage, HtmlViewerEmpty, TagPassagePanel } from '../chunk-W76ZUOZO.js';
|
|
6
5
|
import '../chunk-RC6VTY2H.js';
|
|
7
|
-
import
|
|
6
|
+
import '../chunk-JJA6GQKH.js';
|
|
7
|
+
import { MarkupViewNote, SignatureStatus, AnnotateButton, ShowOriginalButton, DownloadMarkupButton, SignButton, PlaceMySignatureButton, RequestSignaturesButton, MarkupNotices, SignedEditNote, VersionSnapshotBar, SignatureRequestBanner } from '../chunk-V2NEQGHA.js';
|
|
8
8
|
import { SignDocumentDialog } from '../chunk-2YOVK524.js';
|
|
9
|
-
import { ViewerStatusNote, ViewerHeaderStart, ViewerHeaderEnd, ViewerPane } from '../chunk-6HKLTYNN.js';
|
|
10
9
|
import '../chunk-2R3GGNPA.js';
|
|
10
|
+
import { ViewerStatusNote, ViewerHeaderStart, ViewerHeaderEnd, ViewerPane } from '../chunk-6HKLTYNN.js';
|
|
11
11
|
import '../chunk-DAN7EJ4O.js';
|
|
12
12
|
import '../chunk-PG5A6DJY.js';
|
|
13
13
|
import { ErrorBoundary } from '../chunk-EQ3WRY2N.js';
|
|
@@ -25,6 +25,12 @@ import '../chunk-N5YEF3LC.js';
|
|
|
25
25
|
import { ArtifactCompareBar, ArtifactPreview, ArtifactCodeView, VersionTimeline } from '../chunk-65S53MZK.js';
|
|
26
26
|
import '../chunk-NS4JD2VR.js';
|
|
27
27
|
import '../chunk-LOJVUGBJ.js';
|
|
28
|
+
import '../chunk-OKERRHLH.js';
|
|
29
|
+
import '../chunk-DDCMLHXF.js';
|
|
30
|
+
import '../chunk-7XF5SFJ2.js';
|
|
31
|
+
import '../chunk-AUS3KBHJ.js';
|
|
32
|
+
import { useIsPhone } from '../chunk-SLSBJRWW.js';
|
|
33
|
+
import '../chunk-7CPOQPWR.js';
|
|
28
34
|
import { useConnectedConversations, useConnectedDocuments, useConnectedTags } from '../chunk-7KAJKYA7.js';
|
|
29
35
|
import { useConnectedWorkspace } from '../chunk-Z7PVDIUN.js';
|
|
30
36
|
import '../chunk-ECERC6TI.js';
|
|
@@ -33,12 +39,6 @@ import { TabHeader } from '../chunk-ABEKUV6L.js';
|
|
|
33
39
|
import '../chunk-P6GHJSLR.js';
|
|
34
40
|
import { useBlocksEnvironment } from '../chunk-PKB4LBPC.js';
|
|
35
41
|
import '../chunk-TX2ZICS7.js';
|
|
36
|
-
import '../chunk-OKERRHLH.js';
|
|
37
|
-
import '../chunk-DDCMLHXF.js';
|
|
38
|
-
import '../chunk-7XF5SFJ2.js';
|
|
39
|
-
import '../chunk-AUS3KBHJ.js';
|
|
40
|
-
import { useIsPhone } from '../chunk-SLSBJRWW.js';
|
|
41
|
-
import '../chunk-7CPOQPWR.js';
|
|
42
42
|
import { buildDeepLinkUrl } from '../chunk-T4N3EQGH.js';
|
|
43
43
|
import '../chunk-NPLYHR2E.js';
|
|
44
44
|
import { fmtDate } from '../chunk-OXF2IFXG.js';
|
|
@@ -1712,17 +1712,17 @@ function ViewerPdfPane({
|
|
|
1712
1712
|
return /* @__PURE__ */ jsx(SessionPdfViewer, { ...viewerProps, file: pdfBlob });
|
|
1713
1713
|
}
|
|
1714
1714
|
var NativeDocxEditor = lazy(
|
|
1715
|
-
() => import('../ConnectedNativeDocxEditor-
|
|
1715
|
+
() => import('../ConnectedNativeDocxEditor-BLMQUKP7.js').then((m) => ({
|
|
1716
1716
|
default: m.ConnectedNativeDocxEditor
|
|
1717
1717
|
}))
|
|
1718
1718
|
);
|
|
1719
1719
|
var StreamedWordArtifact = lazy(
|
|
1720
|
-
() => import('../ConnectedStreamedWordArtifact-
|
|
1720
|
+
() => import('../ConnectedStreamedWordArtifact-F66VKPLJ.js').then((m) => ({
|
|
1721
1721
|
default: m.ConnectedStreamedWordArtifact
|
|
1722
1722
|
}))
|
|
1723
1723
|
);
|
|
1724
1724
|
var NativeDocxComparison = lazy(
|
|
1725
|
-
() => import('../ConnectedNativeDocxComparison-
|
|
1725
|
+
() => import('../ConnectedNativeDocxComparison-F47WEZVU.js').then((m) => ({
|
|
1726
1726
|
default: m.ConnectedNativeDocxComparison
|
|
1727
1727
|
}))
|
|
1728
1728
|
);
|
|
@@ -37,6 +37,9 @@ export declare function useDeveloperConfig(): {
|
|
|
37
37
|
supports_reasoning?: boolean | null | undefined;
|
|
38
38
|
supports_function_calling?: boolean | null | undefined;
|
|
39
39
|
supports_response_schema?: boolean | null | undefined;
|
|
40
|
+
display_name?: string | null | undefined;
|
|
41
|
+
connection_scope?: string | null | undefined;
|
|
42
|
+
externally_billed: boolean;
|
|
40
43
|
}[];
|
|
41
44
|
premium_default?: string | null | undefined;
|
|
42
45
|
}> | undefined;
|
|
@@ -32,6 +32,9 @@ export declare function useModelPicker({ value: controlledValue, onValueChange:
|
|
|
32
32
|
supports_reasoning?: boolean | null | undefined;
|
|
33
33
|
supports_function_calling?: boolean | null | undefined;
|
|
34
34
|
supports_response_schema?: boolean | null | undefined;
|
|
35
|
+
display_name?: string | null | undefined;
|
|
36
|
+
connection_scope?: string | null | undefined;
|
|
37
|
+
externally_billed: boolean;
|
|
35
38
|
}[];
|
|
36
39
|
} | null;
|
|
37
40
|
premiumTier: {
|
|
@@ -49,6 +52,9 @@ export declare function useModelPicker({ value: controlledValue, onValueChange:
|
|
|
49
52
|
supports_reasoning?: boolean | null | undefined;
|
|
50
53
|
supports_function_calling?: boolean | null | undefined;
|
|
51
54
|
supports_response_schema?: boolean | null | undefined;
|
|
55
|
+
display_name?: string | null | undefined;
|
|
56
|
+
connection_scope?: string | null | undefined;
|
|
57
|
+
externally_billed: boolean;
|
|
52
58
|
}[];
|
|
53
59
|
resolvedModelName: string;
|
|
54
60
|
} | null;
|
|
@@ -66,6 +72,9 @@ export declare function useModelPicker({ value: controlledValue, onValueChange:
|
|
|
66
72
|
supports_reasoning?: boolean | null | undefined;
|
|
67
73
|
supports_function_calling?: boolean | null | undefined;
|
|
68
74
|
supports_response_schema?: boolean | null | undefined;
|
|
75
|
+
display_name?: string | null | undefined;
|
|
76
|
+
connection_scope?: string | null | undefined;
|
|
77
|
+
externally_billed: boolean;
|
|
69
78
|
}[];
|
|
70
79
|
selectedModel: string;
|
|
71
80
|
selectedModelInfo: {
|
|
@@ -82,6 +91,9 @@ export declare function useModelPicker({ value: controlledValue, onValueChange:
|
|
|
82
91
|
supports_reasoning?: boolean | null | undefined;
|
|
83
92
|
supports_function_calling?: boolean | null | undefined;
|
|
84
93
|
supports_response_schema?: boolean | null | undefined;
|
|
94
|
+
display_name?: string | null | undefined;
|
|
95
|
+
connection_scope?: string | null | undefined;
|
|
96
|
+
externally_billed: boolean;
|
|
85
97
|
} | undefined;
|
|
86
98
|
isAuto: boolean;
|
|
87
99
|
/** The user switched Premium off in settings. */
|