@seed-hypermedia/client 0.0.107 → 0.0.109

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 (42) hide show
  1. package/dist/auto-link.mjs +3 -3
  2. package/dist/blocks-to-markdown.mjs +2 -2
  3. package/dist/capability.mjs +2 -2
  4. package/dist/{chunk-WNLWE5P5.mjs → chunk-2NM2JP5H.mjs} +3 -3
  5. package/dist/{chunk-SG22LWXW.mjs → chunk-34OBOF5O.mjs} +1 -1
  6. package/dist/{chunk-FFH7G6KW.mjs → chunk-52RP7HHW.mjs} +1 -1
  7. package/dist/{chunk-6IW7VKZY.mjs → chunk-5MVCUZBD.mjs} +1 -1
  8. package/dist/{chunk-OSSRQKDG.mjs → chunk-7IISPGNN.mjs} +11 -2
  9. package/dist/{chunk-M7BEYZZV.mjs → chunk-BHESE4LH.mjs} +3 -3
  10. package/dist/{chunk-WHQC63KZ.mjs → chunk-G7CFO5W3.mjs} +7 -2
  11. package/dist/{chunk-3AJ2YACM.mjs → chunk-GWV7ETLU.mjs} +2 -2
  12. package/dist/{chunk-O4PVMTYN.mjs → chunk-HLTKEZ7W.mjs} +1 -1
  13. package/dist/{chunk-C2SV4WDE.mjs → chunk-IAS2V6ON.mjs} +1 -1
  14. package/dist/{chunk-FJSBNU57.mjs → chunk-ICFYYWGD.mjs} +1 -1
  15. package/dist/{chunk-7UR6YTQD.mjs → chunk-KNA3PBET.mjs} +5 -1
  16. package/dist/{chunk-4D6BGGEM.mjs → chunk-KOQHARP5.mjs} +1 -1
  17. package/dist/{chunk-YB5PU37B.mjs → chunk-SQFGEPOQ.mjs} +1 -1
  18. package/dist/chunk-Y5XKORRF.mjs +10 -0
  19. package/dist/{chunk-FXK6WCQS.mjs → chunk-Z3J6R5DN.mjs} +1 -1
  20. package/dist/client.d.ts +1 -1
  21. package/dist/client.mjs +2 -2
  22. package/dist/comment.mjs +2 -2
  23. package/dist/document-state.mjs +2 -2
  24. package/dist/editor-types.d.ts +2 -1
  25. package/dist/editorblock-to-hmblock.mjs +2 -2
  26. package/dist/hm-resolver.mjs +2 -2
  27. package/dist/hm-types.d.ts +2631 -2417
  28. package/dist/hm-types.mjs +3 -1
  29. package/dist/hmblock-to-editorblock.mjs +2 -2
  30. package/dist/index.mjs +13 -13
  31. package/dist/pdf-to-blocks.mjs +3 -3
  32. package/dist/resource-read.mjs +4 -4
  33. package/dist/schema-engine.mjs +2 -2
  34. package/dist/schema-registry.generated.mjs +1 -1
  35. package/dist/schema-resolve.mjs +4 -4
  36. package/dist/schema-subtypes.mjs +4 -4
  37. package/dist/schema-types.generated.d.ts +33 -0
  38. package/dist/signed-blob.mjs +2 -2
  39. package/dist/tei-to-blocks.mjs +2 -2
  40. package/dist/unicode.mjs +1 -1
  41. package/package.json +3 -3
  42. package/dist/chunk-ZWKMAGDU.mjs +0 -10
package/dist/hm-types.mjs CHANGED
@@ -37,6 +37,7 @@ import {
37
37
  HMBlockTableColumnSchema,
38
38
  HMBlockTableRowSchema,
39
39
  HMBlockTableSchema,
40
+ HMBlockTextAlignmentSchema,
40
41
  HMBlockUnknownSchema,
41
42
  HMBlockVideoSchema,
42
43
  HMBlockWebEmbedSchema,
@@ -215,7 +216,7 @@ import {
215
216
  toNumber,
216
217
  unpackHmId,
217
218
  unpackedHmIdSchema
218
- } from "./chunk-OSSRQKDG.mjs";
219
+ } from "./chunk-7IISPGNN.mjs";
219
220
  import "./chunk-7P6ASYW6.mjs";
220
221
  export {
221
222
  BUILTIN_METADATA_KEYS,
@@ -256,6 +257,7 @@ export {
256
257
  HMBlockTableColumnSchema,
257
258
  HMBlockTableRowSchema,
258
259
  HMBlockTableSchema,
260
+ HMBlockTextAlignmentSchema,
259
261
  HMBlockUnknownSchema,
260
262
  HMBlockVideoSchema,
261
263
  HMBlockWebEmbedSchema,
@@ -2,8 +2,8 @@ import {
2
2
  annotationContains,
3
3
  hmBlockToEditorBlock,
4
4
  hmBlocksToEditorContent
5
- } from "./chunk-WHQC63KZ.mjs";
6
- import "./chunk-OSSRQKDG.mjs";
5
+ } from "./chunk-G7CFO5W3.mjs";
6
+ import "./chunk-7IISPGNN.mjs";
7
7
  import "./chunk-7P6ASYW6.mjs";
8
8
  export {
9
9
  annotationContains,
package/dist/index.mjs CHANGED
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  pdfToBlocks
3
- } from "./chunk-SG22LWXW.mjs";
3
+ } from "./chunk-34OBOF5O.mjs";
4
4
  import {
5
5
  teiToBlocks
6
- } from "./chunk-4D6BGGEM.mjs";
6
+ } from "./chunk-KOQHARP5.mjs";
7
7
  import {
8
8
  embeddedPdfToBlocks
9
9
  } from "./chunk-2FJBS3V7.mjs";
10
10
  import {
11
11
  resolveIdWithClient
12
- } from "./chunk-WNLWE5P5.mjs";
12
+ } from "./chunk-2NM2JP5H.mjs";
13
13
  import {
14
14
  annotationContains,
15
15
  hmBlockToEditorBlock,
16
16
  hmBlocksToEditorContent
17
- } from "./chunk-WHQC63KZ.mjs";
17
+ } from "./chunk-G7CFO5W3.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-7UR6YTQD.mjs";
39
+ } from "./chunk-KNA3PBET.mjs";
40
40
  import {
41
41
  encryption_exports
42
42
  } from "./chunk-UOL3F6XQ.mjs";
@@ -54,10 +54,10 @@ import {
54
54
  import {
55
55
  resolveHypermediaUrl,
56
56
  resolveId
57
- } from "./chunk-6IW7VKZY.mjs";
57
+ } from "./chunk-5MVCUZBD.mjs";
58
58
  import {
59
59
  createSeedClient
60
- } from "./chunk-C2SV4WDE.mjs";
60
+ } from "./chunk-IAS2V6ON.mjs";
61
61
  import {
62
62
  SeedClientError,
63
63
  SeedNetworkError,
@@ -69,7 +69,7 @@ import {
69
69
  deleteComment,
70
70
  trimTrailingEmptyBlocks,
71
71
  updateComment
72
- } from "./chunk-FXK6WCQS.mjs";
72
+ } from "./chunk-Z3J6R5DN.mjs";
73
73
  import {
74
74
  AnnotationSet,
75
75
  addSpanToAnnotation,
@@ -90,7 +90,7 @@ import {
90
90
  documentContainsLinkToChild,
91
91
  documentHasSelfQuery,
92
92
  shouldAutoLinkParent
93
- } from "./chunk-3AJ2YACM.mjs";
93
+ } from "./chunk-GWV7ETLU.mjs";
94
94
  import {
95
95
  createChange,
96
96
  createChangeOps,
@@ -112,7 +112,7 @@ import {
112
112
  followToDocument,
113
113
  resolveDocumentState,
114
114
  resolveEditableDocument
115
- } from "./chunk-FJSBNU57.mjs";
115
+ } from "./chunk-ICFYYWGD.mjs";
116
116
  import "./chunk-2MD3FXKB.mjs";
117
117
  import {
118
118
  computeReplaceOps,
@@ -131,11 +131,11 @@ import {
131
131
  emitFrontmatter,
132
132
  parseDraftFilename,
133
133
  slugify
134
- } from "./chunk-O4PVMTYN.mjs";
134
+ } from "./chunk-HLTKEZ7W.mjs";
135
135
  import {
136
136
  createCapability,
137
137
  resolveCapability
138
- } from "./chunk-YB5PU37B.mjs";
138
+ } from "./chunk-SQFGEPOQ.mjs";
139
139
  import "./chunk-LVAHHQIK.mjs";
140
140
  import "./chunk-NBCHK76Q.mjs";
141
141
  import {
@@ -155,7 +155,7 @@ import {
155
155
  parseFragment,
156
156
  serializeBlockRange,
157
157
  unpackHmId
158
- } from "./chunk-OSSRQKDG.mjs";
158
+ } from "./chunk-7IISPGNN.mjs";
159
159
  import "./chunk-3TPCJCVO.mjs";
160
160
  import "./chunk-7P6ASYW6.mjs";
161
161
  export {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  pdfToBlocks
3
- } from "./chunk-SG22LWXW.mjs";
4
- import "./chunk-4D6BGGEM.mjs";
3
+ } from "./chunk-34OBOF5O.mjs";
4
+ import "./chunk-KOQHARP5.mjs";
5
5
  import "./chunk-2FJBS3V7.mjs";
6
6
  import "./chunk-PPAY4WZX.mjs";
7
- import "./chunk-OSSRQKDG.mjs";
7
+ import "./chunk-7IISPGNN.mjs";
8
8
  import "./chunk-7P6ASYW6.mjs";
9
9
  export {
10
10
  pdfToBlocks
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  resolveIdWithClient
3
- } from "./chunk-WNLWE5P5.mjs";
4
- import "./chunk-6IW7VKZY.mjs";
5
- import "./chunk-C2SV4WDE.mjs";
3
+ } from "./chunk-2NM2JP5H.mjs";
4
+ import "./chunk-5MVCUZBD.mjs";
5
+ import "./chunk-IAS2V6ON.mjs";
6
6
  import "./chunk-CBELM7KX.mjs";
7
7
  import "./chunk-O5MHN2EO.mjs";
8
8
  import "./chunk-PJ2RFT5A.mjs";
9
9
  import "./chunk-LVAHHQIK.mjs";
10
10
  import "./chunk-DR3HJ6BV.mjs";
11
- import "./chunk-OSSRQKDG.mjs";
11
+ import "./chunk-7IISPGNN.mjs";
12
12
  import "./chunk-7P6ASYW6.mjs";
13
13
  export {
14
14
  resolveIdWithClient
@@ -35,11 +35,11 @@ import {
35
35
  typeOf,
36
36
  validate,
37
37
  validateAdvisory
38
- } from "./chunk-FFH7G6KW.mjs";
38
+ } from "./chunk-52RP7HHW.mjs";
39
39
  import {
40
40
  HM_SCHEMAS,
41
41
  HM_SCHEMA_MANIFEST
42
- } from "./chunk-ZWKMAGDU.mjs";
42
+ } from "./chunk-Y5XKORRF.mjs";
43
43
  import "./chunk-7P6ASYW6.mjs";
44
44
  export {
45
45
  HM_SCHEMAS,
@@ -2,7 +2,7 @@ import {
2
2
  HM_SCHEMAS,
3
3
  HM_SCHEMA_MANIFEST,
4
4
  HM_SCHEMA_PAGES
5
- } from "./chunk-ZWKMAGDU.mjs";
5
+ } from "./chunk-Y5XKORRF.mjs";
6
6
  import "./chunk-7P6ASYW6.mjs";
7
7
  export {
8
8
  HM_SCHEMAS,
@@ -17,11 +17,11 @@ import {
17
17
  resolveSchemaRef,
18
18
  schemaDefinitionCid,
19
19
  withoutSchemaLink
20
- } from "./chunk-M7BEYZZV.mjs";
21
- import "./chunk-FFH7G6KW.mjs";
22
- import "./chunk-ZWKMAGDU.mjs";
20
+ } from "./chunk-BHESE4LH.mjs";
21
+ import "./chunk-52RP7HHW.mjs";
22
+ import "./chunk-Y5XKORRF.mjs";
23
23
  import "./chunk-VWSAFDOL.mjs";
24
- import "./chunk-OSSRQKDG.mjs";
24
+ import "./chunk-7IISPGNN.mjs";
25
25
  import "./chunk-7P6ASYW6.mjs";
26
26
  export {
27
27
  bareCid,
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  classifyRef
3
- } from "./chunk-M7BEYZZV.mjs";
3
+ } from "./chunk-BHESE4LH.mjs";
4
4
  import {
5
5
  kindOf,
6
6
  nameForCid,
7
7
  nameToUrl,
8
8
  schemaCid
9
- } from "./chunk-FFH7G6KW.mjs";
9
+ } from "./chunk-52RP7HHW.mjs";
10
10
  import {
11
11
  HM_SCHEMAS
12
- } from "./chunk-ZWKMAGDU.mjs";
12
+ } from "./chunk-Y5XKORRF.mjs";
13
13
  import "./chunk-VWSAFDOL.mjs";
14
14
  import {
15
15
  unpackHmId
16
- } from "./chunk-OSSRQKDG.mjs";
16
+ } from "./chunk-7IISPGNN.mjs";
17
17
  import "./chunk-7P6ASYW6.mjs";
18
18
 
19
19
  // src/schema-subtypes.ts
@@ -114,6 +114,8 @@ export type HMBlockButton = HMBlockBase & {
114
114
  childrenType?: HMBlockChildrenType;
115
115
  /** Number of columns the children occupy when `childrenType` is `Grid`. */
116
116
  columnCount?: number;
117
+ /** Horizontal alignment of the block's text — a text alignment such as `center`; omitted for the default `left`. */
118
+ textAlignment?: HMBlockTextAlignment;
117
119
  /** Alternative label for the button. */
118
120
  name?: string;
119
121
  /** Horizontal position of the button in its column. */
@@ -152,6 +154,8 @@ export type HMBlockCode = HMBlockBase & {
152
154
  childrenType?: HMBlockChildrenType;
153
155
  /** Number of columns the children occupy when `childrenType` is `Grid`. */
154
156
  columnCount?: number;
157
+ /** Horizontal alignment of the block's text — a text alignment such as `center`; omitted for the default `left`. */
158
+ textAlignment?: HMBlockTextAlignment;
155
159
  /** Programming language used for syntax highlighting. */
156
160
  language?: string;
157
161
  } & {
@@ -191,6 +195,8 @@ export type HMBlockEmbed = HMBlockBase & {
191
195
  childrenType?: HMBlockChildrenType;
192
196
  /** Number of columns the children occupy when `childrenType` is `Grid`. */
193
197
  columnCount?: number;
198
+ /** Horizontal alignment of the block's text — a text alignment such as `center`; omitted for the default `left`. */
199
+ textAlignment?: HMBlockTextAlignment;
194
200
  /** How the target renders: its content, a card, its comments or a plain link. */
195
201
  view?: HMBlockEmbedView;
196
202
  } & {
@@ -220,6 +226,8 @@ export type HMBlockFile = HMBlockBase & {
220
226
  childrenType?: HMBlockChildrenType;
221
227
  /** Number of columns the children occupy when `childrenType` is `Grid`. */
222
228
  columnCount?: number;
229
+ /** Horizontal alignment of the block's text — a text alignment such as `center`; omitted for the default `left`. */
230
+ textAlignment?: HMBlockTextAlignment;
223
231
  /** File size in bytes. */
224
232
  size?: number;
225
233
  /** File name shown to readers. */
@@ -246,6 +254,8 @@ export type HMBlockHeading = HMBlockBase & {
246
254
  childrenType?: HMBlockChildrenType;
247
255
  /** Number of columns the children occupy when `childrenType` is `Grid`. */
248
256
  columnCount?: number;
257
+ /** Horizontal alignment of the block's text — a text alignment such as `center`; omitted for the default `left`. */
258
+ textAlignment?: HMBlockTextAlignment;
249
259
  } & {
250
260
  [key: string]: unknown;
251
261
  };
@@ -270,6 +280,8 @@ export type HMBlockImage = HMBlockBase & {
270
280
  childrenType?: HMBlockChildrenType;
271
281
  /** Number of columns the children occupy when `childrenType` is `Grid`. */
272
282
  columnCount?: number;
283
+ /** Horizontal alignment of the block's text — a text alignment such as `center`; omitted for the default `left`. */
284
+ textAlignment?: HMBlockTextAlignment;
273
285
  /** Display width in pixels. */
274
286
  width?: number;
275
287
  /** Original file name of the image. */
@@ -294,6 +306,8 @@ export type HMBlockMath = HMBlockBase & {
294
306
  childrenType?: HMBlockChildrenType;
295
307
  /** Number of columns the children occupy when `childrenType` is `Grid`. */
296
308
  columnCount?: number;
309
+ /** Horizontal alignment of the block's text — a text alignment such as `center`; omitted for the default `left`. */
310
+ textAlignment?: HMBlockTextAlignment;
297
311
  } & {
298
312
  [key: string]: unknown;
299
313
  };
@@ -339,6 +353,8 @@ export type HMBlockParagraph = HMBlockBase & {
339
353
  childrenType?: HMBlockChildrenType;
340
354
  /** Number of columns the children occupy when `childrenType` is `Grid`. */
341
355
  columnCount?: number;
356
+ /** Horizontal alignment of the block's text — a text alignment such as `center`; omitted for the default `left`. */
357
+ textAlignment?: HMBlockTextAlignment;
342
358
  /** Id of the TableColumn block this cell belongs to; set only on cells inside a TableRow. */
343
359
  columnId?: string;
344
360
  } & {
@@ -359,6 +375,8 @@ export type HMBlockQuery = HMBlockBase & {
359
375
  childrenType?: HMBlockChildrenType;
360
376
  /** Number of card columns in the `Card` style (default 3). */
361
377
  columnCount?: number;
378
+ /** Horizontal alignment of the block's text — a text alignment such as `center`; omitted for the default `left`. */
379
+ textAlignment?: HMBlockTextAlignment;
362
380
  /** How results are shown: `Card`, `List` or `Table`. */
363
381
  style?: HMQueryStyle;
364
382
  /** The query to run: spaces and paths to include, sort and limit. */
@@ -383,6 +401,8 @@ export type HMBlockTable = HMBlockBase & {
383
401
  childrenType?: HMBlockChildrenType;
384
402
  /** Number of columns the children occupy when `childrenType` is `Grid`. */
385
403
  columnCount?: number;
404
+ /** Horizontal alignment of the block's text — a text alignment such as `center`; omitted for the default `left`. */
405
+ textAlignment?: HMBlockTextAlignment;
386
406
  };
387
407
  };
388
408
  /**
@@ -399,6 +419,8 @@ export type HMBlockTableColumn = HMBlockBase & {
399
419
  childrenType?: HMBlockChildrenType;
400
420
  /** Number of columns the children occupy when `childrenType` is `Grid`. */
401
421
  columnCount?: number;
422
+ /** Horizontal alignment of the block's text — a text alignment such as `center`; omitted for the default `left`. */
423
+ textAlignment?: HMBlockTextAlignment;
402
424
  /** Column width in pixels. · minimum: 0 */
403
425
  width?: number;
404
426
  /** Marks a header column; honored only on the first column. */
@@ -419,10 +441,19 @@ export type HMBlockTableRow = HMBlockBase & {
419
441
  childrenType?: HMBlockChildrenType;
420
442
  /** Number of columns the children occupy when `childrenType` is `Grid`. */
421
443
  columnCount?: number;
444
+ /** Horizontal alignment of the block's text — a text alignment such as `center`; omitted for the default `left`. */
445
+ textAlignment?: HMBlockTextAlignment;
422
446
  /** Marks the header row; honored only on the first row. */
423
447
  isHeader?: boolean;
424
448
  };
425
449
  };
450
+ /**
451
+ * Text Alignment
452
+ * The horizontal alignment of a block's text: left, center, right or justify.
453
+ * Horizontal alignment of a block's text: `left` (the default, also when the key is absent), `center`, `right` or `justify`.
454
+ * Schema: hm://hyper.media/block/text-alignment
455
+ */
456
+ export type HMBlockTextAlignment = 'left' | 'center' | 'right' | 'justify';
426
457
  /**
427
458
  * Video Block
428
459
  * A video referenced by an ipfs:// file or a supported web video URL, with playback attributes.
@@ -439,6 +470,8 @@ export type HMBlockVideo = HMBlockBase & {
439
470
  childrenType?: HMBlockChildrenType;
440
471
  /** Number of columns the children occupy when `childrenType` is `Grid`. */
441
472
  columnCount?: number;
473
+ /** Horizontal alignment of the block's text — a text alignment such as `center`; omitted for the default `left`. */
474
+ textAlignment?: HMBlockTextAlignment;
442
475
  /** Display width in pixels. */
443
476
  width?: number;
444
477
  /** Original file name of the video. */
@@ -5,8 +5,8 @@ import {
5
5
  literalValue,
6
6
  resolveSchema,
7
7
  structFields
8
- } from "./chunk-FFH7G6KW.mjs";
9
- import "./chunk-ZWKMAGDU.mjs";
8
+ } from "./chunk-52RP7HHW.mjs";
9
+ import "./chunk-Y5XKORRF.mjs";
10
10
  import {
11
11
  dagJsonToIpld,
12
12
  findSeedIndexerCollision
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  teiToBlocks
3
- } from "./chunk-4D6BGGEM.mjs";
4
- import "./chunk-OSSRQKDG.mjs";
3
+ } from "./chunk-KOQHARP5.mjs";
4
+ import "./chunk-7IISPGNN.mjs";
5
5
  import "./chunk-7P6ASYW6.mjs";
6
6
  export {
7
7
  teiToBlocks
package/dist/unicode.mjs CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  codePointLength,
9
9
  isSurrogate
10
- } from "./chunk-OSSRQKDG.mjs";
10
+ } from "./chunk-7IISPGNN.mjs";
11
11
  import "./chunk-7P6ASYW6.mjs";
12
12
  export {
13
13
  AnnotationSet,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seed-hypermedia/client",
3
- "version": "0.0.107",
3
+ "version": "0.0.109",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/seed-hypermedia/seed",
@@ -45,11 +45,11 @@
45
45
  "tsup": "^8.5.1",
46
46
  "typescript": "5.8.3",
47
47
  "vitest": "4.1.8",
48
- "zod": "3.25.76"
48
+ "zod": "4.6.6"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "pdfjs-dist": "^4.2.67",
52
- "zod": "^3.20.0"
52
+ "zod": "^4.6.6"
53
53
  },
54
54
  "peerDependenciesMeta": {
55
55
  "pdfjs-dist": {