@arbidocs/react 0.5.18 → 0.5.20
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/{ProductionDialog.d-CttHqQAh.d.ts → ProductionDialog.d-BDJwBSzj.d.ts} +1 -1
- package/dist/{ProductionDialog.d-BD1osHeq.d.cts → ProductionDialog.d-DjRQFmQw.d.cts} +1 -1
- package/dist/annotations/freeze/index.cjs +15 -15
- package/dist/annotations/freeze/index.d.cts +1 -1
- package/dist/annotations/freeze/index.d.ts +1 -1
- package/dist/annotations/freeze/index.js +3 -3
- package/dist/annotations/index.cjs +56 -56
- package/dist/annotations/index.d.cts +5 -5
- package/dist/annotations/index.d.ts +5 -5
- package/dist/annotations/index.js +2 -2
- package/dist/artifacts/index.cjs +10 -10
- package/dist/artifacts/index.js +3 -3
- package/dist/bundle-DCWPYNGD.cjs +14 -0
- package/dist/{bundle-B5AN4B7H.cjs.map → bundle-DCWPYNGD.cjs.map} +1 -1
- package/dist/bundle-JCKKGEJE.js +5 -0
- package/dist/{bundle-4TKU5WEQ.js.map → bundle-JCKKGEJE.js.map} +1 -1
- package/dist/calls/livekit/index.cjs +42 -42
- package/dist/calls/livekit/index.js +3 -3
- package/dist/{chunk-YWYCEEBF.js → chunk-2HVCNYFH.js} +32 -3
- package/dist/chunk-2HVCNYFH.js.map +1 -0
- package/dist/{chunk-NSSGDZSL.cjs → chunk-2IJP73ZG.cjs} +2 -2
- package/dist/{chunk-NSSGDZSL.cjs.map → chunk-2IJP73ZG.cjs.map} +1 -1
- package/dist/{chunk-KFFH2JJM.cjs → chunk-4UDIA47U.cjs} +32 -32
- package/dist/{chunk-KFFH2JJM.cjs.map → chunk-4UDIA47U.cjs.map} +1 -1
- package/dist/{chunk-HUZB36QU.cjs → chunk-5YWIUUUT.cjs} +53 -2
- package/dist/chunk-5YWIUUUT.cjs.map +1 -0
- package/dist/{chunk-D63FAYES.js → chunk-A2XSLTIP.js} +5 -5
- package/dist/chunk-A2XSLTIP.js.map +1 -0
- package/dist/{chunk-EYOXZHXM.cjs → chunk-B6I2HRRF.cjs} +9 -9
- package/dist/chunk-B6I2HRRF.cjs.map +1 -0
- package/dist/{chunk-2M4B4FFA.cjs → chunk-CZP7FF3E.cjs} +31 -2
- package/dist/chunk-CZP7FF3E.cjs.map +1 -0
- package/dist/{chunk-GUCQMP6G.js → chunk-DUU537MW.js} +4 -4
- package/dist/{chunk-GUCQMP6G.js.map → chunk-DUU537MW.js.map} +1 -1
- package/dist/{chunk-4VQ3XHAQ.cjs → chunk-DYCONTUK.cjs} +41 -41
- package/dist/{chunk-4VQ3XHAQ.cjs.map → chunk-DYCONTUK.cjs.map} +1 -1
- package/dist/{chunk-CNRF5SLZ.cjs → chunk-FLAZSNC5.cjs} +33 -33
- package/dist/{chunk-CNRF5SLZ.cjs.map → chunk-FLAZSNC5.cjs.map} +1 -1
- package/dist/{chunk-WE7QWWJ4.js → chunk-KRAUMKBG.js} +4 -37
- package/dist/chunk-KRAUMKBG.js.map +1 -0
- package/dist/{chunk-J2GERLMU.js → chunk-LYGJVSNM.js} +3 -3
- package/dist/{chunk-J2GERLMU.js.map → chunk-LYGJVSNM.js.map} +1 -1
- package/dist/{chunk-GN33GLHR.js → chunk-MQ7LZWGP.js} +3 -3
- package/dist/{chunk-GN33GLHR.js.map → chunk-MQ7LZWGP.js.map} +1 -1
- package/dist/chunk-NA3FJX37.js +89 -0
- package/dist/chunk-NA3FJX37.js.map +1 -0
- package/dist/{chunk-RG2ZE7DF.js → chunk-PBXJFMES.js} +5 -2
- package/dist/chunk-PBXJFMES.js.map +1 -0
- package/dist/{chunk-H4FGDXYB.cjs → chunk-RRWAX52L.cjs} +5 -2
- package/dist/chunk-RRWAX52L.cjs.map +1 -0
- package/dist/{chunk-ALLWAYMB.cjs → chunk-SUZORMAB.cjs} +157 -65
- package/dist/chunk-SUZORMAB.cjs.map +1 -0
- package/dist/{chunk-XTWUMTCQ.js → chunk-T3USOSVN.js} +2 -2
- package/dist/{chunk-XTWUMTCQ.js.map → chunk-T3USOSVN.js.map} +1 -1
- package/dist/{chunk-2XMHFQ7M.js → chunk-T4CLW3DN.js} +141 -49
- package/dist/chunk-T4CLW3DN.js.map +1 -0
- package/dist/{chunk-XTYG5SIL.cjs → chunk-YBIW7T66.cjs} +5 -39
- package/dist/chunk-YBIW7T66.cjs.map +1 -0
- package/dist/document-tools/index.cjs +174 -69
- package/dist/document-tools/index.cjs.map +1 -1
- package/dist/document-tools/index.d.cts +99 -6
- package/dist/document-tools/index.d.ts +99 -6
- package/dist/document-tools/index.js +107 -10
- package/dist/document-tools/index.js.map +1 -1
- package/dist/index.cjs +911 -802
- package/dist/index.cjs.map +1 -1
- package/dist/{index.d-Dx9sGkW2.d.cts → index.d-DscWCwr2.d.cts} +15 -1
- package/dist/{index.d-Dx9sGkW2.d.ts → index.d-DscWCwr2.d.ts} +15 -1
- package/dist/index.d.cts +70 -22
- package/dist/index.d.ts +70 -22
- package/dist/index.js +122 -15
- package/dist/index.js.map +1 -1
- package/dist/{model.d-D63gedpb.d.cts → model.d-CNtRWKVK.d.cts} +1 -1
- package/dist/{model.d-D63gedpb.d.ts → model.d-CNtRWKVK.d.ts} +1 -1
- package/dist/{query-keys.d-ClYiYNBR.d.cts → query-keys.d-DM2N5pzN.d.cts} +3 -0
- package/dist/{query-keys.d-ClYiYNBR.d.ts → query-keys.d-DM2N5pzN.d.ts} +3 -0
- package/dist/shell/index.cjs +34 -34
- package/dist/shell/index.js +3 -3
- package/dist/ui/index.cjs +16 -12
- package/dist/ui/index.d.cts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +2 -2
- package/package.json +3 -3
- package/dist/bundle-4TKU5WEQ.js +0 -5
- package/dist/bundle-B5AN4B7H.cjs +0 -14
- package/dist/chunk-2M4B4FFA.cjs.map +0 -1
- package/dist/chunk-2XMHFQ7M.js.map +0 -1
- package/dist/chunk-ALLWAYMB.cjs.map +0 -1
- package/dist/chunk-D63FAYES.js.map +0 -1
- package/dist/chunk-EYOXZHXM.cjs.map +0 -1
- package/dist/chunk-H4FGDXYB.cjs.map +0 -1
- package/dist/chunk-HUZB36QU.cjs.map +0 -1
- package/dist/chunk-RG2ZE7DF.js.map +0 -1
- package/dist/chunk-W4H6XAIU.js +0 -39
- package/dist/chunk-W4H6XAIU.js.map +0 -1
- package/dist/chunk-WE7QWWJ4.js.map +0 -1
- package/dist/chunk-XTYG5SIL.cjs.map +0 -1
- package/dist/chunk-YWYCEEBF.js.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkB6I2HRRF_cjs = require('../../chunk-B6I2HRRF.cjs');
|
|
4
|
+
var chunk2IJP73ZG_cjs = require('../../chunk-2IJP73ZG.cjs');
|
|
5
5
|
require('../../chunk-IU2CJNTB.cjs');
|
|
6
6
|
var reactPdf = require('react-pdf');
|
|
7
7
|
|
|
8
8
|
async function freezePdfInBrowser(bytes, layer, { assets, password, ...options }) {
|
|
9
|
-
const needsRaster = options.mode === "image" || layer.annotations.some(
|
|
10
|
-
const rasterizer = needsRaster ? await
|
|
9
|
+
const needsRaster = options.mode === "image" || layer.annotations.some(chunk2IJP73ZG_cjs.isEffectiveRedaction);
|
|
10
|
+
const rasterizer = needsRaster ? await chunkB6I2HRRF_cjs.createPdfJsRasterizer(reactPdf.pdfjs, bytes, chunkB6I2HRRF_cjs.browserCanvasFactory(), {
|
|
11
11
|
password,
|
|
12
12
|
documentOptions: {
|
|
13
13
|
cMapUrl: assets?.cMapUrl ?? "/cmaps/",
|
|
@@ -16,48 +16,48 @@ async function freezePdfInBrowser(bytes, layer, { assets, password, ...options }
|
|
|
16
16
|
wasmUrl: assets?.wasmUrl ?? "/wasm/"
|
|
17
17
|
}
|
|
18
18
|
}) : void 0;
|
|
19
|
-
return
|
|
19
|
+
return chunkB6I2HRRF_cjs.freezePdf(bytes, layer, { ...options, rasterizer });
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
Object.defineProperty(exports, "DEFAULT_DPI", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkB6I2HRRF_cjs.DEFAULT_DPI; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "FreezeError", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkB6I2HRRF_cjs.FreezeError; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "MAX_PAGE_PIXELS", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkB6I2HRRF_cjs.MAX_PAGE_PIXELS; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "batesLabel", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkB6I2HRRF_cjs.batesLabel; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "browserCanvasFactory", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkB6I2HRRF_cjs.browserCanvasFactory; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "buildBundle", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkB6I2HRRF_cjs.buildBundle; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "burnMarks", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkB6I2HRRF_cjs.burnMarks; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "createPdfJsRasterizer", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkB6I2HRRF_cjs.createPdfJsRasterizer; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "freezePdf", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkB6I2HRRF_cjs.freezePdf; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "readProvenance", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkB6I2HRRF_cjs.readProvenance; }
|
|
61
61
|
});
|
|
62
62
|
exports.freezePdfInBrowser = freezePdfInBrowser;
|
|
63
63
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as AnnotationKind, b as AnnotationLayer, A as Annotation } from '../../model.d-
|
|
1
|
+
import { a as AnnotationKind, b as AnnotationLayer, A as Annotation } from '../../model.d-CNtRWKVK.cjs';
|
|
2
2
|
import { a as PdfViewerAssets } from '../../PdfViewer.d-bQH9yxFg.cjs';
|
|
3
3
|
export { B as BatesOptions, a as BundleFile, b as BundleIndexEntry, c as BundleItem, d as BundleLayout, e as BundleOptions, f as BundleResult, S as StampCorner, g as batesLabel, h as buildBundle } from '../../bundle.d-BnCSbHy2.cjs';
|
|
4
4
|
import 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as AnnotationKind, b as AnnotationLayer, A as Annotation } from '../../model.d-
|
|
1
|
+
import { a as AnnotationKind, b as AnnotationLayer, A as Annotation } from '../../model.d-CNtRWKVK.js';
|
|
2
2
|
import { a as PdfViewerAssets } from '../../PdfViewer.d-bQH9yxFg.js';
|
|
3
3
|
export { B as BatesOptions, a as BundleFile, b as BundleIndexEntry, c as BundleItem, d as BundleLayout, e as BundleOptions, f as BundleResult, S as StampCorner, g as batesLabel, h as buildBundle } from '../../bundle.d-BnCSbHy2.js';
|
|
4
4
|
import 'react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createPdfJsRasterizer, browserCanvasFactory, freezePdf } from '../../chunk-
|
|
2
|
-
export { DEFAULT_DPI, FreezeError, MAX_PAGE_PIXELS, batesLabel, browserCanvasFactory, buildBundle, burnMarks, createPdfJsRasterizer, freezePdf, readProvenance } from '../../chunk-
|
|
3
|
-
import { isEffectiveRedaction } from '../../chunk-
|
|
1
|
+
import { createPdfJsRasterizer, browserCanvasFactory, freezePdf } from '../../chunk-A2XSLTIP.js';
|
|
2
|
+
export { DEFAULT_DPI, FreezeError, MAX_PAGE_PIXELS, batesLabel, browserCanvasFactory, buildBundle, burnMarks, createPdfJsRasterizer, freezePdf, readProvenance } from '../../chunk-A2XSLTIP.js';
|
|
3
|
+
import { isEffectiveRedaction } from '../../chunk-T3USOSVN.js';
|
|
4
4
|
import '../../chunk-PTOP7OHG.js';
|
|
5
5
|
import { pdfjs } from 'react-pdf';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkSUZORMAB_cjs = require('../chunk-SUZORMAB.cjs');
|
|
4
|
+
var chunk2IJP73ZG_cjs = require('../chunk-2IJP73ZG.cjs');
|
|
5
5
|
require('../chunk-WYZJLZ67.cjs');
|
|
6
6
|
require('../chunk-HJDR5HEO.cjs');
|
|
7
7
|
require('../chunk-S6A6FSG7.cjs');
|
|
@@ -10,219 +10,219 @@ require('../chunk-S6A6FSG7.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "AUTOSAVE_MS", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkSUZORMAB_cjs.AUTOSAVE_MS; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "AnnotationPageOverlay", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkSUZORMAB_cjs.AnnotationPageOverlay; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "AnnotationStoreOfflineError", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkSUZORMAB_cjs.AnnotationStoreOfflineError; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "AnnotationToolbar", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkSUZORMAB_cjs.AnnotationToolbar; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "DEFAULT_SETTINGS", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkSUZORMAB_cjs.DEFAULT_SETTINGS; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "FreezeDialog", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkSUZORMAB_cjs.FreezeDialog; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "HIGHLIGHT_COLORS", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkSUZORMAB_cjs.HIGHLIGHT_COLORS; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "MARK_COLORS", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkSUZORMAB_cjs.MARK_COLORS; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "ProductionDialog", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkSUZORMAB_cjs.ProductionDialog; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "REDACTION_LOG_COLUMNS", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkSUZORMAB_cjs.REDACTION_LOG_COLUMNS; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "REDACTION_REASONS", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkSUZORMAB_cjs.REDACTION_REASONS; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "RETRY_MS", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkSUZORMAB_cjs.RETRY_MS; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "STAMP_PRESETS", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkSUZORMAB_cjs.STAMP_PRESETS; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "annotationsOnPage", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkSUZORMAB_cjs.annotationsOnPage; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "applyAction", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkSUZORMAB_cjs.applyAction; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "canRedo", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkSUZORMAB_cjs.canRedo; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "canUndo", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkSUZORMAB_cjs.canUndo; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "containsPoint", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkSUZORMAB_cjs.containsPoint; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "createHistory", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkSUZORMAB_cjs.createHistory; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "createLocalStorageStore", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkSUZORMAB_cjs.createLocalStorageStore; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "createMemoryStore", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkSUZORMAB_cjs.createMemoryStore; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "dragRect", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkSUZORMAB_cjs.dragRect; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "dragToNorm", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkSUZORMAB_cjs.dragToNorm; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "intersects", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkSUZORMAB_cjs.intersects; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "isTooSmall", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkSUZORMAB_cjs.isTooSmall; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "layerStatusText", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkSUZORMAB_cjs.layerStatusText; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "mergeLayers", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkSUZORMAB_cjs.mergeLayers; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "mergeLineRects", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkSUZORMAB_cjs.mergeLineRects; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "moveItem", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkSUZORMAB_cjs.moveItem; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "patchForRect", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkSUZORMAB_cjs.patchForRect; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "pendingRedactions", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkSUZORMAB_cjs.pendingRedactions; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "qrCornerFor", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkSUZORMAB_cjs.qrCornerFor; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "readSelection", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkSUZORMAB_cjs.readSelection; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "redactionLogCsv", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkSUZORMAB_cjs.redactionLogCsv; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "redactionLogRows", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkSUZORMAB_cjs.redactionLogRows; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "redo", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkSUZORMAB_cjs.redo; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "reduceLayer", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkSUZORMAB_cjs.reduceLayer; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "sameMarks", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkSUZORMAB_cjs.sameMarks; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "selectionToPageMarks", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkSUZORMAB_cjs.selectionToPageMarks; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "singleRect", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkSUZORMAB_cjs.singleRect; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "toNorm", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkSUZORMAB_cjs.toNorm; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "toPixels", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkSUZORMAB_cjs.toPixels; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "undo", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkSUZORMAB_cjs.undo; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "useAnnotationLayer", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkSUZORMAB_cjs.useAnnotationLayer; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "useAnnotationShortcuts", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkSUZORMAB_cjs.useAnnotationShortcuts; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "useTextSelectionMarks", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkSUZORMAB_cjs.useTextSelectionMarks; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "AnnotationLayerError", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunk2IJP73ZG_cjs.AnnotationLayerError; }
|
|
198
198
|
});
|
|
199
199
|
Object.defineProperty(exports, "LAYER_SCHEMA_VERSION", {
|
|
200
200
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunk2IJP73ZG_cjs.LAYER_SCHEMA_VERSION; }
|
|
202
202
|
});
|
|
203
203
|
Object.defineProperty(exports, "annotationRects", {
|
|
204
204
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunk2IJP73ZG_cjs.annotationRects; }
|
|
206
206
|
});
|
|
207
207
|
Object.defineProperty(exports, "clampRect", {
|
|
208
208
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunk2IJP73ZG_cjs.clampRect; }
|
|
210
210
|
});
|
|
211
211
|
Object.defineProperty(exports, "emptyLayer", {
|
|
212
212
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunk2IJP73ZG_cjs.emptyLayer; }
|
|
214
214
|
});
|
|
215
215
|
Object.defineProperty(exports, "isEffectiveRedaction", {
|
|
216
216
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunk2IJP73ZG_cjs.isEffectiveRedaction; }
|
|
218
218
|
});
|
|
219
219
|
Object.defineProperty(exports, "parseAnnotation", {
|
|
220
220
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunk2IJP73ZG_cjs.parseAnnotation; }
|
|
222
222
|
});
|
|
223
223
|
Object.defineProperty(exports, "parseLayer", {
|
|
224
224
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunk2IJP73ZG_cjs.parseLayer; }
|
|
226
226
|
});
|
|
227
227
|
//# sourceMappingURL=index.cjs.map
|
|
228
228
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as Annotation, e as RedactionStatus, d as CommentReply, b as AnnotationLayer, N as NormRect } from '../model.d-
|
|
2
|
-
export { a as AnnotationKind, c as AnnotationLayerError, B as BoxAnnotation, C as CommentAnnotation, H as HighlightAnnotation, L as LAYER_SCHEMA_VERSION, R as RedactionAnnotation, S as StampAnnotation, f as annotationRects, g as clampRect, h as emptyLayer, i as isEffectiveRedaction, p as parseAnnotation, j as parseLayer } from '../model.d-
|
|
3
|
-
import { A as AnnotationStore } from '../ProductionDialog.d-
|
|
4
|
-
export { a as AnnotationStoreOfflineError, P as ProductionChoices, b as ProductionCorner, c as ProductionDialog, d as ProductionDialogProps, e as ProductionDocument, f as createLocalStorageStore, g as createMemoryStore, m as moveItem, q as qrCornerFor } from '../ProductionDialog.d-
|
|
1
|
+
import { A as Annotation, e as RedactionStatus, d as CommentReply, b as AnnotationLayer, N as NormRect } from '../model.d-CNtRWKVK.cjs';
|
|
2
|
+
export { a as AnnotationKind, c as AnnotationLayerError, B as BoxAnnotation, C as CommentAnnotation, H as HighlightAnnotation, L as LAYER_SCHEMA_VERSION, R as RedactionAnnotation, S as StampAnnotation, f as annotationRects, g as clampRect, h as emptyLayer, i as isEffectiveRedaction, p as parseAnnotation, j as parseLayer } from '../model.d-CNtRWKVK.cjs';
|
|
3
|
+
import { A as AnnotationStore } from '../ProductionDialog.d-DjRQFmQw.cjs';
|
|
4
|
+
export { a as AnnotationStoreOfflineError, P as ProductionChoices, b as ProductionCorner, c as ProductionDialog, d as ProductionDialogProps, e as ProductionDocument, f as createLocalStorageStore, g as createMemoryStore, m as moveItem, q as qrCornerFor } from '../ProductionDialog.d-DjRQFmQw.cjs';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ReactNode } from 'react';
|
|
7
7
|
|
|
@@ -322,7 +322,7 @@ declare function dragRect(origin: NormRect, mode: DragMode, dx: number, dy: numb
|
|
|
322
322
|
|
|
323
323
|
interface AnnotationToolbarProps {
|
|
324
324
|
controller: AnnotationController;
|
|
325
|
-
/**
|
|
325
|
+
/** Apply the annotations and redactions to a new document copy. */
|
|
326
326
|
onFreeze?: () => void;
|
|
327
327
|
/** Extra host actions at the end of the bar (e.g. "Download with markup"). */
|
|
328
328
|
actions?: ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as Annotation, e as RedactionStatus, d as CommentReply, b as AnnotationLayer, N as NormRect } from '../model.d-
|
|
2
|
-
export { a as AnnotationKind, c as AnnotationLayerError, B as BoxAnnotation, C as CommentAnnotation, H as HighlightAnnotation, L as LAYER_SCHEMA_VERSION, R as RedactionAnnotation, S as StampAnnotation, f as annotationRects, g as clampRect, h as emptyLayer, i as isEffectiveRedaction, p as parseAnnotation, j as parseLayer } from '../model.d-
|
|
3
|
-
import { A as AnnotationStore } from '../ProductionDialog.d-
|
|
4
|
-
export { a as AnnotationStoreOfflineError, P as ProductionChoices, b as ProductionCorner, c as ProductionDialog, d as ProductionDialogProps, e as ProductionDocument, f as createLocalStorageStore, g as createMemoryStore, m as moveItem, q as qrCornerFor } from '../ProductionDialog.d-
|
|
1
|
+
import { A as Annotation, e as RedactionStatus, d as CommentReply, b as AnnotationLayer, N as NormRect } from '../model.d-CNtRWKVK.js';
|
|
2
|
+
export { a as AnnotationKind, c as AnnotationLayerError, B as BoxAnnotation, C as CommentAnnotation, H as HighlightAnnotation, L as LAYER_SCHEMA_VERSION, R as RedactionAnnotation, S as StampAnnotation, f as annotationRects, g as clampRect, h as emptyLayer, i as isEffectiveRedaction, p as parseAnnotation, j as parseLayer } from '../model.d-CNtRWKVK.js';
|
|
3
|
+
import { A as AnnotationStore } from '../ProductionDialog.d-BDJwBSzj.js';
|
|
4
|
+
export { a as AnnotationStoreOfflineError, P as ProductionChoices, b as ProductionCorner, c as ProductionDialog, d as ProductionDialogProps, e as ProductionDocument, f as createLocalStorageStore, g as createMemoryStore, m as moveItem, q as qrCornerFor } from '../ProductionDialog.d-BDJwBSzj.js';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ReactNode } from 'react';
|
|
7
7
|
|
|
@@ -322,7 +322,7 @@ declare function dragRect(origin: NormRect, mode: DragMode, dx: number, dy: numb
|
|
|
322
322
|
|
|
323
323
|
interface AnnotationToolbarProps {
|
|
324
324
|
controller: AnnotationController;
|
|
325
|
-
/**
|
|
325
|
+
/** Apply the annotations and redactions to a new document copy. */
|
|
326
326
|
onFreeze?: () => void;
|
|
327
327
|
/** Extra host actions at the end of the bar (e.g. "Download with markup"). */
|
|
328
328
|
actions?: ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { AUTOSAVE_MS, AnnotationPageOverlay, AnnotationStoreOfflineError, AnnotationToolbar, DEFAULT_SETTINGS, FreezeDialog, HIGHLIGHT_COLORS, MARK_COLORS, ProductionDialog, REDACTION_LOG_COLUMNS, REDACTION_REASONS, RETRY_MS, STAMP_PRESETS, annotationsOnPage, applyAction, canRedo, canUndo, containsPoint, createHistory, createLocalStorageStore, createMemoryStore, dragRect, dragToNorm, intersects, isTooSmall, layerStatusText, mergeLayers, mergeLineRects, moveItem, patchForRect, pendingRedactions, qrCornerFor, readSelection, redactionLogCsv, redactionLogRows, redo, reduceLayer, sameMarks, selectionToPageMarks, singleRect, toNorm, toPixels, undo, useAnnotationLayer, useAnnotationShortcuts, useTextSelectionMarks } from '../chunk-
|
|
2
|
-
export { AnnotationLayerError, LAYER_SCHEMA_VERSION, annotationRects, clampRect, emptyLayer, isEffectiveRedaction, parseAnnotation, parseLayer } from '../chunk-
|
|
1
|
+
export { AUTOSAVE_MS, AnnotationPageOverlay, AnnotationStoreOfflineError, AnnotationToolbar, DEFAULT_SETTINGS, FreezeDialog, HIGHLIGHT_COLORS, MARK_COLORS, ProductionDialog, REDACTION_LOG_COLUMNS, REDACTION_REASONS, RETRY_MS, STAMP_PRESETS, annotationsOnPage, applyAction, canRedo, canUndo, containsPoint, createHistory, createLocalStorageStore, createMemoryStore, dragRect, dragToNorm, intersects, isTooSmall, layerStatusText, mergeLayers, mergeLineRects, moveItem, patchForRect, pendingRedactions, qrCornerFor, readSelection, redactionLogCsv, redactionLogRows, redo, reduceLayer, sameMarks, selectionToPageMarks, singleRect, toNorm, toPixels, undo, useAnnotationLayer, useAnnotationShortcuts, useTextSelectionMarks } from '../chunk-T4CLW3DN.js';
|
|
2
|
+
export { AnnotationLayerError, LAYER_SCHEMA_VERSION, annotationRects, clampRect, emptyLayer, isEffectiveRedaction, parseAnnotation, parseLayer } from '../chunk-T3USOSVN.js';
|
|
3
3
|
import '../chunk-YNNAJJ5Z.js';
|
|
4
4
|
import '../chunk-47CCGUWR.js';
|
|
5
5
|
import '../chunk-SN5YV6FF.js';
|
package/dist/artifacts/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk4UDIA47U_cjs = require('../chunk-4UDIA47U.cjs');
|
|
4
|
+
var chunkFLAZSNC5_cjs = require('../chunk-FLAZSNC5.cjs');
|
|
5
5
|
var chunk3AADNIOK_cjs = require('../chunk-3AADNIOK.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkRRWAX52L_cjs = require('../chunk-RRWAX52L.cjs');
|
|
7
7
|
require('../chunk-N73IMVFF.cjs');
|
|
8
8
|
var chunkZWFMFOGP_cjs = require('../chunk-ZWFMFOGP.cjs');
|
|
9
9
|
var chunkVOFNX4P6_cjs = require('../chunk-VOFNX4P6.cjs');
|
|
@@ -287,7 +287,7 @@ function useArtifactText(docId, options) {
|
|
|
287
287
|
const enabled = (options?.enabled ?? true) && chunkZWFMFOGP_cjs.isDocumentId(docId) && arbi.hasWorkspace;
|
|
288
288
|
const query = reactQuery.useQuery({
|
|
289
289
|
// Under the shared `parsedDoc` key, so a document's invalidation reaches it too.
|
|
290
|
-
queryKey: [...
|
|
290
|
+
queryKey: [...chunkRRWAX52L_cjs.arbiQueryKeys.parsedDoc(docId ?? "", "marker"), "artifact-text"],
|
|
291
291
|
queryFn: async () => {
|
|
292
292
|
const { docId: plainId, version } = chunkZWFMFOGP_cjs.parseVersionRef(docId);
|
|
293
293
|
const parsed = await arbi.documents.getParsedContent(
|
|
@@ -335,12 +335,12 @@ function useArtifactText(docId, options) {
|
|
|
335
335
|
// src/artifacts/useArtifactSession.ts
|
|
336
336
|
function useArtifactVersions(workspaceId, docId) {
|
|
337
337
|
const plainId = docId ? chunkZWFMFOGP_cjs.parseVersionRef(docId).docId : null;
|
|
338
|
-
const { data: documents } =
|
|
338
|
+
const { data: documents } = chunk4UDIA47U_cjs.useDocuments(workspaceId);
|
|
339
339
|
const listed = react.useMemo(
|
|
340
340
|
() => (documents ?? []).find((d) => d.external_id === plainId),
|
|
341
341
|
[documents, plainId]
|
|
342
342
|
);
|
|
343
|
-
const { data: history } =
|
|
343
|
+
const { data: history } = chunkFLAZSNC5_cjs.useDocumentVersionList(plainId, {
|
|
344
344
|
enabled: !!plainId && documents !== void 0 && !listed
|
|
345
345
|
});
|
|
346
346
|
return react.useMemo(
|
|
@@ -364,10 +364,10 @@ function useSaveArtifactVersion() {
|
|
|
364
364
|
}
|
|
365
365
|
);
|
|
366
366
|
const docId = result.doc_ext_ids?.[0];
|
|
367
|
-
if (docId) await
|
|
368
|
-
await queryClient.invalidateQueries({ queryKey:
|
|
367
|
+
if (docId) await chunk4UDIA47U_cjs.refreshDocuments(queryClient, arbi, [docId]);
|
|
368
|
+
await queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.allDocumentVersions() });
|
|
369
369
|
if (docId)
|
|
370
|
-
await queryClient.invalidateQueries({ queryKey:
|
|
370
|
+
await queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.parsedDocument(docId) });
|
|
371
371
|
return { docId, version: result.version ?? void 0 };
|
|
372
372
|
}
|
|
373
373
|
});
|
|
@@ -486,7 +486,7 @@ function useArtifactSession(options) {
|
|
|
486
486
|
function useArtifactSource(documentId, enabled = true) {
|
|
487
487
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
488
488
|
return reactQuery.useQuery({
|
|
489
|
-
queryKey:
|
|
489
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.artifactSource(documentId ?? ""),
|
|
490
490
|
queryFn: async () => (await arbi.documents.download(documentId)).text(),
|
|
491
491
|
enabled: enabled && !!documentId && arbi.isLoggedIn,
|
|
492
492
|
staleTime: 5 * 60 * 1e3
|
package/dist/artifacts/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useDocuments, refreshDocuments } from '../chunk-
|
|
2
|
-
import { useDocumentVersionList } from '../chunk-
|
|
1
|
+
import { useDocuments, refreshDocuments } from '../chunk-MQ7LZWGP.js';
|
|
2
|
+
import { useDocumentVersionList } from '../chunk-LYGJVSNM.js';
|
|
3
3
|
import { revertRedlineRegion, buildHybridRedlineWithRegions, buildHybridRedlineMarkdown } from '../chunk-74N436VK.js';
|
|
4
4
|
export { buildHybridRedlineMarkdown, buildHybridRedlineWithRegions, revertRedlineRegion } from '../chunk-74N436VK.js';
|
|
5
|
-
import { arbiQueryKeys } from '../chunk-
|
|
5
|
+
import { arbiQueryKeys } from '../chunk-PBXJFMES.js';
|
|
6
6
|
import '../chunk-DPYBZDJB.js';
|
|
7
7
|
import { isDocumentId, parseVersionRef, flattenChunks, documentVersions, toArtifactVersions, findVersion, versionLabel, cleanDraftWithReport } from '../chunk-NNWMHMEC.js';
|
|
8
8
|
export { cleanDraftMarkdown, cleanDraftWithReport, documentVersions, findVersion, flattenChunks, isDocumentId, parseVersionRef, promoteBoldTitle, repairParsedStructure, repairParsedTitle, savedFromId, stripAgentPreamble, toArtifactVersions, unescapeMarkdown, unwrapCitationLinks, versionLabel, versionRef } from '../chunk-NNWMHMEC.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkB6I2HRRF_cjs = require('./chunk-B6I2HRRF.cjs');
|
|
4
|
+
require('./chunk-2IJP73ZG.cjs');
|
|
5
|
+
require('./chunk-IU2CJNTB.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "buildBundle", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkB6I2HRRF_cjs.buildBundle; }
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=bundle-DCWPYNGD.cjs.map
|
|
14
|
+
//# sourceMappingURL=bundle-DCWPYNGD.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"bundle-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"bundle-DCWPYNGD.cjs"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"bundle-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"bundle-JCKKGEJE.js"}
|