@arbidocs/blocks 0.5.187 → 0.5.189
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-PZJRO54J.cjs → ConnectedCallDock-7GGYYQNK.cjs} +8 -8
- package/dist/{ConnectedCallDock-PZJRO54J.cjs.map → ConnectedCallDock-7GGYYQNK.cjs.map} +1 -1
- package/dist/{ConnectedCallRoom-NGSUG6MI.cjs → ConnectedCallRoom-ZZ7RBGGY.cjs} +8 -8
- package/dist/{ConnectedCallRoom-NGSUG6MI.cjs.map → ConnectedCallRoom-ZZ7RBGGY.cjs.map} +1 -1
- package/dist/{DocumentReviewCard-NKCKBY3P.cjs → DocumentReviewCard-RFE4THHR.cjs} +12 -12
- package/dist/{DocumentReviewCard-NKCKBY3P.cjs.map → DocumentReviewCard-RFE4THHR.cjs.map} +1 -1
- package/dist/{FilesViewerDialog-T4SOKUKO.cjs → FilesViewerDialog-6OCS7XMG.cjs} +7 -7
- package/dist/{FilesViewerDialog-T4SOKUKO.cjs.map → FilesViewerDialog-6OCS7XMG.cjs.map} +1 -1
- package/dist/{ai-CTJWECJ5.cjs → ai-A5YTWIEC.cjs} +14 -14
- package/dist/ai-A5YTWIEC.cjs.map +1 -0
- package/dist/calls/connected/DmCallButton.d.ts +1 -1
- package/dist/calls/connected/DmCallButton.js +9 -1
- package/dist/calls/connected/DmCallButton.js.map +2 -2
- package/dist/calls/index.cjs +22 -22
- package/dist/chat/index.cjs +59 -55
- package/dist/chat/index.d.ts +1 -0
- package/dist/chat/index.js +2 -0
- package/dist/chat/index.js.map +2 -2
- package/dist/{chunk-ZTLPUUZB.cjs → chunk-2QGTWHPQ.cjs} +2 -2
- package/dist/{chunk-ZTLPUUZB.cjs.map → chunk-2QGTWHPQ.cjs.map} +1 -1
- package/dist/{chunk-LRBX4VIG.cjs → chunk-5RUY5THD.cjs} +4 -4
- package/dist/{chunk-LRBX4VIG.cjs.map → chunk-5RUY5THD.cjs.map} +1 -1
- package/dist/{chunk-SFAAOEQE.cjs → chunk-72O4YH5M.cjs} +7 -2
- package/dist/chunk-72O4YH5M.cjs.map +1 -0
- package/dist/{chunk-7ARRFRQR.cjs → chunk-E7BSG5IS.cjs} +37 -38
- package/dist/chunk-E7BSG5IS.cjs.map +1 -0
- package/dist/{chunk-J4X3LYGC.cjs → chunk-GENUGV6V.cjs} +4 -4
- package/dist/{chunk-J4X3LYGC.cjs.map → chunk-GENUGV6V.cjs.map} +1 -1
- package/dist/{chunk-WDL3TOMX.cjs → chunk-HO2AURAQ.cjs} +6 -6
- package/dist/{chunk-WDL3TOMX.cjs.map → chunk-HO2AURAQ.cjs.map} +1 -1
- package/dist/{chunk-ZHLBTIJJ.cjs → chunk-HS7TUDEM.cjs} +5 -4
- package/dist/chunk-HS7TUDEM.cjs.map +1 -0
- package/dist/{chunk-TLEEVRYB.cjs → chunk-HTH3XIFF.cjs} +8 -8
- package/dist/{chunk-TLEEVRYB.cjs.map → chunk-HTH3XIFF.cjs.map} +1 -1
- package/dist/{chunk-DXOYRQKH.cjs → chunk-IRDL2EC6.cjs} +9 -9
- package/dist/{chunk-DXOYRQKH.cjs.map → chunk-IRDL2EC6.cjs.map} +1 -1
- package/dist/{chunk-6VIS6B3O.cjs → chunk-IXSOSISW.cjs} +28 -28
- package/dist/{chunk-6VIS6B3O.cjs.map → chunk-IXSOSISW.cjs.map} +1 -1
- package/dist/{chunk-FTSXCBUO.cjs → chunk-JEUHT7XH.cjs} +6 -6
- package/dist/{chunk-FTSXCBUO.cjs.map → chunk-JEUHT7XH.cjs.map} +1 -1
- package/dist/{chunk-WIQDXRRB.cjs → chunk-PGKCL6YA.cjs} +39 -39
- package/dist/{chunk-WIQDXRRB.cjs.map → chunk-PGKCL6YA.cjs.map} +1 -1
- package/dist/{chunk-HYULUR6E.cjs → chunk-PPHXBDJP.cjs} +9 -9
- package/dist/{chunk-HYULUR6E.cjs.map → chunk-PPHXBDJP.cjs.map} +1 -1
- package/dist/{chunk-DWUWPF2A.cjs → chunk-SFKBQLFV.cjs} +51 -51
- package/dist/{chunk-DWUWPF2A.cjs.map → chunk-SFKBQLFV.cjs.map} +1 -1
- package/dist/{chunk-TW5AGCHR.cjs → chunk-SXC4ZIN4.cjs} +9 -3
- package/dist/chunk-SXC4ZIN4.cjs.map +1 -0
- package/dist/{chunk-H3C5BY2H.cjs → chunk-U4MJIYGD.cjs} +4 -4
- package/dist/{chunk-H3C5BY2H.cjs.map → chunk-U4MJIYGD.cjs.map} +1 -1
- package/dist/{chunk-LIAC6O7W.cjs → chunk-UNT2VY3B.cjs} +4 -4
- package/dist/{chunk-LIAC6O7W.cjs.map → chunk-UNT2VY3B.cjs.map} +1 -1
- package/dist/{chunk-PUCYBYBY.cjs → chunk-USYCBTKK.cjs} +83 -32
- package/dist/chunk-USYCBTKK.cjs.map +1 -0
- package/dist/{chunk-YM77I6V7.cjs → chunk-WHU7ABQE.cjs} +18 -18
- package/dist/{chunk-YM77I6V7.cjs.map → chunk-WHU7ABQE.cjs.map} +1 -1
- package/dist/connect/index.cjs +621 -621
- package/dist/connect/viewer.cjs +5 -5
- package/dist/connection/files/explorer/FileTiles.js +2 -4
- package/dist/connection/files/explorer/FileTiles.js.map +2 -2
- package/dist/databases/DatabaseRowDetail.d.ts +2 -2
- package/dist/databases/DatabaseRowDetail.js +22 -35
- package/dist/databases/DatabaseRowDetail.js.map +2 -2
- package/dist/databases/DocumentSourcesField.d.ts +12 -0
- package/dist/databases/DocumentSourcesField.js +72 -0
- package/dist/databases/DocumentSourcesField.js.map +7 -0
- package/dist/databases/index.cjs +70 -69
- package/dist/embed/index.cjs +12 -12
- package/dist/files/index.cjs +219 -219
- package/dist/files/visibility.d.ts +5 -0
- package/dist/files/visibility.js +6 -1
- package/dist/files/visibility.js.map +2 -2
- package/dist/index.cjs +107 -103
- package/dist/pages/index.cjs +19 -19
- package/dist/studio/index.cjs +5 -5
- package/dist/workflow-canvas/index.cjs +16 -16
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/dist/ai-CTJWECJ5.cjs.map +0 -1
- package/dist/chunk-7ARRFRQR.cjs.map +0 -1
- package/dist/chunk-PUCYBYBY.cjs.map +0 -1
- package/dist/chunk-SFAAOEQE.cjs.map +0 -1
- package/dist/chunk-TW5AGCHR.cjs.map +0 -1
- package/dist/chunk-ZHLBTIJJ.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 chunkGENUGV6V_cjs = require('./chunk-GENUGV6V.cjs');
|
|
13
13
|
var chunkD4SJT3NG_cjs = require('./chunk-D4SJT3NG.cjs');
|
|
14
14
|
var chunkOUYBYZ7Y_cjs = require('./chunk-OUYBYZ7Y.cjs');
|
|
15
15
|
var chunkA7MGQMOV_cjs = require('./chunk-A7MGQMOV.cjs');
|
|
16
|
-
var
|
|
17
|
-
var
|
|
16
|
+
var chunkE7BSG5IS_cjs = require('./chunk-E7BSG5IS.cjs');
|
|
17
|
+
var chunk72O4YH5M_cjs = require('./chunk-72O4YH5M.cjs');
|
|
18
18
|
var chunkDTMBAFIL_cjs = require('./chunk-DTMBAFIL.cjs');
|
|
19
19
|
var chunk4TCOUQMC_cjs = require('./chunk-4TCOUQMC.cjs');
|
|
20
20
|
var chunk76S6WTEC_cjs = require('./chunk-76S6WTEC.cjs');
|
|
@@ -205,13 +205,13 @@ function ViewerRelatedDocuments({ document: document2 }) {
|
|
|
205
205
|
);
|
|
206
206
|
if (!related) return null;
|
|
207
207
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
208
|
-
|
|
208
|
+
chunkE7BSG5IS_cjs.RelatedDocumentsCell,
|
|
209
209
|
{
|
|
210
210
|
currentDoc: document2,
|
|
211
211
|
related,
|
|
212
212
|
viewingDocumentId: viewerOpen ? viewingId : null,
|
|
213
213
|
onDocumentClick: (id) => session.setViewingDocument({ id, page: null }),
|
|
214
|
-
onDelete: (doc) =>
|
|
214
|
+
onDelete: (doc) => chunkGENUGV6V_cjs.useFilesDialogs.getState().requestDelete(doc),
|
|
215
215
|
onCompare
|
|
216
216
|
}
|
|
217
217
|
);
|
|
@@ -526,7 +526,7 @@ function useViewedDocument(documentId) {
|
|
|
526
526
|
const documentData = record?.external_id === documentId ? record : void 0;
|
|
527
527
|
const { data: tags } = chunkGD5OYIOV_cjs.useConnectedTags();
|
|
528
528
|
const labelSummaries = React.useMemo(
|
|
529
|
-
() =>
|
|
529
|
+
() => chunk72O4YH5M_cjs.summariseDocTags(documentData?.doctags ?? [], tags.filter(chunk72O4YH5M_cjs.isDocumentLabel)),
|
|
530
530
|
[documentData, tags]
|
|
531
531
|
);
|
|
532
532
|
const fileName = documentData?.file_name;
|
|
@@ -908,7 +908,7 @@ function useDocumentVersionRestore({
|
|
|
908
908
|
const { role } = react.useCurrentWorkspace();
|
|
909
909
|
const { confirm, notify } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
910
910
|
const [restoring, setRestoring] = React.useState(false);
|
|
911
|
-
const canRestore =
|
|
911
|
+
const canRestore = chunk72O4YH5M_cjs.canEditDocumentFields(document2, currentUserId, role);
|
|
912
912
|
const restoreVersion = async (id) => {
|
|
913
913
|
const snapshot = artifacts.parseVersionRef(id);
|
|
914
914
|
const head = document2?.current_version;
|
|
@@ -1156,7 +1156,7 @@ function PassageTagPanel({
|
|
|
1156
1156
|
[workspaceTags]
|
|
1157
1157
|
);
|
|
1158
1158
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1159
|
-
|
|
1159
|
+
chunk72O4YH5M_cjs.TagPassagePanel,
|
|
1160
1160
|
{
|
|
1161
1161
|
pageNumber,
|
|
1162
1162
|
preview,
|
|
@@ -1281,7 +1281,7 @@ var ParsedPassage = React.memo(function ParsedPassage2({
|
|
|
1281
1281
|
];
|
|
1282
1282
|
}) : [];
|
|
1283
1283
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1284
|
-
|
|
1284
|
+
chunk72O4YH5M_cjs.HtmlPassage,
|
|
1285
1285
|
{
|
|
1286
1286
|
chunkId,
|
|
1287
1287
|
highlight: isStrong ? "strong" : isLight ? "light" : void 0,
|
|
@@ -1457,11 +1457,11 @@ function useDocumentLabels(documentId, doctags, orderedChunkIds) {
|
|
|
1457
1457
|
const workspaceTags = React.useMemo(() => allTags.filter(isDocumentTag), [allTags]);
|
|
1458
1458
|
const documentDoctags = React.useMemo(() => doctags ?? [], [doctags]);
|
|
1459
1459
|
const tagSummaries = React.useMemo(
|
|
1460
|
-
() =>
|
|
1460
|
+
() => chunk72O4YH5M_cjs.summariseDocTags(documentDoctags, workspaceTags),
|
|
1461
1461
|
[documentDoctags, workspaceTags]
|
|
1462
1462
|
);
|
|
1463
1463
|
const labelSummaries = React.useMemo(
|
|
1464
|
-
() =>
|
|
1464
|
+
() => chunk72O4YH5M_cjs.summariseDocTags(documentDoctags, workspaceTags.filter(chunk72O4YH5M_cjs.isDocumentLabel)),
|
|
1465
1465
|
[documentDoctags, workspaceTags]
|
|
1466
1466
|
);
|
|
1467
1467
|
const labelsByChunk = React.useMemo(() => {
|
|
@@ -1969,14 +1969,14 @@ function ParsedTextView({
|
|
|
1969
1969
|
}
|
|
1970
1970
|
}
|
|
1971
1971
|
}, [maxPageNumber, onLoadSuccess]);
|
|
1972
|
-
if (isLoading) return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1972
|
+
if (isLoading) return /* @__PURE__ */ jsxRuntime.jsx(chunk72O4YH5M_cjs.ViewerMessage, { children: "Loading parsed document..." });
|
|
1973
1973
|
if (error) {
|
|
1974
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1974
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk72O4YH5M_cjs.ViewerMessage, { children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-red-text", children: "Failed to load parsed document" }) });
|
|
1975
1975
|
}
|
|
1976
1976
|
const taggingChunk = labels.taggingChunkId ? processedChunks.flatMap((page) => page.chunks).find((c) => c.chunkExtId === labels.taggingChunkId) : void 0;
|
|
1977
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1977
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunk72O4YH5M_cjs.HtmlViewerRoot, { children: [
|
|
1978
1978
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1979
|
-
|
|
1979
|
+
chunk72O4YH5M_cjs.DocumentLabelBar,
|
|
1980
1980
|
{
|
|
1981
1981
|
summaries: labels.labelSummaries,
|
|
1982
1982
|
activeTagExtId: labels.activeTagExtId,
|
|
@@ -2001,15 +2001,15 @@ function ParsedTextView({
|
|
|
2001
2001
|
}
|
|
2002
2002
|
),
|
|
2003
2003
|
!citation.factCitationActive && citation.runStartIds.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2004
|
-
|
|
2004
|
+
chunk72O4YH5M_cjs.CitedRunNav,
|
|
2005
2005
|
{
|
|
2006
2006
|
position: citation.runCursor + 1,
|
|
2007
2007
|
total: citation.runStartIds.length,
|
|
2008
2008
|
onStep: citation.gotoRun
|
|
2009
2009
|
}
|
|
2010
2010
|
),
|
|
2011
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2012
|
-
|
|
2011
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk72O4YH5M_cjs.HtmlViewerSurface, { surfaceRef: containerRef, onMouseUp: citation.handleSelectionEnd, children: processedChunks.length > 0 ? processedChunks.map((page, pageIndex) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2012
|
+
chunk72O4YH5M_cjs.HtmlPage,
|
|
2013
2013
|
{
|
|
2014
2014
|
pageNumber: page.pageNumber,
|
|
2015
2015
|
totalPages,
|
|
@@ -2050,7 +2050,7 @@ function ParsedTextView({
|
|
|
2050
2050
|
})
|
|
2051
2051
|
},
|
|
2052
2052
|
pageIndex
|
|
2053
|
-
)) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
2053
|
+
)) : /* @__PURE__ */ jsxRuntime.jsx(chunk72O4YH5M_cjs.HtmlViewerEmpty, {}) })
|
|
2054
2054
|
] });
|
|
2055
2055
|
}
|
|
2056
2056
|
function PdfClipOutlines({ outlines, onShow }) {
|
|
@@ -2375,7 +2375,7 @@ function ViewerPdfPane({
|
|
|
2375
2375
|
}
|
|
2376
2376
|
if (isDownloadOnly) {
|
|
2377
2377
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2378
|
-
|
|
2378
|
+
chunk72O4YH5M_cjs.ViewerPreviewUnavailable,
|
|
2379
2379
|
{
|
|
2380
2380
|
extension: fileExtension(documentData?.file_name),
|
|
2381
2381
|
onDownload
|
|
@@ -2385,24 +2385,24 @@ function ViewerPdfPane({
|
|
|
2385
2385
|
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...";
|
|
2386
2386
|
const errorLabel = isVideo ? "Failed to load video" : isAudio ? "Failed to load audio" : isImage ? "Failed to load image" : "Failed to load PDF";
|
|
2387
2387
|
if (isDocx && !pdfSnapshotNumber && documentData && !["completed", "low-content", "failed"].includes(documentData.status || "")) {
|
|
2388
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2388
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk72O4YH5M_cjs.ViewerMessage, { children: "PDF and search indexing are processing. Open the DOCX tab to edit now." });
|
|
2389
2389
|
}
|
|
2390
2390
|
if (isDocx && !pdfSnapshotNumber && documentData?.status === "failed") {
|
|
2391
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2391
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk72O4YH5M_cjs.ViewerMessage, { children: "PDF conversion failed. Open the Word editor or download the document." });
|
|
2392
2392
|
}
|
|
2393
|
-
if (isPdfLoading) return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2393
|
+
if (isPdfLoading) return /* @__PURE__ */ jsxRuntime.jsx(chunk72O4YH5M_cjs.ViewerMessage, { children: loadingLabel });
|
|
2394
2394
|
if (pdfError) {
|
|
2395
2395
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2396
|
-
|
|
2396
|
+
chunk72O4YH5M_cjs.ViewerLoadError,
|
|
2397
2397
|
{
|
|
2398
2398
|
message: isVideo || isAudio || isImage ? `${errorLabel} \u2014 download it instead.` : "Couldn't display the PDF \u2014 download it instead.",
|
|
2399
2399
|
onDownload
|
|
2400
2400
|
}
|
|
2401
2401
|
);
|
|
2402
2402
|
}
|
|
2403
|
-
if (!pdfBlob) return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2403
|
+
if (!pdfBlob) return /* @__PURE__ */ jsxRuntime.jsx(chunk72O4YH5M_cjs.ViewerMessage, { children: loadingLabel });
|
|
2404
2404
|
if (clipping && (isImage || isVideo)) {
|
|
2405
|
-
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2405
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunk72O4YH5M_cjs.ViewerMessage, { children: "Loading\u2026" }), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2406
2406
|
ClippingMediaViewer,
|
|
2407
2407
|
{
|
|
2408
2408
|
file: pdfBlob,
|
|
@@ -2434,7 +2434,7 @@ function ViewerPdfPane({
|
|
|
2434
2434
|
return /* @__PURE__ */ jsxRuntime.jsx(viewers.ImageViewer, { blob: pdfBlob, alt: documentData?.file_name || "Document image" });
|
|
2435
2435
|
}
|
|
2436
2436
|
if (signatureFlow?.kind === "prepare") {
|
|
2437
|
-
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2437
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunk72O4YH5M_cjs.ViewerMessage, { children: "Loading\u2026" }), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2438
2438
|
SignatureRequestEditor,
|
|
2439
2439
|
{
|
|
2440
2440
|
...viewerProps,
|
|
@@ -2452,7 +2452,7 @@ function ViewerPdfPane({
|
|
|
2452
2452
|
}
|
|
2453
2453
|
if (signatureFlow?.kind === "sign" && currentUserId) {
|
|
2454
2454
|
const { currentPage: _page, scrollTrigger: _trigger, ...guidedProps } = viewerProps;
|
|
2455
|
-
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2455
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunk72O4YH5M_cjs.ViewerMessage, { children: "Loading\u2026" }), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2456
2456
|
GuidedSigningViewer,
|
|
2457
2457
|
{
|
|
2458
2458
|
...guidedProps,
|
|
@@ -2466,7 +2466,7 @@ function ViewerPdfPane({
|
|
|
2466
2466
|
) });
|
|
2467
2467
|
}
|
|
2468
2468
|
if (placingSignature) {
|
|
2469
|
-
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2469
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunk72O4YH5M_cjs.ViewerMessage, { children: "Loading\u2026" }), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2470
2470
|
SignaturePlacementViewer,
|
|
2471
2471
|
{
|
|
2472
2472
|
...viewerProps,
|
|
@@ -2479,7 +2479,7 @@ function ViewerPdfPane({
|
|
|
2479
2479
|
) });
|
|
2480
2480
|
}
|
|
2481
2481
|
if (clipping) {
|
|
2482
|
-
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2482
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunk72O4YH5M_cjs.ViewerMessage, { children: "Loading\u2026" }), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2483
2483
|
ClippingPdfViewer,
|
|
2484
2484
|
{
|
|
2485
2485
|
...viewerProps,
|
|
@@ -2496,7 +2496,7 @@ function ViewerPdfPane({
|
|
|
2496
2496
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2497
2497
|
React.Suspense,
|
|
2498
2498
|
{
|
|
2499
|
-
fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2499
|
+
fallback: /* @__PURE__ */ jsxRuntime.jsx(chunk72O4YH5M_cjs.ViewerMessage, { children: annotating ? "Loading annotation tools\u2026" : "Loading markup\u2026" }),
|
|
2500
2500
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2501
2501
|
AnnotatedPdfViewer,
|
|
2502
2502
|
{
|
|
@@ -2787,15 +2787,15 @@ function DocumentViewerContent({
|
|
|
2787
2787
|
};
|
|
2788
2788
|
const documentTitle = streamingDoc?.title || draftDoc?.title || documentData?.doc_metadata?.title || documentData?.file_name || "Document";
|
|
2789
2789
|
const pageNav = totalPages > 0 && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2790
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2790
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk72O4YH5M_cjs.ViewerZoomControl, { zoom, onCycle: () => setZoom(viewers.cycleZoom(zoom)) }),
|
|
2791
2791
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2792
|
-
|
|
2792
|
+
chunk72O4YH5M_cjs.PdfPageNav,
|
|
2793
2793
|
{
|
|
2794
2794
|
canPrev: (viewingDocumentPage || 1) > 1,
|
|
2795
2795
|
canNext: (viewingDocumentPage || 1) < totalPages,
|
|
2796
2796
|
onPrev: () => stepPage(-1),
|
|
2797
2797
|
onNext: () => stepPage(1),
|
|
2798
|
-
counter: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2798
|
+
counter: /* @__PURE__ */ jsxRuntime.jsx(chunk72O4YH5M_cjs.ViewerPageCounter, { page: viewingDocumentPage || 1, total: totalPages, onGoTo: goToPage })
|
|
2799
2799
|
}
|
|
2800
2800
|
)
|
|
2801
2801
|
] });
|
|
@@ -2819,7 +2819,7 @@ function DocumentViewerContent({
|
|
|
2819
2819
|
);
|
|
2820
2820
|
const titleBlock = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2821
2821
|
isDraft ? /* @__PURE__ */ jsxRuntime.jsx(ViewerDraftTitle, { documentId }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
2822
|
-
|
|
2822
|
+
chunk72O4YH5M_cjs.ViewerTitle,
|
|
2823
2823
|
{
|
|
2824
2824
|
title: documentTitle,
|
|
2825
2825
|
versionLabel: currentVersionLabel,
|
|
@@ -2846,7 +2846,7 @@ function DocumentViewerContent({
|
|
|
2846
2846
|
/* @__PURE__ */ jsxRuntime.jsx(ViewerDraftKind, { documentId })
|
|
2847
2847
|
) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2848
2848
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2849
|
-
|
|
2849
|
+
chunk72O4YH5M_cjs.ViewerTabBar,
|
|
2850
2850
|
{
|
|
2851
2851
|
tabs: viewerTabs.filter((tab) => tab.id !== "versions"),
|
|
2852
2852
|
activeId: activeTab,
|
|
@@ -2969,7 +2969,7 @@ function DocumentViewerContent({
|
|
|
2969
2969
|
}
|
|
2970
2970
|
),
|
|
2971
2971
|
activeTab === "pdf" && isImage && pdfBlob && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2972
|
-
|
|
2972
|
+
chunk72O4YH5M_cjs.ViewerImageActions,
|
|
2973
2973
|
{
|
|
2974
2974
|
compact: isCompact,
|
|
2975
2975
|
onUseAsReference: support.useImageAsReference ? () => support.useImageAsReference(documentId) : void 0,
|
|
@@ -3026,7 +3026,7 @@ function DocumentViewerContent({
|
|
|
3026
3026
|
state: documentData?.shared ? "shared" : "private",
|
|
3027
3027
|
onShare: () => void share(),
|
|
3028
3028
|
onShared: shareWithPeople,
|
|
3029
|
-
disabled: !
|
|
3029
|
+
disabled: !chunk72O4YH5M_cjs.canChangeVisibility(documentData, currentUserId),
|
|
3030
3030
|
disabledTooltip: "Only the owner can change visibility",
|
|
3031
3031
|
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",
|
|
3032
3032
|
variant: "outline",
|
|
@@ -3171,7 +3171,7 @@ function DocumentViewerContent({
|
|
|
3171
3171
|
onZoomChange: setZoom
|
|
3172
3172
|
};
|
|
3173
3173
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3174
|
-
|
|
3174
|
+
chunk72O4YH5M_cjs.ViewerFrame,
|
|
3175
3175
|
{
|
|
3176
3176
|
frameRef: containerRef,
|
|
3177
3177
|
contentId: documentId,
|
|
@@ -3204,7 +3204,7 @@ function DocumentViewerContent({
|
|
|
3204
3204
|
...clean.frame,
|
|
3205
3205
|
footer: /* @__PURE__ */ jsxRuntime.jsx(ViewerCropModal, { crop }),
|
|
3206
3206
|
children: [
|
|
3207
|
-
isComparing && /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3207
|
+
isComparing && /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunk72O4YH5M_cjs.ViewerMessage, { children: "Loading comparison\u2026" }), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3208
3208
|
NativeDocxComparison,
|
|
3209
3209
|
{
|
|
3210
3210
|
baseId: compareDocumentId,
|
|
@@ -3214,9 +3214,9 @@ function DocumentViewerContent({
|
|
|
3214
3214
|
) }),
|
|
3215
3215
|
isCaptureDraft && /* @__PURE__ */ jsxRuntime.jsx(ViewerCaptureDraft, { documentId }),
|
|
3216
3216
|
!isCaptureDraft && (activeTab === "pdf" || isMedia && activeTab === "html") && (!isArtifact || isDocx && !isDraft && !isStreaming && !liveKind) && !isComparing && /* @__PURE__ */ jsxRuntime.jsxs(chunkDTMBAFIL_cjs.ViewerPane, { hidden: activeTab !== "pdf", children: [
|
|
3217
|
-
!clean.on && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3217
|
+
!clean.on && /* @__PURE__ */ jsxRuntime.jsx(chunk72O4YH5M_cjs.DocumentLabelBar, { summaries: labelSummaries }),
|
|
3218
3218
|
!clean.on && !isMedia && !isImage && signatureBanner,
|
|
3219
|
-
!clean.on && activeTab === "pdf" && pdfBlob && !pdfVerified && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3219
|
+
!clean.on && activeTab === "pdf" && pdfBlob && !pdfVerified && /* @__PURE__ */ jsxRuntime.jsxs(chunk72O4YH5M_cjs.ViewerMessage, { children: [
|
|
3220
3220
|
"Offline copy: its version cannot be verified. Reconnect before signing.",
|
|
3221
3221
|
" ",
|
|
3222
3222
|
/* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick: () => void blobs.retryPdf(), className: "underline", children: "Retry loading the current PDF" })
|
|
@@ -3229,7 +3229,7 @@ function DocumentViewerContent({
|
|
|
3229
3229
|
onOpenVersion: (n) => setSnapshotDocumentId(`${documentId}@v${n}`)
|
|
3230
3230
|
}
|
|
3231
3231
|
),
|
|
3232
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3232
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk72O4YH5M_cjs.ViewerControlBar, { controls: !clean.on && activeTab === "pdf" && pageNav, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3233
3233
|
ViewerPdfPane,
|
|
3234
3234
|
{
|
|
3235
3235
|
documentId,
|
|
@@ -3269,7 +3269,7 @@ function DocumentViewerContent({
|
|
|
3269
3269
|
}
|
|
3270
3270
|
),
|
|
3271
3271
|
activeTab === "edit" && isArtifact && liveKind && /* @__PURE__ */ jsxRuntime.jsx(chunkMHIG6GGS_cjs.ArtifactCodeView, { source: liveSource, fileName: documentData?.file_name ?? void 0 }),
|
|
3272
|
-
activeTab === "edit" && isArtifact && !liveKind && !isStreaming && !isComparing && /* @__PURE__ */ jsxRuntime.jsxs(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3272
|
+
activeTab === "edit" && isArtifact && !liveKind && !isStreaming && !isComparing && /* @__PURE__ */ jsxRuntime.jsxs(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunk72O4YH5M_cjs.ViewerMessage, { children: "Loading editor\u2026" }), children: [
|
|
3273
3273
|
isSigned && !snapshotDocumentId && /* @__PURE__ */ jsxRuntime.jsx(chunk3RAW2ZH5_cjs.SignedEditNote, {}),
|
|
3274
3274
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3275
3275
|
chunk4TCOUQMC_cjs.ConnectedNativeDocxEditor,
|
|
@@ -3316,8 +3316,8 @@ function DocumentViewerContent({
|
|
|
3316
3316
|
onOpenTranslation: (id) => setViewingDocumentId(id)
|
|
3317
3317
|
}
|
|
3318
3318
|
),
|
|
3319
|
-
activeTab === "xlsx" && isXlsx && (xlsxBlob ? /* @__PURE__ */ jsxRuntime.jsx(viewers.XlsxViewer, { blob: xlsxBlob }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
3320
|
-
activeTab === "slides" && !snapshotDocumentId && isPresentation && /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3319
|
+
activeTab === "xlsx" && isXlsx && (xlsxBlob ? /* @__PURE__ */ jsxRuntime.jsx(viewers.XlsxViewer, { blob: xlsxBlob }) : /* @__PURE__ */ jsxRuntime.jsx(chunk72O4YH5M_cjs.ViewerMessage, { children: xlsxError ? "Failed to load spreadsheet" : "Loading spreadsheet..." })),
|
|
3320
|
+
activeTab === "slides" && !snapshotDocumentId && isPresentation && /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunk72O4YH5M_cjs.ViewerMessage, { children: "Loading slides\u2026" }), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3321
3321
|
SlidesTab,
|
|
3322
3322
|
{
|
|
3323
3323
|
documentId,
|
|
@@ -3326,7 +3326,7 @@ function DocumentViewerContent({
|
|
|
3326
3326
|
draftTitle: isDraft ? draftDoc?.title ?? "" : void 0
|
|
3327
3327
|
}
|
|
3328
3328
|
) }),
|
|
3329
|
-
activeTab === "docx" && isDocx && !isComparing && /* @__PURE__ */ jsxRuntime.jsxs(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3329
|
+
activeTab === "docx" && isDocx && !isComparing && /* @__PURE__ */ jsxRuntime.jsxs(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunk72O4YH5M_cjs.ViewerMessage, { children: "Loading editor\u2026" }), children: [
|
|
3330
3330
|
signatureBanner,
|
|
3331
3331
|
isSigned && !snapshotDocumentId && /* @__PURE__ */ jsxRuntime.jsx(chunk3RAW2ZH5_cjs.SignedEditNote, {}),
|
|
3332
3332
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3341,7 +3341,7 @@ function DocumentViewerContent({
|
|
|
3341
3341
|
`${snapshotDocumentId || documentId}-${snapshotDocumentId ? "snapshot" : "live"}`
|
|
3342
3342
|
)
|
|
3343
3343
|
] }),
|
|
3344
|
-
streamingDoc && isStreaming && isArtifact && !liveKind && !isComparing && (activeTab === "html" || activeTab === "edit") && /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3344
|
+
streamingDoc && isStreaming && isArtifact && !liveKind && !isComparing && (activeTab === "html" || activeTab === "edit") && /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunk72O4YH5M_cjs.ViewerMessage, { children: "Opening draft\u2026" }), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3345
3345
|
StreamedWordArtifact,
|
|
3346
3346
|
{
|
|
3347
3347
|
documentId: documentId.startsWith("doc-") ? documentId : void 0,
|
|
@@ -3351,7 +3351,7 @@ function DocumentViewerContent({
|
|
|
3351
3351
|
},
|
|
3352
3352
|
documentId
|
|
3353
3353
|
) }),
|
|
3354
|
-
!isCaptureDraft && !isComparing && activeTab === "html" && !(isStreaming && isArtifact && !liveKind) && /* @__PURE__ */ jsxRuntime.jsx(chunkDTMBAFIL_cjs.ViewerPane, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3354
|
+
!isCaptureDraft && !isComparing && activeTab === "html" && !(isStreaming && isArtifact && !liveKind) && /* @__PURE__ */ jsxRuntime.jsx(chunkDTMBAFIL_cjs.ViewerPane, { children: /* @__PURE__ */ jsxRuntime.jsx(chunk72O4YH5M_cjs.ViewerControlBar, { controls: pageNav, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3355
3355
|
ParsedTextView,
|
|
3356
3356
|
{
|
|
3357
3357
|
documentId: pdfSnapshotId || documentId,
|
|
@@ -3367,5 +3367,5 @@ function DocumentViewerContent({
|
|
|
3367
3367
|
}
|
|
3368
3368
|
|
|
3369
3369
|
exports.ConnectedDocumentViewer = ConnectedDocumentViewer;
|
|
3370
|
-
//# sourceMappingURL=chunk-
|
|
3371
|
-
//# sourceMappingURL=chunk-
|
|
3370
|
+
//# sourceMappingURL=chunk-SFKBQLFV.cjs.map
|
|
3371
|
+
//# sourceMappingURL=chunk-SFKBQLFV.cjs.map
|