@seed-hypermedia/client 0.0.116 → 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.
- package/dist/auto-link.mjs +3 -3
- package/dist/blocks-to-markdown.mjs +3 -3
- package/dist/capability.mjs +2 -2
- package/dist/{chunk-X6SZZ5HV.mjs → chunk-24T2PNWV.mjs} +1 -1
- package/dist/{chunk-ASEEN3OZ.mjs → chunk-24TTS3ME.mjs} +2 -2
- package/dist/{chunk-7IKOUDLO.mjs → chunk-3DKBM2GC.mjs} +1 -1
- package/dist/{chunk-5LHO2KV6.mjs → chunk-3ZHRLKFZ.mjs} +1 -1
- package/dist/{chunk-53V3XTMB.mjs → chunk-4M5R2VFY.mjs} +3 -3
- package/dist/{chunk-HSDV6WEU.mjs → chunk-6RZWE7TK.mjs} +2 -2
- package/dist/{chunk-5RJBMYBL.mjs → chunk-HNNTGZHW.mjs} +2 -2
- package/dist/{chunk-SJLLXOSE.mjs → chunk-HXLXTWF3.mjs} +1 -1
- package/dist/{chunk-YVM3WBZH.mjs → chunk-JF67NGZ3.mjs} +1 -1
- package/dist/{chunk-EWFGDYXF.mjs → chunk-JKEM44N2.mjs} +2 -2
- package/dist/{chunk-LOAGYTC2.mjs → chunk-JKSJEGHK.mjs} +1 -1
- package/dist/{chunk-EBP7SWTZ.mjs → chunk-MM6UBHZ3.mjs} +6 -0
- package/dist/{chunk-EKRKNALC.mjs → chunk-RY2LVH3Z.mjs} +3 -3
- package/dist/{chunk-PJI7DMX3.mjs → chunk-RZD7WFAP.mjs} +1 -1
- package/dist/{chunk-M2LRSKSU.mjs → chunk-SBSEYR26.mjs} +1 -1
- package/dist/{chunk-MZMGRUTQ.mjs → chunk-TSK67IPM.mjs} +1 -1
- package/dist/client.mjs +2 -2
- 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.mjs +2 -2
- package/dist/hm-types.d.ts +198 -0
- package/dist/hm-types.mjs +1 -1
- package/dist/hmblock-to-editorblock.mjs +2 -2
- package/dist/index.mjs +13 -13
- package/dist/pdf-to-blocks.mjs +3 -3
- package/dist/resource-read.mjs +4 -4
- 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 +6 -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
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
} from "./chunk-PJ2RFT5A.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveDocumentState
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JKEM44N2.mjs";
|
|
11
11
|
import {
|
|
12
12
|
entityQueryPathToHmIdPath,
|
|
13
13
|
packHmId,
|
|
14
14
|
unpackHmId
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MM6UBHZ3.mjs";
|
|
16
16
|
|
|
17
17
|
// src/auto-link.ts
|
|
18
18
|
import { CID } from "multiformats/cid";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
packHmId,
|
|
3
3
|
unpackHmId
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MM6UBHZ3.mjs";
|
|
5
5
|
|
|
6
6
|
// src/document-state.ts
|
|
7
7
|
async function resolveDocumentState(client, targetId) {
|
|
@@ -86,7 +86,7 @@ async function followToDocument(client, id) {
|
|
|
86
86
|
const first = followed.redirects[0];
|
|
87
87
|
if (followed.resource.type !== "document") {
|
|
88
88
|
throw new Error(
|
|
89
|
-
`Cannot edit ${packHmId(followed.targetId)}: resource is ${followed.resource.type}` + (first ? ` (followed redirect from ${packHmId(id)})` : "")
|
|
89
|
+
`Cannot edit ${packHmId(followed.targetId)}: resource is ${followed.resource.type}` + (followed.resource.type === "error" ? ` (${followed.resource.message})` : "") + (first ? ` (followed redirect from ${packHmId(id)})` : "")
|
|
90
90
|
);
|
|
91
91
|
}
|
|
92
92
|
return {
|
|
@@ -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-
|
|
3
|
+
} from "./chunk-SBSEYR26.mjs";
|
|
4
4
|
import {
|
|
5
5
|
extractCommentIdFromUrl,
|
|
6
6
|
hmDomainUrlToWebUrl,
|
|
7
7
|
resolveId
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3ZHRLKFZ.mjs";
|
|
9
9
|
import {
|
|
10
10
|
unpackHmId
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MM6UBHZ3.mjs";
|
|
12
12
|
|
|
13
13
|
// src/resource-read.ts
|
|
14
14
|
async function resolveIdWithClient(rawId, options = {}) {
|
package/dist/client.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSeedClient,
|
|
3
3
|
deserializeQueryString
|
|
4
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
11
|
+
import "./chunk-MM6UBHZ3.mjs";
|
|
12
12
|
import "./chunk-AHQWDCHV.mjs";
|
|
13
13
|
import "./chunk-7P6ASYW6.mjs";
|
|
14
14
|
export {
|
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-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-
|
|
4
|
+
} from "./chunk-HXLXTWF3.mjs";
|
|
5
5
|
import "./chunk-JKKS35IS.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-MM6UBHZ3.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-3ZHRLKFZ.mjs";
|
|
7
|
+
import "./chunk-MM6UBHZ3.mjs";
|
|
8
8
|
import "./chunk-AHQWDCHV.mjs";
|
|
9
9
|
import "./chunk-7P6ASYW6.mjs";
|
|
10
10
|
export {
|