@firecms/collection_editor 3.0.0-canary.281 → 3.0.0-canary.283
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/dist/index.es.js +5 -5
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +5 -5
- package/dist/index.umd.js.map +1 -1
- package/package.json +8 -8
- package/src/ui/collection_editor/PropertyEditView.tsx +2 -1
- package/src/ui/collection_editor/PropertyFieldPreview.tsx +3 -3
- package/src/ui/collection_editor/utils/update_property_for_widget.ts +1 -1
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firecms/collection_editor",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.0-canary.
|
|
4
|
+
"version": "3.0.0-canary.283",
|
|
5
5
|
"main": "./dist/index.umd.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"source": "src/index.ts",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@firecms/data_export": "^3.0.0-canary.
|
|
11
|
-
"@firecms/data_import": "^3.0.0-canary.
|
|
12
|
-
"@firecms/data_import_export": "^3.0.0-canary.
|
|
13
|
-
"@firecms/formex": "^3.0.0-canary.
|
|
14
|
-
"@firecms/schema_inference": "^3.0.0-canary.
|
|
15
|
-
"@firecms/ui": "^3.0.0-canary.
|
|
10
|
+
"@firecms/data_export": "^3.0.0-canary.283",
|
|
11
|
+
"@firecms/data_import": "^3.0.0-canary.283",
|
|
12
|
+
"@firecms/data_import_export": "^3.0.0-canary.283",
|
|
13
|
+
"@firecms/formex": "^3.0.0-canary.283",
|
|
14
|
+
"@firecms/schema_inference": "^3.0.0-canary.283",
|
|
15
|
+
"@firecms/ui": "^3.0.0-canary.283",
|
|
16
16
|
"json5": "^2.2.3",
|
|
17
17
|
"prism-react-renderer": "^2.4.1"
|
|
18
18
|
},
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"publishConfig": {
|
|
70
70
|
"access": "public"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "521154e8ee22424451421052cbc22fa6ba5b4d4d"
|
|
73
73
|
}
|
|
@@ -605,9 +605,9 @@ const WIDGET_TYPE_MAP: Record<PropertyConfigId, string> = {
|
|
|
605
605
|
url: "Text",
|
|
606
606
|
email: "Text",
|
|
607
607
|
switch: "Boolean",
|
|
608
|
+
user_select: "Users",
|
|
608
609
|
select: "Select",
|
|
609
610
|
multi_select: "Select",
|
|
610
|
-
user_select: "Select",
|
|
611
611
|
number_input: "Number",
|
|
612
612
|
number_select: "Select",
|
|
613
613
|
multi_number_select: "Select",
|
|
@@ -787,6 +787,7 @@ export function WidgetSelectViewItem({
|
|
|
787
787
|
<WarningIcon size="smallest" className={"w-4"}/>
|
|
788
788
|
</Tooltip>}
|
|
789
789
|
<Typography
|
|
790
|
+
variant={"label"}
|
|
790
791
|
color={shouldWarnChangingDataType ? "secondary" : undefined}>{propertyConfig.name}</Typography>
|
|
791
792
|
</div>
|
|
792
793
|
|
|
@@ -69,7 +69,7 @@ export function PropertyFieldPreview({
|
|
|
69
69
|
|
|
70
70
|
{includeName &&
|
|
71
71
|
<ErrorBoundary>
|
|
72
|
-
<Typography variant="
|
|
72
|
+
<Typography variant="label"
|
|
73
73
|
component="span"
|
|
74
74
|
className="flex-grow pr-2">
|
|
75
75
|
{property.name
|
|
@@ -131,8 +131,8 @@ export function NonEditablePropertyPreview({
|
|
|
131
131
|
<div className={"relative m-4"}>
|
|
132
132
|
{propertyConfig && <PropertyConfigBadge propertyConfig={propertyConfig}/>}
|
|
133
133
|
{!propertyConfig && <div
|
|
134
|
-
className={"h-8 w-8
|
|
135
|
-
<FunctionsIcon color={"inherit"} size={"
|
|
134
|
+
className={"h-8 w-8 flex items-center justify-center rounded-full shadow text-white bg-surface-500"}>
|
|
135
|
+
<FunctionsIcon color={"inherit"} size={"small"}/>
|
|
136
136
|
</div>}
|
|
137
137
|
<DoNotDisturbOnIcon color={"disabled"} size={"small"} className={"absolute -right-2 -top-2"}/>
|
|
138
138
|
</div>
|
|
@@ -36,7 +36,7 @@ export function updatePropertyFromWidget(propertyData: any,
|
|
|
36
36
|
propertyData,
|
|
37
37
|
{
|
|
38
38
|
dataType: "string",
|
|
39
|
-
propertyConfig: "
|
|
39
|
+
propertyConfig: "user_select",
|
|
40
40
|
editable: propertyData.editable !== undefined ? propertyData.editable : true,
|
|
41
41
|
storage: undefined,
|
|
42
42
|
multiline: undefined,
|