@seed-hypermedia/client 0.0.17 → 0.0.19
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.
|
@@ -599,7 +599,8 @@ var HMDraftContentSchema = z.object({
|
|
|
599
599
|
content: z.array(z.any()),
|
|
600
600
|
// EditorBlock validation is handled elsewhere
|
|
601
601
|
deps: z.array(z.string().min(1)).default([]),
|
|
602
|
-
navigation: z.array(HMNavigationItemSchema).optional()
|
|
602
|
+
navigation: z.array(HMNavigationItemSchema).optional(),
|
|
603
|
+
cursorPosition: z.number().optional()
|
|
603
604
|
});
|
|
604
605
|
var HMDraftMetaBaseSchema = z.object({
|
|
605
606
|
id: z.string(),
|
package/dist/hm-types.d.ts
CHANGED
|
@@ -10931,6 +10931,7 @@ export declare const HMAccountContactsRequestSchema: z.ZodObject<{
|
|
|
10931
10931
|
export type HMAccountContactsRequest = z.infer<typeof HMAccountContactsRequestSchema>;
|
|
10932
10932
|
export type HMExistingDraft = {
|
|
10933
10933
|
id: string;
|
|
10934
|
+
metadata?: HMMetadata;
|
|
10934
10935
|
};
|
|
10935
10936
|
export declare const HMCommentDraftSchema: z.ZodObject<{
|
|
10936
10937
|
blocks: z.ZodArray<z.ZodType<HMBlockNode, z.ZodTypeDef, HMBlockNode>, "many">;
|
|
@@ -12295,6 +12296,7 @@ export declare const HMDraftContentSchema: z.ZodObject<{
|
|
|
12295
12296
|
id: string;
|
|
12296
12297
|
text: string;
|
|
12297
12298
|
}>, "many">>;
|
|
12299
|
+
cursorPosition: z.ZodOptional<z.ZodNumber>;
|
|
12298
12300
|
}, "strip", z.ZodTypeAny, {
|
|
12299
12301
|
content: any[];
|
|
12300
12302
|
deps: string[];
|
|
@@ -12304,6 +12306,7 @@ export declare const HMDraftContentSchema: z.ZodObject<{
|
|
|
12304
12306
|
id: string;
|
|
12305
12307
|
text: string;
|
|
12306
12308
|
}[] | undefined;
|
|
12309
|
+
cursorPosition?: number | undefined;
|
|
12307
12310
|
}, {
|
|
12308
12311
|
content: any[];
|
|
12309
12312
|
deps?: string[] | undefined;
|
|
@@ -12313,6 +12316,7 @@ export declare const HMDraftContentSchema: z.ZodObject<{
|
|
|
12313
12316
|
id: string;
|
|
12314
12317
|
text: string;
|
|
12315
12318
|
}[] | undefined;
|
|
12319
|
+
cursorPosition?: number | undefined;
|
|
12316
12320
|
}>;
|
|
12317
12321
|
export type HMDraftContent = z.infer<typeof HMDraftContentSchema>;
|
|
12318
12322
|
export declare const HMDraftMetaSchema: z.ZodEffects<z.ZodObject<{
|
package/dist/hm-types.mjs
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
serializeBlockRange,
|
|
17
17
|
toNumber,
|
|
18
18
|
unpackHmId
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-E7GQKNCO.mjs";
|
|
20
20
|
|
|
21
21
|
// src/capability.ts
|
|
22
22
|
import { encode as cborEncode2 } from "@ipld/dag-cbor";
|
|
@@ -3664,7 +3664,6 @@ function toEditorBlockType(hmBlockType) {
|
|
|
3664
3664
|
if (hmBlockType === "Button") return "button";
|
|
3665
3665
|
if (hmBlockType === "Embed") return "embed";
|
|
3666
3666
|
if (hmBlockType === "WebEmbed") return "web-embed";
|
|
3667
|
-
if (hmBlockType === "Nostr") return "nostr";
|
|
3668
3667
|
if (hmBlockType === "Query") return "query";
|
|
3669
3668
|
return "unknown";
|
|
3670
3669
|
}
|