@seed-hypermedia/client 0.0.131 → 0.0.133
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/apps.mjs +12 -9
- package/dist/auto-link.mjs +5 -5
- package/dist/block-diff.d.ts +37 -0
- package/dist/block-diff.mjs +10 -1
- package/dist/block-edits.d.ts +33 -0
- package/dist/block-edits.mjs +9 -0
- package/dist/blocks-to-markdown.d.ts +21 -6
- package/dist/blocks-to-markdown.mjs +3 -3
- package/dist/capability.mjs +2 -2
- package/dist/change.d.ts +2 -0
- package/dist/change.mjs +1 -1
- package/dist/{chunk-SUVJSSHG.mjs → chunk-4ELQ4LJL.mjs} +68 -9
- package/dist/chunk-53PY4AWT.mjs +163 -0
- package/dist/{chunk-3KLY2B27.mjs → chunk-7FPJWOXB.mjs} +148 -1
- package/dist/{chunk-QU6XHE3U.mjs → chunk-DGNAMVGH.mjs} +5 -2
- package/dist/{chunk-2XNVA2GK.mjs → chunk-ETIDW7ZJ.mjs} +1 -1
- package/dist/{chunk-ANR3R5NH.mjs → chunk-FU7FIYHI.mjs} +1 -1
- package/dist/{chunk-HY4NWSHF.mjs → chunk-H2R4GYNV.mjs} +4 -3
- package/dist/{chunk-2LSZJ2IM.mjs → chunk-HL43SJUP.mjs} +1 -1
- package/dist/{chunk-JM4WXPLC.mjs → chunk-IFELP3LQ.mjs} +1 -1
- package/dist/{chunk-IXSAJRZA.mjs → chunk-JQKYF5NB.mjs} +3 -3
- package/dist/{chunk-IRP2ZGH3.mjs → chunk-KAZNQFXV.mjs} +12 -8
- package/dist/{chunk-O5MHN2EO.mjs → chunk-KM2NR4YA.mjs} +1 -0
- package/dist/{chunk-RPBGROOJ.mjs → chunk-LDCWJXIP.mjs} +1 -1
- package/dist/{chunk-JRJ6U6B2.mjs → chunk-NEUDKUBC.mjs} +1 -1
- package/dist/{chunk-D3PRDISB.mjs → chunk-O36UBGLF.mjs} +3 -3
- package/dist/{chunk-4JFL3SUQ.mjs → chunk-Q7CWMEBZ.mjs} +1 -1
- package/dist/{chunk-NWOYBZWP.mjs → chunk-QFIEZZYJ.mjs} +215 -330
- package/dist/{chunk-QLR4OWHG.mjs → chunk-QS6PIRUE.mjs} +1 -1
- package/dist/{chunk-QRSUQQTZ.mjs → chunk-T7SWLR32.mjs} +2 -2
- package/dist/{chunk-WD332LPF.mjs → chunk-VSMUWHIY.mjs} +1 -1
- package/dist/{chunk-APL23ACF.mjs → chunk-YRNPRWYG.mjs} +1 -1
- package/dist/{chunk-ETQZ6PRJ.mjs → chunk-Z7VKSY7P.mjs} +3 -3
- package/dist/client.d.ts +2 -0
- package/dist/client.mjs +3 -3
- package/dist/comment.mjs +2 -2
- package/dist/create-document.mjs +2 -2
- package/dist/document-state.mjs +2 -2
- package/dist/editorblock-to-hmblock.mjs +2 -2
- package/dist/hm-resolver.mjs +2 -2
- package/dist/hm-types.d.ts +9 -0
- package/dist/hm-types.mjs +1 -1
- package/dist/hmblock-to-editorblock.mjs +2 -2
- package/dist/index.d.ts +5 -3
- package/dist/index.mjs +64 -50
- package/dist/markdown-to-blocks.d.ts +25 -5
- package/dist/markdown-to-blocks.mjs +7 -3
- package/dist/pdf-to-blocks.mjs +3 -3
- package/dist/prepare-change.d.ts +6 -0
- package/dist/prepare-change.mjs +4 -4
- package/dist/resource-read.mjs +5 -5
- package/dist/schema-engine.mjs +2 -2
- package/dist/schema-registry.generated.mjs +1 -1
- package/dist/schema-resolve.mjs +4 -4
- package/dist/schema-subtypes.mjs +4 -4
- package/dist/schema-types.generated.d.ts +2 -0
- package/dist/signed-blob.mjs +2 -2
- package/dist/tei-to-blocks.mjs +2 -2
- package/dist/unicode.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSeedClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-H2R4GYNV.mjs";
|
|
4
4
|
import {
|
|
5
5
|
extractCommentIdFromUrl,
|
|
6
6
|
hmDomainUrlToWebUrl,
|
|
7
7
|
resolveId
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-Q7CWMEBZ.mjs";
|
|
9
9
|
import {
|
|
10
10
|
unpackHmId
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-DGNAMVGH.mjs";
|
|
12
12
|
|
|
13
13
|
// src/resource-read.ts
|
|
14
14
|
async function resolveIdWithClient(rawId, options = {}) {
|
package/dist/client.d.ts
CHANGED
|
@@ -21,6 +21,8 @@ export type PublishDocumentInput = {
|
|
|
21
21
|
generation?: number | bigint;
|
|
22
22
|
capability?: string;
|
|
23
23
|
visibility?: number;
|
|
24
|
+
/** Optional human-readable description of the change, like a commit message. */
|
|
25
|
+
message?: string;
|
|
24
26
|
};
|
|
25
27
|
export type SeedClientOptions = {
|
|
26
28
|
fetch?: typeof globalThis.fetch;
|
package/dist/client.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSeedClient,
|
|
3
3
|
deserializeQueryString
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-H2R4GYNV.mjs";
|
|
5
5
|
import "./chunk-CBELM7KX.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-KM2NR4YA.mjs";
|
|
7
7
|
import "./chunk-PJ2RFT5A.mjs";
|
|
8
8
|
import "./chunk-LVAHHQIK.mjs";
|
|
9
9
|
import "./chunk-DR3HJ6BV.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-DGNAMVGH.mjs";
|
|
11
11
|
import "./chunk-AHQWDCHV.mjs";
|
|
12
12
|
import "./chunk-7P6ASYW6.mjs";
|
|
13
13
|
export {
|
package/dist/comment.mjs
CHANGED
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
deleteComment,
|
|
5
5
|
trimTrailingEmptyBlocks,
|
|
6
6
|
updateComment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HL43SJUP.mjs";
|
|
8
8
|
import "./chunk-JKKS35IS.mjs";
|
|
9
9
|
import "./chunk-LVAHHQIK.mjs";
|
|
10
10
|
import "./chunk-DR3HJ6BV.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-DGNAMVGH.mjs";
|
|
12
12
|
import "./chunk-AHQWDCHV.mjs";
|
|
13
13
|
import "./chunk-7P6ASYW6.mjs";
|
|
14
14
|
export {
|
package/dist/create-document.mjs
CHANGED
package/dist/document-state.mjs
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
resolveDocumentState,
|
|
7
7
|
resolveEditableDocument,
|
|
8
8
|
sameDocumentVersion
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-QS6PIRUE.mjs";
|
|
10
|
+
import "./chunk-DGNAMVGH.mjs";
|
|
11
11
|
import "./chunk-AHQWDCHV.mjs";
|
|
12
12
|
import "./chunk-7P6ASYW6.mjs";
|
|
13
13
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
editorBlockToHMBlock,
|
|
3
3
|
editorBlocksToHMBlockNodes
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IFELP3LQ.mjs";
|
|
5
5
|
import "./chunk-JKKS35IS.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-DGNAMVGH.mjs";
|
|
7
7
|
import "./chunk-AHQWDCHV.mjs";
|
|
8
8
|
import "./chunk-7P6ASYW6.mjs";
|
|
9
9
|
export {
|
package/dist/hm-resolver.mjs
CHANGED
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
hmDomainUrlToWebUrl,
|
|
4
4
|
resolveHypermediaUrl,
|
|
5
5
|
resolveId
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-Q7CWMEBZ.mjs";
|
|
7
|
+
import "./chunk-DGNAMVGH.mjs";
|
|
8
8
|
import "./chunk-AHQWDCHV.mjs";
|
|
9
9
|
import "./chunk-7P6ASYW6.mjs";
|
|
10
10
|
export {
|
package/dist/hm-types.d.ts
CHANGED
|
@@ -6581,6 +6581,7 @@ export declare const HMRawDocumentChangeSchema: z.ZodObject<{
|
|
|
6581
6581
|
author: z.ZodOptional<z.ZodString>;
|
|
6582
6582
|
deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6583
6583
|
createTime: z.ZodOptional<z.ZodString>;
|
|
6584
|
+
message: z.ZodOptional<z.ZodString>;
|
|
6584
6585
|
}, z.z.core.$strip>;
|
|
6585
6586
|
export type HMRawDocumentChange = z.infer<typeof HMRawDocumentChangeSchema>;
|
|
6586
6587
|
export declare const HMListChangesOutputSchema: z.ZodObject<{
|
|
@@ -6589,6 +6590,7 @@ export declare const HMListChangesOutputSchema: z.ZodObject<{
|
|
|
6589
6590
|
author: z.ZodOptional<z.ZodString>;
|
|
6590
6591
|
deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6591
6592
|
createTime: z.ZodOptional<z.ZodString>;
|
|
6593
|
+
message: z.ZodOptional<z.ZodString>;
|
|
6592
6594
|
}, z.z.core.$strip>>;
|
|
6593
6595
|
latestVersion: z.ZodOptional<z.ZodString>;
|
|
6594
6596
|
}, z.z.core.$strip>;
|
|
@@ -6642,6 +6644,7 @@ export declare const HMListChangesRequestSchema: z.ZodObject<{
|
|
|
6642
6644
|
author: z.ZodOptional<z.ZodString>;
|
|
6643
6645
|
deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6644
6646
|
createTime: z.ZodOptional<z.ZodString>;
|
|
6647
|
+
message: z.ZodOptional<z.ZodString>;
|
|
6645
6648
|
}, z.z.core.$strip>>;
|
|
6646
6649
|
latestVersion: z.ZodOptional<z.ZodString>;
|
|
6647
6650
|
}, z.z.core.$strip>;
|
|
@@ -7881,6 +7884,7 @@ export declare const HMPrepareDocumentChangeInputSchema: z.ZodObject<{
|
|
|
7881
7884
|
}, z.z.core.$strip>>;
|
|
7882
7885
|
capability: z.ZodOptional<z.ZodString>;
|
|
7883
7886
|
visibility: z.ZodOptional<z.ZodNumber>;
|
|
7887
|
+
message: z.ZodOptional<z.ZodString>;
|
|
7884
7888
|
}, z.z.core.$strip>;
|
|
7885
7889
|
export type HMPrepareDocumentChangeInput = z.infer<typeof HMPrepareDocumentChangeInputSchema>;
|
|
7886
7890
|
export declare const HMPrepareDocumentChangeOutputSchema: z.ZodObject<{
|
|
@@ -7956,6 +7960,7 @@ export declare const HMPrepareDocumentChangeRequestSchema: z.ZodObject<{
|
|
|
7956
7960
|
}, z.z.core.$strip>>;
|
|
7957
7961
|
capability: z.ZodOptional<z.ZodString>;
|
|
7958
7962
|
visibility: z.ZodOptional<z.ZodNumber>;
|
|
7963
|
+
message: z.ZodOptional<z.ZodString>;
|
|
7959
7964
|
}, z.z.core.$strip>;
|
|
7960
7965
|
output: z.ZodObject<{
|
|
7961
7966
|
unsignedChange: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
|
|
@@ -9742,6 +9747,7 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
9742
9747
|
author: z.ZodOptional<z.ZodString>;
|
|
9743
9748
|
deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9744
9749
|
createTime: z.ZodOptional<z.ZodString>;
|
|
9750
|
+
message: z.ZodOptional<z.ZodString>;
|
|
9745
9751
|
}, z.z.core.$strip>>;
|
|
9746
9752
|
latestVersion: z.ZodOptional<z.ZodString>;
|
|
9747
9753
|
}, z.z.core.$strip>;
|
|
@@ -10223,6 +10229,7 @@ export declare const HMActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
10223
10229
|
}, z.z.core.$strip>>;
|
|
10224
10230
|
capability: z.ZodOptional<z.ZodString>;
|
|
10225
10231
|
visibility: z.ZodOptional<z.ZodNumber>;
|
|
10232
|
+
message: z.ZodOptional<z.ZodString>;
|
|
10226
10233
|
}, z.z.core.$strip>;
|
|
10227
10234
|
output: z.ZodObject<{
|
|
10228
10235
|
unsignedChange: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
|
|
@@ -12013,6 +12020,7 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
12013
12020
|
author: z.ZodOptional<z.ZodString>;
|
|
12014
12021
|
deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12015
12022
|
createTime: z.ZodOptional<z.ZodString>;
|
|
12023
|
+
message: z.ZodOptional<z.ZodString>;
|
|
12016
12024
|
}, z.z.core.$strip>>;
|
|
12017
12025
|
latestVersion: z.ZodOptional<z.ZodString>;
|
|
12018
12026
|
}, z.z.core.$strip>;
|
|
@@ -12492,6 +12500,7 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
12492
12500
|
}, z.z.core.$strip>>;
|
|
12493
12501
|
capability: z.ZodOptional<z.ZodString>;
|
|
12494
12502
|
visibility: z.ZodOptional<z.ZodNumber>;
|
|
12503
|
+
message: z.ZodOptional<z.ZodString>;
|
|
12495
12504
|
}, z.z.core.$strip>;
|
|
12496
12505
|
output: z.ZodObject<{
|
|
12497
12506
|
unsignedChange: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
|
package/dist/hm-types.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
annotationContains,
|
|
3
3
|
hmBlockToEditorBlock,
|
|
4
4
|
hmBlocksToEditorContent
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-ETIDW7ZJ.mjs";
|
|
6
|
+
import "./chunk-DGNAMVGH.mjs";
|
|
7
7
|
import "./chunk-AHQWDCHV.mjs";
|
|
8
8
|
import "./chunk-7P6ASYW6.mjs";
|
|
9
9
|
export {
|
package/dist/index.d.ts
CHANGED
|
@@ -31,15 +31,17 @@ export { resolveIdWithClient } from './resource-read';
|
|
|
31
31
|
export type { ResolveIdWithClientOptions, ResolvedIdWithClient } from './resource-read';
|
|
32
32
|
export { fileToIpfsBlobs, filesToIpfsBlobs, directoryToIpfsBlobs, normalizeDirectoryFilePath, resolveFileLinksInBlocks, hasFileLinks, } from './file-to-ipfs';
|
|
33
33
|
export type { CollectedBlob, IpfsDirectoryFile } from './file-to-ipfs';
|
|
34
|
-
export { parseMarkdown, flattenToOperations, parseInlineFormatting, parseFrontmatter, markdownBlockNodesToHMBlockNodes, hmAccountMentionUid, MarkdownFrontmatterError, } from './markdown-to-blocks';
|
|
34
|
+
export { parseMarkdown, flattenToOperations, parseInlineFormatting, parseFrontmatter, markdownBlockNodesToHMBlockNodes, hmAccountMentionUid, MarkdownFrontmatterError, MarkdownResolvedRangeError, stripResolvedRanges, } from './markdown-to-blocks';
|
|
35
35
|
export type { BlockNode, SeedBlock, Annotation, ParseMarkdownOptions } from './markdown-to-blocks';
|
|
36
36
|
export { collectMermaidBlocks, validateMermaidBlocks, assertValidMermaid, InvalidMermaidError, } from './mermaid-validation';
|
|
37
37
|
export type { MermaidParser, MermaidDiagramError, MermaidBlockLike } from './mermaid-validation';
|
|
38
38
|
export { blocksToMarkdown, emitFrontmatter, slugify, draftFilename, parseDraftFilename, documentToResolvedMarkdown, commentToResolvedMarkdown, contentToResolvedMarkdown, } from './blocks-to-markdown';
|
|
39
39
|
export type { ResolvedMarkdownOptions } from './blocks-to-markdown';
|
|
40
40
|
export type { BlocksToMarkdownOptions } from './blocks-to-markdown';
|
|
41
|
-
export { createBlocksMap, matchBlockIds, computeReplaceOps, hmBlockNodeToBlockNode, rebindTableIdentities, toAPIBlockNode, } from './block-diff';
|
|
42
|
-
export type { APIBlockNode, APIBlock } from './block-diff';
|
|
41
|
+
export { createBlocksMap, matchBlockIds, computeReplaceOps, hmBlockNodeToBlockNode, rebindTableIdentities, toAPIBlockNode, markdownUpdateTree, describeContentChange, } from './block-diff';
|
|
42
|
+
export type { APIBlockNode, APIBlock, ContentChange } from './block-diff';
|
|
43
|
+
export { applyBlockEdits, BlockEditError } from './block-edits';
|
|
44
|
+
export type { BlockEditResult } from './block-edits';
|
|
43
45
|
export { autoLinkChildToParent, createAutoLinkOps, documentContainsLinkToChild, documentHasSelfQuery, shouldAutoLinkParent, } from './auto-link';
|
|
44
46
|
export type { AutoLinkChildToParentOptions } from './auto-link';
|
|
45
47
|
export { clientBuiltDocumentUpdateBlobs, DEFAULT_MAX_PREPARED_CHANGE_BYTES, DEFAULT_PREPARE_TIMEOUT_MS, documentOperationsToChanges, documentUpdateBlobs, implausiblePreparedChange, isEmptyPreparedChange, nativeBlockToProtoBlock, preparableDocumentChanges, prepareDocumentUpdateBlobs, UnpreparableDocumentUpdateError, } from './prepare-change';
|
package/dist/index.mjs
CHANGED
|
@@ -1,42 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
InvalidMermaidError,
|
|
3
|
+
assertValidMermaid,
|
|
4
|
+
collectMermaidBlocks,
|
|
5
|
+
validateMermaidBlocks
|
|
6
|
+
} from "./chunk-TGCGGVEU.mjs";
|
|
1
7
|
import {
|
|
2
8
|
pdfToBlocks
|
|
3
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YRNPRWYG.mjs";
|
|
4
10
|
import {
|
|
5
11
|
teiToBlocks
|
|
6
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FU7FIYHI.mjs";
|
|
7
13
|
import {
|
|
8
14
|
embeddedPdfToBlocks
|
|
9
15
|
} from "./chunk-2FJBS3V7.mjs";
|
|
10
16
|
import {
|
|
11
17
|
resolveIdWithClient
|
|
12
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-Z7VKSY7P.mjs";
|
|
13
19
|
import {
|
|
14
20
|
annotationContains,
|
|
15
21
|
hmBlockToEditorBlock,
|
|
16
22
|
hmBlocksToEditorContent
|
|
17
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ETIDW7ZJ.mjs";
|
|
18
24
|
import {
|
|
19
25
|
keyfile_exports
|
|
20
26
|
} from "./chunk-EY6RQVAP.mjs";
|
|
21
|
-
import {
|
|
22
|
-
MarkdownFrontmatterError,
|
|
23
|
-
flattenToOperations,
|
|
24
|
-
hmAccountMentionUid,
|
|
25
|
-
markdownBlockNodesToHMBlockNodes,
|
|
26
|
-
parseFrontmatter,
|
|
27
|
-
parseInlineFormatting,
|
|
28
|
-
parseMarkdown
|
|
29
|
-
} from "./chunk-SUVJSSHG.mjs";
|
|
30
|
-
import {
|
|
31
|
-
InvalidMermaidError,
|
|
32
|
-
assertValidMermaid,
|
|
33
|
-
collectMermaidBlocks,
|
|
34
|
-
validateMermaidBlocks
|
|
35
|
-
} from "./chunk-TGCGGVEU.mjs";
|
|
36
27
|
import {
|
|
37
28
|
editorBlockToHMBlock,
|
|
38
29
|
editorBlocksToHMBlockNodes
|
|
39
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-IFELP3LQ.mjs";
|
|
40
31
|
import {
|
|
41
32
|
encryption_exports
|
|
42
33
|
} from "./chunk-UOL3F6XQ.mjs";
|
|
@@ -53,16 +44,20 @@ import {
|
|
|
53
44
|
isGrobidAvailable,
|
|
54
45
|
processFulltextDocument
|
|
55
46
|
} from "./chunk-PPAY4WZX.mjs";
|
|
47
|
+
import {
|
|
48
|
+
createCapability,
|
|
49
|
+
resolveCapability
|
|
50
|
+
} from "./chunk-LDCWJXIP.mjs";
|
|
56
51
|
import {
|
|
57
52
|
createSeedClient
|
|
58
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-H2R4GYNV.mjs";
|
|
59
54
|
import {
|
|
60
55
|
commentRecordIdFromBlob,
|
|
61
56
|
createComment,
|
|
62
57
|
deleteComment,
|
|
63
58
|
trimTrailingEmptyBlocks,
|
|
64
59
|
updateComment
|
|
65
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-HL43SJUP.mjs";
|
|
66
61
|
import {
|
|
67
62
|
AnnotationSet,
|
|
68
63
|
addSpanToAnnotation,
|
|
@@ -76,14 +71,14 @@ import {
|
|
|
76
71
|
} from "./chunk-37WRGUK4.mjs";
|
|
77
72
|
import {
|
|
78
73
|
createDocumentBlobs
|
|
79
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-VSMUWHIY.mjs";
|
|
80
75
|
import {
|
|
81
76
|
autoLinkChildToParent,
|
|
82
77
|
createAutoLinkOps,
|
|
83
78
|
documentContainsLinkToChild,
|
|
84
79
|
documentHasSelfQuery,
|
|
85
80
|
shouldAutoLinkParent
|
|
86
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-O36UBGLF.mjs";
|
|
87
82
|
import {
|
|
88
83
|
DEFAULT_MAX_PREPARED_CHANGE_BYTES,
|
|
89
84
|
DEFAULT_PREPARE_TIMEOUT_MS,
|
|
@@ -96,7 +91,16 @@ import {
|
|
|
96
91
|
nativeBlockToProtoBlock,
|
|
97
92
|
preparableDocumentChanges,
|
|
98
93
|
prepareDocumentUpdateBlobs
|
|
99
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-KAZNQFXV.mjs";
|
|
95
|
+
import {
|
|
96
|
+
describeRedirect,
|
|
97
|
+
editRefGeneration,
|
|
98
|
+
followRedirects,
|
|
99
|
+
followToDocument,
|
|
100
|
+
resolveDocumentState,
|
|
101
|
+
resolveEditableDocument,
|
|
102
|
+
sameDocumentVersion
|
|
103
|
+
} from "./chunk-QS6PIRUE.mjs";
|
|
100
104
|
import {
|
|
101
105
|
SeedClientError,
|
|
102
106
|
SeedNetworkError,
|
|
@@ -111,30 +115,45 @@ import {
|
|
|
111
115
|
createHomeGenesisChange,
|
|
112
116
|
signDocumentChange,
|
|
113
117
|
signPreparedChange
|
|
114
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-KM2NR4YA.mjs";
|
|
115
119
|
import {
|
|
116
120
|
createRedirectRef,
|
|
117
121
|
createTombstoneRef,
|
|
118
122
|
createVersionRef
|
|
119
123
|
} from "./chunk-PJ2RFT5A.mjs";
|
|
120
|
-
import
|
|
121
|
-
describeRedirect,
|
|
122
|
-
editRefGeneration,
|
|
123
|
-
followRedirects,
|
|
124
|
-
followToDocument,
|
|
125
|
-
resolveDocumentState,
|
|
126
|
-
resolveEditableDocument,
|
|
127
|
-
sameDocumentVersion
|
|
128
|
-
} from "./chunk-QLR4OWHG.mjs";
|
|
124
|
+
import "./chunk-LVAHHQIK.mjs";
|
|
129
125
|
import "./chunk-2MD3FXKB.mjs";
|
|
126
|
+
import "./chunk-GBSWXJGU.mjs";
|
|
127
|
+
import "./chunk-3TPCJCVO.mjs";
|
|
128
|
+
import {
|
|
129
|
+
toHMSigner,
|
|
130
|
+
toPrincipalSigner
|
|
131
|
+
} from "./chunk-DR3HJ6BV.mjs";
|
|
130
132
|
import {
|
|
131
133
|
computeReplaceOps,
|
|
132
134
|
createBlocksMap,
|
|
135
|
+
describeContentChange,
|
|
133
136
|
hmBlockNodeToBlockNode,
|
|
137
|
+
markdownUpdateTree,
|
|
134
138
|
matchBlockIds,
|
|
135
139
|
rebindTableIdentities,
|
|
136
140
|
toAPIBlockNode
|
|
137
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-7FPJWOXB.mjs";
|
|
142
|
+
import {
|
|
143
|
+
MarkdownFrontmatterError,
|
|
144
|
+
MarkdownResolvedRangeError,
|
|
145
|
+
flattenToOperations,
|
|
146
|
+
hmAccountMentionUid,
|
|
147
|
+
markdownBlockNodesToHMBlockNodes,
|
|
148
|
+
parseFrontmatter,
|
|
149
|
+
parseInlineFormatting,
|
|
150
|
+
parseMarkdown,
|
|
151
|
+
stripResolvedRanges
|
|
152
|
+
} from "./chunk-4ELQ4LJL.mjs";
|
|
153
|
+
import {
|
|
154
|
+
BlockEditError,
|
|
155
|
+
applyBlockEdits
|
|
156
|
+
} from "./chunk-53PY4AWT.mjs";
|
|
138
157
|
import {
|
|
139
158
|
blocksToMarkdown,
|
|
140
159
|
commentToResolvedMarkdown,
|
|
@@ -144,24 +163,13 @@ import {
|
|
|
144
163
|
emitFrontmatter,
|
|
145
164
|
parseDraftFilename,
|
|
146
165
|
slugify
|
|
147
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-QFIEZZYJ.mjs";
|
|
148
167
|
import {
|
|
149
168
|
extractCommentIdFromUrl,
|
|
150
169
|
hmDomainUrlToWebUrl,
|
|
151
170
|
resolveHypermediaUrl,
|
|
152
171
|
resolveId
|
|
153
|
-
} from "./chunk-
|
|
154
|
-
import {
|
|
155
|
-
createCapability,
|
|
156
|
-
resolveCapability
|
|
157
|
-
} from "./chunk-RPBGROOJ.mjs";
|
|
158
|
-
import "./chunk-LVAHHQIK.mjs";
|
|
159
|
-
import "./chunk-GBSWXJGU.mjs";
|
|
160
|
-
import "./chunk-3TPCJCVO.mjs";
|
|
161
|
-
import {
|
|
162
|
-
toHMSigner,
|
|
163
|
-
toPrincipalSigner
|
|
164
|
-
} from "./chunk-DR3HJ6BV.mjs";
|
|
172
|
+
} from "./chunk-Q7CWMEBZ.mjs";
|
|
165
173
|
import {
|
|
166
174
|
HYPERMEDIA_SCHEME,
|
|
167
175
|
codePointLength,
|
|
@@ -175,23 +183,26 @@ import {
|
|
|
175
183
|
parseFragment,
|
|
176
184
|
serializeBlockRange,
|
|
177
185
|
unpackHmId
|
|
178
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-DGNAMVGH.mjs";
|
|
179
187
|
import "./chunk-AHQWDCHV.mjs";
|
|
180
188
|
import "./chunk-7P6ASYW6.mjs";
|
|
181
189
|
export {
|
|
182
190
|
AnnotationSet,
|
|
191
|
+
BlockEditError,
|
|
183
192
|
DEFAULT_GROBID_URL,
|
|
184
193
|
DEFAULT_MAX_PREPARED_CHANGE_BYTES,
|
|
185
194
|
DEFAULT_PREPARE_TIMEOUT_MS,
|
|
186
195
|
HYPERMEDIA_SCHEME,
|
|
187
196
|
InvalidMermaidError,
|
|
188
197
|
MarkdownFrontmatterError,
|
|
198
|
+
MarkdownResolvedRangeError,
|
|
189
199
|
SeedClientError,
|
|
190
200
|
SeedNetworkError,
|
|
191
201
|
SeedValidationError,
|
|
192
202
|
UnpreparableDocumentUpdateError,
|
|
193
203
|
addSpanToAnnotation,
|
|
194
204
|
annotationContains,
|
|
205
|
+
applyBlockEdits,
|
|
195
206
|
assertValidMermaid,
|
|
196
207
|
autoLinkChildToParent,
|
|
197
208
|
blocksToMarkdown,
|
|
@@ -221,6 +232,7 @@ export {
|
|
|
221
232
|
createVersionRef,
|
|
222
233
|
deleteComment,
|
|
223
234
|
deleteContact,
|
|
235
|
+
describeContentChange,
|
|
224
236
|
describeRedirect,
|
|
225
237
|
directoryToIpfsBlobs,
|
|
226
238
|
documentContainsLinkToChild,
|
|
@@ -256,6 +268,7 @@ export {
|
|
|
256
268
|
encryption_exports as keyEncryption,
|
|
257
269
|
keyfile_exports as keyfile,
|
|
258
270
|
markdownBlockNodesToHMBlockNodes,
|
|
271
|
+
markdownUpdateTree,
|
|
259
272
|
matchBlockIds,
|
|
260
273
|
nativeBlockToProtoBlock,
|
|
261
274
|
normalizeDirectoryFilePath,
|
|
@@ -286,6 +299,7 @@ export {
|
|
|
286
299
|
signDocumentChange,
|
|
287
300
|
signPreparedChange,
|
|
288
301
|
slugify,
|
|
302
|
+
stripResolvedRanges,
|
|
289
303
|
teiToBlocks,
|
|
290
304
|
toAPIBlockNode,
|
|
291
305
|
toHMSigner,
|
|
@@ -86,20 +86,40 @@ export type ParseMarkdownOptions = {
|
|
|
86
86
|
* paths that must render whatever they are given.
|
|
87
87
|
*/
|
|
88
88
|
strictFrontmatter?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* `true` (default) throws {@link MarkdownResolvedRangeError} on a `<!-- resolved -->` range that
|
|
91
|
+
* is never closed. `false` drops everything after it, for display paths.
|
|
92
|
+
*/
|
|
93
|
+
strictResolvedRanges?: boolean;
|
|
89
94
|
};
|
|
90
95
|
export declare function parseFrontmatter(markdown: string, options?: ParseMarkdownOptions): {
|
|
91
96
|
content: string;
|
|
92
97
|
metadata: HMMetadata;
|
|
93
98
|
};
|
|
94
99
|
/**
|
|
95
|
-
* Turns each
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
+
* Turns each embed written the earlier way back into the embed it came from. Resolved markdown used
|
|
101
|
+
* to print an embed as its target's content between `<!-- embed: URL; title: …; view: … -->` and
|
|
102
|
+
* `<!-- /embed: URL -->`; it now writes the embed block itself and shows the content in a
|
|
103
|
+
* `<!-- resolved -->` range ({@link stripResolvedRanges}). Markdown read before that change is
|
|
104
|
+
* still written back, so the old range still becomes the Embed block, not paragraphs copied out of
|
|
105
|
+
* the embedded document. Nested embeds inside the range belong to the embedded document and go
|
|
100
106
|
* with it. Lines inside code fences are left alone.
|
|
101
107
|
*/
|
|
102
108
|
export declare function collapseResolvedEmbeds(markdown: string): string;
|
|
109
|
+
/** Thrown when a `<!-- resolved -->` range is never closed: what follows it cannot be told from what it shows. */
|
|
110
|
+
export declare class MarkdownResolvedRangeError extends Error {
|
|
111
|
+
constructor(message: string);
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Drops what resolved markdown shows for the reader. `documentToResolvedMarkdown` follows an embed
|
|
115
|
+
* with its target's content, and a query with its results, between `<!-- resolved: … -->` and
|
|
116
|
+
* `<!-- /resolved -->`. None of that is part of the document: the embed or query block on the line
|
|
117
|
+
* above is. Ranges nest (an embedded document has embeds of its own), and a marker inside a code
|
|
118
|
+
* or math block is text.
|
|
119
|
+
*/
|
|
120
|
+
export declare function stripResolvedRanges(markdown: string, options?: {
|
|
121
|
+
strict?: boolean;
|
|
122
|
+
}): string;
|
|
103
123
|
export declare function parseMarkdown(markdown: string, options?: ParseMarkdownOptions): {
|
|
104
124
|
tree: BlockNode[];
|
|
105
125
|
metadata: HMMetadata;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MarkdownFrontmatterError,
|
|
3
|
+
MarkdownResolvedRangeError,
|
|
3
4
|
collapseResolvedEmbeds,
|
|
4
5
|
flattenToOperations,
|
|
5
6
|
hmAccountMentionUid,
|
|
@@ -7,11 +8,13 @@ import {
|
|
|
7
8
|
mergeAdjacentAnnotations,
|
|
8
9
|
parseFrontmatter,
|
|
9
10
|
parseInlineFormatting,
|
|
10
|
-
parseMarkdown
|
|
11
|
-
|
|
11
|
+
parseMarkdown,
|
|
12
|
+
stripResolvedRanges
|
|
13
|
+
} from "./chunk-4ELQ4LJL.mjs";
|
|
12
14
|
import "./chunk-7P6ASYW6.mjs";
|
|
13
15
|
export {
|
|
14
16
|
MarkdownFrontmatterError,
|
|
17
|
+
MarkdownResolvedRangeError,
|
|
15
18
|
collapseResolvedEmbeds,
|
|
16
19
|
flattenToOperations,
|
|
17
20
|
hmAccountMentionUid,
|
|
@@ -19,5 +22,6 @@ export {
|
|
|
19
22
|
mergeAdjacentAnnotations,
|
|
20
23
|
parseFrontmatter,
|
|
21
24
|
parseInlineFormatting,
|
|
22
|
-
parseMarkdown
|
|
25
|
+
parseMarkdown,
|
|
26
|
+
stripResolvedRanges
|
|
23
27
|
};
|
package/dist/pdf-to-blocks.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pdfToBlocks
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-YRNPRWYG.mjs";
|
|
4
|
+
import "./chunk-FU7FIYHI.mjs";
|
|
5
5
|
import "./chunk-2FJBS3V7.mjs";
|
|
6
6
|
import "./chunk-PPAY4WZX.mjs";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-DGNAMVGH.mjs";
|
|
8
8
|
import "./chunk-AHQWDCHV.mjs";
|
|
9
9
|
import "./chunk-7P6ASYW6.mjs";
|
|
10
10
|
export {
|
package/dist/prepare-change.d.ts
CHANGED
|
@@ -210,6 +210,8 @@ export type PrepareDocumentUpdateInput = {
|
|
|
210
210
|
visibility?: number;
|
|
211
211
|
/** Aborts the request. */
|
|
212
212
|
signal?: AbortSignal;
|
|
213
|
+
/** Optional human-readable description of the change, like a commit message. */
|
|
214
|
+
message?: string;
|
|
213
215
|
};
|
|
214
216
|
/** The outcome of {@link prepareDocumentUpdateBlobs}. */
|
|
215
217
|
export type PrepareDocumentUpdateResult = {
|
|
@@ -270,6 +272,8 @@ export type ClientBuiltDocumentUpdateInput = {
|
|
|
270
272
|
visibility?: number;
|
|
271
273
|
/** This machine's clock in milliseconds. Defaults to `Date.now`. */
|
|
272
274
|
now?: () => number;
|
|
275
|
+
/** Optional human-readable description of the change, like a commit message. */
|
|
276
|
+
message?: string;
|
|
273
277
|
};
|
|
274
278
|
/**
|
|
275
279
|
* Builds the blobs for the next version of an existing document without the daemon: the Change
|
|
@@ -346,6 +350,8 @@ export type DocumentUpdateBlobsInput = {
|
|
|
346
350
|
prepareTimeoutMs?: number;
|
|
347
351
|
/** The largest prepared Change to sign. Defaults to {@link DEFAULT_MAX_PREPARED_CHANGE_BYTES}. */
|
|
348
352
|
maxPreparedChangeBytes?: number;
|
|
353
|
+
/** Optional human-readable description of the change, like a commit message. */
|
|
354
|
+
message?: string;
|
|
349
355
|
};
|
|
350
356
|
/** The outcome of {@link documentUpdateBlobs}. */
|
|
351
357
|
export type DocumentUpdateBlobsResult = (Extract<PrepareDocumentUpdateResult, {
|
package/dist/prepare-change.mjs
CHANGED
|
@@ -10,14 +10,14 @@ import {
|
|
|
10
10
|
nativeBlockToProtoBlock,
|
|
11
11
|
preparableDocumentChanges,
|
|
12
12
|
prepareDocumentUpdateBlobs
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KAZNQFXV.mjs";
|
|
14
|
+
import "./chunk-QS6PIRUE.mjs";
|
|
14
15
|
import "./chunk-CBELM7KX.mjs";
|
|
15
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-KM2NR4YA.mjs";
|
|
16
17
|
import "./chunk-PJ2RFT5A.mjs";
|
|
17
|
-
import "./chunk-QLR4OWHG.mjs";
|
|
18
18
|
import "./chunk-LVAHHQIK.mjs";
|
|
19
19
|
import "./chunk-DR3HJ6BV.mjs";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-DGNAMVGH.mjs";
|
|
21
21
|
import "./chunk-AHQWDCHV.mjs";
|
|
22
22
|
import "./chunk-7P6ASYW6.mjs";
|
|
23
23
|
export {
|
package/dist/resource-read.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveIdWithClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-Z7VKSY7P.mjs";
|
|
4
|
+
import "./chunk-H2R4GYNV.mjs";
|
|
5
5
|
import "./chunk-CBELM7KX.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-KM2NR4YA.mjs";
|
|
7
7
|
import "./chunk-PJ2RFT5A.mjs";
|
|
8
|
-
import "./chunk-4JFL3SUQ.mjs";
|
|
9
8
|
import "./chunk-LVAHHQIK.mjs";
|
|
10
9
|
import "./chunk-DR3HJ6BV.mjs";
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-Q7CWMEBZ.mjs";
|
|
11
|
+
import "./chunk-DGNAMVGH.mjs";
|
|
12
12
|
import "./chunk-AHQWDCHV.mjs";
|
|
13
13
|
import "./chunk-7P6ASYW6.mjs";
|
|
14
14
|
export {
|
package/dist/schema-engine.mjs
CHANGED
|
@@ -35,11 +35,11 @@ import {
|
|
|
35
35
|
typeOf,
|
|
36
36
|
validate,
|
|
37
37
|
validateAdvisory
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-NEUDKUBC.mjs";
|
|
39
39
|
import {
|
|
40
40
|
HM_SCHEMAS,
|
|
41
41
|
HM_SCHEMA_MANIFEST
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-T7SWLR32.mjs";
|
|
43
43
|
import "./chunk-7P6ASYW6.mjs";
|
|
44
44
|
export {
|
|
45
45
|
HM_SCHEMAS,
|