@blocklet/editor 2.5.38 → 2.5.40

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.
@@ -165,6 +165,11 @@ const StyledEditorWrapper = styled(Box) `
165
165
  .be-editable h3 + p:has(table) {
166
166
  padding-top: 4px;
167
167
  }
168
+
169
+ /* fix: 文本与 image 间距问题 (docsmith 生成的文档有时候会把文本与 image 放在同一个 p 标签中) */
170
+ .be-editable p span + span.be-image {
171
+ margin-top: 32px;
172
+ }
168
173
  `;
169
174
  export function StyledEditorContent({ ref = undefined, children, ...rest }) {
170
175
  return (_jsxs(StyledEditorWrapper, { ref: ref, ...rest, children: [_jsx(EditorGlobalStyle, {}), children] }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/editor",
3
- "version": "2.5.38",
3
+ "version": "2.5.40",
4
4
  "main": "lib/index.js",
5
5
  "sideEffects": false,
6
6
  "publishConfig": {
@@ -25,11 +25,11 @@
25
25
  ]
26
26
  },
27
27
  "dependencies": {
28
- "@blocklet/code-editor": "^0.7.6",
28
+ "@blocklet/code-editor": "^0.7.7",
29
29
  "@blocklet/embed": "^0.3.3",
30
- "@blocklet/js-sdk": "^1.17.3-beta-20251119-102907-28b69b76",
31
- "@blocklet/pages-kit": "^0.7.20",
32
- "@blocklet/pages-kit-runtime": "^0.7.20",
30
+ "@blocklet/js-sdk": "^1.17.3-beta-20251126-121502-d0926972",
31
+ "@blocklet/pages-kit": "^0.7.26",
32
+ "@blocklet/pages-kit-runtime": "^0.7.26",
33
33
  "@excalidraw/excalidraw": "^0.18.0",
34
34
  "@iconify/iconify": "^3.1.1",
35
35
  "@iconify/icons-tabler": "^1.2.95",
@@ -73,7 +73,7 @@
73
73
  "ufo": "^1.5.4",
74
74
  "url-join": "^4.0.1",
75
75
  "zustand": "^4.5.5",
76
- "@blocklet/pdf": "2.5.38"
76
+ "@blocklet/pdf": "2.5.40"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@babel/core": "^7.25.2",