@ctzhian/tiptap 0.5.3 → 0.5.6

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.
@@ -81,7 +81,7 @@ var Reader = function Reader() {
81
81
  }
82
82
  return onUpload;
83
83
  }(),
84
- content: "<p>demo.tsx:12</p><pre data-title=\"\u6570\u91CF\u98DE\u673A\"><code>export { default as darkPalette } from './dark';\nexport { default as lightPalette } from './light';</code></pre><p></p>"
84
+ content: "<ul class=\"bullet-list\" data-type=\"bulletList\"><li><p>\u5F17\u8428\u5361\u91CC\u6253\u98DE\u673A\u4E86</p></li><li><p>\u53D1\u5723\u8BDE\u8282\u4E86\u798F\u514B\u65AF\u7684\u6D6A\u8D39\u6492</p><ul class=\"bullet-list\" data-type=\"bulletList\"><li><p>\u98DE\u673A\u554A\u7684\u6570\u91CF\u5496\u5561\u5C31</p></li><li><p>\u53D1\u51E0\u5723\u8BDE\u5FEB\u4E50\u98DE\u673A\u4E0A\u5927\u6D6A\u8D39</p></li><li><p>\u5927\u5E45\u6492\u89E3\u653E\u770B\u62C9\u4E0A\u98DE\u673A\u554A</p><ul class=\"bullet-list\" data-type=\"bulletList\"><li><p>\u53D1\u6492\u7684\u8DEF\u53E3\u9644\u8FD1\u5FEB\u6492\u4E86\u53D1\u751F</p></li><li><p>\u53D1\u5723\u8BDE\u8282\u53D1\u62C9\u4E0A\u5927\u5206\u4E86\u5361\u4E0A</p></li><li><p>\u53D1\u5927\u6C34\u5FEB\u4E50\u98DE\u673A\u6492\u8DEF\u53E3\u7B49</p></li></ul></li></ul></li></ul><p></p>"
85
85
  }),
86
86
  editor = _useTiptap.editor;
87
87
  return /*#__PURE__*/React.createElement(EditorThemeProvider, {
@@ -89,6 +89,11 @@
89
89
  margin: 0 0.25rem;
90
90
  }
91
91
 
92
+ .tiptap.ProseMirror .react-renderer.node-inlineMath,
93
+ .tiptap.ProseMirror .react-renderer.node-blockMath {
94
+ user-select: none;
95
+ }
96
+
92
97
  .tiptap.ProseMirror .react-renderer.node-blockLink:has(.block-link-wrapper),
93
98
  .tiptap.ProseMirror .react-renderer.node-attachment:has(.block-attachment-wrapper) {
94
99
  display: block;
package/dist/index.css CHANGED
@@ -78,7 +78,7 @@
78
78
  }
79
79
 
80
80
  .tiptap.ProseMirror ul:not([data-type='taskList']) {
81
- list-style: none;
81
+ list-style: disc;
82
82
  }
83
83
 
84
84
  .tiptap.ProseMirror ul:not([data-type='taskList']) li {
@@ -86,24 +86,12 @@
86
86
  padding-left: 0;
87
87
  }
88
88
 
89
- .tiptap.ProseMirror ul:not([data-type='taskList']) li::before {
90
- content: '';
91
- position: absolute;
92
- left: -24px;
93
- top: 50%;
94
- transform: translateY(-50%);
95
- width: 6px;
96
- height: 6px;
97
- background-color: var(--mui-palette-text-primary);
98
- border-radius: 50%;
99
- }
100
-
101
89
  .tiptap.ProseMirror ul:not([data-type='taskList']) ul {
102
- list-style: none;
90
+ list-style: disc;
103
91
  }
104
92
 
105
93
  .tiptap.ProseMirror ul:not([data-type='taskList']) ul ul {
106
- list-style: none;
94
+ list-style: disc;
107
95
  }
108
96
 
109
97
  .tiptap.ProseMirror ul[data-type='taskList'] {
@@ -11,7 +11,7 @@ declare module '@mui/material/Button' {
11
11
  neutral: true;
12
12
  }
13
13
  }
14
- export declare const theme: <T extends string = "dark" | "light">({ mode, colors, theme: customTheme, }: {
14
+ export declare const theme: <T extends string = "light" | "dark">({ mode, colors, theme: customTheme, }: {
15
15
  mode: T;
16
16
  colors?: Record<T, any> | undefined;
17
17
  theme?: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctzhian/tiptap",
3
- "version": "0.5.3",
3
+ "version": "0.5.6",
4
4
  "description": "基于 Tiptap 二次开发的编辑器组件",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",