@blocklet/editor 2.5.0 → 2.5.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.
|
@@ -136,11 +136,9 @@ export default function Field({ name, type, default: defaultVal, required, depre
|
|
|
136
136
|
return (_jsxs(Stack, { className: "x-field", sx: {
|
|
137
137
|
borderBottom: '1px solid',
|
|
138
138
|
borderColor: 'divider',
|
|
139
|
-
pt: 1.25,
|
|
140
|
-
pb: 2.5,
|
|
141
139
|
my: 1.25,
|
|
142
140
|
'& &:last-child': {
|
|
143
141
|
borderBottom: 'none',
|
|
144
142
|
},
|
|
145
|
-
}, children: [_jsxs(Bar, { children: [name && _jsx(Box, { sx: { color: 'primary.main', fontWeight: 500 }, children: name }), !isMobile && metaInfo] }), isMobile && _jsx(Bar, { sx: { mt: 1.25 }, children: metaInfo }), desc && _jsx(Box, { sx: { color: 'text.secondary', mt:
|
|
143
|
+
}, children: [_jsxs(Bar, { children: [name && _jsx(Box, { sx: { color: 'primary.main', fontWeight: 500 }, children: name }), !isMobile && metaInfo] }), isMobile && _jsx(Bar, { sx: { mt: 1.25 }, children: metaInfo }), desc && _jsx(Box, { sx: { color: 'text.secondary', mt: 1, mb: 1.25 }, children: desc }), childDesc && _jsx(FieldDesc, { ...childDesc.properties }), renderChildren()] }));
|
|
146
144
|
}
|
|
@@ -2,12 +2,11 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import StaticEditor from './StaticEditor';
|
|
3
3
|
export default function FieldDesc({ childNodes }) {
|
|
4
4
|
return (_jsx(StaticEditor, { childNodes: childNodes, sx: {
|
|
5
|
+
mt: 1,
|
|
6
|
+
mb: 1.25,
|
|
5
7
|
'&>p:first-child': {
|
|
6
8
|
color: 'text.secondary',
|
|
7
|
-
|
|
8
|
-
marginLeft: 0,
|
|
9
|
-
marginRight: 0,
|
|
10
|
-
marginBottom: 0,
|
|
9
|
+
m: 0,
|
|
11
10
|
},
|
|
12
11
|
} }));
|
|
13
12
|
}
|
|
@@ -6,8 +6,12 @@ export default function FieldGroup({ children = [] }) {
|
|
|
6
6
|
return null;
|
|
7
7
|
}
|
|
8
8
|
return (_jsx(Box, { className: "x-field-group", sx: {
|
|
9
|
+
'& > .x-field:first-child': {
|
|
10
|
+
marginTop: 0,
|
|
11
|
+
},
|
|
9
12
|
'& > .x-field:last-child': {
|
|
10
13
|
borderBottom: 'none',
|
|
14
|
+
marginBottom: 0,
|
|
11
15
|
},
|
|
12
16
|
}, children: children.map((child) => {
|
|
13
17
|
const { properties } = child;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/editor",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.2",
|
|
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.
|
|
28
|
+
"@blocklet/code-editor": "^0.6.1",
|
|
29
29
|
"@blocklet/embed": "^0.2.5",
|
|
30
|
-
"@blocklet/js-sdk": "^1.16.54-beta-
|
|
31
|
-
"@blocklet/pages-kit": "^0.6.
|
|
32
|
-
"@blocklet/pages-kit-runtime": "^0.6.
|
|
30
|
+
"@blocklet/js-sdk": "^1.16.54-beta-20251029-055649-a9143beb",
|
|
31
|
+
"@blocklet/pages-kit": "^0.6.107",
|
|
32
|
+
"@blocklet/pages-kit-runtime": "^0.6.107",
|
|
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.
|
|
76
|
+
"@blocklet/pdf": "2.5.2"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@babel/core": "^7.25.2",
|