@arbidocs/react 0.4.135 → 0.4.137
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/artifacts/index.cjs +19 -19
- package/dist/artifacts/index.js +3 -3
- package/dist/{chunk-W2YC7ZSN.cjs → chunk-65WT5PHA.cjs} +3 -3
- package/dist/{chunk-W2YC7ZSN.cjs.map → chunk-65WT5PHA.cjs.map} +1 -1
- package/dist/{chunk-2WEF44YN.js → chunk-A3EHBTBV.js} +6 -3
- package/dist/chunk-A3EHBTBV.js.map +1 -0
- package/dist/{chunk-2BQSLXEY.cjs → chunk-G7NSGLUA.cjs} +6 -3
- package/dist/chunk-G7NSGLUA.cjs.map +1 -0
- package/dist/{chunk-BFW4ZN43.js → chunk-J3BYHBKW.js} +3 -3
- package/dist/{chunk-BFW4ZN43.js.map → chunk-J3BYHBKW.js.map} +1 -1
- package/dist/index.cjs +341 -341
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +6 -6
- package/dist/ui/index.cjs +147 -147
- package/dist/ui/index.js +2 -2
- package/package.json +3 -3
- package/dist/chunk-2BQSLXEY.cjs.map +0 -1
- package/dist/chunk-2WEF44YN.js.map +0 -1
package/dist/artifacts/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var chunkZWFMFOGP_cjs = require('../chunk-ZWFMFOGP.cjs');
|
|
3
|
+
var chunkG7NSGLUA_cjs = require('../chunk-G7NSGLUA.cjs');
|
|
5
4
|
var chunk3AADNIOK_cjs = require('../chunk-3AADNIOK.cjs');
|
|
5
|
+
var chunkZWFMFOGP_cjs = require('../chunk-ZWFMFOGP.cjs');
|
|
6
6
|
var chunkVOFNX4P6_cjs = require('../chunk-VOFNX4P6.cjs');
|
|
7
7
|
var chunkOC7F5SNA_cjs = require('../chunk-OC7F5SNA.cjs');
|
|
8
8
|
require('../chunk-Z3LLUO32.cjs');
|
|
@@ -283,7 +283,7 @@ function useArtifactText(docId, options) {
|
|
|
283
283
|
const enabled = (options?.enabled ?? true) && chunkZWFMFOGP_cjs.isDocumentId(docId) && arbi.hasWorkspace;
|
|
284
284
|
const query = reactQuery.useQuery({
|
|
285
285
|
// Under the shared `parsedDoc` key, so a document's invalidation reaches it too.
|
|
286
|
-
queryKey: [...
|
|
286
|
+
queryKey: [...chunkG7NSGLUA_cjs.arbiQueryKeys.parsedDoc(docId ?? "", "marker"), "artifact-text"],
|
|
287
287
|
queryFn: async () => {
|
|
288
288
|
const { docId: plainId, version } = chunkZWFMFOGP_cjs.parseVersionRef(docId);
|
|
289
289
|
const parsed = await arbi.documents.getParsedContent(
|
|
@@ -331,12 +331,12 @@ function useArtifactText(docId, options) {
|
|
|
331
331
|
// src/artifacts/useArtifactSession.ts
|
|
332
332
|
function useArtifactVersions(workspaceId, docId) {
|
|
333
333
|
const plainId = docId ? chunkZWFMFOGP_cjs.parseVersionRef(docId).docId : null;
|
|
334
|
-
const { data: documents } =
|
|
334
|
+
const { data: documents } = chunkG7NSGLUA_cjs.useDocuments(workspaceId);
|
|
335
335
|
const listed = react.useMemo(
|
|
336
336
|
() => (documents ?? []).find((d) => d.external_id === plainId),
|
|
337
337
|
[documents, plainId]
|
|
338
338
|
);
|
|
339
|
-
const { data: history } =
|
|
339
|
+
const { data: history } = chunkG7NSGLUA_cjs.useDocumentVersionList(plainId, {
|
|
340
340
|
enabled: !!plainId && documents !== void 0 && !listed
|
|
341
341
|
});
|
|
342
342
|
return react.useMemo(
|
|
@@ -361,9 +361,9 @@ function useSaveArtifactVersion() {
|
|
|
361
361
|
);
|
|
362
362
|
const docId = result.doc_ext_ids?.[0];
|
|
363
363
|
if (workspaceId) {
|
|
364
|
-
await queryClient.invalidateQueries({ queryKey:
|
|
364
|
+
await queryClient.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
365
365
|
}
|
|
366
|
-
await queryClient.invalidateQueries({ queryKey:
|
|
366
|
+
await queryClient.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.allDocumentVersions() });
|
|
367
367
|
if (docId) await queryClient.invalidateQueries({ queryKey: ["arbi", "parsedDoc", docId] });
|
|
368
368
|
return { docId, version: result.version ?? void 0 };
|
|
369
369
|
}
|
|
@@ -566,6 +566,18 @@ function viewerTabForArtifactMode(mode) {
|
|
|
566
566
|
return artifactKindFromMode(mode) ? "preview" : "edit";
|
|
567
567
|
}
|
|
568
568
|
|
|
569
|
+
Object.defineProperty(exports, "buildHybridRedlineMarkdown", {
|
|
570
|
+
enumerable: true,
|
|
571
|
+
get: function () { return chunk3AADNIOK_cjs.buildHybridRedlineMarkdown; }
|
|
572
|
+
});
|
|
573
|
+
Object.defineProperty(exports, "buildHybridRedlineWithRegions", {
|
|
574
|
+
enumerable: true,
|
|
575
|
+
get: function () { return chunk3AADNIOK_cjs.buildHybridRedlineWithRegions; }
|
|
576
|
+
});
|
|
577
|
+
Object.defineProperty(exports, "revertRedlineRegion", {
|
|
578
|
+
enumerable: true,
|
|
579
|
+
get: function () { return chunk3AADNIOK_cjs.revertRedlineRegion; }
|
|
580
|
+
});
|
|
569
581
|
Object.defineProperty(exports, "cleanDraftMarkdown", {
|
|
570
582
|
enumerable: true,
|
|
571
583
|
get: function () { return chunkZWFMFOGP_cjs.cleanDraftMarkdown; }
|
|
@@ -634,18 +646,6 @@ Object.defineProperty(exports, "versionRef", {
|
|
|
634
646
|
enumerable: true,
|
|
635
647
|
get: function () { return chunkZWFMFOGP_cjs.versionRef; }
|
|
636
648
|
});
|
|
637
|
-
Object.defineProperty(exports, "buildHybridRedlineMarkdown", {
|
|
638
|
-
enumerable: true,
|
|
639
|
-
get: function () { return chunk3AADNIOK_cjs.buildHybridRedlineMarkdown; }
|
|
640
|
-
});
|
|
641
|
-
Object.defineProperty(exports, "buildHybridRedlineWithRegions", {
|
|
642
|
-
enumerable: true,
|
|
643
|
-
get: function () { return chunk3AADNIOK_cjs.buildHybridRedlineWithRegions; }
|
|
644
|
-
});
|
|
645
|
-
Object.defineProperty(exports, "revertRedlineRegion", {
|
|
646
|
-
enumerable: true,
|
|
647
|
-
get: function () { return chunk3AADNIOK_cjs.revertRedlineRegion; }
|
|
648
|
-
});
|
|
649
649
|
Object.defineProperty(exports, "normalizeMarkdown", {
|
|
650
650
|
enumerable: true,
|
|
651
651
|
get: function () { return chunkVOFNX4P6_cjs.normalizeMarkdown; }
|
package/dist/artifacts/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { arbiQueryKeys, useDocuments, useDocumentVersionList } from '../chunk-
|
|
2
|
-
import { isDocumentId, parseVersionRef, flattenChunks, documentVersions, toArtifactVersions, findVersion, versionLabel, cleanDraftWithReport } from '../chunk-NNWMHMEC.js';
|
|
3
|
-
export { cleanDraftMarkdown, cleanDraftWithReport, documentVersions, findVersion, flattenChunks, isDocumentId, parseVersionRef, promoteBoldTitle, repairParsedStructure, repairParsedTitle, savedFromId, stripAgentPreamble, toArtifactVersions, unescapeMarkdown, unwrapCitationLinks, versionLabel, versionRef } from '../chunk-NNWMHMEC.js';
|
|
1
|
+
import { arbiQueryKeys, useDocuments, useDocumentVersionList } from '../chunk-A3EHBTBV.js';
|
|
4
2
|
import { revertRedlineRegion, buildHybridRedlineWithRegions, buildHybridRedlineMarkdown } from '../chunk-74N436VK.js';
|
|
5
3
|
export { buildHybridRedlineMarkdown, buildHybridRedlineWithRegions, revertRedlineRegion } from '../chunk-74N436VK.js';
|
|
4
|
+
import { isDocumentId, parseVersionRef, flattenChunks, documentVersions, toArtifactVersions, findVersion, versionLabel, cleanDraftWithReport } from '../chunk-NNWMHMEC.js';
|
|
5
|
+
export { cleanDraftMarkdown, cleanDraftWithReport, documentVersions, findVersion, flattenChunks, isDocumentId, parseVersionRef, promoteBoldTitle, repairParsedStructure, repairParsedTitle, savedFromId, stripAgentPreamble, toArtifactVersions, unescapeMarkdown, unwrapCitationLinks, versionLabel, versionRef } from '../chunk-NNWMHMEC.js';
|
|
6
6
|
import { normalizeMarkdown } from '../chunk-WUTL62MC.js';
|
|
7
7
|
export { normalizeMarkdown } from '../chunk-WUTL62MC.js';
|
|
8
8
|
import { MarkdownRenderer } from '../chunk-C44GO33B.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var chunkWYZJLZ67_cjs = require('./chunk-WYZJLZ67.cjs');
|
|
4
3
|
var chunkOC7F5SNA_cjs = require('./chunk-OC7F5SNA.cjs');
|
|
4
|
+
var chunkWYZJLZ67_cjs = require('./chunk-WYZJLZ67.cjs');
|
|
5
5
|
var chunkHJDR5HEO_cjs = require('./chunk-HJDR5HEO.cjs');
|
|
6
6
|
var chunkS6A6FSG7_cjs = require('./chunk-S6A6FSG7.cjs');
|
|
7
7
|
var React = require('react');
|
|
@@ -4752,5 +4752,5 @@ exports.returnFocusToMark = returnFocusToMark;
|
|
|
4752
4752
|
exports.stepSegmenter = stepSegmenter;
|
|
4753
4753
|
exports.toggleVariants = toggleVariants;
|
|
4754
4754
|
exports.useAudioRecorder = useAudioRecorder;
|
|
4755
|
-
//# sourceMappingURL=chunk-
|
|
4756
|
-
//# sourceMappingURL=chunk-
|
|
4755
|
+
//# sourceMappingURL=chunk-65WT5PHA.cjs.map
|
|
4756
|
+
//# sourceMappingURL=chunk-65WT5PHA.cjs.map
|