rme 0.2.6 → 0.3.0-beta.10
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 +11 -8
- package/dist/index.mjs +723 -603
- package/dist/index.mjs.map +4 -4
- package/package.json +74 -79
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { Compartment, Extension } from '@codemirror/state';
|
|
|
6
6
|
import { EditorView, EditorViewConfig } from '@codemirror/view';
|
|
7
7
|
import { ProsemirrorNode, EditorView as EditorView$1 } from '@rme-sdk/pm';
|
|
8
8
|
import * as react from 'react';
|
|
9
|
-
import react__default, { CSSProperties, ReactNode, MouseEvent, FC } from 'react';
|
|
9
|
+
import react__default, { CSSProperties, ReactNode, MouseEvent, JSX, FC } from 'react';
|
|
10
10
|
import { RemirrorEventListenerProps, Extension as Extension$1, RemirrorManager as RemirrorManager$1, AnyExtension as AnyExtension$1 } from '@rme-sdk/main';
|
|
11
11
|
import { AnyExtension, RemirrorManager, CommandDecoratorMessageProps, CoreIcon } from '@rme-sdk/core';
|
|
12
12
|
import { Node, Schema, NodeType, Mark } from '@rme-sdk/pm/model';
|
|
@@ -122,7 +122,7 @@ interface ITextProps extends react__default.HTMLAttributes<HTMLDivElement> {
|
|
|
122
122
|
style?: CSSProperties;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
declare const Editor: react.
|
|
125
|
+
declare const Editor: react.NamedExoticComponent<EditorProps & react.RefAttributes<EditorRef>>;
|
|
126
126
|
type EditorChangeEventParams = RemirrorEventListenerProps<Extension$1>;
|
|
127
127
|
type EditorChangeHandler = (params: EditorChangeEventParams) => void;
|
|
128
128
|
type EditorRef = {
|
|
@@ -237,6 +237,12 @@ declare const createSourceCodeDelegate: (options?: CreateSourceCodeManagerOption
|
|
|
237
237
|
|
|
238
238
|
declare const _default$1: react__default.NamedExoticComponent<EditorProps>;
|
|
239
239
|
|
|
240
|
+
type ClipboardReadFunction = typeof clipboardRead;
|
|
241
|
+
declare function clipboardRead(): Promise<{
|
|
242
|
+
html: string;
|
|
243
|
+
text: string;
|
|
244
|
+
}>;
|
|
245
|
+
|
|
240
246
|
interface AIOptions {
|
|
241
247
|
defaultSelectProvider?: string;
|
|
242
248
|
supportProviderInfosMap: Record<string, {
|
|
@@ -389,6 +395,7 @@ type ExtensionsOptions = {
|
|
|
389
395
|
ai?: AIOptions;
|
|
390
396
|
customCopyFunction?: CustomCopyFunction;
|
|
391
397
|
overrideShortcutMap?: Record<string, string>;
|
|
398
|
+
clipboardReadFunction?: ClipboardReadFunction;
|
|
392
399
|
};
|
|
393
400
|
declare function extensions(options: ExtensionsOptions): any[];
|
|
394
401
|
|
|
@@ -411,9 +418,7 @@ interface WrapperProps {
|
|
|
411
418
|
*/
|
|
412
419
|
rootLineHeight?: string;
|
|
413
420
|
}
|
|
414
|
-
declare const WysiwygThemeWrapper: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<styled_components_dist_types.Substitute<styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
415
|
-
ref?: ((instance: HTMLDivElement | null) => void) | react.RefObject<HTMLDivElement> | null | undefined;
|
|
416
|
-
}>, WrapperProps>, never>> & string;
|
|
421
|
+
declare const WysiwygThemeWrapper: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<styled_components_dist_types.Substitute<styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, WrapperProps>, never>> & string;
|
|
417
422
|
|
|
418
423
|
interface WarpperProps {
|
|
419
424
|
codeEditor?: boolean;
|
|
@@ -427,9 +432,7 @@ interface WarpperProps {
|
|
|
427
432
|
*/
|
|
428
433
|
rootLineHeight?: string;
|
|
429
434
|
}
|
|
430
|
-
declare const SourceCodeThemeWrapper: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<styled_components_dist_types.Substitute<styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
431
|
-
ref?: ((instance: HTMLDivElement | null) => void) | react.RefObject<HTMLDivElement> | null | undefined;
|
|
432
|
-
}>, WarpperProps>, never>> & string;
|
|
435
|
+
declare const SourceCodeThemeWrapper: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<styled_components_dist_types.Substitute<styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, WarpperProps>, never>> & string;
|
|
433
436
|
|
|
434
437
|
declare const tableSelectorSize = 15;
|
|
435
438
|
declare const common: {
|