@ctzhian/tiptap 1.12.0 → 1.12.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.
@@ -8,7 +8,7 @@ import React from 'react';
8
8
  import "../index.css";
9
9
  var Reader = function Reader() {
10
10
  var _useTiptap = useTiptap({
11
- editable: true,
11
+ editable: false,
12
12
  exclude: ['invisibleCharacters'],
13
13
  onError: function onError(error) {
14
14
  alert(error.message);
@@ -85,7 +85,6 @@ var ReadonlyCodeBlock = function ReadonlyCodeBlock(_ref) {
85
85
  }
86
86
  }, /*#__PURE__*/React.createElement(Box, {
87
87
  sx: {
88
- py: 0.5,
89
88
  flex: 1,
90
89
  fontSize: '0.875rem',
91
90
  color: 'text.auxiliary',
@@ -177,7 +177,6 @@ var CodeBlockView = function CodeBlockView(props) {
177
177
  }
178
178
  })) : /*#__PURE__*/React.createElement(Box, {
179
179
  sx: {
180
- py: 0.5,
181
180
  flex: 1,
182
181
  fontSize: '0.875rem',
183
182
  color: 'text.auxiliary',
@@ -300,7 +299,6 @@ var CodeBlockView = function CodeBlockView(props) {
300
299
  flexItem: true,
301
300
  sx: {
302
301
  height: '1.25rem',
303
- m: 0.5,
304
302
  alignSelf: 'center',
305
303
  borderColor: 'divider'
306
304
  }
@@ -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/dist/index.css CHANGED
@@ -189,6 +189,7 @@
189
189
  .tiptap.ProseMirror pre {
190
190
  position: relative;
191
191
  border: 1px solid;
192
+ line-height: 22px;
192
193
  border-color: var(--mui-palette-divider);
193
194
  border-radius: var(--mui-shape-borderRadius);
194
195
  color: var(--mui-palette-text-auxiliary);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctzhian/tiptap",
3
- "version": "1.12.0",
3
+ "version": "1.12.1",
4
4
  "description": "基于 Tiptap 二次开发的编辑器组件",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",