@platejs/ai 52.0.11 → 52.1.0
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/{index-CyVv31EV.d.ts → index-Dyi5V2wm.d.ts} +7 -7
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2003 -3
- package/dist/react/index.d.ts +37 -15
- package/dist/react/index.js +69 -16
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as platejs5 from "platejs";
|
|
2
2
|
import { Descendant, History, OmitFirst, Path, PluginConfig, SlateEditor, TLocation } from "platejs";
|
|
3
3
|
|
|
4
4
|
//#region src/lib/transforms/insertAINodes.d.ts
|
|
@@ -43,15 +43,15 @@ type BaseAIPluginConfig = PluginConfig<'ai', {}, {}, {
|
|
|
43
43
|
removeNodes: OmitFirst<typeof removeAINodes>;
|
|
44
44
|
};
|
|
45
45
|
}>;
|
|
46
|
-
declare const BaseAIPlugin:
|
|
47
|
-
insertNodes: (nodes:
|
|
48
|
-
target?:
|
|
46
|
+
declare const BaseAIPlugin: platejs5.SlatePlugin<PluginConfig<any, {}, {}, Record<any, {
|
|
47
|
+
insertNodes: (nodes: platejs5.Descendant[], args_1?: {
|
|
48
|
+
target?: platejs5.Path;
|
|
49
49
|
} | undefined) => void;
|
|
50
50
|
removeMarks: (args_0?: {
|
|
51
|
-
at?:
|
|
51
|
+
at?: platejs5.TLocation;
|
|
52
52
|
} | undefined) => void;
|
|
53
53
|
removeNodes: (args_0?: {
|
|
54
|
-
at?:
|
|
54
|
+
at?: platejs5.Path;
|
|
55
55
|
} | undefined) => void;
|
|
56
56
|
undo: () => void;
|
|
57
57
|
}>, {}>>;
|
|
@@ -79,7 +79,7 @@ declare const getEditorPrompt: (editor: SlateEditor, {
|
|
|
79
79
|
}) => string;
|
|
80
80
|
//#endregion
|
|
81
81
|
//#region src/lib/utils/replacePlaceholders.d.ts
|
|
82
|
-
type MarkdownType = 'block' | 'blockSelection' | 'blockSelectionWithBlockId' | 'blockWithBlockId' | 'editor' | 'editorWithBlockId';
|
|
82
|
+
type MarkdownType = 'block' | 'blockSelection' | 'blockSelectionWithBlockId' | 'blockWithBlockId' | 'editor' | 'editorWithBlockId' | 'tableCellWithId';
|
|
83
83
|
declare const replacePlaceholders: (editor: SlateEditor, text: string, {
|
|
84
84
|
prompt
|
|
85
85
|
}?: {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as insertAINodes, a as EditorPromptParams, c as AIMode, d as BaseAIPluginConfig, f as AIBatch, g as removeAIMarks, h as removeAINodes, i as EditorPrompt, l as AIToolName, m as undoAI, n as MarkdownType, o as PromptConfig, p as withAIBatch, r as replacePlaceholders, s as getEditorPrompt, t as getMarkdown, u as BaseAIPlugin } from "./index-
|
|
1
|
+
import { _ as insertAINodes, a as EditorPromptParams, c as AIMode, d as BaseAIPluginConfig, f as AIBatch, g as removeAIMarks, h as removeAINodes, i as EditorPrompt, l as AIToolName, m as undoAI, n as MarkdownType, o as PromptConfig, p as withAIBatch, r as replacePlaceholders, s as getEditorPrompt, t as getMarkdown, u as BaseAIPlugin } from "./index-Dyi5V2wm.js";
|
|
2
2
|
export { AIBatch, AIMode, AIToolName, BaseAIPlugin, BaseAIPluginConfig, EditorPrompt, EditorPromptParams, MarkdownType, PromptConfig, getEditorPrompt, getMarkdown, insertAINodes, removeAIMarks, removeAINodes, replacePlaceholders, undoAI, withAIBatch };
|