rme 0.1.11 → 0.1.13
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.ts +15 -4
- package/dist/index.mjs +5669 -5354
- package/dist/index.mjs.map +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -156,6 +156,18 @@ declare const createSourceCodeDelegate: (options?: CreateSourceCodeManagerOption
|
|
|
156
156
|
|
|
157
157
|
declare const _default$1: react__default.NamedExoticComponent<EditorProps>;
|
|
158
158
|
|
|
159
|
+
interface AIOptions {
|
|
160
|
+
supportProviderInfosMap: Record<string, {
|
|
161
|
+
models: string[];
|
|
162
|
+
}>;
|
|
163
|
+
generateText: (options: {
|
|
164
|
+
provider: string;
|
|
165
|
+
model: string;
|
|
166
|
+
prompt: string;
|
|
167
|
+
temperature?: number;
|
|
168
|
+
}) => Promise<string> | null;
|
|
169
|
+
}
|
|
170
|
+
|
|
159
171
|
type MarkdownItToken = string;
|
|
160
172
|
declare enum ParserRuleType {
|
|
161
173
|
text = 1,
|
|
@@ -290,15 +302,14 @@ declare class MarkdownSerializer {
|
|
|
290
302
|
type ExtensionsOptions = {
|
|
291
303
|
disableAllBuildInShortcuts?: boolean;
|
|
292
304
|
handleViewImgSrcUrl?: (src: string) => Promise<string>;
|
|
305
|
+
ai?: AIOptions;
|
|
293
306
|
};
|
|
294
307
|
declare function extensions(options: ExtensionsOptions): any[];
|
|
295
308
|
|
|
296
309
|
declare function buildMarkdownParser<Extension extends AnyExtension$1>(manager: RemirrorManager<Extension>): MarkdownParser;
|
|
297
310
|
declare function buildMarkdownSerializer<Extension extends AnyExtension$1>(manager: RemirrorManager<Extension>): MarkdownSerializer;
|
|
298
|
-
type CreateWysiwygDelegateOptions =
|
|
299
|
-
|
|
300
|
-
};
|
|
301
|
-
declare const createWysiwygDelegate: ({ handleViewImgSrcUrl, }?: CreateWysiwygDelegateOptions) => EditorDelegate<any>;
|
|
311
|
+
type CreateWysiwygDelegateOptions = ExtensionsOptions;
|
|
312
|
+
declare const createWysiwygDelegate: (options?: CreateWysiwygDelegateOptions) => EditorDelegate<any>;
|
|
302
313
|
|
|
303
314
|
declare const _default: react.NamedExoticComponent<EditorProps>;
|
|
304
315
|
|