@arbidocs/react 0.4.68 → 0.4.70
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 +8 -0
- package/dist/annotations/index.cjs +186 -2450
- package/dist/annotations/index.cjs.map +1 -1
- package/dist/annotations/index.d.cts +3 -33
- package/dist/annotations/index.d.ts +3 -33
- package/dist/annotations/index.js +4 -2411
- package/dist/annotations/index.js.map +1 -1
- package/dist/artifacts/index.cjs +88 -112
- package/dist/artifacts/index.cjs.map +1 -1
- package/dist/artifacts/index.js +12 -61
- package/dist/artifacts/index.js.map +1 -1
- package/dist/artifacts/redline-core.cjs +8 -7
- package/dist/artifacts/redline-core.js +2 -1
- package/dist/{chunk-PATLJSAO.cjs → chunk-3AADNIOK.cjs} +9 -52
- package/dist/chunk-3AADNIOK.cjs.map +1 -0
- package/dist/chunk-3QF5DNAP.js +2413 -0
- package/dist/chunk-3QF5DNAP.js.map +1 -0
- package/dist/chunk-5DCRIWCA.cjs +243 -0
- package/dist/chunk-5DCRIWCA.cjs.map +1 -0
- package/dist/{chunk-NA3FOYSF.cjs → chunk-5SZ2J2WT.cjs} +5 -177
- package/dist/chunk-5SZ2J2WT.cjs.map +1 -0
- package/dist/{chunk-43AKLNBC.js → chunk-74N436VK.js} +4 -40
- package/dist/chunk-74N436VK.js.map +1 -0
- package/dist/{chunk-Z3RRZ3KV.cjs → chunk-7CL7QHT6.cjs} +2 -240
- package/dist/chunk-7CL7QHT6.cjs.map +1 -0
- package/dist/{chunk-BWVIAATD.cjs → chunk-BTRIS3HY.cjs} +4 -4
- package/dist/{chunk-BWVIAATD.cjs.map → chunk-BTRIS3HY.cjs.map} +1 -1
- package/dist/chunk-G6FHNURH.js +234 -0
- package/dist/chunk-G6FHNURH.js.map +1 -0
- package/dist/chunk-HKUD2NZN.js +61 -0
- package/dist/chunk-HKUD2NZN.js.map +1 -0
- package/dist/chunk-QRCMKEE6.js +173 -0
- package/dist/chunk-QRCMKEE6.js.map +1 -0
- package/dist/{chunk-PFKLOVGQ.js → chunk-SYPUFZGA.js} +3 -233
- package/dist/chunk-SYPUFZGA.js.map +1 -0
- package/dist/chunk-T4IJHRRD.cjs +71 -0
- package/dist/chunk-T4IJHRRD.cjs.map +1 -0
- package/dist/chunk-ULU5LEWF.cjs +2460 -0
- package/dist/chunk-ULU5LEWF.cjs.map +1 -0
- package/dist/{chunk-TQ6FRVAH.js → chunk-V4CXOPLB.js} +3 -3
- package/dist/{chunk-TQ6FRVAH.js.map → chunk-V4CXOPLB.js.map} +1 -1
- package/dist/chunk-VOFNX4P6.cjs +50 -0
- package/dist/chunk-VOFNX4P6.cjs.map +1 -0
- package/dist/chunk-WUTL62MC.js +42 -0
- package/dist/chunk-WUTL62MC.js.map +1 -0
- package/dist/{chunk-JPGV7NMY.js → chunk-YXSXGTYQ.js} +4 -173
- package/dist/chunk-YXSXGTYQ.js.map +1 -0
- package/dist/chunk-Z3LLUO32.cjs +177 -0
- package/dist/chunk-Z3LLUO32.cjs.map +1 -0
- package/dist/document-tools/index.cjs +683 -0
- package/dist/document-tools/index.cjs.map +1 -0
- package/dist/document-tools/index.d.cts +392 -0
- package/dist/document-tools/index.d.ts +392 -0
- package/dist/document-tools/index.js +639 -0
- package/dist/document-tools/index.js.map +1 -0
- package/dist/index.cjs +320 -318
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -6
- package/dist/index.js.map +1 -1
- package/dist/store-CqkkD7Ho.d.cts +35 -0
- package/dist/store-D1nhbkgk.d.ts +35 -0
- package/dist/ui/index.cjs +138 -137
- package/dist/ui/index.js +3 -2
- package/package.json +11 -3
- package/dist/chunk-43AKLNBC.js.map +0 -1
- package/dist/chunk-JPGV7NMY.js.map +0 -1
- package/dist/chunk-NA3FOYSF.cjs.map +0 -1
- package/dist/chunk-PATLJSAO.cjs.map +0 -1
- package/dist/chunk-PFKLOVGQ.js.map +0 -1
- package/dist/chunk-Z3RRZ3KV.cjs.map +0 -1
package/dist/artifacts/index.cjs
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunk7CL7QHT6_cjs = require('../chunk-7CL7QHT6.cjs');
|
|
4
|
+
var chunk3AADNIOK_cjs = require('../chunk-3AADNIOK.cjs');
|
|
5
|
+
var chunkT4IJHRRD_cjs = require('../chunk-T4IJHRRD.cjs');
|
|
6
|
+
var chunk5DCRIWCA_cjs = require('../chunk-5DCRIWCA.cjs');
|
|
7
|
+
var chunkVOFNX4P6_cjs = require('../chunk-VOFNX4P6.cjs');
|
|
8
|
+
var chunk5SZ2J2WT_cjs = require('../chunk-5SZ2J2WT.cjs');
|
|
9
|
+
require('../chunk-Z3LLUO32.cjs');
|
|
6
10
|
require('../chunk-S6A6FSG7.cjs');
|
|
7
11
|
var chunkZMTLGO3K_cjs = require('../chunk-ZMTLGO3K.cjs');
|
|
8
12
|
var react = require('react');
|
|
@@ -11,9 +15,9 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
11
15
|
|
|
12
16
|
// src/artifacts/redline-engine.ts
|
|
13
17
|
var mainThreadRedlineEngine = {
|
|
14
|
-
buildRedline:
|
|
15
|
-
buildRedlineWithRegions:
|
|
16
|
-
revertRegion:
|
|
18
|
+
buildRedline: chunk3AADNIOK_cjs.buildHybridRedlineMarkdown,
|
|
19
|
+
buildRedlineWithRegions: chunk3AADNIOK_cjs.buildHybridRedlineWithRegions,
|
|
20
|
+
revertRegion: chunk3AADNIOK_cjs.revertRedlineRegion
|
|
17
21
|
};
|
|
18
22
|
function useRedline({
|
|
19
23
|
baseText,
|
|
@@ -37,7 +41,7 @@ function useRedline({
|
|
|
37
41
|
setState({ kind: "unavailable" });
|
|
38
42
|
return;
|
|
39
43
|
}
|
|
40
|
-
if (baseText === compareText ||
|
|
44
|
+
if (baseText === compareText || chunkVOFNX4P6_cjs.normalizeMarkdown(baseText) === chunkVOFNX4P6_cjs.normalizeMarkdown(compareText)) {
|
|
41
45
|
setState({ kind: "identical" });
|
|
42
46
|
return;
|
|
43
47
|
}
|
|
@@ -70,7 +74,7 @@ function useRedline({
|
|
|
70
74
|
if (!base || !compare) return null;
|
|
71
75
|
try {
|
|
72
76
|
const next = await engine.revertRegion(base, compare, regionId);
|
|
73
|
-
return next !==
|
|
77
|
+
return next !== chunkVOFNX4P6_cjs.normalizeMarkdown(compare) ? next : null;
|
|
74
78
|
} catch {
|
|
75
79
|
return null;
|
|
76
80
|
}
|
|
@@ -79,61 +83,6 @@ function useRedline({
|
|
|
79
83
|
);
|
|
80
84
|
return react.useMemo(() => ({ state, revertRegion }), [state, revertRegion]);
|
|
81
85
|
}
|
|
82
|
-
|
|
83
|
-
// src/artifacts/versions.ts
|
|
84
|
-
var VERSION_REF = /^(doc-[A-Za-z0-9]+)@v([1-9][0-9]*)$/;
|
|
85
|
-
function versionRef(docId, version) {
|
|
86
|
-
return `${docId}@v${version}`;
|
|
87
|
-
}
|
|
88
|
-
function parseVersionRef(ref) {
|
|
89
|
-
const match = VERSION_REF.exec(ref ?? "");
|
|
90
|
-
if (!match) return { docId: ref ?? "", version: null };
|
|
91
|
-
return { docId: match[1], version: Number(match[2]) };
|
|
92
|
-
}
|
|
93
|
-
function savedFromId(docId, entry) {
|
|
94
|
-
if (entry.made_from) return versionRef(docId, entry.made_from);
|
|
95
|
-
return entry.n > 1 ? versionRef(docId, entry.n - 1) : null;
|
|
96
|
-
}
|
|
97
|
-
function toArtifactVersions(docId, entries, currentVersion) {
|
|
98
|
-
if (!docId) return [];
|
|
99
|
-
const current = currentVersion ?? entries?.find((e) => e.is_current)?.n ?? null;
|
|
100
|
-
return [...entries ?? []].sort((a, b) => a.n - b.n).map((e) => ({
|
|
101
|
-
id: versionRef(docId, e.n),
|
|
102
|
-
docId,
|
|
103
|
-
name: e.file_name ?? "",
|
|
104
|
-
createdAt: e.created_at ?? "",
|
|
105
|
-
number: e.n,
|
|
106
|
-
reason: e.reason ?? "upload",
|
|
107
|
-
isCurrent: current != null ? e.n === current : !!e.is_current,
|
|
108
|
-
savedFromId: savedFromId(docId, e)
|
|
109
|
-
}));
|
|
110
|
-
}
|
|
111
|
-
function documentVersions(doc) {
|
|
112
|
-
if (!doc?.external_id) return [];
|
|
113
|
-
const entries = doc.versions?.length ? doc.versions : [{ n: doc.current_version ?? 1, file_name: doc.file_name, created_at: doc.created_at }];
|
|
114
|
-
return toArtifactVersions(doc.external_id, entries, doc.current_version ?? null);
|
|
115
|
-
}
|
|
116
|
-
function findVersion(versions, ref) {
|
|
117
|
-
if (!ref) return void 0;
|
|
118
|
-
const { docId, version } = parseVersionRef(ref);
|
|
119
|
-
return version == null ? versions.find((v) => v.docId === docId && v.isCurrent) : versions.find((v) => v.docId === docId && v.number === version);
|
|
120
|
-
}
|
|
121
|
-
function versionLabel(versions, ref) {
|
|
122
|
-
if (!ref || versions.length <= 1) return null;
|
|
123
|
-
const version = findVersion(versions, ref);
|
|
124
|
-
return version ? `v${version.number}` : null;
|
|
125
|
-
}
|
|
126
|
-
function flattenChunks(chunks, options) {
|
|
127
|
-
const text = (chunks ?? []).map((c) => (c.content ?? "").trim()).join("\n\n");
|
|
128
|
-
if (!options?.unescape) return text;
|
|
129
|
-
return chunkPATLJSAO_cjs.normalizeMarkdown(
|
|
130
|
-
chunkZ3RRZ3KV_cjs.repairParsedStructure(chunkZ3RRZ3KV_cjs.repairParsedTitle(chunkZ3RRZ3KV_cjs.unescapeMarkdown(text)))
|
|
131
|
-
).replace(/\n$/, "");
|
|
132
|
-
}
|
|
133
|
-
var DOC_ID = /^doc/;
|
|
134
|
-
function isDocumentId(id) {
|
|
135
|
-
return !!id && DOC_ID.test(id);
|
|
136
|
-
}
|
|
137
86
|
function useArtifactEditSession(options) {
|
|
138
87
|
const {
|
|
139
88
|
docId,
|
|
@@ -215,7 +164,7 @@ function useArtifactEditSession(options) {
|
|
|
215
164
|
}, [compareId, compareOpensEditor, hasBaseline, startEdit]);
|
|
216
165
|
const save = react.useCallback(async () => {
|
|
217
166
|
const raw = latest.current.buffer;
|
|
218
|
-
const normalised =
|
|
167
|
+
const normalised = chunkVOFNX4P6_cjs.normalizeMarkdown(raw);
|
|
219
168
|
const content2 = raw.endsWith("\n") ? normalised : normalised.replace(/\n$/, "");
|
|
220
169
|
setIsSaving(true);
|
|
221
170
|
try {
|
|
@@ -332,19 +281,19 @@ function useArtifactText(docId, options) {
|
|
|
332
281
|
...DEFAULT_ARTIFACT_TEXT_RETRY,
|
|
333
282
|
...options?.retry
|
|
334
283
|
};
|
|
335
|
-
const enabled = (options?.enabled ?? true) && isDocumentId(docId) && arbi.hasWorkspace;
|
|
284
|
+
const enabled = (options?.enabled ?? true) && chunkT4IJHRRD_cjs.isDocumentId(docId) && arbi.hasWorkspace;
|
|
336
285
|
const query = reactQuery.useQuery({
|
|
337
286
|
// Under the shared `parsedDoc` key, so a document's invalidation reaches it too.
|
|
338
|
-
queryKey: [...
|
|
287
|
+
queryKey: [...chunk7CL7QHT6_cjs.arbiQueryKeys.parsedDoc(docId ?? "", "marker"), "artifact-text"],
|
|
339
288
|
queryFn: async () => {
|
|
340
|
-
const { docId: plainId, version } = parseVersionRef(docId);
|
|
289
|
+
const { docId: plainId, version } = chunkT4IJHRRD_cjs.parseVersionRef(docId);
|
|
341
290
|
const parsed = await arbi.documents.getParsedContent(
|
|
342
291
|
plainId,
|
|
343
292
|
"marker",
|
|
344
293
|
version ?? void 0
|
|
345
294
|
);
|
|
346
295
|
if (!parsed.chunks?.some((c) => c.content?.trim())) throw new NotParsedYetError();
|
|
347
|
-
return flattenChunks(parsed.chunks, { unescape: true });
|
|
296
|
+
return chunkT4IJHRRD_cjs.flattenChunks(parsed.chunks, { unescape: true });
|
|
348
297
|
},
|
|
349
298
|
enabled,
|
|
350
299
|
retry: (failureCount, error) => !isRefusal(error) && failureCount < attempts,
|
|
@@ -382,17 +331,17 @@ function useArtifactText(docId, options) {
|
|
|
382
331
|
|
|
383
332
|
// src/artifacts/useArtifactSession.ts
|
|
384
333
|
function useArtifactVersions(workspaceId, docId) {
|
|
385
|
-
const plainId = docId ? parseVersionRef(docId).docId : null;
|
|
386
|
-
const { data: documents } =
|
|
334
|
+
const plainId = docId ? chunkT4IJHRRD_cjs.parseVersionRef(docId).docId : null;
|
|
335
|
+
const { data: documents } = chunk7CL7QHT6_cjs.useDocuments(workspaceId);
|
|
387
336
|
const listed = react.useMemo(
|
|
388
337
|
() => (documents ?? []).find((d) => d.external_id === plainId),
|
|
389
338
|
[documents, plainId]
|
|
390
339
|
);
|
|
391
|
-
const { data: history } =
|
|
340
|
+
const { data: history } = chunk7CL7QHT6_cjs.useDocumentVersionList(plainId, {
|
|
392
341
|
enabled: !!plainId && documents !== void 0 && !listed
|
|
393
342
|
});
|
|
394
343
|
return react.useMemo(
|
|
395
|
-
() => listed ? documentVersions(listed) : toArtifactVersions(plainId, history),
|
|
344
|
+
() => listed ? chunkT4IJHRRD_cjs.documentVersions(listed) : chunkT4IJHRRD_cjs.toArtifactVersions(plainId, history),
|
|
396
345
|
[listed, history, plainId]
|
|
397
346
|
);
|
|
398
347
|
}
|
|
@@ -407,15 +356,15 @@ function useSaveArtifactVersion() {
|
|
|
407
356
|
fileName,
|
|
408
357
|
{
|
|
409
358
|
wpType: wpType ?? "artifact",
|
|
410
|
-
versionOf: versionOf ? parseVersionRef(versionOf).docId : void 0,
|
|
359
|
+
versionOf: versionOf ? chunkT4IJHRRD_cjs.parseVersionRef(versionOf).docId : void 0,
|
|
411
360
|
configExtId: configId ?? void 0
|
|
412
361
|
}
|
|
413
362
|
);
|
|
414
363
|
const docId = result.doc_ext_ids?.[0];
|
|
415
364
|
if (workspaceId) {
|
|
416
|
-
await queryClient.invalidateQueries({ queryKey:
|
|
365
|
+
await queryClient.invalidateQueries({ queryKey: chunk7CL7QHT6_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
417
366
|
}
|
|
418
|
-
await queryClient.invalidateQueries({ queryKey:
|
|
367
|
+
await queryClient.invalidateQueries({ queryKey: chunk7CL7QHT6_cjs.arbiQueryKeys.allDocumentVersions() });
|
|
419
368
|
if (docId) await queryClient.invalidateQueries({ queryKey: ["arbi", "parsedDoc", docId] });
|
|
420
369
|
return { docId, version: result.version ?? void 0 };
|
|
421
370
|
}
|
|
@@ -436,7 +385,7 @@ function useArtifactSession(options) {
|
|
|
436
385
|
const [saved, setSaved] = react.useState(null);
|
|
437
386
|
const adopted = saved && saved.forId === hostDocId ? saved : null;
|
|
438
387
|
const docId = adopted?.id ?? hostDocId;
|
|
439
|
-
const isLocal = !isDocumentId(docId);
|
|
388
|
+
const isLocal = !chunkT4IJHRRD_cjs.isDocumentId(docId);
|
|
440
389
|
const [ownCompareId, setOwnCompareId] = react.useState(null);
|
|
441
390
|
const activeCompareId = compareId === void 0 ? ownCompareId : compareId;
|
|
442
391
|
const changeCompare = react.useCallback(
|
|
@@ -452,7 +401,7 @@ function useArtifactSession(options) {
|
|
|
452
401
|
enabled: !!activeCompareId
|
|
453
402
|
});
|
|
454
403
|
const saveVersion = useSaveArtifactVersion();
|
|
455
|
-
const current = findVersion(versions, docId);
|
|
404
|
+
const current = chunkT4IJHRRD_cjs.findVersion(versions, docId);
|
|
456
405
|
const save = react.useCallback(
|
|
457
406
|
async (content) => {
|
|
458
407
|
const result = await saveVersion.mutateAsync({
|
|
@@ -469,7 +418,7 @@ function useArtifactSession(options) {
|
|
|
469
418
|
);
|
|
470
419
|
const handleSaved = react.useCallback(
|
|
471
420
|
(result, content) => {
|
|
472
|
-
if (!isDocumentId(hostDocId) && result.docId)
|
|
421
|
+
if (!chunkT4IJHRRD_cjs.isDocumentId(hostDocId) && result.docId)
|
|
473
422
|
setSaved({ forId: hostDocId, id: result.docId, text: content });
|
|
474
423
|
onSaved?.(result, content);
|
|
475
424
|
},
|
|
@@ -498,7 +447,7 @@ function useArtifactSession(options) {
|
|
|
498
447
|
isLoading,
|
|
499
448
|
status,
|
|
500
449
|
versions,
|
|
501
|
-
labelOf: (id) => versionLabel(versions, id),
|
|
450
|
+
labelOf: (id) => chunkT4IJHRRD_cjs.versionLabel(versions, id),
|
|
502
451
|
view: {
|
|
503
452
|
content: session.baseline,
|
|
504
453
|
isEditing: session.isEditing,
|
|
@@ -534,7 +483,7 @@ function useArtifactSession(options) {
|
|
|
534
483
|
);
|
|
535
484
|
}
|
|
536
485
|
function renderArtifactMarkdown(markdown, components) {
|
|
537
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
486
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk5SZ2J2WT_cjs.MarkdownRenderer, { components, children: markdown });
|
|
538
487
|
}
|
|
539
488
|
function useStreamedArtifact({
|
|
540
489
|
artifacts,
|
|
@@ -554,7 +503,7 @@ function useStreamedArtifact({
|
|
|
554
503
|
const started = react.useRef(null);
|
|
555
504
|
const content = artifact?.content ?? "";
|
|
556
505
|
const title = artifact?.title ?? "Draft";
|
|
557
|
-
const passThrough = !!artifact && isDocumentId(artifact.doc_ext_id);
|
|
506
|
+
const passThrough = !!artifact && chunkT4IJHRRD_cjs.isDocumentId(artifact.doc_ext_id);
|
|
558
507
|
const needsSave = settled && !!artifact && !passThrough && !!content.trim() && !!workspaceId;
|
|
559
508
|
react.useEffect(() => {
|
|
560
509
|
const key = `${attempt}:${content}`;
|
|
@@ -564,7 +513,7 @@ function useStreamedArtifact({
|
|
|
564
513
|
let stored;
|
|
565
514
|
if (clean) stored = clean(content);
|
|
566
515
|
else {
|
|
567
|
-
const report =
|
|
516
|
+
const report = chunk5DCRIWCA_cjs.cleanDraftWithReport(content);
|
|
568
517
|
stored = report.text;
|
|
569
518
|
setCleaned(report);
|
|
570
519
|
onCleaned?.(report);
|
|
@@ -603,64 +552,93 @@ function useStreamedArtifact({
|
|
|
603
552
|
return { phase, artifact, docId, error, cleaned, retry };
|
|
604
553
|
}
|
|
605
554
|
|
|
555
|
+
Object.defineProperty(exports, "buildHybridRedlineMarkdown", {
|
|
556
|
+
enumerable: true,
|
|
557
|
+
get: function () { return chunk3AADNIOK_cjs.buildHybridRedlineMarkdown; }
|
|
558
|
+
});
|
|
559
|
+
Object.defineProperty(exports, "buildHybridRedlineWithRegions", {
|
|
560
|
+
enumerable: true,
|
|
561
|
+
get: function () { return chunk3AADNIOK_cjs.buildHybridRedlineWithRegions; }
|
|
562
|
+
});
|
|
563
|
+
Object.defineProperty(exports, "revertRedlineRegion", {
|
|
564
|
+
enumerable: true,
|
|
565
|
+
get: function () { return chunk3AADNIOK_cjs.revertRedlineRegion; }
|
|
566
|
+
});
|
|
567
|
+
Object.defineProperty(exports, "documentVersions", {
|
|
568
|
+
enumerable: true,
|
|
569
|
+
get: function () { return chunkT4IJHRRD_cjs.documentVersions; }
|
|
570
|
+
});
|
|
571
|
+
Object.defineProperty(exports, "findVersion", {
|
|
572
|
+
enumerable: true,
|
|
573
|
+
get: function () { return chunkT4IJHRRD_cjs.findVersion; }
|
|
574
|
+
});
|
|
575
|
+
Object.defineProperty(exports, "flattenChunks", {
|
|
576
|
+
enumerable: true,
|
|
577
|
+
get: function () { return chunkT4IJHRRD_cjs.flattenChunks; }
|
|
578
|
+
});
|
|
579
|
+
Object.defineProperty(exports, "isDocumentId", {
|
|
580
|
+
enumerable: true,
|
|
581
|
+
get: function () { return chunkT4IJHRRD_cjs.isDocumentId; }
|
|
582
|
+
});
|
|
583
|
+
Object.defineProperty(exports, "parseVersionRef", {
|
|
584
|
+
enumerable: true,
|
|
585
|
+
get: function () { return chunkT4IJHRRD_cjs.parseVersionRef; }
|
|
586
|
+
});
|
|
587
|
+
Object.defineProperty(exports, "savedFromId", {
|
|
588
|
+
enumerable: true,
|
|
589
|
+
get: function () { return chunkT4IJHRRD_cjs.savedFromId; }
|
|
590
|
+
});
|
|
591
|
+
Object.defineProperty(exports, "toArtifactVersions", {
|
|
592
|
+
enumerable: true,
|
|
593
|
+
get: function () { return chunkT4IJHRRD_cjs.toArtifactVersions; }
|
|
594
|
+
});
|
|
595
|
+
Object.defineProperty(exports, "versionLabel", {
|
|
596
|
+
enumerable: true,
|
|
597
|
+
get: function () { return chunkT4IJHRRD_cjs.versionLabel; }
|
|
598
|
+
});
|
|
599
|
+
Object.defineProperty(exports, "versionRef", {
|
|
600
|
+
enumerable: true,
|
|
601
|
+
get: function () { return chunkT4IJHRRD_cjs.versionRef; }
|
|
602
|
+
});
|
|
606
603
|
Object.defineProperty(exports, "cleanDraftMarkdown", {
|
|
607
604
|
enumerable: true,
|
|
608
|
-
get: function () { return
|
|
605
|
+
get: function () { return chunk5DCRIWCA_cjs.cleanDraftMarkdown; }
|
|
609
606
|
});
|
|
610
607
|
Object.defineProperty(exports, "cleanDraftWithReport", {
|
|
611
608
|
enumerable: true,
|
|
612
|
-
get: function () { return
|
|
609
|
+
get: function () { return chunk5DCRIWCA_cjs.cleanDraftWithReport; }
|
|
613
610
|
});
|
|
614
611
|
Object.defineProperty(exports, "promoteBoldTitle", {
|
|
615
612
|
enumerable: true,
|
|
616
|
-
get: function () { return
|
|
613
|
+
get: function () { return chunk5DCRIWCA_cjs.promoteBoldTitle; }
|
|
617
614
|
});
|
|
618
615
|
Object.defineProperty(exports, "repairParsedStructure", {
|
|
619
616
|
enumerable: true,
|
|
620
|
-
get: function () { return
|
|
617
|
+
get: function () { return chunk5DCRIWCA_cjs.repairParsedStructure; }
|
|
621
618
|
});
|
|
622
619
|
Object.defineProperty(exports, "repairParsedTitle", {
|
|
623
620
|
enumerable: true,
|
|
624
|
-
get: function () { return
|
|
621
|
+
get: function () { return chunk5DCRIWCA_cjs.repairParsedTitle; }
|
|
625
622
|
});
|
|
626
623
|
Object.defineProperty(exports, "stripAgentPreamble", {
|
|
627
624
|
enumerable: true,
|
|
628
|
-
get: function () { return
|
|
625
|
+
get: function () { return chunk5DCRIWCA_cjs.stripAgentPreamble; }
|
|
629
626
|
});
|
|
630
627
|
Object.defineProperty(exports, "unescapeMarkdown", {
|
|
631
628
|
enumerable: true,
|
|
632
|
-
get: function () { return
|
|
629
|
+
get: function () { return chunk5DCRIWCA_cjs.unescapeMarkdown; }
|
|
633
630
|
});
|
|
634
631
|
Object.defineProperty(exports, "unwrapCitationLinks", {
|
|
635
632
|
enumerable: true,
|
|
636
|
-
get: function () { return
|
|
637
|
-
});
|
|
638
|
-
Object.defineProperty(exports, "buildHybridRedlineMarkdown", {
|
|
639
|
-
enumerable: true,
|
|
640
|
-
get: function () { return chunkPATLJSAO_cjs.buildHybridRedlineMarkdown; }
|
|
641
|
-
});
|
|
642
|
-
Object.defineProperty(exports, "buildHybridRedlineWithRegions", {
|
|
643
|
-
enumerable: true,
|
|
644
|
-
get: function () { return chunkPATLJSAO_cjs.buildHybridRedlineWithRegions; }
|
|
633
|
+
get: function () { return chunk5DCRIWCA_cjs.unwrapCitationLinks; }
|
|
645
634
|
});
|
|
646
635
|
Object.defineProperty(exports, "normalizeMarkdown", {
|
|
647
636
|
enumerable: true,
|
|
648
|
-
get: function () { return
|
|
649
|
-
});
|
|
650
|
-
Object.defineProperty(exports, "revertRedlineRegion", {
|
|
651
|
-
enumerable: true,
|
|
652
|
-
get: function () { return chunkPATLJSAO_cjs.revertRedlineRegion; }
|
|
637
|
+
get: function () { return chunkVOFNX4P6_cjs.normalizeMarkdown; }
|
|
653
638
|
});
|
|
654
639
|
exports.DEFAULT_ARTIFACT_TEXT_RETRY = DEFAULT_ARTIFACT_TEXT_RETRY;
|
|
655
|
-
exports.documentVersions = documentVersions;
|
|
656
|
-
exports.findVersion = findVersion;
|
|
657
|
-
exports.flattenChunks = flattenChunks;
|
|
658
|
-
exports.isDocumentId = isDocumentId;
|
|
659
640
|
exports.mainThreadRedlineEngine = mainThreadRedlineEngine;
|
|
660
|
-
exports.parseVersionRef = parseVersionRef;
|
|
661
641
|
exports.renderArtifactMarkdown = renderArtifactMarkdown;
|
|
662
|
-
exports.savedFromId = savedFromId;
|
|
663
|
-
exports.toArtifactVersions = toArtifactVersions;
|
|
664
642
|
exports.useArtifactEditSession = useArtifactEditSession;
|
|
665
643
|
exports.useArtifactSession = useArtifactSession;
|
|
666
644
|
exports.useArtifactText = useArtifactText;
|
|
@@ -668,7 +646,5 @@ exports.useArtifactVersions = useArtifactVersions;
|
|
|
668
646
|
exports.useRedline = useRedline;
|
|
669
647
|
exports.useSaveArtifactVersion = useSaveArtifactVersion;
|
|
670
648
|
exports.useStreamedArtifact = useStreamedArtifact;
|
|
671
|
-
exports.versionLabel = versionLabel;
|
|
672
|
-
exports.versionRef = versionRef;
|
|
673
649
|
//# sourceMappingURL=index.cjs.map
|
|
674
650
|
//# sourceMappingURL=index.cjs.map
|