@arbidocs/blocks 0.5.175 → 0.5.176
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-LW7S4ROJ.cjs → ConnectedCallDock-KD5LWW2E.cjs} +5 -5
- package/dist/{ConnectedCallDock-LW7S4ROJ.cjs.map → ConnectedCallDock-KD5LWW2E.cjs.map} +1 -1
- package/dist/{ConnectedCallRoom-YXJUNNUX.cjs → ConnectedCallRoom-GSMF7ZUE.cjs} +5 -5
- package/dist/{ConnectedCallRoom-YXJUNNUX.cjs.map → ConnectedCallRoom-GSMF7ZUE.cjs.map} +1 -1
- package/dist/ConnectedNativeDocxComparison-AAQJZYZH.cjs +1 -1
- package/dist/ConnectedStreamedWordArtifact-CSNA2CJD.cjs +1 -1
- package/dist/{DocumentReviewCard-LOUVMFRX.cjs → DocumentReviewCard-SOEYIMRO.cjs} +12 -12
- package/dist/{DocumentReviewCard-LOUVMFRX.cjs.map → DocumentReviewCard-SOEYIMRO.cjs.map} +1 -1
- package/dist/{FilesViewerDialog-2NZR4MHD.cjs → FilesViewerDialog-RRAVDDN4.cjs} +8 -8
- package/dist/{FilesViewerDialog-2NZR4MHD.cjs.map → FilesViewerDialog-RRAVDDN4.cjs.map} +1 -1
- package/dist/agents/index.cjs +162 -162
- package/dist/{ai-NZKIMYW5.cjs → ai-XIT4MY3S.cjs} +13 -13
- package/dist/ai-XIT4MY3S.cjs.map +1 -0
- package/dist/calls/index.cjs +2 -2
- package/dist/chat/CitationMark.js +3 -2
- package/dist/chat/CitationMark.js.map +2 -2
- package/dist/chat/index.cjs +25 -25
- package/dist/chat/passage-text.d.ts +6 -0
- package/dist/chat/passage-text.js +8 -0
- package/dist/chat/passage-text.js.map +7 -0
- package/dist/{chunk-OIMDCS4Y.cjs → chunk-2TLEQBTM.cjs} +5 -5
- package/dist/{chunk-OIMDCS4Y.cjs.map → chunk-2TLEQBTM.cjs.map} +1 -1
- package/dist/{chunk-7TEHA3JK.cjs → chunk-6CPJ5ZOY.cjs} +9 -4
- package/dist/chunk-6CPJ5ZOY.cjs.map +1 -0
- package/dist/{chunk-A257IJ5J.cjs → chunk-6EJ7KD4U.cjs} +6 -6
- package/dist/{chunk-A257IJ5J.cjs.map → chunk-6EJ7KD4U.cjs.map} +1 -1
- package/dist/{chunk-EBY2JHL3.cjs → chunk-77FZT7AP.cjs} +55 -54
- package/dist/chunk-77FZT7AP.cjs.map +1 -0
- package/dist/{chunk-ZSQZZGC7.cjs → chunk-77MAR6Y4.cjs} +5 -5
- package/dist/{chunk-ZSQZZGC7.cjs.map → chunk-77MAR6Y4.cjs.map} +1 -1
- package/dist/{chunk-PUKLWHV6.cjs → chunk-AYK3BLUB.cjs} +3 -3
- package/dist/{chunk-PUKLWHV6.cjs.map → chunk-AYK3BLUB.cjs.map} +1 -1
- package/dist/{chunk-DVRAM3J4.cjs → chunk-IXKLARPD.cjs} +4 -4
- package/dist/{chunk-DVRAM3J4.cjs.map → chunk-IXKLARPD.cjs.map} +1 -1
- package/dist/{chunk-NFXHBTAO.cjs → chunk-J7LSWWA3.cjs} +4 -4
- package/dist/{chunk-NFXHBTAO.cjs.map → chunk-J7LSWWA3.cjs.map} +1 -1
- package/dist/{chunk-5G33DATM.cjs → chunk-N2YNXFT4.cjs} +42 -39
- package/dist/chunk-N2YNXFT4.cjs.map +1 -0
- package/dist/{chunk-7OMRSZOJ.cjs → chunk-OABDY4YO.cjs} +28 -28
- package/dist/{chunk-7OMRSZOJ.cjs.map → chunk-OABDY4YO.cjs.map} +1 -1
- package/dist/{chunk-NTQJHLYM.cjs → chunk-P3PTSXGJ.cjs} +4 -4
- package/dist/{chunk-NTQJHLYM.cjs.map → chunk-P3PTSXGJ.cjs.map} +1 -1
- package/dist/{chunk-HSYRI3JQ.cjs → chunk-POUMLXMJ.cjs} +6 -6
- package/dist/{chunk-HSYRI3JQ.cjs.map → chunk-POUMLXMJ.cjs.map} +1 -1
- package/dist/{chunk-6DHDITKK.cjs → chunk-QEEK2Z5T.cjs} +27 -18
- package/dist/chunk-QEEK2Z5T.cjs.map +1 -0
- package/dist/{chunk-VCVB2OP7.cjs → chunk-TUTPAAFH.cjs} +8 -8
- package/dist/{chunk-VCVB2OP7.cjs.map → chunk-TUTPAAFH.cjs.map} +1 -1
- package/dist/{chunk-ZT6C4MNX.cjs → chunk-UC6Z7E6C.cjs} +4 -4
- package/dist/{chunk-ZT6C4MNX.cjs.map → chunk-UC6Z7E6C.cjs.map} +1 -1
- package/dist/{chunk-SZ4U6GYC.cjs → chunk-VNK4HCHH.cjs} +26 -26
- package/dist/{chunk-SZ4U6GYC.cjs.map → chunk-VNK4HCHH.cjs.map} +1 -1
- package/dist/{chunk-DI6UEQCZ.cjs → chunk-XBM6TVZL.cjs} +4 -4
- package/dist/{chunk-DI6UEQCZ.cjs.map → chunk-XBM6TVZL.cjs.map} +1 -1
- package/dist/connect/docx.cjs +1 -1
- package/dist/connect/index.cjs +634 -634
- package/dist/connect/viewer.cjs +6 -6
- package/dist/connection/files/explorer/FileTiles.js +6 -3
- package/dist/connection/files/explorer/FileTiles.js.map +2 -2
- package/dist/connection/viewer/ConnectedDocumentViewer.js +2 -1
- package/dist/connection/viewer/ConnectedDocumentViewer.js.map +2 -2
- package/dist/connection/viewer/useViewerTabs.d.ts +1 -1
- package/dist/connection/viewer/useViewerTabs.js +2 -2
- package/dist/connection/viewer/useViewerTabs.js.map +2 -2
- package/dist/embed/index.cjs +12 -12
- package/dist/files/ExplorerTile.d.ts +7 -0
- package/dist/files/ExplorerTile.js +17 -14
- package/dist/files/ExplorerTile.js.map +2 -2
- package/dist/files/ViewerChrome.js +1 -1
- package/dist/files/ViewerChrome.js.map +2 -2
- package/dist/files/ViewerParts.d.ts +6 -1
- package/dist/files/ViewerParts.js +9 -2
- package/dist/files/ViewerParts.js.map +2 -2
- package/dist/files/index.cjs +226 -226
- package/dist/index.cjs +240 -240
- package/dist/pages/index.cjs +17 -17
- package/dist/site/index.cjs +5 -5
- package/dist/studio/index.cjs +5 -5
- package/dist/styles.css +1 -1
- package/dist/workflow-canvas/index.cjs +21 -21
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/dist/ai-NZKIMYW5.cjs.map +0 -1
- package/dist/chunk-5G33DATM.cjs.map +0 -1
- package/dist/chunk-6DHDITKK.cjs.map +0 -1
- package/dist/chunk-7TEHA3JK.cjs.map +0 -1
- package/dist/chunk-EBY2JHL3.cjs.map +0 -1
|
@@ -9,12 +9,12 @@ var chunk4CIVQWAX_cjs = require('./chunk-4CIVQWAX.cjs');
|
|
|
9
9
|
var chunkQWVUBTW3_cjs = require('./chunk-QWVUBTW3.cjs');
|
|
10
10
|
var chunkJVEDKKNO_cjs = require('./chunk-JVEDKKNO.cjs');
|
|
11
11
|
var chunkJ5CBCUQE_cjs = require('./chunk-J5CBCUQE.cjs');
|
|
12
|
-
var
|
|
12
|
+
var chunkXBM6TVZL_cjs = require('./chunk-XBM6TVZL.cjs');
|
|
13
13
|
var chunkD4SJT3NG_cjs = require('./chunk-D4SJT3NG.cjs');
|
|
14
14
|
var chunkOUYBYZ7Y_cjs = require('./chunk-OUYBYZ7Y.cjs');
|
|
15
15
|
var chunkH4N6BZNU_cjs = require('./chunk-H4N6BZNU.cjs');
|
|
16
|
-
var
|
|
17
|
-
var
|
|
16
|
+
var chunkN2YNXFT4_cjs = require('./chunk-N2YNXFT4.cjs');
|
|
17
|
+
var chunkQEEK2Z5T_cjs = require('./chunk-QEEK2Z5T.cjs');
|
|
18
18
|
var chunkDTMBAFIL_cjs = require('./chunk-DTMBAFIL.cjs');
|
|
19
19
|
var chunkMXP32DA2_cjs = require('./chunk-MXP32DA2.cjs');
|
|
20
20
|
var chunkMZZ3SBQL_cjs = require('./chunk-MZZ3SBQL.cjs');
|
|
@@ -204,13 +204,13 @@ function ViewerRelatedDocuments({ document: document2 }) {
|
|
|
204
204
|
);
|
|
205
205
|
if (!related) return null;
|
|
206
206
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
207
|
-
|
|
207
|
+
chunkN2YNXFT4_cjs.RelatedDocumentsCell,
|
|
208
208
|
{
|
|
209
209
|
currentDoc: document2,
|
|
210
210
|
related,
|
|
211
211
|
viewingDocumentId: viewerOpen ? viewingId : null,
|
|
212
212
|
onDocumentClick: (id) => session.setViewingDocument({ id, page: null }),
|
|
213
|
-
onDelete: (doc) =>
|
|
213
|
+
onDelete: (doc) => chunkXBM6TVZL_cjs.useFilesDialogs.getState().requestDelete(doc),
|
|
214
214
|
onCompare
|
|
215
215
|
}
|
|
216
216
|
);
|
|
@@ -525,7 +525,7 @@ function useViewedDocument(documentId) {
|
|
|
525
525
|
const documentData = record?.external_id === documentId ? record : void 0;
|
|
526
526
|
const { data: tags } = chunkGD5OYIOV_cjs.useConnectedTags();
|
|
527
527
|
const labelSummaries = React.useMemo(
|
|
528
|
-
() =>
|
|
528
|
+
() => chunkQEEK2Z5T_cjs.summariseDocTags(documentData?.doctags ?? [], tags.filter(chunkQEEK2Z5T_cjs.isDocumentLabel)),
|
|
529
529
|
[documentData, tags]
|
|
530
530
|
);
|
|
531
531
|
const fileName = documentData?.file_name;
|
|
@@ -650,7 +650,7 @@ function useViewerBlobs(documentId, doc) {
|
|
|
650
650
|
handleDirectDownload
|
|
651
651
|
};
|
|
652
652
|
}
|
|
653
|
-
function useViewerTabs(doc,
|
|
653
|
+
function useViewerTabs(doc, _isCompact, hasHistory = false, snapshot = false) {
|
|
654
654
|
const {
|
|
655
655
|
documentData,
|
|
656
656
|
isArtifact,
|
|
@@ -757,7 +757,7 @@ function useViewerTabs(doc, isCompact, hasHistory = false, snapshot = false) {
|
|
|
757
757
|
// would flip from PDF to Text once it arrives).
|
|
758
758
|
{ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileText, { className: "size-5" }), tooltip: "Document" }
|
|
759
759
|
);
|
|
760
|
-
const tabLabel = (
|
|
760
|
+
const tabLabel = (_id, label) => label;
|
|
761
761
|
const versionsTab = {
|
|
762
762
|
id: "versions",
|
|
763
763
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.History, { className: "size-5" }),
|
|
@@ -907,7 +907,7 @@ function useDocumentVersionRestore({
|
|
|
907
907
|
const { role } = react.useCurrentWorkspace();
|
|
908
908
|
const { confirm, notify } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
909
909
|
const [restoring, setRestoring] = React.useState(false);
|
|
910
|
-
const canRestore =
|
|
910
|
+
const canRestore = chunkQEEK2Z5T_cjs.canEditDocumentFields(document2, currentUserId, role);
|
|
911
911
|
const restoreVersion = async (id) => {
|
|
912
912
|
const snapshot = artifacts.parseVersionRef(id);
|
|
913
913
|
const head = document2?.current_version;
|
|
@@ -1155,7 +1155,7 @@ function PassageTagPanel({
|
|
|
1155
1155
|
[workspaceTags]
|
|
1156
1156
|
);
|
|
1157
1157
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1158
|
-
|
|
1158
|
+
chunkQEEK2Z5T_cjs.TagPassagePanel,
|
|
1159
1159
|
{
|
|
1160
1160
|
pageNumber,
|
|
1161
1161
|
preview,
|
|
@@ -1280,7 +1280,7 @@ var ParsedPassage = React.memo(function ParsedPassage2({
|
|
|
1280
1280
|
];
|
|
1281
1281
|
}) : [];
|
|
1282
1282
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1283
|
-
|
|
1283
|
+
chunkQEEK2Z5T_cjs.HtmlPassage,
|
|
1284
1284
|
{
|
|
1285
1285
|
chunkId,
|
|
1286
1286
|
highlight: isStrong ? "strong" : isLight ? "light" : void 0,
|
|
@@ -1456,11 +1456,11 @@ function useDocumentLabels(documentId, doctags, orderedChunkIds) {
|
|
|
1456
1456
|
const workspaceTags = React.useMemo(() => allTags.filter(isDocumentTag), [allTags]);
|
|
1457
1457
|
const documentDoctags = React.useMemo(() => doctags ?? [], [doctags]);
|
|
1458
1458
|
const tagSummaries = React.useMemo(
|
|
1459
|
-
() =>
|
|
1459
|
+
() => chunkQEEK2Z5T_cjs.summariseDocTags(documentDoctags, workspaceTags),
|
|
1460
1460
|
[documentDoctags, workspaceTags]
|
|
1461
1461
|
);
|
|
1462
1462
|
const labelSummaries = React.useMemo(
|
|
1463
|
-
() =>
|
|
1463
|
+
() => chunkQEEK2Z5T_cjs.summariseDocTags(documentDoctags, workspaceTags.filter(chunkQEEK2Z5T_cjs.isDocumentLabel)),
|
|
1464
1464
|
[documentDoctags, workspaceTags]
|
|
1465
1465
|
);
|
|
1466
1466
|
const labelsByChunk = React.useMemo(() => {
|
|
@@ -1968,14 +1968,14 @@ function ParsedTextView({
|
|
|
1968
1968
|
}
|
|
1969
1969
|
}
|
|
1970
1970
|
}, [maxPageNumber, onLoadSuccess]);
|
|
1971
|
-
if (isLoading) return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1971
|
+
if (isLoading) return /* @__PURE__ */ jsxRuntime.jsx(chunkQEEK2Z5T_cjs.ViewerMessage, { children: "Loading parsed document..." });
|
|
1972
1972
|
if (error) {
|
|
1973
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1973
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkQEEK2Z5T_cjs.ViewerMessage, { children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-red-text", children: "Failed to load parsed document" }) });
|
|
1974
1974
|
}
|
|
1975
1975
|
const taggingChunk = labels.taggingChunkId ? processedChunks.flatMap((page) => page.chunks).find((c) => c.chunkExtId === labels.taggingChunkId) : void 0;
|
|
1976
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1976
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkQEEK2Z5T_cjs.HtmlViewerRoot, { children: [
|
|
1977
1977
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1978
|
-
|
|
1978
|
+
chunkQEEK2Z5T_cjs.DocumentLabelBar,
|
|
1979
1979
|
{
|
|
1980
1980
|
summaries: labels.labelSummaries,
|
|
1981
1981
|
activeTagExtId: labels.activeTagExtId,
|
|
@@ -2000,15 +2000,15 @@ function ParsedTextView({
|
|
|
2000
2000
|
}
|
|
2001
2001
|
),
|
|
2002
2002
|
!citation.factCitationActive && citation.runStartIds.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2003
|
-
|
|
2003
|
+
chunkQEEK2Z5T_cjs.CitedRunNav,
|
|
2004
2004
|
{
|
|
2005
2005
|
position: citation.runCursor + 1,
|
|
2006
2006
|
total: citation.runStartIds.length,
|
|
2007
2007
|
onStep: citation.gotoRun
|
|
2008
2008
|
}
|
|
2009
2009
|
),
|
|
2010
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2011
|
-
|
|
2010
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQEEK2Z5T_cjs.HtmlViewerSurface, { surfaceRef: containerRef, onMouseUp: citation.handleSelectionEnd, children: processedChunks.length > 0 ? processedChunks.map((page, pageIndex) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2011
|
+
chunkQEEK2Z5T_cjs.HtmlPage,
|
|
2012
2012
|
{
|
|
2013
2013
|
pageNumber: page.pageNumber,
|
|
2014
2014
|
totalPages,
|
|
@@ -2049,7 +2049,7 @@ function ParsedTextView({
|
|
|
2049
2049
|
})
|
|
2050
2050
|
},
|
|
2051
2051
|
pageIndex
|
|
2052
|
-
)) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
2052
|
+
)) : /* @__PURE__ */ jsxRuntime.jsx(chunkQEEK2Z5T_cjs.HtmlViewerEmpty, {}) })
|
|
2053
2053
|
] });
|
|
2054
2054
|
}
|
|
2055
2055
|
function PdfClipOutlines({ outlines, onShow }) {
|
|
@@ -2318,7 +2318,7 @@ function ViewerPdfPane({
|
|
|
2318
2318
|
}
|
|
2319
2319
|
if (isDownloadOnly) {
|
|
2320
2320
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2321
|
-
|
|
2321
|
+
chunkQEEK2Z5T_cjs.ViewerPreviewUnavailable,
|
|
2322
2322
|
{
|
|
2323
2323
|
extension: fileExtension(documentData?.file_name),
|
|
2324
2324
|
onDownload
|
|
@@ -2328,24 +2328,24 @@ function ViewerPdfPane({
|
|
|
2328
2328
|
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...";
|
|
2329
2329
|
const errorLabel = isVideo ? "Failed to load video" : isAudio ? "Failed to load audio" : isImage ? "Failed to load image" : "Failed to load PDF";
|
|
2330
2330
|
if (isDocx && !pdfSnapshotNumber && documentData && !["completed", "low-content", "failed"].includes(documentData.status || "")) {
|
|
2331
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2331
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkQEEK2Z5T_cjs.ViewerMessage, { children: "PDF and search indexing are processing. Open the DOCX tab to edit now." });
|
|
2332
2332
|
}
|
|
2333
2333
|
if (isDocx && !pdfSnapshotNumber && documentData?.status === "failed") {
|
|
2334
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2334
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkQEEK2Z5T_cjs.ViewerMessage, { children: "PDF conversion failed. Open the Word editor or download the document." });
|
|
2335
2335
|
}
|
|
2336
|
-
if (isPdfLoading) return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2336
|
+
if (isPdfLoading) return /* @__PURE__ */ jsxRuntime.jsx(chunkQEEK2Z5T_cjs.ViewerMessage, { children: loadingLabel });
|
|
2337
2337
|
if (pdfError) {
|
|
2338
2338
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2339
|
-
|
|
2339
|
+
chunkQEEK2Z5T_cjs.ViewerLoadError,
|
|
2340
2340
|
{
|
|
2341
2341
|
message: isVideo || isAudio || isImage ? `${errorLabel} \u2014 download it instead.` : "Couldn't display the PDF \u2014 download it instead.",
|
|
2342
2342
|
onDownload
|
|
2343
2343
|
}
|
|
2344
2344
|
);
|
|
2345
2345
|
}
|
|
2346
|
-
if (!pdfBlob) return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2346
|
+
if (!pdfBlob) return /* @__PURE__ */ jsxRuntime.jsx(chunkQEEK2Z5T_cjs.ViewerMessage, { children: loadingLabel });
|
|
2347
2347
|
if (clipping && (isImage || isVideo)) {
|
|
2348
|
-
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2348
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkQEEK2Z5T_cjs.ViewerMessage, { children: "Loading\u2026" }), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2349
2349
|
ClippingMediaViewer,
|
|
2350
2350
|
{
|
|
2351
2351
|
file: pdfBlob,
|
|
@@ -2377,7 +2377,7 @@ function ViewerPdfPane({
|
|
|
2377
2377
|
return /* @__PURE__ */ jsxRuntime.jsx(viewers.ImageViewer, { blob: pdfBlob, alt: documentData?.file_name || "Document image" });
|
|
2378
2378
|
}
|
|
2379
2379
|
if (signatureFlow?.kind === "prepare") {
|
|
2380
|
-
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2380
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkQEEK2Z5T_cjs.ViewerMessage, { children: "Loading\u2026" }), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2381
2381
|
SignatureRequestEditor,
|
|
2382
2382
|
{
|
|
2383
2383
|
...viewerProps,
|
|
@@ -2395,7 +2395,7 @@ function ViewerPdfPane({
|
|
|
2395
2395
|
}
|
|
2396
2396
|
if (signatureFlow?.kind === "sign" && currentUserId) {
|
|
2397
2397
|
const { currentPage: _page, scrollTrigger: _trigger, ...guidedProps } = viewerProps;
|
|
2398
|
-
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2398
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkQEEK2Z5T_cjs.ViewerMessage, { children: "Loading\u2026" }), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2399
2399
|
GuidedSigningViewer,
|
|
2400
2400
|
{
|
|
2401
2401
|
...guidedProps,
|
|
@@ -2409,7 +2409,7 @@ function ViewerPdfPane({
|
|
|
2409
2409
|
) });
|
|
2410
2410
|
}
|
|
2411
2411
|
if (placingSignature) {
|
|
2412
|
-
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2412
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkQEEK2Z5T_cjs.ViewerMessage, { children: "Loading\u2026" }), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2413
2413
|
SignaturePlacementViewer,
|
|
2414
2414
|
{
|
|
2415
2415
|
...viewerProps,
|
|
@@ -2422,7 +2422,7 @@ function ViewerPdfPane({
|
|
|
2422
2422
|
) });
|
|
2423
2423
|
}
|
|
2424
2424
|
if (clipping) {
|
|
2425
|
-
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2425
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkQEEK2Z5T_cjs.ViewerMessage, { children: "Loading\u2026" }), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2426
2426
|
ClippingPdfViewer,
|
|
2427
2427
|
{
|
|
2428
2428
|
...viewerProps,
|
|
@@ -2439,7 +2439,7 @@ function ViewerPdfPane({
|
|
|
2439
2439
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2440
2440
|
React.Suspense,
|
|
2441
2441
|
{
|
|
2442
|
-
fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2442
|
+
fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkQEEK2Z5T_cjs.ViewerMessage, { children: annotating ? "Loading annotation tools\u2026" : "Loading markup\u2026" }),
|
|
2443
2443
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2444
2444
|
AnnotatedPdfViewer,
|
|
2445
2445
|
{
|
|
@@ -2730,15 +2730,15 @@ function DocumentViewerContent({
|
|
|
2730
2730
|
};
|
|
2731
2731
|
const documentTitle = streamingDoc?.title || draftDoc?.title || documentData?.doc_metadata?.title || documentData?.file_name || "Document";
|
|
2732
2732
|
const pageNav = totalPages > 0 && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2733
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2733
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQEEK2Z5T_cjs.ViewerZoomControl, { zoom, onCycle: () => setZoom(viewers.cycleZoom(zoom)) }),
|
|
2734
2734
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2735
|
-
|
|
2735
|
+
chunkQEEK2Z5T_cjs.PdfPageNav,
|
|
2736
2736
|
{
|
|
2737
2737
|
canPrev: (viewingDocumentPage || 1) > 1,
|
|
2738
2738
|
canNext: (viewingDocumentPage || 1) < totalPages,
|
|
2739
2739
|
onPrev: () => stepPage(-1),
|
|
2740
2740
|
onNext: () => stepPage(1),
|
|
2741
|
-
counter: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2741
|
+
counter: /* @__PURE__ */ jsxRuntime.jsx(chunkQEEK2Z5T_cjs.ViewerPageCounter, { page: viewingDocumentPage || 1, total: totalPages, onGoTo: goToPage })
|
|
2742
2742
|
}
|
|
2743
2743
|
)
|
|
2744
2744
|
] });
|
|
@@ -2762,7 +2762,7 @@ function DocumentViewerContent({
|
|
|
2762
2762
|
);
|
|
2763
2763
|
const titleBlock = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2764
2764
|
isDraft ? /* @__PURE__ */ jsxRuntime.jsx(ViewerDraftTitle, { documentId }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
2765
|
-
|
|
2765
|
+
chunkQEEK2Z5T_cjs.ViewerTitle,
|
|
2766
2766
|
{
|
|
2767
2767
|
title: documentTitle,
|
|
2768
2768
|
versionLabel: currentVersionLabel,
|
|
@@ -2789,11 +2789,12 @@ function DocumentViewerContent({
|
|
|
2789
2789
|
/* @__PURE__ */ jsxRuntime.jsx(ViewerDraftKind, { documentId })
|
|
2790
2790
|
) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2791
2791
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2792
|
-
|
|
2792
|
+
chunkQEEK2Z5T_cjs.ViewerTabBar,
|
|
2793
2793
|
{
|
|
2794
2794
|
tabs: viewerTabs.filter((tab) => tab.id !== "versions"),
|
|
2795
2795
|
activeId: activeTab,
|
|
2796
|
-
onChange: handleTabChange
|
|
2796
|
+
onChange: handleTabChange,
|
|
2797
|
+
collapseLabels: true
|
|
2797
2798
|
}
|
|
2798
2799
|
),
|
|
2799
2800
|
(isArtifact || isDocx || hasHistory) && !liveKind && !isComparing && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2911,7 +2912,7 @@ function DocumentViewerContent({
|
|
|
2911
2912
|
}
|
|
2912
2913
|
),
|
|
2913
2914
|
activeTab === "pdf" && isImage && pdfBlob && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2914
|
-
|
|
2915
|
+
chunkQEEK2Z5T_cjs.ViewerImageActions,
|
|
2915
2916
|
{
|
|
2916
2917
|
compact: isCompact,
|
|
2917
2918
|
onUseAsReference: support.useImageAsReference ? () => support.useImageAsReference(documentId) : void 0,
|
|
@@ -2968,7 +2969,7 @@ function DocumentViewerContent({
|
|
|
2968
2969
|
state: documentData?.shared ? "shared" : "private",
|
|
2969
2970
|
onShare: () => void share(),
|
|
2970
2971
|
onShared: shareWithPeople,
|
|
2971
|
-
disabled: !
|
|
2972
|
+
disabled: !chunkQEEK2Z5T_cjs.canChangeVisibility(documentData, currentUserId),
|
|
2972
2973
|
disabledTooltip: "Only the owner can change visibility",
|
|
2973
2974
|
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",
|
|
2974
2975
|
variant: "outline",
|
|
@@ -3113,7 +3114,7 @@ function DocumentViewerContent({
|
|
|
3113
3114
|
onZoomChange: setZoom
|
|
3114
3115
|
};
|
|
3115
3116
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3116
|
-
|
|
3117
|
+
chunkQEEK2Z5T_cjs.ViewerFrame,
|
|
3117
3118
|
{
|
|
3118
3119
|
frameRef: containerRef,
|
|
3119
3120
|
contentId: documentId,
|
|
@@ -3146,7 +3147,7 @@ function DocumentViewerContent({
|
|
|
3146
3147
|
...clean.frame,
|
|
3147
3148
|
footer: /* @__PURE__ */ jsxRuntime.jsx(ViewerCropModal, { crop }),
|
|
3148
3149
|
children: [
|
|
3149
|
-
isComparing && /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3150
|
+
isComparing && /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkQEEK2Z5T_cjs.ViewerMessage, { children: "Loading comparison\u2026" }), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3150
3151
|
NativeDocxComparison,
|
|
3151
3152
|
{
|
|
3152
3153
|
baseId: compareDocumentId,
|
|
@@ -3156,9 +3157,9 @@ function DocumentViewerContent({
|
|
|
3156
3157
|
) }),
|
|
3157
3158
|
isCaptureDraft && /* @__PURE__ */ jsxRuntime.jsx(ViewerCaptureDraft, { documentId }),
|
|
3158
3159
|
!isCaptureDraft && (activeTab === "pdf" || isMedia && activeTab === "html") && (!isArtifact || isDocx && !isDraft && !isStreaming && !liveKind) && !isComparing && /* @__PURE__ */ jsxRuntime.jsxs(chunkDTMBAFIL_cjs.ViewerPane, { hidden: activeTab !== "pdf", children: [
|
|
3159
|
-
!clean.on && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3160
|
+
!clean.on && /* @__PURE__ */ jsxRuntime.jsx(chunkQEEK2Z5T_cjs.DocumentLabelBar, { summaries: labelSummaries }),
|
|
3160
3161
|
!clean.on && !isMedia && !isImage && signatureBanner,
|
|
3161
|
-
!clean.on && activeTab === "pdf" && pdfBlob && !pdfVerified && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3162
|
+
!clean.on && activeTab === "pdf" && pdfBlob && !pdfVerified && /* @__PURE__ */ jsxRuntime.jsxs(chunkQEEK2Z5T_cjs.ViewerMessage, { children: [
|
|
3162
3163
|
"Offline copy: its version cannot be verified. Reconnect before signing.",
|
|
3163
3164
|
" ",
|
|
3164
3165
|
/* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick: () => void blobs.retryPdf(), className: "underline", children: "Retry loading the current PDF" })
|
|
@@ -3171,7 +3172,7 @@ function DocumentViewerContent({
|
|
|
3171
3172
|
onOpenVersion: (n) => setSnapshotDocumentId(`${documentId}@v${n}`)
|
|
3172
3173
|
}
|
|
3173
3174
|
),
|
|
3174
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3175
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQEEK2Z5T_cjs.ViewerControlBar, { controls: !clean.on && activeTab === "pdf" && pageNav, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3175
3176
|
ViewerPdfPane,
|
|
3176
3177
|
{
|
|
3177
3178
|
documentId,
|
|
@@ -3211,7 +3212,7 @@ function DocumentViewerContent({
|
|
|
3211
3212
|
}
|
|
3212
3213
|
),
|
|
3213
3214
|
activeTab === "edit" && isArtifact && liveKind && /* @__PURE__ */ jsxRuntime.jsx(chunkMHIG6GGS_cjs.ArtifactCodeView, { source: liveSource, fileName: documentData?.file_name ?? void 0 }),
|
|
3214
|
-
activeTab === "edit" && isArtifact && !liveKind && !isStreaming && !isComparing && /* @__PURE__ */ jsxRuntime.jsxs(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3215
|
+
activeTab === "edit" && isArtifact && !liveKind && !isStreaming && !isComparing && /* @__PURE__ */ jsxRuntime.jsxs(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkQEEK2Z5T_cjs.ViewerMessage, { children: "Loading editor\u2026" }), children: [
|
|
3215
3216
|
isSigned && !snapshotDocumentId && /* @__PURE__ */ jsxRuntime.jsx(chunk3RAW2ZH5_cjs.SignedEditNote, {}),
|
|
3216
3217
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3217
3218
|
chunkMXP32DA2_cjs.ConnectedNativeDocxEditor,
|
|
@@ -3258,8 +3259,8 @@ function DocumentViewerContent({
|
|
|
3258
3259
|
onOpenTranslation: (id) => setViewingDocumentId(id)
|
|
3259
3260
|
}
|
|
3260
3261
|
),
|
|
3261
|
-
activeTab === "xlsx" && isXlsx && (xlsxBlob ? /* @__PURE__ */ jsxRuntime.jsx(viewers.XlsxViewer, { blob: xlsxBlob }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
3262
|
-
activeTab === "slides" && !snapshotDocumentId && isPresentation && /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3262
|
+
activeTab === "xlsx" && isXlsx && (xlsxBlob ? /* @__PURE__ */ jsxRuntime.jsx(viewers.XlsxViewer, { blob: xlsxBlob }) : /* @__PURE__ */ jsxRuntime.jsx(chunkQEEK2Z5T_cjs.ViewerMessage, { children: xlsxError ? "Failed to load spreadsheet" : "Loading spreadsheet..." })),
|
|
3263
|
+
activeTab === "slides" && !snapshotDocumentId && isPresentation && /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkQEEK2Z5T_cjs.ViewerMessage, { children: "Loading slides\u2026" }), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3263
3264
|
SlidesTab,
|
|
3264
3265
|
{
|
|
3265
3266
|
documentId,
|
|
@@ -3268,7 +3269,7 @@ function DocumentViewerContent({
|
|
|
3268
3269
|
draftTitle: isDraft ? draftDoc?.title ?? "" : void 0
|
|
3269
3270
|
}
|
|
3270
3271
|
) }),
|
|
3271
|
-
activeTab === "docx" && isDocx && !isComparing && /* @__PURE__ */ jsxRuntime.jsxs(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3272
|
+
activeTab === "docx" && isDocx && !isComparing && /* @__PURE__ */ jsxRuntime.jsxs(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkQEEK2Z5T_cjs.ViewerMessage, { children: "Loading editor\u2026" }), children: [
|
|
3272
3273
|
signatureBanner,
|
|
3273
3274
|
isSigned && !snapshotDocumentId && /* @__PURE__ */ jsxRuntime.jsx(chunk3RAW2ZH5_cjs.SignedEditNote, {}),
|
|
3274
3275
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3283,7 +3284,7 @@ function DocumentViewerContent({
|
|
|
3283
3284
|
`${snapshotDocumentId || documentId}-${snapshotDocumentId ? "snapshot" : "live"}`
|
|
3284
3285
|
)
|
|
3285
3286
|
] }),
|
|
3286
|
-
streamingDoc && isStreaming && isArtifact && !liveKind && !isComparing && (activeTab === "html" || activeTab === "edit") && /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3287
|
+
streamingDoc && isStreaming && isArtifact && !liveKind && !isComparing && (activeTab === "html" || activeTab === "edit") && /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkQEEK2Z5T_cjs.ViewerMessage, { children: "Opening draft\u2026" }), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3287
3288
|
StreamedWordArtifact,
|
|
3288
3289
|
{
|
|
3289
3290
|
documentId: documentId.startsWith("doc-") ? documentId : void 0,
|
|
@@ -3293,7 +3294,7 @@ function DocumentViewerContent({
|
|
|
3293
3294
|
},
|
|
3294
3295
|
documentId
|
|
3295
3296
|
) }),
|
|
3296
|
-
!isCaptureDraft && !isComparing && activeTab === "html" && !(isStreaming && isArtifact && !liveKind) && /* @__PURE__ */ jsxRuntime.jsx(chunkDTMBAFIL_cjs.ViewerPane, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3297
|
+
!isCaptureDraft && !isComparing && activeTab === "html" && !(isStreaming && isArtifact && !liveKind) && /* @__PURE__ */ jsxRuntime.jsx(chunkDTMBAFIL_cjs.ViewerPane, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkQEEK2Z5T_cjs.ViewerControlBar, { controls: pageNav, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3297
3298
|
ParsedTextView,
|
|
3298
3299
|
{
|
|
3299
3300
|
documentId: pdfSnapshotId || documentId,
|
|
@@ -3309,5 +3310,5 @@ function DocumentViewerContent({
|
|
|
3309
3310
|
}
|
|
3310
3311
|
|
|
3311
3312
|
exports.ConnectedDocumentViewer = ConnectedDocumentViewer;
|
|
3312
|
-
//# sourceMappingURL=chunk-
|
|
3313
|
-
//# sourceMappingURL=chunk-
|
|
3313
|
+
//# sourceMappingURL=chunk-77FZT7AP.cjs.map
|
|
3314
|
+
//# sourceMappingURL=chunk-77FZT7AP.cjs.map
|