@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@firecms/core",
3
3
  "type": "module",
4
- "version": "3.0.0-canary.224",
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.224",
54
- "@firecms/formex": "^3.0.0-canary.224",
55
- "@firecms/ui": "^3.0.0-canary.224",
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": "3697a46bef0a8e75b2336043344e02caf0034cbe",
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 as Entity<M>}
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}