@arbidocs/react 0.5.115 → 0.5.116
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/artifacts/index.cjs +34 -34
- package/dist/calls/livekit/index.cjs +44 -44
- package/dist/{chunk-GFYDHBT3.cjs → chunk-3JAEX57E.cjs} +4 -4
- package/dist/{chunk-GFYDHBT3.cjs.map → chunk-3JAEX57E.cjs.map} +1 -1
- package/dist/{chunk-RHVHNQBR.cjs → chunk-5TRUFWKT.cjs} +6 -6
- package/dist/{chunk-RHVHNQBR.cjs.map → chunk-5TRUFWKT.cjs.map} +1 -1
- package/dist/{chunk-PRQD7VPT.cjs → chunk-K6ELFSG6.cjs} +28 -26
- package/dist/chunk-K6ELFSG6.cjs.map +1 -0
- package/dist/{chunk-7C77IBQZ.cjs → chunk-NDIKMOBJ.cjs} +3 -3
- package/dist/{chunk-7C77IBQZ.cjs.map → chunk-NDIKMOBJ.cjs.map} +1 -1
- package/dist/{chunk-GN5IJKTG.cjs → chunk-YMB6XUR2.cjs} +5 -5
- package/dist/{chunk-GN5IJKTG.cjs.map → chunk-YMB6XUR2.cjs.map} +1 -1
- package/dist/{chunk-TTHJNRLY.cjs → chunk-Z3W4XFWB.cjs} +5 -5
- package/dist/{chunk-TTHJNRLY.cjs.map → chunk-Z3W4XFWB.cjs.map} +1 -1
- package/dist/document-tools/core.cjs +99 -99
- package/dist/document-tools/index.cjs +101 -101
- package/dist/document-tools/useDocumentBytes.js +5 -2
- package/dist/document-tools/useDocumentBytes.js.map +2 -2
- package/dist/index.cjs +1541 -1541
- package/dist/shell/index.cjs +39 -39
- package/dist/ui/index.cjs +13 -13
- package/dist/viewers/index.cjs +9 -9
- package/package.json +3 -3
- package/dist/chunk-PRQD7VPT.cjs.map +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkK6ELFSG6_cjs = require('../chunk-K6ELFSG6.cjs');
|
|
4
|
+
var chunk3JAEX57E_cjs = require('../chunk-3JAEX57E.cjs');
|
|
5
5
|
require('../chunk-SUZORMAB.cjs');
|
|
6
6
|
require('../chunk-2IJP73ZG.cjs');
|
|
7
|
-
require('../chunk-WYZJLZ67.cjs');
|
|
8
7
|
var chunkO32T7XRD_cjs = require('../chunk-O32T7XRD.cjs');
|
|
8
|
+
require('../chunk-NDIKMOBJ.cjs');
|
|
9
|
+
require('../chunk-VOFNX4P6.cjs');
|
|
10
|
+
require('../chunk-WYZJLZ67.cjs');
|
|
9
11
|
require('../chunk-HJDR5HEO.cjs');
|
|
10
|
-
require('../chunk-7C77IBQZ.cjs');
|
|
11
12
|
require('../chunk-5NOZDH3F.cjs');
|
|
12
13
|
require('../chunk-S6A6FSG7.cjs');
|
|
13
|
-
require('../chunk-VOFNX4P6.cjs');
|
|
14
14
|
|
|
15
15
|
// src/document-tools/production.ts
|
|
16
16
|
var PRODUCTIONS_FOLDER = "Productions";
|
|
@@ -37,9 +37,9 @@ async function fetchProductionPdf(client, doc) {
|
|
|
37
37
|
const pdf = isPdfDocument(doc);
|
|
38
38
|
let blob;
|
|
39
39
|
try {
|
|
40
|
-
blob = await (pdf ?
|
|
40
|
+
blob = await (pdf ? chunk3JAEX57E_cjs.fetchDocumentFile : chunk3JAEX57E_cjs.fetchDocumentPdf)(client, doc.external_id);
|
|
41
41
|
} catch (e) {
|
|
42
|
-
if (!pdf && e instanceof
|
|
42
|
+
if (!pdf && e instanceof chunk3JAEX57E_cjs.DocumentFetchError) return null;
|
|
43
43
|
throw e;
|
|
44
44
|
}
|
|
45
45
|
const bytes = new Uint8Array(await blob.arrayBuffer());
|
|
@@ -148,379 +148,379 @@ async function buildProduction(client, documents, choices, options) {
|
|
|
148
148
|
|
|
149
149
|
Object.defineProperty(exports, "DEFAULT_FIELD_SIZE", {
|
|
150
150
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunkK6ELFSG6_cjs.DEFAULT_FIELD_SIZE; }
|
|
152
152
|
});
|
|
153
153
|
Object.defineProperty(exports, "FIELD_TYPE_LABELS", {
|
|
154
154
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkK6ELFSG6_cjs.FIELD_TYPE_LABELS; }
|
|
156
156
|
});
|
|
157
157
|
Object.defineProperty(exports, "INFORMAL_SIGNATURE_NOTE", {
|
|
158
158
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunkK6ELFSG6_cjs.INFORMAL_SIGNATURE_NOTE; }
|
|
160
160
|
});
|
|
161
161
|
Object.defineProperty(exports, "LEGACY_LAYER_PREFIX", {
|
|
162
162
|
enumerable: true,
|
|
163
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunkK6ELFSG6_cjs.LEGACY_LAYER_PREFIX; }
|
|
164
164
|
});
|
|
165
165
|
Object.defineProperty(exports, "MARK_FIELD_TYPES", {
|
|
166
166
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkK6ELFSG6_cjs.MARK_FIELD_TYPES; }
|
|
168
168
|
});
|
|
169
169
|
Object.defineProperty(exports, "MAX_MERGE_ATTEMPTS", {
|
|
170
170
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunkK6ELFSG6_cjs.MAX_MERGE_ATTEMPTS; }
|
|
172
172
|
});
|
|
173
173
|
Object.defineProperty(exports, "MarkupStoreError", {
|
|
174
174
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunkK6ELFSG6_cjs.MarkupStoreError; }
|
|
176
176
|
});
|
|
177
177
|
Object.defineProperty(exports, "SIGNATURE_FIELD_TYPES", {
|
|
178
178
|
enumerable: true,
|
|
179
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunkK6ELFSG6_cjs.SIGNATURE_FIELD_TYPES; }
|
|
180
180
|
});
|
|
181
181
|
Object.defineProperty(exports, "SIGNED_UNCHANGED", {
|
|
182
182
|
enumerable: true,
|
|
183
|
-
get: function () { return
|
|
183
|
+
get: function () { return chunkK6ELFSG6_cjs.SIGNED_UNCHANGED; }
|
|
184
184
|
});
|
|
185
185
|
Object.defineProperty(exports, "SIGNER_PROGRESS_LABELS", {
|
|
186
186
|
enumerable: true,
|
|
187
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunkK6ELFSG6_cjs.SIGNER_PROGRESS_LABELS; }
|
|
188
188
|
});
|
|
189
189
|
Object.defineProperty(exports, "SignatureVerificationError", {
|
|
190
190
|
enumerable: true,
|
|
191
|
-
get: function () { return
|
|
191
|
+
get: function () { return chunkK6ELFSG6_cjs.SignatureVerificationError; }
|
|
192
192
|
});
|
|
193
193
|
Object.defineProperty(exports, "SigningError", {
|
|
194
194
|
enumerable: true,
|
|
195
|
-
get: function () { return
|
|
195
|
+
get: function () { return chunkK6ELFSG6_cjs.SigningError; }
|
|
196
196
|
});
|
|
197
197
|
Object.defineProperty(exports, "VERIFY_PATH", {
|
|
198
198
|
enumerable: true,
|
|
199
|
-
get: function () { return
|
|
199
|
+
get: function () { return chunkK6ELFSG6_cjs.VERIFY_PATH; }
|
|
200
200
|
});
|
|
201
201
|
Object.defineProperty(exports, "addToMarkup", {
|
|
202
202
|
enumerable: true,
|
|
203
|
-
get: function () { return
|
|
203
|
+
get: function () { return chunkK6ELFSG6_cjs.addToMarkup; }
|
|
204
204
|
});
|
|
205
205
|
Object.defineProperty(exports, "canAnnotate", {
|
|
206
206
|
enumerable: true,
|
|
207
|
-
get: function () { return
|
|
207
|
+
get: function () { return chunkK6ELFSG6_cjs.canAnnotate; }
|
|
208
208
|
});
|
|
209
209
|
Object.defineProperty(exports, "copyOpenThreads", {
|
|
210
210
|
enumerable: true,
|
|
211
|
-
get: function () { return
|
|
211
|
+
get: function () { return chunkK6ELFSG6_cjs.copyOpenThreads; }
|
|
212
212
|
});
|
|
213
213
|
Object.defineProperty(exports, "createFileShare", {
|
|
214
214
|
enumerable: true,
|
|
215
|
-
get: function () { return
|
|
215
|
+
get: function () { return chunkK6ELFSG6_cjs.createFileShare; }
|
|
216
216
|
});
|
|
217
217
|
Object.defineProperty(exports, "createMarkupStore", {
|
|
218
218
|
enumerable: true,
|
|
219
|
-
get: function () { return
|
|
219
|
+
get: function () { return chunkK6ELFSG6_cjs.createMarkupStore; }
|
|
220
220
|
});
|
|
221
221
|
Object.defineProperty(exports, "deleteSavedSignature", {
|
|
222
222
|
enumerable: true,
|
|
223
|
-
get: function () { return
|
|
223
|
+
get: function () { return chunkK6ELFSG6_cjs.deleteSavedSignature; }
|
|
224
224
|
});
|
|
225
225
|
Object.defineProperty(exports, "fetchDocumentSignatureRequests", {
|
|
226
226
|
enumerable: true,
|
|
227
|
-
get: function () { return
|
|
227
|
+
get: function () { return chunkK6ELFSG6_cjs.fetchDocumentSignatureRequests; }
|
|
228
228
|
});
|
|
229
229
|
Object.defineProperty(exports, "fetchDocumentSignatures", {
|
|
230
230
|
enumerable: true,
|
|
231
|
-
get: function () { return
|
|
231
|
+
get: function () { return chunkK6ELFSG6_cjs.fetchDocumentSignatures; }
|
|
232
232
|
});
|
|
233
233
|
Object.defineProperty(exports, "fetchSavedSignature", {
|
|
234
234
|
enumerable: true,
|
|
235
|
-
get: function () { return
|
|
235
|
+
get: function () { return chunkK6ELFSG6_cjs.fetchSavedSignature; }
|
|
236
236
|
});
|
|
237
237
|
Object.defineProperty(exports, "fetchSignatureVerification", {
|
|
238
238
|
enumerable: true,
|
|
239
|
-
get: function () { return
|
|
239
|
+
get: function () { return chunkK6ELFSG6_cjs.fetchSignatureVerification; }
|
|
240
240
|
});
|
|
241
241
|
Object.defineProperty(exports, "fieldsFromSuggestions", {
|
|
242
242
|
enumerable: true,
|
|
243
|
-
get: function () { return
|
|
243
|
+
get: function () { return chunkK6ELFSG6_cjs.fieldsFromSuggestions; }
|
|
244
244
|
});
|
|
245
245
|
Object.defineProperty(exports, "fieldsInSigningOrder", {
|
|
246
246
|
enumerable: true,
|
|
247
|
-
get: function () { return
|
|
247
|
+
get: function () { return chunkK6ELFSG6_cjs.fieldsInSigningOrder; }
|
|
248
248
|
});
|
|
249
249
|
Object.defineProperty(exports, "fileShareBytes", {
|
|
250
250
|
enumerable: true,
|
|
251
|
-
get: function () { return
|
|
251
|
+
get: function () { return chunkK6ELFSG6_cjs.fileShareBytes; }
|
|
252
252
|
});
|
|
253
253
|
Object.defineProperty(exports, "fileShareSigningRequest", {
|
|
254
254
|
enumerable: true,
|
|
255
|
-
get: function () { return
|
|
255
|
+
get: function () { return chunkK6ELFSG6_cjs.fileShareSigningRequest; }
|
|
256
256
|
});
|
|
257
257
|
Object.defineProperty(exports, "forgetLegacyLayer", {
|
|
258
258
|
enumerable: true,
|
|
259
|
-
get: function () { return
|
|
259
|
+
get: function () { return chunkK6ELFSG6_cjs.forgetLegacyLayer; }
|
|
260
260
|
});
|
|
261
261
|
Object.defineProperty(exports, "frozenCopyName", {
|
|
262
262
|
enumerable: true,
|
|
263
|
-
get: function () { return
|
|
263
|
+
get: function () { return chunkK6ELFSG6_cjs.frozenCopyName; }
|
|
264
264
|
});
|
|
265
265
|
Object.defineProperty(exports, "getFileShare", {
|
|
266
266
|
enumerable: true,
|
|
267
|
-
get: function () { return
|
|
267
|
+
get: function () { return chunkK6ELFSG6_cjs.getFileShare; }
|
|
268
268
|
});
|
|
269
269
|
Object.defineProperty(exports, "initialsOf", {
|
|
270
270
|
enumerable: true,
|
|
271
|
-
get: function () { return
|
|
271
|
+
get: function () { return chunkK6ELFSG6_cjs.initialsOf; }
|
|
272
272
|
});
|
|
273
273
|
Object.defineProperty(exports, "intentText", {
|
|
274
274
|
enumerable: true,
|
|
275
|
-
get: function () { return
|
|
275
|
+
get: function () { return chunkK6ELFSG6_cjs.intentText; }
|
|
276
276
|
});
|
|
277
277
|
Object.defineProperty(exports, "inviteSigners", {
|
|
278
278
|
enumerable: true,
|
|
279
|
-
get: function () { return
|
|
279
|
+
get: function () { return chunkK6ELFSG6_cjs.inviteSigners; }
|
|
280
280
|
});
|
|
281
281
|
Object.defineProperty(exports, "isEmailSigner", {
|
|
282
282
|
enumerable: true,
|
|
283
|
-
get: function () { return
|
|
283
|
+
get: function () { return chunkK6ELFSG6_cjs.isEmailSigner; }
|
|
284
284
|
});
|
|
285
285
|
Object.defineProperty(exports, "isLegibleSignatureBox", {
|
|
286
286
|
enumerable: true,
|
|
287
|
-
get: function () { return
|
|
287
|
+
get: function () { return chunkK6ELFSG6_cjs.isLegibleSignatureBox; }
|
|
288
288
|
});
|
|
289
289
|
Object.defineProperty(exports, "isSignatureReference", {
|
|
290
290
|
enumerable: true,
|
|
291
|
-
get: function () { return
|
|
291
|
+
get: function () { return chunkK6ELFSG6_cjs.isSignatureReference; }
|
|
292
292
|
});
|
|
293
293
|
Object.defineProperty(exports, "marksByVersion", {
|
|
294
294
|
enumerable: true,
|
|
295
|
-
get: function () { return
|
|
295
|
+
get: function () { return chunkK6ELFSG6_cjs.marksByVersion; }
|
|
296
296
|
});
|
|
297
297
|
Object.defineProperty(exports, "matchSignedCopy", {
|
|
298
298
|
enumerable: true,
|
|
299
|
-
get: function () { return
|
|
299
|
+
get: function () { return chunkK6ELFSG6_cjs.matchSignedCopy; }
|
|
300
300
|
});
|
|
301
301
|
Object.defineProperty(exports, "migrateLegacyLayer", {
|
|
302
302
|
enumerable: true,
|
|
303
|
-
get: function () { return
|
|
303
|
+
get: function () { return chunkK6ELFSG6_cjs.migrateLegacyLayer; }
|
|
304
304
|
});
|
|
305
305
|
Object.defineProperty(exports, "newFieldId", {
|
|
306
306
|
enumerable: true,
|
|
307
|
-
get: function () { return
|
|
307
|
+
get: function () { return chunkK6ELFSG6_cjs.newFieldId; }
|
|
308
308
|
});
|
|
309
309
|
Object.defineProperty(exports, "openThreadsOf", {
|
|
310
310
|
enumerable: true,
|
|
311
|
-
get: function () { return
|
|
311
|
+
get: function () { return chunkK6ELFSG6_cjs.openThreadsOf; }
|
|
312
312
|
});
|
|
313
313
|
Object.defineProperty(exports, "pngBytes", {
|
|
314
314
|
enumerable: true,
|
|
315
|
-
get: function () { return
|
|
315
|
+
get: function () { return chunkK6ELFSG6_cjs.pngBytes; }
|
|
316
316
|
});
|
|
317
317
|
Object.defineProperty(exports, "pngSize", {
|
|
318
318
|
enumerable: true,
|
|
319
|
-
get: function () { return
|
|
319
|
+
get: function () { return chunkK6ELFSG6_cjs.pngSize; }
|
|
320
320
|
});
|
|
321
321
|
Object.defineProperty(exports, "readLegacyLayer", {
|
|
322
322
|
enumerable: true,
|
|
323
|
-
get: function () { return
|
|
323
|
+
get: function () { return chunkK6ELFSG6_cjs.readLegacyLayer; }
|
|
324
324
|
});
|
|
325
325
|
Object.defineProperty(exports, "redactionLogName", {
|
|
326
326
|
enumerable: true,
|
|
327
|
-
get: function () { return
|
|
327
|
+
get: function () { return chunkK6ELFSG6_cjs.redactionLogName; }
|
|
328
328
|
});
|
|
329
329
|
Object.defineProperty(exports, "saveSignatureRequest", {
|
|
330
330
|
enumerable: true,
|
|
331
|
-
get: function () { return
|
|
331
|
+
get: function () { return chunkK6ELFSG6_cjs.saveSignatureRequest; }
|
|
332
332
|
});
|
|
333
333
|
Object.defineProperty(exports, "sendBlocker", {
|
|
334
334
|
enumerable: true,
|
|
335
|
-
get: function () { return
|
|
335
|
+
get: function () { return chunkK6ELFSG6_cjs.sendBlocker; }
|
|
336
336
|
});
|
|
337
337
|
Object.defineProperty(exports, "sha256Hex", {
|
|
338
338
|
enumerable: true,
|
|
339
|
-
get: function () { return
|
|
339
|
+
get: function () { return chunkK6ELFSG6_cjs.sha256Hex; }
|
|
340
340
|
});
|
|
341
341
|
Object.defineProperty(exports, "signDocument", {
|
|
342
342
|
enumerable: true,
|
|
343
|
-
get: function () { return
|
|
343
|
+
get: function () { return chunkK6ELFSG6_cjs.signDocument; }
|
|
344
344
|
});
|
|
345
345
|
Object.defineProperty(exports, "signFileShare", {
|
|
346
346
|
enumerable: true,
|
|
347
|
-
get: function () { return
|
|
347
|
+
get: function () { return chunkK6ELFSG6_cjs.signFileShare; }
|
|
348
348
|
});
|
|
349
349
|
Object.defineProperty(exports, "signSignatureRequest", {
|
|
350
350
|
enumerable: true,
|
|
351
|
-
get: function () { return
|
|
351
|
+
get: function () { return chunkK6ELFSG6_cjs.signSignatureRequest; }
|
|
352
352
|
});
|
|
353
353
|
Object.defineProperty(exports, "signatureFieldSuggestions", {
|
|
354
354
|
enumerable: true,
|
|
355
|
-
get: function () { return
|
|
355
|
+
get: function () { return chunkK6ELFSG6_cjs.signatureFieldSuggestions; }
|
|
356
356
|
});
|
|
357
357
|
Object.defineProperty(exports, "splitSuggestions", {
|
|
358
358
|
enumerable: true,
|
|
359
|
-
get: function () { return
|
|
359
|
+
get: function () { return chunkK6ELFSG6_cjs.splitSuggestions; }
|
|
360
360
|
});
|
|
361
361
|
Object.defineProperty(exports, "storeSavedSignature", {
|
|
362
362
|
enumerable: true,
|
|
363
|
-
get: function () { return
|
|
363
|
+
get: function () { return chunkK6ELFSG6_cjs.storeSavedSignature; }
|
|
364
364
|
});
|
|
365
365
|
Object.defineProperty(exports, "suggestSignatureFields", {
|
|
366
366
|
enumerable: true,
|
|
367
|
-
get: function () { return
|
|
367
|
+
get: function () { return chunkK6ELFSG6_cjs.suggestSignatureFields; }
|
|
368
368
|
});
|
|
369
369
|
Object.defineProperty(exports, "toAppearance", {
|
|
370
370
|
enumerable: true,
|
|
371
|
-
get: function () { return
|
|
371
|
+
get: function () { return chunkK6ELFSG6_cjs.toAppearance; }
|
|
372
372
|
});
|
|
373
373
|
Object.defineProperty(exports, "uploadFrozenCopy", {
|
|
374
374
|
enumerable: true,
|
|
375
|
-
get: function () { return
|
|
375
|
+
get: function () { return chunkK6ELFSG6_cjs.uploadFrozenCopy; }
|
|
376
376
|
});
|
|
377
377
|
Object.defineProperty(exports, "useDeclineSignatureRequest", {
|
|
378
378
|
enumerable: true,
|
|
379
|
-
get: function () { return
|
|
379
|
+
get: function () { return chunkK6ELFSG6_cjs.useDeclineSignatureRequest; }
|
|
380
380
|
});
|
|
381
381
|
Object.defineProperty(exports, "useDeleteSavedSignature", {
|
|
382
382
|
enumerable: true,
|
|
383
|
-
get: function () { return
|
|
383
|
+
get: function () { return chunkK6ELFSG6_cjs.useDeleteSavedSignature; }
|
|
384
384
|
});
|
|
385
385
|
Object.defineProperty(exports, "useDocumentBytes", {
|
|
386
386
|
enumerable: true,
|
|
387
|
-
get: function () { return
|
|
387
|
+
get: function () { return chunkK6ELFSG6_cjs.useDocumentBytes; }
|
|
388
388
|
});
|
|
389
389
|
Object.defineProperty(exports, "useDocumentMarkup", {
|
|
390
390
|
enumerable: true,
|
|
391
|
-
get: function () { return
|
|
391
|
+
get: function () { return chunkK6ELFSG6_cjs.useDocumentMarkup; }
|
|
392
392
|
});
|
|
393
393
|
Object.defineProperty(exports, "useDocumentSignatureRequests", {
|
|
394
394
|
enumerable: true,
|
|
395
|
-
get: function () { return
|
|
395
|
+
get: function () { return chunkK6ELFSG6_cjs.useDocumentSignatureRequests; }
|
|
396
396
|
});
|
|
397
397
|
Object.defineProperty(exports, "useDocumentSignatures", {
|
|
398
398
|
enumerable: true,
|
|
399
|
-
get: function () { return
|
|
399
|
+
get: function () { return chunkK6ELFSG6_cjs.useDocumentSignatures; }
|
|
400
400
|
});
|
|
401
401
|
Object.defineProperty(exports, "useFileShare", {
|
|
402
402
|
enumerable: true,
|
|
403
|
-
get: function () { return
|
|
403
|
+
get: function () { return chunkK6ELFSG6_cjs.useFileShare; }
|
|
404
404
|
});
|
|
405
405
|
Object.defineProperty(exports, "useFileSharePdf", {
|
|
406
406
|
enumerable: true,
|
|
407
|
-
get: function () { return
|
|
407
|
+
get: function () { return chunkK6ELFSG6_cjs.useFileSharePdf; }
|
|
408
408
|
});
|
|
409
409
|
Object.defineProperty(exports, "useFileShares", {
|
|
410
410
|
enumerable: true,
|
|
411
|
-
get: function () { return
|
|
411
|
+
get: function () { return chunkK6ELFSG6_cjs.useFileShares; }
|
|
412
412
|
});
|
|
413
413
|
Object.defineProperty(exports, "useInviteSigners", {
|
|
414
414
|
enumerable: true,
|
|
415
|
-
get: function () { return
|
|
415
|
+
get: function () { return chunkK6ELFSG6_cjs.useInviteSigners; }
|
|
416
416
|
});
|
|
417
417
|
Object.defineProperty(exports, "useIsOnline", {
|
|
418
418
|
enumerable: true,
|
|
419
|
-
get: function () { return
|
|
419
|
+
get: function () { return chunkK6ELFSG6_cjs.useIsOnline; }
|
|
420
420
|
});
|
|
421
421
|
Object.defineProperty(exports, "useSaveSignatureRequest", {
|
|
422
422
|
enumerable: true,
|
|
423
|
-
get: function () { return
|
|
423
|
+
get: function () { return chunkK6ELFSG6_cjs.useSaveSignatureRequest; }
|
|
424
424
|
});
|
|
425
425
|
Object.defineProperty(exports, "useSavedSignature", {
|
|
426
426
|
enumerable: true,
|
|
427
|
-
get: function () { return
|
|
427
|
+
get: function () { return chunkK6ELFSG6_cjs.useSavedSignature; }
|
|
428
428
|
});
|
|
429
429
|
Object.defineProperty(exports, "useSignDocument", {
|
|
430
430
|
enumerable: true,
|
|
431
|
-
get: function () { return
|
|
431
|
+
get: function () { return chunkK6ELFSG6_cjs.useSignDocument; }
|
|
432
432
|
});
|
|
433
433
|
Object.defineProperty(exports, "useSignSignatureRequest", {
|
|
434
434
|
enumerable: true,
|
|
435
|
-
get: function () { return
|
|
435
|
+
get: function () { return chunkK6ELFSG6_cjs.useSignSignatureRequest; }
|
|
436
436
|
});
|
|
437
437
|
Object.defineProperty(exports, "useSignatureVerification", {
|
|
438
438
|
enumerable: true,
|
|
439
|
-
get: function () { return
|
|
439
|
+
get: function () { return chunkK6ELFSG6_cjs.useSignatureVerification; }
|
|
440
440
|
});
|
|
441
441
|
Object.defineProperty(exports, "useSignerCandidates", {
|
|
442
442
|
enumerable: true,
|
|
443
|
-
get: function () { return
|
|
443
|
+
get: function () { return chunkK6ELFSG6_cjs.useSignerCandidates; }
|
|
444
444
|
});
|
|
445
445
|
Object.defineProperty(exports, "useStoreSavedSignature", {
|
|
446
446
|
enumerable: true,
|
|
447
|
-
get: function () { return
|
|
447
|
+
get: function () { return chunkK6ELFSG6_cjs.useStoreSavedSignature; }
|
|
448
448
|
});
|
|
449
449
|
Object.defineProperty(exports, "useVoidSignatureRequest", {
|
|
450
450
|
enumerable: true,
|
|
451
|
-
get: function () { return
|
|
451
|
+
get: function () { return chunkK6ELFSG6_cjs.useVoidSignatureRequest; }
|
|
452
452
|
});
|
|
453
453
|
Object.defineProperty(exports, "versionsWithMarkup", {
|
|
454
454
|
enumerable: true,
|
|
455
|
-
get: function () { return
|
|
455
|
+
get: function () { return chunkK6ELFSG6_cjs.versionsWithMarkup; }
|
|
456
456
|
});
|
|
457
457
|
Object.defineProperty(exports, "DocumentFetchError", {
|
|
458
458
|
enumerable: true,
|
|
459
|
-
get: function () { return
|
|
459
|
+
get: function () { return chunk3JAEX57E_cjs.DocumentFetchError; }
|
|
460
460
|
});
|
|
461
461
|
Object.defineProperty(exports, "DocumentToolsProvider", {
|
|
462
462
|
enumerable: true,
|
|
463
|
-
get: function () { return
|
|
463
|
+
get: function () { return chunk3JAEX57E_cjs.DocumentToolsProvider; }
|
|
464
464
|
});
|
|
465
465
|
Object.defineProperty(exports, "MarkupDownloadError", {
|
|
466
466
|
enumerable: true,
|
|
467
|
-
get: function () { return
|
|
467
|
+
get: function () { return chunk3JAEX57E_cjs.MarkupDownloadError; }
|
|
468
468
|
});
|
|
469
469
|
Object.defineProperty(exports, "SIGNED_LOCKED_REASON", {
|
|
470
470
|
enumerable: true,
|
|
471
|
-
get: function () { return
|
|
471
|
+
get: function () { return chunk3JAEX57E_cjs.SIGNED_LOCKED_REASON; }
|
|
472
472
|
});
|
|
473
473
|
Object.defineProperty(exports, "certificateLink", {
|
|
474
474
|
enumerable: true,
|
|
475
|
-
get: function () { return
|
|
475
|
+
get: function () { return chunk3JAEX57E_cjs.certificateLink; }
|
|
476
476
|
});
|
|
477
477
|
Object.defineProperty(exports, "clientUpload", {
|
|
478
478
|
enumerable: true,
|
|
479
|
-
get: function () { return
|
|
479
|
+
get: function () { return chunk3JAEX57E_cjs.clientUpload; }
|
|
480
480
|
});
|
|
481
481
|
Object.defineProperty(exports, "contentDispositionFileName", {
|
|
482
482
|
enumerable: true,
|
|
483
|
-
get: function () { return
|
|
483
|
+
get: function () { return chunk3JAEX57E_cjs.contentDispositionFileName; }
|
|
484
484
|
});
|
|
485
485
|
Object.defineProperty(exports, "currentHasMarkup", {
|
|
486
486
|
enumerable: true,
|
|
487
|
-
get: function () { return
|
|
487
|
+
get: function () { return chunk3JAEX57E_cjs.currentHasMarkup; }
|
|
488
488
|
});
|
|
489
489
|
Object.defineProperty(exports, "defaultCertificateUrl", {
|
|
490
490
|
enumerable: true,
|
|
491
|
-
get: function () { return
|
|
491
|
+
get: function () { return chunk3JAEX57E_cjs.defaultCertificateUrl; }
|
|
492
492
|
});
|
|
493
493
|
Object.defineProperty(exports, "downloadBlob", {
|
|
494
494
|
enumerable: true,
|
|
495
|
-
get: function () { return
|
|
495
|
+
get: function () { return chunk3JAEX57E_cjs.downloadBlob; }
|
|
496
496
|
});
|
|
497
497
|
Object.defineProperty(exports, "fetchDocumentFile", {
|
|
498
498
|
enumerable: true,
|
|
499
|
-
get: function () { return
|
|
499
|
+
get: function () { return chunk3JAEX57E_cjs.fetchDocumentFile; }
|
|
500
500
|
});
|
|
501
501
|
Object.defineProperty(exports, "fetchDocumentPdf", {
|
|
502
502
|
enumerable: true,
|
|
503
|
-
get: function () { return
|
|
503
|
+
get: function () { return chunk3JAEX57E_cjs.fetchDocumentPdf; }
|
|
504
504
|
});
|
|
505
505
|
Object.defineProperty(exports, "fetchMarkupPdf", {
|
|
506
506
|
enumerable: true,
|
|
507
|
-
get: function () { return
|
|
507
|
+
get: function () { return chunk3JAEX57E_cjs.fetchMarkupPdf; }
|
|
508
508
|
});
|
|
509
509
|
Object.defineProperty(exports, "isSignedVersion", {
|
|
510
510
|
enumerable: true,
|
|
511
|
-
get: function () { return
|
|
511
|
+
get: function () { return chunk3JAEX57E_cjs.isSignedVersion; }
|
|
512
512
|
});
|
|
513
513
|
Object.defineProperty(exports, "uploadQueryString", {
|
|
514
514
|
enumerable: true,
|
|
515
|
-
get: function () { return
|
|
515
|
+
get: function () { return chunk3JAEX57E_cjs.uploadQueryString; }
|
|
516
516
|
});
|
|
517
517
|
Object.defineProperty(exports, "useDocumentTools", {
|
|
518
518
|
enumerable: true,
|
|
519
|
-
get: function () { return
|
|
519
|
+
get: function () { return chunk3JAEX57E_cjs.useDocumentTools; }
|
|
520
520
|
});
|
|
521
521
|
Object.defineProperty(exports, "useOptionalDocumentTools", {
|
|
522
522
|
enumerable: true,
|
|
523
|
-
get: function () { return
|
|
523
|
+
get: function () { return chunk3JAEX57E_cjs.useOptionalDocumentTools; }
|
|
524
524
|
});
|
|
525
525
|
Object.defineProperty(exports, "documentBytesKey", {
|
|
526
526
|
enumerable: true,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useQuery } from "@tanstack/react-query";
|
|
2
2
|
import { useDocumentTools } from "./environment.js";
|
|
3
3
|
import { fetchDocumentFile, fetchDocumentPdf } from "./document-pdf.js";
|
|
4
|
+
import { parseVersionRef } from "../artifacts/versions.js";
|
|
4
5
|
import { documentBytesKey } from "../query-keys.js";
|
|
5
6
|
import { documentBytesKey as documentBytesKey2 } from "../query-keys.js";
|
|
6
7
|
function useDocumentBytes(documentRef, options) {
|
|
@@ -17,7 +18,7 @@ function useDocumentBytes(documentRef, options) {
|
|
|
17
18
|
return await (kind === "original" ? fetchDocumentFile : fetchDocumentPdf)(
|
|
18
19
|
client,
|
|
19
20
|
documentRef,
|
|
20
|
-
{ signal }
|
|
21
|
+
{ signal, version: parseVersionRef(documentRef).version ?? version }
|
|
21
22
|
);
|
|
22
23
|
} catch (error) {
|
|
23
24
|
const offline = await fallback?.();
|
|
@@ -28,7 +29,9 @@ function useDocumentBytes(documentRef, options) {
|
|
|
28
29
|
enabled: enabled && !!documentRef,
|
|
29
30
|
// 'always' so it still runs offline: the fallback serves a copy kept on this device.
|
|
30
31
|
networkMode: "always",
|
|
31
|
-
staleTime: Infinity
|
|
32
|
+
staleTime: Infinity,
|
|
33
|
+
// An offline fallback has no verified version; retry the server after reconnecting.
|
|
34
|
+
refetchOnReconnect: "always"
|
|
32
35
|
});
|
|
33
36
|
}
|
|
34
37
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/document-tools/useDocumentBytes.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * The bytes a document viewer shows: the PDF of a document version (`/view`), or for media the\n * stored file itself (`/download`), through the host's API client. Keyed on the version, since a\n * document keeps its id across versions: a new version (a save, a signed copy) must never show the\n * previous one's file.\n */\nimport { useQuery } from '@tanstack/react-query'\nimport { useDocumentTools } from './environment'\nimport { fetchDocumentFile, fetchDocumentPdf } from './document-pdf'\n\nimport type { DocumentBytesKind } from '../query-keys'\nexport type { DocumentBytesKind }\n\nexport { documentBytesKey } from '../query-keys'\nimport { documentBytesKey } from '../query-keys'\n\nexport interface UseDocumentBytesOptions {\n /** The document's current version, so a new one reads afresh. */\n version: number | null | undefined\n kind: DocumentBytesKind\n enabled?: boolean\n /**\n * Bytes to use when the network cannot give them (a copy kept on this device): asked first when\n * offline, and again when the request fails.\n */\n fallback?: () => Promise<Blob | undefined>\n}\n\n/** A document's (or version reference's) bytes; see {@link UseDocumentBytesOptions}. */\nexport function useDocumentBytes(documentRef: string, options: UseDocumentBytesOptions) {\n const { client } = useDocumentTools()\n const { version, kind, enabled = true, fallback } = options\n return useQuery({\n queryKey: documentBytesKey(documentRef, version ?? null, kind),\n queryFn: async ({ signal }) => {\n if (fallback && typeof navigator !== 'undefined' && navigator.onLine === false) {\n const offline = await fallback()\n if (offline) return offline\n }\n try {\n return await (kind === 'original' ? fetchDocumentFile : fetchDocumentPdf)(\n client,\n documentRef,\n { signal }\n )\n } catch (error) {\n const offline = await fallback?.()\n if (offline) return offline\n throw error\n }\n },\n enabled: enabled && !!documentRef,\n // 'always' so it still runs offline: the fallback serves a copy kept on this device.\n networkMode: 'always',\n staleTime: Infinity,\n })\n}\n"],
|
|
5
|
-
"mappings": "AAMA,SAAS,gBAAgB;AACzB,SAAS,wBAAwB;AACjC,SAAS,mBAAmB,wBAAwB;
|
|
4
|
+
"sourcesContent": ["/**\n * The bytes a document viewer shows: the PDF of a document version (`/view`), or for media the\n * stored file itself (`/download`), through the host's API client. Keyed on the version, since a\n * document keeps its id across versions: a new version (a save, a signed copy) must never show the\n * previous one's file.\n */\nimport { useQuery } from '@tanstack/react-query'\nimport { useDocumentTools } from './environment'\nimport { fetchDocumentFile, fetchDocumentPdf } from './document-pdf'\nimport { parseVersionRef } from '../artifacts/versions'\n\nimport type { DocumentBytesKind } from '../query-keys'\nexport type { DocumentBytesKind }\n\nexport { documentBytesKey } from '../query-keys'\nimport { documentBytesKey } from '../query-keys'\n\nexport interface UseDocumentBytesOptions {\n /** The document's current version, so a new one reads afresh. */\n version: number | null | undefined\n kind: DocumentBytesKind\n enabled?: boolean\n /**\n * Bytes to use when the network cannot give them (a copy kept on this device): asked first when\n * offline, and again when the request fails.\n */\n fallback?: () => Promise<Blob | undefined>\n}\n\n/** A document's (or version reference's) bytes; see {@link UseDocumentBytesOptions}. */\nexport function useDocumentBytes(documentRef: string, options: UseDocumentBytesOptions) {\n const { client } = useDocumentTools()\n const { version, kind, enabled = true, fallback } = options\n return useQuery({\n queryKey: documentBytesKey(documentRef, version ?? null, kind),\n queryFn: async ({ signal }) => {\n if (fallback && typeof navigator !== 'undefined' && navigator.onLine === false) {\n const offline = await fallback()\n if (offline) return offline\n }\n try {\n return await (kind === 'original' ? fetchDocumentFile : fetchDocumentPdf)(\n client,\n documentRef,\n { signal, version: parseVersionRef(documentRef).version ?? version }\n )\n } catch (error) {\n const offline = await fallback?.()\n if (offline) return offline\n throw error\n }\n },\n enabled: enabled && !!documentRef,\n // 'always' so it still runs offline: the fallback serves a copy kept on this device.\n networkMode: 'always',\n staleTime: Infinity,\n // An offline fallback has no verified version; retry the server after reconnecting.\n refetchOnReconnect: 'always',\n })\n}\n"],
|
|
5
|
+
"mappings": "AAMA,SAAS,gBAAgB;AACzB,SAAS,wBAAwB;AACjC,SAAS,mBAAmB,wBAAwB;AACpD,SAAS,uBAAuB;AAKhC,SAAS,wBAAwB;AACjC,SAAS,oBAAAA,yBAAwB;AAe1B,SAAS,iBAAiB,aAAqB,SAAkC;AACtF,QAAM,EAAE,OAAO,IAAI,iBAAiB;AACpC,QAAM,EAAE,SAAS,MAAM,UAAU,MAAM,SAAS,IAAI;AACpD,SAAO,SAAS;AAAA,IACd,UAAUA,kBAAiB,aAAa,WAAW,MAAM,IAAI;AAAA,IAC7D,SAAS,OAAO,EAAE,OAAO,MAAM;AAC7B,UAAI,YAAY,OAAO,cAAc,eAAe,UAAU,WAAW,OAAO;AAC9E,cAAM,UAAU,MAAM,SAAS;AAC/B,YAAI,QAAS,QAAO;AAAA,MACtB;AACA,UAAI;AACF,eAAO,OAAO,SAAS,aAAa,oBAAoB;AAAA,UACtD;AAAA,UACA;AAAA,UACA,EAAE,QAAQ,SAAS,gBAAgB,WAAW,EAAE,WAAW,QAAQ;AAAA,QACrE;AAAA,MACF,SAAS,OAAO;AACd,cAAM,UAAU,MAAM,WAAW;AACjC,YAAI,QAAS,QAAO;AACpB,cAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,SAAS,WAAW,CAAC,CAAC;AAAA;AAAA,IAEtB,aAAa;AAAA,IACb,WAAW;AAAA;AAAA,IAEX,oBAAoB;AAAA,EACtB,CAAC;AACH;",
|
|
6
6
|
"names": ["documentBytesKey"]
|
|
7
7
|
}
|