@ctzhian/tiptap 2.2.0 → 2.3.0

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.
@@ -491,13 +491,14 @@ var EditorMarkdown = /*#__PURE__*/forwardRef(function (_ref, ref) {
491
491
  borderColor: 'divider',
492
492
  borderRadius: '0 0 4px 4px'
493
493
  }
494
- }, ['edit', 'split'].includes(displayMode) && /*#__PURE__*/React.createElement(Stack, {
494
+ }, /*#__PURE__*/React.createElement(Stack, {
495
495
  direction: "column",
496
496
  onPaste: handlePaste,
497
497
  onDragOver: handleDragOver,
498
498
  onDragLeave: handleDragLeave,
499
499
  onDrop: handleDrop,
500
500
  sx: {
501
+ display: ['edit', 'split'].includes(displayMode) ? 'flex' : 'none',
501
502
  flex: 1,
502
503
  '.ace_placeholder': _objectSpread({
503
504
  transform: 'scale(1)',
@@ -539,13 +540,14 @@ var EditorMarkdown = /*#__PURE__*/forwardRef(function (_ref, ref) {
539
540
  })), displayMode === 'split' && /*#__PURE__*/React.createElement(Divider, {
540
541
  orientation: "vertical",
541
542
  flexItem: true
542
- }), ['split', 'preview'].includes(displayMode) && /*#__PURE__*/React.createElement(Box, {
543
+ }), /*#__PURE__*/React.createElement(Box, {
543
544
  id: "markdown-preview-container",
544
545
  sx: _objectSpread({
545
546
  overflowY: 'scroll',
546
547
  flex: 1,
547
548
  p: 2,
548
- height: EditorHeight
549
+ height: EditorHeight,
550
+ display: ['split', 'preview'].includes(displayMode) ? 'block' : 'none'
549
551
  }, displayMode === 'preview' && isExpend && {
550
552
  px: '10%'
551
553
  })
@@ -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": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "基于 Tiptap 二次开发的编辑器组件",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -67,7 +67,7 @@
67
67
  "@types/react": "^18.0.0",
68
68
  "@types/react-dom": "^18.0.0",
69
69
  "@umijs/lint": "^4.0.0",
70
- "dumi": "^2.4.13",
70
+ "dumi": "^2.4.21",
71
71
  "eslint": "^8.23.0",
72
72
  "father": "^4.1.0",
73
73
  "husky": "^8.0.1",
@@ -82,38 +82,38 @@
82
82
  "dependencies": {
83
83
  "@floating-ui/dom": "^1.7.2",
84
84
  "@floating-ui/react": "^0.27.16",
85
- "@tiptap/core": "^3.11.0",
86
- "@tiptap/extension-bubble-menu": "^3.11.0",
87
- "@tiptap/extension-code": "^3.11.0",
88
- "@tiptap/extension-code-block-lowlight": "^3.11.0",
89
- "@tiptap/extension-details": "^3.11.0",
90
- "@tiptap/extension-drag-handle-react": "^3.11.0",
91
- "@tiptap/extension-emoji": "^3.11.0",
92
- "@tiptap/extension-file-handler": "^3.11.0",
93
- "@tiptap/extension-highlight": "^3.11.0",
94
- "@tiptap/extension-horizontal-rule": "^3.11.0",
95
- "@tiptap/extension-image": "^3.11.0",
96
- "@tiptap/extension-invisible-characters": "^3.11.0",
97
- "@tiptap/extension-link": "^3.11.0",
98
- "@tiptap/extension-list": "^3.11.0",
99
- "@tiptap/extension-mathematics": "^3.11.0",
100
- "@tiptap/extension-mention": "^3.11.0",
101
- "@tiptap/extension-subscript": "^3.11.0",
102
- "@tiptap/extension-superscript": "^3.11.0",
103
- "@tiptap/extension-table": "^3.11.0",
104
- "@tiptap/extension-table-of-contents": "^3.11.0",
105
- "@tiptap/extension-text-align": "^3.11.0",
106
- "@tiptap/extension-text-style": "^3.11.0",
107
- "@tiptap/extension-unique-id": "^3.11.0",
108
- "@tiptap/extension-youtube": "^3.11.0",
109
- "@tiptap/extensions": "^3.11.0",
110
- "@tiptap/html": "^3.11.0",
111
- "@tiptap/markdown": "^3.11.0",
112
- "@tiptap/pm": "^3.11.0",
113
- "@tiptap/react": "^3.11.0",
114
- "@tiptap/starter-kit": "^3.11.0",
115
- "@tiptap/static-renderer": "^3.11.0",
116
- "@tiptap/suggestion": "^3.11.0",
85
+ "@tiptap/core": "^3.11.1",
86
+ "@tiptap/extension-bubble-menu": "^3.11.1",
87
+ "@tiptap/extension-code": "^3.11.1",
88
+ "@tiptap/extension-code-block-lowlight": "^3.11.1",
89
+ "@tiptap/extension-details": "^3.11.1",
90
+ "@tiptap/extension-drag-handle-react": "^3.11.1",
91
+ "@tiptap/extension-emoji": "^3.11.1",
92
+ "@tiptap/extension-file-handler": "^3.11.1",
93
+ "@tiptap/extension-highlight": "^3.11.1",
94
+ "@tiptap/extension-horizontal-rule": "^3.11.1",
95
+ "@tiptap/extension-image": "^3.11.1",
96
+ "@tiptap/extension-invisible-characters": "^3.11.1",
97
+ "@tiptap/extension-link": "^3.11.1",
98
+ "@tiptap/extension-list": "^3.11.1",
99
+ "@tiptap/extension-mathematics": "^3.11.1",
100
+ "@tiptap/extension-mention": "^3.11.1",
101
+ "@tiptap/extension-subscript": "^3.11.1",
102
+ "@tiptap/extension-superscript": "^3.11.1",
103
+ "@tiptap/extension-table": "^3.11.1",
104
+ "@tiptap/extension-table-of-contents": "^3.11.1",
105
+ "@tiptap/extension-text-align": "^3.11.1",
106
+ "@tiptap/extension-text-style": "^3.11.1",
107
+ "@tiptap/extension-unique-id": "^3.11.1",
108
+ "@tiptap/extension-youtube": "^3.11.1",
109
+ "@tiptap/extensions": "^3.11.1",
110
+ "@tiptap/html": "^3.11.1",
111
+ "@tiptap/markdown": "^3.11.1",
112
+ "@tiptap/pm": "^3.11.1",
113
+ "@tiptap/react": "^3.11.1",
114
+ "@tiptap/starter-kit": "^3.11.1",
115
+ "@tiptap/static-renderer": "^3.11.1",
116
+ "@tiptap/suggestion": "^3.11.1",
117
117
  "ace-builds": "^1.43.4",
118
118
  "core-js": "^3.46.0",
119
119
  "diff-match-patch": "^1.0.5",