@arbidocs/react 0.4.158 → 0.4.160
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/README.md +13 -6
- package/dist/{store-CoLuVSxI.d.ts → ProductionDialog.d-BD1osHeq.d.cts} +33 -33
- package/dist/{store-BEXGdE1y.d.cts → ProductionDialog.d-CttHqQAh.d.ts} +33 -33
- package/dist/annotations/freeze/index.cjs +15 -15
- package/dist/annotations/freeze/index.d.cts +8 -3
- package/dist/annotations/freeze/index.d.ts +8 -3
- package/dist/annotations/freeze/index.js +3 -3
- package/dist/annotations/index.cjs +56 -56
- package/dist/annotations/index.d.cts +9 -4
- package/dist/annotations/index.d.ts +9 -4
- package/dist/annotations/index.js +2 -2
- package/dist/artifacts/index.cjs +12 -11
- package/dist/artifacts/index.cjs.map +1 -1
- package/dist/artifacts/index.d.cts +4 -4
- package/dist/artifacts/index.d.ts +4 -4
- package/dist/artifacts/index.js +3 -2
- package/dist/artifacts/index.js.map +1 -1
- package/dist/bundle-COMT7X3A.js +4 -0
- package/dist/{bundle-N2JIJ2T6.js.map → bundle-COMT7X3A.js.map} +1 -1
- package/dist/bundle-UWCOLMAA.cjs +13 -0
- package/dist/{bundle-T6BEVYHE.cjs.map → bundle-UWCOLMAA.cjs.map} +1 -1
- package/dist/{chunk-RDLAOB55.cjs → chunk-3LMX6GXR.cjs} +150 -14
- package/dist/chunk-3LMX6GXR.cjs.map +1 -0
- package/dist/{chunk-37TQBT7Y.cjs → chunk-6MTKKT2O.cjs} +188 -126
- package/dist/chunk-6MTKKT2O.cjs.map +1 -0
- package/dist/{chunk-HKIR456G.js → chunk-CEZCFQ47.js} +149 -92
- package/dist/chunk-CEZCFQ47.js.map +1 -0
- package/dist/chunk-CPZ36AQS.js +11 -0
- package/dist/chunk-CPZ36AQS.js.map +1 -0
- package/dist/{chunk-JFKWH6EP.cjs → chunk-EUC2BTNS.cjs} +35 -4
- package/dist/chunk-EUC2BTNS.cjs.map +1 -0
- package/dist/chunk-GTJ667CP.cjs +26 -0
- package/dist/chunk-GTJ667CP.cjs.map +1 -0
- package/dist/{chunk-3XYIQZTH.js → chunk-I5ZBQ63Y.js} +33 -5
- package/dist/chunk-I5ZBQ63Y.js.map +1 -0
- package/dist/chunk-JSSKEXRR.js +22 -0
- package/dist/chunk-JSSKEXRR.js.map +1 -0
- package/dist/{chunk-SSOPIPEX.cjs → chunk-LRBOMQ6Q.cjs} +4 -3
- package/dist/chunk-LRBOMQ6Q.cjs.map +1 -0
- package/dist/{chunk-COWZGCL5.js → chunk-NBIW7AEE.js} +4 -3
- package/dist/chunk-NBIW7AEE.js.map +1 -0
- package/dist/{chunk-QKNJ6FRD.cjs → chunk-ON4PL6DQ.cjs} +4 -4
- package/dist/chunk-ON4PL6DQ.cjs.map +1 -0
- package/dist/{chunk-ZJMUNGOY.js → chunk-R66GNDO7.js} +42 -4
- package/dist/chunk-R66GNDO7.js.map +1 -0
- package/dist/chunk-RCKA7BEF.cjs +14 -0
- package/dist/chunk-RCKA7BEF.cjs.map +1 -0
- package/dist/{chunk-L2PXZWJM.cjs → chunk-RDF2Q45F.cjs} +75 -20
- package/dist/chunk-RDF2Q45F.cjs.map +1 -0
- package/dist/{chunk-IHTBAY57.js → chunk-S33P6THG.js} +59 -4
- package/dist/chunk-S33P6THG.js.map +1 -0
- package/dist/{chunk-2HNEVAXO.js → chunk-SVHGCX25.js} +3 -3
- package/dist/chunk-SVHGCX25.js.map +1 -0
- package/dist/{chunk-QJXFRP5R.cjs → chunk-UP6PIBVF.cjs} +46 -8
- package/dist/chunk-UP6PIBVF.cjs.map +1 -0
- package/dist/{chunk-CNGWJDMG.js → chunk-WOXITGVS.js} +139 -15
- package/dist/chunk-WOXITGVS.js.map +1 -0
- package/dist/document-tools/index.cjs +188 -57
- package/dist/document-tools/index.cjs.map +1 -1
- package/dist/document-tools/index.d.cts +112 -15
- package/dist/document-tools/index.d.ts +112 -15
- package/dist/document-tools/index.js +141 -24
- package/dist/document-tools/index.js.map +1 -1
- package/dist/index.cjs +1771 -1509
- package/dist/index.cjs.map +1 -1
- package/dist/{index-DyFzmDZ2.d.ts → index.d-DfCFKora.d.cts} +49 -5
- package/dist/{index-DyFzmDZ2.d.cts → index.d-DfCFKora.d.ts} +49 -5
- package/dist/{index-CDTwtUr9.d.cts → index.d-eRbU1qpQ.d.cts} +333 -196
- package/dist/{index-CDTwtUr9.d.ts → index.d-eRbU1qpQ.d.ts} +333 -196
- package/dist/index.d.cts +1797 -1504
- package/dist/index.d.ts +1797 -1504
- package/dist/index.js +931 -768
- package/dist/index.js.map +1 -1
- package/dist/{model-DIwXRuGC.d.cts → model.d-D63gedpb.d.cts} +5 -0
- package/dist/{model-DIwXRuGC.d.ts → model.d-D63gedpb.d.ts} +5 -0
- package/dist/shell/index.cjs +24 -15
- package/dist/shell/index.d.cts +1 -1
- package/dist/shell/index.d.ts +1 -1
- package/dist/shell/index.js +2 -1
- package/dist/ui/index.cjs +200 -151
- package/dist/ui/index.d.cts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +3 -2
- package/dist/viewers/index.cjs +3 -2
- package/dist/viewers/index.cjs.map +1 -1
- package/dist/viewers/index.d.cts +2 -2
- package/dist/viewers/index.d.ts +2 -2
- package/dist/viewers/index.js +2 -1
- package/dist/viewers/index.js.map +1 -1
- package/package.json +4 -6
- package/dist/bundle-N2JIJ2T6.js +0 -4
- package/dist/bundle-T6BEVYHE.cjs +0 -13
- package/dist/chunk-2HNEVAXO.js.map +0 -1
- package/dist/chunk-37TQBT7Y.cjs.map +0 -1
- package/dist/chunk-3XYIQZTH.js.map +0 -1
- package/dist/chunk-CNGWJDMG.js.map +0 -1
- package/dist/chunk-COWZGCL5.js.map +0 -1
- package/dist/chunk-CPPBN2JB.js +0 -31
- package/dist/chunk-CPPBN2JB.js.map +0 -1
- package/dist/chunk-HKIR456G.js.map +0 -1
- package/dist/chunk-IHTBAY57.js.map +0 -1
- package/dist/chunk-JFKWH6EP.cjs.map +0 -1
- package/dist/chunk-L2PXZWJM.cjs.map +0 -1
- package/dist/chunk-QJXFRP5R.cjs.map +0 -1
- package/dist/chunk-QKNJ6FRD.cjs.map +0 -1
- package/dist/chunk-R2MF7YCW.cjs +0 -36
- package/dist/chunk-R2MF7YCW.cjs.map +0 -1
- package/dist/chunk-RDLAOB55.cjs.map +0 -1
- package/dist/chunk-SSOPIPEX.cjs.map +0 -1
- package/dist/chunk-ZJMUNGOY.js.map +0 -1
- /package/dist/{PdfViewer-bQH9yxFg.d.cts → PdfViewer.d-bQH9yxFg.d.cts} +0 -0
- /package/dist/{PdfViewer-bQH9yxFg.d.ts → PdfViewer.d-bQH9yxFg.d.ts} +0 -0
- /package/dist/{bundle-BnCSbHy2.d.cts → bundle.d-BnCSbHy2.d.cts} +0 -0
- /package/dist/{bundle-BnCSbHy2.d.ts → bundle.d-BnCSbHy2.d.ts} +0 -0
- /package/dist/{stored-markdown-Bp18vrbr.d.cts → stored-markdown.d-Bp18vrbr.d.cts} +0 -0
- /package/dist/{stored-markdown-Bp18vrbr.d.ts → stored-markdown.d-Bp18vrbr.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -8,25 +8,32 @@ React hooks and provider for building ARBI-powered apps. Includes `@arbidocs/sdk
|
|
|
8
8
|
npm install @arbidocs/react
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
### 1. Set up
|
|
11
|
+
### 1. Set up the host
|
|
12
12
|
|
|
13
13
|
```tsx
|
|
14
14
|
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
|
|
15
|
-
import {
|
|
15
|
+
import { ArbiHost } from '@arbidocs/react'
|
|
16
|
+
import { Arbi } from '@arbidocs/sdk/browser'
|
|
16
17
|
|
|
17
18
|
const queryClient = new QueryClient()
|
|
19
|
+
const arbi = new Arbi({ url: 'https://www.arbidocs.com' })
|
|
18
20
|
|
|
19
21
|
function App() {
|
|
20
22
|
return (
|
|
21
23
|
<QueryClientProvider client={queryClient}>
|
|
22
|
-
<
|
|
24
|
+
<ArbiHost config={{ arbi }}>
|
|
23
25
|
<Chat />
|
|
24
|
-
</
|
|
26
|
+
</ArbiHost>
|
|
25
27
|
</QueryClientProvider>
|
|
26
28
|
)
|
|
27
29
|
}
|
|
28
30
|
```
|
|
29
31
|
|
|
32
|
+
`<ArbiHost config>` is the one place a host hands its configuration to the hooks: `arbi`, and
|
|
33
|
+
optionally `session`, `documents`, `calendar`, `mail`, `account` and `dictate` (each with a
|
|
34
|
+
default). `@arbidocs/blocks` re-exports it with the blocks domains too; a blocks site uses that one
|
|
35
|
+
(see its README).
|
|
36
|
+
|
|
30
37
|
### 2. Build a streaming chat
|
|
31
38
|
|
|
32
39
|
```tsx
|
|
@@ -110,7 +117,7 @@ That's it — three hooks and you have a streaming RAG chat.
|
|
|
110
117
|
| `useSessions()` / `useTerminateSession()` / `useLogoutAllSessions()` | Active sessions, end one, sign out everywhere | Logged in |
|
|
111
118
|
| `useDeleteAccount()` | Close the account (soft delete) | Call `.mutate()` |
|
|
112
119
|
|
|
113
|
-
The account hooks have SDK-free controllers for hosts without an `
|
|
120
|
+
The account hooks have SDK-free controllers for hosts without an `arbi` (`useNameEditor`,
|
|
114
121
|
`useEmailChange`, `usePasswordChangeForm`, `useDeleteAccountFlow`, `useAvatarCrop`,
|
|
115
122
|
`toNotificationPreferences`): they own the form state and take the save as a function. The blocks
|
|
116
123
|
`/connect` entry composes the lot into a settings page (see the Settings page recipe in
|
|
@@ -140,7 +147,7 @@ stored.
|
|
|
140
147
|
|
|
141
148
|
The data side of annotation, markup, freeze, e-signing, signature checking and production sets:
|
|
142
149
|
`DocumentToolsProvider` (the host's API client, user and callbacks; `deploymentDomain` defaults to
|
|
143
|
-
the
|
|
150
|
+
the host `arbi`'s, `useDeploymentDomain()`), `fetchDocumentPdf` (a version's `/view`
|
|
144
151
|
PDF), `useDocumentMarkup`, `createMarkupStore` (an `AnnotationStore` over the server markup, with
|
|
145
152
|
409 merge), `fetchMarkupPdf`, `useDocumentSignatures`, `useSignDocument`,
|
|
146
153
|
`useSignatureVerification` and `buildProduction` / `saveProductionFiles`. The UI is `@arbidocs/blocks/document-tools`; see
|
|
@@ -1,5 +1,37 @@
|
|
|
1
|
+
import { b as AnnotationLayer } from './model.d-D63gedpb.cjs';
|
|
1
2
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Where a layer is kept. The layer is data about a document, not part of it, so the host decides
|
|
6
|
+
* (backend API, IndexedDB, a file). This package ships an in-memory store and a localStorage
|
|
7
|
+
* store; both validate on load because stored JSON is untrusted. A store shared by several
|
|
8
|
+
* writers (ARBI's server-side markup) also implements the optional members: it may merge on save,
|
|
9
|
+
* pull others' changes, and say whether this user may write at all.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
interface AnnotationStore {
|
|
13
|
+
/** The saved layer, or an empty one for a document that has none yet. */
|
|
14
|
+
load(documentId: string): Promise<AnnotationLayer>;
|
|
15
|
+
/**
|
|
16
|
+
* Write a layer. A store with other writers may resolve to what it actually saved — this layer
|
|
17
|
+
* merged with theirs (see `mergeLayers`); the caller then rebases its newer edits onto it.
|
|
18
|
+
*/
|
|
19
|
+
save(layer: AnnotationLayer): Promise<AnnotationLayer | void>;
|
|
20
|
+
/** Others' changes since the last load or save, or null when there are none. */
|
|
21
|
+
pull?(documentId: string): Promise<AnnotationLayer | null>;
|
|
22
|
+
/** Whether this user may change the layer; false makes it view-only. Known after `load`. */
|
|
23
|
+
canEdit?(documentId: string): boolean;
|
|
24
|
+
}
|
|
25
|
+
/** Thrown by a store whose backend cannot be reached: the layer is kept and saved when back. */
|
|
26
|
+
declare class AnnotationStoreOfflineError extends Error {
|
|
27
|
+
constructor(message?: string);
|
|
28
|
+
}
|
|
29
|
+
declare function createMemoryStore(now?: () => string): AnnotationStore;
|
|
30
|
+
/**
|
|
31
|
+
* Per-browser store. Storage can be absent, full or blocked (private windows), so every access is
|
|
32
|
+
* guarded. A saved layer that no longer validates is ignored rather than crashing the viewer.
|
|
33
|
+
*/
|
|
34
|
+
declare function createLocalStorageStore(storage?: Pick<Storage, 'getItem' | 'setItem'> | undefined, now?: () => string): AnnotationStore;
|
|
3
35
|
|
|
4
36
|
/**
|
|
5
37
|
* Asks how to number and package a set of documents as a production. It only collects choices; the
|
|
@@ -49,36 +81,4 @@ declare function qrCornerFor(corner: ProductionCorner): ProductionCorner;
|
|
|
49
81
|
declare function moveItem<T>(items: readonly T[], from: number, to: number): T[];
|
|
50
82
|
declare function ProductionDialog({ open, onOpenChange, documents, leftOut, onConfirm, busy, progress, error, }: ProductionDialogProps): React.JSX.Element;
|
|
51
83
|
|
|
52
|
-
/**
|
|
53
|
-
* Where a layer is kept. The layer is data about a document, not part of it, so the host decides
|
|
54
|
-
* (backend API, IndexedDB, a file). This package ships an in-memory store and a localStorage
|
|
55
|
-
* store; both validate on load because stored JSON is untrusted. A store shared by several
|
|
56
|
-
* writers (ARBI's server-side markup) also implements the optional members: it may merge on save,
|
|
57
|
-
* pull others' changes, and say whether this user may write at all.
|
|
58
|
-
*/
|
|
59
|
-
|
|
60
|
-
interface AnnotationStore {
|
|
61
|
-
/** The saved layer, or an empty one for a document that has none yet. */
|
|
62
|
-
load(documentId: string): Promise<AnnotationLayer>;
|
|
63
|
-
/**
|
|
64
|
-
* Write a layer. A store with other writers may resolve to what it actually saved — this layer
|
|
65
|
-
* merged with theirs (see `mergeLayers`); the caller then rebases its newer edits onto it.
|
|
66
|
-
*/
|
|
67
|
-
save(layer: AnnotationLayer): Promise<AnnotationLayer | void>;
|
|
68
|
-
/** Others' changes since the last load or save, or null when there are none. */
|
|
69
|
-
pull?(documentId: string): Promise<AnnotationLayer | null>;
|
|
70
|
-
/** Whether this user may change the layer; false makes it view-only. Known after `load`. */
|
|
71
|
-
canEdit?(documentId: string): boolean;
|
|
72
|
-
}
|
|
73
|
-
/** Thrown by a store whose backend cannot be reached: the layer is kept and saved when back. */
|
|
74
|
-
declare class AnnotationStoreOfflineError extends Error {
|
|
75
|
-
constructor(message?: string);
|
|
76
|
-
}
|
|
77
|
-
declare function createMemoryStore(now?: () => string): AnnotationStore;
|
|
78
|
-
/**
|
|
79
|
-
* Per-browser store. Storage can be absent, full or blocked (private windows), so every access is
|
|
80
|
-
* guarded. A saved layer that no longer validates is ignored rather than crashing the viewer.
|
|
81
|
-
*/
|
|
82
|
-
declare function createLocalStorageStore(storage?: Pick<Storage, 'getItem' | 'setItem'> | undefined, now?: () => string): AnnotationStore;
|
|
83
|
-
|
|
84
84
|
export { type AnnotationStore as A, type ProductionChoices as P, AnnotationStoreOfflineError as a, type ProductionCorner as b, ProductionDialog as c, type ProductionDialogProps as d, type ProductionDocument as e, createLocalStorageStore as f, createMemoryStore as g, moveItem as m, qrCornerFor as q };
|
|
@@ -1,5 +1,37 @@
|
|
|
1
|
+
import { b as AnnotationLayer } from './model.d-D63gedpb.js';
|
|
1
2
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Where a layer is kept. The layer is data about a document, not part of it, so the host decides
|
|
6
|
+
* (backend API, IndexedDB, a file). This package ships an in-memory store and a localStorage
|
|
7
|
+
* store; both validate on load because stored JSON is untrusted. A store shared by several
|
|
8
|
+
* writers (ARBI's server-side markup) also implements the optional members: it may merge on save,
|
|
9
|
+
* pull others' changes, and say whether this user may write at all.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
interface AnnotationStore {
|
|
13
|
+
/** The saved layer, or an empty one for a document that has none yet. */
|
|
14
|
+
load(documentId: string): Promise<AnnotationLayer>;
|
|
15
|
+
/**
|
|
16
|
+
* Write a layer. A store with other writers may resolve to what it actually saved — this layer
|
|
17
|
+
* merged with theirs (see `mergeLayers`); the caller then rebases its newer edits onto it.
|
|
18
|
+
*/
|
|
19
|
+
save(layer: AnnotationLayer): Promise<AnnotationLayer | void>;
|
|
20
|
+
/** Others' changes since the last load or save, or null when there are none. */
|
|
21
|
+
pull?(documentId: string): Promise<AnnotationLayer | null>;
|
|
22
|
+
/** Whether this user may change the layer; false makes it view-only. Known after `load`. */
|
|
23
|
+
canEdit?(documentId: string): boolean;
|
|
24
|
+
}
|
|
25
|
+
/** Thrown by a store whose backend cannot be reached: the layer is kept and saved when back. */
|
|
26
|
+
declare class AnnotationStoreOfflineError extends Error {
|
|
27
|
+
constructor(message?: string);
|
|
28
|
+
}
|
|
29
|
+
declare function createMemoryStore(now?: () => string): AnnotationStore;
|
|
30
|
+
/**
|
|
31
|
+
* Per-browser store. Storage can be absent, full or blocked (private windows), so every access is
|
|
32
|
+
* guarded. A saved layer that no longer validates is ignored rather than crashing the viewer.
|
|
33
|
+
*/
|
|
34
|
+
declare function createLocalStorageStore(storage?: Pick<Storage, 'getItem' | 'setItem'> | undefined, now?: () => string): AnnotationStore;
|
|
3
35
|
|
|
4
36
|
/**
|
|
5
37
|
* Asks how to number and package a set of documents as a production. It only collects choices; the
|
|
@@ -49,36 +81,4 @@ declare function qrCornerFor(corner: ProductionCorner): ProductionCorner;
|
|
|
49
81
|
declare function moveItem<T>(items: readonly T[], from: number, to: number): T[];
|
|
50
82
|
declare function ProductionDialog({ open, onOpenChange, documents, leftOut, onConfirm, busy, progress, error, }: ProductionDialogProps): React.JSX.Element;
|
|
51
83
|
|
|
52
|
-
/**
|
|
53
|
-
* Where a layer is kept. The layer is data about a document, not part of it, so the host decides
|
|
54
|
-
* (backend API, IndexedDB, a file). This package ships an in-memory store and a localStorage
|
|
55
|
-
* store; both validate on load because stored JSON is untrusted. A store shared by several
|
|
56
|
-
* writers (ARBI's server-side markup) also implements the optional members: it may merge on save,
|
|
57
|
-
* pull others' changes, and say whether this user may write at all.
|
|
58
|
-
*/
|
|
59
|
-
|
|
60
|
-
interface AnnotationStore {
|
|
61
|
-
/** The saved layer, or an empty one for a document that has none yet. */
|
|
62
|
-
load(documentId: string): Promise<AnnotationLayer>;
|
|
63
|
-
/**
|
|
64
|
-
* Write a layer. A store with other writers may resolve to what it actually saved — this layer
|
|
65
|
-
* merged with theirs (see `mergeLayers`); the caller then rebases its newer edits onto it.
|
|
66
|
-
*/
|
|
67
|
-
save(layer: AnnotationLayer): Promise<AnnotationLayer | void>;
|
|
68
|
-
/** Others' changes since the last load or save, or null when there are none. */
|
|
69
|
-
pull?(documentId: string): Promise<AnnotationLayer | null>;
|
|
70
|
-
/** Whether this user may change the layer; false makes it view-only. Known after `load`. */
|
|
71
|
-
canEdit?(documentId: string): boolean;
|
|
72
|
-
}
|
|
73
|
-
/** Thrown by a store whose backend cannot be reached: the layer is kept and saved when back. */
|
|
74
|
-
declare class AnnotationStoreOfflineError extends Error {
|
|
75
|
-
constructor(message?: string);
|
|
76
|
-
}
|
|
77
|
-
declare function createMemoryStore(now?: () => string): AnnotationStore;
|
|
78
|
-
/**
|
|
79
|
-
* Per-browser store. Storage can be absent, full or blocked (private windows), so every access is
|
|
80
|
-
* guarded. A saved layer that no longer validates is ignored rather than crashing the viewer.
|
|
81
|
-
*/
|
|
82
|
-
declare function createLocalStorageStore(storage?: Pick<Storage, 'getItem' | 'setItem'> | undefined, now?: () => string): AnnotationStore;
|
|
83
|
-
|
|
84
84
|
export { type AnnotationStore as A, type ProductionChoices as P, AnnotationStoreOfflineError as a, type ProductionCorner as b, ProductionDialog as c, type ProductionDialogProps as d, type ProductionDocument as e, createLocalStorageStore as f, createMemoryStore as g, moveItem as m, qrCornerFor as q };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
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(
|
|
9
|
-
const rasterizer = needsRaster ? await
|
|
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
|
|
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
|
|
23
|
+
get: function () { return chunkUP6PIBVF_cjs.DEFAULT_DPI; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "FreezeError", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
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
|
|
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
|
|
35
|
+
get: function () { return chunkUP6PIBVF_cjs.batesLabel; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "browserCanvasFactory", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkUP6PIBVF_cjs.browserCanvasFactory; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "buildBundle", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkUP6PIBVF_cjs.buildBundle; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "burnMarks", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkUP6PIBVF_cjs.burnMarks; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "createPdfJsRasterizer", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkUP6PIBVF_cjs.createPdfJsRasterizer; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "freezePdf", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkUP6PIBVF_cjs.freezePdf; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "readProvenance", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkUP6PIBVF_cjs.readProvenance; }
|
|
60
60
|
});
|
|
61
61
|
exports.freezePdfInBrowser = freezePdfInBrowser;
|
|
62
62
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as AnnotationKind, b as AnnotationLayer, A as Annotation } from '../../model-
|
|
2
|
-
import { a as PdfViewerAssets } from '../../PdfViewer-bQH9yxFg.cjs';
|
|
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';
|
|
1
|
+
import { a as AnnotationKind, b as AnnotationLayer, A as Annotation } from '../../model.d-D63gedpb.cjs';
|
|
2
|
+
import { a as PdfViewerAssets } from '../../PdfViewer.d-bQH9yxFg.cjs';
|
|
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';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -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 { a as AnnotationKind, b as AnnotationLayer, A as Annotation } from '../../model-
|
|
2
|
-
import { a as PdfViewerAssets } from '../../PdfViewer-bQH9yxFg.js';
|
|
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';
|
|
1
|
+
import { a as AnnotationKind, b as AnnotationLayer, A as Annotation } from '../../model.d-D63gedpb.js';
|
|
2
|
+
import { a as PdfViewerAssets } from '../../PdfViewer.d-bQH9yxFg.js';
|
|
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';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -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-
|
|
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-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
|
|
4
|
-
var
|
|
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
|
|
13
|
+
get: function () { return chunkRDF2Q45F_cjs.AUTOSAVE_MS; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "AnnotationPageOverlay", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkRDF2Q45F_cjs.AnnotationPageOverlay; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "AnnotationStoreOfflineError", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkRDF2Q45F_cjs.AnnotationStoreOfflineError; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "AnnotationToolbar", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkRDF2Q45F_cjs.AnnotationToolbar; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "DEFAULT_SETTINGS", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkRDF2Q45F_cjs.DEFAULT_SETTINGS; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "FreezeDialog", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkRDF2Q45F_cjs.FreezeDialog; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "HIGHLIGHT_COLORS", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
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
|
|
41
|
+
get: function () { return chunkRDF2Q45F_cjs.MARK_COLORS; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "ProductionDialog", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
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
|
|
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
|
|
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
|
|
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
|
|
61
|
+
get: function () { return chunkRDF2Q45F_cjs.STAMP_PRESETS; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "annotationsOnPage", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkRDF2Q45F_cjs.annotationsOnPage; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "applyAction", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkRDF2Q45F_cjs.applyAction; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "canRedo", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkRDF2Q45F_cjs.canRedo; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "canUndo", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkRDF2Q45F_cjs.canUndo; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "containsPoint", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkRDF2Q45F_cjs.containsPoint; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "createHistory", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkRDF2Q45F_cjs.createHistory; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "createLocalStorageStore", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkRDF2Q45F_cjs.createLocalStorageStore; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "createMemoryStore", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkRDF2Q45F_cjs.createMemoryStore; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "dragRect", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkRDF2Q45F_cjs.dragRect; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "dragToNorm", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkRDF2Q45F_cjs.dragToNorm; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "intersects", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkRDF2Q45F_cjs.intersects; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "isTooSmall", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkRDF2Q45F_cjs.isTooSmall; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "layerStatusText", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkRDF2Q45F_cjs.layerStatusText; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "mergeLayers", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkRDF2Q45F_cjs.mergeLayers; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "mergeLineRects", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkRDF2Q45F_cjs.mergeLineRects; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "moveItem", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkRDF2Q45F_cjs.moveItem; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "patchForRect", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkRDF2Q45F_cjs.patchForRect; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "pendingRedactions", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkRDF2Q45F_cjs.pendingRedactions; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "qrCornerFor", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkRDF2Q45F_cjs.qrCornerFor; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "readSelection", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkRDF2Q45F_cjs.readSelection; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "redactionLogCsv", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkRDF2Q45F_cjs.redactionLogCsv; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "redactionLogRows", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkRDF2Q45F_cjs.redactionLogRows; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "redo", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkRDF2Q45F_cjs.redo; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "reduceLayer", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkRDF2Q45F_cjs.reduceLayer; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "sameMarks", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkRDF2Q45F_cjs.sameMarks; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "selectionToPageMarks", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkRDF2Q45F_cjs.selectionToPageMarks; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "singleRect", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkRDF2Q45F_cjs.singleRect; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "toNorm", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkRDF2Q45F_cjs.toNorm; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "toPixels", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkRDF2Q45F_cjs.toPixels; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "undo", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkRDF2Q45F_cjs.undo; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "useAnnotationLayer", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkRDF2Q45F_cjs.useAnnotationLayer; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "useAnnotationShortcuts", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkRDF2Q45F_cjs.useAnnotationShortcuts; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "useTextSelectionMarks", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkRDF2Q45F_cjs.useTextSelectionMarks; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "AnnotationLayerError", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
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
|
|
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
|
|
205
|
+
get: function () { return chunkLRBOMQ6Q_cjs.annotationRects; }
|
|
206
206
|
});
|
|
207
207
|
Object.defineProperty(exports, "clampRect", {
|
|
208
208
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkLRBOMQ6Q_cjs.clampRect; }
|
|
210
210
|
});
|
|
211
211
|
Object.defineProperty(exports, "emptyLayer", {
|
|
212
212
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunkLRBOMQ6Q_cjs.emptyLayer; }
|
|
214
214
|
});
|
|
215
215
|
Object.defineProperty(exports, "isEffectiveRedaction", {
|
|
216
216
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkLRBOMQ6Q_cjs.isEffectiveRedaction; }
|
|
218
218
|
});
|
|
219
219
|
Object.defineProperty(exports, "parseAnnotation", {
|
|
220
220
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkLRBOMQ6Q_cjs.parseAnnotation; }
|
|
222
222
|
});
|
|
223
223
|
Object.defineProperty(exports, "parseLayer", {
|
|
224
224
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
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-
|
|
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-
|
|
3
|
-
import { A as AnnotationStore } from '../
|
|
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 '../
|
|
1
|
+
import { A as Annotation, e as RedactionStatus, d as CommentReply, b as AnnotationLayer, N as NormRect } from '../model.d-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.d-D63gedpb.cjs';
|
|
3
|
+
import { A as AnnotationStore } from '../ProductionDialog.d-BD1osHeq.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-BD1osHeq.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;
|