@seed-hypermedia/client 0.0.26 → 0.0.27

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.
@@ -606,7 +606,18 @@ var HMDraftContentSchema = z.object({
606
606
  // EditorBlock validation is handled elsewhere
607
607
  deps: z.array(z.string().min(1)).default([]),
608
608
  navigation: z.array(HMNavigationItemSchema).optional(),
609
- cursorPosition: z.number().optional()
609
+ cursorPosition: z.number().optional(),
610
+ /**
611
+ * Block IDs the local user touched since starting this draft. Used by the
612
+ * auto-rebase classifier to distinguish locally-edited blocks from incoming
613
+ * remote edits. Persisted so reload-after-rebase keeps the touch history.
614
+ */
615
+ mineTouchedIds: z.array(z.string()).optional(),
616
+ /**
617
+ * Snapshot of the published HMBlockNode[] tree at the time the draft was
618
+ * started (or last rebased). Acts as the merge base for three-way diff.
619
+ */
620
+ baseBlocks: z.array(z.any()).optional()
610
621
  });
611
622
  var HMDraftMetaBaseSchema = z.object({
612
623
  id: z.string(),
@@ -12297,6 +12297,17 @@ export declare const HMDraftContentSchema: z.ZodObject<{
12297
12297
  text: string;
12298
12298
  }>, "many">>;
12299
12299
  cursorPosition: z.ZodOptional<z.ZodNumber>;
12300
+ /**
12301
+ * Block IDs the local user touched since starting this draft. Used by the
12302
+ * auto-rebase classifier to distinguish locally-edited blocks from incoming
12303
+ * remote edits. Persisted so reload-after-rebase keeps the touch history.
12304
+ */
12305
+ mineTouchedIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
12306
+ /**
12307
+ * Snapshot of the published HMBlockNode[] tree at the time the draft was
12308
+ * started (or last rebased). Acts as the merge base for three-way diff.
12309
+ */
12310
+ baseBlocks: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
12300
12311
  }, "strip", z.ZodTypeAny, {
12301
12312
  content: any[];
12302
12313
  deps: string[];
@@ -12307,6 +12318,8 @@ export declare const HMDraftContentSchema: z.ZodObject<{
12307
12318
  text: string;
12308
12319
  }[] | undefined;
12309
12320
  cursorPosition?: number | undefined;
12321
+ mineTouchedIds?: string[] | undefined;
12322
+ baseBlocks?: any[] | undefined;
12310
12323
  }, {
12311
12324
  content: any[];
12312
12325
  deps?: string[] | undefined;
@@ -12317,6 +12330,8 @@ export declare const HMDraftContentSchema: z.ZodObject<{
12317
12330
  text: string;
12318
12331
  }[] | undefined;
12319
12332
  cursorPosition?: number | undefined;
12333
+ mineTouchedIds?: string[] | undefined;
12334
+ baseBlocks?: any[] | undefined;
12320
12335
  }>;
12321
12336
  export type HMDraftContent = z.infer<typeof HMDraftContentSchema>;
12322
12337
  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-GBZ545NB.mjs";
168
+ } from "./chunk-F2YINBVV.mjs";
169
169
  export {
170
170
  BlockRangeSchema,
171
171
  BoldAnnotationSchema,
package/dist/index.mjs CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  serializeBlockRange,
18
18
  toNumber,
19
19
  unpackHmId
20
- } from "./chunk-GBZ545NB.mjs";
20
+ } from "./chunk-F2YINBVV.mjs";
21
21
 
22
22
  // src/capability.ts
23
23
  import { encode as cborEncode2 } from "@ipld/dag-cbor";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seed-hypermedia/client",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/seed-hypermedia/seed",