@ctzhian/tiptap 1.12.0 → 1.12.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.
- package/dist/Editor/demo.js +1 -1
- package/dist/EditorMarkdown/index.js +1 -1
- package/dist/component/CustomDragHandle/index.js +2 -2
- package/dist/extension/component/CodeBlock/Readonly.js +1 -2
- package/dist/extension/component/CodeBlock/index.js +2 -4
- package/dist/extension/component/Image/Readonly.js +1 -1
- package/dist/extension/component/Image/index.js +1 -1
- package/dist/extension/component/MentionList/index.js +1 -1
- package/dist/extension/component/UploadProgress/index.d.ts +1 -1
- package/dist/extension/node/FileHandler.d.ts +1 -1
- package/dist/index.css +4 -3
- package/dist/themes/dark.d.ts +2 -2
- package/dist/themes/dark.js +2 -2
- package/dist/themes/light.d.ts +2 -2
- package/dist/themes/light.js +2 -2
- package/dist/themes/palette.d.ts +2 -2
- package/package.json +1 -1
package/dist/Editor/demo.js
CHANGED
|
@@ -91,7 +91,7 @@ var EditorMarkdown = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
91
91
|
borderRadius: '4px 4px 0 0',
|
|
92
92
|
fontSize: 12,
|
|
93
93
|
lineHeight: '20px',
|
|
94
|
-
color: 'text.
|
|
94
|
+
color: 'text.tertiary',
|
|
95
95
|
'.md-display-mode-active': {
|
|
96
96
|
color: 'primary.main',
|
|
97
97
|
bgcolor: alpha(theme.palette.primary.main, 0.1)
|
|
@@ -40,7 +40,7 @@ var DragIcon = function DragIcon(_ref) {
|
|
|
40
40
|
display: 'flex',
|
|
41
41
|
alignItems: 'center',
|
|
42
42
|
justifyContent: 'center',
|
|
43
|
-
color: 'text.
|
|
43
|
+
color: 'text.tertiary',
|
|
44
44
|
cursor: 'grab',
|
|
45
45
|
borderColor: 'divider',
|
|
46
46
|
bgcolor: 'background.paper',
|
|
@@ -72,7 +72,7 @@ var AddIcon = function AddIcon(_ref2) {
|
|
|
72
72
|
display: 'flex',
|
|
73
73
|
alignItems: 'center',
|
|
74
74
|
justifyContent: 'center',
|
|
75
|
-
color: 'text.
|
|
75
|
+
color: 'text.tertiary',
|
|
76
76
|
cursor: 'grab',
|
|
77
77
|
borderColor: 'divider',
|
|
78
78
|
bgcolor: 'background.paper',
|
|
@@ -85,10 +85,9 @@ 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
|
-
color: 'text.
|
|
90
|
+
color: 'text.tertiary',
|
|
92
91
|
letterSpacing: '0.01rem'
|
|
93
92
|
}
|
|
94
93
|
}, attrs.title || '代码块'), isHovering && /*#__PURE__*/React.createElement(Stack, {
|
|
@@ -162,7 +162,7 @@ var CodeBlockView = function CodeBlockView(props) {
|
|
|
162
162
|
height: '0.875rem',
|
|
163
163
|
lineHeight: 1,
|
|
164
164
|
fontSize: '0.875rem',
|
|
165
|
-
color: 'text.
|
|
165
|
+
color: 'text.tertiary'
|
|
166
166
|
},
|
|
167
167
|
'& .MuiInputBase-input::placeholder': {
|
|
168
168
|
fontSize: '0.875rem'
|
|
@@ -177,10 +177,9 @@ 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
|
-
color: 'text.
|
|
182
|
+
color: 'text.tertiary',
|
|
184
183
|
letterSpacing: '0.01rem'
|
|
185
184
|
},
|
|
186
185
|
onClick: handleTitleToggle
|
|
@@ -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
|
}
|
|
@@ -491,7 +491,7 @@ var ImageViewWrapper = function ImageViewWrapper(_ref) {
|
|
|
491
491
|
sx: {
|
|
492
492
|
display: 'inline-block',
|
|
493
493
|
fontSize: '0.75rem',
|
|
494
|
-
color: 'text.
|
|
494
|
+
color: 'text.tertiary'
|
|
495
495
|
}
|
|
496
496
|
}, attrs.title))), /*#__PURE__*/React.createElement(FloatingPopover, {
|
|
497
497
|
open: Boolean(anchorEl),
|
|
@@ -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,4 +1,4 @@
|
|
|
1
1
|
import { UploadFunction } from "../../type";
|
|
2
2
|
export declare const FileHandlerExtension: (props: {
|
|
3
3
|
onUpload?: UploadFunction;
|
|
4
|
-
}) => import("@tiptap/core").Extension<Omit<import("@tiptap/extension-file-handler").FileHandlePluginOptions, "
|
|
4
|
+
}) => import("@tiptap/core").Extension<Omit<import("@tiptap/extension-file-handler").FileHandlePluginOptions, "editor" | "key">, any>;
|
package/dist/index.css
CHANGED
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
padding-left: 12px;
|
|
71
71
|
margin: 8px 0;
|
|
72
72
|
line-height: var(--common-row-line-height);
|
|
73
|
-
color: var(--mui-palette-text-
|
|
73
|
+
color: var(--mui-palette-text-tertiary);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.tiptap.ProseMirror blockquote::after {
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
.tiptap.ProseMirror ul[data-type='taskList'] li[data-checked='true']>div {
|
|
161
|
-
color: var(--mui-palette-text-
|
|
161
|
+
color: var(--mui-palette-text-tertiary);
|
|
162
162
|
opacity: 0.7;
|
|
163
163
|
text-decoration: line-through;
|
|
164
164
|
}
|
|
@@ -189,9 +189,10 @@
|
|
|
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
|
-
color: var(--mui-palette-text-
|
|
195
|
+
color: var(--mui-palette-text-tertiary);
|
|
195
196
|
background-color: var(--mui-palette-background-paper3);
|
|
196
197
|
}
|
|
197
198
|
|
package/dist/themes/dark.d.ts
CHANGED
|
@@ -50,11 +50,11 @@ declare const dark: {
|
|
|
50
50
|
text: {
|
|
51
51
|
primary: string;
|
|
52
52
|
secondary: string;
|
|
53
|
-
|
|
53
|
+
tertiary: string;
|
|
54
54
|
disabled: string;
|
|
55
55
|
slave: string;
|
|
56
56
|
inverse: string;
|
|
57
|
-
|
|
57
|
+
inversetertiary: string;
|
|
58
58
|
inverseDisabled: string;
|
|
59
59
|
};
|
|
60
60
|
divider: string;
|
package/dist/themes/dark.js
CHANGED
|
@@ -50,11 +50,11 @@ var dark = {
|
|
|
50
50
|
text: {
|
|
51
51
|
primary: '#fff',
|
|
52
52
|
secondary: 'rgba(255,255,255,0.7)',
|
|
53
|
-
|
|
53
|
+
tertiary: 'rgba(255,255,255,0.5)',
|
|
54
54
|
disabled: 'rgba(255,255,255,0.26)',
|
|
55
55
|
slave: 'rgba(255,255,255,0.05)',
|
|
56
56
|
inverse: '#000000',
|
|
57
|
-
|
|
57
|
+
inversetertiary: 'rgba(0,0,0,0.5)',
|
|
58
58
|
inverseDisabled: 'rgba(0,0,0,0.15)'
|
|
59
59
|
},
|
|
60
60
|
divider: '#505050',
|
package/dist/themes/light.d.ts
CHANGED
|
@@ -50,11 +50,11 @@ declare const light: {
|
|
|
50
50
|
text: {
|
|
51
51
|
primary: string;
|
|
52
52
|
secondary: string;
|
|
53
|
-
|
|
53
|
+
tertiary: string;
|
|
54
54
|
disabled: string;
|
|
55
55
|
slave: string;
|
|
56
56
|
inverse: string;
|
|
57
|
-
|
|
57
|
+
inversetertiary: string;
|
|
58
58
|
inverseDisabled: string;
|
|
59
59
|
};
|
|
60
60
|
divider: string;
|
package/dist/themes/light.js
CHANGED
|
@@ -50,11 +50,11 @@ var light = {
|
|
|
50
50
|
text: {
|
|
51
51
|
primary: '#1f2329',
|
|
52
52
|
secondary: '#3f4441',
|
|
53
|
-
|
|
53
|
+
tertiary: '#646a73',
|
|
54
54
|
disabled: '#6e7781',
|
|
55
55
|
slave: 'rgba(33,34,35,0.3)',
|
|
56
56
|
inverse: '#FFFFFF',
|
|
57
|
-
|
|
57
|
+
inversetertiary: 'rgba(255,255,255,0.5)',
|
|
58
58
|
inverseDisabled: 'rgba(255,255,255,0.15)'
|
|
59
59
|
},
|
|
60
60
|
divider: '#ECEEF1',
|
package/dist/themes/palette.d.ts
CHANGED
|
@@ -58,11 +58,11 @@ export default function themePalette(color: ThemeColor, mode: Omit<ThemeMode, 's
|
|
|
58
58
|
text: {
|
|
59
59
|
primary: string;
|
|
60
60
|
secondary: string;
|
|
61
|
-
|
|
61
|
+
tertiary: string;
|
|
62
62
|
disabled: string;
|
|
63
63
|
slave: string;
|
|
64
64
|
inverse: string;
|
|
65
|
-
|
|
65
|
+
inversetertiary: string;
|
|
66
66
|
inverseDisabled: string;
|
|
67
67
|
};
|
|
68
68
|
background: {
|