@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(),
@@ -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
@@ -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.19",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/seed-hypermedia/seed",