@seed-hypermedia/client 0.0.110 → 0.0.112
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-U3PAJ472.mjs → chunk-5UFRC5V5.mjs} +1 -1
- package/dist/{chunk-N2DIEFL4.mjs → chunk-7L33ATJR.mjs} +1 -1
- package/dist/{chunk-XBZWF34J.mjs → chunk-D2FB6VYK.mjs} +1 -1
- package/dist/{chunk-5N4GUBTC.mjs → chunk-GOL7A3MC.mjs} +3 -3
- package/dist/{chunk-JXIRASEP.mjs → chunk-HMXSKLUU.mjs} +1 -1
- package/dist/{chunk-ZIWKVJCO.mjs → chunk-IPAPQFRI.mjs} +1 -1
- package/dist/{chunk-ONSB56Z7.mjs → chunk-KQVQWW2X.mjs} +1 -1
- package/dist/{chunk-APDALLCQ.mjs → chunk-PQY5ATM6.mjs} +1 -1
- package/dist/{chunk-4MLSRAHT.mjs → chunk-QLJNGP7M.mjs} +1 -1
- package/dist/{chunk-3Y2LUQ2S.mjs → chunk-QM6DAEKJ.mjs} +1 -1
- package/dist/{chunk-JITFCBJG.mjs → chunk-QOIFLQOZ.mjs} +2 -2
- package/dist/{chunk-FPANFJPK.mjs → chunk-QYA2P7HQ.mjs} +13 -11
- package/dist/{chunk-OBJQE4NK.mjs → chunk-RGMUCING.mjs} +1 -1
- package/dist/{chunk-JZO5T6RZ.mjs → chunk-RTUVKOTV.mjs} +1 -1
- package/dist/client.d.ts +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 +8735 -81942
- 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-QOIFLQOZ.mjs";
|
|
8
8
|
import "./chunk-O5MHN2EO.mjs";
|
|
9
9
|
import "./chunk-PJ2RFT5A.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-PQY5ATM6.mjs";
|
|
11
11
|
import "./chunk-LVAHHQIK.mjs";
|
|
12
12
|
import "./chunk-DR3HJ6BV.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-QYA2P7HQ.mjs";
|
|
14
14
|
import "./chunk-AHQWDCHV.mjs";
|
|
15
15
|
import "./chunk-7P6ASYW6.mjs";
|
|
16
16
|
export {
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
emitFrontmatter,
|
|
8
8
|
parseDraftFilename,
|
|
9
9
|
slugify
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-7L33ATJR.mjs";
|
|
11
|
+
import "./chunk-QYA2P7HQ.mjs";
|
|
12
12
|
import "./chunk-AHQWDCHV.mjs";
|
|
13
13
|
import "./chunk-7P6ASYW6.mjs";
|
|
14
14
|
export {
|
package/dist/capability.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCapability,
|
|
3
3
|
resolveCapability
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IPAPQFRI.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-QYA2P7HQ.mjs";
|
|
9
9
|
import "./chunk-AHQWDCHV.mjs";
|
|
10
10
|
import "./chunk-3TPCJCVO.mjs";
|
|
11
11
|
import "./chunk-7P6ASYW6.mjs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KQVQWW2X.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createSeedClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HMXSKLUU.mjs";
|
|
7
7
|
import {
|
|
8
8
|
unpackHmId
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QYA2P7HQ.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-PQY5ATM6.mjs";
|
|
11
11
|
import {
|
|
12
12
|
entityQueryPathToHmIdPath,
|
|
13
13
|
packHmId,
|
|
14
14
|
unpackHmId
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QYA2P7HQ.mjs";
|
|
16
16
|
|
|
17
17
|
// src/auto-link.ts
|
|
18
18
|
import { CID } from "multiformats/cid";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-AHQWDCHV.mjs";
|
|
5
5
|
|
|
6
6
|
// src/hm-types.ts
|
|
7
|
-
import * as z from "zod
|
|
7
|
+
import * as z from "zod";
|
|
8
8
|
var BlockRangeSchema = z.object({
|
|
9
9
|
// a block range should either have start+end
|
|
10
10
|
start: z.number().optional(),
|
|
@@ -23,7 +23,7 @@ var unpackedHmIdSchema = z.object({
|
|
|
23
23
|
scheme: z.string().nullable(),
|
|
24
24
|
latest: z.boolean().nullable().optional(),
|
|
25
25
|
/** JSON-encoded custom HTML page input, excluded from canonical resource identity. */
|
|
26
|
-
pageParams: z.record(z.string()).optional(),
|
|
26
|
+
pageParams: z.record(z.string(), z.string()).optional(),
|
|
27
27
|
// deprecated:
|
|
28
28
|
targetDocUid: z.string().nullable().optional(),
|
|
29
29
|
targetDocPath: z.array(z.string()).nullable().optional()
|
|
@@ -232,7 +232,7 @@ var HMBlockFileSchema = z.object({
|
|
|
232
232
|
size: z.number().optional().transform((value) => value == null ? null : toNumber(value)),
|
|
233
233
|
// number of bytes, as a string
|
|
234
234
|
name: z.string().optional()
|
|
235
|
-
}).
|
|
235
|
+
}).prefault({}),
|
|
236
236
|
link: z.string()
|
|
237
237
|
}).strict();
|
|
238
238
|
var HMBlockButtonAlignmentSchema = z.union([z.literal("flex-start"), z.literal("center"), z.literal("flex-end")]).optional();
|
|
@@ -307,7 +307,7 @@ var HMDocumentMetadataSchema = z.object({
|
|
|
307
307
|
* because removal leaves a null attribute behind rather than dropping the key; `parseSpaceAgentIds`
|
|
308
308
|
* in @shm/ui/agents/space-agents is the reader for this field.
|
|
309
309
|
*/
|
|
310
|
-
spaceAgents: z.record(z.unknown()).optional(),
|
|
310
|
+
spaceAgents: z.record(z.string(), z.unknown()).optional(),
|
|
311
311
|
/** Resource type; custom HTML pages use hm://hyper.media/page. */
|
|
312
312
|
type: z.string().optional(),
|
|
313
313
|
/** UnixFS folder whose index.html runs as an isolated custom HTML page. */
|
|
@@ -634,13 +634,13 @@ var HMBlockUnknownSchema = z.object({
|
|
|
634
634
|
type: z.string(),
|
|
635
635
|
id: z.string(),
|
|
636
636
|
revision: z.string().optional(),
|
|
637
|
-
attributes: z.record(z.any()).optional(),
|
|
637
|
+
attributes: z.record(z.string(), z.any()).optional(),
|
|
638
638
|
annotations: z.array(z.any()).optional(),
|
|
639
639
|
text: z.string().optional(),
|
|
640
640
|
link: z.string().optional()
|
|
641
641
|
}).passthrough();
|
|
642
642
|
var HMBlockSchema = z.union([HMBlockKnownSchema, HMBlockUnknownSchema]);
|
|
643
|
-
var knownBlockTypes = new Set(HMBlockKnownSchema.
|
|
643
|
+
var knownBlockTypes = new Set(HMBlockKnownSchema.options.map((schema) => schema.shape.type.value));
|
|
644
644
|
function isKnownBlockType(btype) {
|
|
645
645
|
return knownBlockTypes.has(btype);
|
|
646
646
|
}
|
|
@@ -998,7 +998,7 @@ var HMRawDocumentInfoSchema = z.object({
|
|
|
998
998
|
account: z.string(),
|
|
999
999
|
/** The document path, `/`-prefixed; empty for the space's home document. */
|
|
1000
1000
|
path: z.string().optional(),
|
|
1001
|
-
metadata: z.record(z.unknown()).optional(),
|
|
1001
|
+
metadata: z.record(z.string(), z.unknown()).optional(),
|
|
1002
1002
|
authors: z.array(z.string()).optional(),
|
|
1003
1003
|
createTime: z.string().optional(),
|
|
1004
1004
|
updateTime: z.string().optional(),
|
|
@@ -1191,7 +1191,7 @@ var HMListAccountsRequestSchema = z.object({
|
|
|
1191
1191
|
output: HMListAccountsOutputSchema
|
|
1192
1192
|
});
|
|
1193
1193
|
var HMGetCIDOutputSchema = z.object({
|
|
1194
|
-
value: z.any()
|
|
1194
|
+
value: z.any().optional()
|
|
1195
1195
|
});
|
|
1196
1196
|
var HMGetCIDInputSchema = z.object({
|
|
1197
1197
|
cid: z.string()
|
|
@@ -1392,10 +1392,11 @@ var HMPublishBlobsRequestSchema = z.object({
|
|
|
1392
1392
|
input: HMPublishBlobsInputSchema,
|
|
1393
1393
|
output: HMPublishBlobsOutputSchema
|
|
1394
1394
|
});
|
|
1395
|
+
var ProtoStructSchema = z.object({}).catchall(z.any());
|
|
1395
1396
|
var ProtoAnnotationSchema = z.object({
|
|
1396
1397
|
type: z.string(),
|
|
1397
1398
|
link: z.string().optional(),
|
|
1398
|
-
attributes:
|
|
1399
|
+
attributes: ProtoStructSchema.optional(),
|
|
1399
1400
|
starts: z.array(z.number()).optional(),
|
|
1400
1401
|
ends: z.array(z.number()).optional()
|
|
1401
1402
|
});
|
|
@@ -1404,15 +1405,16 @@ var ProtoBlockSchema = z.object({
|
|
|
1404
1405
|
type: z.string().optional(),
|
|
1405
1406
|
text: z.string().optional(),
|
|
1406
1407
|
link: z.string().optional(),
|
|
1407
|
-
attributes:
|
|
1408
|
+
attributes: ProtoStructSchema.optional(),
|
|
1408
1409
|
annotations: z.array(ProtoAnnotationSchema).optional(),
|
|
1409
1410
|
revision: z.string().optional()
|
|
1410
1411
|
});
|
|
1412
|
+
var ProtoEmptySchema = z.object({});
|
|
1411
1413
|
var ProtoSetAttributeValueSchema = z.union([
|
|
1412
1414
|
z.object({ case: z.literal("stringValue"), value: z.string() }),
|
|
1413
1415
|
z.object({ case: z.literal("intValue"), value: z.union([z.bigint(), z.coerce.bigint()]) }),
|
|
1414
1416
|
z.object({ case: z.literal("boolValue"), value: z.boolean() }),
|
|
1415
|
-
z.object({ case: z.literal("nullValue"), value:
|
|
1417
|
+
z.object({ case: z.literal("nullValue"), value: ProtoEmptySchema }),
|
|
1416
1418
|
z.object({ case: z.undefined(), value: z.undefined().optional() })
|
|
1417
1419
|
]);
|
|
1418
1420
|
var ProtoDocumentChangeSchema = z.object({
|
package/dist/client.d.ts
CHANGED
package/dist/client.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSeedClient,
|
|
3
3
|
deserializeQueryString
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HMXSKLUU.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-QYA2P7HQ.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-QLJNGP7M.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-QYA2P7HQ.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-PQY5ATM6.mjs";
|
|
8
|
+
import "./chunk-QYA2P7HQ.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-RGMUCING.mjs";
|
|
5
5
|
import "./chunk-JKKS35IS.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-QYA2P7HQ.mjs";
|
|
7
7
|
import "./chunk-AHQWDCHV.mjs";
|
|
8
8
|
import "./chunk-7P6ASYW6.mjs";
|
|
9
9
|
export {
|
package/dist/hm-resolver.mjs
CHANGED