@ctzhian/tiptap 1.6.20 → 1.6.22

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,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;
@@ -1,5 +1,5 @@
1
1
  import { Extension } from '@tiptap/core';
2
2
  export declare const TableExtension: ({ editable }: {
3
3
  editable: boolean;
4
- }) => (import("@tiptap/core").Node<import("@tiptap/extension-table").TableOptions, any> | import("@tiptap/core").Node<import("@tiptap/extension-table").TableHeaderOptions, any> | Extension<any, any>)[];
4
+ }) => (Extension<any, any> | import("@tiptap/core").Node<import("@tiptap/extension-table").TableOptions, any> | import("@tiptap/core").Node<import("@tiptap/extension-table").TableHeaderOptions, any>)[];
5
5
  export default TableExtension;
package/dist/index.css CHANGED
@@ -398,24 +398,19 @@
398
398
  }
399
399
 
400
400
  /* 表格悬停时显示所有列边框 - 只在编辑模式下生效 */
401
- .tiptap.ProseMirror[contenteditable="true"] table:hover,
402
- .tiptap.ProseMirror[contenteditable="true"] .table-focus table {
401
+ .tiptap.ProseMirror[contenteditable="true"] table {
403
402
  border-left: 1px dotted var(--mui-palette-divider);
404
403
  border-right: 1px dotted var(--mui-palette-divider);
405
404
  }
406
405
 
407
- .tiptap.ProseMirror[contenteditable="true"] table:hover td,
408
- .tiptap.ProseMirror[contenteditable="true"] table:hover th,
409
- .tiptap.ProseMirror[contenteditable="true"] .table-focus td,
410
- .tiptap.ProseMirror[contenteditable="true"] .table-focus th {
406
+ .tiptap.ProseMirror[contenteditable="true"] table td,
407
+ .tiptap.ProseMirror[contenteditable="true"] table th {
411
408
  border-right-color: var(--mui-palette-divider);
412
409
  border-right-style: dotted;
413
410
  }
414
411
 
415
- .tiptap.ProseMirror[contenteditable="true"] table:hover td:last-child,
416
- .tiptap.ProseMirror[contenteditable="true"] table:hover th:last-child,
417
- .tiptap.ProseMirror[contenteditable="true"] .table-focus td:last-child,
418
- .tiptap.ProseMirror[contenteditable="true"] .table-focus th:last-child {
412
+ .tiptap.ProseMirror[contenteditable="true"] table td:last-child,
413
+ .tiptap.ProseMirror[contenteditable="true"] table th:last-child {
419
414
  border-right-color: transparent;
420
415
  }
421
416
 
@@ -455,9 +450,9 @@
455
450
  }
456
451
 
457
452
  /* 选中单元格的边框样式 - 只改变最外圈边框颜色 */
458
- .tiptap.ProseMirror[contenteditable="true"] table .selectedCell {
453
+ /* .tiptap.ProseMirror[contenteditable="true"] table .selectedCell {
459
454
  border-color: var(--mui-palette-primary-main) !important;
460
- }
455
+ } */
461
456
 
462
457
  /* 表格列调整手柄 */
463
458
  .tiptap.ProseMirror[contenteditable="true"] table .column-resize-handle {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctzhian/tiptap",
3
- "version": "1.6.20",
3
+ "version": "1.6.22",
4
4
  "description": "基于 Tiptap 二次开发的编辑器组件",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -81,36 +81,36 @@
81
81
  },
82
82
  "dependencies": {
83
83
  "@floating-ui/dom": "^1.7.2",
84
- "@tiptap/core": "^3.6.5",
85
- "@tiptap/extension-bubble-menu": "^3.6.5",
86
- "@tiptap/extension-code": "^3.6.5",
87
- "@tiptap/extension-code-block-lowlight": "^3.6.5",
88
- "@tiptap/extension-details": "^3.6.5",
89
- "@tiptap/extension-drag-handle-react": "^3.6.5",
90
- "@tiptap/extension-emoji": "^3.6.5",
91
- "@tiptap/extension-file-handler": "^3.6.5",
92
- "@tiptap/extension-highlight": "^3.6.5",
93
- "@tiptap/extension-image": "^3.6.5",
94
- "@tiptap/extension-invisible-characters": "^3.6.5",
95
- "@tiptap/extension-link": "^3.6.5",
96
- "@tiptap/extension-list": "^3.6.5",
97
- "@tiptap/extension-mathematics": "^3.6.5",
98
- "@tiptap/extension-mention": "^3.6.5",
99
- "@tiptap/extension-subscript": "^3.6.5",
100
- "@tiptap/extension-superscript": "^3.6.5",
101
- "@tiptap/extension-table": "^3.6.5",
102
- "@tiptap/extension-table-of-contents": "^3.6.5",
103
- "@tiptap/extension-text-align": "^3.6.5",
104
- "@tiptap/extension-text-style": "^3.6.5",
105
- "@tiptap/extension-unique-id": "^3.6.5",
106
- "@tiptap/extension-youtube": "^3.6.5",
107
- "@tiptap/extensions": "^3.6.5",
108
- "@tiptap/html": "^3.6.5",
109
- "@tiptap/pm": "^3.6.5",
110
- "@tiptap/react": "^3.6.5",
111
- "@tiptap/starter-kit": "^3.6.5",
112
- "@tiptap/static-renderer": "^3.6.5",
113
- "@tiptap/suggestion": "^3.6.5",
84
+ "@tiptap/core": "3.5.3",
85
+ "@tiptap/extension-bubble-menu": "3.5.3",
86
+ "@tiptap/extension-code": "3.5.3",
87
+ "@tiptap/extension-code-block-lowlight": "3.5.3",
88
+ "@tiptap/extension-details": "3.5.3",
89
+ "@tiptap/extension-drag-handle-react": "3.5.3",
90
+ "@tiptap/extension-emoji": "3.5.3",
91
+ "@tiptap/extension-file-handler": "3.5.3",
92
+ "@tiptap/extension-highlight": "3.5.3",
93
+ "@tiptap/extension-image": "3.5.3",
94
+ "@tiptap/extension-invisible-characters": "3.5.3",
95
+ "@tiptap/extension-link": "3.5.3",
96
+ "@tiptap/extension-list": "3.5.3",
97
+ "@tiptap/extension-mathematics": "3.5.3",
98
+ "@tiptap/extension-mention": "3.5.3",
99
+ "@tiptap/extension-subscript": "3.5.3",
100
+ "@tiptap/extension-superscript": "3.5.3",
101
+ "@tiptap/extension-table": "3.5.3",
102
+ "@tiptap/extension-table-of-contents": "3.5.3",
103
+ "@tiptap/extension-text-align": "3.5.3",
104
+ "@tiptap/extension-text-style": "3.5.3",
105
+ "@tiptap/extension-unique-id": "3.5.3",
106
+ "@tiptap/extension-youtube": "3.5.3",
107
+ "@tiptap/extensions": "3.5.3",
108
+ "@tiptap/html": "3.5.3",
109
+ "@tiptap/pm": "3.5.3",
110
+ "@tiptap/react": "3.5.3",
111
+ "@tiptap/starter-kit": "3.5.3",
112
+ "@tiptap/static-renderer": "3.5.3",
113
+ "@tiptap/suggestion": "3.5.3",
114
114
  "diff-match-patch": "^1.0.5",
115
115
  "highlight.js": "^11.11.1",
116
116
  "jszip": "^3.10.1",