@seed-hypermedia/client 0.0.117 → 0.0.118

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 (39) hide show
  1. package/dist/auto-link.mjs +3 -3
  2. package/dist/blocks-to-markdown.mjs +3 -3
  3. package/dist/capability.mjs +2 -2
  4. package/dist/{chunk-X6SZZ5HV.mjs → chunk-24T2PNWV.mjs} +1 -1
  5. package/dist/{chunk-ASEEN3OZ.mjs → chunk-24TTS3ME.mjs} +2 -2
  6. package/dist/{chunk-7IKOUDLO.mjs → chunk-3DKBM2GC.mjs} +1 -1
  7. package/dist/{chunk-5LHO2KV6.mjs → chunk-3ZHRLKFZ.mjs} +1 -1
  8. package/dist/{chunk-53V3XTMB.mjs → chunk-4M5R2VFY.mjs} +3 -3
  9. package/dist/{chunk-HSDV6WEU.mjs → chunk-6RZWE7TK.mjs} +2 -2
  10. package/dist/{chunk-DOQ6BCKU.mjs → chunk-HNNTGZHW.mjs} +2 -2
  11. package/dist/{chunk-SJLLXOSE.mjs → chunk-HXLXTWF3.mjs} +1 -1
  12. package/dist/{chunk-YVM3WBZH.mjs → chunk-JF67NGZ3.mjs} +1 -1
  13. package/dist/{chunk-25Q3F35L.mjs → chunk-JKEM44N2.mjs} +1 -1
  14. package/dist/{chunk-LOAGYTC2.mjs → chunk-JKSJEGHK.mjs} +1 -1
  15. package/dist/{chunk-EBP7SWTZ.mjs → chunk-MM6UBHZ3.mjs} +6 -0
  16. package/dist/{chunk-EKRKNALC.mjs → chunk-RY2LVH3Z.mjs} +3 -3
  17. package/dist/{chunk-PJI7DMX3.mjs → chunk-RZD7WFAP.mjs} +1 -1
  18. package/dist/{chunk-M2LRSKSU.mjs → chunk-SBSEYR26.mjs} +1 -1
  19. package/dist/{chunk-MZMGRUTQ.mjs → chunk-TSK67IPM.mjs} +1 -1
  20. package/dist/client.mjs +2 -2
  21. package/dist/comment.mjs +2 -2
  22. package/dist/document-state.mjs +2 -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 +198 -0
  26. package/dist/hm-types.mjs +1 -1
  27. package/dist/hmblock-to-editorblock.mjs +2 -2
  28. package/dist/index.mjs +13 -13
  29. package/dist/pdf-to-blocks.mjs +3 -3
  30. package/dist/resource-read.mjs +4 -4
  31. package/dist/schema-engine.mjs +2 -2
  32. package/dist/schema-registry.generated.mjs +1 -1
  33. package/dist/schema-resolve.mjs +4 -4
  34. package/dist/schema-subtypes.mjs +4 -4
  35. package/dist/schema-types.generated.d.ts +6 -0
  36. package/dist/signed-blob.mjs +2 -2
  37. package/dist/tei-to-blocks.mjs +2 -2
  38. package/dist/unicode.mjs +1 -1
  39. package/package.json +1 -1
@@ -7,12 +7,12 @@ import {
7
7
  } from "./chunk-PJ2RFT5A.mjs";
8
8
  import {
9
9
  resolveDocumentState
10
- } from "./chunk-25Q3F35L.mjs";
10
+ } from "./chunk-JKEM44N2.mjs";
11
11
  import {
12
12
  entityQueryPathToHmIdPath,
13
13
  packHmId,
14
14
  unpackHmId
15
- } from "./chunk-EBP7SWTZ.mjs";
15
+ } from "./chunk-MM6UBHZ3.mjs";
16
16
 
17
17
  // src/auto-link.ts
18
18
  import { CID } from "multiformats/cid";
@@ -7,7 +7,7 @@ import {
7
7
  codePointLength,
8
8
  parseHMQueryFiltersJSON,
9
9
  toNumber
10
- } from "./chunk-EBP7SWTZ.mjs";
10
+ } from "./chunk-MM6UBHZ3.mjs";
11
11
 
12
12
  // src/editorblock-to-hmblock.ts
13
13
  function toHMBlockType(editorBlockType) {
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  entityQueryPathToHmIdPath,
9
9
  packBaseId
10
- } from "./chunk-EBP7SWTZ.mjs";
10
+ } from "./chunk-MM6UBHZ3.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-EBP7SWTZ.mjs";
4
+ } from "./chunk-MM6UBHZ3.mjs";
5
5
 
6
6
  // src/document-state.ts
7
7
  async function resolveDocumentState(client, targetId) {
@@ -9,7 +9,7 @@ import {
9
9
  import {
10
10
  hmIdPathToEntityQueryPath,
11
11
  packHmId
12
- } from "./chunk-EBP7SWTZ.mjs";
12
+ } from "./chunk-MM6UBHZ3.mjs";
13
13
 
14
14
  // src/comment.ts
15
15
  import { decode as cborDecode, encode as cborEncode } from "@ipld/dag-cbor";
@@ -307,6 +307,9 @@ var HMDocumentMetadataSchema = z.object({
307
307
  seedExperimentalHomeOrder: z.union([z.literal("UpdatedFirst"), z.literal("CreatedFirst")]).optional(),
308
308
  showOutline: z.boolean().optional(),
309
309
  showActivity: z.boolean().optional(),
310
+ showConversations: z.boolean().optional(),
311
+ showDocumentBrowser: z.boolean().optional(),
312
+ showCollectionControls: z.boolean().optional(),
310
313
  contentWidth: z.union([z.literal("S"), z.literal("M"), z.literal("L")]).optional(),
311
314
  childrenType: HMBlockChildrenTypeSchema.optional(),
312
315
  theme: z.object({
@@ -343,6 +346,9 @@ var DOCUMENT_ATTRIBUTE_DESCRIPTIONS = {
343
346
  seedExperimentalHomeOrder: "Legacy ordering preference for a space home page.",
344
347
  showOutline: "Whether to show the document outline.",
345
348
  showActivity: "Whether to show document activity and tools.",
349
+ showConversations: "Whether readers may start and join conversations on the space\u2019s documents.",
350
+ showDocumentBrowser: "Whether the sidebar with the space\u2019s document browser starts open when readers arrive.",
351
+ showCollectionControls: "Whether collections offer readers search, filter, sort and view controls.",
346
352
  contentWidth: "Width of the document content area.",
347
353
  childrenType: "Layout of the document\u2019s root-level blocks.",
348
354
  theme: "Visual settings for a space.",
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  createSeedClient
3
- } from "./chunk-M2LRSKSU.mjs";
3
+ } from "./chunk-SBSEYR26.mjs";
4
4
  import {
5
5
  extractCommentIdFromUrl,
6
6
  hmDomainUrlToWebUrl,
7
7
  resolveId
8
- } from "./chunk-5LHO2KV6.mjs";
8
+ } from "./chunk-3ZHRLKFZ.mjs";
9
9
  import {
10
10
  unpackHmId
11
- } from "./chunk-EBP7SWTZ.mjs";
11
+ } from "./chunk-MM6UBHZ3.mjs";
12
12
 
13
13
  // src/resource-read.ts
14
14
  async function resolveIdWithClient(rawId, options = {}) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getSupportedHMQueryFilters,
3
3
  isSurrogate
4
- } from "./chunk-EBP7SWTZ.mjs";
4
+ } from "./chunk-MM6UBHZ3.mjs";
5
5
 
6
6
  // src/hmblock-to-editorblock.ts
7
7
  function toEditorBlockType(hmBlockType) {
@@ -15,7 +15,7 @@ import {
15
15
  HMActionSchema,
16
16
  HMRequestSchema,
17
17
  packHmId
18
- } from "./chunk-EBP7SWTZ.mjs";
18
+ } from "./chunk-MM6UBHZ3.mjs";
19
19
 
20
20
  // src/client.ts
21
21
  import { encode as cborEncode } from "@ipld/dag-cbor";
@@ -2,7 +2,7 @@ import {
2
2
  HM_SCHEMAS,
3
3
  HM_SCHEMA_MANIFEST,
4
4
  HM_SCHEMA_PAGES
5
- } from "./chunk-HSDV6WEU.mjs";
5
+ } from "./chunk-6RZWE7TK.mjs";
6
6
 
7
7
  // src/schema-engine.ts
8
8
  var LIBRARY_AUTHORITY = "hyper.media";
package/dist/client.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createSeedClient,
3
3
  deserializeQueryString
4
- } from "./chunk-M2LRSKSU.mjs";
4
+ } from "./chunk-SBSEYR26.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-EBP7SWTZ.mjs";
10
+ import "./chunk-MM6UBHZ3.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-LOAGYTC2.mjs";
7
+ } from "./chunk-JKSJEGHK.mjs";
8
8
  import "./chunk-JKKS35IS.mjs";
9
9
  import "./chunk-LVAHHQIK.mjs";
10
10
  import "./chunk-DR3HJ6BV.mjs";
11
- import "./chunk-EBP7SWTZ.mjs";
11
+ import "./chunk-MM6UBHZ3.mjs";
12
12
  import "./chunk-AHQWDCHV.mjs";
13
13
  import "./chunk-7P6ASYW6.mjs";
14
14
  export {
@@ -4,8 +4,8 @@ import {
4
4
  followToDocument,
5
5
  resolveDocumentState,
6
6
  resolveEditableDocument
7
- } from "./chunk-25Q3F35L.mjs";
8
- import "./chunk-EBP7SWTZ.mjs";
7
+ } from "./chunk-JKEM44N2.mjs";
8
+ import "./chunk-MM6UBHZ3.mjs";
9
9
  import "./chunk-AHQWDCHV.mjs";
10
10
  import "./chunk-7P6ASYW6.mjs";
11
11
  export {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  editorBlockToHMBlock,
3
3
  editorBlocksToHMBlockNodes
4
- } from "./chunk-SJLLXOSE.mjs";
4
+ } from "./chunk-HXLXTWF3.mjs";
5
5
  import "./chunk-JKKS35IS.mjs";
6
- import "./chunk-EBP7SWTZ.mjs";
6
+ import "./chunk-MM6UBHZ3.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-5LHO2KV6.mjs";
7
- import "./chunk-EBP7SWTZ.mjs";
6
+ } from "./chunk-3ZHRLKFZ.mjs";
7
+ import "./chunk-MM6UBHZ3.mjs";
8
8
  import "./chunk-AHQWDCHV.mjs";
9
9
  import "./chunk-7P6ASYW6.mjs";
10
10
  export {