@arbidocs/react 0.5.65 → 0.5.67
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 +2 -0
- 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-IC65W2AO.cjs +14 -0
- package/dist/{bundle-DCWPYNGD.cjs.map → bundle-IC65W2AO.cjs.map} +1 -1
- package/dist/bundle-YNOX7VIL.js +5 -0
- package/dist/{bundle-JCKKGEJE.js.map → bundle-YNOX7VIL.js.map} +1 -1
- package/dist/calls/livekit/index.cjs +47 -47
- package/dist/calls/livekit/index.js +8 -8
- package/dist/{chunk-FZ4P7W67.cjs → chunk-3BFSALPC.cjs} +5 -5
- package/dist/{chunk-FZ4P7W67.cjs.map → chunk-3BFSALPC.cjs.map} +1 -1
- package/dist/{chunk-Y2WKLPN3.js → chunk-3NBPMR3X.js} +5 -5
- package/dist/{chunk-Y2WKLPN3.js.map → chunk-3NBPMR3X.js.map} +1 -1
- package/dist/{chunk-QL6CHRQ5.js → chunk-4DTTEUVY.js} +4 -4
- package/dist/{chunk-QL6CHRQ5.js.map → chunk-4DTTEUVY.js.map} +1 -1
- package/dist/{chunk-XFF66SHT.cjs → chunk-GOJHU7RZ.cjs} +26 -26
- package/dist/{chunk-XFF66SHT.cjs.map → chunk-GOJHU7RZ.cjs.map} +1 -1
- package/dist/{chunk-ZDAILE45.cjs → chunk-LMW46NBD.cjs} +6 -6
- package/dist/{chunk-ZDAILE45.cjs.map → chunk-LMW46NBD.cjs.map} +1 -1
- package/dist/{chunk-PLF2OEZZ.js → chunk-MMINI57C.js} +6 -10
- package/dist/chunk-MMINI57C.js.map +1 -0
- package/dist/{chunk-A2XSLTIP.js → chunk-NIKPG4PW.js} +3 -3
- package/dist/{chunk-A2XSLTIP.js.map → chunk-NIKPG4PW.js.map} +1 -1
- package/dist/{chunk-MZ7EYCGH.js → chunk-NNWMHMEC.js} +3 -3
- package/dist/{chunk-MZ7EYCGH.js.map → chunk-NNWMHMEC.js.map} +1 -1
- package/dist/{chunk-B6I2HRRF.cjs → chunk-PC4O3JDV.cjs} +3 -3
- package/dist/{chunk-B6I2HRRF.cjs.map → chunk-PC4O3JDV.cjs.map} +1 -1
- package/dist/{chunk-HZUMY365.js → chunk-QGOYIYLI.js} +4 -4
- package/dist/{chunk-HZUMY365.js.map → chunk-QGOYIYLI.js.map} +1 -1
- package/dist/{chunk-MS3T4C4Q.cjs → chunk-QMZG2HQ2.cjs} +7 -12
- package/dist/chunk-QMZG2HQ2.cjs.map +1 -0
- package/dist/{chunk-MN4BTKHE.cjs → chunk-RS6UUPD2.cjs} +6 -6
- package/dist/{chunk-MN4BTKHE.cjs.map → chunk-RS6UUPD2.cjs.map} +1 -1
- package/dist/{chunk-CHLDCP3J.js → chunk-SI7DJWBT.js} +3 -3
- package/dist/{chunk-CHLDCP3J.js.map → chunk-SI7DJWBT.js.map} +1 -1
- package/dist/{chunk-2PMH4DTL.cjs → chunk-TGSEQGM3.cjs} +4 -4
- package/dist/{chunk-2PMH4DTL.cjs.map → chunk-TGSEQGM3.cjs.map} +1 -1
- package/dist/{chunk-6QGAXWHR.js → chunk-ZTPJNKF2.js} +5 -5
- package/dist/{chunk-6QGAXWHR.js.map → chunk-ZTPJNKF2.js.map} +1 -1
- package/dist/{chunk-WEJHHBA2.cjs → chunk-ZWFMFOGP.cjs} +3 -3
- package/dist/{chunk-WEJHHBA2.cjs.map → chunk-ZWFMFOGP.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 +1358 -1311
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -11
- package/dist/index.d.ts +15 -11
- package/dist/index.js +72 -26
- package/dist/index.js.map +1 -1
- 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-DCWPYNGD.cjs +0 -14
- package/dist/bundle-JCKKGEJE.js +0 -5
- package/dist/chunk-MS3T4C4Q.cjs.map +0 -1
- package/dist/chunk-PLF2OEZZ.js.map +0 -1
package/README.md
CHANGED
|
@@ -118,6 +118,8 @@ That's it — three hooks and you have a streaming RAG chat.
|
|
|
118
118
|
| `useNotificationPreferences(keys)` | Email notification switches, optimistic save | Logged in |
|
|
119
119
|
| `useSessions()` / `useTerminateSession()` / `useLogoutAllSessions()` | Active sessions, end one, sign out everywhere | Logged in |
|
|
120
120
|
| `useDeleteAccount()` | Close the account (soft delete) | Call `.mutate()` |
|
|
121
|
+
| `useModelConnections()` / `useDirectModelUsage()` | The main agent's model connections (box and personal) and the direct calls of the last 30 days | Logged in |
|
|
122
|
+
| `useSaveModelConnection()` / `useRemoveModelConnection()` / `useUnlockModelConnections()` | Save a personal connection (its key sealed to the identity, then unlocked on this session), remove one, unlock the personal keys | Call `.mutate()` |
|
|
121
123
|
| `useFeature(name)` / `useFeatureSwitch(name)` | Whether a feature is on for the user (`<ArbiHost config={{ features }}>`; unlisted: on), and how to switch it | Always |
|
|
122
124
|
|
|
123
125
|
The account hooks have SDK-free controllers for hosts without an `arbi` (`useNameEditor`,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var chunk2IJP73ZG_cjs = require('../../chunk-2IJP73ZG.cjs');
|
|
3
|
+
var chunkPC4O3JDV_cjs = require('../../chunk-PC4O3JDV.cjs');
|
|
5
4
|
require('../../chunk-IU2CJNTB.cjs');
|
|
5
|
+
var chunk2IJP73ZG_cjs = require('../../chunk-2IJP73ZG.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 chunkPC4O3JDV_cjs.createPdfJsRasterizer(reactPdf.pdfjs, bytes, chunkPC4O3JDV_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 chunkPC4O3JDV_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 chunkPC4O3JDV_cjs.DEFAULT_DPI; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "FreezeError", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkPC4O3JDV_cjs.FreezeError; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "MAX_PAGE_PIXELS", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkPC4O3JDV_cjs.MAX_PAGE_PIXELS; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "batesLabel", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkPC4O3JDV_cjs.batesLabel; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "browserCanvasFactory", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkPC4O3JDV_cjs.browserCanvasFactory; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "buildBundle", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkPC4O3JDV_cjs.buildBundle; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "burnMarks", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkPC4O3JDV_cjs.burnMarks; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "createPdfJsRasterizer", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkPC4O3JDV_cjs.createPdfJsRasterizer; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "freezePdf", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkPC4O3JDV_cjs.freezePdf; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "readProvenance", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkPC4O3JDV_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 { isEffectiveRedaction } from '../../chunk-T3USOSVN.js';
|
|
1
|
+
import { createPdfJsRasterizer, browserCanvasFactory, freezePdf } from '../../chunk-NIKPG4PW.js';
|
|
2
|
+
export { DEFAULT_DPI, FreezeError, MAX_PAGE_PIXELS, batesLabel, browserCanvasFactory, buildBundle, burnMarks, createPdfJsRasterizer, freezePdf, readProvenance } from '../../chunk-NIKPG4PW.js';
|
|
4
3
|
import '../../chunk-PTOP7OHG.js';
|
|
4
|
+
import { isEffectiveRedaction } from '../../chunk-T3USOSVN.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
|
-
require('../chunk-
|
|
4
|
+
var chunkRS6UUPD2_cjs = require('../chunk-RS6UUPD2.cjs');
|
|
5
|
+
var chunk3AADNIOK_cjs = require('../chunk-3AADNIOK.cjs');
|
|
6
6
|
var chunkGQAXAZN7_cjs = require('../chunk-GQAXAZN7.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunkY7S2SQH3_cjs = require('../chunk-Y7S2SQH3.cjs');
|
|
8
|
+
require('../chunk-N73IMVFF.cjs');
|
|
9
|
+
var chunkZWFMFOGP_cjs = require('../chunk-ZWFMFOGP.cjs');
|
|
10
|
+
var chunkVOFNX4P6_cjs = require('../chunk-VOFNX4P6.cjs');
|
|
8
11
|
var chunkOC7F5SNA_cjs = require('../chunk-OC7F5SNA.cjs');
|
|
9
12
|
require('../chunk-Z3LLUO32.cjs');
|
|
10
|
-
require('../chunk-S6A6FSG7.cjs');
|
|
11
|
-
var chunkY7S2SQH3_cjs = require('../chunk-Y7S2SQH3.cjs');
|
|
12
13
|
require('../chunk-RCKA7BEF.cjs');
|
|
13
|
-
|
|
14
|
-
var chunkVOFNX4P6_cjs = require('../chunk-VOFNX4P6.cjs');
|
|
14
|
+
require('../chunk-S6A6FSG7.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) && chunkZWFMFOGP_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 } = chunkZWFMFOGP_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 chunkZWFMFOGP_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 ? chunkZWFMFOGP_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 } = chunkRS6UUPD2_cjs.useDocumentVersionList(plainId, {
|
|
344
344
|
enabled: !!plainId && documents !== void 0 && !listed
|
|
345
345
|
});
|
|
346
346
|
return react.useMemo(
|
|
347
|
-
() => listed ?
|
|
347
|
+
() => listed ? chunkZWFMFOGP_cjs.documentVersions(listed) : chunkZWFMFOGP_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 ? chunkZWFMFOGP_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 = !chunkZWFMFOGP_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 = chunkZWFMFOGP_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 (!chunkZWFMFOGP_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) => chunkZWFMFOGP_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 && chunkZWFMFOGP_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 = chunkZWFMFOGP_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
|
+
});
|
|
579
591
|
Object.defineProperty(exports, "cleanDraftMarkdown", {
|
|
580
592
|
enumerable: true,
|
|
581
|
-
get: function () { return
|
|
593
|
+
get: function () { return chunkZWFMFOGP_cjs.cleanDraftMarkdown; }
|
|
582
594
|
});
|
|
583
595
|
Object.defineProperty(exports, "cleanDraftWithReport", {
|
|
584
596
|
enumerable: true,
|
|
585
|
-
get: function () { return
|
|
597
|
+
get: function () { return chunkZWFMFOGP_cjs.cleanDraftWithReport; }
|
|
586
598
|
});
|
|
587
599
|
Object.defineProperty(exports, "documentVersions", {
|
|
588
600
|
enumerable: true,
|
|
589
|
-
get: function () { return
|
|
601
|
+
get: function () { return chunkZWFMFOGP_cjs.documentVersions; }
|
|
590
602
|
});
|
|
591
603
|
Object.defineProperty(exports, "findVersion", {
|
|
592
604
|
enumerable: true,
|
|
593
|
-
get: function () { return
|
|
605
|
+
get: function () { return chunkZWFMFOGP_cjs.findVersion; }
|
|
594
606
|
});
|
|
595
607
|
Object.defineProperty(exports, "flattenChunks", {
|
|
596
608
|
enumerable: true,
|
|
597
|
-
get: function () { return
|
|
609
|
+
get: function () { return chunkZWFMFOGP_cjs.flattenChunks; }
|
|
598
610
|
});
|
|
599
611
|
Object.defineProperty(exports, "isDocumentId", {
|
|
600
612
|
enumerable: true,
|
|
601
|
-
get: function () { return
|
|
613
|
+
get: function () { return chunkZWFMFOGP_cjs.isDocumentId; }
|
|
602
614
|
});
|
|
603
615
|
Object.defineProperty(exports, "parseVersionRef", {
|
|
604
616
|
enumerable: true,
|
|
605
|
-
get: function () { return
|
|
617
|
+
get: function () { return chunkZWFMFOGP_cjs.parseVersionRef; }
|
|
606
618
|
});
|
|
607
619
|
Object.defineProperty(exports, "promoteBoldTitle", {
|
|
608
620
|
enumerable: true,
|
|
609
|
-
get: function () { return
|
|
621
|
+
get: function () { return chunkZWFMFOGP_cjs.promoteBoldTitle; }
|
|
610
622
|
});
|
|
611
623
|
Object.defineProperty(exports, "repairParsedStructure", {
|
|
612
624
|
enumerable: true,
|
|
613
|
-
get: function () { return
|
|
625
|
+
get: function () { return chunkZWFMFOGP_cjs.repairParsedStructure; }
|
|
614
626
|
});
|
|
615
627
|
Object.defineProperty(exports, "repairParsedTitle", {
|
|
616
628
|
enumerable: true,
|
|
617
|
-
get: function () { return
|
|
629
|
+
get: function () { return chunkZWFMFOGP_cjs.repairParsedTitle; }
|
|
618
630
|
});
|
|
619
631
|
Object.defineProperty(exports, "savedFromId", {
|
|
620
632
|
enumerable: true,
|
|
621
|
-
get: function () { return
|
|
633
|
+
get: function () { return chunkZWFMFOGP_cjs.savedFromId; }
|
|
622
634
|
});
|
|
623
635
|
Object.defineProperty(exports, "stripAgentPreamble", {
|
|
624
636
|
enumerable: true,
|
|
625
|
-
get: function () { return
|
|
637
|
+
get: function () { return chunkZWFMFOGP_cjs.stripAgentPreamble; }
|
|
626
638
|
});
|
|
627
639
|
Object.defineProperty(exports, "toArtifactVersions", {
|
|
628
640
|
enumerable: true,
|
|
629
|
-
get: function () { return
|
|
641
|
+
get: function () { return chunkZWFMFOGP_cjs.toArtifactVersions; }
|
|
630
642
|
});
|
|
631
643
|
Object.defineProperty(exports, "unescapeMarkdown", {
|
|
632
644
|
enumerable: true,
|
|
633
|
-
get: function () { return
|
|
645
|
+
get: function () { return chunkZWFMFOGP_cjs.unescapeMarkdown; }
|
|
634
646
|
});
|
|
635
647
|
Object.defineProperty(exports, "unwrapCitationLinks", {
|
|
636
648
|
enumerable: true,
|
|
637
|
-
get: function () { return
|
|
649
|
+
get: function () { return chunkZWFMFOGP_cjs.unwrapCitationLinks; }
|
|
638
650
|
});
|
|
639
651
|
Object.defineProperty(exports, "versionLabel", {
|
|
640
652
|
enumerable: true,
|
|
641
|
-
get: function () { return
|
|
653
|
+
get: function () { return chunkZWFMFOGP_cjs.versionLabel; }
|
|
642
654
|
});
|
|
643
655
|
Object.defineProperty(exports, "versionRef", {
|
|
644
656
|
enumerable: true,
|
|
645
|
-
get: function () { return
|
|
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; }
|
|
657
|
+
get: function () { return chunkZWFMFOGP_cjs.versionRef; }
|
|
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 '../chunk-DPYBZDJB.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';
|
|
7
|
-
import { MarkdownRenderer } from '../chunk-C44GO33B.js';
|
|
8
|
-
import '../chunk-QRCMKEE6.js';
|
|
9
|
-
import '../chunk-SN5YV6FF.js';
|
|
10
|
-
import { useArbi } from '../chunk-R7YNABZY.js';
|
|
11
|
-
import '../chunk-CPZ36AQS.js';
|
|
2
|
+
import { useDocumentVersionList } from '../chunk-QGOYIYLI.js';
|
|
12
3
|
import { revertRedlineRegion, buildHybridRedlineWithRegions, buildHybridRedlineMarkdown } from '../chunk-74N436VK.js';
|
|
13
4
|
export { buildHybridRedlineMarkdown, buildHybridRedlineWithRegions, revertRedlineRegion } from '../chunk-74N436VK.js';
|
|
5
|
+
import { arbiQueryKeys } from '../chunk-AOEJ744V.js';
|
|
6
|
+
import { useArbi } from '../chunk-R7YNABZY.js';
|
|
7
|
+
import '../chunk-DPYBZDJB.js';
|
|
8
|
+
import { isDocumentId, parseVersionRef, flattenChunks, documentVersions, toArtifactVersions, findVersion, versionLabel, cleanDraftWithReport } from '../chunk-NNWMHMEC.js';
|
|
9
|
+
export { cleanDraftMarkdown, cleanDraftWithReport, documentVersions, findVersion, flattenChunks, isDocumentId, parseVersionRef, promoteBoldTitle, repairParsedStructure, repairParsedTitle, savedFromId, stripAgentPreamble, toArtifactVersions, unescapeMarkdown, unwrapCitationLinks, versionLabel, versionRef } from '../chunk-NNWMHMEC.js';
|
|
14
10
|
import { normalizeMarkdown } from '../chunk-WUTL62MC.js';
|
|
15
11
|
export { normalizeMarkdown } from '../chunk-WUTL62MC.js';
|
|
12
|
+
import { MarkdownRenderer } from '../chunk-C44GO33B.js';
|
|
13
|
+
import '../chunk-QRCMKEE6.js';
|
|
14
|
+
import '../chunk-CPZ36AQS.js';
|
|
15
|
+
import '../chunk-SN5YV6FF.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 chunkPC4O3JDV_cjs = require('./chunk-PC4O3JDV.cjs');
|
|
4
|
+
require('./chunk-IU2CJNTB.cjs');
|
|
5
|
+
require('./chunk-2IJP73ZG.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "buildBundle", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkPC4O3JDV_cjs.buildBundle; }
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=bundle-IC65W2AO.cjs.map
|
|
14
|
+
//# sourceMappingURL=bundle-IC65W2AO.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"bundle-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"bundle-IC65W2AO.cjs"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"bundle-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"bundle-YNOX7VIL.js"}
|