@seed-hypermedia/client 0.0.73 → 0.0.75
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 +2 -2
- package/dist/capability.mjs +2 -2
- package/dist/{chunk-3EGHHN2R.mjs → chunk-3WF2DMRU.mjs} +1 -1
- package/dist/{chunk-DBMFM4LP.mjs → chunk-5M2V5C5D.mjs} +1 -1
- package/dist/{chunk-ZVN2S7SB.mjs → chunk-7N6OYWU4.mjs} +1 -1
- package/dist/{chunk-KHIMIB5T.mjs → chunk-7OGIUYSL.mjs} +11 -4
- package/dist/{chunk-NBIMKM77.mjs → chunk-BL3UVODM.mjs} +1 -1
- package/dist/{chunk-MUEUAUFH.mjs → chunk-F5JQL53X.mjs} +1 -1
- package/dist/{chunk-J4XARUNV.mjs → chunk-FGFTGDQ3.mjs} +1 -1
- package/dist/{chunk-HTZ4OPYT.mjs → chunk-FYKR277R.mjs} +3 -3
- package/dist/{chunk-RP2RXTJI.mjs → chunk-HJRSTFWB.mjs} +1 -1
- package/dist/{chunk-MXIRCOZH.mjs → chunk-LPU3T4DG.mjs} +1 -1
- package/dist/{chunk-5UVCHY2K.mjs → chunk-NTQBIPVH.mjs} +1 -1
- package/dist/{chunk-BSGKCLPU.mjs → chunk-PETKXSZZ.mjs} +2 -2
- package/dist/{chunk-IY5MEOZF.mjs → chunk-X4WGNA65.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 +2784 -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/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-
|
|
7
|
+
} from "./chunk-PETKXSZZ.mjs";
|
|
8
8
|
import "./chunk-JT57MV7Y.mjs";
|
|
9
9
|
import "./chunk-PJ2RFT5A.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-X4WGNA65.mjs";
|
|
11
11
|
import "./chunk-LVAHHQIK.mjs";
|
|
12
12
|
import "./chunk-DR3HJ6BV.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-7OGIUYSL.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-LPU3T4DG.mjs";
|
|
11
|
+
import "./chunk-7OGIUYSL.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-NTQBIPVH.mjs";
|
|
5
5
|
import "./chunk-LVAHHQIK.mjs";
|
|
6
6
|
import "./chunk-IT5LLTMP.mjs";
|
|
7
7
|
import "./chunk-DR3HJ6BV.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-7OGIUYSL.mjs";
|
|
9
9
|
import "./chunk-3TPCJCVO.mjs";
|
|
10
10
|
import "./chunk-7P6ASYW6.mjs";
|
|
11
11
|
export {
|
|
@@ -267,6 +267,12 @@ var HMDocumentMetadataSchema = z.object({
|
|
|
267
267
|
// DEPRECATED
|
|
268
268
|
cover: z.string().optional(),
|
|
269
269
|
siteUrl: z.string().optional(),
|
|
270
|
+
/**
|
|
271
|
+
* Agents server a space advertises for its readers (an http(s) origin). Clients viewing the
|
|
272
|
+
* space's documents connect to it alongside their own configured servers, so a site can host
|
|
273
|
+
* agents for its audience — on the gateway, each site brings its own agents backend.
|
|
274
|
+
*/
|
|
275
|
+
agentServerUrl: z.string().optional(),
|
|
270
276
|
layout: z.union([z.literal("Seed/Experimental/Newspaper"), z.literal("")]).optional(),
|
|
271
277
|
displayPublishTime: z.string().optional(),
|
|
272
278
|
displayAuthor: z.string().optional(),
|
|
@@ -300,17 +306,18 @@ var DOCUMENT_ATTRIBUTE_DESCRIPTIONS = {
|
|
|
300
306
|
thumbnail: "Deprecated image field kept for older documents.",
|
|
301
307
|
cover: "Wide cover image shown in headers and cards.",
|
|
302
308
|
siteUrl: "Published website URL for a space.",
|
|
303
|
-
|
|
309
|
+
agentServerUrl: "Agents server readers of this space connect to.",
|
|
310
|
+
layout: "Legacy space header layout setting.",
|
|
304
311
|
displayPublishTime: "Publication date shown to readers.",
|
|
305
312
|
displayAuthor: "Author byline shown to readers.",
|
|
306
|
-
seedExperimentalLogo: "Logo shown in the
|
|
313
|
+
seedExperimentalLogo: "Logo shown in the space header.",
|
|
307
314
|
seedExperimentalHomeOrder: "Legacy ordering preference for a space home page.",
|
|
308
315
|
showOutline: "Whether to show the document outline.",
|
|
309
316
|
showActivity: "Whether to show document activity and tools.",
|
|
310
317
|
contentWidth: "Width of the document content area.",
|
|
311
318
|
childrenType: "Layout of the document\u2019s root-level blocks.",
|
|
312
|
-
theme: "Visual settings for a
|
|
313
|
-
"theme.headerLayout": "Alignment of the
|
|
319
|
+
theme: "Visual settings for a space.",
|
|
320
|
+
"theme.headerLayout": "Alignment of the space header.",
|
|
314
321
|
importCategories: "Categories retained from an imported document.",
|
|
315
322
|
importTags: "Tags retained from an imported document.",
|
|
316
323
|
title: "Legacy document title; new documents use name.",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-F5JQL53X.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createSeedClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HJRSTFWB.mjs";
|
|
7
7
|
import {
|
|
8
8
|
unpackHmId
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7OGIUYSL.mjs";
|
|
10
10
|
|
|
11
11
|
// src/resource-read.ts
|
|
12
12
|
async function resolveIdWithClient(rawId, options = {}) {
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
} from "./chunk-PJ2RFT5A.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveDocumentState
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-X4WGNA65.mjs";
|
|
11
11
|
import {
|
|
12
12
|
entityQueryPathToHmIdPath,
|
|
13
13
|
packHmId,
|
|
14
14
|
unpackHmId
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7OGIUYSL.mjs";
|
|
16
16
|
|
|
17
17
|
// src/auto-link.ts
|
|
18
18
|
import { CID } from "multiformats/cid";
|
package/dist/client.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSeedClient,
|
|
3
3
|
deserializeQueryString
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HJRSTFWB.mjs";
|
|
5
5
|
import "./chunk-CBELM7KX.mjs";
|
|
6
6
|
import "./chunk-JT57MV7Y.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-7OGIUYSL.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-7N6OYWU4.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-7OGIUYSL.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-X4WGNA65.mjs";
|
|
8
|
+
import "./chunk-7OGIUYSL.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-3WF2DMRU.mjs";
|
|
5
5
|
import "./chunk-N3P7S5YZ.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-7OGIUYSL.mjs";
|
|
7
7
|
import "./chunk-7P6ASYW6.mjs";
|
|
8
8
|
export {
|
|
9
9
|
editorBlockToHMBlock,
|
package/dist/hm-resolver.mjs
CHANGED