@firecms/core 3.0.0-canary.60 → 3.0.0-canary.61
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 +86 -83
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -4
- package/src/form/EntityForm.tsx +6 -7
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.61",
|
|
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.61",
|
|
50
|
+
"@firecms/ui": "^3.0.0-canary.61",
|
|
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": "bd4ff11fc59df78b8967e20c2229afab86e35d81",
|
|
115
115
|
"publishConfig": {
|
|
116
116
|
"access": "public"
|
|
117
117
|
},
|
package/src/form/EntityForm.tsx
CHANGED
|
@@ -132,13 +132,12 @@ export type EntityFormSaveParams<M extends Record<string, any>> = {
|
|
|
132
132
|
* @constructor
|
|
133
133
|
* @group Components
|
|
134
134
|
*/
|
|
135
|
-
export const EntityForm = EntityFormInternal
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
// }) as typeof EntityFormInternal;
|
|
135
|
+
export const EntityForm = React.memo<EntityFormProps<any>>(EntityFormInternal,
|
|
136
|
+
(a: EntityFormProps<any>, b: EntityFormProps<any>) => {
|
|
137
|
+
return a.status === b.status &&
|
|
138
|
+
a.path === b.path &&
|
|
139
|
+
equal(a.entity?.values, b.entity?.values);
|
|
140
|
+
}) as typeof EntityFormInternal;
|
|
142
141
|
|
|
143
142
|
function getDataSourceEntityValues<M extends object>(initialResolvedCollection: ResolvedEntityCollection,
|
|
144
143
|
status: "new" | "existing" | "copy",
|