@firecms/core 3.0.0-canary.224 → 3.0.0-canary.225
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 +2 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +5 -5
- package/src/core/EntityEditView.tsx +3 -3
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.225",
|
|
5
5
|
"description": "Awesome Firebase/Firestore-based headless open-source CMS",
|
|
6
6
|
"funding": {
|
|
7
7
|
"url": "https://github.com/sponsors/firecmsco"
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"./package.json": "./package.json"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@firecms/editor": "^3.0.0-canary.
|
|
54
|
-
"@firecms/formex": "^3.0.0-canary.
|
|
55
|
-
"@firecms/ui": "^3.0.0-canary.
|
|
53
|
+
"@firecms/editor": "^3.0.0-canary.225",
|
|
54
|
+
"@firecms/formex": "^3.0.0-canary.225",
|
|
55
|
+
"@firecms/ui": "^3.0.0-canary.225",
|
|
56
56
|
"@hello-pangea/dnd": "^17.0.0",
|
|
57
57
|
"@radix-ui/react-portal": "^1.1.3",
|
|
58
58
|
"clsx": "^2.1.1",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"dist",
|
|
106
106
|
"src"
|
|
107
107
|
],
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "e16b0ebd1efe8103cdc036b7ffda2c90eb813118",
|
|
109
109
|
"publishConfig": {
|
|
110
110
|
"access": "public"
|
|
111
111
|
},
|
|
@@ -315,7 +315,7 @@ export function EntityEditViewInner<M extends Record<string, any>>({
|
|
|
315
315
|
}
|
|
316
316
|
};
|
|
317
317
|
|
|
318
|
-
const entityReadOnlyView = <div
|
|
318
|
+
const entityReadOnlyView = !canEdit && entity ? <div
|
|
319
319
|
className={cls("flex-1 flex flex-row w-full overflow-y-auto justify-center", (canEdit || !mainViewVisible || selectedSecondaryForm) ? "hidden" : "")}>
|
|
320
320
|
<div
|
|
321
321
|
className={cls("relative flex flex-col max-w-4xl lg:max-w-3xl xl:max-w-4xl 2xl:max-w-6xl w-full h-fit")}>
|
|
@@ -324,11 +324,11 @@ export function EntityEditViewInner<M extends Record<string, any>>({
|
|
|
324
324
|
</Typography>
|
|
325
325
|
<EntityView
|
|
326
326
|
className={"px-8 h-full overflow-auto"}
|
|
327
|
-
entity={entity
|
|
327
|
+
entity={entity}
|
|
328
328
|
path={path}
|
|
329
329
|
collection={collection}/>
|
|
330
330
|
</div>
|
|
331
|
-
</div
|
|
331
|
+
</div> : null;
|
|
332
332
|
|
|
333
333
|
const entityView = <EntityForm<M>
|
|
334
334
|
collection={collection}
|