@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(),
@@ -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
@@ -165,7 +165,7 @@ import {
165
165
  toNumber,
166
166
  unpackHmId,
167
167
  unpackedHmIdSchema
168
- } from "./chunk-SYZT4SNF.mjs";
168
+ } from "./chunk-E7GQKNCO.mjs";
169
169
  export {
170
170
  BlockRangeSchema,
171
171
  BoldAnnotationSchema,
package/dist/index.mjs CHANGED
@@ -16,7 +16,7 @@ import {
16
16
  serializeBlockRange,
17
17
  toNumber,
18
18
  unpackHmId
19
- } from "./chunk-SYZT4SNF.mjs";
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seed-hypermedia/client",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/seed-hypermedia/seed",