@firecms/core 3.0.0-canary.271 → 3.0.0-canary.273

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
@@ -210,9 +210,14 @@ class EntityReference {
210
210
  * to the root of the database).
211
211
  */
212
212
  path;
213
- constructor(id, path) {
213
+ /**
214
+ * Optional database ID where the entity is stored (if multiple databases are used)
215
+ */
216
+ databaseId;
217
+ constructor(id, path, databaseId) {
214
218
  this.id = id;
215
219
  this.path = path;
220
+ this.databaseId = databaseId;
216
221
  }
217
222
  get pathWithId() {
218
223
  return `${this.path}/${this.id}`;
@@ -9878,21 +9883,15 @@ function useColumnIds(collection, includeSubcollections) {
9878
9883
  let t0;
9879
9884
  bb0: {
9880
9885
  if (collection.propertiesOrder) {
9881
- let propertyColumnConfigs;
9886
+ let t12;
9882
9887
  if ($[0] !== collection) {
9883
- propertyColumnConfigs = hideAndExpandKeys(collection, collection.propertiesOrder);
9884
- if (collection.collectionGroup) {
9885
- propertyColumnConfigs.push({
9886
- key: COLLECTION_GROUP_PARENT_ID,
9887
- disabled: true
9888
- });
9889
- }
9888
+ t12 = hideAndExpandKeys(collection, collection.propertiesOrder);
9890
9889
  $[0] = collection;
9891
- $[1] = propertyColumnConfigs;
9890
+ $[1] = t12;
9892
9891
  } else {
9893
- propertyColumnConfigs = $[1];
9892
+ t12 = $[1];
9894
9893
  }
9895
- t0 = propertyColumnConfigs;
9894
+ t0 = t12;
9896
9895
  break bb0;
9897
9896
  }
9898
9897
  let t1;
@@ -13887,6 +13886,7 @@ function useHomePageDnd({
13887
13886
  onPersist?.(updated);
13888
13887
  return updated;
13889
13888
  });
13889
+ setDialogOpenForGroup(null);
13890
13890
  };
13891
13891
  const activeItemForOverlay = disabled || !activeId || activeIsGroup ? null : dndItems.flatMap((g_19) => g_19.entries).find((e_7) => e_7.url === activeId) || null;
13892
13892
  const activeGroupData = disabled || !activeId || !activeIsGroup ? null : dndItems.find((g_20) => g_20.name === activeId) || null;
@@ -14007,7 +14007,7 @@ function NewGroupDropZone(t0) {
14007
14007
  return t8;
14008
14008
  }
14009
14009
  function RenameGroupDialog(t0) {
14010
- const $ = c(41);
14010
+ const $ = c(40);
14011
14011
  const {
14012
14012
  open,
14013
14013
  initialName,
@@ -14199,19 +14199,18 @@ function RenameGroupDialog(t0) {
14199
14199
  t15 = $[35];
14200
14200
  }
14201
14201
  let t16;
14202
- if ($[36] !== onClose || $[37] !== open || $[38] !== t11 || $[39] !== t15) {
14203
- t16 = /* @__PURE__ */ jsxs(Dialog, { open, onOpenChange: onClose, children: [
14202
+ if ($[36] !== open || $[37] !== t11 || $[38] !== t15) {
14203
+ t16 = /* @__PURE__ */ jsxs(Dialog, { open, children: [
14204
14204
  t6,
14205
14205
  t11,
14206
14206
  t15
14207
14207
  ] });
14208
- $[36] = onClose;
14209
- $[37] = open;
14210
- $[38] = t11;
14211
- $[39] = t15;
14212
- $[40] = t16;
14208
+ $[36] = open;
14209
+ $[37] = t11;
14210
+ $[38] = t15;
14211
+ $[39] = t16;
14213
14212
  } else {
14214
- t16 = $[40];
14213
+ t16 = $[39];
14215
14214
  }
14216
14215
  return t16;
14217
14216
  }
@@ -14435,7 +14434,6 @@ function DefaultHomePage({
14435
14434
  ] }),
14436
14435
  dialogOpenForGroup && /* @__PURE__ */ jsx(RenameGroupDialog, { open: true, initialName: dialogOpenForGroup, existingGroupNames: items.map((g_9) => g_9.name).filter((n) => n !== dialogOpenForGroup), onClose: () => setDialogOpenForGroup(null), onRename: (newName) => {
14437
14436
  handleRenameGroup(dialogOpenForGroup, newName);
14438
- setDialogOpenForGroup(null);
14439
14437
  } })
14440
14438
  ] });
14441
14439
  }