patent-editor 0.2.5 → 0.2.7
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.
- package/dist/lib.d.ts +7 -7
- package/dist/lib.js +393 -381
- package/dist/lib.js.map +1 -1
- package/package.json +1 -1
package/dist/lib.d.ts
CHANGED
|
@@ -10,9 +10,9 @@ import { PluginKey } from '@tiptap/pm/state';
|
|
|
10
10
|
import { StoreApi } from 'zustand';
|
|
11
11
|
import { UseBoundStore } from 'zustand';
|
|
12
12
|
|
|
13
|
-
export declare function acceptAllPatches(editor: Editor): void;
|
|
13
|
+
export declare function acceptAllPatches(editor: Editor, editorId?: string): void;
|
|
14
14
|
|
|
15
|
-
export declare function acceptPatch(editor: Editor, patchId: string): boolean;
|
|
15
|
+
export declare function acceptPatch(editor: Editor, patchId: string, editorId?: string): boolean;
|
|
16
16
|
|
|
17
17
|
export declare type AIAction = 'generate';
|
|
18
18
|
|
|
@@ -225,7 +225,7 @@ export declare interface ClaimSnapshot {
|
|
|
225
225
|
pos: number;
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
export declare function clearPatches(): void;
|
|
228
|
+
export declare function clearPatches(editorId?: string): void;
|
|
229
229
|
|
|
230
230
|
declare interface CommandCompletionResult {
|
|
231
231
|
name: string;
|
|
@@ -388,7 +388,7 @@ export declare function getAllSections(editor: Editor): SectionInfo[];
|
|
|
388
388
|
|
|
389
389
|
export declare function getMissingSectionDeps(targetSection: PatentSectionType, completedSections: Set<PatentSectionType>): PatentSectionType[];
|
|
390
390
|
|
|
391
|
-
export declare function getPatches(): AIPatch[];
|
|
391
|
+
export declare function getPatches(editorId?: string): AIPatch[];
|
|
392
392
|
|
|
393
393
|
declare const insertNode: (editor: Editor, input: InsertNodeInput) => boolean;
|
|
394
394
|
|
|
@@ -475,9 +475,9 @@ declare class PluginManager {
|
|
|
475
475
|
|
|
476
476
|
export declare const pluginManager: PluginManager;
|
|
477
477
|
|
|
478
|
-
export declare function rejectAllPatches(editor: Editor): void;
|
|
478
|
+
export declare function rejectAllPatches(editor: Editor, editorId?: string): void;
|
|
479
479
|
|
|
480
|
-
export declare function rejectPatch(editor: Editor, patchId: string): boolean;
|
|
480
|
+
export declare function rejectPatch(editor: Editor, patchId: string, editorId?: string): boolean;
|
|
481
481
|
|
|
482
482
|
/**
|
|
483
483
|
* Remove the doc-diff decoration plugin from the editor.
|
|
@@ -517,7 +517,7 @@ declare interface SectionInfo {
|
|
|
517
517
|
content: string;
|
|
518
518
|
}
|
|
519
519
|
|
|
520
|
-
export declare function setPatches(patches: AIPatch[]): void;
|
|
520
|
+
export declare function setPatches(patches: AIPatch[], editorId?: string): void;
|
|
521
521
|
|
|
522
522
|
export declare type StreamWriteMode = 'cursor' | 'section';
|
|
523
523
|
|