@arbidocs/react 0.5.102 → 0.5.104
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/annotations/freeze/index.cjs +14 -14
- package/dist/annotations/freeze/index.js +3 -3
- package/dist/artifacts/index.cjs +45 -45
- package/dist/artifacts/index.js +8 -8
- package/dist/bundle-DCWPYNGD.cjs +14 -0
- package/dist/{bundle-IC65W2AO.cjs.map → bundle-DCWPYNGD.cjs.map} +1 -1
- package/dist/bundle-JCKKGEJE.js +5 -0
- package/dist/{bundle-YNOX7VIL.js.map → bundle-JCKKGEJE.js.map} +1 -1
- package/dist/calls/livekit/index.cjs +51 -51
- package/dist/calls/livekit/index.d.cts +1 -1
- package/dist/calls/livekit/index.d.ts +1 -1
- package/dist/calls/livekit/index.js +6 -6
- package/dist/{chunk-WJME7DI4.cjs → chunk-524AFWK7.cjs} +68 -68
- package/dist/{chunk-WJME7DI4.cjs.map → chunk-524AFWK7.cjs.map} +1 -1
- package/dist/{chunk-Q65QCWNI.cjs → chunk-6TUNWGRJ.cjs} +60 -60
- package/dist/{chunk-Q65QCWNI.cjs.map → chunk-6TUNWGRJ.cjs.map} +1 -1
- package/dist/{chunk-NDIKMOBJ.cjs → chunk-7C77IBQZ.cjs} +3 -3
- package/dist/{chunk-NDIKMOBJ.cjs.map → chunk-7C77IBQZ.cjs.map} +1 -1
- package/dist/{chunk-OYPKKHXY.js → chunk-7KZS22EK.js} +4 -4
- package/dist/{chunk-OYPKKHXY.js.map → chunk-7KZS22EK.js.map} +1 -1
- package/dist/{chunk-NIKPG4PW.js → chunk-A2XSLTIP.js} +3 -3
- package/dist/{chunk-NIKPG4PW.js.map → chunk-A2XSLTIP.js.map} +1 -1
- package/dist/{chunk-ALT6ETIE.js → chunk-A6HUB6PX.js} +6 -6
- package/dist/{chunk-ALT6ETIE.js.map → chunk-A6HUB6PX.js.map} +1 -1
- package/dist/{chunk-PC4O3JDV.cjs → chunk-B6I2HRRF.cjs} +3 -3
- package/dist/{chunk-PC4O3JDV.cjs.map → chunk-B6I2HRRF.cjs.map} +1 -1
- package/dist/{chunk-UW2SGTI5.js → chunk-GR7CZEJJ.js} +3 -3
- package/dist/{chunk-UW2SGTI5.js.map → chunk-GR7CZEJJ.js.map} +1 -1
- package/dist/{chunk-VIOW22Q4.cjs → chunk-IXE7HCCA.cjs} +44 -44
- package/dist/{chunk-VIOW22Q4.cjs.map → chunk-IXE7HCCA.cjs.map} +1 -1
- package/dist/{chunk-4SH5INC3.js → chunk-LD2SJBXC.js} +5 -5
- package/dist/{chunk-4SH5INC3.js.map → chunk-LD2SJBXC.js.map} +1 -1
- package/dist/{chunk-6SG2OGDR.js → chunk-M74JCOXW.js} +7 -2
- package/dist/chunk-M74JCOXW.js.map +1 -0
- package/dist/{chunk-YIZH5RVW.js → chunk-MAUZSNQY.js} +3 -3
- package/dist/{chunk-YIZH5RVW.js.map → chunk-MAUZSNQY.js.map} +1 -1
- package/dist/{chunk-HAGC67GL.cjs → chunk-Q2GNEVG2.cjs} +7 -2
- package/dist/chunk-Q2GNEVG2.cjs.map +1 -0
- package/dist/{chunk-ZEGCZATR.js → chunk-RC42YRVA.js} +4 -4
- package/dist/{chunk-ZEGCZATR.js.map → chunk-RC42YRVA.js.map} +1 -1
- package/dist/{chunk-Z3W4XFWB.cjs → chunk-TTHJNRLY.cjs} +5 -5
- package/dist/{chunk-Z3W4XFWB.cjs.map → chunk-TTHJNRLY.cjs.map} +1 -1
- package/dist/{chunk-5X3JANHT.js → chunk-V73GLDHD.js} +4 -4
- package/dist/{chunk-5X3JANHT.js.map → chunk-V73GLDHD.js.map} +1 -1
- package/dist/{chunk-ORBUPHMV.cjs → chunk-YD25DEMR.cjs} +41 -41
- package/dist/{chunk-ORBUPHMV.cjs.map → chunk-YD25DEMR.cjs.map} +1 -1
- package/dist/{chunk-5EELSW26.cjs → chunk-YNKV4MN6.cjs} +6 -6
- package/dist/{chunk-5EELSW26.cjs.map → chunk-YNKV4MN6.cjs.map} +1 -1
- package/dist/document-tools/core.cjs +100 -100
- package/dist/document-tools/core.d.cts +2 -2
- package/dist/document-tools/core.d.ts +2 -2
- package/dist/document-tools/core.js +5 -5
- package/dist/document-tools/index.cjs +103 -103
- package/dist/document-tools/index.d.cts +1 -1
- package/dist/document-tools/index.d.ts +1 -1
- package/dist/document-tools/index.js +7 -7
- package/dist/index.cjs +2355 -2211
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +137 -27
- package/dist/index.d.ts +137 -27
- package/dist/index.js +175 -39
- package/dist/index.js.map +1 -1
- package/dist/{query-keys.d-O3lHn6rp.d.cts → query-keys.d-Bpb7R_lB.d.cts} +5 -0
- package/dist/{query-keys.d-O3lHn6rp.d.ts → query-keys.d-Bpb7R_lB.d.ts} +5 -0
- package/dist/shell/index.cjs +39 -39
- package/dist/shell/index.js +4 -4
- package/dist/{useAudioRecorder.d-DpDeeeAZ.d.cts → useAudioRecorder.d-B9rlMI_E.d.cts} +1 -1
- package/dist/{useAudioRecorder.d-DpDeeeAZ.d.ts → useAudioRecorder.d-B9rlMI_E.d.ts} +1 -1
- package/package.json +3 -3
- package/dist/bundle-IC65W2AO.cjs +0 -14
- package/dist/bundle-YNOX7VIL.js +0 -5
- package/dist/chunk-6SG2OGDR.js.map +0 -1
- package/dist/chunk-HAGC67GL.cjs.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-IU2CJNTB.cjs');
|
|
3
|
+
var chunkB6I2HRRF_cjs = require('../../chunk-B6I2HRRF.cjs');
|
|
5
4
|
var chunk2IJP73ZG_cjs = require('../../chunk-2IJP73ZG.cjs');
|
|
5
|
+
require('../../chunk-IU2CJNTB.cjs');
|
|
6
6
|
var reactPdf = require('react-pdf');
|
|
7
7
|
|
|
8
8
|
async function freezePdfInBrowser(bytes, layer, { assets, password, ...options }) {
|
|
9
9
|
const needsRaster = options.mode === "image" || layer.annotations.some(chunk2IJP73ZG_cjs.isEffectiveRedaction);
|
|
10
|
-
const rasterizer = needsRaster ? await
|
|
10
|
+
const rasterizer = needsRaster ? await chunkB6I2HRRF_cjs.createPdfJsRasterizer(reactPdf.pdfjs, bytes, chunkB6I2HRRF_cjs.browserCanvasFactory(), {
|
|
11
11
|
password,
|
|
12
12
|
documentOptions: {
|
|
13
13
|
cMapUrl: assets?.cMapUrl ?? "/cmaps/",
|
|
@@ -16,48 +16,48 @@ async function freezePdfInBrowser(bytes, layer, { assets, password, ...options }
|
|
|
16
16
|
wasmUrl: assets?.wasmUrl ?? "/wasm/"
|
|
17
17
|
}
|
|
18
18
|
}) : void 0;
|
|
19
|
-
return
|
|
19
|
+
return chunkB6I2HRRF_cjs.freezePdf(bytes, layer, { ...options, rasterizer });
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
Object.defineProperty(exports, "DEFAULT_DPI", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkB6I2HRRF_cjs.DEFAULT_DPI; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "FreezeError", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkB6I2HRRF_cjs.FreezeError; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "MAX_PAGE_PIXELS", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkB6I2HRRF_cjs.MAX_PAGE_PIXELS; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "batesLabel", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkB6I2HRRF_cjs.batesLabel; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "browserCanvasFactory", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkB6I2HRRF_cjs.browserCanvasFactory; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "buildBundle", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkB6I2HRRF_cjs.buildBundle; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "burnMarks", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkB6I2HRRF_cjs.burnMarks; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "createPdfJsRasterizer", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkB6I2HRRF_cjs.createPdfJsRasterizer; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "freezePdf", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkB6I2HRRF_cjs.freezePdf; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "readProvenance", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkB6I2HRRF_cjs.readProvenance; }
|
|
61
61
|
});
|
|
62
62
|
exports.freezePdfInBrowser = freezePdfInBrowser;
|
|
63
63
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
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 '../../chunk-PTOP7OHG.js';
|
|
1
|
+
import { createPdfJsRasterizer, browserCanvasFactory, freezePdf } from '../../chunk-A2XSLTIP.js';
|
|
2
|
+
export { DEFAULT_DPI, FreezeError, MAX_PAGE_PIXELS, batesLabel, browserCanvasFactory, buildBundle, burnMarks, createPdfJsRasterizer, freezePdf, readProvenance } from '../../chunk-A2XSLTIP.js';
|
|
4
3
|
import { isEffectiveRedaction } from '../../chunk-T3USOSVN.js';
|
|
4
|
+
import '../../chunk-PTOP7OHG.js';
|
|
5
5
|
import { pdfjs } from 'react-pdf';
|
|
6
6
|
|
|
7
7
|
async function freezePdfInBrowser(bytes, layer, { assets, password, ...options }) {
|
package/dist/artifacts/index.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkIXE7HCCA_cjs = require('../chunk-IXE7HCCA.cjs');
|
|
4
|
+
var chunkMXP4O4DI_cjs = require('../chunk-MXP4O4DI.cjs');
|
|
5
|
+
var chunk6TUNWGRJ_cjs = require('../chunk-6TUNWGRJ.cjs');
|
|
5
6
|
var chunk3AADNIOK_cjs = require('../chunk-3AADNIOK.cjs');
|
|
6
|
-
var
|
|
7
|
+
var chunkQ2GNEVG2_cjs = require('../chunk-Q2GNEVG2.cjs');
|
|
7
8
|
require('../chunk-N73IMVFF.cjs');
|
|
8
|
-
var
|
|
9
|
-
var chunkVOFNX4P6_cjs = require('../chunk-VOFNX4P6.cjs');
|
|
10
|
-
var chunkMXP4O4DI_cjs = require('../chunk-MXP4O4DI.cjs');
|
|
9
|
+
var chunk7C77IBQZ_cjs = require('../chunk-7C77IBQZ.cjs');
|
|
11
10
|
require('../chunk-5NOZDH3F.cjs');
|
|
12
11
|
require('../chunk-S6A6FSG7.cjs');
|
|
12
|
+
var chunkVOFNX4P6_cjs = require('../chunk-VOFNX4P6.cjs');
|
|
13
13
|
var react = require('react');
|
|
14
14
|
var reactQuery = require('@tanstack/react-query');
|
|
15
15
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -270,24 +270,24 @@ var isRefusal = (error) => {
|
|
|
270
270
|
return code === 401 || code === 403;
|
|
271
271
|
};
|
|
272
272
|
function useArtifactText(docId, options) {
|
|
273
|
-
const arbi =
|
|
273
|
+
const arbi = chunkQ2GNEVG2_cjs.useArbi();
|
|
274
274
|
const { attempts, baseDelayMs, maxDelayMs } = {
|
|
275
275
|
...DEFAULT_ARTIFACT_TEXT_RETRY,
|
|
276
276
|
...options?.retry
|
|
277
277
|
};
|
|
278
|
-
const enabled = (options?.enabled ?? true) &&
|
|
278
|
+
const enabled = (options?.enabled ?? true) && chunk7C77IBQZ_cjs.isDocumentId(docId) && arbi.hasWorkspace;
|
|
279
279
|
const query = reactQuery.useQuery({
|
|
280
280
|
// Under the shared `parsedDoc` key, so a document's invalidation reaches it too.
|
|
281
|
-
queryKey: [...
|
|
281
|
+
queryKey: [...chunkQ2GNEVG2_cjs.arbiQueryKeys.parsedDoc(docId ?? "", "marker"), "artifact-text"],
|
|
282
282
|
queryFn: async () => {
|
|
283
|
-
const { docId: plainId, version } =
|
|
283
|
+
const { docId: plainId, version } = chunk7C77IBQZ_cjs.parseVersionRef(docId);
|
|
284
284
|
const parsed = await arbi.documents.getParsedContent(
|
|
285
285
|
plainId,
|
|
286
286
|
"marker",
|
|
287
287
|
version ?? void 0
|
|
288
288
|
);
|
|
289
289
|
if (!parsed.chunks?.some((c) => c.content?.trim())) throw new NotParsedYetError();
|
|
290
|
-
return
|
|
290
|
+
return chunk7C77IBQZ_cjs.flattenChunks(parsed.chunks, { unescape: true });
|
|
291
291
|
},
|
|
292
292
|
enabled,
|
|
293
293
|
retry: (failureCount, error) => !isRefusal(error) && failureCount < attempts,
|
|
@@ -325,22 +325,22 @@ function useArtifactText(docId, options) {
|
|
|
325
325
|
|
|
326
326
|
// src/artifacts/useArtifactSession.ts
|
|
327
327
|
function useArtifactVersions(workspaceId, docId) {
|
|
328
|
-
const plainId = docId ?
|
|
329
|
-
const { data: documents } =
|
|
328
|
+
const plainId = docId ? chunk7C77IBQZ_cjs.parseVersionRef(docId).docId : null;
|
|
329
|
+
const { data: documents } = chunkIXE7HCCA_cjs.useDocuments(workspaceId);
|
|
330
330
|
const listed = react.useMemo(
|
|
331
331
|
() => (documents ?? []).find((d) => d.external_id === plainId),
|
|
332
332
|
[documents, plainId]
|
|
333
333
|
);
|
|
334
|
-
const { data: history } =
|
|
334
|
+
const { data: history } = chunk6TUNWGRJ_cjs.useDocumentVersionList(plainId, {
|
|
335
335
|
enabled: !!plainId && documents !== void 0 && !listed
|
|
336
336
|
});
|
|
337
337
|
return react.useMemo(
|
|
338
|
-
() => listed ?
|
|
338
|
+
() => listed ? chunk7C77IBQZ_cjs.documentVersions(listed) : chunk7C77IBQZ_cjs.toArtifactVersions(plainId, history),
|
|
339
339
|
[listed, history, plainId]
|
|
340
340
|
);
|
|
341
341
|
}
|
|
342
342
|
function useSaveArtifactVersion() {
|
|
343
|
-
const arbi =
|
|
343
|
+
const arbi = chunkQ2GNEVG2_cjs.useArbi();
|
|
344
344
|
const queryClient = reactQuery.useQueryClient();
|
|
345
345
|
return reactQuery.useMutation({
|
|
346
346
|
mutationFn: async ({ title, content, versionOf, configId, wpType }) => {
|
|
@@ -350,15 +350,15 @@ function useSaveArtifactVersion() {
|
|
|
350
350
|
fileName,
|
|
351
351
|
{
|
|
352
352
|
wpType: wpType ?? "artifact",
|
|
353
|
-
versionOf: versionOf ?
|
|
353
|
+
versionOf: versionOf ? chunk7C77IBQZ_cjs.parseVersionRef(versionOf).docId : void 0,
|
|
354
354
|
configExtId: configId ?? void 0
|
|
355
355
|
}
|
|
356
356
|
);
|
|
357
357
|
const docId = result.doc_ext_ids?.[0];
|
|
358
|
-
if (docId) await
|
|
359
|
-
await queryClient.invalidateQueries({ queryKey:
|
|
358
|
+
if (docId) await chunkIXE7HCCA_cjs.refreshDocuments(queryClient, arbi, [docId]);
|
|
359
|
+
await queryClient.invalidateQueries({ queryKey: chunkQ2GNEVG2_cjs.arbiQueryKeys.allDocumentVersions() });
|
|
360
360
|
if (docId)
|
|
361
|
-
await queryClient.invalidateQueries({ queryKey:
|
|
361
|
+
await queryClient.invalidateQueries({ queryKey: chunkQ2GNEVG2_cjs.arbiQueryKeys.parsedDocument(docId) });
|
|
362
362
|
return { docId, version: result.version ?? void 0 };
|
|
363
363
|
}
|
|
364
364
|
});
|
|
@@ -378,7 +378,7 @@ function useArtifactSession(options) {
|
|
|
378
378
|
const [saved, setSaved] = react.useState(null);
|
|
379
379
|
const adopted = saved && saved.forId === hostDocId ? saved : null;
|
|
380
380
|
const docId = adopted?.id ?? hostDocId;
|
|
381
|
-
const isLocal = !
|
|
381
|
+
const isLocal = !chunk7C77IBQZ_cjs.isDocumentId(docId);
|
|
382
382
|
const [ownCompareId, setOwnCompareId] = react.useState(null);
|
|
383
383
|
const activeCompareId = compareId === void 0 ? ownCompareId : compareId;
|
|
384
384
|
const changeCompare = react.useCallback(
|
|
@@ -394,7 +394,7 @@ function useArtifactSession(options) {
|
|
|
394
394
|
enabled: !!activeCompareId
|
|
395
395
|
});
|
|
396
396
|
const saveVersion = useSaveArtifactVersion();
|
|
397
|
-
const current =
|
|
397
|
+
const current = chunk7C77IBQZ_cjs.findVersion(versions, docId);
|
|
398
398
|
const save = react.useCallback(
|
|
399
399
|
async (content) => {
|
|
400
400
|
const result = await saveVersion.mutateAsync({
|
|
@@ -410,7 +410,7 @@ function useArtifactSession(options) {
|
|
|
410
410
|
);
|
|
411
411
|
const handleSaved = react.useCallback(
|
|
412
412
|
(result, content) => {
|
|
413
|
-
if (!
|
|
413
|
+
if (!chunk7C77IBQZ_cjs.isDocumentId(hostDocId) && result.docId)
|
|
414
414
|
setSaved({ forId: hostDocId, id: result.docId, text: content });
|
|
415
415
|
onSaved?.(result, content);
|
|
416
416
|
},
|
|
@@ -439,7 +439,7 @@ function useArtifactSession(options) {
|
|
|
439
439
|
isLoading,
|
|
440
440
|
status,
|
|
441
441
|
versions,
|
|
442
|
-
labelOf: (id) =>
|
|
442
|
+
labelOf: (id) => chunk7C77IBQZ_cjs.versionLabel(versions, id),
|
|
443
443
|
view: {
|
|
444
444
|
content: session.baseline,
|
|
445
445
|
isEditing: session.isEditing,
|
|
@@ -475,9 +475,9 @@ function useArtifactSession(options) {
|
|
|
475
475
|
);
|
|
476
476
|
}
|
|
477
477
|
function useArtifactSource(documentId, enabled = true) {
|
|
478
|
-
const arbi =
|
|
478
|
+
const arbi = chunkQ2GNEVG2_cjs.useArbi();
|
|
479
479
|
return reactQuery.useQuery({
|
|
480
|
-
queryKey:
|
|
480
|
+
queryKey: chunkQ2GNEVG2_cjs.arbiQueryKeys.artifactSource(documentId ?? ""),
|
|
481
481
|
queryFn: async () => (await arbi.documents.download(documentId)).text(),
|
|
482
482
|
enabled: enabled && !!documentId && arbi.isLoggedIn,
|
|
483
483
|
staleTime: 5 * 60 * 1e3
|
|
@@ -504,7 +504,7 @@ function useStreamedArtifact({
|
|
|
504
504
|
const started = react.useRef(null);
|
|
505
505
|
const content = artifact?.content ?? "";
|
|
506
506
|
const title = artifact?.title ?? "Draft";
|
|
507
|
-
const passThrough = !!artifact &&
|
|
507
|
+
const passThrough = !!artifact && chunk7C77IBQZ_cjs.isDocumentId(artifact.doc_ext_id);
|
|
508
508
|
const needsSave = settled && !!artifact && !passThrough && !!content.trim() && !!workspaceId;
|
|
509
509
|
react.useEffect(() => {
|
|
510
510
|
const key = `${attempt}:${content}`;
|
|
@@ -514,7 +514,7 @@ function useStreamedArtifact({
|
|
|
514
514
|
let stored;
|
|
515
515
|
if (clean) stored = clean(content);
|
|
516
516
|
else {
|
|
517
|
-
const report =
|
|
517
|
+
const report = chunk7C77IBQZ_cjs.cleanDraftWithReport(content);
|
|
518
518
|
stored = report.text;
|
|
519
519
|
setCleaned(report);
|
|
520
520
|
onCleaned?.(report);
|
|
@@ -581,71 +581,71 @@ Object.defineProperty(exports, "revertRedlineRegion", {
|
|
|
581
581
|
});
|
|
582
582
|
Object.defineProperty(exports, "cleanDraftMarkdown", {
|
|
583
583
|
enumerable: true,
|
|
584
|
-
get: function () { return
|
|
584
|
+
get: function () { return chunk7C77IBQZ_cjs.cleanDraftMarkdown; }
|
|
585
585
|
});
|
|
586
586
|
Object.defineProperty(exports, "cleanDraftWithReport", {
|
|
587
587
|
enumerable: true,
|
|
588
|
-
get: function () { return
|
|
588
|
+
get: function () { return chunk7C77IBQZ_cjs.cleanDraftWithReport; }
|
|
589
589
|
});
|
|
590
590
|
Object.defineProperty(exports, "documentVersions", {
|
|
591
591
|
enumerable: true,
|
|
592
|
-
get: function () { return
|
|
592
|
+
get: function () { return chunk7C77IBQZ_cjs.documentVersions; }
|
|
593
593
|
});
|
|
594
594
|
Object.defineProperty(exports, "findVersion", {
|
|
595
595
|
enumerable: true,
|
|
596
|
-
get: function () { return
|
|
596
|
+
get: function () { return chunk7C77IBQZ_cjs.findVersion; }
|
|
597
597
|
});
|
|
598
598
|
Object.defineProperty(exports, "flattenChunks", {
|
|
599
599
|
enumerable: true,
|
|
600
|
-
get: function () { return
|
|
600
|
+
get: function () { return chunk7C77IBQZ_cjs.flattenChunks; }
|
|
601
601
|
});
|
|
602
602
|
Object.defineProperty(exports, "isDocumentId", {
|
|
603
603
|
enumerable: true,
|
|
604
|
-
get: function () { return
|
|
604
|
+
get: function () { return chunk7C77IBQZ_cjs.isDocumentId; }
|
|
605
605
|
});
|
|
606
606
|
Object.defineProperty(exports, "parseVersionRef", {
|
|
607
607
|
enumerable: true,
|
|
608
|
-
get: function () { return
|
|
608
|
+
get: function () { return chunk7C77IBQZ_cjs.parseVersionRef; }
|
|
609
609
|
});
|
|
610
610
|
Object.defineProperty(exports, "promoteBoldTitle", {
|
|
611
611
|
enumerable: true,
|
|
612
|
-
get: function () { return
|
|
612
|
+
get: function () { return chunk7C77IBQZ_cjs.promoteBoldTitle; }
|
|
613
613
|
});
|
|
614
614
|
Object.defineProperty(exports, "repairParsedStructure", {
|
|
615
615
|
enumerable: true,
|
|
616
|
-
get: function () { return
|
|
616
|
+
get: function () { return chunk7C77IBQZ_cjs.repairParsedStructure; }
|
|
617
617
|
});
|
|
618
618
|
Object.defineProperty(exports, "repairParsedTitle", {
|
|
619
619
|
enumerable: true,
|
|
620
|
-
get: function () { return
|
|
620
|
+
get: function () { return chunk7C77IBQZ_cjs.repairParsedTitle; }
|
|
621
621
|
});
|
|
622
622
|
Object.defineProperty(exports, "savedFromId", {
|
|
623
623
|
enumerable: true,
|
|
624
|
-
get: function () { return
|
|
624
|
+
get: function () { return chunk7C77IBQZ_cjs.savedFromId; }
|
|
625
625
|
});
|
|
626
626
|
Object.defineProperty(exports, "stripAgentPreamble", {
|
|
627
627
|
enumerable: true,
|
|
628
|
-
get: function () { return
|
|
628
|
+
get: function () { return chunk7C77IBQZ_cjs.stripAgentPreamble; }
|
|
629
629
|
});
|
|
630
630
|
Object.defineProperty(exports, "toArtifactVersions", {
|
|
631
631
|
enumerable: true,
|
|
632
|
-
get: function () { return
|
|
632
|
+
get: function () { return chunk7C77IBQZ_cjs.toArtifactVersions; }
|
|
633
633
|
});
|
|
634
634
|
Object.defineProperty(exports, "unescapeMarkdown", {
|
|
635
635
|
enumerable: true,
|
|
636
|
-
get: function () { return
|
|
636
|
+
get: function () { return chunk7C77IBQZ_cjs.unescapeMarkdown; }
|
|
637
637
|
});
|
|
638
638
|
Object.defineProperty(exports, "unwrapCitationLinks", {
|
|
639
639
|
enumerable: true,
|
|
640
|
-
get: function () { return
|
|
640
|
+
get: function () { return chunk7C77IBQZ_cjs.unwrapCitationLinks; }
|
|
641
641
|
});
|
|
642
642
|
Object.defineProperty(exports, "versionLabel", {
|
|
643
643
|
enumerable: true,
|
|
644
|
-
get: function () { return
|
|
644
|
+
get: function () { return chunk7C77IBQZ_cjs.versionLabel; }
|
|
645
645
|
});
|
|
646
646
|
Object.defineProperty(exports, "versionRef", {
|
|
647
647
|
enumerable: true,
|
|
648
|
-
get: function () { return
|
|
648
|
+
get: function () { return chunk7C77IBQZ_cjs.versionRef; }
|
|
649
649
|
});
|
|
650
650
|
Object.defineProperty(exports, "normalizeMarkdown", {
|
|
651
651
|
enumerable: true,
|
package/dist/artifacts/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { useDocuments, refreshDocuments } from '../chunk-
|
|
2
|
-
import {
|
|
1
|
+
import { useDocuments, refreshDocuments } from '../chunk-MAUZSNQY.js';
|
|
2
|
+
import { MarkdownRenderer } from '../chunk-WL2Y2T47.js';
|
|
3
|
+
import { useDocumentVersionList } from '../chunk-RC42YRVA.js';
|
|
3
4
|
import { revertRedlineRegion, buildHybridRedlineWithRegions, buildHybridRedlineMarkdown } from '../chunk-74N436VK.js';
|
|
4
5
|
export { buildHybridRedlineMarkdown, buildHybridRedlineWithRegions, revertRedlineRegion } from '../chunk-74N436VK.js';
|
|
5
|
-
import { useArbi, arbiQueryKeys } from '../chunk-
|
|
6
|
+
import { useArbi, arbiQueryKeys } from '../chunk-M74JCOXW.js';
|
|
6
7
|
import '../chunk-DPYBZDJB.js';
|
|
7
|
-
import { isDocumentId, parseVersionRef, flattenChunks, documentVersions, toArtifactVersions, findVersion, versionLabel, cleanDraftWithReport } from '../chunk-
|
|
8
|
-
export { cleanDraftMarkdown, cleanDraftWithReport, documentVersions, findVersion, flattenChunks, isDocumentId, parseVersionRef, promoteBoldTitle, repairParsedStructure, repairParsedTitle, savedFromId, stripAgentPreamble, toArtifactVersions, unescapeMarkdown, unwrapCitationLinks, versionLabel, versionRef } from '../chunk-
|
|
9
|
-
import { normalizeMarkdown } from '../chunk-WUTL62MC.js';
|
|
10
|
-
export { normalizeMarkdown } from '../chunk-WUTL62MC.js';
|
|
11
|
-
import { MarkdownRenderer } from '../chunk-WL2Y2T47.js';
|
|
8
|
+
import { isDocumentId, parseVersionRef, flattenChunks, documentVersions, toArtifactVersions, findVersion, versionLabel, cleanDraftWithReport } from '../chunk-GR7CZEJJ.js';
|
|
9
|
+
export { cleanDraftMarkdown, cleanDraftWithReport, documentVersions, findVersion, flattenChunks, isDocumentId, parseVersionRef, promoteBoldTitle, repairParsedStructure, repairParsedTitle, savedFromId, stripAgentPreamble, toArtifactVersions, unescapeMarkdown, unwrapCitationLinks, versionLabel, versionRef } from '../chunk-GR7CZEJJ.js';
|
|
12
10
|
import '../chunk-VSCU7K4V.js';
|
|
13
11
|
import '../chunk-SN5YV6FF.js';
|
|
12
|
+
import { normalizeMarkdown } from '../chunk-WUTL62MC.js';
|
|
13
|
+
export { normalizeMarkdown } from '../chunk-WUTL62MC.js';
|
|
14
14
|
import { useState, useRef, useEffect, useCallback, useMemo } from 'react';
|
|
15
15
|
import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
|
|
16
16
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkB6I2HRRF_cjs = require('./chunk-B6I2HRRF.cjs');
|
|
4
|
+
require('./chunk-2IJP73ZG.cjs');
|
|
5
|
+
require('./chunk-IU2CJNTB.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "buildBundle", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkB6I2HRRF_cjs.buildBundle; }
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=bundle-DCWPYNGD.cjs.map
|
|
14
|
+
//# sourceMappingURL=bundle-DCWPYNGD.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"bundle-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"bundle-DCWPYNGD.cjs"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"bundle-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"bundle-JCKKGEJE.js"}
|