@seed-hypermedia/client 0.0.127 → 0.0.129

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.
Files changed (36) hide show
  1. package/dist/apps.mjs +4 -3
  2. package/dist/auto-link.mjs +3 -3
  3. package/dist/blocks-to-markdown.mjs +3 -3
  4. package/dist/capability.mjs +2 -2
  5. package/dist/{chunk-O3QWSQ3Y.mjs → chunk-2LSZJ2IM.mjs} +1 -1
  6. package/dist/{chunk-6GHZWVT6.mjs → chunk-2XNVA2GK.mjs} +1 -1
  7. package/dist/{chunk-XMDF4NIR.mjs → chunk-4JFL3SUQ.mjs} +1 -1
  8. package/dist/{chunk-QIZO45NU.mjs → chunk-ANR3R5NH.mjs} +1 -1
  9. package/dist/{chunk-7NQUJO5X.mjs → chunk-APL23ACF.mjs} +1 -1
  10. package/dist/{chunk-OUBG6JFC.mjs → chunk-ETQZ6PRJ.mjs} +3 -3
  11. package/dist/{chunk-EDCDFQJC.mjs → chunk-HY4NWSHF.mjs} +1 -1
  12. package/dist/{chunk-ZAYCEKV2.mjs → chunk-IXSAJRZA.mjs} +1 -1
  13. package/dist/{chunk-UCISXEJ7.mjs → chunk-JM4WXPLC.mjs} +1 -1
  14. package/dist/{chunk-4OSIHGZS.mjs → chunk-LGJJ4V2O.mjs} +4 -3
  15. package/dist/{chunk-VWLXKOLW.mjs → chunk-NWOYBZWP.mjs} +2 -2
  16. package/dist/{chunk-LOAOGLQF.mjs → chunk-QU6XHE3U.mjs} +2 -0
  17. package/dist/{chunk-QH6OHO4E.mjs → chunk-RPBGROOJ.mjs} +1 -1
  18. package/dist/{chunk-QTPHQIZJ.mjs → chunk-ZRJYHORB.mjs} +11 -2
  19. package/dist/client.mjs +2 -2
  20. package/dist/comment.mjs +2 -2
  21. package/dist/document-state.d.ts +12 -1
  22. package/dist/document-state.mjs +4 -2
  23. package/dist/editorblock-to-hmblock.mjs +2 -2
  24. package/dist/hm-resolver.mjs +2 -2
  25. package/dist/hm-types.d.ts +2 -0
  26. package/dist/hm-types.mjs +3 -1
  27. package/dist/hmblock-to-editorblock.mjs +2 -2
  28. package/dist/index.d.ts +1 -1
  29. package/dist/index.mjs +15 -13
  30. package/dist/pdf-to-blocks.mjs +3 -3
  31. package/dist/resource-read.mjs +4 -4
  32. package/dist/schema-resolve.mjs +2 -2
  33. package/dist/schema-subtypes.mjs +2 -2
  34. package/dist/tei-to-blocks.mjs +2 -2
  35. package/dist/unicode.mjs +1 -1
  36. package/package.json +1 -1
package/dist/apps.mjs CHANGED
@@ -6,8 +6,9 @@ import {
6
6
  createVersionRef
7
7
  } from "./chunk-PJ2RFT5A.mjs";
8
8
  import {
9
+ editRefGeneration,
9
10
  resolveEditableDocument
10
- } from "./chunk-QTPHQIZJ.mjs";
11
+ } from "./chunk-ZRJYHORB.mjs";
11
12
  import {
12
13
  computeReplaceOps,
13
14
  createBlocksMap,
@@ -20,7 +21,7 @@ import {
20
21
  hmIdPathToEntityQueryPath,
21
22
  packHmId,
22
23
  unpackHmId
23
- } from "./chunk-LOAOGLQF.mjs";
24
+ } from "./chunk-QU6XHE3U.mjs";
24
25
  import "./chunk-AHQWDCHV.mjs";
25
26
  import "./chunk-7P6ASYW6.mjs";
26
27
 
@@ -134,7 +135,7 @@ async function createDocumentUpdateBlobs({
134
135
  path: hmIdPathToEntityQueryPath(base.targetId.path),
135
136
  genesis: state.genesis,
136
137
  version: change.cid.toString(),
137
- generation: Number(ts),
138
+ generation: editRefGeneration(base.document, Number(ts)),
138
139
  capability
139
140
  },
140
141
  signer
@@ -4,13 +4,13 @@ import {
4
4
  documentContainsLinkToChild,
5
5
  documentHasSelfQuery,
6
6
  shouldAutoLinkParent
7
- } from "./chunk-4OSIHGZS.mjs";
7
+ } from "./chunk-LGJJ4V2O.mjs";
8
8
  import "./chunk-O5MHN2EO.mjs";
9
9
  import "./chunk-PJ2RFT5A.mjs";
10
- import "./chunk-QTPHQIZJ.mjs";
10
+ import "./chunk-ZRJYHORB.mjs";
11
11
  import "./chunk-LVAHHQIK.mjs";
12
12
  import "./chunk-DR3HJ6BV.mjs";
13
- import "./chunk-LOAOGLQF.mjs";
13
+ import "./chunk-QU6XHE3U.mjs";
14
14
  import "./chunk-AHQWDCHV.mjs";
15
15
  import "./chunk-7P6ASYW6.mjs";
16
16
  export {
@@ -7,9 +7,9 @@ import {
7
7
  emitFrontmatter,
8
8
  parseDraftFilename,
9
9
  slugify
10
- } from "./chunk-VWLXKOLW.mjs";
11
- import "./chunk-XMDF4NIR.mjs";
12
- import "./chunk-LOAOGLQF.mjs";
10
+ } from "./chunk-NWOYBZWP.mjs";
11
+ import "./chunk-4JFL3SUQ.mjs";
12
+ import "./chunk-QU6XHE3U.mjs";
13
13
  import "./chunk-AHQWDCHV.mjs";
14
14
  import "./chunk-7P6ASYW6.mjs";
15
15
  export {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  createCapability,
3
3
  resolveCapability
4
- } from "./chunk-QH6OHO4E.mjs";
4
+ } from "./chunk-RPBGROOJ.mjs";
5
5
  import "./chunk-LVAHHQIK.mjs";
6
6
  import "./chunk-GBSWXJGU.mjs";
7
7
  import "./chunk-3TPCJCVO.mjs";
8
8
  import "./chunk-DR3HJ6BV.mjs";
9
- import "./chunk-LOAOGLQF.mjs";
9
+ import "./chunk-QU6XHE3U.mjs";
10
10
  import "./chunk-AHQWDCHV.mjs";
11
11
  import "./chunk-7P6ASYW6.mjs";
12
12
  export {
@@ -9,7 +9,7 @@ import {
9
9
  import {
10
10
  hmIdPathToEntityQueryPath,
11
11
  packHmId
12
- } from "./chunk-LOAOGLQF.mjs";
12
+ } from "./chunk-QU6XHE3U.mjs";
13
13
 
14
14
  // src/comment.ts
15
15
  import { decode as cborDecode, encode as cborEncode } from "@ipld/dag-cbor";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getSupportedHMQueryFilters,
3
3
  isSurrogate
4
- } from "./chunk-LOAOGLQF.mjs";
4
+ } from "./chunk-QU6XHE3U.mjs";
5
5
 
6
6
  // src/hmblock-to-editorblock.ts
7
7
  function toEditorBlockType(hmBlockType) {
@@ -2,7 +2,7 @@ import {
2
2
  entityQueryPathToHmIdPath,
3
3
  parseFragment,
4
4
  unpackHmId
5
- } from "./chunk-LOAOGLQF.mjs";
5
+ } from "./chunk-QU6XHE3U.mjs";
6
6
  import {
7
7
  pageParamsFromUrl
8
8
  } from "./chunk-AHQWDCHV.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  codePointLength
3
- } from "./chunk-LOAOGLQF.mjs";
3
+ } from "./chunk-QU6XHE3U.mjs";
4
4
 
5
5
  // src/tei-to-blocks.ts
6
6
  function generateBlockId() {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  teiToBlocks
3
- } from "./chunk-QIZO45NU.mjs";
3
+ } from "./chunk-ANR3R5NH.mjs";
4
4
  import {
5
5
  embeddedPdfToBlocks
6
6
  } from "./chunk-2FJBS3V7.mjs";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  createSeedClient
3
- } from "./chunk-EDCDFQJC.mjs";
3
+ } from "./chunk-HY4NWSHF.mjs";
4
4
  import {
5
5
  extractCommentIdFromUrl,
6
6
  hmDomainUrlToWebUrl,
7
7
  resolveId
8
- } from "./chunk-XMDF4NIR.mjs";
8
+ } from "./chunk-4JFL3SUQ.mjs";
9
9
  import {
10
10
  unpackHmId
11
- } from "./chunk-LOAOGLQF.mjs";
11
+ } from "./chunk-QU6XHE3U.mjs";
12
12
 
13
13
  // src/resource-read.ts
14
14
  async function resolveIdWithClient(rawId, options = {}) {
@@ -15,7 +15,7 @@ import {
15
15
  HMActionSchema,
16
16
  HMRequestSchema,
17
17
  packHmId
18
- } from "./chunk-LOAOGLQF.mjs";
18
+ } from "./chunk-QU6XHE3U.mjs";
19
19
 
20
20
  // src/client.ts
21
21
  import { encode as cborEncode } from "@ipld/dag-cbor";
@@ -20,7 +20,7 @@ import {
20
20
  import {
21
21
  packHmId,
22
22
  unpackHmId
23
- } from "./chunk-LOAOGLQF.mjs";
23
+ } from "./chunk-QU6XHE3U.mjs";
24
24
 
25
25
  // src/schema-resolve.ts
26
26
  var DAG_CBOR_CODE = 113;
@@ -7,7 +7,7 @@ import {
7
7
  codePointLength,
8
8
  parseHMQueryFiltersJSON,
9
9
  toNumber
10
- } from "./chunk-LOAOGLQF.mjs";
10
+ } from "./chunk-QU6XHE3U.mjs";
11
11
 
12
12
  // src/editorblock-to-hmblock.ts
13
13
  function toHMBlockType(editorBlockType) {
@@ -6,13 +6,14 @@ import {
6
6
  createVersionRef
7
7
  } from "./chunk-PJ2RFT5A.mjs";
8
8
  import {
9
+ editRefGeneration,
9
10
  resolveDocumentState
10
- } from "./chunk-QTPHQIZJ.mjs";
11
+ } from "./chunk-ZRJYHORB.mjs";
11
12
  import {
12
13
  entityQueryPathToHmIdPath,
13
14
  packHmId,
14
15
  unpackHmId
15
- } from "./chunk-LOAOGLQF.mjs";
16
+ } from "./chunk-QU6XHE3U.mjs";
16
17
 
17
18
  // src/auto-link.ts
18
19
  import { CID } from "multiformats/cid";
@@ -129,7 +130,7 @@ async function autoLinkChildToParent(opts) {
129
130
  const newDepth = state.headDepth + 1;
130
131
  const { unsignedBytes, ts } = createChangeOps({ ops, genesisCid, deps: depCids, depth: newDepth });
131
132
  const changeBlock = await createChange(unsignedBytes, signer);
132
- const generation = Number(ts);
133
+ const generation = editRefGeneration(parentDocument, Number(ts));
133
134
  const refInput = await createVersionRef(
134
135
  {
135
136
  space: account,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  resolveId
3
- } from "./chunk-XMDF4NIR.mjs";
3
+ } from "./chunk-4JFL3SUQ.mjs";
4
4
  import {
5
5
  normalizeQuerySort,
6
6
  unpackHmId
7
- } from "./chunk-LOAOGLQF.mjs";
7
+ } from "./chunk-QU6XHE3U.mjs";
8
8
 
9
9
  // src/blocks-to-markdown.ts
10
10
  import { stringify as stringifyYaml } from "yaml";
@@ -347,6 +347,7 @@ function hmMetadataJsonCorrection(metadata) {
347
347
  return metadata;
348
348
  }
349
349
  var BUILTIN_METADATA_KEYS = new Set(Object.keys(HMDocumentMetadataSchema.shape));
350
+ var SCHEMA_BINDING_METADATA_KEYS = /* @__PURE__ */ new Set(["attributesSchema", "childAttributesSchema"]);
350
351
  var DOCUMENT_ATTRIBUTE_DESCRIPTIONS = {
351
352
  name: "Document or space title.",
352
353
  summary: "Short description shown in previews and cards.",
@@ -1799,6 +1800,7 @@ export {
1799
1800
  HMDocumentMetadataSchema,
1800
1801
  hmMetadataJsonCorrection,
1801
1802
  BUILTIN_METADATA_KEYS,
1803
+ SCHEMA_BINDING_METADATA_KEYS,
1802
1804
  DOCUMENT_ATTRIBUTE_DESCRIPTIONS,
1803
1805
  countCustomMetadataFields,
1804
1806
  HMResourceVisibilitySchema,
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  entityQueryPathToHmIdPath,
9
9
  packBaseId
10
- } from "./chunk-LOAOGLQF.mjs";
10
+ } from "./chunk-QU6XHE3U.mjs";
11
11
 
12
12
  // src/capability.ts
13
13
  import { base58btc } from "multiformats/bases/base58";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  packHmId,
3
3
  unpackHmId
4
- } from "./chunk-LOAOGLQF.mjs";
4
+ } from "./chunk-QU6XHE3U.mjs";
5
5
 
6
6
  // src/document-state.ts
7
7
  async function resolveDocumentState(client, targetId) {
@@ -102,6 +102,14 @@ async function resolveEditableDocument(client, id) {
102
102
  const state = await resolveDocumentState(client, packHmId(followed.targetId));
103
103
  return { ...followed, state };
104
104
  }
105
+ function editRefGeneration(document, fresh, supersedesRedirect = false) {
106
+ var _a;
107
+ if (supersedesRedirect) return fresh;
108
+ const current = (_a = document.generationInfo) == null ? void 0 : _a.generation;
109
+ if (current === void 0 || current === null) return fresh;
110
+ const generation = Number(current);
111
+ return Number.isFinite(generation) ? generation : fresh;
112
+ }
105
113
  function computeDepths(changesResp) {
106
114
  const depthMap = /* @__PURE__ */ new Map();
107
115
  const depsMap = /* @__PURE__ */ new Map();
@@ -153,5 +161,6 @@ export {
153
161
  followRedirects,
154
162
  describeRedirect,
155
163
  followToDocument,
156
- resolveEditableDocument
164
+ resolveEditableDocument,
165
+ editRefGeneration
157
166
  };
package/dist/client.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createSeedClient,
3
3
  deserializeQueryString
4
- } from "./chunk-EDCDFQJC.mjs";
4
+ } from "./chunk-HY4NWSHF.mjs";
5
5
  import "./chunk-CBELM7KX.mjs";
6
6
  import "./chunk-O5MHN2EO.mjs";
7
7
  import "./chunk-PJ2RFT5A.mjs";
8
8
  import "./chunk-LVAHHQIK.mjs";
9
9
  import "./chunk-DR3HJ6BV.mjs";
10
- import "./chunk-LOAOGLQF.mjs";
10
+ import "./chunk-QU6XHE3U.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-O3QWSQ3Y.mjs";
7
+ } from "./chunk-2LSZJ2IM.mjs";
8
8
  import "./chunk-JKKS35IS.mjs";
9
9
  import "./chunk-LVAHHQIK.mjs";
10
10
  import "./chunk-DR3HJ6BV.mjs";
11
- import "./chunk-LOAOGLQF.mjs";
11
+ import "./chunk-QU6XHE3U.mjs";
12
12
  import "./chunk-AHQWDCHV.mjs";
13
13
  import "./chunk-7P6ASYW6.mjs";
14
14
  export {
@@ -100,6 +100,17 @@ export declare function followToDocument(client: Pick<SeedClient, 'request'>, id
100
100
  *
101
101
  * Edits at a redirected address must build the Change on the redirect target's DAG (the source
102
102
  * path has no changes of its own — `ListChanges` returns nothing for it) and publish a Version
103
- * Ref at the source path with a fresh generation, which supersedes the redirect Ref.
103
+ * Ref at the source path with a fresh generation, which supersedes the redirect Ref. Every other
104
+ * edit keeps the document's generation: see {@link editRefGeneration}.
104
105
  */
105
106
  export declare function resolveEditableDocument(client: Pick<SeedClient, 'request'>, id: UnpackedHypermediaId): Promise<EditableDocumentBase>;
107
+ /**
108
+ * The generation for the Version Ref of an edit to an existing document.
109
+ *
110
+ * A generation identifies one life of a document at a path; an edit continues that life, so its
111
+ * Ref must carry the generation the document already has. Stamping each Ref with a new timestamp
112
+ * instead opens a new generation per edit. A fresh generation (`fresh`, normally the new Change's
113
+ * timestamp) is right only when the Ref takes over a path from a redirect (`supersedesRedirect`),
114
+ * or when the document reports no generation to continue.
115
+ */
116
+ export declare function editRefGeneration(document: Pick<HMDocument, 'generationInfo'>, fresh: number, supersedesRedirect?: boolean): number;
@@ -1,15 +1,17 @@
1
1
  import {
2
2
  describeRedirect,
3
+ editRefGeneration,
3
4
  followRedirects,
4
5
  followToDocument,
5
6
  resolveDocumentState,
6
7
  resolveEditableDocument
7
- } from "./chunk-QTPHQIZJ.mjs";
8
- import "./chunk-LOAOGLQF.mjs";
8
+ } from "./chunk-ZRJYHORB.mjs";
9
+ import "./chunk-QU6XHE3U.mjs";
9
10
  import "./chunk-AHQWDCHV.mjs";
10
11
  import "./chunk-7P6ASYW6.mjs";
11
12
  export {
12
13
  describeRedirect,
14
+ editRefGeneration,
13
15
  followRedirects,
14
16
  followToDocument,
15
17
  resolveDocumentState,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  editorBlockToHMBlock,
3
3
  editorBlocksToHMBlockNodes
4
- } from "./chunk-UCISXEJ7.mjs";
4
+ } from "./chunk-JM4WXPLC.mjs";
5
5
  import "./chunk-JKKS35IS.mjs";
6
- import "./chunk-LOAOGLQF.mjs";
6
+ import "./chunk-QU6XHE3U.mjs";
7
7
  import "./chunk-AHQWDCHV.mjs";
8
8
  import "./chunk-7P6ASYW6.mjs";
9
9
  export {
@@ -3,8 +3,8 @@ import {
3
3
  hmDomainUrlToWebUrl,
4
4
  resolveHypermediaUrl,
5
5
  resolveId
6
- } from "./chunk-XMDF4NIR.mjs";
7
- import "./chunk-LOAOGLQF.mjs";
6
+ } from "./chunk-4JFL3SUQ.mjs";
7
+ import "./chunk-QU6XHE3U.mjs";
8
8
  import "./chunk-AHQWDCHV.mjs";
9
9
  import "./chunk-7P6ASYW6.mjs";
10
10
  export {
@@ -905,6 +905,8 @@ export declare function hmMetadataJsonCorrection(metadata: any): any;
905
905
  export type HMMetadata = z.infer<typeof HMDocumentMetadataSchema>;
906
906
  /** Keys declared by HMDocumentMetadataSchema — the built-in document metadata fields. */
907
907
  export declare const BUILTIN_METADATA_KEYS: ReadonlySet<string>;
908
+ /** Metadata keys that bind a document or its children to an attributes schema: structure, not user attributes. */
909
+ export declare const SCHEMA_BINDING_METADATA_KEYS: ReadonlySet<string>;
908
910
  /** User-facing explanations for document attributes understood by Seed. */
909
911
  export declare const DOCUMENT_ATTRIBUTE_DESCRIPTIONS: Readonly<Record<string, string>>;
910
912
  /**
package/dist/hm-types.mjs CHANGED
@@ -188,6 +188,7 @@ import {
188
188
  LinkAnnotationSchema,
189
189
  ParsedFragmentSchema,
190
190
  QuotingRangeSchema,
191
+ SCHEMA_BINDING_METADATA_KEYS,
191
192
  StrikeAnnotationSchema,
192
193
  TextColorAnnotationSchema,
193
194
  TextFamilyAnnotationSchema,
@@ -215,7 +216,7 @@ import {
215
216
  toNumber,
216
217
  unpackHmId,
217
218
  unpackedHmIdSchema
218
- } from "./chunk-LOAOGLQF.mjs";
219
+ } from "./chunk-QU6XHE3U.mjs";
219
220
  import "./chunk-AHQWDCHV.mjs";
220
221
  import "./chunk-7P6ASYW6.mjs";
221
222
  export {
@@ -408,6 +409,7 @@ export {
408
409
  LinkAnnotationSchema,
409
410
  ParsedFragmentSchema,
410
411
  QuotingRangeSchema,
412
+ SCHEMA_BINDING_METADATA_KEYS,
411
413
  StrikeAnnotationSchema,
412
414
  TextColorAnnotationSchema,
413
415
  TextFamilyAnnotationSchema,
@@ -2,8 +2,8 @@ import {
2
2
  annotationContains,
3
3
  hmBlockToEditorBlock,
4
4
  hmBlocksToEditorContent
5
- } from "./chunk-6GHZWVT6.mjs";
6
- import "./chunk-LOAOGLQF.mjs";
5
+ } from "./chunk-2XNVA2GK.mjs";
6
+ import "./chunk-QU6XHE3U.mjs";
7
7
  import "./chunk-AHQWDCHV.mjs";
8
8
  import "./chunk-7P6ASYW6.mjs";
9
9
  export {
package/dist/index.d.ts CHANGED
@@ -42,7 +42,7 @@ export { createBlocksMap, matchBlockIds, computeReplaceOps, hmBlockNodeToBlockNo
42
42
  export type { APIBlockNode, APIBlock } from './block-diff';
43
43
  export { autoLinkChildToParent, createAutoLinkOps, documentContainsLinkToChild, documentHasSelfQuery, shouldAutoLinkParent, } from './auto-link';
44
44
  export type { AutoLinkChildToParentOptions } from './auto-link';
45
- export { describeRedirect, followRedirects, followToDocument, resolveDocumentState, resolveEditableDocument, } from './document-state';
45
+ export { describeRedirect, followRedirects, followToDocument, editRefGeneration, resolveDocumentState, resolveEditableDocument, } from './document-state';
46
46
  export type { DocumentState, EditableDocumentBase, FollowedDocument, FollowedResource, RedirectHop, } from './document-state';
47
47
  export { editorBlockToHMBlock, editorBlocksToHMBlockNodes } from './editorblock-to-hmblock';
48
48
  export { hmBlocksToEditorContent, hmBlockToEditorBlock, annotationContains } from './hmblock-to-editorblock';
package/dist/index.mjs CHANGED
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  pdfToBlocks
3
- } from "./chunk-7NQUJO5X.mjs";
3
+ } from "./chunk-APL23ACF.mjs";
4
4
  import {
5
5
  teiToBlocks
6
- } from "./chunk-QIZO45NU.mjs";
6
+ } from "./chunk-ANR3R5NH.mjs";
7
7
  import {
8
8
  embeddedPdfToBlocks
9
9
  } from "./chunk-2FJBS3V7.mjs";
10
10
  import {
11
11
  resolveIdWithClient
12
- } from "./chunk-OUBG6JFC.mjs";
12
+ } from "./chunk-ETQZ6PRJ.mjs";
13
13
  import {
14
14
  annotationContains,
15
15
  hmBlockToEditorBlock,
16
16
  hmBlocksToEditorContent
17
- } from "./chunk-6GHZWVT6.mjs";
17
+ } from "./chunk-2XNVA2GK.mjs";
18
18
  import {
19
19
  keyfile_exports
20
20
  } from "./chunk-EY6RQVAP.mjs";
@@ -36,7 +36,7 @@ import {
36
36
  import {
37
37
  editorBlockToHMBlock,
38
38
  editorBlocksToHMBlockNodes
39
- } from "./chunk-UCISXEJ7.mjs";
39
+ } from "./chunk-JM4WXPLC.mjs";
40
40
  import {
41
41
  encryption_exports
42
42
  } from "./chunk-UOL3F6XQ.mjs";
@@ -55,7 +55,7 @@ import {
55
55
  } from "./chunk-PPAY4WZX.mjs";
56
56
  import {
57
57
  createSeedClient
58
- } from "./chunk-EDCDFQJC.mjs";
58
+ } from "./chunk-HY4NWSHF.mjs";
59
59
  import {
60
60
  SeedClientError,
61
61
  SeedNetworkError,
@@ -67,7 +67,7 @@ import {
67
67
  deleteComment,
68
68
  trimTrailingEmptyBlocks,
69
69
  updateComment
70
- } from "./chunk-O3QWSQ3Y.mjs";
70
+ } from "./chunk-2LSZJ2IM.mjs";
71
71
  import {
72
72
  AnnotationSet,
73
73
  addSpanToAnnotation,
@@ -88,7 +88,7 @@ import {
88
88
  documentContainsLinkToChild,
89
89
  documentHasSelfQuery,
90
90
  shouldAutoLinkParent
91
- } from "./chunk-4OSIHGZS.mjs";
91
+ } from "./chunk-LGJJ4V2O.mjs";
92
92
  import {
93
93
  createChange,
94
94
  createChangeOps,
@@ -106,11 +106,12 @@ import {
106
106
  } from "./chunk-PJ2RFT5A.mjs";
107
107
  import {
108
108
  describeRedirect,
109
+ editRefGeneration,
109
110
  followRedirects,
110
111
  followToDocument,
111
112
  resolveDocumentState,
112
113
  resolveEditableDocument
113
- } from "./chunk-QTPHQIZJ.mjs";
114
+ } from "./chunk-ZRJYHORB.mjs";
114
115
  import "./chunk-2MD3FXKB.mjs";
115
116
  import {
116
117
  computeReplaceOps,
@@ -129,17 +130,17 @@ import {
129
130
  emitFrontmatter,
130
131
  parseDraftFilename,
131
132
  slugify
132
- } from "./chunk-VWLXKOLW.mjs";
133
+ } from "./chunk-NWOYBZWP.mjs";
133
134
  import {
134
135
  extractCommentIdFromUrl,
135
136
  hmDomainUrlToWebUrl,
136
137
  resolveHypermediaUrl,
137
138
  resolveId
138
- } from "./chunk-XMDF4NIR.mjs";
139
+ } from "./chunk-4JFL3SUQ.mjs";
139
140
  import {
140
141
  createCapability,
141
142
  resolveCapability
142
- } from "./chunk-QH6OHO4E.mjs";
143
+ } from "./chunk-RPBGROOJ.mjs";
143
144
  import "./chunk-LVAHHQIK.mjs";
144
145
  import "./chunk-GBSWXJGU.mjs";
145
146
  import "./chunk-3TPCJCVO.mjs";
@@ -160,7 +161,7 @@ import {
160
161
  parseFragment,
161
162
  serializeBlockRange,
162
163
  unpackHmId
163
- } from "./chunk-LOAOGLQF.mjs";
164
+ } from "./chunk-QU6XHE3U.mjs";
164
165
  import "./chunk-AHQWDCHV.mjs";
165
166
  import "./chunk-7P6ASYW6.mjs";
166
167
  export {
@@ -208,6 +209,7 @@ export {
208
209
  documentHasSelfQuery,
209
210
  documentToResolvedMarkdown,
210
211
  draftFilename,
212
+ editRefGeneration,
211
213
  editorBlockToHMBlock,
212
214
  editorBlocksToHMBlockNodes,
213
215
  embeddedPdfToBlocks,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  pdfToBlocks
3
- } from "./chunk-7NQUJO5X.mjs";
4
- import "./chunk-QIZO45NU.mjs";
3
+ } from "./chunk-APL23ACF.mjs";
4
+ import "./chunk-ANR3R5NH.mjs";
5
5
  import "./chunk-2FJBS3V7.mjs";
6
6
  import "./chunk-PPAY4WZX.mjs";
7
- import "./chunk-LOAOGLQF.mjs";
7
+ import "./chunk-QU6XHE3U.mjs";
8
8
  import "./chunk-AHQWDCHV.mjs";
9
9
  import "./chunk-7P6ASYW6.mjs";
10
10
  export {
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  resolveIdWithClient
3
- } from "./chunk-OUBG6JFC.mjs";
4
- import "./chunk-EDCDFQJC.mjs";
3
+ } from "./chunk-ETQZ6PRJ.mjs";
4
+ import "./chunk-HY4NWSHF.mjs";
5
5
  import "./chunk-CBELM7KX.mjs";
6
6
  import "./chunk-O5MHN2EO.mjs";
7
7
  import "./chunk-PJ2RFT5A.mjs";
8
- import "./chunk-XMDF4NIR.mjs";
8
+ import "./chunk-4JFL3SUQ.mjs";
9
9
  import "./chunk-LVAHHQIK.mjs";
10
10
  import "./chunk-DR3HJ6BV.mjs";
11
- import "./chunk-LOAOGLQF.mjs";
11
+ import "./chunk-QU6XHE3U.mjs";
12
12
  import "./chunk-AHQWDCHV.mjs";
13
13
  import "./chunk-7P6ASYW6.mjs";
14
14
  export {
@@ -17,11 +17,11 @@ import {
17
17
  resolveSchemaRef,
18
18
  schemaDefinitionCid,
19
19
  withoutSchemaLink
20
- } from "./chunk-ZAYCEKV2.mjs";
20
+ } from "./chunk-IXSAJRZA.mjs";
21
21
  import "./chunk-JRJ6U6B2.mjs";
22
22
  import "./chunk-QRSUQQTZ.mjs";
23
23
  import "./chunk-VWSAFDOL.mjs";
24
- import "./chunk-LOAOGLQF.mjs";
24
+ import "./chunk-QU6XHE3U.mjs";
25
25
  import "./chunk-AHQWDCHV.mjs";
26
26
  import "./chunk-7P6ASYW6.mjs";
27
27
  export {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  classifyRef
3
- } from "./chunk-ZAYCEKV2.mjs";
3
+ } from "./chunk-IXSAJRZA.mjs";
4
4
  import {
5
5
  kindOf,
6
6
  nameForCid,
@@ -13,7 +13,7 @@ import {
13
13
  import "./chunk-VWSAFDOL.mjs";
14
14
  import {
15
15
  unpackHmId
16
- } from "./chunk-LOAOGLQF.mjs";
16
+ } from "./chunk-QU6XHE3U.mjs";
17
17
  import "./chunk-AHQWDCHV.mjs";
18
18
  import "./chunk-7P6ASYW6.mjs";
19
19
 
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  teiToBlocks
3
- } from "./chunk-QIZO45NU.mjs";
4
- import "./chunk-LOAOGLQF.mjs";
3
+ } from "./chunk-ANR3R5NH.mjs";
4
+ import "./chunk-QU6XHE3U.mjs";
5
5
  import "./chunk-AHQWDCHV.mjs";
6
6
  import "./chunk-7P6ASYW6.mjs";
7
7
  export {
package/dist/unicode.mjs CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  codePointLength,
9
9
  isSurrogate
10
- } from "./chunk-LOAOGLQF.mjs";
10
+ } from "./chunk-QU6XHE3U.mjs";
11
11
  import "./chunk-AHQWDCHV.mjs";
12
12
  import "./chunk-7P6ASYW6.mjs";
13
13
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seed-hypermedia/client",
3
- "version": "0.0.127",
3
+ "version": "0.0.129",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/seed-hypermedia/seed",