@platejs/ai 49.1.11 → 49.2.1
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.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +265 -206
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +249 -179
- package/dist/index.mjs.map +1 -1
- package/dist/react/index.d.mts +4 -2
- package/dist/react/index.d.ts +4 -2
- package/dist/react/index.js +71 -68
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +42 -38
- package/dist/react/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { a as BaseAIPlugin, B as BaseAIPluginConfig, i as insertAINodes, r as removeAIMarks, b as removeAINodes } from './BaseAIPlugin-DyivsvyQ.mjs';
|
|
2
2
|
import * as platejs from 'platejs';
|
|
3
|
-
import { SlateEditor, History, TElement, TText, Descendant } from 'platejs';
|
|
3
|
+
import { SlateEditor, History, Path, TElement, TText, Descendant } from 'platejs';
|
|
4
4
|
import { PlateEditor } from 'platejs/react';
|
|
5
5
|
import { DeserializeMdOptions, SerializeMdOptions } from '@platejs/markdown';
|
|
6
6
|
|
|
@@ -23,7 +23,7 @@ interface SteamInsertChunkOptions {
|
|
|
23
23
|
}
|
|
24
24
|
/** @experimental */
|
|
25
25
|
declare function streamInsertChunk(editor: PlateEditor, chunk: string, options?: SteamInsertChunkOptions): void;
|
|
26
|
-
declare const getCurrentBlockPath: (editor: SlateEditor) =>
|
|
26
|
+
declare const getCurrentBlockPath: (editor: SlateEditor) => Path;
|
|
27
27
|
|
|
28
28
|
declare const streamSerializeMd: (editor: PlateEditor, options: SerializeMdOptions, chunk: string) => string;
|
|
29
29
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { a as BaseAIPlugin, B as BaseAIPluginConfig, i as insertAINodes, r as removeAIMarks, b as removeAINodes } from './BaseAIPlugin-DyivsvyQ.js';
|
|
2
2
|
import * as platejs from 'platejs';
|
|
3
|
-
import { SlateEditor, History, TElement, TText, Descendant } from 'platejs';
|
|
3
|
+
import { SlateEditor, History, Path, TElement, TText, Descendant } from 'platejs';
|
|
4
4
|
import { PlateEditor } from 'platejs/react';
|
|
5
5
|
import { DeserializeMdOptions, SerializeMdOptions } from '@platejs/markdown';
|
|
6
6
|
|
|
@@ -23,7 +23,7 @@ interface SteamInsertChunkOptions {
|
|
|
23
23
|
}
|
|
24
24
|
/** @experimental */
|
|
25
25
|
declare function streamInsertChunk(editor: PlateEditor, chunk: string, options?: SteamInsertChunkOptions): void;
|
|
26
|
-
declare const getCurrentBlockPath: (editor: SlateEditor) =>
|
|
26
|
+
declare const getCurrentBlockPath: (editor: SlateEditor) => Path;
|
|
27
27
|
|
|
28
28
|
declare const streamSerializeMd: (editor: PlateEditor, options: SerializeMdOptions, chunk: string) => string;
|
|
29
29
|
|