@vonaffenfels/slate-editor 1.2.18 → 1.2.23
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vonaffenfels/slate-editor",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.23",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"cssnano": "^5.0.1",
|
|
73
73
|
"escape-html": "^1.0.3"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "f655174e66d666f29f698c19fa9f32984c1408c3",
|
|
76
76
|
"publishConfig": {
|
|
77
77
|
"access": "public"
|
|
78
78
|
}
|
|
@@ -10,7 +10,7 @@ import {CloudinaryContentSelect} from "./Fields/CloudinaryContentSelect";
|
|
|
10
10
|
import {MVP} from "./Fields/MVP";
|
|
11
11
|
import {ColorPicker} from "./Fields/ColorPicker";
|
|
12
12
|
import {RemoteMultiSelect} from "./Fields/RemoteMultiSelect";
|
|
13
|
-
import classNames from "classnames";
|
|
13
|
+
import classNames from "classnames";
|
|
14
14
|
|
|
15
15
|
export const SidebarEditorField = ({
|
|
16
16
|
field,
|
|
@@ -244,6 +244,9 @@ export const SidebarEditorField = ({
|
|
|
244
244
|
"!text-red-500": field?.required && !value,
|
|
245
245
|
})}>{field.name || fieldKey} {field.required ? "*" : ""}</label>
|
|
246
246
|
{inputField}
|
|
247
|
+
{!!field.description && (
|
|
248
|
+
<p className="mt-1 text-xs text-gray-500">{field.description}</p>
|
|
249
|
+
)}
|
|
247
250
|
</div>
|
|
248
251
|
);
|
|
249
252
|
};
|