@seed-hypermedia/client 0.0.17 → 0.0.18
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
|
@@ -12295,6 +12295,7 @@ export declare const HMDraftContentSchema: z.ZodObject<{
|
|
|
12295
12295
|
id: string;
|
|
12296
12296
|
text: string;
|
|
12297
12297
|
}>, "many">>;
|
|
12298
|
+
cursorPosition: z.ZodOptional<z.ZodNumber>;
|
|
12298
12299
|
}, "strip", z.ZodTypeAny, {
|
|
12299
12300
|
content: any[];
|
|
12300
12301
|
deps: string[];
|
|
@@ -12304,6 +12305,7 @@ export declare const HMDraftContentSchema: z.ZodObject<{
|
|
|
12304
12305
|
id: string;
|
|
12305
12306
|
text: string;
|
|
12306
12307
|
}[] | undefined;
|
|
12308
|
+
cursorPosition?: number | undefined;
|
|
12307
12309
|
}, {
|
|
12308
12310
|
content: any[];
|
|
12309
12311
|
deps?: string[] | undefined;
|
|
@@ -12313,6 +12315,7 @@ export declare const HMDraftContentSchema: z.ZodObject<{
|
|
|
12313
12315
|
id: string;
|
|
12314
12316
|
text: string;
|
|
12315
12317
|
}[] | undefined;
|
|
12318
|
+
cursorPosition?: number | undefined;
|
|
12316
12319
|
}>;
|
|
12317
12320
|
export type HMDraftContent = z.infer<typeof HMDraftContentSchema>;
|
|
12318
12321
|
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
|
}
|