@ctzhian/tiptap 1.7.5-beta.1 → 1.7.5-beta.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.
@@ -97,9 +97,10 @@ var CustomBubbleMenu = function CustomBubbleMenu(_ref) {
97
97
  }, /*#__PURE__*/React.createElement(Stack, {
98
98
  direction: 'row',
99
99
  alignItems: 'center'
100
- }, /*#__PURE__*/React.createElement(ToolbarItem, {
101
- tip: "\u52A0\u7C97",
102
- shortcutKey: ['ctrl', 'B'],
100
+ }, /*#__PURE__*/React.createElement(ToolbarItem
101
+ // tip='加粗'
102
+ // shortcutKey={['ctrl', 'B']}
103
+ , {
103
104
  icon: /*#__PURE__*/React.createElement(BoldIcon, {
104
105
  sx: {
105
106
  fontSize: '1rem'
@@ -109,9 +110,10 @@ var CustomBubbleMenu = function CustomBubbleMenu(_ref) {
109
110
  return editor.chain().focus().toggleBold().run();
110
111
  },
111
112
  className: isBold ? "tool-active" : ""
112
- }), /*#__PURE__*/React.createElement(ToolbarItem, {
113
- tip: "\u659C\u4F53",
114
- shortcutKey: ['ctrl', 'I'],
113
+ }), /*#__PURE__*/React.createElement(ToolbarItem
114
+ // tip='斜体'
115
+ // shortcutKey={['ctrl', 'I']}
116
+ , {
115
117
  icon: /*#__PURE__*/React.createElement(ItalicIcon, {
116
118
  sx: {
117
119
  fontSize: '1rem'
@@ -121,9 +123,10 @@ var CustomBubbleMenu = function CustomBubbleMenu(_ref) {
121
123
  return editor.chain().focus().toggleItalic().run();
122
124
  },
123
125
  className: isItalic ? "tool-active" : ""
124
- }), /*#__PURE__*/React.createElement(ToolbarItem, {
125
- tip: "\u5220\u9664\u7EBF",
126
- shortcutKey: ['ctrl', 'shift', 'S'],
126
+ }), /*#__PURE__*/React.createElement(ToolbarItem
127
+ // tip='删除线'
128
+ // shortcutKey={['ctrl', 'shift', 'S']}
129
+ , {
127
130
  icon: /*#__PURE__*/React.createElement(StrikethroughIcon, {
128
131
  sx: {
129
132
  fontSize: '1rem'
@@ -133,9 +136,10 @@ var CustomBubbleMenu = function CustomBubbleMenu(_ref) {
133
136
  return editor.chain().focus().toggleStrike().run();
134
137
  },
135
138
  className: isStrike ? "tool-active" : ""
136
- }), /*#__PURE__*/React.createElement(ToolbarItem, {
137
- tip: "\u4E0B\u5212\u7EBF",
138
- shortcutKey: ['ctrl', 'U'],
139
+ }), /*#__PURE__*/React.createElement(ToolbarItem
140
+ // tip='下划线'
141
+ // shortcutKey={['ctrl', 'U']}
142
+ , {
139
143
  icon: /*#__PURE__*/React.createElement(UnderlineIcon, {
140
144
  sx: {
141
145
  fontSize: '1rem'
@@ -145,9 +149,10 @@ var CustomBubbleMenu = function CustomBubbleMenu(_ref) {
145
149
  return editor.chain().focus().toggleUnderline().run();
146
150
  },
147
151
  className: isUnderline ? "tool-active" : ""
148
- }), /*#__PURE__*/React.createElement(ToolbarItem, {
149
- tip: "\u9AD8\u4EAE",
150
- shortcutKey: ['ctrl', 'shift', 'H'],
152
+ }), /*#__PURE__*/React.createElement(ToolbarItem
153
+ // tip='高亮'
154
+ // shortcutKey={['ctrl', 'shift', 'H']}
155
+ , {
151
156
  icon: /*#__PURE__*/React.createElement(MarkPenLineIcon, {
152
157
  sx: {
153
158
  fontSize: '1rem'
@@ -157,9 +162,10 @@ var CustomBubbleMenu = function CustomBubbleMenu(_ref) {
157
162
  return editor.chain().focus().toggleHighlight().run();
158
163
  },
159
164
  className: isHighlight ? "tool-active" : ""
160
- }), /*#__PURE__*/React.createElement(ToolbarItem, {
161
- tip: "\u884C\u5185\u4EE3\u7801",
162
- shortcutKey: ['ctrl', 'E'],
165
+ }), /*#__PURE__*/React.createElement(ToolbarItem
166
+ // tip='行内代码'
167
+ // shortcutKey={['ctrl', 'E']}
168
+ , {
163
169
  icon: /*#__PURE__*/React.createElement(CodeLineIcon, {
164
170
  sx: {
165
171
  fontSize: '1rem'
@@ -169,8 +175,9 @@ var CustomBubbleMenu = function CustomBubbleMenu(_ref) {
169
175
  return editor.chain().focus().toggleCode().run();
170
176
  },
171
177
  className: isCode ? "tool-active" : ""
172
- }), /*#__PURE__*/React.createElement(ToolbarItem, {
173
- tip: "\u6587\u672C\u683C\u5F0F\u5316",
178
+ }), /*#__PURE__*/React.createElement(ToolbarItem
179
+ // tip='文本格式化'
180
+ , {
174
181
  icon: /*#__PURE__*/React.createElement(EraserLineIcon, {
175
182
  sx: {
176
183
  fontSize: '1rem'
@@ -180,8 +187,9 @@ var CustomBubbleMenu = function CustomBubbleMenu(_ref) {
180
187
  return editor.chain().focus().unsetAllMarks().run();
181
188
  },
182
189
  disabled: !hasAnyMarks
183
- }), /*#__PURE__*/React.createElement(ToolbarItem, {
184
- tip: "\u63D2\u5165\u94FE\u63A5",
190
+ }), /*#__PURE__*/React.createElement(ToolbarItem
191
+ // tip='插入链接'
192
+ , {
185
193
  icon: /*#__PURE__*/React.createElement(LinkIcon, {
186
194
  sx: {
187
195
  fontSize: '1rem'
@@ -7,6 +7,6 @@ export interface UploadProgressAttributes {
7
7
  tempId: string;
8
8
  }
9
9
  export declare const getFileIcon: (fileType: string) => React.JSX.Element;
10
- export declare const getFileTypeText: (fileType: string) => "图片" | "视频" | "音频" | "文件";
10
+ export declare const getFileTypeText: (fileType: string) => "图片" | "文件" | "音频" | "视频";
11
11
  declare const UploadProgressView: React.FC<NodeViewProps>;
12
12
  export default UploadProgressView;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctzhian/tiptap",
3
- "version": "1.7.5-beta.1",
3
+ "version": "1.7.5-beta.2",
4
4
  "description": "基于 Tiptap 二次开发的编辑器组件",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",