@firecms/core 3.0.0-canary.100 → 3.0.0-canary.101

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.100",
4
+ "version": "3.0.0-canary.101",
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.100",
50
- "@firecms/ui": "^3.0.0-canary.100",
49
+ "@firecms/formex": "^3.0.0-canary.101",
50
+ "@firecms/ui": "^3.0.0-canary.101",
51
51
  "@hello-pangea/dnd": "^16.6.0",
52
52
  "@radix-ui/react-portal": "^1.1.1",
53
53
  "clsx": "^2.1.1",
@@ -100,7 +100,7 @@
100
100
  "dist",
101
101
  "src"
102
102
  ],
103
- "gitHead": "d9aa5c0fdd90087fedf3960456bd6a8935276c38",
103
+ "gitHead": "dcba40c7887018f454afbdc9d201f7b8706d38dd",
104
104
  "publishConfig": {
105
105
  "access": "public"
106
106
  },
@@ -79,6 +79,7 @@ export const Scaffold = React.memo<PropsWithChildren<ScaffoldProps>>(
79
79
 
80
80
  const computedDrawerOpen: boolean = drawerOpen || Boolean(largeLayout && autoOpenDrawer && onHover);
81
81
 
82
+ const hasAppBar = Boolean(appBarChildren);
82
83
  return (
83
84
  <AppContext.Provider value={{
84
85
  logo,
@@ -115,9 +116,11 @@ export const Scaffold = React.memo<PropsWithChildren<ScaffoldProps>>(
115
116
 
116
117
  <main
117
118
  className="flex flex-col flex-grow overflow-auto">
118
- <DrawerHeader/>
119
+ {hasAppBar && <DrawerHeader/>}
119
120
  <div
120
- className={cls(defaultBorderMixin, "flex-grow overflow-auto lg:m-0 lg:mx-4 lg:mb-4 lg:rounded-lg lg:border lg:border-solid m-0 mt-1")}>
121
+ className={cls(defaultBorderMixin, "flex-grow overflow-auto lg:m-0 lg:mx-4 lg:mb-4 lg:rounded-lg lg:border lg:border-solid m-0 mt-1", {
122
+ "lg:mt-4": !hasAppBar
123
+ })}>
121
124
 
122
125
  <ErrorBoundary>
123
126
  {otherChildren}