@firecms/core 3.0.0-rc.3 → 3.0.0-rc.4

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
@@ -16469,7 +16469,7 @@
16469
16469
  /* @__PURE__ */ jsxRuntime.jsx("div", { id: `form_${path}`, className: ui.cls("relative flex flex-row max-w-4xl lg:max-w-3xl xl:max-w-4xl 2xl:max-w-6xl w-full h-fit"), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cls("flex flex-col w-full pt-12 pb-16 px-4 sm:px-8 md:px-10"), children: [
16470
16470
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row gap-4 self-end sticky top-4 z-10", children: [
16471
16471
  manualApplyLocalChanges && hasLocalChanges && /* @__PURE__ */ jsxRuntime.jsx(LocalChangesMenu, { cacheKey: status === "new" || status === "copy" ? path + "#new" : path + "/" + entityId, properties: resolvedCollection.properties, localChangesData, formex: formex$1, onClearLocalChanges: () => setLocalChangesCleared(true) }),
16472
- formex$1.dirty ? /* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { title: "There are local unsaved changes", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Chip, { size: "small", className: "py-1", colorScheme: "orangeDarker", children: /* @__PURE__ */ jsxRuntime.jsx(ui.EditIcon, { size: "smallest" }) }) }) : /* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { title: "The current form is in sync with the database", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Chip, { size: "small", className: "py-1", children: /* @__PURE__ */ jsxRuntime.jsx(ui.CheckIcon, { size: "smallest" }) }) })
16472
+ formex$1.dirty ? /* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { title: "This form has been modified", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Chip, { size: "small", className: "py-1", colorScheme: "orangeDarker", children: /* @__PURE__ */ jsxRuntime.jsx(ui.EditIcon, { size: "smallest" }) }) }) : /* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { title: "The current form is in sync with the database", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Chip, { size: "small", className: "py-1", children: /* @__PURE__ */ jsxRuntime.jsx(ui.CheckIcon, { size: "smallest" }) }) })
16473
16473
  ] }),
16474
16474
  formView
16475
16475
  ] }) }),
@@ -18634,7 +18634,7 @@
18634
18634
  return false;
18635
18635
  });
18636
18636
  function PropertyFieldBindingInternal(t0) {
18637
- const $ = reactCompilerRuntime.c(18);
18637
+ const $ = reactCompilerRuntime.c(19);
18638
18638
  const {
18639
18639
  propertyKey,
18640
18640
  property,
@@ -18643,6 +18643,7 @@
18643
18643
  underlyingValueHasChanged,
18644
18644
  disabled: disabledProp,
18645
18645
  partOfArray,
18646
+ partOfBlock,
18646
18647
  minimalistView,
18647
18648
  autoFocus,
18648
18649
  index,
@@ -18651,15 +18652,8 @@
18651
18652
  } = t0;
18652
18653
  const authController = useAuthController();
18653
18654
  const customizationController = useCustomizationController();
18654
- if (propertyKey === "created_by") {
18655
- console.log("Rendering field for created_by", {
18656
- propertyKey,
18657
- property,
18658
- context
18659
- });
18660
- }
18661
18655
  let t1;
18662
- if ($[0] !== authController || $[1] !== autoFocus || $[2] !== context || $[3] !== customizationController.propertyConfigs || $[4] !== disabledProp || $[5] !== includeDescription || $[6] !== index || $[7] !== minimalistView || $[8] !== onPropertyChange || $[9] !== partOfArray || $[10] !== property || $[11] !== propertyKey || $[12] !== size || $[13] !== underlyingValueHasChanged) {
18656
+ if ($[0] !== authController || $[1] !== autoFocus || $[2] !== context || $[3] !== customizationController.propertyConfigs || $[4] !== disabledProp || $[5] !== includeDescription || $[6] !== index || $[7] !== minimalistView || $[8] !== onPropertyChange || $[9] !== partOfArray || $[10] !== partOfBlock || $[11] !== property || $[12] !== propertyKey || $[13] !== size || $[14] !== underlyingValueHasChanged) {
18663
18657
  t1 = (fieldProps) => {
18664
18658
  let Component;
18665
18659
  const resolvedProperty = resolveProperty({
@@ -18722,6 +18716,7 @@
18722
18716
  context,
18723
18717
  disabled,
18724
18718
  partOfArray,
18719
+ partOfBlock,
18725
18720
  minimalistView,
18726
18721
  autoFocus,
18727
18722
  size,
@@ -18739,22 +18734,23 @@
18739
18734
  $[7] = minimalistView;
18740
18735
  $[8] = onPropertyChange;
18741
18736
  $[9] = partOfArray;
18742
- $[10] = property;
18743
- $[11] = propertyKey;
18744
- $[12] = size;
18745
- $[13] = underlyingValueHasChanged;
18746
- $[14] = t1;
18737
+ $[10] = partOfBlock;
18738
+ $[11] = property;
18739
+ $[12] = propertyKey;
18740
+ $[13] = size;
18741
+ $[14] = underlyingValueHasChanged;
18742
+ $[15] = t1;
18747
18743
  } else {
18748
- t1 = $[14];
18744
+ t1 = $[15];
18749
18745
  }
18750
18746
  let t2;
18751
- if ($[15] !== propertyKey || $[16] !== t1) {
18747
+ if ($[16] !== propertyKey || $[17] !== t1) {
18752
18748
  t2 = /* @__PURE__ */ jsxRuntime.jsx(formex.Field, { name: propertyKey, children: t1 }, propertyKey);
18753
- $[15] = propertyKey;
18754
- $[16] = t1;
18755
- $[17] = t2;
18749
+ $[16] = propertyKey;
18750
+ $[17] = t1;
18751
+ $[18] = t2;
18756
18752
  } else {
18757
- t2 = $[17];
18753
+ t2 = $[18];
18758
18754
  }
18759
18755
  return t2;
18760
18756
  }
@@ -18766,6 +18762,7 @@
18766
18762
  includeDescription,
18767
18763
  underlyingValueHasChanged,
18768
18764
  partOfArray,
18765
+ partOfBlock,
18769
18766
  minimalistView,
18770
18767
  autoFocus,
18771
18768
  context,
@@ -18815,6 +18812,7 @@
18815
18812
  disabled: disabled ?? false,
18816
18813
  underlyingValueHasChanged: underlyingValueHasChanged ?? false,
18817
18814
  partOfArray: partOfArray ?? false,
18815
+ partOfBlock: partOfBlock ?? false,
18818
18816
  minimalistView: minimalistView ?? false,
18819
18817
  autoFocus: autoFocus ?? false,
18820
18818
  customProps: customFieldProps,
@@ -20126,6 +20124,7 @@
20126
20124
  context,
20127
20125
  autoFocus,
20128
20126
  partOfArray: false,
20127
+ partOfBlock: true,
20129
20128
  minimalistView: true,
20130
20129
  onPropertyChange: storeProps
20131
20130
  } : void 0;