@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(),
|
package/dist/hm-types.d.ts
CHANGED
|
@@ -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
package/dist/index.mjs
CHANGED