@ctzhian/tiptap 1.6.24 → 1.6.25

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.
@@ -102,7 +102,7 @@ var Reader = function Reader() {
102
102
  }
103
103
  return onUpload;
104
104
  }(),
105
- content: ""
105
+ content: "<blockquote><p></p></blockquote><p></p>"
106
106
  }),
107
107
  editor = _useTiptap.editor;
108
108
  return /*#__PURE__*/React.createElement(EditorThemeProvider, {
@@ -83,7 +83,7 @@ var AlertView = function AlertView(_ref) {
83
83
  marginLeft: (_node$attrs = node.attrs) !== null && _node$attrs !== void 0 && _node$attrs.indent ? node.attrs.indent * 32 : undefined,
84
84
  border: '1px solid',
85
85
  borderColor: variantData.color,
86
- color: attrs.variant === 'default' ? 'var(--mui-palette-text-primary)' : variantData.color,
86
+ // color: attrs.variant === 'default' ? 'var(--mui-palette-text-primary)' : variantData.color,
87
87
  borderRadius: '10px',
88
88
  padding: '12px 16px',
89
89
  lineHeight: 1.625,
@@ -103,7 +103,8 @@ var AlertView = function AlertView(_ref) {
103
103
  sx: {
104
104
  flex: 1,
105
105
  'code': {
106
- bgcolor: attrs.variant === 'default' ? '' : "color-mix(in srgb, ".concat(variantData.color, " 20%, transparent) !important")
106
+ borderColor: attrs.variant === 'default' ? '' : "color-mix(in srgb, ".concat(variantData.color, " 30%, transparent) !important"),
107
+ bgcolor: attrs.variant === 'default' ? '' : "color-mix(in srgb, ".concat(variantData.color, " 10%, transparent) !important")
107
108
  }
108
109
  }
109
110
  }, /*#__PURE__*/React.createElement(NodeViewContent, {
package/dist/index.css CHANGED
@@ -72,11 +72,19 @@
72
72
  position: relative;
73
73
  padding: 8px 16px;
74
74
  margin: 0 0 20px;
75
- border-radius: 10px;
76
- border: 1px solid var(--mui-palette-divider);
77
75
  background-color: var(--mui-palette-background-paper3);
78
76
  }
79
77
 
78
+ .tiptap.ProseMirror blockquote::before {
79
+ content: '';
80
+ position: absolute;
81
+ top: 0;
82
+ left: 0;
83
+ width: 4px;
84
+ height: 100%;
85
+ background-color: var(--mui-palette-action-selected);
86
+ }
87
+
80
88
  /* list */
81
89
  .tiptap.ProseMirror ol,
82
90
  .tiptap.ProseMirror ul {
@@ -188,8 +196,10 @@
188
196
  line-height: 1.625;
189
197
  font-size: inherit;
190
198
  word-break: break-all;
191
- font-weight: 500;
192
- background-color: var(--mui-palette-background-paper2);
199
+ /* font-weight: 500; */
200
+ border: 1px solid;
201
+ border-color: var(--mui-palette-divider);
202
+ background-color: var(--mui-palette-background-paper3);
193
203
  border-radius: 6px;
194
204
  }
195
205
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctzhian/tiptap",
3
- "version": "1.6.24",
3
+ "version": "1.6.25",
4
4
  "description": "基于 Tiptap 二次开发的编辑器组件",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",