@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/dist/index.umd.js CHANGED
@@ -15725,7 +15725,7 @@
15725
15725
  const t1 = provided.innerRef;
15726
15726
  const t2 = provided.draggableProps;
15727
15727
  const t3 = provided.draggableProps.style;
15728
- const t4 = `${!isDragging ? "hover:bg-surface-accent-50 dark:hover:bg-surface-800 dark:hover:bg-opacity-20" : ""} rounded-md opacity-100`;
15728
+ const t4 = `relative ${!isDragging ? "hover:bg-surface-accent-50 dark:hover:bg-surface-800 dark:hover:bg-opacity-20" : ""} rounded-md opacity-100`;
15729
15729
  let t5;
15730
15730
  if ($[0] !== internalId || $[1] !== updateItemCustomProps) {
15731
15731
  t5 = (props) => updateItemCustomProps(internalId, props);
@@ -16300,7 +16300,8 @@
16300
16300
  formex: formexProp,
16301
16301
  EntityFormActionsComponent = EntityFormActions,
16302
16302
  showDefaultActions = true,
16303
- showEntityPath = true
16303
+ showEntityPath = true,
16304
+ children
16304
16305
  }) {
16305
16306
  if (collection.customId && collection.formAutoSave) {
16306
16307
  console.warn(`The collection ${collection.path} has customId and formAutoSave enabled. This is not supported and formAutoSave will be ignored`);
@@ -16652,7 +16653,7 @@
16652
16653
  }).filter(Boolean) });
16653
16654
  const formRef = React.useRef(null);
16654
16655
  const formView = /* @__PURE__ */ jsxRuntime.jsx(ErrorBoundary, { children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
16655
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full py-2 flex flex-col items-start mt-4 lg:mt-8 mb-8", children: [
16656
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full py-2 flex flex-col items-start my-4 lg:my-6", children: [
16656
16657
  /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { className: "py-4 flex-grow line-clamp-1 " + (collection.hideIdFromForm ? "mb-2" : "mb-0"), variant: "h4", children: title ?? collection.singularName ?? collection.name }),
16657
16658
  showEntityPath && /* @__PURE__ */ jsxRuntime.jsx(ui.Alert, { color: "base", className: "w-full", size: "small", children: /* @__PURE__ */ jsxRuntime.jsxs("code", { className: "text-xs select-all text-text-secondary dark:text-text-secondary-dark", children: [
16658
16659
  entity?.path ?? path,
@@ -16660,6 +16661,7 @@
16660
16661
  entityId
16661
16662
  ] }) })
16662
16663
  ] }),
16664
+ children,
16663
16665
  !collection.hideIdFromForm && /* @__PURE__ */ jsxRuntime.jsx(CustomIdField, { customId: collection.customId, entityId, status, onChange: setEntityId, error: entityIdError, loading: customIdLoading, entity }),
16664
16666
  entityId && formContext && /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-12 flex flex-col gap-8", ref: formRef, children: [
16665
16667
  formFields(),
@@ -18805,7 +18807,7 @@
18805
18807
  });
18806
18808
  }
18807
18809
  };
18808
- return /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(ErrorBoundary, { children: /* @__PURE__ */ jsxRuntime.jsx(PropertyFieldBinding, { ...fieldBindingProps }) }) }, `map-${propertyKey}-${index}`);
18810
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative", children: /* @__PURE__ */ jsxRuntime.jsx(ErrorBoundary, { children: /* @__PURE__ */ jsxRuntime.jsx(PropertyFieldBinding, { ...fieldBindingProps }) }) }, `map-${propertyKey}-${index}`);
18809
18811
  };
18810
18812
  $[14] = autoFocus;
18811
18813
  $[15] = context;