@firecms/core 3.0.0-canary.202 → 3.0.0-canary.203

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.202",
4
+ "version": "3.0.0-canary.203",
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.202",
54
- "@firecms/formex": "^3.0.0-canary.202",
55
- "@firecms/ui": "^3.0.0-canary.202",
53
+ "@firecms/editor": "^3.0.0-canary.203",
54
+ "@firecms/formex": "^3.0.0-canary.203",
55
+ "@firecms/ui": "^3.0.0-canary.203",
56
56
  "@hello-pangea/dnd": "^17.0.0",
57
57
  "@radix-ui/react-portal": "^1.1.3",
58
58
  "clsx": "^2.1.1",
@@ -104,7 +104,7 @@
104
104
  "dist",
105
105
  "src"
106
106
  ],
107
- "gitHead": "6e21f87de35d34c8c4fcb15d1e5f1d07b0f69488",
107
+ "gitHead": "bad3e5f8069d21897795c6d5c42f843e9967b66d",
108
108
  "publishConfig": {
109
109
  "access": "public"
110
110
  },
@@ -289,7 +289,7 @@ export function ArrayContainerItem({
289
289
  ref={provided.innerRef}
290
290
  {...provided.draggableProps}
291
291
  style={provided.draggableProps.style}
292
- className={`${
292
+ className={`relative ${
293
293
  !isDragging ? "hover:bg-surface-accent-50 dark:hover:bg-surface-800 dark:hover:bg-opacity-20" : ""
294
294
  } rounded-md opacity-100`}
295
295
  >
@@ -81,6 +81,8 @@ export type EntityFormProps<M extends Record<string, any>> = {
81
81
  showEntityPath?: boolean;
82
82
 
83
83
  EntityFormActionsComponent?: React.FC<EntityFormActionsProps>;
84
+
85
+ children?: React.ReactNode;
84
86
  };
85
87
 
86
88
  export function EntityForm<M extends Record<string, any>>({
@@ -102,7 +104,8 @@ export function EntityForm<M extends Record<string, any>>({
102
104
  formex: formexProp,
103
105
  EntityFormActionsComponent = EntityFormActions,
104
106
  showDefaultActions = true,
105
- showEntityPath = true
107
+ showEntityPath = true,
108
+ children
106
109
  }: EntityFormProps<M>) {
107
110
 
108
111
  if (collection.customId && collection.formAutoSave) {
@@ -571,7 +574,7 @@ export function EntityForm<M extends Record<string, any>>({
571
574
 
572
575
  const formView = <ErrorBoundary>
573
576
  <>
574
- <div className={"w-full py-2 flex flex-col items-start mt-4 lg:mt-8 mb-8"}>
577
+ <div className={"w-full py-2 flex flex-col items-start my-4 lg:my-6"}>
575
578
  <Typography
576
579
  className={"py-4 flex-grow line-clamp-1 " + (collection.hideIdFromForm ? "mb-2" : "mb-0")}
577
580
  variant={"h4"}>
@@ -585,6 +588,8 @@ export function EntityForm<M extends Record<string, any>>({
585
588
  </Alert>}
586
589
  </div>
587
590
 
591
+ {children}
592
+
588
593
  {!collection.hideIdFromForm &&
589
594
  <CustomIdField customId={collection.customId}
590
595
  entityId={entityId}
@@ -75,7 +75,7 @@ export function MapFieldBinding({
75
75
  };
76
76
 
77
77
  return (
78
- <div key={`map-${propertyKey}-${index}`}>
78
+ <div key={`map-${propertyKey}-${index}`} className={"relative"}>
79
79
  <ErrorBoundary>
80
80
  <PropertyFieldBinding
81
81
  {...fieldBindingProps}/>