@arbidocs/blocks 0.5.27 → 0.5.29
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-5DFRWT2D.js → ConnectedCallDock-FDGMFTS5.js} +11 -11
- package/dist/{ConnectedCallDock-5DFRWT2D.js.map → ConnectedCallDock-FDGMFTS5.js.map} +1 -1
- package/dist/{ConnectedCallDock-UZ447IPL.cjs → ConnectedCallDock-ZIX2ZJCD.cjs} +12 -12
- package/dist/{ConnectedCallDock-UZ447IPL.cjs.map → ConnectedCallDock-ZIX2ZJCD.cjs.map} +1 -1
- package/dist/{ConnectedCallRoom-MRC375AN.js → ConnectedCallRoom-VJIHEJ4X.js} +11 -11
- package/dist/{ConnectedCallRoom-MRC375AN.js.map → ConnectedCallRoom-VJIHEJ4X.js.map} +1 -1
- package/dist/{ConnectedCallRoom-SECNWUNO.cjs → ConnectedCallRoom-WZQVXDDW.cjs} +12 -12
- package/dist/{ConnectedCallRoom-SECNWUNO.cjs.map → ConnectedCallRoom-WZQVXDDW.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-5VOMPGV5.js → ConnectedNativeDocxComparison-7ZC7BRY4.js} +14 -14
- package/dist/{ConnectedNativeDocxComparison-5VOMPGV5.js.map → ConnectedNativeDocxComparison-7ZC7BRY4.js.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-ZJ44DWVV.cjs → ConnectedNativeDocxComparison-KSLSDAAP.cjs} +15 -15
- package/dist/{ConnectedNativeDocxComparison-ZJ44DWVV.cjs.map → ConnectedNativeDocxComparison-KSLSDAAP.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxEditor-KQEYRN4T.cjs → ConnectedNativeDocxEditor-5E64Q7FX.cjs} +15 -15
- package/dist/{ConnectedNativeDocxEditor-KQEYRN4T.cjs.map → ConnectedNativeDocxEditor-5E64Q7FX.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxEditor-CSD3YIPD.js → ConnectedNativeDocxEditor-B5KDDPRY.js} +13 -13
- package/dist/{ConnectedNativeDocxEditor-CSD3YIPD.js.map → ConnectedNativeDocxEditor-B5KDDPRY.js.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-OTC4CAYP.cjs → ConnectedStreamedWordArtifact-RLU5VYGO.cjs} +15 -15
- package/dist/ConnectedStreamedWordArtifact-RLU5VYGO.cjs.map +1 -0
- package/dist/{ConnectedStreamedWordArtifact-ZPI76QX2.js → ConnectedStreamedWordArtifact-YCQSIGXL.js} +14 -14
- package/dist/ConnectedStreamedWordArtifact-YCQSIGXL.js.map +1 -0
- package/dist/{WorkspaceTableView-LS6LFKBE.js → WorkspaceTableView-62PJLX7V.js} +8 -8
- package/dist/{WorkspaceTableView-LS6LFKBE.js.map → WorkspaceTableView-62PJLX7V.js.map} +1 -1
- package/dist/{WorkspaceTableView-5I3KWZ5I.cjs → WorkspaceTableView-BUWRSR42.cjs} +10 -10
- package/dist/{WorkspaceTableView-5I3KWZ5I.cjs.map → WorkspaceTableView-BUWRSR42.cjs.map} +1 -1
- package/dist/agents/index.cjs +371 -371
- package/dist/agents/index.js +9 -9
- package/dist/calls/index.cjs +2 -2
- package/dist/calls/index.js +2 -2
- package/dist/chat/index.cjs +166 -166
- package/dist/chat/index.js +8 -8
- package/dist/{chunk-ORVJFY72.cjs → chunk-3IRIITUW.cjs} +7 -7
- package/dist/{chunk-ORVJFY72.cjs.map → chunk-3IRIITUW.cjs.map} +1 -1
- package/dist/{chunk-5DA4LSMC.js → chunk-3OKBEVP3.js} +3 -3
- package/dist/{chunk-5DA4LSMC.js.map → chunk-3OKBEVP3.js.map} +1 -1
- package/dist/{chunk-SQQULKT4.cjs → chunk-3PQPA5K6.cjs} +12 -12
- package/dist/{chunk-SQQULKT4.cjs.map → chunk-3PQPA5K6.cjs.map} +1 -1
- package/dist/{chunk-EZLZ3MDU.cjs → chunk-4RMI6D64.cjs} +3 -3
- package/dist/{chunk-EZLZ3MDU.cjs.map → chunk-4RMI6D64.cjs.map} +1 -1
- package/dist/{chunk-LMT6VLBN.js → chunk-4UREQY5X.js} +3 -3
- package/dist/{chunk-LMT6VLBN.js.map → chunk-4UREQY5X.js.map} +1 -1
- package/dist/{chunk-TL5VXRNT.cjs → chunk-52GITM4V.cjs} +91 -91
- package/dist/{chunk-TL5VXRNT.cjs.map → chunk-52GITM4V.cjs.map} +1 -1
- package/dist/{chunk-T5DBNUVF.cjs → chunk-CJWZYK5K.cjs} +5 -5
- package/dist/{chunk-T5DBNUVF.cjs.map → chunk-CJWZYK5K.cjs.map} +1 -1
- package/dist/{chunk-2CO5PMOE.cjs → chunk-CPJ2B3QQ.cjs} +4 -4
- package/dist/{chunk-2CO5PMOE.cjs.map → chunk-CPJ2B3QQ.cjs.map} +1 -1
- package/dist/{chunk-RP3IOGFT.cjs → chunk-CRUCMRFC.cjs} +9 -9
- package/dist/{chunk-RP3IOGFT.cjs.map → chunk-CRUCMRFC.cjs.map} +1 -1
- package/dist/{chunk-L2C7WV6D.js → chunk-DF2GSH4D.js} +3 -3
- package/dist/{chunk-L2C7WV6D.js.map → chunk-DF2GSH4D.js.map} +1 -1
- package/dist/{chunk-C4GMH6TZ.js → chunk-DNGA25ZA.js} +3 -3
- package/dist/{chunk-C4GMH6TZ.js.map → chunk-DNGA25ZA.js.map} +1 -1
- package/dist/{chunk-THNTNAYI.js → chunk-DV25UPJ7.js} +3 -3
- package/dist/{chunk-THNTNAYI.js.map → chunk-DV25UPJ7.js.map} +1 -1
- package/dist/{chunk-R4K5L6QY.js → chunk-EJSVRT3G.js} +6 -6
- package/dist/{chunk-R4K5L6QY.js.map → chunk-EJSVRT3G.js.map} +1 -1
- package/dist/{chunk-I45LDMQU.cjs → chunk-EVYUYVH2.cjs} +5 -5
- package/dist/{chunk-I45LDMQU.cjs.map → chunk-EVYUYVH2.cjs.map} +1 -1
- package/dist/{chunk-YD3RN2FY.cjs → chunk-F72ZD5Q2.cjs} +3 -3
- package/dist/{chunk-YD3RN2FY.cjs.map → chunk-F72ZD5Q2.cjs.map} +1 -1
- package/dist/{chunk-WP4IDJBA.js → chunk-G3MZ5S2Q.js} +3 -3
- package/dist/{chunk-WP4IDJBA.js.map → chunk-G3MZ5S2Q.js.map} +1 -1
- package/dist/{chunk-OJBOHLAH.js → chunk-GJI5PEGR.js} +3 -3
- package/dist/{chunk-OJBOHLAH.js.map → chunk-GJI5PEGR.js.map} +1 -1
- package/dist/{chunk-G6O77PJD.js → chunk-H72SWOUS.js} +3 -3
- package/dist/{chunk-G6O77PJD.js.map → chunk-H72SWOUS.js.map} +1 -1
- package/dist/{chunk-75Z5AUMM.js → chunk-JS7KJRKG.js} +3 -3
- package/dist/{chunk-75Z5AUMM.js.map → chunk-JS7KJRKG.js.map} +1 -1
- package/dist/{chunk-XMUYSOYU.js → chunk-KKBYWVEL.js} +5 -5
- package/dist/{chunk-XMUYSOYU.js.map → chunk-KKBYWVEL.js.map} +1 -1
- package/dist/{chunk-WL57N2KJ.cjs → chunk-LXB756TN.cjs} +3 -3
- package/dist/{chunk-WL57N2KJ.cjs.map → chunk-LXB756TN.cjs.map} +1 -1
- package/dist/{chunk-LDAV4UDA.js → chunk-OGADWN5L.js} +3 -3
- package/dist/{chunk-LDAV4UDA.js.map → chunk-OGADWN5L.js.map} +1 -1
- package/dist/{chunk-LX3JJYVP.cjs → chunk-OQCUIN6Z.cjs} +5 -5
- package/dist/{chunk-LX3JJYVP.cjs.map → chunk-OQCUIN6Z.cjs.map} +1 -1
- package/dist/{chunk-6EEVMPOH.js → chunk-OZRGYS3J.js} +3 -3
- package/dist/{chunk-6EEVMPOH.js.map → chunk-OZRGYS3J.js.map} +1 -1
- package/dist/{chunk-A3WHSTRX.js → chunk-OZSAQJO4.js} +3 -3
- package/dist/{chunk-A3WHSTRX.js.map → chunk-OZSAQJO4.js.map} +1 -1
- package/dist/{chunk-5OEDXFPX.cjs → chunk-QHWDV2VB.cjs} +3 -3
- package/dist/{chunk-5OEDXFPX.cjs.map → chunk-QHWDV2VB.cjs.map} +1 -1
- package/dist/{chunk-Z2BAYT2U.cjs → chunk-R3HZBTE3.cjs} +4 -4
- package/dist/{chunk-Z2BAYT2U.cjs.map → chunk-R3HZBTE3.cjs.map} +1 -1
- package/dist/{chunk-ADH5KQZW.cjs → chunk-SN7X7C7H.cjs} +3 -3
- package/dist/{chunk-ADH5KQZW.cjs.map → chunk-SN7X7C7H.cjs.map} +1 -1
- package/dist/{chunk-WBBUUEER.cjs → chunk-SQAVWMGV.cjs} +55 -55
- package/dist/{chunk-WBBUUEER.cjs.map → chunk-SQAVWMGV.cjs.map} +1 -1
- package/dist/{chunk-P57ASK2E.cjs → chunk-T3JW5BYG.cjs} +4 -4
- package/dist/{chunk-P57ASK2E.cjs.map → chunk-T3JW5BYG.cjs.map} +1 -1
- package/dist/{chunk-ZWL7GPQX.js → chunk-TKOP6WMD.js} +3 -3
- package/dist/{chunk-ZWL7GPQX.js.map → chunk-TKOP6WMD.js.map} +1 -1
- package/dist/{chunk-LOFESOAW.js → chunk-TY76UEFK.js} +5 -5
- package/dist/{chunk-LOFESOAW.js.map → chunk-TY76UEFK.js.map} +1 -1
- package/dist/{chunk-DEB2YRCN.js → chunk-UXIMEFEF.js} +7 -7
- package/dist/{chunk-DEB2YRCN.js.map → chunk-UXIMEFEF.js.map} +1 -1
- package/dist/{chunk-ROV3FG3J.js → chunk-W43S7COD.js} +3 -3
- package/dist/{chunk-ROV3FG3J.js.map → chunk-W43S7COD.js.map} +1 -1
- package/dist/{chunk-4Y4724GI.cjs → chunk-W5PKYJX5.cjs} +3 -3
- package/dist/{chunk-4Y4724GI.cjs.map → chunk-W5PKYJX5.cjs.map} +1 -1
- package/dist/{chunk-F5T4R7CN.cjs → chunk-WY626DNG.cjs} +10 -10
- package/dist/{chunk-F5T4R7CN.cjs.map → chunk-WY626DNG.cjs.map} +1 -1
- package/dist/{chunk-6PFVCAWJ.cjs → chunk-XDFH6ONO.cjs} +13 -13
- package/dist/{chunk-6PFVCAWJ.cjs.map → chunk-XDFH6ONO.cjs.map} +1 -1
- package/dist/{chunk-OUCSQ3IE.js → chunk-XGUN44A4.js} +7 -7
- package/dist/{chunk-OUCSQ3IE.js.map → chunk-XGUN44A4.js.map} +1 -1
- package/dist/collaboration/index.cjs +9 -9
- package/dist/collaboration/index.js +1 -1
- package/dist/connect/docx.cjs +17 -17
- package/dist/connect/docx.js +13 -13
- package/dist/connect/index.cjs +3006 -2274
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.ts +2 -0
- package/dist/connect/index.js +784 -57
- package/dist/connect/index.js.map +1 -1
- package/dist/connect/viewer.cjs +24 -24
- package/dist/connect/viewer.js +14 -14
- package/dist/connection/projects/ConnectedProjectPage.d.ts +1 -0
- package/dist/connection/projects/ProjectDetailsForm.d.ts +1 -0
- package/dist/connection/report-problem/CaptureBar.d.ts +11 -0
- package/dist/connection/report-problem/ConnectedReportProblem.d.ts +9 -0
- package/dist/connection/report-problem/ReportProblemDialog.d.ts +25 -0
- package/dist/connection/report-problem/index.d.ts +4 -0
- package/dist/connection/report-problem/screen-capture.d.ts +14 -0
- package/dist/connection/report-problem/screenshot-annotations.d.ts +53 -0
- package/dist/connection/report-problem/useReportProblem.d.ts +12 -0
- package/dist/connection/runtime/ConnectedAppRuntime.d.ts +6 -0
- package/dist/connection/runtime/index.d.ts +1 -0
- package/dist/connection/runtime/usePausedMutationNotice.d.ts +10 -0
- package/dist/connection/runtime/usePaymentReturn.d.ts +1 -0
- package/dist/connection/runtime/useReleaseStaleModalState.d.ts +1 -0
- package/dist/connection/runtime/useRetiredModelNotice.d.ts +1 -0
- package/dist/facts/index.cjs +57 -57
- package/dist/facts/index.js +5 -5
- package/dist/files/index.cjs +2 -2
- package/dist/files/index.js +2 -2
- package/dist/home/index.cjs +29 -29
- package/dist/home/index.js +4 -4
- package/dist/index.cjs +763 -702
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +78 -20
- package/dist/index.js.map +1 -1
- package/dist/settings/TipsEditorDialog.d.ts +3 -3
- package/dist/settings/index.cjs +156 -156
- package/dist/settings/index.js +3 -3
- package/dist/shell/index.cjs +1 -1
- package/dist/shell/index.js +1 -1
- package/dist/studio/index.cjs +8 -8
- package/dist/studio/index.js +7 -7
- package/dist/tips/index.d.ts +1 -0
- package/dist/tips/registry.d.ts +98 -0
- package/dist/workflow-canvas/index.cjs +62 -62
- package/dist/workflow-canvas/index.js +12 -12
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/src/blocks.css +13 -2
- package/dist/ConnectedStreamedWordArtifact-OTC4CAYP.cjs.map +0 -1
- package/dist/ConnectedStreamedWordArtifact-ZPI76QX2.js.map +0 -1
package/dist/connect/viewer.cjs
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkW5PKYJX5_cjs = require('../chunk-W5PKYJX5.cjs');
|
|
5
5
|
var chunkHT62K3UO_cjs = require('../chunk-HT62K3UO.cjs');
|
|
6
6
|
require('../chunk-2WLXQGWC.cjs');
|
|
7
7
|
require('../chunk-223D4727.cjs');
|
|
8
|
+
var chunkEVV32AXB_cjs = require('../chunk-EVV32AXB.cjs');
|
|
9
|
+
var chunkNZCAWWV4_cjs = require('../chunk-NZCAWWV4.cjs');
|
|
8
10
|
var chunkFV32BTXV_cjs = require('../chunk-FV32BTXV.cjs');
|
|
9
11
|
var chunk2XLVE2XD_cjs = require('../chunk-2XLVE2XD.cjs');
|
|
10
12
|
var chunkUWIILWDI_cjs = require('../chunk-UWIILWDI.cjs');
|
|
@@ -14,32 +16,30 @@ require('../chunk-ZXXXLYZY.cjs');
|
|
|
14
16
|
var chunkTM2D4XT4_cjs = require('../chunk-TM2D4XT4.cjs');
|
|
15
17
|
require('../chunk-5Y6V7F6W.cjs');
|
|
16
18
|
require('../chunk-QWKT4DO6.cjs');
|
|
17
|
-
var chunkBBTHGWZO_cjs = require('../chunk-BBTHGWZO.cjs');
|
|
18
19
|
var chunkVLCY46K6_cjs = require('../chunk-VLCY46K6.cjs');
|
|
20
|
+
require('../chunk-MB3S2ETI.cjs');
|
|
19
21
|
require('../chunk-SIB6C7P7.cjs');
|
|
20
22
|
require('../chunk-DVUZTGVL.cjs');
|
|
21
23
|
require('../chunk-V4ISCZJ7.cjs');
|
|
22
24
|
require('../chunk-AHDJXIUB.cjs');
|
|
23
25
|
require('../chunk-2EI7NCUA.cjs');
|
|
24
26
|
require('../chunk-NIS5TLOM.cjs');
|
|
27
|
+
var chunkMEMWZ72Y_cjs = require('../chunk-MEMWZ72Y.cjs');
|
|
28
|
+
require('../chunk-ZW6FPIFC.cjs');
|
|
25
29
|
require('../chunk-LKK52DEY.cjs');
|
|
26
30
|
var chunk2YV7FBLO_cjs = require('../chunk-2YV7FBLO.cjs');
|
|
27
31
|
require('../chunk-VG24E4JJ.cjs');
|
|
28
32
|
require('../chunk-QVBZESYQ.cjs');
|
|
29
|
-
var chunkEVV32AXB_cjs = require('../chunk-EVV32AXB.cjs');
|
|
30
|
-
var chunkNZCAWWV4_cjs = require('../chunk-NZCAWWV4.cjs');
|
|
31
|
-
require('../chunk-MB3S2ETI.cjs');
|
|
32
|
-
var chunkMEMWZ72Y_cjs = require('../chunk-MEMWZ72Y.cjs');
|
|
33
|
-
require('../chunk-ZW6FPIFC.cjs');
|
|
34
33
|
require('../chunk-5UHAWSEX.cjs');
|
|
35
34
|
require('../chunk-Z2XZ2D4N.cjs');
|
|
36
35
|
require('../chunk-B6MVQCXW.cjs');
|
|
36
|
+
var chunk725OETK3_cjs = require('../chunk-725OETK3.cjs');
|
|
37
37
|
require('../chunk-32HW2Q33.cjs');
|
|
38
|
-
|
|
38
|
+
require('../chunk-PPCATBOY.cjs');
|
|
39
39
|
var chunkFX3K6LNZ_cjs = require('../chunk-FX3K6LNZ.cjs');
|
|
40
40
|
require('../chunk-CQ2YSHIF.cjs');
|
|
41
|
-
var
|
|
42
|
-
require('../chunk-
|
|
41
|
+
var chunkBBTHGWZO_cjs = require('../chunk-BBTHGWZO.cjs');
|
|
42
|
+
var chunkUFEXJIEY_cjs = require('../chunk-UFEXJIEY.cjs');
|
|
43
43
|
var chunkAHYSHKPL_cjs = require('../chunk-AHYSHKPL.cjs');
|
|
44
44
|
require('../chunk-SI222Z3A.cjs');
|
|
45
45
|
require('../chunk-ULWRNGGE.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 = chunkW5PKYJX5_cjs.useViewerStreamingDocument(documentId);
|
|
154
154
|
const isStreaming = !!streamingDoc && !streamingDoc.isComplete;
|
|
155
|
-
const draftDoc =
|
|
155
|
+
const draftDoc = chunkW5PKYJX5_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";
|
|
@@ -233,7 +233,7 @@ function useViewerBlobs(documentId, doc) {
|
|
|
233
233
|
const { setWebmHasVideoTrack } = doc;
|
|
234
234
|
const { client, saveFile } = documentTools.useDocumentTools();
|
|
235
235
|
const { notify } = chunkAHYSHKPL_cjs.useBlocksEnvironment();
|
|
236
|
-
const { loadOfflineCopy } =
|
|
236
|
+
const { loadOfflineCopy } = chunkW5PKYJX5_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 } = chunkW5PKYJX5_cjs.useDocumentViewerSupport();
|
|
597
597
|
const [editingNoteTagId, setEditingNoteTagId] = React.useState(null);
|
|
598
598
|
const [noteValue, setNoteValue] = React.useState("");
|
|
599
599
|
const { data: allTags } = chunkEVV32AXB_cjs.useConnectedTags();
|
|
@@ -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(chunkW5PKYJX5_cjs.ConnectedMarkdown, { children: chunk.content })
|
|
841
841
|
}
|
|
842
842
|
);
|
|
843
843
|
});
|
|
@@ -1065,7 +1065,7 @@ function useCitationSelection({
|
|
|
1065
1065
|
orderedChunkIds,
|
|
1066
1066
|
pageOf
|
|
1067
1067
|
}) {
|
|
1068
|
-
const passageCitation =
|
|
1068
|
+
const passageCitation = chunkW5PKYJX5_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 } = chunkNZCAWWV4_cjs.useConnectedWorkspace();
|
|
1425
|
-
const { openInNavigator } =
|
|
1425
|
+
const { openInNavigator } = chunkW5PKYJX5_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
|
|
@@ -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 = chunkW5PKYJX5_cjs.useViewerIsDetached();
|
|
1589
1589
|
const onPageChange = React.useCallback(
|
|
1590
1590
|
(page) => {
|
|
1591
1591
|
if (viewingId) session.setViewingDocument({ id: viewingId, page });
|
|
@@ -1719,17 +1719,17 @@ function ViewerPdfPane({
|
|
|
1719
1719
|
return /* @__PURE__ */ jsxRuntime.jsx(SessionPdfViewer, { ...viewerProps, file: pdfBlob });
|
|
1720
1720
|
}
|
|
1721
1721
|
var NativeDocxEditor = React.lazy(
|
|
1722
|
-
() => import('../ConnectedNativeDocxEditor-
|
|
1722
|
+
() => import('../ConnectedNativeDocxEditor-5E64Q7FX.cjs').then((m) => ({
|
|
1723
1723
|
default: m.ConnectedNativeDocxEditor
|
|
1724
1724
|
}))
|
|
1725
1725
|
);
|
|
1726
1726
|
var StreamedWordArtifact = React.lazy(
|
|
1727
|
-
() => import('../ConnectedStreamedWordArtifact-
|
|
1727
|
+
() => import('../ConnectedStreamedWordArtifact-RLU5VYGO.cjs').then((m) => ({
|
|
1728
1728
|
default: m.ConnectedStreamedWordArtifact
|
|
1729
1729
|
}))
|
|
1730
1730
|
);
|
|
1731
1731
|
var NativeDocxComparison = React.lazy(
|
|
1732
|
-
() => import('../ConnectedNativeDocxComparison-
|
|
1732
|
+
() => import('../ConnectedNativeDocxComparison-KSLSDAAP.cjs').then((m) => ({
|
|
1733
1733
|
default: m.ConnectedNativeDocxComparison
|
|
1734
1734
|
}))
|
|
1735
1735
|
);
|
|
@@ -1744,7 +1744,7 @@ function ConnectedDocumentViewer(props) {
|
|
|
1744
1744
|
resetKey: openedId,
|
|
1745
1745
|
labels: { title: "This document couldn't be displayed" },
|
|
1746
1746
|
testId: "document-viewer-error",
|
|
1747
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1747
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkW5PKYJX5_cjs.ConnectedDocumentToolsProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(DocumentViewerContent, { ...props, openedId }) })
|
|
1748
1748
|
}
|
|
1749
1749
|
);
|
|
1750
1750
|
}
|
|
@@ -1755,7 +1755,7 @@ function DocumentViewerContent({
|
|
|
1755
1755
|
}) {
|
|
1756
1756
|
const arbi = react.useArbi();
|
|
1757
1757
|
const session = react.useArbiSessionStore();
|
|
1758
|
-
const support =
|
|
1758
|
+
const support = chunkW5PKYJX5_cjs.useDocumentViewerSupport();
|
|
1759
1759
|
const formatDate = support.formatDate ?? chunkUFEXJIEY_cjs.fmtDate;
|
|
1760
1760
|
const tools = documentTools.useDocumentTools();
|
|
1761
1761
|
const { openConversation, openNewConversation, notify } = chunkAHYSHKPL_cjs.useBlocksEnvironment();
|
|
@@ -2411,7 +2411,7 @@ function DocumentViewerContent({
|
|
|
2411
2411
|
|
|
2412
2412
|
Object.defineProperty(exports, "ConnectedDocumentToolsProvider", {
|
|
2413
2413
|
enumerable: true,
|
|
2414
|
-
get: function () { return
|
|
2414
|
+
get: function () { return chunkW5PKYJX5_cjs.ConnectedDocumentToolsProvider; }
|
|
2415
2415
|
});
|
|
2416
2416
|
exports.ConnectedDocumentViewer = ConnectedDocumentViewer;
|
|
2417
2417
|
//# sourceMappingURL=viewer.cjs.map
|
package/dist/connect/viewer.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { ConnectedMarkdown, ConnectedDocumentToolsProvider, useDocumentViewerSupport, useViewerStreamingDocument, useViewerDraftDocument, useViewerIsDetached, useViewerPassageCitation } from '../chunk-
|
|
3
|
-
export { ConnectedDocumentToolsProvider } from '../chunk-
|
|
2
|
+
import { ConnectedMarkdown, ConnectedDocumentToolsProvider, useDocumentViewerSupport, useViewerStreamingDocument, useViewerDraftDocument, useViewerIsDetached, useViewerPassageCitation } from '../chunk-DNGA25ZA.js';
|
|
3
|
+
export { ConnectedDocumentToolsProvider } from '../chunk-DNGA25ZA.js';
|
|
4
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-46XON6PW.js';
|
|
5
5
|
import '../chunk-JJA6GQKH.js';
|
|
6
6
|
import '../chunk-RC6VTY2H.js';
|
|
7
|
+
import { useConnectedConversations, useConnectedDocuments, useConnectedTags } from '../chunk-5ETT7ZIO.js';
|
|
8
|
+
import { useConnectedWorkspace } from '../chunk-IZJ3BOJO.js';
|
|
7
9
|
import { MarkupViewNote, AnnotateButton, ShowOriginalButton, DownloadMarkupButton, FileShareDialog, PlaceMySignatureButton, MarkupNotices, SignedEditNote, VersionSnapshotBar, SignatureRequestBanner } from '../chunk-H5XHCIWY.js';
|
|
8
10
|
import { SignatureStatus, SignDocumentDialog } from '../chunk-PQU6LE7U.js';
|
|
9
11
|
import { ViewerStatusNote, ViewerHeaderStart, ViewerHeaderEnd, ViewerPane } from '../chunk-6HKLTYNN.js';
|
|
@@ -13,32 +15,30 @@ import '../chunk-7FKVJUR4.js';
|
|
|
13
15
|
import { ErrorBoundary } from '../chunk-EQ3WRY2N.js';
|
|
14
16
|
import '../chunk-JMQLTMJ7.js';
|
|
15
17
|
import '../chunk-PXYP3DM5.js';
|
|
16
|
-
import { PassageMark, NoteMark, LabelMark, PassagePill } from '../chunk-MTHAQGJB.js';
|
|
17
18
|
import { ShareControl } from '../chunk-K4BGOPGG.js';
|
|
19
|
+
import '../chunk-T4P237N6.js';
|
|
18
20
|
import '../chunk-M4S75AEJ.js';
|
|
19
21
|
import '../chunk-5LXQPP2K.js';
|
|
20
22
|
import '../chunk-NUNKSZKU.js';
|
|
21
23
|
import '../chunk-RLWIUUQ5.js';
|
|
22
24
|
import '../chunk-YU2KUMGE.js';
|
|
23
25
|
import '../chunk-WBCGVEJX.js';
|
|
26
|
+
import { TabHeader } from '../chunk-ABEKUV6L.js';
|
|
27
|
+
import '../chunk-P6GHJSLR.js';
|
|
24
28
|
import '../chunk-7F5Z4K5W.js';
|
|
25
29
|
import { ArtifactCompareBar, ArtifactPreview, ArtifactCodeView, VersionTimeline } from '../chunk-65S53MZK.js';
|
|
26
30
|
import '../chunk-NS4JD2VR.js';
|
|
27
31
|
import '../chunk-LOJVUGBJ.js';
|
|
28
|
-
import { useConnectedConversations, useConnectedDocuments, useConnectedTags } from '../chunk-5ETT7ZIO.js';
|
|
29
|
-
import { useConnectedWorkspace } from '../chunk-IZJ3BOJO.js';
|
|
30
|
-
import '../chunk-T4P237N6.js';
|
|
31
|
-
import { TabHeader } from '../chunk-ABEKUV6L.js';
|
|
32
|
-
import '../chunk-P6GHJSLR.js';
|
|
33
32
|
import '../chunk-OKERRHLH.js';
|
|
34
33
|
import '../chunk-DDCMLHXF.js';
|
|
35
34
|
import '../chunk-7XF5SFJ2.js';
|
|
35
|
+
import { buildDeepLinkUrl } from '../chunk-7Q5INDUS.js';
|
|
36
36
|
import '../chunk-AUS3KBHJ.js';
|
|
37
|
-
import
|
|
37
|
+
import '../chunk-NPLYHR2E.js';
|
|
38
38
|
import { useIsPhone } from '../chunk-SLSBJRWW.js';
|
|
39
39
|
import '../chunk-GAGYAHYO.js';
|
|
40
|
-
import {
|
|
41
|
-
import '../chunk-
|
|
40
|
+
import { PassageMark, NoteMark, LabelMark, PassagePill } from '../chunk-MTHAQGJB.js';
|
|
41
|
+
import { fmtDate } from '../chunk-5VYJP6XD.js';
|
|
42
42
|
import { useBlocksEnvironment } from '../chunk-SSRFSSIT.js';
|
|
43
43
|
import '../chunk-U4HWVCRN.js';
|
|
44
44
|
import '../chunk-TX2ZICS7.js';
|
|
@@ -1714,17 +1714,17 @@ function ViewerPdfPane({
|
|
|
1714
1714
|
return /* @__PURE__ */ jsx(SessionPdfViewer, { ...viewerProps, file: pdfBlob });
|
|
1715
1715
|
}
|
|
1716
1716
|
var NativeDocxEditor = lazy(
|
|
1717
|
-
() => import('../ConnectedNativeDocxEditor-
|
|
1717
|
+
() => import('../ConnectedNativeDocxEditor-B5KDDPRY.js').then((m) => ({
|
|
1718
1718
|
default: m.ConnectedNativeDocxEditor
|
|
1719
1719
|
}))
|
|
1720
1720
|
);
|
|
1721
1721
|
var StreamedWordArtifact = lazy(
|
|
1722
|
-
() => import('../ConnectedStreamedWordArtifact-
|
|
1722
|
+
() => import('../ConnectedStreamedWordArtifact-YCQSIGXL.js').then((m) => ({
|
|
1723
1723
|
default: m.ConnectedStreamedWordArtifact
|
|
1724
1724
|
}))
|
|
1725
1725
|
);
|
|
1726
1726
|
var NativeDocxComparison = lazy(
|
|
1727
|
-
() => import('../ConnectedNativeDocxComparison-
|
|
1727
|
+
() => import('../ConnectedNativeDocxComparison-7ZC7BRY4.js').then((m) => ({
|
|
1728
1728
|
default: m.ConnectedNativeDocxComparison
|
|
1729
1729
|
}))
|
|
1730
1730
|
);
|
|
@@ -86,6 +86,7 @@ export interface ProjectPageLabels {
|
|
|
86
86
|
chronologyEmpty: string;
|
|
87
87
|
activity: string;
|
|
88
88
|
}
|
|
89
|
+
/** Default words; the project noun is the host's vocabulary (`getEntityLabel('PROJECT')`). */
|
|
89
90
|
export declare const DEFAULT_PROJECT_PAGE_LABELS: ProjectPageLabels;
|
|
90
91
|
export interface ConnectedProjectPageProps {
|
|
91
92
|
projectId: string;
|
|
@@ -20,6 +20,7 @@ export interface ProjectDetailsLabels {
|
|
|
20
20
|
saved: string;
|
|
21
21
|
failed: string;
|
|
22
22
|
}
|
|
23
|
+
/** Default words; the project noun is the host's vocabulary. */
|
|
23
24
|
export declare const DEFAULT_PROJECT_DETAILS_LABELS: ProjectDetailsLabels;
|
|
24
25
|
export declare const DEFAULT_PROJECT_DETAIL_FIELDS: readonly ProjectDetailField[];
|
|
25
26
|
export interface ProjectDetailsFormProps {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Retaking a Report a problem screenshot: a small floating bar while the
|
|
3
|
+
* person moves to the problem (scroll, switch pages; the app stays usable), then Capture.
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
export interface CaptureBarProps {
|
|
7
|
+
onCapture: () => void;
|
|
8
|
+
onSkip: () => void;
|
|
9
|
+
onCancel: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function CaptureBar({ onCapture, onSkip, onCancel }: CaptureBarProps): React.ReactElement;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ShellActionLayout } from '../../shell/types';
|
|
2
|
+
import type { ReportProblemOptions } from './ReportProblemDialog';
|
|
3
|
+
export interface ConnectedReportProblemProps extends ReportProblemOptions {
|
|
4
|
+
/** The cluster's placement: an icon button in `bar`, a labelled row elsewhere. */
|
|
5
|
+
layout?: ShellActionLayout;
|
|
6
|
+
/** After the button is pressed (a phone drawer closes). */
|
|
7
|
+
onSelect?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function ConnectedReportProblem({ layout, onSelect, ...options }: ConnectedReportProblemProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Report a problem: the screen is captured when the bug button is pressed; here the person crops
|
|
3
|
+
* it to the part that shows the problem (only the crop is kept), can black out anything
|
|
4
|
+
* confidential, remove or retake it, and says what went wrong. Then they copy or download the
|
|
5
|
+
* annotated image to share it.
|
|
6
|
+
*/
|
|
7
|
+
import React, { type ReactNode } from 'react';
|
|
8
|
+
export interface ReportProblemOptions {
|
|
9
|
+
/** The downloaded image's file name before its timestamp. Default `problem`. */
|
|
10
|
+
fileNamePrefix?: string;
|
|
11
|
+
/** A line beside the actions: where reports go (the site's own words). Default: none. */
|
|
12
|
+
footnote?: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export interface ReportProblemDialogProps extends ReportProblemOptions {
|
|
15
|
+
open: boolean;
|
|
16
|
+
/** The full captured frame, to crop. Dropped once a crop is chosen. */
|
|
17
|
+
frame: Blob | null;
|
|
18
|
+
/** The kept screenshot (the crop, or a picked file). */
|
|
19
|
+
image: Blob | null;
|
|
20
|
+
onCropped: (crop: Blob) => void;
|
|
21
|
+
onImageChange: (image: Blob | null) => void;
|
|
22
|
+
onRetake: () => void;
|
|
23
|
+
onClose: () => void;
|
|
24
|
+
}
|
|
25
|
+
export declare function ReportProblemDialog({ open, frame, image, onCropped, onImageChange, onRetake, onClose, fileNamePrefix, footnote, }: ReportProblemDialogProps): React.ReactElement;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { ConnectedReportProblem, type ConnectedReportProblemProps } from './ConnectedReportProblem';
|
|
2
|
+
export { useReportProblem } from './useReportProblem';
|
|
3
|
+
export { ReportProblemDialog, type ReportProblemDialogProps, type ReportProblemOptions, } from './ReportProblemDialog';
|
|
4
|
+
export { CaptureBar, type CaptureBarProps } from './CaptureBar';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Capture one still frame of the current tab with the browser's screen-capture API. It sees
|
|
3
|
+
* exactly what is on screen, including PDFs, canvases and embedded viewers, at the cost of one
|
|
4
|
+
* browser prompt ("share this tab").
|
|
5
|
+
*/
|
|
6
|
+
export type ScreenCaptureErrorCode = 'unsupported' | 'cancelled' | 'failed';
|
|
7
|
+
export declare class ScreenCaptureError extends Error {
|
|
8
|
+
readonly code: ScreenCaptureErrorCode;
|
|
9
|
+
constructor(code: ScreenCaptureErrorCode, message: string);
|
|
10
|
+
}
|
|
11
|
+
export declare function canCaptureScreen(): boolean;
|
|
12
|
+
/** Capture the current tab as a PNG blob. Throws ScreenCaptureError. */
|
|
13
|
+
export declare function captureCurrentTab(): Promise<Blob>;
|
|
14
|
+
export declare function canvasToBlob(canvas: HTMLCanvasElement): Promise<Blob>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
type MarkKind = 'highlight' | 'redact';
|
|
2
|
+
export interface Rect {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
w: number;
|
|
6
|
+
h: number;
|
|
7
|
+
}
|
|
8
|
+
export interface Mark extends Rect {
|
|
9
|
+
kind: MarkKind;
|
|
10
|
+
}
|
|
11
|
+
export interface ReportText {
|
|
12
|
+
happened: string;
|
|
13
|
+
expected: string;
|
|
14
|
+
}
|
|
15
|
+
/** The rectangle between two drag points, clamped to the image. */
|
|
16
|
+
export declare function rectFromDrag(start: {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
}, end: {
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
}, bounds: {
|
|
23
|
+
width: number;
|
|
24
|
+
height: number;
|
|
25
|
+
}): Rect;
|
|
26
|
+
export declare function isMeaningfulRect(rect: Rect): boolean;
|
|
27
|
+
/** A point on the displayed image (client coordinates) in image pixel coordinates. */
|
|
28
|
+
export declare function toImagePoint(client: {
|
|
29
|
+
x: number;
|
|
30
|
+
y: number;
|
|
31
|
+
}, displayed: {
|
|
32
|
+
left: number;
|
|
33
|
+
top: number;
|
|
34
|
+
width: number;
|
|
35
|
+
height: number;
|
|
36
|
+
}, natural: {
|
|
37
|
+
width: number;
|
|
38
|
+
height: number;
|
|
39
|
+
}): {
|
|
40
|
+
x: number;
|
|
41
|
+
y: number;
|
|
42
|
+
};
|
|
43
|
+
/** Caption lines printed under the screenshot, so the image explains itself when shared. */
|
|
44
|
+
export declare function captionLines(text: ReportText): string[];
|
|
45
|
+
/**
|
|
46
|
+
* The shareable report image: the screenshot with redactions burned in (the hidden pixels are
|
|
47
|
+
* gone, not covered by a removable layer), red boxes on top, and the comment as a caption below.
|
|
48
|
+
*/
|
|
49
|
+
export declare function renderAnnotatedScreenshot(image: CanvasImageSource & {
|
|
50
|
+
width: number;
|
|
51
|
+
height: number;
|
|
52
|
+
}, marks: Mark[], text: ReportText): Promise<Blob>;
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ReportProblemOptions } from './ReportProblemDialog';
|
|
3
|
+
/**
|
|
4
|
+
* Report a problem. The bug button captures the screen straight away and opens the report, where
|
|
5
|
+
* the person crops it (only the crop is kept), or removes it. Retake hides the report behind a
|
|
6
|
+
* small bar so they can scroll or switch pages first, then press Capture.
|
|
7
|
+
* Render `ui` once; call `start()` from the bug button.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useReportProblem(options?: ReportProblemOptions): {
|
|
10
|
+
start: () => void;
|
|
11
|
+
ui: React.ReactNode;
|
|
12
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type AppRuntimeEffect = 'releaseStaleModals' | 'retiredModelNotice' | 'pausedMutationNotice' | 'paymentReturn';
|
|
2
|
+
export interface ConnectedAppRuntimeProps {
|
|
3
|
+
/** Effects to turn off (`{ paymentReturn: false }`). Default: every effect on. */
|
|
4
|
+
effects?: Partial<Record<AppRuntimeEffect, boolean>>;
|
|
5
|
+
}
|
|
6
|
+
export declare function ConnectedAppRuntime({ effects }: ConnectedAppRuntimeProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ConnectedAppRuntime, type AppRuntimeEffect, type ConnectedAppRuntimeProps, } from './ConnectedAppRuntime';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Says why an action is waiting when it's done offline.
|
|
3
|
+
*
|
|
4
|
+
* React Query pauses a mutation that needs the network while offline and runs it as soon as the
|
|
5
|
+
* connection is back. The button that started it keeps showing its busy state meanwhile, which
|
|
6
|
+
* on its own reads as a hang. Offline edits that are persisted and listed in the pending-changes
|
|
7
|
+
* modal (tags, document fields) already explain themselves; for every other action this posts one
|
|
8
|
+
* short notice: it will finish when the connection returns, in this tab.
|
|
9
|
+
*/
|
|
10
|
+
export declare function usePausedMutationNotice(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function usePaymentReturn(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useReleaseStaleModalState(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useRetiredModelNotice(): void;
|