@ctzhian/tiptap 1.1.0 → 1.1.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.
|
@@ -81,8 +81,7 @@ var SelectionText = function SelectionText(_ref) {
|
|
|
81
81
|
}
|
|
82
82
|
}, /*#__PURE__*/React.createElement(Stack, {
|
|
83
83
|
direction: 'row',
|
|
84
|
-
alignItems: 'center'
|
|
85
|
-
justifyContent: 'space-between'
|
|
84
|
+
alignItems: 'center'
|
|
86
85
|
}, /*#__PURE__*/React.createElement(ToolbarItem, {
|
|
87
86
|
tip: "\u52A0\u7C97",
|
|
88
87
|
icon: /*#__PURE__*/React.createElement(BoldIcon, {
|
|
@@ -1054,7 +1054,10 @@ var CustomDragHandle = function CustomDragHandle(_ref2) {
|
|
|
1054
1054
|
}] : [])),
|
|
1055
1055
|
header: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Stack, {
|
|
1056
1056
|
direction: 'row',
|
|
1057
|
-
flexWrap: 'wrap'
|
|
1057
|
+
flexWrap: 'wrap',
|
|
1058
|
+
sx: {
|
|
1059
|
+
fontSize: 14
|
|
1060
|
+
}
|
|
1058
1061
|
}, /*#__PURE__*/React.createElement(ToolbarItem, {
|
|
1059
1062
|
key: 'insert-line-break-top',
|
|
1060
1063
|
onClick: function onClick() {
|
|
@@ -11,7 +11,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
11
11
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
12
12
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
13
13
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
|
-
import { Box, Popover, Stack
|
|
14
|
+
import { Box, Popover, Stack } from '@mui/material';
|
|
15
15
|
import React from 'react';
|
|
16
16
|
var NestedList = function NestedList(_ref) {
|
|
17
17
|
var list = _ref.list,
|
|
@@ -78,6 +78,7 @@ var NestedList = function NestedList(_ref) {
|
|
|
78
78
|
position: 'relative',
|
|
79
79
|
cursor: 'pointer',
|
|
80
80
|
borderRadius: 1,
|
|
81
|
+
fontSize: 14,
|
|
81
82
|
p: 1,
|
|
82
83
|
':hover': {
|
|
83
84
|
bgcolor: 'action.hover'
|
|
@@ -90,7 +91,7 @@ var NestedList = function NestedList(_ref) {
|
|
|
90
91
|
alignItems: "center",
|
|
91
92
|
gap: 1.5,
|
|
92
93
|
direction: "row"
|
|
93
|
-
}, item.icon, /*#__PURE__*/React.createElement(
|
|
94
|
+
}, item.icon, /*#__PURE__*/React.createElement(Box, {
|
|
94
95
|
sx: _objectSpread({
|
|
95
96
|
flexGrow: 1
|
|
96
97
|
}, item.textSx)
|
|
@@ -126,6 +127,7 @@ var NestedList = function NestedList(_ref) {
|
|
|
126
127
|
sx: _objectSpread({
|
|
127
128
|
cursor: 'pointer',
|
|
128
129
|
borderRadius: 1,
|
|
130
|
+
fontSize: 14,
|
|
129
131
|
p: 1,
|
|
130
132
|
':hover': {
|
|
131
133
|
bgcolor: 'action.hover'
|
|
@@ -138,7 +140,7 @@ var NestedList = function NestedList(_ref) {
|
|
|
138
140
|
alignItems: "center",
|
|
139
141
|
gap: 1.5,
|
|
140
142
|
direction: "row"
|
|
141
|
-
}, child.icon, /*#__PURE__*/React.createElement(
|
|
143
|
+
}, child.icon, /*#__PURE__*/React.createElement(Box, {
|
|
142
144
|
sx: _objectSpread({
|
|
143
145
|
flexGrow: 1
|
|
144
146
|
}, child.textSx)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { UploadFunction } from "../../type";
|
|
2
2
|
export declare const FileHandlerExtension: (props: {
|
|
3
3
|
onUpload?: UploadFunction;
|
|
4
|
-
}) => import("@tiptap/core").Extension<Omit<import("@tiptap/extension-file-handler").FileHandlePluginOptions, "
|
|
4
|
+
}) => import("@tiptap/core").Extension<Omit<import("@tiptap/extension-file-handler").FileHandlePluginOptions, "editor" | "key">, any>;
|