@arbidocs/react 0.4.157 → 0.4.159

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.
Files changed (43) hide show
  1. package/dist/{ProductionDialog-DUC9BXWS.d.ts → ProductionDialog-BvRVGdvH.d.ts} +1 -1
  2. package/dist/{ProductionDialog-BRrZ5Lj5.d.cts → ProductionDialog-Dhf9MXH-.d.cts} +1 -1
  3. package/dist/annotations/freeze/index.cjs +15 -15
  4. package/dist/annotations/freeze/index.d.cts +6 -1
  5. package/dist/annotations/freeze/index.d.ts +6 -1
  6. package/dist/annotations/freeze/index.js +3 -3
  7. package/dist/annotations/index.cjs +56 -56
  8. package/dist/annotations/index.d.cts +9 -4
  9. package/dist/annotations/index.d.ts +9 -4
  10. package/dist/annotations/index.js +2 -2
  11. package/dist/bundle-COMT7X3A.js +4 -0
  12. package/dist/{bundle-N2JIJ2T6.js.map → bundle-COMT7X3A.js.map} +1 -1
  13. package/dist/bundle-UWCOLMAA.cjs +13 -0
  14. package/dist/{bundle-T6BEVYHE.cjs.map → bundle-UWCOLMAA.cjs.map} +1 -1
  15. package/dist/{chunk-SSOPIPEX.cjs → chunk-LRBOMQ6Q.cjs} +4 -3
  16. package/dist/chunk-LRBOMQ6Q.cjs.map +1 -0
  17. package/dist/{chunk-COWZGCL5.js → chunk-NBIW7AEE.js} +4 -3
  18. package/dist/chunk-NBIW7AEE.js.map +1 -0
  19. package/dist/{chunk-ZJMUNGOY.js → chunk-R66GNDO7.js} +42 -4
  20. package/dist/chunk-R66GNDO7.js.map +1 -0
  21. package/dist/{chunk-L2PXZWJM.cjs → chunk-RDF2Q45F.cjs} +75 -20
  22. package/dist/chunk-RDF2Q45F.cjs.map +1 -0
  23. package/dist/{chunk-IHTBAY57.js → chunk-S33P6THG.js} +59 -4
  24. package/dist/chunk-S33P6THG.js.map +1 -0
  25. package/dist/{chunk-QJXFRP5R.cjs → chunk-UP6PIBVF.cjs} +46 -8
  26. package/dist/chunk-UP6PIBVF.cjs.map +1 -0
  27. package/dist/document-tools/index.cjs +156 -26
  28. package/dist/document-tools/index.cjs.map +1 -1
  29. package/dist/document-tools/index.d.cts +110 -13
  30. package/dist/document-tools/index.d.ts +110 -13
  31. package/dist/document-tools/index.js +136 -20
  32. package/dist/document-tools/index.js.map +1 -1
  33. package/dist/{model-DIwXRuGC.d.ts → model-D63gedpb.d.cts} +5 -0
  34. package/dist/{model-DIwXRuGC.d.cts → model-D63gedpb.d.ts} +5 -0
  35. package/package.json +3 -3
  36. package/dist/bundle-N2JIJ2T6.js +0 -4
  37. package/dist/bundle-T6BEVYHE.cjs +0 -13
  38. package/dist/chunk-COWZGCL5.js.map +0 -1
  39. package/dist/chunk-IHTBAY57.js.map +0 -1
  40. package/dist/chunk-L2PXZWJM.cjs.map +0 -1
  41. package/dist/chunk-QJXFRP5R.cjs.map +0 -1
  42. package/dist/chunk-SSOPIPEX.cjs.map +0 -1
  43. package/dist/chunk-ZJMUNGOY.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { b as AnnotationLayer } from './model-DIwXRuGC.js';
1
+ import { b as AnnotationLayer } from './model-D63gedpb.js';
2
2
  import * as React from 'react';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { b as AnnotationLayer } from './model-DIwXRuGC.cjs';
1
+ import { b as AnnotationLayer } from './model-D63gedpb.cjs';
2
2
  import * as React from 'react';
3
3
 
4
4
  /**
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkQJXFRP5R_cjs = require('../../chunk-QJXFRP5R.cjs');
4
- var chunkSSOPIPEX_cjs = require('../../chunk-SSOPIPEX.cjs');
3
+ var chunkUP6PIBVF_cjs = require('../../chunk-UP6PIBVF.cjs');
4
+ var chunkLRBOMQ6Q_cjs = require('../../chunk-LRBOMQ6Q.cjs');
5
5
  var reactPdf = require('react-pdf');
6
6
 
7
7
  async function freezePdfInBrowser(bytes, layer, { assets, password, ...options }) {
8
- const needsRaster = options.mode === "image" || layer.annotations.some(chunkSSOPIPEX_cjs.isEffectiveRedaction);
9
- const rasterizer = needsRaster ? await chunkQJXFRP5R_cjs.createPdfJsRasterizer(reactPdf.pdfjs, bytes, chunkQJXFRP5R_cjs.browserCanvasFactory(), {
8
+ const needsRaster = options.mode === "image" || layer.annotations.some(chunkLRBOMQ6Q_cjs.isEffectiveRedaction);
9
+ const rasterizer = needsRaster ? await chunkUP6PIBVF_cjs.createPdfJsRasterizer(reactPdf.pdfjs, bytes, chunkUP6PIBVF_cjs.browserCanvasFactory(), {
10
10
  password,
11
11
  documentOptions: {
12
12
  cMapUrl: assets?.cMapUrl ?? "/cmaps/",
@@ -15,48 +15,48 @@ async function freezePdfInBrowser(bytes, layer, { assets, password, ...options }
15
15
  wasmUrl: assets?.wasmUrl ?? "/wasm/"
16
16
  }
17
17
  }) : void 0;
18
- return chunkQJXFRP5R_cjs.freezePdf(bytes, layer, { ...options, rasterizer });
18
+ return chunkUP6PIBVF_cjs.freezePdf(bytes, layer, { ...options, rasterizer });
19
19
  }
20
20
 
21
21
  Object.defineProperty(exports, "DEFAULT_DPI", {
22
22
  enumerable: true,
23
- get: function () { return chunkQJXFRP5R_cjs.DEFAULT_DPI; }
23
+ get: function () { return chunkUP6PIBVF_cjs.DEFAULT_DPI; }
24
24
  });
25
25
  Object.defineProperty(exports, "FreezeError", {
26
26
  enumerable: true,
27
- get: function () { return chunkQJXFRP5R_cjs.FreezeError; }
27
+ get: function () { return chunkUP6PIBVF_cjs.FreezeError; }
28
28
  });
29
29
  Object.defineProperty(exports, "MAX_PAGE_PIXELS", {
30
30
  enumerable: true,
31
- get: function () { return chunkQJXFRP5R_cjs.MAX_PAGE_PIXELS; }
31
+ get: function () { return chunkUP6PIBVF_cjs.MAX_PAGE_PIXELS; }
32
32
  });
33
33
  Object.defineProperty(exports, "batesLabel", {
34
34
  enumerable: true,
35
- get: function () { return chunkQJXFRP5R_cjs.batesLabel; }
35
+ get: function () { return chunkUP6PIBVF_cjs.batesLabel; }
36
36
  });
37
37
  Object.defineProperty(exports, "browserCanvasFactory", {
38
38
  enumerable: true,
39
- get: function () { return chunkQJXFRP5R_cjs.browserCanvasFactory; }
39
+ get: function () { return chunkUP6PIBVF_cjs.browserCanvasFactory; }
40
40
  });
41
41
  Object.defineProperty(exports, "buildBundle", {
42
42
  enumerable: true,
43
- get: function () { return chunkQJXFRP5R_cjs.buildBundle; }
43
+ get: function () { return chunkUP6PIBVF_cjs.buildBundle; }
44
44
  });
45
45
  Object.defineProperty(exports, "burnMarks", {
46
46
  enumerable: true,
47
- get: function () { return chunkQJXFRP5R_cjs.burnMarks; }
47
+ get: function () { return chunkUP6PIBVF_cjs.burnMarks; }
48
48
  });
49
49
  Object.defineProperty(exports, "createPdfJsRasterizer", {
50
50
  enumerable: true,
51
- get: function () { return chunkQJXFRP5R_cjs.createPdfJsRasterizer; }
51
+ get: function () { return chunkUP6PIBVF_cjs.createPdfJsRasterizer; }
52
52
  });
53
53
  Object.defineProperty(exports, "freezePdf", {
54
54
  enumerable: true,
55
- get: function () { return chunkQJXFRP5R_cjs.freezePdf; }
55
+ get: function () { return chunkUP6PIBVF_cjs.freezePdf; }
56
56
  });
57
57
  Object.defineProperty(exports, "readProvenance", {
58
58
  enumerable: true,
59
- get: function () { return chunkQJXFRP5R_cjs.readProvenance; }
59
+ get: function () { return chunkUP6PIBVF_cjs.readProvenance; }
60
60
  });
61
61
  exports.freezePdfInBrowser = freezePdfInBrowser;
62
62
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- import { a as AnnotationKind, b as AnnotationLayer, A as Annotation } from '../../model-DIwXRuGC.cjs';
1
+ import { a as AnnotationKind, b as AnnotationLayer, A as Annotation } from '../../model-D63gedpb.cjs';
2
2
  import { a as PdfViewerAssets } from '../../PdfViewer-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-BnCSbHy2.cjs';
4
4
  import 'react';
@@ -193,6 +193,11 @@ interface BurnOptions {
193
193
  labels: boolean;
194
194
  comments: CommentOutput;
195
195
  numbers: Map<string, number>;
196
+ /** Picture stamps' images, decoded, by mark id (a stamp without one draws its label). */
197
+ images?: Map<string, CanvasImageSource & {
198
+ width: number;
199
+ height: number;
200
+ }>;
196
201
  }
197
202
  /** Paint every mark for one page onto its rendered pixels. Redactions go last, on top. */
198
203
  declare function burnMarks(page: RenderedPage, marks: Annotation[], options: BurnOptions): void;
@@ -1,4 +1,4 @@
1
- import { a as AnnotationKind, b as AnnotationLayer, A as Annotation } from '../../model-DIwXRuGC.js';
1
+ import { a as AnnotationKind, b as AnnotationLayer, A as Annotation } from '../../model-D63gedpb.js';
2
2
  import { a as PdfViewerAssets } from '../../PdfViewer-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-BnCSbHy2.js';
4
4
  import 'react';
@@ -193,6 +193,11 @@ interface BurnOptions {
193
193
  labels: boolean;
194
194
  comments: CommentOutput;
195
195
  numbers: Map<string, number>;
196
+ /** Picture stamps' images, decoded, by mark id (a stamp without one draws its label). */
197
+ images?: Map<string, CanvasImageSource & {
198
+ width: number;
199
+ height: number;
200
+ }>;
196
201
  }
197
202
  /** Paint every mark for one page onto its rendered pixels. Redactions go last, on top. */
198
203
  declare function burnMarks(page: RenderedPage, marks: Annotation[], options: BurnOptions): void;
@@ -1,6 +1,6 @@
1
- import { createPdfJsRasterizer, browserCanvasFactory, freezePdf } from '../../chunk-ZJMUNGOY.js';
2
- export { DEFAULT_DPI, FreezeError, MAX_PAGE_PIXELS, batesLabel, browserCanvasFactory, buildBundle, burnMarks, createPdfJsRasterizer, freezePdf, readProvenance } from '../../chunk-ZJMUNGOY.js';
3
- import { isEffectiveRedaction } from '../../chunk-COWZGCL5.js';
1
+ import { createPdfJsRasterizer, browserCanvasFactory, freezePdf } from '../../chunk-R66GNDO7.js';
2
+ export { DEFAULT_DPI, FreezeError, MAX_PAGE_PIXELS, batesLabel, browserCanvasFactory, buildBundle, burnMarks, createPdfJsRasterizer, freezePdf, readProvenance } from '../../chunk-R66GNDO7.js';
3
+ import { isEffectiveRedaction } from '../../chunk-NBIW7AEE.js';
4
4
  import { pdfjs } from 'react-pdf';
5
5
 
6
6
  async function freezePdfInBrowser(bytes, layer, { assets, password, ...options }) {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkL2PXZWJM_cjs = require('../chunk-L2PXZWJM.cjs');
4
- var chunkSSOPIPEX_cjs = require('../chunk-SSOPIPEX.cjs');
3
+ var chunkRDF2Q45F_cjs = require('../chunk-RDF2Q45F.cjs');
4
+ var chunkLRBOMQ6Q_cjs = require('../chunk-LRBOMQ6Q.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 chunkL2PXZWJM_cjs.AUTOSAVE_MS; }
13
+ get: function () { return chunkRDF2Q45F_cjs.AUTOSAVE_MS; }
14
14
  });
15
15
  Object.defineProperty(exports, "AnnotationPageOverlay", {
16
16
  enumerable: true,
17
- get: function () { return chunkL2PXZWJM_cjs.AnnotationPageOverlay; }
17
+ get: function () { return chunkRDF2Q45F_cjs.AnnotationPageOverlay; }
18
18
  });
19
19
  Object.defineProperty(exports, "AnnotationStoreOfflineError", {
20
20
  enumerable: true,
21
- get: function () { return chunkL2PXZWJM_cjs.AnnotationStoreOfflineError; }
21
+ get: function () { return chunkRDF2Q45F_cjs.AnnotationStoreOfflineError; }
22
22
  });
23
23
  Object.defineProperty(exports, "AnnotationToolbar", {
24
24
  enumerable: true,
25
- get: function () { return chunkL2PXZWJM_cjs.AnnotationToolbar; }
25
+ get: function () { return chunkRDF2Q45F_cjs.AnnotationToolbar; }
26
26
  });
27
27
  Object.defineProperty(exports, "DEFAULT_SETTINGS", {
28
28
  enumerable: true,
29
- get: function () { return chunkL2PXZWJM_cjs.DEFAULT_SETTINGS; }
29
+ get: function () { return chunkRDF2Q45F_cjs.DEFAULT_SETTINGS; }
30
30
  });
31
31
  Object.defineProperty(exports, "FreezeDialog", {
32
32
  enumerable: true,
33
- get: function () { return chunkL2PXZWJM_cjs.FreezeDialog; }
33
+ get: function () { return chunkRDF2Q45F_cjs.FreezeDialog; }
34
34
  });
35
35
  Object.defineProperty(exports, "HIGHLIGHT_COLORS", {
36
36
  enumerable: true,
37
- get: function () { return chunkL2PXZWJM_cjs.HIGHLIGHT_COLORS; }
37
+ get: function () { return chunkRDF2Q45F_cjs.HIGHLIGHT_COLORS; }
38
38
  });
39
39
  Object.defineProperty(exports, "MARK_COLORS", {
40
40
  enumerable: true,
41
- get: function () { return chunkL2PXZWJM_cjs.MARK_COLORS; }
41
+ get: function () { return chunkRDF2Q45F_cjs.MARK_COLORS; }
42
42
  });
43
43
  Object.defineProperty(exports, "ProductionDialog", {
44
44
  enumerable: true,
45
- get: function () { return chunkL2PXZWJM_cjs.ProductionDialog; }
45
+ get: function () { return chunkRDF2Q45F_cjs.ProductionDialog; }
46
46
  });
47
47
  Object.defineProperty(exports, "REDACTION_LOG_COLUMNS", {
48
48
  enumerable: true,
49
- get: function () { return chunkL2PXZWJM_cjs.REDACTION_LOG_COLUMNS; }
49
+ get: function () { return chunkRDF2Q45F_cjs.REDACTION_LOG_COLUMNS; }
50
50
  });
51
51
  Object.defineProperty(exports, "REDACTION_REASONS", {
52
52
  enumerable: true,
53
- get: function () { return chunkL2PXZWJM_cjs.REDACTION_REASONS; }
53
+ get: function () { return chunkRDF2Q45F_cjs.REDACTION_REASONS; }
54
54
  });
55
55
  Object.defineProperty(exports, "RETRY_MS", {
56
56
  enumerable: true,
57
- get: function () { return chunkL2PXZWJM_cjs.RETRY_MS; }
57
+ get: function () { return chunkRDF2Q45F_cjs.RETRY_MS; }
58
58
  });
59
59
  Object.defineProperty(exports, "STAMP_PRESETS", {
60
60
  enumerable: true,
61
- get: function () { return chunkL2PXZWJM_cjs.STAMP_PRESETS; }
61
+ get: function () { return chunkRDF2Q45F_cjs.STAMP_PRESETS; }
62
62
  });
63
63
  Object.defineProperty(exports, "annotationsOnPage", {
64
64
  enumerable: true,
65
- get: function () { return chunkL2PXZWJM_cjs.annotationsOnPage; }
65
+ get: function () { return chunkRDF2Q45F_cjs.annotationsOnPage; }
66
66
  });
67
67
  Object.defineProperty(exports, "applyAction", {
68
68
  enumerable: true,
69
- get: function () { return chunkL2PXZWJM_cjs.applyAction; }
69
+ get: function () { return chunkRDF2Q45F_cjs.applyAction; }
70
70
  });
71
71
  Object.defineProperty(exports, "canRedo", {
72
72
  enumerable: true,
73
- get: function () { return chunkL2PXZWJM_cjs.canRedo; }
73
+ get: function () { return chunkRDF2Q45F_cjs.canRedo; }
74
74
  });
75
75
  Object.defineProperty(exports, "canUndo", {
76
76
  enumerable: true,
77
- get: function () { return chunkL2PXZWJM_cjs.canUndo; }
77
+ get: function () { return chunkRDF2Q45F_cjs.canUndo; }
78
78
  });
79
79
  Object.defineProperty(exports, "containsPoint", {
80
80
  enumerable: true,
81
- get: function () { return chunkL2PXZWJM_cjs.containsPoint; }
81
+ get: function () { return chunkRDF2Q45F_cjs.containsPoint; }
82
82
  });
83
83
  Object.defineProperty(exports, "createHistory", {
84
84
  enumerable: true,
85
- get: function () { return chunkL2PXZWJM_cjs.createHistory; }
85
+ get: function () { return chunkRDF2Q45F_cjs.createHistory; }
86
86
  });
87
87
  Object.defineProperty(exports, "createLocalStorageStore", {
88
88
  enumerable: true,
89
- get: function () { return chunkL2PXZWJM_cjs.createLocalStorageStore; }
89
+ get: function () { return chunkRDF2Q45F_cjs.createLocalStorageStore; }
90
90
  });
91
91
  Object.defineProperty(exports, "createMemoryStore", {
92
92
  enumerable: true,
93
- get: function () { return chunkL2PXZWJM_cjs.createMemoryStore; }
93
+ get: function () { return chunkRDF2Q45F_cjs.createMemoryStore; }
94
94
  });
95
95
  Object.defineProperty(exports, "dragRect", {
96
96
  enumerable: true,
97
- get: function () { return chunkL2PXZWJM_cjs.dragRect; }
97
+ get: function () { return chunkRDF2Q45F_cjs.dragRect; }
98
98
  });
99
99
  Object.defineProperty(exports, "dragToNorm", {
100
100
  enumerable: true,
101
- get: function () { return chunkL2PXZWJM_cjs.dragToNorm; }
101
+ get: function () { return chunkRDF2Q45F_cjs.dragToNorm; }
102
102
  });
103
103
  Object.defineProperty(exports, "intersects", {
104
104
  enumerable: true,
105
- get: function () { return chunkL2PXZWJM_cjs.intersects; }
105
+ get: function () { return chunkRDF2Q45F_cjs.intersects; }
106
106
  });
107
107
  Object.defineProperty(exports, "isTooSmall", {
108
108
  enumerable: true,
109
- get: function () { return chunkL2PXZWJM_cjs.isTooSmall; }
109
+ get: function () { return chunkRDF2Q45F_cjs.isTooSmall; }
110
110
  });
111
111
  Object.defineProperty(exports, "layerStatusText", {
112
112
  enumerable: true,
113
- get: function () { return chunkL2PXZWJM_cjs.layerStatusText; }
113
+ get: function () { return chunkRDF2Q45F_cjs.layerStatusText; }
114
114
  });
115
115
  Object.defineProperty(exports, "mergeLayers", {
116
116
  enumerable: true,
117
- get: function () { return chunkL2PXZWJM_cjs.mergeLayers; }
117
+ get: function () { return chunkRDF2Q45F_cjs.mergeLayers; }
118
118
  });
119
119
  Object.defineProperty(exports, "mergeLineRects", {
120
120
  enumerable: true,
121
- get: function () { return chunkL2PXZWJM_cjs.mergeLineRects; }
121
+ get: function () { return chunkRDF2Q45F_cjs.mergeLineRects; }
122
122
  });
123
123
  Object.defineProperty(exports, "moveItem", {
124
124
  enumerable: true,
125
- get: function () { return chunkL2PXZWJM_cjs.moveItem; }
125
+ get: function () { return chunkRDF2Q45F_cjs.moveItem; }
126
126
  });
127
127
  Object.defineProperty(exports, "patchForRect", {
128
128
  enumerable: true,
129
- get: function () { return chunkL2PXZWJM_cjs.patchForRect; }
129
+ get: function () { return chunkRDF2Q45F_cjs.patchForRect; }
130
130
  });
131
131
  Object.defineProperty(exports, "pendingRedactions", {
132
132
  enumerable: true,
133
- get: function () { return chunkL2PXZWJM_cjs.pendingRedactions; }
133
+ get: function () { return chunkRDF2Q45F_cjs.pendingRedactions; }
134
134
  });
135
135
  Object.defineProperty(exports, "qrCornerFor", {
136
136
  enumerable: true,
137
- get: function () { return chunkL2PXZWJM_cjs.qrCornerFor; }
137
+ get: function () { return chunkRDF2Q45F_cjs.qrCornerFor; }
138
138
  });
139
139
  Object.defineProperty(exports, "readSelection", {
140
140
  enumerable: true,
141
- get: function () { return chunkL2PXZWJM_cjs.readSelection; }
141
+ get: function () { return chunkRDF2Q45F_cjs.readSelection; }
142
142
  });
143
143
  Object.defineProperty(exports, "redactionLogCsv", {
144
144
  enumerable: true,
145
- get: function () { return chunkL2PXZWJM_cjs.redactionLogCsv; }
145
+ get: function () { return chunkRDF2Q45F_cjs.redactionLogCsv; }
146
146
  });
147
147
  Object.defineProperty(exports, "redactionLogRows", {
148
148
  enumerable: true,
149
- get: function () { return chunkL2PXZWJM_cjs.redactionLogRows; }
149
+ get: function () { return chunkRDF2Q45F_cjs.redactionLogRows; }
150
150
  });
151
151
  Object.defineProperty(exports, "redo", {
152
152
  enumerable: true,
153
- get: function () { return chunkL2PXZWJM_cjs.redo; }
153
+ get: function () { return chunkRDF2Q45F_cjs.redo; }
154
154
  });
155
155
  Object.defineProperty(exports, "reduceLayer", {
156
156
  enumerable: true,
157
- get: function () { return chunkL2PXZWJM_cjs.reduceLayer; }
157
+ get: function () { return chunkRDF2Q45F_cjs.reduceLayer; }
158
158
  });
159
159
  Object.defineProperty(exports, "sameMarks", {
160
160
  enumerable: true,
161
- get: function () { return chunkL2PXZWJM_cjs.sameMarks; }
161
+ get: function () { return chunkRDF2Q45F_cjs.sameMarks; }
162
162
  });
163
163
  Object.defineProperty(exports, "selectionToPageMarks", {
164
164
  enumerable: true,
165
- get: function () { return chunkL2PXZWJM_cjs.selectionToPageMarks; }
165
+ get: function () { return chunkRDF2Q45F_cjs.selectionToPageMarks; }
166
166
  });
167
167
  Object.defineProperty(exports, "singleRect", {
168
168
  enumerable: true,
169
- get: function () { return chunkL2PXZWJM_cjs.singleRect; }
169
+ get: function () { return chunkRDF2Q45F_cjs.singleRect; }
170
170
  });
171
171
  Object.defineProperty(exports, "toNorm", {
172
172
  enumerable: true,
173
- get: function () { return chunkL2PXZWJM_cjs.toNorm; }
173
+ get: function () { return chunkRDF2Q45F_cjs.toNorm; }
174
174
  });
175
175
  Object.defineProperty(exports, "toPixels", {
176
176
  enumerable: true,
177
- get: function () { return chunkL2PXZWJM_cjs.toPixels; }
177
+ get: function () { return chunkRDF2Q45F_cjs.toPixels; }
178
178
  });
179
179
  Object.defineProperty(exports, "undo", {
180
180
  enumerable: true,
181
- get: function () { return chunkL2PXZWJM_cjs.undo; }
181
+ get: function () { return chunkRDF2Q45F_cjs.undo; }
182
182
  });
183
183
  Object.defineProperty(exports, "useAnnotationLayer", {
184
184
  enumerable: true,
185
- get: function () { return chunkL2PXZWJM_cjs.useAnnotationLayer; }
185
+ get: function () { return chunkRDF2Q45F_cjs.useAnnotationLayer; }
186
186
  });
187
187
  Object.defineProperty(exports, "useAnnotationShortcuts", {
188
188
  enumerable: true,
189
- get: function () { return chunkL2PXZWJM_cjs.useAnnotationShortcuts; }
189
+ get: function () { return chunkRDF2Q45F_cjs.useAnnotationShortcuts; }
190
190
  });
191
191
  Object.defineProperty(exports, "useTextSelectionMarks", {
192
192
  enumerable: true,
193
- get: function () { return chunkL2PXZWJM_cjs.useTextSelectionMarks; }
193
+ get: function () { return chunkRDF2Q45F_cjs.useTextSelectionMarks; }
194
194
  });
195
195
  Object.defineProperty(exports, "AnnotationLayerError", {
196
196
  enumerable: true,
197
- get: function () { return chunkSSOPIPEX_cjs.AnnotationLayerError; }
197
+ get: function () { return chunkLRBOMQ6Q_cjs.AnnotationLayerError; }
198
198
  });
199
199
  Object.defineProperty(exports, "LAYER_SCHEMA_VERSION", {
200
200
  enumerable: true,
201
- get: function () { return chunkSSOPIPEX_cjs.LAYER_SCHEMA_VERSION; }
201
+ get: function () { return chunkLRBOMQ6Q_cjs.LAYER_SCHEMA_VERSION; }
202
202
  });
203
203
  Object.defineProperty(exports, "annotationRects", {
204
204
  enumerable: true,
205
- get: function () { return chunkSSOPIPEX_cjs.annotationRects; }
205
+ get: function () { return chunkLRBOMQ6Q_cjs.annotationRects; }
206
206
  });
207
207
  Object.defineProperty(exports, "clampRect", {
208
208
  enumerable: true,
209
- get: function () { return chunkSSOPIPEX_cjs.clampRect; }
209
+ get: function () { return chunkLRBOMQ6Q_cjs.clampRect; }
210
210
  });
211
211
  Object.defineProperty(exports, "emptyLayer", {
212
212
  enumerable: true,
213
- get: function () { return chunkSSOPIPEX_cjs.emptyLayer; }
213
+ get: function () { return chunkLRBOMQ6Q_cjs.emptyLayer; }
214
214
  });
215
215
  Object.defineProperty(exports, "isEffectiveRedaction", {
216
216
  enumerable: true,
217
- get: function () { return chunkSSOPIPEX_cjs.isEffectiveRedaction; }
217
+ get: function () { return chunkLRBOMQ6Q_cjs.isEffectiveRedaction; }
218
218
  });
219
219
  Object.defineProperty(exports, "parseAnnotation", {
220
220
  enumerable: true,
221
- get: function () { return chunkSSOPIPEX_cjs.parseAnnotation; }
221
+ get: function () { return chunkLRBOMQ6Q_cjs.parseAnnotation; }
222
222
  });
223
223
  Object.defineProperty(exports, "parseLayer", {
224
224
  enumerable: true,
225
- get: function () { return chunkSSOPIPEX_cjs.parseLayer; }
225
+ get: function () { return chunkLRBOMQ6Q_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-DIwXRuGC.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-DIwXRuGC.cjs';
3
- import { A as AnnotationStore } from '../ProductionDialog-BRrZ5Lj5.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-BRrZ5Lj5.cjs';
1
+ import { A as Annotation, e as RedactionStatus, d as CommentReply, b as AnnotationLayer, N as NormRect } from '../model-D63gedpb.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-D63gedpb.cjs';
3
+ import { A as AnnotationStore } from '../ProductionDialog-Dhf9MXH-.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-Dhf9MXH-.cjs';
5
5
  import * as React from 'react';
6
6
  import { ReactNode } from 'react';
7
7
 
@@ -168,6 +168,11 @@ type ColoredTool = 'highlight' | 'box' | 'stamp';
168
168
  interface ToolSettings {
169
169
  colors: Record<ColoredTool, string>;
170
170
  stampLabel: string;
171
+ /** The stamp tool places this picture (one's saved signature or initials) instead of a label. */
172
+ stampImage: {
173
+ image: string;
174
+ label: string;
175
+ } | null;
171
176
  redactionReason: string;
172
177
  /** Box outline width in points. */
173
178
  strokeWidth: number;
@@ -1,7 +1,7 @@
1
- import { A as Annotation, e as RedactionStatus, d as CommentReply, b as AnnotationLayer, N as NormRect } from '../model-DIwXRuGC.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-DIwXRuGC.js';
3
- import { A as AnnotationStore } from '../ProductionDialog-DUC9BXWS.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-DUC9BXWS.js';
1
+ import { A as Annotation, e as RedactionStatus, d as CommentReply, b as AnnotationLayer, N as NormRect } from '../model-D63gedpb.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-D63gedpb.js';
3
+ import { A as AnnotationStore } from '../ProductionDialog-BvRVGdvH.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-BvRVGdvH.js';
5
5
  import * as React from 'react';
6
6
  import { ReactNode } from 'react';
7
7
 
@@ -168,6 +168,11 @@ type ColoredTool = 'highlight' | 'box' | 'stamp';
168
168
  interface ToolSettings {
169
169
  colors: Record<ColoredTool, string>;
170
170
  stampLabel: string;
171
+ /** The stamp tool places this picture (one's saved signature or initials) instead of a label. */
172
+ stampImage: {
173
+ image: string;
174
+ label: string;
175
+ } | null;
171
176
  redactionReason: string;
172
177
  /** Box outline width in points. */
173
178
  strokeWidth: number;
@@ -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-IHTBAY57.js';
2
- export { AnnotationLayerError, LAYER_SCHEMA_VERSION, annotationRects, clampRect, emptyLayer, isEffectiveRedaction, parseAnnotation, parseLayer } from '../chunk-COWZGCL5.js';
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-S33P6THG.js';
2
+ export { AnnotationLayerError, LAYER_SCHEMA_VERSION, annotationRects, clampRect, emptyLayer, isEffectiveRedaction, parseAnnotation, parseLayer } from '../chunk-NBIW7AEE.js';
3
3
  import '../chunk-YNNAJJ5Z.js';
4
4
  import '../chunk-47CCGUWR.js';
5
5
  import '../chunk-SN5YV6FF.js';
@@ -0,0 +1,4 @@
1
+ export { buildBundle } from './chunk-R66GNDO7.js';
2
+ import './chunk-NBIW7AEE.js';
3
+ //# sourceMappingURL=bundle-COMT7X3A.js.map
4
+ //# sourceMappingURL=bundle-COMT7X3A.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"bundle-N2JIJ2T6.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"bundle-COMT7X3A.js"}
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ var chunkUP6PIBVF_cjs = require('./chunk-UP6PIBVF.cjs');
4
+ require('./chunk-LRBOMQ6Q.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "buildBundle", {
9
+ enumerable: true,
10
+ get: function () { return chunkUP6PIBVF_cjs.buildBundle; }
11
+ });
12
+ //# sourceMappingURL=bundle-UWCOLMAA.cjs.map
13
+ //# sourceMappingURL=bundle-UWCOLMAA.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"bundle-T6BEVYHE.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"bundle-UWCOLMAA.cjs"}
@@ -133,7 +133,8 @@ function parseAnnotation(v, path = "annotation") {
133
133
  kind: "stamp",
134
134
  rect: rect(v.rect, `${path}.rect`),
135
135
  label: str(v.label, `${path}.label`, 200),
136
- color: color(v.color, `${path}.color`)
136
+ color: color(v.color, `${path}.color`),
137
+ ...v.image === void 0 || v.image === null ? {} : { image: str(v.image, `${path}.image`, 6e5) }
137
138
  };
138
139
  case "redaction": {
139
140
  const status = v.status;
@@ -190,5 +191,5 @@ exports.emptyLayer = emptyLayer;
190
191
  exports.isEffectiveRedaction = isEffectiveRedaction;
191
192
  exports.parseAnnotation = parseAnnotation;
192
193
  exports.parseLayer = parseLayer;
193
- //# sourceMappingURL=chunk-SSOPIPEX.cjs.map
194
- //# sourceMappingURL=chunk-SSOPIPEX.cjs.map
194
+ //# sourceMappingURL=chunk-LRBOMQ6Q.cjs.map
195
+ //# sourceMappingURL=chunk-LRBOMQ6Q.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/annotations/model.ts"],"names":[],"mappings":";;;AAcO,IAAM,oBAAA,GAAuB;AA4F7B,IAAM,eAAA,GAAkB,GAAA;AACxB,IAAM,eAAA,GAAkB,GAAA;AACxB,IAAM,kBAAA,GAAqB,GAAA;AAElC,IAAM,SAAA,GAAY,mBAAA;AAClB,IAAM,QAAmC,CAAC,WAAA,EAAa,KAAA,EAAO,SAAA,EAAW,SAAS,WAAW,CAAA;AAC7F,IAAM,kBAAA,GAAiD,CAAC,SAAA,EAAW,UAAA,EAAY,UAAU,CAAA;AAEzF,IAAM,YAAA,GAAe,IAAA;AAEd,IAAM,oBAAA,GAAN,cAAmC,KAAA,CAAM;AAAA,EAC9C,YAAY,OAAA,EAAiB;AAC3B,IAAA,KAAA,CAAM,OAAO,CAAA;AACb,IAAA,IAAA,CAAK,IAAA,GAAO,sBAAA;AAAA,EACd;AACF;AAEO,SAAS,UAAA,CAAW,YAAoB,GAAA,EAA8B;AAC3E,EAAA,OAAO,EAAE,QAAQ,oBAAA,EAAsB,UAAA,EAAY,aAAa,EAAC,EAAG,WAAW,GAAA,EAAI;AACrF;AAEA,IAAM,QAAA,GAAW,CAAC,CAAA,KAChB,OAAO,CAAA,KAAM,QAAA,IAAY,CAAA,KAAM,IAAA,IAAQ,CAAC,KAAA,CAAM,OAAA,CAAQ,CAAC,CAAA;AAEzD,SAAS,IAAA,CAAK,MAAc,OAAA,EAAwB;AAClD,EAAA,MAAM,IAAI,oBAAA,CAAqB,CAAA,EAAG,IAAI,CAAA,EA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AAA,EAAa,eAAe,CAAA,YAAA,CAAc,CAAA;AAAA,EACtE;AACA,EAAA,MAAM,WAAA,GAAc,CAAA,CAAE,WAAA,CAAY,GAAA,CAAI,CAAC,CAAA,EAAG,CAAA,KAAM,eAAA,CAAgB,CAAA,EAAG,CAAA,kBAAA,EAAqB,CAAC,CAAA,CAAA,CAAG,CAAC,CAAA;AAC7F,EAAA,MAAM,IAAA,uBAAW,GAAA,EAAY;AAC7B,EAAA,KAAA,MAAW,KAAK,WAAA,EAAa;AAC3B,IAAA,IAAI,IAAA,CAAK,GAAA,CAAI,CAAA,CAAE,EAAE,CAAA,OAAQ,mBAAA,EAAqB,CAAA,aAAA,EAAgB,CAAA,CAAE,EAAE,CAAA,CAAE,CAAA;AACpE,IAAA,IAAA,CAAK,GAAA,CAAI,EAAE,EAAE,CAAA;AAAA,EACf;AACA,EAAA,OAAO;AAAA,IACL,MAAA,EAAQ,oBAAA;AAAA,IACR,UAAA,EAAY,GAAA,CAAI,CAAA,CAAE,UAAA,EAAY,oBAAoB,GAAG,CAAA;AAAA,IACrD,YAAA,EAAc,MAAA,CAAO,CAAA,CAAE,YAAA,EAAc,oBAAoB,CAAA;AAAA,IACzD,WAAA;AAAA,IACA,SAAA,EAAW,GAAA,CAAI,CAAA,CAAE,SAAA,EAAW,iBAAiB;AAAA,GAC/C;AACF;AAGO,SAAS,gBAAgB,CAAA,EAA2B;AACzD,EAAA,OAAO,CAAA,CAAE,IAAA,KAAS,WAAA,IAAe,CAAA,CAAE,IAAA,KAAS,cAAc,CAAA,CAAE,KAAA,GAAQ,CAAC,CAAA,CAAE,IAAI,CAAA;AAC7E;AAMO,SAAS,qBAAqB,CAAA,EAAyC;AAC5E,EAAA,OAAO,CAAA,CAAE,IAAA,KAAS,WAAA,IAAe,CAAA,CAAE,MAAA,KAAW,UAAA;AAChD","file":"chunk-LRBOMQ6Q.cjs","sourcesContent":["/**\n * Annotation layer data model.\n *\n * A layer is plain JSON that sits NEXT TO an immutable document: the original file is never\n * touched, marks are drawn over it, and \"freezing\" (see `freeze.ts`) derives a new document.\n *\n * Geometry is stored as fractions (0..1) of the page as DISPLAYED (after rotation and crop),\n * origin top-left. That makes a mark independent of zoom, device pixel ratio and PDF units, and\n * because the original never changes the coordinates never drift.\n *\n * A redaction mark carries the matched text so a reviewer (or an agent) can see what it hides.\n * That text is sensitive: the layer must never travel with a frozen copy.\n */\n\nexport const LAYER_SCHEMA_VERSION = 1\n\nexport type AnnotationKind = 'highlight' | 'box' | 'comment' | 'stamp' | 'redaction'\nexport type RedactionStatus = 'pending' | 'approved' | 'rejected'\n\n/** Fractions of the displayed page, origin top-left. */\nexport interface NormRect {\n x: number\n y: number\n w: number\n h: number\n}\n\nexport interface CommentReply {\n id: string\n author: string\n createdAt: string\n body: string\n}\n\ninterface AnnotationBase {\n id: string\n /** 1-based page number. */\n page: number\n author: string\n createdAt: string\n updatedAt: string\n}\n\nexport interface HighlightAnnotation extends AnnotationBase {\n kind: 'highlight'\n rects: NormRect[]\n color: string\n /** The highlighted text, when it came from a text selection. */\n text?: string\n}\n\nexport interface BoxAnnotation extends AnnotationBase {\n kind: 'box'\n rect: NormRect\n color: string\n /** Outline width in PDF points at 100%. */\n strokeWidth: number\n}\n\nexport interface CommentAnnotation extends AnnotationBase {\n kind: 'comment'\n /** Anchor box; the note icon is drawn at its top-left corner. */\n rect: NormRect\n body: string\n replies: CommentReply[]\n resolved: boolean\n}\n\nexport interface StampAnnotation extends AnnotationBase {\n kind: 'stamp'\n rect: NormRect\n label: string\n color: string\n /**\n * A picture stamp: one's saved signature or initials placed on the page (base64 PNG), drawn in\n * the box in place of the framed label (which then only names it).\n */\n image?: string\n}\n\nexport interface RedactionAnnotation extends AnnotationBase {\n kind: 'redaction'\n rects: NormRect[]\n /** Why it is redacted (e.g. \"Privileged\"). Printed on the frozen copy, never the text itself. */\n reason: string\n /** The text under the mark. Sensitive: stays in the layer, never in a frozen document. */\n text?: string\n status: RedactionStatus\n /** Who last approved or rejected it, and when (absent while pending). For the redaction log. */\n reviewedBy?: string\n reviewedAt?: string\n}\n\nexport type Annotation =\n HighlightAnnotation | BoxAnnotation | CommentAnnotation | StampAnnotation | RedactionAnnotation\n\nexport interface AnnotationLayer {\n schema: typeof LAYER_SCHEMA_VERSION\n /** External id of the immutable document the layer annotates. */\n documentId: string\n /** Optional content hash of the original, so a layer can be checked against the file it marks. */\n documentHash?: string\n annotations: Annotation[]\n updatedAt: string\n}\n\nexport const MAX_TEXT_LENGTH = 20_000\nexport const MAX_ANNOTATIONS = 20_000\nexport const MAX_RECTS_PER_MARK = 2_000\n\nconst HEX_COLOR = /^#[0-9a-fA-F]{6}$/\nconst KINDS: readonly AnnotationKind[] = ['highlight', 'box', 'comment', 'stamp', 'redaction']\nconst REDACTION_STATUSES: readonly RedactionStatus[] = ['pending', 'approved', 'rejected']\n/** Tolerance for rects that overshoot the page edge by floating-point noise. */\nconst EDGE_EPSILON = 1e-6\n\nexport class AnnotationLayerError extends Error {\n constructor(message: string) {\n super(message)\n this.name = 'AnnotationLayerError'\n }\n}\n\nexport function emptyLayer(documentId: string, now: string): AnnotationLayer {\n return { schema: LAYER_SCHEMA_VERSION, documentId, annotations: [], updatedAt: now }\n}\n\nconst isRecord = (v: unknown): v is Record<string, unknown> =>\n typeof v === 'object' && v !== null && !Array.isArray(v)\n\nfunction fail(path: string, problem: string): never {\n throw new AnnotationLayerError(`${path}: ${problem}`)\n}\n\nfunction str(v: unknown, path: string, max = MAX_TEXT_LENGTH): string {\n if (typeof v !== 'string') fail(path, 'expected a string')\n if (v.length > max) fail(path, `longer than ${max} characters`)\n return v\n}\n\nfunction optStr(v: unknown, path: string): string | undefined {\n return v === undefined ? undefined : str(v, path)\n}\n\nfunction iso(v: unknown, path: string): string {\n const s = str(v, path, 64)\n if (Number.isNaN(Date.parse(s))) fail(path, 'expected an ISO date')\n return s\n}\n\nfunction color(v: unknown, path: string): string {\n const s = str(v, path, 16)\n if (!HEX_COLOR.test(s)) fail(path, 'expected a #rrggbb colour')\n return s\n}\n\nfunction bool(v: unknown, path: string): boolean {\n if (typeof v !== 'boolean') fail(path, 'expected a boolean')\n return v\n}\n\nfunction rect(v: unknown, path: string): NormRect {\n if (!isRecord(v)) fail(path, 'expected a rectangle')\n const out = { x: v.x, y: v.y, w: v.w, h: v.h }\n for (const [key, n] of Object.entries(out)) {\n if (typeof n !== 'number' || !Number.isFinite(n)) fail(`${path}.${key}`, 'expected a number')\n }\n const r = out as NormRect\n if (r.w < 0 || r.h < 0) fail(path, 'negative size')\n if (r.x < -EDGE_EPSILON || r.y < -EDGE_EPSILON) fail(path, 'outside the page')\n if (r.x + r.w > 1 + EDGE_EPSILON || r.y + r.h > 1 + EDGE_EPSILON) fail(path, 'outside the page')\n return clampRect(r)\n}\n\nfunction rects(v: unknown, path: string): NormRect[] {\n if (!Array.isArray(v)) fail(path, 'expected a list of rectangles')\n if (v.length === 0) fail(path, 'needs at least one rectangle')\n if (v.length > MAX_RECTS_PER_MARK) fail(path, `more than ${MAX_RECTS_PER_MARK} rectangles`)\n return v.map((r, i) => rect(r, `${path}[${i}]`))\n}\n\nfunction reply(v: unknown, path: string): CommentReply {\n if (!isRecord(v)) fail(path, 'expected a reply')\n return {\n id: str(v.id, `${path}.id`, 128),\n author: str(v.author, `${path}.author`, 256),\n createdAt: iso(v.createdAt, `${path}.createdAt`),\n body: str(v.body, `${path}.body`),\n }\n}\n\nexport function clampRect(r: NormRect): NormRect {\n const x = Math.min(1, Math.max(0, r.x))\n const y = Math.min(1, Math.max(0, r.y))\n return { x, y, w: Math.min(r.w, 1 - x), h: Math.min(r.h, 1 - y) }\n}\n\n/** Validate one annotation from untrusted JSON. Throws `AnnotationLayerError`. */\nexport function parseAnnotation(v: unknown, path = 'annotation'): Annotation {\n if (!isRecord(v)) fail(path, 'expected an object')\n const kind = v.kind\n if (typeof kind !== 'string' || !KINDS.includes(kind as AnnotationKind)) {\n fail(`${path}.kind`, 'unknown annotation kind')\n }\n const page = v.page\n if (typeof page !== 'number' || !Number.isInteger(page) || page < 1) {\n fail(`${path}.page`, 'expected a page number of 1 or more')\n }\n const base: AnnotationBase = {\n id: str(v.id, `${path}.id`, 128),\n page,\n author: str(v.author, `${path}.author`, 256),\n createdAt: iso(v.createdAt, `${path}.createdAt`),\n updatedAt: iso(v.updatedAt, `${path}.updatedAt`),\n }\n if (!base.id) fail(`${path}.id`, 'empty id')\n\n switch (kind as AnnotationKind) {\n case 'highlight':\n return {\n ...base,\n kind: 'highlight',\n rects: rects(v.rects, `${path}.rects`),\n color: color(v.color, `${path}.color`),\n text: optStr(v.text, `${path}.text`),\n }\n case 'box': {\n const strokeWidth = v.strokeWidth\n if (typeof strokeWidth !== 'number' || !(strokeWidth > 0) || strokeWidth > 50) {\n fail(`${path}.strokeWidth`, 'expected a width between 0 and 50')\n }\n return {\n ...base,\n kind: 'box',\n rect: rect(v.rect, `${path}.rect`),\n color: color(v.color, `${path}.color`),\n strokeWidth,\n }\n }\n case 'comment': {\n if (!Array.isArray(v.replies)) fail(`${path}.replies`, 'expected a list')\n return {\n ...base,\n kind: 'comment',\n rect: rect(v.rect, `${path}.rect`),\n body: str(v.body, `${path}.body`),\n replies: v.replies.map((r, i) => reply(r, `${path}.replies[${i}]`)),\n resolved: bool(v.resolved, `${path}.resolved`),\n }\n }\n case 'stamp':\n return {\n ...base,\n kind: 'stamp',\n rect: rect(v.rect, `${path}.rect`),\n label: str(v.label, `${path}.label`, 200),\n color: color(v.color, `${path}.color`),\n ...(v.image === undefined || v.image === null\n ? {}\n : { image: str(v.image, `${path}.image`, 600_000) }),\n }\n case 'redaction': {\n const status = v.status\n if (typeof status !== 'string' || !REDACTION_STATUSES.includes(status as RedactionStatus)) {\n fail(`${path}.status`, 'unknown redaction status')\n }\n return {\n ...base,\n kind: 'redaction',\n rects: rects(v.rects, `${path}.rects`),\n reason: str(v.reason, `${path}.reason`, 200),\n text: optStr(v.text, `${path}.text`),\n status: status as RedactionStatus,\n ...(v.reviewedBy === undefined\n ? {}\n : { reviewedBy: str(v.reviewedBy, `${path}.reviewedBy`, 256) }),\n ...(v.reviewedAt === undefined\n ? {}\n : { reviewedAt: iso(v.reviewedAt, `${path}.reviewedAt`) }),\n }\n }\n }\n}\n\n/** Validate a whole layer from untrusted JSON (storage, network, an agent). */\nexport function parseLayer(v: unknown): AnnotationLayer {\n if (!isRecord(v)) fail('layer', 'expected an object')\n if (v.schema !== LAYER_SCHEMA_VERSION)\n fail('layer.schema', `expected schema ${LAYER_SCHEMA_VERSION}`)\n if (!Array.isArray(v.annotations)) fail('layer.annotations', 'expected a list')\n if (v.annotations.length > MAX_ANNOTATIONS) {\n fail('layer.annotations', `more than ${MAX_ANNOTATIONS} annotations`)\n }\n const annotations = v.annotations.map((a, i) => parseAnnotation(a, `layer.annotations[${i}]`))\n const seen = new Set<string>()\n for (const a of annotations) {\n if (seen.has(a.id)) fail('layer.annotations', `duplicate id ${a.id}`)\n seen.add(a.id)\n }\n return {\n schema: LAYER_SCHEMA_VERSION,\n documentId: str(v.documentId, 'layer.documentId', 256),\n documentHash: optStr(v.documentHash, 'layer.documentHash'),\n annotations,\n updatedAt: iso(v.updatedAt, 'layer.updatedAt'),\n }\n}\n\n/** The rectangles a mark covers, whatever its kind. */\nexport function annotationRects(a: Annotation): NormRect[] {\n return a.kind === 'highlight' || a.kind === 'redaction' ? a.rects : [a.rect]\n}\n\n/**\n * True when a redaction mark will be burned into a frozen copy. Fails closed: only an explicit\n * rejection leaves content visible, so a mark nobody reviewed is never silently skipped.\n */\nexport function isEffectiveRedaction(a: Annotation): a is RedactionAnnotation {\n return a.kind === 'redaction' && a.status !== 'rejected'\n}\n"]}
@@ -131,7 +131,8 @@ function parseAnnotation(v, path = "annotation") {
131
131
  kind: "stamp",
132
132
  rect: rect(v.rect, `${path}.rect`),
133
133
  label: str(v.label, `${path}.label`, 200),
134
- color: color(v.color, `${path}.color`)
134
+ color: color(v.color, `${path}.color`),
135
+ ...v.image === void 0 || v.image === null ? {} : { image: str(v.image, `${path}.image`, 6e5) }
135
136
  };
136
137
  case "redaction": {
137
138
  const status = v.status;
@@ -181,5 +182,5 @@ function isEffectiveRedaction(a) {
181
182
  }
182
183
 
183
184
  export { AnnotationLayerError, LAYER_SCHEMA_VERSION, annotationRects, clampRect, emptyLayer, isEffectiveRedaction, parseAnnotation, parseLayer };
184
- //# sourceMappingURL=chunk-COWZGCL5.js.map
185
- //# sourceMappingURL=chunk-COWZGCL5.js.map
185
+ //# sourceMappingURL=chunk-NBIW7AEE.js.map
186
+ //# sourceMappingURL=chunk-NBIW7AEE.js.map