@firecms/core 3.0.0-canary.237 → 3.0.0-canary.239

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 CHANGED
@@ -14631,7 +14631,7 @@ const LabelWithIcon = forwardRef((t0, ref) => {
14631
14631
  const t1 = small ? "gap-1" : "gap-2";
14632
14632
  let t2;
14633
14633
  if ($[0] !== className || $[1] !== t1) {
14634
- t2 = cls("inline-flex items-center my-0.5", t1, className);
14634
+ t2 = cls("align-middle inline-flex items-center my-0.5", t1, className);
14635
14635
  $[0] = className;
14636
14636
  $[1] = t1;
14637
14637
  $[2] = t2;
@@ -14948,7 +14948,7 @@ function SelectFieldBinding(t0) {
14948
14948
  const t10 = property.validation?.required;
14949
14949
  let t11;
14950
14950
  if ($[13] !== property.name || $[14] !== t10 || $[15] !== t9) {
14951
- t11 = /* @__PURE__ */ jsx(LabelWithIcon, { icon: t9, required: t10, title: property.name, className: "h-8 text-text-secondary dark:text-text-secondary-dark ml-3.5 my-0" });
14951
+ t11 = /* @__PURE__ */ jsx(LabelWithIcon, { icon: t9, required: t10, title: property.name, className: "h-6 text-text-secondary dark:text-text-secondary-dark ml-3.5 my-0" });
14952
14952
  $[13] = property.name;
14953
14953
  $[14] = t10;
14954
14954
  $[15] = t9;
@@ -15080,7 +15080,7 @@ function MultiSelectFieldBinding({
15080
15080
  ] }, enumKey);
15081
15081
  }, [enumValues, setValue, value]);
15082
15082
  return /* @__PURE__ */ jsxs(Fragment, { children: [
15083
- /* @__PURE__ */ jsx(MultiSelect, { className: "w-full mt-2", size, value: validValue ? value.map((v_0) => v_0.toString()) : [], disabled, modalPopover: true, label: /* @__PURE__ */ jsx(LabelWithIconAndTooltip, { propertyKey, icon: getIconForProperty(property, "small"), required: property.validation?.required, title: property.name, className: "h-8 text-text-secondary dark:text-text-secondary-dark ml-3.5" }), onValueChange: (updatedValue) => {
15083
+ /* @__PURE__ */ jsx(MultiSelect, { className: "w-full mt-2", size, value: validValue ? value.map((v_0) => v_0.toString()) : [], disabled, modalPopover: true, label: /* @__PURE__ */ jsx(LabelWithIconAndTooltip, { propertyKey, icon: getIconForProperty(property, "small"), required: property.validation?.required, title: property.name, className: "h-6 text-text-secondary dark:text-text-secondary-dark ml-3.5" }), onValueChange: (updatedValue) => {
15084
15084
  let newValue;
15085
15085
  if (of && of?.dataType === "number") {
15086
15086
  newValue = updatedValue ? updatedValue.map((e_1) => parseFloat(e_1)) : [];
@@ -16135,7 +16135,7 @@ function ReadOnlyFieldBinding(t0) {
16135
16135
  }
16136
16136
  let t1;
16137
16137
  if ($[0] !== minimalistView || $[1] !== property || $[2] !== propertyKey) {
16138
- t1 = !minimalistView && /* @__PURE__ */ jsx(LabelWithIconAndTooltip, { propertyKey, icon: getIconForProperty(property, "small"), required: property.validation?.required, title: property.name, className: "h-8 text-text-secondary dark:text-text-secondary-dark ml-3.5" });
16138
+ t1 = !minimalistView && /* @__PURE__ */ jsx(LabelWithIconAndTooltip, { propertyKey, icon: getIconForProperty(property, "small"), required: property.validation?.required, title: property.name, className: "h-6 text-text-secondary dark:text-text-secondary-dark ml-3.5" });
16139
16139
  $[0] = minimalistView;
16140
16140
  $[1] = property;
16141
16141
  $[2] = propertyKey;
@@ -16257,7 +16257,7 @@ function ReferenceFieldBindingInternal({
16257
16257
  referenceDialogController.open();
16258
16258
  };
16259
16259
  return /* @__PURE__ */ jsxs(Fragment, { children: [
16260
- !minimalistView && /* @__PURE__ */ jsx(LabelWithIconAndTooltip, { propertyKey, icon: getIconForProperty(property, "small"), required: property.validation?.required, title: property.name, className: "h-8 text-text-secondary dark:text-text-secondary-dark ml-3.5" }),
16260
+ !minimalistView && /* @__PURE__ */ jsx(LabelWithIconAndTooltip, { propertyKey, icon: getIconForProperty(property, "small"), required: property.validation?.required, title: property.name, className: "h-6 text-text-secondary dark:text-text-secondary-dark ml-3.5" }),
16261
16261
  !collection && /* @__PURE__ */ jsx(ErrorView, { error: "The specified collection does not exist. Check console" }),
16262
16262
  collection && /* @__PURE__ */ jsxs(Fragment, { children: [
16263
16263
  value && /* @__PURE__ */ jsx(ReferencePreview, { disabled: !property.path, previewProperties: property.previewProperties, hover: !disabled, size, onClick: disabled || isSubmitting ? void 0 : onEntryClick, reference: value, includeEntityLink: property.includeEntityLink, includeId: property.includeId }),
@@ -17950,7 +17950,7 @@ function MarkdownEditorFieldBinding({
17950
17950
  }, ...editorProps });
17951
17951
  if (minimalistView) return editor;
17952
17952
  return /* @__PURE__ */ jsxs(Fragment, { children: [
17953
- /* @__PURE__ */ jsx(LabelWithIconAndTooltip, { propertyKey, icon: getIconForProperty(property, "small"), required: property.validation?.required, title: property.name, className: "h-8 text-text-secondary dark:text-text-secondary-dark ml-3.5" }),
17953
+ /* @__PURE__ */ jsx(LabelWithIconAndTooltip, { propertyKey, icon: getIconForProperty(property, "small"), required: property.validation?.required, title: property.name, className: "h-6 text-text-secondary dark:text-text-secondary-dark ml-3.5" }),
17954
17954
  /* @__PURE__ */ jsx("div", { className: cls("rounded-md", fieldBackgroundMixin, disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin), children: editor }),
17955
17955
  /* @__PURE__ */ jsx(FieldHelperText, { includeDescription, showError, error, property })
17956
17956
  ] });
@@ -18918,7 +18918,7 @@ const EntityCollectionView = React__default.memo(function EntityCollectionView2(
18918
18918
  deleteEntityClicked && /* @__PURE__ */ jsx(DeleteEntityDialog, { entityOrEntitiesToDelete: deleteEntityClicked, path: fullPath, collection, callbacks: collection.callbacks, open: Boolean(deleteEntityClicked), onEntityDelete: internalOnEntityDelete, onMultipleEntitiesDelete: internalOnMultipleEntitiesDelete, onClose: () => setDeleteEntityClicked(void 0) })
18919
18919
  ] });
18920
18920
  }, (a, b) => {
18921
- return equal(a.path, b.path) && equal(a.parentCollectionIds, b.parentCollectionIds) && equal(a.isSubCollection, b.isSubCollection) && equal(a.className, b.className) && equal(a.properties, b.properties) && equal(a.propertiesOrder, b.propertiesOrder) && equal(a.hideIdFromCollection, b.hideIdFromCollection) && equal(a.inlineEditing, b.inlineEditing) && equal(a.selectionEnabled, b.selectionEnabled) && equal(a.selectionController, b.selectionController) && equal(a.Actions, b.Actions) && equal(a.defaultSize, b.defaultSize) && equal(a.initialFilter, b.initialFilter) && equal(a.initialSort, b.initialSort) && equal(a.textSearchEnabled, b.textSearchEnabled) && equal(a.additionalFields, b.additionalFields) && equal(a.sideDialogWidth, b.sideDialogWidth) && equal(a.openEntityMode, b.openEntityMode) && equal(a.forceFilter, b.forceFilter);
18921
+ return equal(a.path, b.path) && equal(a.parentCollectionIds, b.parentCollectionIds) && equal(a.isSubCollection, b.isSubCollection) && equal(a.className, b.className) && equal(a.properties, b.properties) && equal(a.propertiesOrder, b.propertiesOrder) && equal(a.hideIdFromCollection, b.hideIdFromCollection) && equal(a.inlineEditing, b.inlineEditing) && equal(a.selectionEnabled, b.selectionEnabled) && equal(a.selectionController, b.selectionController) && equal(a.Actions, b.Actions) && equal(a.defaultSize, b.defaultSize) && equal(a.initialFilter, b.initialFilter) && equal(a.initialSort, b.initialSort) && equal(a.textSearchEnabled, b.textSearchEnabled) && equal(a.additionalFields, b.additionalFields) && equal(a.sideDialogWidth, b.sideDialogWidth) && equal(a.openEntityMode, b.openEntityMode) && equal(a.exportable, b.exportable) && equal(a.history, b.history) && equal(a.forceFilter, b.forceFilter);
18922
18922
  });
18923
18923
  function EntitiesCount({
18924
18924
  fullPath,
@@ -21477,7 +21477,6 @@ function EntityEditViewInner({
21477
21477
  return null;
21478
21478
  }
21479
21479
  if (!entityId) {
21480
- console.error("INTERNAL: entityId is not defined");
21481
21480
  return null;
21482
21481
  }
21483
21482
  const formexStub = createFormexStub(usedEntity?.values ?? {});
@@ -21619,8 +21618,8 @@ function EntitySidePanel(props) {
21619
21618
  close(true);
21620
21619
  };
21621
21620
  const onUpdate = (params) => {
21622
- {
21623
- onUpdate(params);
21621
+ if (props.onUpdate) {
21622
+ props.onUpdate(params);
21624
21623
  }
21625
21624
  if (params.status !== "existing") {
21626
21625
  sideEntityController.replace({