@arbidocs/react 0.5.64 → 0.5.65
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 +49 -49
- package/dist/artifacts/index.js +10 -10
- 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 +47 -47
- package/dist/calls/livekit/index.js +8 -8
- package/dist/{chunk-TGSEQGM3.cjs → chunk-2PMH4DTL.cjs} +4 -4
- package/dist/{chunk-TGSEQGM3.cjs.map → chunk-2PMH4DTL.cjs.map} +1 -1
- package/dist/{chunk-ZTPJNKF2.js → chunk-6QGAXWHR.js} +5 -5
- package/dist/{chunk-ZTPJNKF2.js.map → chunk-6QGAXWHR.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-PC4O3JDV.cjs → chunk-B6I2HRRF.cjs} +3 -3
- package/dist/{chunk-PC4O3JDV.cjs.map → chunk-B6I2HRRF.cjs.map} +1 -1
- package/dist/{chunk-SI7DJWBT.js → chunk-CHLDCP3J.js} +3 -3
- package/dist/{chunk-SI7DJWBT.js.map → chunk-CHLDCP3J.js.map} +1 -1
- package/dist/{chunk-3BFSALPC.cjs → chunk-FZ4P7W67.cjs} +5 -5
- package/dist/{chunk-3BFSALPC.cjs.map → chunk-FZ4P7W67.cjs.map} +1 -1
- package/dist/{chunk-QGOYIYLI.js → chunk-HZUMY365.js} +4 -4
- package/dist/{chunk-QGOYIYLI.js.map → chunk-HZUMY365.js.map} +1 -1
- package/dist/{chunk-RS6UUPD2.cjs → chunk-MN4BTKHE.cjs} +6 -6
- package/dist/{chunk-RS6UUPD2.cjs.map → chunk-MN4BTKHE.cjs.map} +1 -1
- package/dist/{chunk-24Q3WUQK.cjs → chunk-MS3T4C4Q.cjs} +7 -7
- package/dist/{chunk-24Q3WUQK.cjs.map → chunk-MS3T4C4Q.cjs.map} +1 -1
- package/dist/{chunk-NNWMHMEC.js → chunk-MZ7EYCGH.js} +3 -3
- package/dist/{chunk-NNWMHMEC.js.map → chunk-MZ7EYCGH.js.map} +1 -1
- package/dist/{chunk-YIIML7Y5.js → chunk-PLF2OEZZ.js} +5 -5
- package/dist/{chunk-YIIML7Y5.js.map → chunk-PLF2OEZZ.js.map} +1 -1
- package/dist/{chunk-4DTTEUVY.js → chunk-QL6CHRQ5.js} +4 -4
- package/dist/{chunk-4DTTEUVY.js.map → chunk-QL6CHRQ5.js.map} +1 -1
- package/dist/{chunk-ZWFMFOGP.cjs → chunk-WEJHHBA2.cjs} +3 -3
- package/dist/{chunk-ZWFMFOGP.cjs.map → chunk-WEJHHBA2.cjs.map} +1 -1
- package/dist/{chunk-GOJHU7RZ.cjs → chunk-XFF66SHT.cjs} +26 -26
- package/dist/{chunk-GOJHU7RZ.cjs.map → chunk-XFF66SHT.cjs.map} +1 -1
- package/dist/{chunk-3NBPMR3X.js → chunk-Y2WKLPN3.js} +5 -5
- package/dist/{chunk-3NBPMR3X.js.map → chunk-Y2WKLPN3.js.map} +1 -1
- package/dist/{chunk-LMW46NBD.cjs → chunk-ZDAILE45.cjs} +6 -6
- package/dist/{chunk-LMW46NBD.cjs.map → chunk-ZDAILE45.cjs.map} +1 -1
- package/dist/document-tools/core.cjs +103 -103
- package/dist/document-tools/core.js +7 -7
- package/dist/document-tools/index.cjs +106 -106
- package/dist/document-tools/index.js +9 -9
- package/dist/index.cjs +1308 -1308
- package/dist/index.js +24 -24
- package/dist/shell/index.cjs +36 -36
- package/dist/shell/index.js +5 -5
- package/dist/ui/index.cjs +195 -195
- package/dist/ui/index.js +4 -4
- package/package.json +3 -3
- package/dist/bundle-IC65W2AO.cjs +0 -14
- package/dist/bundle-YNOX7VIL.js +0 -5
|
@@ -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,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkZNQPUPX6_cjs = require('../chunk-ZNQPUPX6.cjs');
|
|
4
|
-
var
|
|
5
|
-
var chunk3AADNIOK_cjs = require('../chunk-3AADNIOK.cjs');
|
|
6
|
-
var chunkGQAXAZN7_cjs = require('../chunk-GQAXAZN7.cjs');
|
|
7
|
-
var chunkY7S2SQH3_cjs = require('../chunk-Y7S2SQH3.cjs');
|
|
4
|
+
var chunkMN4BTKHE_cjs = require('../chunk-MN4BTKHE.cjs');
|
|
8
5
|
require('../chunk-N73IMVFF.cjs');
|
|
9
|
-
var
|
|
10
|
-
var
|
|
6
|
+
var chunkGQAXAZN7_cjs = require('../chunk-GQAXAZN7.cjs');
|
|
7
|
+
var chunkWEJHHBA2_cjs = require('../chunk-WEJHHBA2.cjs');
|
|
11
8
|
var chunkOC7F5SNA_cjs = require('../chunk-OC7F5SNA.cjs');
|
|
12
9
|
require('../chunk-Z3LLUO32.cjs');
|
|
13
|
-
require('../chunk-RCKA7BEF.cjs');
|
|
14
10
|
require('../chunk-S6A6FSG7.cjs');
|
|
11
|
+
var chunkY7S2SQH3_cjs = require('../chunk-Y7S2SQH3.cjs');
|
|
12
|
+
require('../chunk-RCKA7BEF.cjs');
|
|
13
|
+
var chunk3AADNIOK_cjs = require('../chunk-3AADNIOK.cjs');
|
|
14
|
+
var chunkVOFNX4P6_cjs = require('../chunk-VOFNX4P6.cjs');
|
|
15
15
|
var react = require('react');
|
|
16
16
|
var reactQuery = require('@tanstack/react-query');
|
|
17
17
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -284,19 +284,19 @@ function useArtifactText(docId, options) {
|
|
|
284
284
|
...DEFAULT_ARTIFACT_TEXT_RETRY,
|
|
285
285
|
...options?.retry
|
|
286
286
|
};
|
|
287
|
-
const enabled = (options?.enabled ?? true) &&
|
|
287
|
+
const enabled = (options?.enabled ?? true) && chunkWEJHHBA2_cjs.isDocumentId(docId) && arbi.hasWorkspace;
|
|
288
288
|
const query = reactQuery.useQuery({
|
|
289
289
|
// Under the shared `parsedDoc` key, so a document's invalidation reaches it too.
|
|
290
290
|
queryKey: [...chunkGQAXAZN7_cjs.arbiQueryKeys.parsedDoc(docId ?? "", "marker"), "artifact-text"],
|
|
291
291
|
queryFn: async () => {
|
|
292
|
-
const { docId: plainId, version } =
|
|
292
|
+
const { docId: plainId, version } = chunkWEJHHBA2_cjs.parseVersionRef(docId);
|
|
293
293
|
const parsed = await arbi.documents.getParsedContent(
|
|
294
294
|
plainId,
|
|
295
295
|
"marker",
|
|
296
296
|
version ?? void 0
|
|
297
297
|
);
|
|
298
298
|
if (!parsed.chunks?.some((c) => c.content?.trim())) throw new NotParsedYetError();
|
|
299
|
-
return
|
|
299
|
+
return chunkWEJHHBA2_cjs.flattenChunks(parsed.chunks, { unescape: true });
|
|
300
300
|
},
|
|
301
301
|
enabled,
|
|
302
302
|
retry: (failureCount, error) => !isRefusal(error) && failureCount < attempts,
|
|
@@ -334,17 +334,17 @@ function useArtifactText(docId, options) {
|
|
|
334
334
|
|
|
335
335
|
// src/artifacts/useArtifactSession.ts
|
|
336
336
|
function useArtifactVersions(workspaceId, docId) {
|
|
337
|
-
const plainId = docId ?
|
|
337
|
+
const plainId = docId ? chunkWEJHHBA2_cjs.parseVersionRef(docId).docId : null;
|
|
338
338
|
const { data: documents } = chunkZNQPUPX6_cjs.useDocuments(workspaceId);
|
|
339
339
|
const listed = react.useMemo(
|
|
340
340
|
() => (documents ?? []).find((d) => d.external_id === plainId),
|
|
341
341
|
[documents, plainId]
|
|
342
342
|
);
|
|
343
|
-
const { data: history } =
|
|
343
|
+
const { data: history } = chunkMN4BTKHE_cjs.useDocumentVersionList(plainId, {
|
|
344
344
|
enabled: !!plainId && documents !== void 0 && !listed
|
|
345
345
|
});
|
|
346
346
|
return react.useMemo(
|
|
347
|
-
() => listed ?
|
|
347
|
+
() => listed ? chunkWEJHHBA2_cjs.documentVersions(listed) : chunkWEJHHBA2_cjs.toArtifactVersions(plainId, history),
|
|
348
348
|
[listed, history, plainId]
|
|
349
349
|
);
|
|
350
350
|
}
|
|
@@ -359,7 +359,7 @@ function useSaveArtifactVersion() {
|
|
|
359
359
|
fileName,
|
|
360
360
|
{
|
|
361
361
|
wpType: wpType ?? "artifact",
|
|
362
|
-
versionOf: versionOf ?
|
|
362
|
+
versionOf: versionOf ? chunkWEJHHBA2_cjs.parseVersionRef(versionOf).docId : void 0,
|
|
363
363
|
configExtId: configId ?? void 0
|
|
364
364
|
}
|
|
365
365
|
);
|
|
@@ -387,7 +387,7 @@ function useArtifactSession(options) {
|
|
|
387
387
|
const [saved, setSaved] = react.useState(null);
|
|
388
388
|
const adopted = saved && saved.forId === hostDocId ? saved : null;
|
|
389
389
|
const docId = adopted?.id ?? hostDocId;
|
|
390
|
-
const isLocal = !
|
|
390
|
+
const isLocal = !chunkWEJHHBA2_cjs.isDocumentId(docId);
|
|
391
391
|
const [ownCompareId, setOwnCompareId] = react.useState(null);
|
|
392
392
|
const activeCompareId = compareId === void 0 ? ownCompareId : compareId;
|
|
393
393
|
const changeCompare = react.useCallback(
|
|
@@ -403,7 +403,7 @@ function useArtifactSession(options) {
|
|
|
403
403
|
enabled: !!activeCompareId
|
|
404
404
|
});
|
|
405
405
|
const saveVersion = useSaveArtifactVersion();
|
|
406
|
-
const current =
|
|
406
|
+
const current = chunkWEJHHBA2_cjs.findVersion(versions, docId);
|
|
407
407
|
const save = react.useCallback(
|
|
408
408
|
async (content) => {
|
|
409
409
|
const result = await saveVersion.mutateAsync({
|
|
@@ -419,7 +419,7 @@ function useArtifactSession(options) {
|
|
|
419
419
|
);
|
|
420
420
|
const handleSaved = react.useCallback(
|
|
421
421
|
(result, content) => {
|
|
422
|
-
if (!
|
|
422
|
+
if (!chunkWEJHHBA2_cjs.isDocumentId(hostDocId) && result.docId)
|
|
423
423
|
setSaved({ forId: hostDocId, id: result.docId, text: content });
|
|
424
424
|
onSaved?.(result, content);
|
|
425
425
|
},
|
|
@@ -448,7 +448,7 @@ function useArtifactSession(options) {
|
|
|
448
448
|
isLoading,
|
|
449
449
|
status,
|
|
450
450
|
versions,
|
|
451
|
-
labelOf: (id) =>
|
|
451
|
+
labelOf: (id) => chunkWEJHHBA2_cjs.versionLabel(versions, id),
|
|
452
452
|
view: {
|
|
453
453
|
content: session.baseline,
|
|
454
454
|
isEditing: session.isEditing,
|
|
@@ -513,7 +513,7 @@ function useStreamedArtifact({
|
|
|
513
513
|
const started = react.useRef(null);
|
|
514
514
|
const content = artifact?.content ?? "";
|
|
515
515
|
const title = artifact?.title ?? "Draft";
|
|
516
|
-
const passThrough = !!artifact &&
|
|
516
|
+
const passThrough = !!artifact && chunkWEJHHBA2_cjs.isDocumentId(artifact.doc_ext_id);
|
|
517
517
|
const needsSave = settled && !!artifact && !passThrough && !!content.trim() && !!workspaceId;
|
|
518
518
|
react.useEffect(() => {
|
|
519
519
|
const key = `${attempt}:${content}`;
|
|
@@ -523,7 +523,7 @@ function useStreamedArtifact({
|
|
|
523
523
|
let stored;
|
|
524
524
|
if (clean) stored = clean(content);
|
|
525
525
|
else {
|
|
526
|
-
const report =
|
|
526
|
+
const report = chunkWEJHHBA2_cjs.cleanDraftWithReport(content);
|
|
527
527
|
stored = report.text;
|
|
528
528
|
setCleaned(report);
|
|
529
529
|
onCleaned?.(report);
|
|
@@ -576,85 +576,85 @@ function viewerTabForArtifactMode(mode) {
|
|
|
576
576
|
return artifactKindFromMode(mode) ? "preview" : "edit";
|
|
577
577
|
}
|
|
578
578
|
|
|
579
|
-
Object.defineProperty(exports, "buildHybridRedlineMarkdown", {
|
|
580
|
-
enumerable: true,
|
|
581
|
-
get: function () { return chunk3AADNIOK_cjs.buildHybridRedlineMarkdown; }
|
|
582
|
-
});
|
|
583
|
-
Object.defineProperty(exports, "buildHybridRedlineWithRegions", {
|
|
584
|
-
enumerable: true,
|
|
585
|
-
get: function () { return chunk3AADNIOK_cjs.buildHybridRedlineWithRegions; }
|
|
586
|
-
});
|
|
587
|
-
Object.defineProperty(exports, "revertRedlineRegion", {
|
|
588
|
-
enumerable: true,
|
|
589
|
-
get: function () { return chunk3AADNIOK_cjs.revertRedlineRegion; }
|
|
590
|
-
});
|
|
591
579
|
Object.defineProperty(exports, "cleanDraftMarkdown", {
|
|
592
580
|
enumerable: true,
|
|
593
|
-
get: function () { return
|
|
581
|
+
get: function () { return chunkWEJHHBA2_cjs.cleanDraftMarkdown; }
|
|
594
582
|
});
|
|
595
583
|
Object.defineProperty(exports, "cleanDraftWithReport", {
|
|
596
584
|
enumerable: true,
|
|
597
|
-
get: function () { return
|
|
585
|
+
get: function () { return chunkWEJHHBA2_cjs.cleanDraftWithReport; }
|
|
598
586
|
});
|
|
599
587
|
Object.defineProperty(exports, "documentVersions", {
|
|
600
588
|
enumerable: true,
|
|
601
|
-
get: function () { return
|
|
589
|
+
get: function () { return chunkWEJHHBA2_cjs.documentVersions; }
|
|
602
590
|
});
|
|
603
591
|
Object.defineProperty(exports, "findVersion", {
|
|
604
592
|
enumerable: true,
|
|
605
|
-
get: function () { return
|
|
593
|
+
get: function () { return chunkWEJHHBA2_cjs.findVersion; }
|
|
606
594
|
});
|
|
607
595
|
Object.defineProperty(exports, "flattenChunks", {
|
|
608
596
|
enumerable: true,
|
|
609
|
-
get: function () { return
|
|
597
|
+
get: function () { return chunkWEJHHBA2_cjs.flattenChunks; }
|
|
610
598
|
});
|
|
611
599
|
Object.defineProperty(exports, "isDocumentId", {
|
|
612
600
|
enumerable: true,
|
|
613
|
-
get: function () { return
|
|
601
|
+
get: function () { return chunkWEJHHBA2_cjs.isDocumentId; }
|
|
614
602
|
});
|
|
615
603
|
Object.defineProperty(exports, "parseVersionRef", {
|
|
616
604
|
enumerable: true,
|
|
617
|
-
get: function () { return
|
|
605
|
+
get: function () { return chunkWEJHHBA2_cjs.parseVersionRef; }
|
|
618
606
|
});
|
|
619
607
|
Object.defineProperty(exports, "promoteBoldTitle", {
|
|
620
608
|
enumerable: true,
|
|
621
|
-
get: function () { return
|
|
609
|
+
get: function () { return chunkWEJHHBA2_cjs.promoteBoldTitle; }
|
|
622
610
|
});
|
|
623
611
|
Object.defineProperty(exports, "repairParsedStructure", {
|
|
624
612
|
enumerable: true,
|
|
625
|
-
get: function () { return
|
|
613
|
+
get: function () { return chunkWEJHHBA2_cjs.repairParsedStructure; }
|
|
626
614
|
});
|
|
627
615
|
Object.defineProperty(exports, "repairParsedTitle", {
|
|
628
616
|
enumerable: true,
|
|
629
|
-
get: function () { return
|
|
617
|
+
get: function () { return chunkWEJHHBA2_cjs.repairParsedTitle; }
|
|
630
618
|
});
|
|
631
619
|
Object.defineProperty(exports, "savedFromId", {
|
|
632
620
|
enumerable: true,
|
|
633
|
-
get: function () { return
|
|
621
|
+
get: function () { return chunkWEJHHBA2_cjs.savedFromId; }
|
|
634
622
|
});
|
|
635
623
|
Object.defineProperty(exports, "stripAgentPreamble", {
|
|
636
624
|
enumerable: true,
|
|
637
|
-
get: function () { return
|
|
625
|
+
get: function () { return chunkWEJHHBA2_cjs.stripAgentPreamble; }
|
|
638
626
|
});
|
|
639
627
|
Object.defineProperty(exports, "toArtifactVersions", {
|
|
640
628
|
enumerable: true,
|
|
641
|
-
get: function () { return
|
|
629
|
+
get: function () { return chunkWEJHHBA2_cjs.toArtifactVersions; }
|
|
642
630
|
});
|
|
643
631
|
Object.defineProperty(exports, "unescapeMarkdown", {
|
|
644
632
|
enumerable: true,
|
|
645
|
-
get: function () { return
|
|
633
|
+
get: function () { return chunkWEJHHBA2_cjs.unescapeMarkdown; }
|
|
646
634
|
});
|
|
647
635
|
Object.defineProperty(exports, "unwrapCitationLinks", {
|
|
648
636
|
enumerable: true,
|
|
649
|
-
get: function () { return
|
|
637
|
+
get: function () { return chunkWEJHHBA2_cjs.unwrapCitationLinks; }
|
|
650
638
|
});
|
|
651
639
|
Object.defineProperty(exports, "versionLabel", {
|
|
652
640
|
enumerable: true,
|
|
653
|
-
get: function () { return
|
|
641
|
+
get: function () { return chunkWEJHHBA2_cjs.versionLabel; }
|
|
654
642
|
});
|
|
655
643
|
Object.defineProperty(exports, "versionRef", {
|
|
656
644
|
enumerable: true,
|
|
657
|
-
get: function () { return
|
|
645
|
+
get: function () { return chunkWEJHHBA2_cjs.versionRef; }
|
|
646
|
+
});
|
|
647
|
+
Object.defineProperty(exports, "buildHybridRedlineMarkdown", {
|
|
648
|
+
enumerable: true,
|
|
649
|
+
get: function () { return chunk3AADNIOK_cjs.buildHybridRedlineMarkdown; }
|
|
650
|
+
});
|
|
651
|
+
Object.defineProperty(exports, "buildHybridRedlineWithRegions", {
|
|
652
|
+
enumerable: true,
|
|
653
|
+
get: function () { return chunk3AADNIOK_cjs.buildHybridRedlineWithRegions; }
|
|
654
|
+
});
|
|
655
|
+
Object.defineProperty(exports, "revertRedlineRegion", {
|
|
656
|
+
enumerable: true,
|
|
657
|
+
get: function () { return chunk3AADNIOK_cjs.revertRedlineRegion; }
|
|
658
658
|
});
|
|
659
659
|
Object.defineProperty(exports, "normalizeMarkdown", {
|
|
660
660
|
enumerable: true,
|
package/dist/artifacts/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { useDocuments, refreshDocuments } from '../chunk-2LV53J46.js';
|
|
2
|
-
import { useDocumentVersionList } from '../chunk-
|
|
3
|
-
import { revertRedlineRegion, buildHybridRedlineWithRegions, buildHybridRedlineMarkdown } from '../chunk-74N436VK.js';
|
|
4
|
-
export { buildHybridRedlineMarkdown, buildHybridRedlineWithRegions, revertRedlineRegion } from '../chunk-74N436VK.js';
|
|
5
|
-
import { arbiQueryKeys } from '../chunk-AOEJ744V.js';
|
|
6
|
-
import { useArbi } from '../chunk-R7YNABZY.js';
|
|
2
|
+
import { useDocumentVersionList } from '../chunk-HZUMY365.js';
|
|
7
3
|
import '../chunk-DPYBZDJB.js';
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export { normalizeMarkdown } from '../chunk-WUTL62MC.js';
|
|
4
|
+
import { arbiQueryKeys } from '../chunk-AOEJ744V.js';
|
|
5
|
+
import { isDocumentId, parseVersionRef, flattenChunks, documentVersions, toArtifactVersions, findVersion, versionLabel, cleanDraftWithReport } from '../chunk-MZ7EYCGH.js';
|
|
6
|
+
export { cleanDraftMarkdown, cleanDraftWithReport, documentVersions, findVersion, flattenChunks, isDocumentId, parseVersionRef, promoteBoldTitle, repairParsedStructure, repairParsedTitle, savedFromId, stripAgentPreamble, toArtifactVersions, unescapeMarkdown, unwrapCitationLinks, versionLabel, versionRef } from '../chunk-MZ7EYCGH.js';
|
|
12
7
|
import { MarkdownRenderer } from '../chunk-C44GO33B.js';
|
|
13
8
|
import '../chunk-QRCMKEE6.js';
|
|
14
|
-
import '../chunk-CPZ36AQS.js';
|
|
15
9
|
import '../chunk-SN5YV6FF.js';
|
|
10
|
+
import { useArbi } from '../chunk-R7YNABZY.js';
|
|
11
|
+
import '../chunk-CPZ36AQS.js';
|
|
12
|
+
import { revertRedlineRegion, buildHybridRedlineWithRegions, buildHybridRedlineMarkdown } from '../chunk-74N436VK.js';
|
|
13
|
+
export { buildHybridRedlineMarkdown, buildHybridRedlineWithRegions, revertRedlineRegion } from '../chunk-74N436VK.js';
|
|
14
|
+
import { normalizeMarkdown } from '../chunk-WUTL62MC.js';
|
|
15
|
+
export { normalizeMarkdown } from '../chunk-WUTL62MC.js';
|
|
16
16
|
import { useState, useRef, useEffect, useCallback, useMemo } from 'react';
|
|
17
17
|
import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
|
|
18
18
|
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"}
|