@firecms/core 3.0.0-canary.70 → 3.0.0-canary.72
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 +271 -272
- 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 +4 -4
- package/src/components/EntityCollectionView/EntityCollectionView.tsx +2 -2
- package/src/core/EntityEditView.tsx +2 -3
- package/src/form/field_bindings/RepeatFieldBinding.tsx +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firecms/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.0-canary.
|
|
4
|
+
"version": "3.0.0-canary.72",
|
|
5
5
|
"description": "Awesome Firebase/Firestore-based headless open-source CMS",
|
|
6
6
|
"funding": {
|
|
7
7
|
"url": "https://github.com/sponsors/firecmsco"
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"./package.json": "./package.json"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@firecms/formex": "^3.0.0-canary.
|
|
50
|
-
"@firecms/ui": "^3.0.0-canary.
|
|
49
|
+
"@firecms/formex": "^3.0.0-canary.72",
|
|
50
|
+
"@firecms/ui": "^3.0.0-canary.72",
|
|
51
51
|
"@fontsource/jetbrains-mono": "^5.0.20",
|
|
52
52
|
"@hello-pangea/dnd": "^16.6.0",
|
|
53
53
|
"@radix-ui/react-portal": "^1.0.4",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"dist",
|
|
112
112
|
"src"
|
|
113
113
|
],
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "cd3ef9e5f2852f4b77218cf10a4e0f71bb4b750e",
|
|
115
115
|
"publishConfig": {
|
|
116
116
|
"access": "public"
|
|
117
117
|
},
|
|
@@ -368,12 +368,12 @@ export const EntityCollectionView = React.memo(
|
|
|
368
368
|
return resolveProperty({
|
|
369
369
|
propertyKey,
|
|
370
370
|
propertyOrBuilder,
|
|
371
|
-
path:
|
|
371
|
+
path: entity.path,
|
|
372
372
|
values: entity.values,
|
|
373
373
|
entityId: entity.id,
|
|
374
374
|
fields: customizationController.propertyConfigs
|
|
375
375
|
});
|
|
376
|
-
}, [collection.properties, customizationController.propertyConfigs,
|
|
376
|
+
}, [collection.properties, customizationController.propertyConfigs, resolvedCollection.properties]);
|
|
377
377
|
|
|
378
378
|
const displayedColumnIds = useColumnIds(resolvedCollection, true);
|
|
379
379
|
|
|
@@ -988,9 +988,8 @@ export function EntityEditViewInner<M extends Record<string, any>>({
|
|
|
988
988
|
onClick={() => {
|
|
989
989
|
onClose?.();
|
|
990
990
|
return sideDialogContext.close(false);
|
|
991
|
-
}}
|
|
992
|
-
size="
|
|
993
|
-
<CloseIcon/>
|
|
991
|
+
}}>
|
|
992
|
+
<CloseIcon size={"small"}/>
|
|
994
993
|
</IconButton>
|
|
995
994
|
</div>
|
|
996
995
|
|
|
@@ -2,7 +2,7 @@ import React, { useState } from "react";
|
|
|
2
2
|
import { CMSType, FieldProps, ResolvedProperty } from "../../types";
|
|
3
3
|
import { FieldHelperText, FormikArrayContainer, LabelWithIcon } from "../components";
|
|
4
4
|
import { ErrorBoundary } from "../../components";
|
|
5
|
-
import { getIconForProperty } from "../../util";
|
|
5
|
+
import { getDefaultValueFor, getIconForProperty } from "../../util";
|
|
6
6
|
import { PropertyFieldBinding } from "../PropertyFieldBinding";
|
|
7
7
|
import { ExpandablePanel } from "@firecms/ui";
|
|
8
8
|
import { useClearRestoreValue } from "../useClearRestoreValue";
|
|
@@ -75,7 +75,7 @@ export function RepeatFieldBinding<T extends Array<any>>({
|
|
|
75
75
|
onInternalIdAdded={setLastAddedId}
|
|
76
76
|
disabled={isSubmitting || Boolean(property.disabled)}
|
|
77
77
|
includeAddButton={!property.disabled}
|
|
78
|
-
newDefaultEntry={property.of
|
|
78
|
+
newDefaultEntry={getDefaultValueFor(property.of)}/>;
|
|
79
79
|
|
|
80
80
|
const title = (<LabelWithIcon icon={getIconForProperty(property, "small")}
|
|
81
81
|
required={property.validation?.required}
|