@seed-hypermedia/client 0.0.83 → 0.0.84
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/auto-link.mjs +4 -4
- package/dist/blocks-to-markdown.mjs +2 -2
- package/dist/capability.mjs +2 -2
- package/dist/change.d.ts +2 -0
- package/dist/change.mjs +1 -1
- package/dist/{chunk-2GOQZ3DV.mjs → chunk-5OEUIK3L.mjs} +1 -1
- package/dist/{chunk-CRMBYTZY.mjs → chunk-73JZJ5YC.mjs} +1 -1
- package/dist/{chunk-TUSTJXWH.mjs → chunk-7UTCJZPQ.mjs} +3 -3
- package/dist/{chunk-IOXGTLKJ.mjs → chunk-IQONPGLX.mjs} +1 -1
- package/dist/{chunk-NVWWEHIS.mjs → chunk-LMWLJHSM.mjs} +1 -1
- package/dist/{chunk-V2UNLCDS.mjs → chunk-LQMTE724.mjs} +1 -1
- package/dist/{chunk-WJRXPYFE.mjs → chunk-MTGPGNGT.mjs} +1 -1
- package/dist/{chunk-QBYF2PVS.mjs → chunk-NGLLI4HI.mjs} +9 -8
- package/dist/{chunk-SIYJHDMJ.mjs → chunk-PEG3UOMI.mjs} +3 -3
- package/dist/{chunk-E4PGX55A.mjs → chunk-Q2NA774U.mjs} +1 -1
- package/dist/{chunk-KMQYEO46.mjs → chunk-Q7YPP3WO.mjs} +5 -0
- package/dist/{chunk-4VD46ULS.mjs → chunk-TSUQYYH6.mjs} +15 -1
- package/dist/{chunk-JT57MV7Y.mjs → chunk-W7H2UYQL.mjs} +2 -0
- package/dist/{chunk-E6YSFT63.mjs → chunk-X4VXKKMT.mjs} +1 -1
- package/dist/client.d.ts +7 -1
- package/dist/client.mjs +3 -3
- package/dist/comment.mjs +2 -2
- package/dist/document-state.mjs +2 -2
- package/dist/editorblock-to-hmblock.mjs +2 -2
- package/dist/hm-resolver.d.ts +2 -0
- package/dist/hm-resolver.mjs +2 -2
- package/dist/hm-types.d.ts +11 -0
- package/dist/hm-types.mjs +1 -1
- package/dist/hmblock-to-editorblock.mjs +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +14 -14
- package/dist/pdf-to-blocks.mjs +3 -3
- package/dist/resource-read.mjs +5 -5
- package/dist/tei-to-blocks.mjs +2 -2
- package/dist/unicode.mjs +1 -1
- package/package.json +1 -1
package/dist/auto-link.mjs
CHANGED
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
documentContainsLinkToChild,
|
|
5
5
|
documentHasSelfQuery,
|
|
6
6
|
shouldAutoLinkParent
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-PEG3UOMI.mjs";
|
|
8
|
+
import "./chunk-W7H2UYQL.mjs";
|
|
9
9
|
import "./chunk-PJ2RFT5A.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-73JZJ5YC.mjs";
|
|
11
11
|
import "./chunk-LVAHHQIK.mjs";
|
|
12
12
|
import "./chunk-DR3HJ6BV.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-Q7YPP3WO.mjs";
|
|
14
14
|
import "./chunk-7P6ASYW6.mjs";
|
|
15
15
|
export {
|
|
16
16
|
autoLinkChildToParent,
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
emitFrontmatter,
|
|
8
8
|
parseDraftFilename,
|
|
9
9
|
slugify
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-X4VXKKMT.mjs";
|
|
11
|
+
import "./chunk-Q7YPP3WO.mjs";
|
|
12
12
|
import "./chunk-7P6ASYW6.mjs";
|
|
13
13
|
export {
|
|
14
14
|
blocksToMarkdown,
|
package/dist/capability.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCapability,
|
|
3
3
|
resolveCapability
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LQMTE724.mjs";
|
|
5
5
|
import "./chunk-LVAHHQIK.mjs";
|
|
6
6
|
import "./chunk-NBCHK76Q.mjs";
|
|
7
7
|
import "./chunk-DR3HJ6BV.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-Q7YPP3WO.mjs";
|
|
9
9
|
import "./chunk-3TPCJCVO.mjs";
|
|
10
10
|
import "./chunk-7P6ASYW6.mjs";
|
|
11
11
|
export {
|
package/dist/change.d.ts
CHANGED
|
@@ -134,5 +134,7 @@ export type SignDocumentChangeInput = {
|
|
|
134
134
|
*/
|
|
135
135
|
export declare function signDocumentChange(input: SignDocumentChangeInput, signer: AnySigner): Promise<{
|
|
136
136
|
changeCid: CID;
|
|
137
|
+
genesis: string;
|
|
138
|
+
generation: number;
|
|
137
139
|
publishInput: HMPublishBlobsInput;
|
|
138
140
|
}>;
|
package/dist/change.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TSUQYYH6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createSeedClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NGLLI4HI.mjs";
|
|
7
7
|
import {
|
|
8
8
|
unpackHmId
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-Q7YPP3WO.mjs";
|
|
10
10
|
|
|
11
11
|
// src/resource-read.ts
|
|
12
12
|
async function resolveIdWithClient(rawId, options = {}) {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
createDocumentChange,
|
|
8
8
|
createGenesisChange,
|
|
9
9
|
signDocumentChange
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-W7H2UYQL.mjs";
|
|
11
11
|
import {
|
|
12
12
|
createVersionRef
|
|
13
13
|
} from "./chunk-PJ2RFT5A.mjs";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
HMActionSchema,
|
|
16
16
|
HMRequestSchema,
|
|
17
17
|
packHmId
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-Q7YPP3WO.mjs";
|
|
19
19
|
|
|
20
20
|
// src/client.ts
|
|
21
21
|
import { encode as cborEncode } from "@ipld/dag-cbor";
|
|
@@ -178,7 +178,7 @@ function createSeedClient(baseUrl, options) {
|
|
|
178
178
|
async function publishDocument(input, signer) {
|
|
179
179
|
if (!input.genesis && !input.baseVersion && !input.path) {
|
|
180
180
|
const genesisChange = await createGenesisChange(signer);
|
|
181
|
-
const
|
|
181
|
+
const generation2 = input.generation != null ? Number(input.generation) : 1;
|
|
182
182
|
if (input.changes.every((change) => {
|
|
183
183
|
var _a;
|
|
184
184
|
return ((_a = change.op) == null ? void 0 : _a.case) === "setMetadata";
|
|
@@ -198,7 +198,7 @@ function createSeedClient(baseUrl, options) {
|
|
|
198
198
|
path: "",
|
|
199
199
|
genesis: genesisChange.cid.toString(),
|
|
200
200
|
version: contentChange.cid.toString(),
|
|
201
|
-
generation,
|
|
201
|
+
generation: generation2,
|
|
202
202
|
capability: input.capability
|
|
203
203
|
},
|
|
204
204
|
signer
|
|
@@ -210,7 +210,7 @@ function createSeedClient(baseUrl, options) {
|
|
|
210
210
|
...ref.blobs
|
|
211
211
|
]
|
|
212
212
|
});
|
|
213
|
-
return;
|
|
213
|
+
return { version: contentChange.cid.toString(), genesis: genesisChange.cid.toString(), generation: generation2 };
|
|
214
214
|
}
|
|
215
215
|
const genesisRef = await createVersionRef(
|
|
216
216
|
{
|
|
@@ -218,7 +218,7 @@ function createSeedClient(baseUrl, options) {
|
|
|
218
218
|
path: "",
|
|
219
219
|
genesis: genesisChange.cid.toString(),
|
|
220
220
|
version: genesisChange.cid.toString(),
|
|
221
|
-
generation,
|
|
221
|
+
generation: generation2,
|
|
222
222
|
capability: input.capability
|
|
223
223
|
},
|
|
224
224
|
signer
|
|
@@ -230,7 +230,7 @@ function createSeedClient(baseUrl, options) {
|
|
|
230
230
|
...input,
|
|
231
231
|
baseVersion: genesisChange.cid.toString(),
|
|
232
232
|
genesis: genesisChange.cid.toString(),
|
|
233
|
-
generation
|
|
233
|
+
generation: generation2
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
236
|
const prepareInput = {
|
|
@@ -242,7 +242,7 @@ function createSeedClient(baseUrl, options) {
|
|
|
242
242
|
visibility: input.visibility
|
|
243
243
|
};
|
|
244
244
|
const { unsignedChange } = await request("PrepareDocumentChange", prepareInput);
|
|
245
|
-
const { publishInput } = await signDocumentChange(
|
|
245
|
+
const { publishInput, changeCid, genesis, generation } = await signDocumentChange(
|
|
246
246
|
{
|
|
247
247
|
account: input.account,
|
|
248
248
|
path: input.path,
|
|
@@ -255,6 +255,7 @@ function createSeedClient(baseUrl, options) {
|
|
|
255
255
|
signer
|
|
256
256
|
);
|
|
257
257
|
await publish(publishInput);
|
|
258
|
+
return { version: changeCid.toString(), genesis, generation };
|
|
258
259
|
}
|
|
259
260
|
return {
|
|
260
261
|
baseUrl: normalizedBaseUrl,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createChange,
|
|
3
3
|
createChangeOps
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-W7H2UYQL.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createVersionRef
|
|
7
7
|
} from "./chunk-PJ2RFT5A.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveDocumentState
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-73JZJ5YC.mjs";
|
|
11
11
|
import {
|
|
12
12
|
entityQueryPathToHmIdPath,
|
|
13
13
|
packHmId,
|
|
14
14
|
unpackHmId
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-Q7YPP3WO.mjs";
|
|
16
16
|
|
|
17
17
|
// src/auto-link.ts
|
|
18
18
|
import { CID } from "multiformats/cid";
|
|
@@ -761,6 +761,10 @@ var HMNavigationItemSchema = z.object({
|
|
|
761
761
|
link: z.string()
|
|
762
762
|
});
|
|
763
763
|
var HMDraftContentSchema = z.object({
|
|
764
|
+
/** Baselines superseded by reference maintenance; stale autosaves must not restore them. */
|
|
765
|
+
maintenancePreviousDeps: z.array(z.array(z.string())).optional(),
|
|
766
|
+
/** Monotonic local maintenance epoch; prevents stale same-version autosaves. */
|
|
767
|
+
maintenanceRevision: z.number().int().nonnegative().default(0),
|
|
764
768
|
content: z.array(z.any()),
|
|
765
769
|
// EditorBlock validation is handled elsewhere
|
|
766
770
|
deps: z.array(z.string().min(1)).default([]),
|
|
@@ -771,6 +775,7 @@ var HMDraftContentSchema = z.object({
|
|
|
771
775
|
* auto-rebase classifier to distinguish locally-edited blocks from incoming
|
|
772
776
|
* remote edits. Persisted so reload-after-rebase keeps the touch history.
|
|
773
777
|
*/
|
|
778
|
+
removedChildDocumentIds: z.array(z.string()).optional(),
|
|
774
779
|
mineTouchedIds: z.array(z.string()).optional(),
|
|
775
780
|
/**
|
|
776
781
|
* Snapshot of the published HMBlockNode[] tree at the time the draft was
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
entityQueryPathToHmIdPath,
|
|
3
3
|
parseFragment,
|
|
4
4
|
unpackHmId
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-Q7YPP3WO.mjs";
|
|
6
6
|
|
|
7
7
|
// src/hm-resolver.ts
|
|
8
8
|
async function resolveHypermediaUrl(url, opts) {
|
|
@@ -66,8 +66,21 @@ async function resolveHypermediaUrl(url, opts) {
|
|
|
66
66
|
}
|
|
67
67
|
throw error;
|
|
68
68
|
}
|
|
69
|
+
if ((opts == null ? void 0 : opts.requireSuccessfulResponse) && response.status !== 200) {
|
|
70
|
+
throw new Error(`Hypermedia URL resolution failed with HTTP ${response.status}`);
|
|
71
|
+
}
|
|
69
72
|
if (response.status === 200) {
|
|
70
73
|
const rawId = response.headers.get("x-hypermedia-id");
|
|
74
|
+
if ((opts == null ? void 0 : opts.requireSuccessfulResponse) && !rawId && [
|
|
75
|
+
"x-hypermedia-id",
|
|
76
|
+
"x-hypermedia-version",
|
|
77
|
+
"x-hypermedia-title",
|
|
78
|
+
"x-hypermedia-target",
|
|
79
|
+
"x-hypermedia-authors",
|
|
80
|
+
"x-hypermedia-type"
|
|
81
|
+
].some((header) => response.headers.has(header))) {
|
|
82
|
+
throw new Error("Missing Hypermedia identity response header");
|
|
83
|
+
}
|
|
71
84
|
const id = rawId ? decodeURIComponent(rawId) : null;
|
|
72
85
|
const version = response.headers.get("x-hypermedia-version");
|
|
73
86
|
const encodedTitle = response.headers.get("x-hypermedia-title");
|
|
@@ -89,6 +102,7 @@ async function resolveHypermediaUrl(url, opts) {
|
|
|
89
102
|
} catch {
|
|
90
103
|
}
|
|
91
104
|
if (!hmId) {
|
|
105
|
+
if (opts == null ? void 0 : opts.requireSuccessfulResponse) throw new Error("Invalid Hypermedia identity response header");
|
|
92
106
|
return null;
|
|
93
107
|
}
|
|
94
108
|
return {
|
|
@@ -118,6 +118,8 @@ async function signDocumentChange(input, signer) {
|
|
|
118
118
|
);
|
|
119
119
|
return {
|
|
120
120
|
changeCid,
|
|
121
|
+
genesis: effectiveGenesis,
|
|
122
|
+
generation: effectiveGeneration,
|
|
121
123
|
publishInput: {
|
|
122
124
|
blobs: [{ data: normalizeBytes(signedBytes), cid: changeCid.toString() }, ...refBlobs.blobs]
|
|
123
125
|
}
|
package/dist/client.d.ts
CHANGED
|
@@ -6,6 +6,12 @@ import type { AnySigner } from './signer';
|
|
|
6
6
|
* If the query contains only a __value key, returns the primitive value directly.
|
|
7
7
|
*/
|
|
8
8
|
export declare function deserializeQueryString<T>(queryString: string, schema: z.ZodType<T>): T;
|
|
9
|
+
/** Identifiers of the signed publication, available before the document index catches up. */
|
|
10
|
+
export type PublishDocumentResult = {
|
|
11
|
+
version: string;
|
|
12
|
+
genesis: string;
|
|
13
|
+
generation: number;
|
|
14
|
+
};
|
|
9
15
|
export type PublishDocumentInput = {
|
|
10
16
|
account: string;
|
|
11
17
|
changes: HMPrepareDocumentChangeInput['changes'];
|
|
@@ -35,7 +41,7 @@ export type SeedClient = {
|
|
|
35
41
|
}>['output']>;
|
|
36
42
|
publish(input: PublishBlobsRequest['input']): Promise<PublishBlobsRequest['output']>;
|
|
37
43
|
publishBlobs(input: PublishBlobsRequest['input']): Promise<PublishBlobsRequest['output']>;
|
|
38
|
-
publishDocument(input: PublishDocumentInput, signer: AnySigner): Promise<
|
|
44
|
+
publishDocument(input: PublishDocumentInput, signer: AnySigner): Promise<PublishDocumentResult>;
|
|
39
45
|
baseUrl: string;
|
|
40
46
|
};
|
|
41
47
|
export declare function createSeedClient(baseUrl: string, options?: SeedClientOptions): SeedClient;
|
package/dist/client.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSeedClient,
|
|
3
3
|
deserializeQueryString
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NGLLI4HI.mjs";
|
|
5
5
|
import "./chunk-CBELM7KX.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-W7H2UYQL.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-Q7YPP3WO.mjs";
|
|
11
11
|
import "./chunk-7P6ASYW6.mjs";
|
|
12
12
|
export {
|
|
13
13
|
createSeedClient,
|
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-IQONPGLX.mjs";
|
|
8
8
|
import "./chunk-N3P7S5YZ.mjs";
|
|
9
9
|
import "./chunk-LVAHHQIK.mjs";
|
|
10
10
|
import "./chunk-DR3HJ6BV.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-Q7YPP3WO.mjs";
|
|
12
12
|
import "./chunk-7P6ASYW6.mjs";
|
|
13
13
|
export {
|
|
14
14
|
commentRecordIdFromBlob,
|
package/dist/document-state.mjs
CHANGED
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
followToDocument,
|
|
5
5
|
resolveDocumentState,
|
|
6
6
|
resolveEditableDocument
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-73JZJ5YC.mjs";
|
|
8
|
+
import "./chunk-Q7YPP3WO.mjs";
|
|
9
9
|
import "./chunk-7P6ASYW6.mjs";
|
|
10
10
|
export {
|
|
11
11
|
describeRedirect,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
editorBlockToHMBlock,
|
|
3
3
|
editorBlocksToHMBlockNodes
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Q2NA774U.mjs";
|
|
5
5
|
import "./chunk-N3P7S5YZ.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-Q7YPP3WO.mjs";
|
|
7
7
|
import "./chunk-7P6ASYW6.mjs";
|
|
8
8
|
export {
|
|
9
9
|
editorBlockToHMBlock,
|
package/dist/hm-resolver.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ export type DomainResolverFn = (hostname: string) => Promise<DomainResolution>;
|
|
|
15
15
|
export type DomainIdChangedCallback = (domain: string, oldUid: string, newUid: string) => void;
|
|
16
16
|
export type ResolveOptions = {
|
|
17
17
|
domainResolver?: DomainResolverFn;
|
|
18
|
+
/** Distinguish failed HTTP/malformed metadata from a verified ordinary web page. */
|
|
19
|
+
requireSuccessfulResponse?: boolean;
|
|
18
20
|
};
|
|
19
21
|
/**
|
|
20
22
|
* Resolve a web URL to its Hypermedia metadata.
|
package/dist/hm-resolver.mjs
CHANGED
package/dist/hm-types.d.ts
CHANGED
|
@@ -16714,6 +16714,10 @@ export declare const HMNavigationItemSchema: z.ZodObject<{
|
|
|
16714
16714
|
}>;
|
|
16715
16715
|
export type HMNavigationItem = z.infer<typeof HMNavigationItemSchema>;
|
|
16716
16716
|
export declare const HMDraftContentSchema: z.ZodObject<{
|
|
16717
|
+
/** Baselines superseded by reference maintenance; stale autosaves must not restore them. */
|
|
16718
|
+
maintenancePreviousDeps: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;
|
|
16719
|
+
/** Monotonic local maintenance epoch; prevents stale same-version autosaves. */
|
|
16720
|
+
maintenanceRevision: z.ZodDefault<z.ZodNumber>;
|
|
16717
16721
|
content: z.ZodArray<z.ZodAny, "many">;
|
|
16718
16722
|
deps: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
16719
16723
|
navigation: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -16738,6 +16742,7 @@ export declare const HMDraftContentSchema: z.ZodObject<{
|
|
|
16738
16742
|
* auto-rebase classifier to distinguish locally-edited blocks from incoming
|
|
16739
16743
|
* remote edits. Persisted so reload-after-rebase keeps the touch history.
|
|
16740
16744
|
*/
|
|
16745
|
+
removedChildDocumentIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
16741
16746
|
mineTouchedIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
16742
16747
|
/**
|
|
16743
16748
|
* Snapshot of the published HMBlockNode[] tree at the time the draft was
|
|
@@ -16752,7 +16757,9 @@ export declare const HMDraftContentSchema: z.ZodObject<{
|
|
|
16752
16757
|
publishPath: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
16753
16758
|
}, "strip", z.ZodTypeAny, {
|
|
16754
16759
|
content: any[];
|
|
16760
|
+
maintenanceRevision: number;
|
|
16755
16761
|
deps: string[];
|
|
16762
|
+
maintenancePreviousDeps?: string[][] | undefined;
|
|
16756
16763
|
navigation?: {
|
|
16757
16764
|
link: string;
|
|
16758
16765
|
type: "Link";
|
|
@@ -16760,11 +16767,14 @@ export declare const HMDraftContentSchema: z.ZodObject<{
|
|
|
16760
16767
|
text: string;
|
|
16761
16768
|
}[] | undefined;
|
|
16762
16769
|
cursorPosition?: number | undefined;
|
|
16770
|
+
removedChildDocumentIds?: string[] | undefined;
|
|
16763
16771
|
mineTouchedIds?: string[] | undefined;
|
|
16764
16772
|
baseBlocks?: any[] | undefined;
|
|
16765
16773
|
publishPath?: string[] | undefined;
|
|
16766
16774
|
}, {
|
|
16767
16775
|
content: any[];
|
|
16776
|
+
maintenancePreviousDeps?: string[][] | undefined;
|
|
16777
|
+
maintenanceRevision?: number | undefined;
|
|
16768
16778
|
deps?: string[] | undefined;
|
|
16769
16779
|
navigation?: {
|
|
16770
16780
|
link: string;
|
|
@@ -16773,6 +16783,7 @@ export declare const HMDraftContentSchema: z.ZodObject<{
|
|
|
16773
16783
|
text: string;
|
|
16774
16784
|
}[] | undefined;
|
|
16775
16785
|
cursorPosition?: number | undefined;
|
|
16786
|
+
removedChildDocumentIds?: string[] | undefined;
|
|
16776
16787
|
mineTouchedIds?: string[] | undefined;
|
|
16777
16788
|
baseBlocks?: any[] | undefined;
|
|
16778
16789
|
publishPath?: string[] | undefined;
|
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-MTGPGNGT.mjs";
|
|
6
|
+
import "./chunk-Q7YPP3WO.mjs";
|
|
7
7
|
import "./chunk-7P6ASYW6.mjs";
|
|
8
8
|
export {
|
|
9
9
|
annotationContains,
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export type { CapabilityRole, CreateCapabilityInput } from './capability';
|
|
|
3
3
|
export { createChange, createChangeOps, createDocumentChange, createDocumentChangeFromOps, createGenesisChange, signDocumentChange, signPreparedChange, } from './change';
|
|
4
4
|
export type { CreateChangeOpsInput, CreateDocumentChangeFromOpsInput, CreateDocumentChangeInput, DocumentOperation, SignDocumentChangeInput, } from './change';
|
|
5
5
|
export { createSeedClient } from './client';
|
|
6
|
-
export type { PublishDocumentInput, SeedClient, SeedClientOptions } from './client';
|
|
6
|
+
export type { PublishDocumentResult, PublishDocumentInput, SeedClient, SeedClientOptions } from './client';
|
|
7
7
|
export { commentRecordIdFromBlob, createComment, deleteComment, updateComment } from './comment';
|
|
8
8
|
export type { CommentAttachmentBlob, CreateCommentInput, DeleteCommentInput, QuotingTarget, UpdateCommentInput, } from './comment';
|
|
9
9
|
export { contactRecordIdFromBlob, createContact, deleteContact, updateContact } from './contact';
|
package/dist/index.mjs
CHANGED
|
@@ -10,16 +10,16 @@ import {
|
|
|
10
10
|
} from "./chunk-XB6E7EVC.mjs";
|
|
11
11
|
import {
|
|
12
12
|
pdfToBlocks
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LMWLJHSM.mjs";
|
|
14
14
|
import {
|
|
15
15
|
teiToBlocks
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-5OEUIK3L.mjs";
|
|
17
17
|
import {
|
|
18
18
|
embeddedPdfToBlocks
|
|
19
19
|
} from "./chunk-52P3E6H6.mjs";
|
|
20
20
|
import {
|
|
21
21
|
resolveIdWithClient
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-7UTCJZPQ.mjs";
|
|
23
23
|
import {
|
|
24
24
|
fileToIpfsBlobs,
|
|
25
25
|
filesToIpfsBlobs,
|
|
@@ -34,15 +34,15 @@ import {
|
|
|
34
34
|
import {
|
|
35
35
|
resolveHypermediaUrl,
|
|
36
36
|
resolveId
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-TSUQYYH6.mjs";
|
|
38
38
|
import {
|
|
39
39
|
annotationContains,
|
|
40
40
|
hmBlockToEditorBlock,
|
|
41
41
|
hmBlocksToEditorContent
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-MTGPGNGT.mjs";
|
|
43
43
|
import {
|
|
44
44
|
createSeedClient
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-NGLLI4HI.mjs";
|
|
46
46
|
import {
|
|
47
47
|
SeedClientError,
|
|
48
48
|
SeedNetworkError,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
deleteComment,
|
|
55
55
|
trimTrailingEmptyBlocks,
|
|
56
56
|
updateComment
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-IQONPGLX.mjs";
|
|
58
58
|
import {
|
|
59
59
|
contactRecordIdFromBlob,
|
|
60
60
|
createContact,
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
import {
|
|
65
65
|
editorBlockToHMBlock,
|
|
66
66
|
editorBlocksToHMBlockNodes
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-Q2NA774U.mjs";
|
|
68
68
|
import {
|
|
69
69
|
AnnotationSet,
|
|
70
70
|
addSpanToAnnotation,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
documentContainsLinkToChild,
|
|
80
80
|
documentHasSelfQuery,
|
|
81
81
|
shouldAutoLinkParent
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-PEG3UOMI.mjs";
|
|
83
83
|
import {
|
|
84
84
|
createChange,
|
|
85
85
|
createChangeOps,
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
createGenesisChange,
|
|
89
89
|
signDocumentChange,
|
|
90
90
|
signPreparedChange
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-W7H2UYQL.mjs";
|
|
92
92
|
import {
|
|
93
93
|
createRedirectRef,
|
|
94
94
|
createTombstoneRef,
|
|
@@ -100,7 +100,7 @@ import {
|
|
|
100
100
|
followToDocument,
|
|
101
101
|
resolveDocumentState,
|
|
102
102
|
resolveEditableDocument
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-73JZJ5YC.mjs";
|
|
104
104
|
import "./chunk-2MD3FXKB.mjs";
|
|
105
105
|
import {
|
|
106
106
|
computeReplaceOps,
|
|
@@ -119,11 +119,11 @@ import {
|
|
|
119
119
|
emitFrontmatter,
|
|
120
120
|
parseDraftFilename,
|
|
121
121
|
slugify
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-X4VXKKMT.mjs";
|
|
123
123
|
import {
|
|
124
124
|
createCapability,
|
|
125
125
|
resolveCapability
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-LQMTE724.mjs";
|
|
127
127
|
import "./chunk-LVAHHQIK.mjs";
|
|
128
128
|
import "./chunk-NBCHK76Q.mjs";
|
|
129
129
|
import {
|
|
@@ -143,7 +143,7 @@ import {
|
|
|
143
143
|
parseFragment,
|
|
144
144
|
serializeBlockRange,
|
|
145
145
|
unpackHmId
|
|
146
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-Q7YPP3WO.mjs";
|
|
147
147
|
import "./chunk-3TPCJCVO.mjs";
|
|
148
148
|
import "./chunk-7P6ASYW6.mjs";
|
|
149
149
|
export {
|
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-LMWLJHSM.mjs";
|
|
4
|
+
import "./chunk-5OEUIK3L.mjs";
|
|
5
5
|
import "./chunk-52P3E6H6.mjs";
|
|
6
6
|
import "./chunk-PPAY4WZX.mjs";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-Q7YPP3WO.mjs";
|
|
8
8
|
import "./chunk-7P6ASYW6.mjs";
|
|
9
9
|
export {
|
|
10
10
|
pdfToBlocks
|
package/dist/resource-read.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveIdWithClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-7UTCJZPQ.mjs";
|
|
4
|
+
import "./chunk-TSUQYYH6.mjs";
|
|
5
|
+
import "./chunk-NGLLI4HI.mjs";
|
|
6
6
|
import "./chunk-CBELM7KX.mjs";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-W7H2UYQL.mjs";
|
|
8
8
|
import "./chunk-PJ2RFT5A.mjs";
|
|
9
9
|
import "./chunk-LVAHHQIK.mjs";
|
|
10
10
|
import "./chunk-DR3HJ6BV.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-Q7YPP3WO.mjs";
|
|
12
12
|
import "./chunk-7P6ASYW6.mjs";
|
|
13
13
|
export {
|
|
14
14
|
resolveIdWithClient
|
package/dist/tei-to-blocks.mjs
CHANGED
package/dist/unicode.mjs
CHANGED