@firecms/core 3.0.0-canary.272 → 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}`;
@@ -13881,6 +13886,7 @@ function useHomePageDnd({
13881
13886
  onPersist?.(updated);
13882
13887
  return updated;
13883
13888
  });
13889
+ setDialogOpenForGroup(null);
13884
13890
  };
13885
13891
  const activeItemForOverlay = disabled || !activeId || activeIsGroup ? null : dndItems.flatMap((g_19) => g_19.entries).find((e_7) => e_7.url === activeId) || null;
13886
13892
  const activeGroupData = disabled || !activeId || !activeIsGroup ? null : dndItems.find((g_20) => g_20.name === activeId) || null;
@@ -14001,7 +14007,7 @@ function NewGroupDropZone(t0) {
14001
14007
  return t8;
14002
14008
  }
14003
14009
  function RenameGroupDialog(t0) {
14004
- const $ = c(41);
14010
+ const $ = c(40);
14005
14011
  const {
14006
14012
  open,
14007
14013
  initialName,
@@ -14193,19 +14199,18 @@ function RenameGroupDialog(t0) {
14193
14199
  t15 = $[35];
14194
14200
  }
14195
14201
  let t16;
14196
- if ($[36] !== onClose || $[37] !== open || $[38] !== t11 || $[39] !== t15) {
14197
- t16 = /* @__PURE__ */ jsxs(Dialog, { open, onOpenChange: onClose, children: [
14202
+ if ($[36] !== open || $[37] !== t11 || $[38] !== t15) {
14203
+ t16 = /* @__PURE__ */ jsxs(Dialog, { open, children: [
14198
14204
  t6,
14199
14205
  t11,
14200
14206
  t15
14201
14207
  ] });
14202
- $[36] = onClose;
14203
- $[37] = open;
14204
- $[38] = t11;
14205
- $[39] = t15;
14206
- $[40] = t16;
14208
+ $[36] = open;
14209
+ $[37] = t11;
14210
+ $[38] = t15;
14211
+ $[39] = t16;
14207
14212
  } else {
14208
- t16 = $[40];
14213
+ t16 = $[39];
14209
14214
  }
14210
14215
  return t16;
14211
14216
  }
@@ -14429,7 +14434,6 @@ function DefaultHomePage({
14429
14434
  ] }),
14430
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) => {
14431
14436
  handleRenameGroup(dialogOpenForGroup, newName);
14432
- setDialogOpenForGroup(null);
14433
14437
  } })
14434
14438
  ] });
14435
14439
  }