@ctzhian/tiptap 1.1.0 → 1.1.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.
|
@@ -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,
|
|
@@ -90,7 +90,7 @@ var NestedList = function NestedList(_ref) {
|
|
|
90
90
|
alignItems: "center",
|
|
91
91
|
gap: 1.5,
|
|
92
92
|
direction: "row"
|
|
93
|
-
}, item.icon, /*#__PURE__*/React.createElement(
|
|
93
|
+
}, item.icon, /*#__PURE__*/React.createElement(Box, {
|
|
94
94
|
sx: _objectSpread({
|
|
95
95
|
flexGrow: 1
|
|
96
96
|
}, item.textSx)
|
|
@@ -138,7 +138,7 @@ var NestedList = function NestedList(_ref) {
|
|
|
138
138
|
alignItems: "center",
|
|
139
139
|
gap: 1.5,
|
|
140
140
|
direction: "row"
|
|
141
|
-
}, child.icon, /*#__PURE__*/React.createElement(
|
|
141
|
+
}, child.icon, /*#__PURE__*/React.createElement(Box, {
|
|
142
142
|
sx: _objectSpread({
|
|
143
143
|
flexGrow: 1
|
|
144
144
|
}, 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>;
|