@ctzhian/tiptap 1.12.1 → 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/EditorMarkdown/index.js +1 -1
- package/dist/component/CustomDragHandle/index.js +2 -2
- package/dist/extension/component/CodeBlock/Readonly.js +1 -1
- package/dist/extension/component/CodeBlock/index.js +2 -2
- 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/node/FileHandler.d.ts +1 -1
- package/dist/index.css +3 -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
|
@@ -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',
|
|
@@ -87,7 +87,7 @@ var ReadonlyCodeBlock = function ReadonlyCodeBlock(_ref) {
|
|
|
87
87
|
sx: {
|
|
88
88
|
flex: 1,
|
|
89
89
|
fontSize: '0.875rem',
|
|
90
|
-
color: 'text.
|
|
90
|
+
color: 'text.tertiary',
|
|
91
91
|
letterSpacing: '0.01rem'
|
|
92
92
|
}
|
|
93
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'
|
|
@@ -179,7 +179,7 @@ var CodeBlockView = function CodeBlockView(props) {
|
|
|
179
179
|
sx: {
|
|
180
180
|
flex: 1,
|
|
181
181
|
fontSize: '0.875rem',
|
|
182
|
-
color: 'text.
|
|
182
|
+
color: 'text.tertiary',
|
|
183
183
|
letterSpacing: '0.01rem'
|
|
184
184
|
},
|
|
185
185
|
onClick: handleTitleToggle
|
|
@@ -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),
|
|
@@ -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
|
}
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
line-height: 22px;
|
|
193
193
|
border-color: var(--mui-palette-divider);
|
|
194
194
|
border-radius: var(--mui-shape-borderRadius);
|
|
195
|
-
color: var(--mui-palette-text-
|
|
195
|
+
color: var(--mui-palette-text-tertiary);
|
|
196
196
|
background-color: var(--mui-palette-background-paper3);
|
|
197
197
|
}
|
|
198
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: {
|