@seed-hypermedia/client 0.0.75 → 0.0.77
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-NTQBIPVH.mjs → chunk-3NKBUTZO.mjs} +1 -1
- package/dist/{chunk-3WF2DMRU.mjs → chunk-5ARN5GTL.mjs} +1 -1
- package/dist/{chunk-HJRSTFWB.mjs → chunk-6ZDWVCC2.mjs} +1 -1
- package/dist/{chunk-LPU3T4DG.mjs → chunk-7UUGEBS3.mjs} +1 -1
- package/dist/{chunk-PETKXSZZ.mjs → chunk-E2S3ZLBH.mjs} +2 -2
- package/dist/{chunk-7OGIUYSL.mjs → chunk-EGDF5YHG.mjs} +16 -0
- package/dist/{chunk-7N6OYWU4.mjs → chunk-FT4OR5WY.mjs} +1 -1
- package/dist/{chunk-BL3UVODM.mjs → chunk-HYCHOIRR.mjs} +1 -1
- package/dist/{chunk-F5JQL53X.mjs → chunk-I6T7E6NR.mjs} +1 -1
- package/dist/{chunk-5M2V5C5D.mjs → chunk-LLRVL4BP.mjs} +1 -1
- package/dist/{chunk-FYKR277R.mjs → chunk-NXWZWZWS.mjs} +3 -3
- package/dist/{chunk-FGFTGDQ3.mjs → chunk-YMF2Y7UO.mjs} +1 -1
- package/dist/{chunk-X4WGNA65.mjs → chunk-YYQPNBQK.mjs} +1 -1
- package/dist/client.mjs +2 -2
- package/dist/comment.mjs +2 -2
- package/dist/document-state.mjs +2 -2
- package/dist/editor-types.d.ts +1 -0
- package/dist/editorblock-to-hmblock.mjs +2 -2
- package/dist/hm-resolver.mjs +2 -2
- package/dist/hm-types.d.ts +6884 -59
- 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-E2S3ZLBH.mjs";
|
|
8
8
|
import "./chunk-JT57MV7Y.mjs";
|
|
9
9
|
import "./chunk-PJ2RFT5A.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-YYQPNBQK.mjs";
|
|
11
11
|
import "./chunk-LVAHHQIK.mjs";
|
|
12
12
|
import "./chunk-DR3HJ6BV.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-EGDF5YHG.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-7UUGEBS3.mjs";
|
|
11
|
+
import "./chunk-EGDF5YHG.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-3NKBUTZO.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-EGDF5YHG.mjs";
|
|
9
9
|
import "./chunk-3TPCJCVO.mjs";
|
|
10
10
|
import "./chunk-7P6ASYW6.mjs";
|
|
11
11
|
export {
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
} from "./chunk-PJ2RFT5A.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveDocumentState
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YYQPNBQK.mjs";
|
|
11
11
|
import {
|
|
12
12
|
entityQueryPathToHmIdPath,
|
|
13
13
|
packHmId,
|
|
14
14
|
unpackHmId
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-EGDF5YHG.mjs";
|
|
16
16
|
|
|
17
17
|
// src/auto-link.ts
|
|
18
18
|
import { CID } from "multiformats/cid";
|
|
@@ -273,6 +273,21 @@ var HMDocumentMetadataSchema = z.object({
|
|
|
273
273
|
* agents for its audience — on the gateway, each site brings its own agents backend.
|
|
274
274
|
*/
|
|
275
275
|
agentServerUrl: z.string().optional(),
|
|
276
|
+
/**
|
|
277
|
+
* Agents this space publishes to its readers: `{[agentId]: order}`, where each id names an agent
|
|
278
|
+
* on {@link agentServerUrl} and the number is its position in the picker.
|
|
279
|
+
*
|
|
280
|
+
* This is what makes a space's agents reachable by someone who just arrived: an agent server
|
|
281
|
+
* only ever lists agents you own or collaborate on, so a reader cannot discover them by asking.
|
|
282
|
+
* Named here, the client fetches each one by id, which the server serves to any signed account
|
|
283
|
+
* once the agent is public-read.
|
|
284
|
+
*
|
|
285
|
+
* Only ids and order live here — an agent's name and icon are read from the agent itself, so
|
|
286
|
+
* renaming one never strands a stale copy in a signed document. Values are typed loosely
|
|
287
|
+
* because removal leaves a null attribute behind rather than dropping the key; `parseSpaceAgentIds`
|
|
288
|
+
* in @shm/ui/agents/space-agents is the reader for this field.
|
|
289
|
+
*/
|
|
290
|
+
spaceAgents: z.record(z.unknown()).optional(),
|
|
276
291
|
layout: z.union([z.literal("Seed/Experimental/Newspaper"), z.literal("")]).optional(),
|
|
277
292
|
displayPublishTime: z.string().optional(),
|
|
278
293
|
displayAuthor: z.string().optional(),
|
|
@@ -307,6 +322,7 @@ var DOCUMENT_ATTRIBUTE_DESCRIPTIONS = {
|
|
|
307
322
|
cover: "Wide cover image shown in headers and cards.",
|
|
308
323
|
siteUrl: "Published website URL for a space.",
|
|
309
324
|
agentServerUrl: "Agents server readers of this space connect to.",
|
|
325
|
+
spaceAgents: "Agents this space publishes to its readers, by id and order.",
|
|
310
326
|
layout: "Legacy space header layout setting.",
|
|
311
327
|
displayPublishTime: "Publication date shown to readers.",
|
|
312
328
|
displayAuthor: "Author byline shown to readers.",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-I6T7E6NR.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createSeedClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6ZDWVCC2.mjs";
|
|
7
7
|
import {
|
|
8
8
|
unpackHmId
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EGDF5YHG.mjs";
|
|
10
10
|
|
|
11
11
|
// src/resource-read.ts
|
|
12
12
|
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-6ZDWVCC2.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-EGDF5YHG.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-FT4OR5WY.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-EGDF5YHG.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-YYQPNBQK.mjs";
|
|
8
|
+
import "./chunk-EGDF5YHG.mjs";
|
|
9
9
|
import "./chunk-7P6ASYW6.mjs";
|
|
10
10
|
export {
|
|
11
11
|
describeRedirect,
|
package/dist/editor-types.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
editorBlockToHMBlock,
|
|
3
3
|
editorBlocksToHMBlockNodes
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5ARN5GTL.mjs";
|
|
5
5
|
import "./chunk-N3P7S5YZ.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-EGDF5YHG.mjs";
|
|
7
7
|
import "./chunk-7P6ASYW6.mjs";
|
|
8
8
|
export {
|
|
9
9
|
editorBlockToHMBlock,
|
package/dist/hm-resolver.mjs
CHANGED