@ctzhian/tiptap 1.6.14 → 1.6.16
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.
|
@@ -7,8 +7,7 @@ import 'react-photo-view/dist/react-photo-view.css';
|
|
|
7
7
|
var ReadonlyImage = function ReadonlyImage(_ref) {
|
|
8
8
|
var attrs = _ref.attrs;
|
|
9
9
|
return /*#__PURE__*/React.createElement(NodeViewWrapper, {
|
|
10
|
-
className: "image-wrapper"
|
|
11
|
-
contentEditable: false
|
|
10
|
+
className: "image-wrapper"
|
|
12
11
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
13
12
|
component: 'span',
|
|
14
13
|
sx: {
|
|
@@ -223,7 +223,6 @@ var ImageViewWrapper = function ImageViewWrapper(_ref) {
|
|
|
223
223
|
return /*#__PURE__*/React.createElement(NodeViewWrapper, {
|
|
224
224
|
className: "image-wrapper ".concat(selected ? 'ProseMirror-selectednode' : ''),
|
|
225
225
|
as: 'span',
|
|
226
|
-
contentEditable: false,
|
|
227
226
|
'data-drag-handle': false
|
|
228
227
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
229
228
|
component: 'span',
|
|
@@ -5,7 +5,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import { NestedList } from "../../../component";
|
|
8
|
-
import { ArrowDownSLineIcon, AttachmentLineIcon, CheckboxCircleFillIcon, CloseCircleFillIcon, ErrorWarningFillIcon, FormulaIcon, FunctionsIcon, ImageLineIcon, Information2FillIcon, Information2LineIcon, MovieLineIcon, Music2LineIcon, SquareRootIcon, Table2Icon, UploadIcon } from "../../../component/Icons";
|
|
8
|
+
import { ArrowDownSLineIcon, AttachmentLineIcon, CheckboxCircleFillIcon, CloseCircleFillIcon, ErrorWarningFillIcon, FormulaIcon, FunctionsIcon, ImageLineIcon, Information2FillIcon, Information2LineIcon, MovieLineIcon, Music2LineIcon, SquareRootIcon, Table2Icon, UploadIcon, UserSmileFillIcon } from "../../../component/Icons";
|
|
9
9
|
import { ToolbarItem } from "../../../component/Toolbar";
|
|
10
10
|
import TableSizePicker from "../../../component/Toolbar/TableSizePicker";
|
|
11
11
|
import { getShortcutKeyText } from "../../../util";
|
|
@@ -158,6 +158,26 @@ var SlashCommandsList = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
158
158
|
}
|
|
159
159
|
}));
|
|
160
160
|
}
|
|
161
|
+
}, {
|
|
162
|
+
label: '默认 Default',
|
|
163
|
+
key: 'default',
|
|
164
|
+
icon: /*#__PURE__*/React.createElement(UserSmileFillIcon, {
|
|
165
|
+
sx: {
|
|
166
|
+
fontSize: '1rem',
|
|
167
|
+
color: 'text.disabled'
|
|
168
|
+
}
|
|
169
|
+
}),
|
|
170
|
+
onClick: function onClick() {
|
|
171
|
+
var node = items.find(function (it) {
|
|
172
|
+
return it.title === '警告提示';
|
|
173
|
+
});
|
|
174
|
+
if (node) command(_objectSpread(_objectSpread({}, node), {}, {
|
|
175
|
+
attrs: {
|
|
176
|
+
type: 'icon',
|
|
177
|
+
variant: 'default'
|
|
178
|
+
}
|
|
179
|
+
}));
|
|
180
|
+
}
|
|
161
181
|
}]
|
|
162
182
|
}, {
|
|
163
183
|
label: '数学公式',
|