@seed-hypermedia/client 0.0.78 → 0.0.80
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-5ARN5GTL.mjs → chunk-2OMSCQ56.mjs} +1 -1
- package/dist/{chunk-E2S3ZLBH.mjs → chunk-55OXHA27.mjs} +2 -2
- package/dist/{chunk-YMF2Y7UO.mjs → chunk-AIQJ6BI3.mjs} +1 -1
- package/dist/{chunk-YYQPNBQK.mjs → chunk-C42YWLL2.mjs} +1 -1
- package/dist/{chunk-I6T7E6NR.mjs → chunk-D2LTD2KZ.mjs} +1 -1
- package/dist/{chunk-FT4OR5WY.mjs → chunk-IREIRKVP.mjs} +1 -1
- package/dist/{chunk-LLRVL4BP.mjs → chunk-LCKCG574.mjs} +1 -1
- package/dist/{chunk-HYCHOIRR.mjs → chunk-MZENVC36.mjs} +1 -1
- package/dist/{chunk-EGDF5YHG.mjs → chunk-MZUGCZJ6.mjs} +13 -4
- package/dist/{chunk-6ZDWVCC2.mjs → chunk-RCVLNXG6.mjs} +1 -1
- package/dist/{chunk-3NKBUTZO.mjs → chunk-SPVX5N6S.mjs} +1 -1
- package/dist/{chunk-NXWZWZWS.mjs → chunk-WGOIXGRU.mjs} +3 -3
- package/dist/{chunk-7UUGEBS3.mjs → chunk-YH52VFVR.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 +290 -1
- 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-55OXHA27.mjs";
|
|
8
8
|
import "./chunk-JT57MV7Y.mjs";
|
|
9
9
|
import "./chunk-PJ2RFT5A.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-C42YWLL2.mjs";
|
|
11
11
|
import "./chunk-LVAHHQIK.mjs";
|
|
12
12
|
import "./chunk-DR3HJ6BV.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-MZUGCZJ6.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-YH52VFVR.mjs";
|
|
11
|
+
import "./chunk-MZUGCZJ6.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-SPVX5N6S.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-MZUGCZJ6.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-C42YWLL2.mjs";
|
|
11
11
|
import {
|
|
12
12
|
entityQueryPathToHmIdPath,
|
|
13
13
|
packHmId,
|
|
14
14
|
unpackHmId
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MZUGCZJ6.mjs";
|
|
16
16
|
|
|
17
17
|
// src/auto-link.ts
|
|
18
18
|
import { CID } from "multiformats/cid";
|
|
@@ -35,7 +35,8 @@ var HMQueryTableColumnSchema = z.object({
|
|
|
35
35
|
width: z.number().positive().optional()
|
|
36
36
|
});
|
|
37
37
|
var HMQueryTableConfigSchema = z.object({
|
|
38
|
-
columns: z.array(HMQueryTableColumnSchema)
|
|
38
|
+
columns: z.array(HMQueryTableColumnSchema),
|
|
39
|
+
sorting: z.array(z.object({ id: z.string(), desc: z.boolean() })).optional()
|
|
39
40
|
});
|
|
40
41
|
var baseAnnotationProperties = {
|
|
41
42
|
starts: z.array(z.number()),
|
|
@@ -431,6 +432,8 @@ var HMDocumentInfoSchema = z.object({
|
|
|
431
432
|
generationInfo: HMGenerationInfoSchema,
|
|
432
433
|
redirectInfo: HMRedirectInfoSchema.optional(),
|
|
433
434
|
metadata: HMDocumentMetadataSchema,
|
|
435
|
+
/** Collection status derived by the published-document indexer. */
|
|
436
|
+
isCollection: z.boolean().optional(),
|
|
434
437
|
// Indexer-derived first image block of the document's content (reading
|
|
435
438
|
// order), used as a fallback cover on directory cards without fetching the
|
|
436
439
|
// full document. Undefined = not derived (yet); empty string = derived, the
|
|
@@ -767,7 +770,9 @@ var HMDraftMetaBaseSchema = z.object({
|
|
|
767
770
|
// deps and navigation live in the index entry for .md drafts
|
|
768
771
|
// (for .json drafts they come from the content file for backwards compat)
|
|
769
772
|
deps: z.array(z.string().min(1)).default([]),
|
|
770
|
-
navigation: z.array(HMNavigationItemSchema).optional()
|
|
773
|
+
navigation: z.array(HMNavigationItemSchema).optional(),
|
|
774
|
+
/** Collection status derived from the locally persisted draft content. */
|
|
775
|
+
isCollection: z.boolean().optional()
|
|
771
776
|
});
|
|
772
777
|
var draftLocationRefinement = (data) => data.editUid || data.locationUid;
|
|
773
778
|
var HMDraftMetaSchema = HMDraftMetaBaseSchema.refine(draftLocationRefinement, {
|
|
@@ -779,8 +784,12 @@ var HMListedDraftSchema = HMDraftMetaBaseSchema.extend({
|
|
|
779
784
|
message: "Either editUid or locationUid must be provided"
|
|
780
785
|
});
|
|
781
786
|
var HMListedDraftReadSchema = HMDraftMetaBaseSchema.extend({
|
|
782
|
-
lastUpdateTime: z.number()
|
|
783
|
-
|
|
787
|
+
lastUpdateTime: z.number(),
|
|
788
|
+
isFolder: z.boolean().optional()
|
|
789
|
+
}).transform(({ isFolder, ...draft }) => ({
|
|
790
|
+
...draft,
|
|
791
|
+
isCollection: draft.isCollection ?? isFolder ?? false
|
|
792
|
+
}));
|
|
784
793
|
var HMSubjectContactsRequestSchema = z.object({
|
|
785
794
|
key: z.literal("SubjectContacts"),
|
|
786
795
|
input: z.string(),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-D2LTD2KZ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createSeedClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RCVLNXG6.mjs";
|
|
7
7
|
import {
|
|
8
8
|
unpackHmId
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MZUGCZJ6.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-RCVLNXG6.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-MZUGCZJ6.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-IREIRKVP.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-MZUGCZJ6.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-C42YWLL2.mjs";
|
|
8
|
+
import "./chunk-MZUGCZJ6.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-2OMSCQ56.mjs";
|
|
5
5
|
import "./chunk-N3P7S5YZ.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-MZUGCZJ6.mjs";
|
|
7
7
|
import "./chunk-7P6ASYW6.mjs";
|
|
8
8
|
export {
|
|
9
9
|
editorBlockToHMBlock,
|
package/dist/hm-resolver.mjs
CHANGED