@seed-hypermedia/client 0.0.92 → 0.0.93
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-JOFKLKIC.mjs → chunk-6GFFLR72.mjs} +1 -1
- package/dist/{chunk-7RJYOV4D.mjs → chunk-D5RC44SE.mjs} +1 -1
- package/dist/{chunk-BRMAKS6Z.mjs → chunk-HWCGZF52.mjs} +1 -1
- package/dist/{chunk-HEATDM6O.mjs → chunk-JFNPQEUD.mjs} +1 -1
- package/dist/{chunk-WY7T2TES.mjs → chunk-KACXO543.mjs} +1 -1
- package/dist/{chunk-EB45YSE7.mjs → chunk-KMRULMJF.mjs} +1 -1
- package/dist/{chunk-J6LPZ3QP.mjs → chunk-NDQHXVP4.mjs} +1 -1
- package/dist/{chunk-IO44LDKK.mjs → chunk-OO2BEP54.mjs} +2 -2
- package/dist/{chunk-IB26JMU5.mjs → chunk-QSQCVGXA.mjs} +1 -1
- package/dist/{chunk-MK35Y35R.mjs → chunk-SU2G6KVP.mjs} +9 -1
- package/dist/{chunk-RWKSRJA3.mjs → chunk-UBBG2AKS.mjs} +1 -1
- package/dist/{chunk-M6GKXROC.mjs → chunk-WQ2GBQWJ.mjs} +1 -1
- package/dist/{chunk-IJOMB2VD.mjs → chunk-WRPRFXOC.mjs} +3 -3
- package/dist/{chunk-J6N6AF3R.mjs → chunk-ZXUKRFF4.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 +12 -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-resolve.mjs +2 -2
- package/dist/schema-subtypes.mjs +2 -2
- 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-OO2BEP54.mjs";
|
|
8
8
|
import "./chunk-O5MHN2EO.mjs";
|
|
9
9
|
import "./chunk-PJ2RFT5A.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-6GFFLR72.mjs";
|
|
11
11
|
import "./chunk-LVAHHQIK.mjs";
|
|
12
12
|
import "./chunk-DR3HJ6BV.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-SU2G6KVP.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-KACXO543.mjs";
|
|
11
|
+
import "./chunk-SU2G6KVP.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-ZXUKRFF4.mjs";
|
|
5
5
|
import "./chunk-LVAHHQIK.mjs";
|
|
6
6
|
import "./chunk-NBCHK76Q.mjs";
|
|
7
7
|
import "./chunk-DR3HJ6BV.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-SU2G6KVP.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-6GFFLR72.mjs";
|
|
11
11
|
import {
|
|
12
12
|
entityQueryPathToHmIdPath,
|
|
13
13
|
packHmId,
|
|
14
14
|
unpackHmId
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-SU2G6KVP.mjs";
|
|
16
16
|
|
|
17
17
|
// src/auto-link.ts
|
|
18
18
|
import { CID } from "multiformats/cid";
|
|
@@ -790,7 +790,15 @@ var HMDraftContentSchema = z.object({
|
|
|
790
790
|
* rename affordance in the publish popover. Persisted so it survives reloads
|
|
791
791
|
* and is honored at publish time instead of the title-derived slug.
|
|
792
792
|
*/
|
|
793
|
-
publishPath: z.array(z.string()).optional()
|
|
793
|
+
publishPath: z.array(z.string()).optional(),
|
|
794
|
+
/**
|
|
795
|
+
* The working schema object of a draft whose document defines a type, while it is being
|
|
796
|
+
* authored. Not metadata: publish freezes it into a DAG-CBOR blob and writes the document's
|
|
797
|
+
* `schemaDefinition: ipfs://<cid>` attribute.
|
|
798
|
+
*/
|
|
799
|
+
schemaDraft: z.record(z.string(), z.any()).optional(),
|
|
800
|
+
/** The working attributes schemas behind `attributesSchema` / `childAttributesSchema`, by key; frozen into IPFS objects at publish. */
|
|
801
|
+
bindingSchemaDrafts: z.record(z.string(), z.record(z.string(), z.any())).optional()
|
|
794
802
|
});
|
|
795
803
|
var HMDraftMetaBaseSchema = z.object({
|
|
796
804
|
id: z.string(),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NDQHXVP4.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createSeedClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WQ2GBQWJ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
unpackHmId
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SU2G6KVP.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-WQ2GBQWJ.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-SU2G6KVP.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-D5RC44SE.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-SU2G6KVP.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-6GFFLR72.mjs";
|
|
8
|
+
import "./chunk-SU2G6KVP.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-KMRULMJF.mjs";
|
|
5
5
|
import "./chunk-JKKS35IS.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-SU2G6KVP.mjs";
|
|
7
7
|
import "./chunk-7P6ASYW6.mjs";
|
|
8
8
|
export {
|
|
9
9
|
editorBlockToHMBlock,
|
package/dist/hm-resolver.mjs
CHANGED
package/dist/hm-types.d.ts
CHANGED
|
@@ -16989,6 +16989,14 @@ export declare const HMDraftContentSchema: z.ZodObject<{
|
|
|
16989
16989
|
* and is honored at publish time instead of the title-derived slug.
|
|
16990
16990
|
*/
|
|
16991
16991
|
publishPath: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
16992
|
+
/**
|
|
16993
|
+
* The working schema object of a draft whose document defines a type, while it is being
|
|
16994
|
+
* authored. Not metadata: publish freezes it into a DAG-CBOR blob and writes the document's
|
|
16995
|
+
* `schemaDefinition: ipfs://<cid>` attribute.
|
|
16996
|
+
*/
|
|
16997
|
+
schemaDraft: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
16998
|
+
/** The working attributes schemas behind `attributesSchema` / `childAttributesSchema`, by key; frozen into IPFS objects at publish. */
|
|
16999
|
+
bindingSchemaDrafts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
16992
17000
|
}, "strip", z.ZodTypeAny, {
|
|
16993
17001
|
content: any[];
|
|
16994
17002
|
maintenanceRevision: number;
|
|
@@ -17005,6 +17013,8 @@ export declare const HMDraftContentSchema: z.ZodObject<{
|
|
|
17005
17013
|
mineTouchedIds?: string[] | undefined;
|
|
17006
17014
|
baseBlocks?: any[] | undefined;
|
|
17007
17015
|
publishPath?: string[] | undefined;
|
|
17016
|
+
schemaDraft?: Record<string, any> | undefined;
|
|
17017
|
+
bindingSchemaDrafts?: Record<string, Record<string, any>> | undefined;
|
|
17008
17018
|
}, {
|
|
17009
17019
|
content: any[];
|
|
17010
17020
|
maintenancePreviousDeps?: string[][] | undefined;
|
|
@@ -17021,6 +17031,8 @@ export declare const HMDraftContentSchema: z.ZodObject<{
|
|
|
17021
17031
|
mineTouchedIds?: string[] | undefined;
|
|
17022
17032
|
baseBlocks?: any[] | undefined;
|
|
17023
17033
|
publishPath?: string[] | undefined;
|
|
17034
|
+
schemaDraft?: Record<string, any> | undefined;
|
|
17035
|
+
bindingSchemaDrafts?: Record<string, Record<string, any>> | undefined;
|
|
17024
17036
|
}>;
|
|
17025
17037
|
export type HMDraftContent = z.infer<typeof HMDraftContentSchema>;
|
|
17026
17038
|
export declare const HMDraftMetaSchema: z.ZodEffects<z.ZodObject<{
|
package/dist/hm-types.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
annotationContains,
|
|
3
3
|
hmBlockToEditorBlock,
|
|
4
4
|
hmBlocksToEditorContent
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-JFNPQEUD.mjs";
|
|
6
|
+
import "./chunk-SU2G6KVP.mjs";
|
|
7
7
|
import "./chunk-7P6ASYW6.mjs";
|
|
8
8
|
export {
|
|
9
9
|
annotationContains,
|
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveIdWithClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WRPRFXOC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
annotationContains,
|
|
6
6
|
hmBlockToEditorBlock,
|
|
7
7
|
hmBlocksToEditorContent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JFNPQEUD.mjs";
|
|
9
9
|
import {
|
|
10
10
|
keyfile_exports
|
|
11
11
|
} from "./chunk-EY6RQVAP.mjs";
|
|
@@ -18,17 +18,17 @@ import {
|
|
|
18
18
|
} from "./chunk-QVRJGK77.mjs";
|
|
19
19
|
import {
|
|
20
20
|
pdfToBlocks
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-HWCGZF52.mjs";
|
|
22
22
|
import {
|
|
23
23
|
teiToBlocks
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-QSQCVGXA.mjs";
|
|
25
25
|
import {
|
|
26
26
|
embeddedPdfToBlocks
|
|
27
27
|
} from "./chunk-2FJBS3V7.mjs";
|
|
28
28
|
import {
|
|
29
29
|
editorBlockToHMBlock,
|
|
30
30
|
editorBlocksToHMBlockNodes
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-KMRULMJF.mjs";
|
|
32
32
|
import {
|
|
33
33
|
encryption_exports
|
|
34
34
|
} from "./chunk-UOL3F6XQ.mjs";
|
|
@@ -46,10 +46,10 @@ import {
|
|
|
46
46
|
import {
|
|
47
47
|
resolveHypermediaUrl,
|
|
48
48
|
resolveId
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-NDQHXVP4.mjs";
|
|
50
50
|
import {
|
|
51
51
|
createSeedClient
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-WQ2GBQWJ.mjs";
|
|
53
53
|
import {
|
|
54
54
|
SeedClientError,
|
|
55
55
|
SeedNetworkError,
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
deleteComment,
|
|
62
62
|
trimTrailingEmptyBlocks,
|
|
63
63
|
updateComment
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-D5RC44SE.mjs";
|
|
65
65
|
import {
|
|
66
66
|
AnnotationSet,
|
|
67
67
|
addSpanToAnnotation,
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
documentContainsLinkToChild,
|
|
83
83
|
documentHasSelfQuery,
|
|
84
84
|
shouldAutoLinkParent
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-OO2BEP54.mjs";
|
|
86
86
|
import {
|
|
87
87
|
createChange,
|
|
88
88
|
createChangeOps,
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
followToDocument,
|
|
105
105
|
resolveDocumentState,
|
|
106
106
|
resolveEditableDocument
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-6GFFLR72.mjs";
|
|
108
108
|
import "./chunk-2MD3FXKB.mjs";
|
|
109
109
|
import {
|
|
110
110
|
computeReplaceOps,
|
|
@@ -123,11 +123,11 @@ import {
|
|
|
123
123
|
emitFrontmatter,
|
|
124
124
|
parseDraftFilename,
|
|
125
125
|
slugify
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-KACXO543.mjs";
|
|
127
127
|
import {
|
|
128
128
|
createCapability,
|
|
129
129
|
resolveCapability
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-ZXUKRFF4.mjs";
|
|
131
131
|
import "./chunk-LVAHHQIK.mjs";
|
|
132
132
|
import "./chunk-NBCHK76Q.mjs";
|
|
133
133
|
import {
|
|
@@ -147,7 +147,7 @@ import {
|
|
|
147
147
|
parseFragment,
|
|
148
148
|
serializeBlockRange,
|
|
149
149
|
unpackHmId
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-SU2G6KVP.mjs";
|
|
151
151
|
import "./chunk-3TPCJCVO.mjs";
|
|
152
152
|
import "./chunk-7P6ASYW6.mjs";
|
|
153
153
|
export {
|
package/dist/pdf-to-blocks.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pdfToBlocks
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-HWCGZF52.mjs";
|
|
4
|
+
import "./chunk-QSQCVGXA.mjs";
|
|
5
5
|
import "./chunk-2FJBS3V7.mjs";
|
|
6
6
|
import "./chunk-PPAY4WZX.mjs";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-SU2G6KVP.mjs";
|
|
8
8
|
import "./chunk-7P6ASYW6.mjs";
|
|
9
9
|
export {
|
|
10
10
|
pdfToBlocks
|
package/dist/resource-read.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveIdWithClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-WRPRFXOC.mjs";
|
|
4
|
+
import "./chunk-NDQHXVP4.mjs";
|
|
5
|
+
import "./chunk-WQ2GBQWJ.mjs";
|
|
6
6
|
import "./chunk-CBELM7KX.mjs";
|
|
7
7
|
import "./chunk-O5MHN2EO.mjs";
|
|
8
8
|
import "./chunk-PJ2RFT5A.mjs";
|
|
9
9
|
import "./chunk-LVAHHQIK.mjs";
|
|
10
10
|
import "./chunk-DR3HJ6BV.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-SU2G6KVP.mjs";
|
|
12
12
|
import "./chunk-7P6ASYW6.mjs";
|
|
13
13
|
export {
|
|
14
14
|
resolveIdWithClient
|
package/dist/schema-resolve.mjs
CHANGED
|
@@ -17,11 +17,11 @@ import {
|
|
|
17
17
|
resolveSchemaRef,
|
|
18
18
|
schemaDefinitionCid,
|
|
19
19
|
withoutSchemaLink
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-UBBG2AKS.mjs";
|
|
21
21
|
import "./chunk-JSNDXUPG.mjs";
|
|
22
22
|
import "./chunk-ZWKMAGDU.mjs";
|
|
23
23
|
import "./chunk-VWSAFDOL.mjs";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-SU2G6KVP.mjs";
|
|
25
25
|
import "./chunk-7P6ASYW6.mjs";
|
|
26
26
|
export {
|
|
27
27
|
bareCid,
|
package/dist/schema-subtypes.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
classifyRef
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UBBG2AKS.mjs";
|
|
4
4
|
import {
|
|
5
5
|
kindOf,
|
|
6
6
|
nameForCid,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import "./chunk-VWSAFDOL.mjs";
|
|
14
14
|
import {
|
|
15
15
|
unpackHmId
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SU2G6KVP.mjs";
|
|
17
17
|
import "./chunk-7P6ASYW6.mjs";
|
|
18
18
|
|
|
19
19
|
// src/schema-subtypes.ts
|
package/dist/tei-to-blocks.mjs
CHANGED
package/dist/unicode.mjs
CHANGED