@lobehub/editor 1.31.0 → 1.31.2
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.
|
@@ -54,7 +54,7 @@ var ReactPlainText = /*#__PURE__*/memo(function (_ref) {
|
|
|
54
54
|
var _theme$fontSize = theme.fontSize,
|
|
55
55
|
fontSize = _theme$fontSize === void 0 ? isChat ? 14 : 16 : _theme$fontSize,
|
|
56
56
|
_theme$headerMultiple = theme.headerMultiple,
|
|
57
|
-
headerMultiple = _theme$headerMultiple === void 0 ? isChat ? 0.25 :
|
|
57
|
+
headerMultiple = _theme$headerMultiple === void 0 ? isChat ? 0.25 : 0.6 : _theme$headerMultiple,
|
|
58
58
|
_theme$lineHeight = theme.lineHeight,
|
|
59
59
|
lineHeight = _theme$lineHeight === void 0 ? isChat ? 1.6 : 1.8 : _theme$lineHeight,
|
|
60
60
|
_theme$marginMultiple = theme.marginMultiple,
|
|
@@ -7,7 +7,7 @@ export type EditorPlugin = FC<any> | [FC<any>, Record<string, any>];
|
|
|
7
7
|
interface MentionOption extends Partial<ReactSlashOptionProps> {
|
|
8
8
|
markdownWriter?: ReactMentionPluginProps['markdownWriter'];
|
|
9
9
|
}
|
|
10
|
-
export interface EditorProps extends Partial<ReactEditorContentProps>, Omit<ReactPlainTextProps, '
|
|
10
|
+
export interface EditorProps extends Partial<ReactEditorContentProps>, Omit<ReactPlainTextProps, 'children'> {
|
|
11
11
|
autoFocus?: boolean;
|
|
12
12
|
children?: ReactNode;
|
|
13
13
|
className?: string;
|
package/package.json
CHANGED