@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 +15 -11
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +15 -11
- package/dist/index.umd.js.map +1 -1
- package/dist/types/entities.d.ts +5 -1
- package/package.json +5 -5
- package/src/components/HomePage/DefaultHomePage.tsx +0 -1
- package/src/components/HomePage/HomePageDnD.tsx +1 -0
- package/src/components/HomePage/RenameGroupDialog.tsx +9 -3
- package/src/types/entities.ts +7 -1
package/dist/index.umd.js
CHANGED
|
@@ -208,9 +208,14 @@
|
|
|
208
208
|
* to the root of the database).
|
|
209
209
|
*/
|
|
210
210
|
path;
|
|
211
|
-
|
|
211
|
+
/**
|
|
212
|
+
* Optional database ID where the entity is stored (if multiple databases are used)
|
|
213
|
+
*/
|
|
214
|
+
databaseId;
|
|
215
|
+
constructor(id, path, databaseId) {
|
|
212
216
|
this.id = id;
|
|
213
217
|
this.path = path;
|
|
218
|
+
this.databaseId = databaseId;
|
|
214
219
|
}
|
|
215
220
|
get pathWithId() {
|
|
216
221
|
return `${this.path}/${this.id}`;
|
|
@@ -13879,6 +13884,7 @@
|
|
|
13879
13884
|
onPersist?.(updated);
|
|
13880
13885
|
return updated;
|
|
13881
13886
|
});
|
|
13887
|
+
setDialogOpenForGroup(null);
|
|
13882
13888
|
};
|
|
13883
13889
|
const activeItemForOverlay = disabled || !activeId || activeIsGroup ? null : dndItems.flatMap((g_19) => g_19.entries).find((e_7) => e_7.url === activeId) || null;
|
|
13884
13890
|
const activeGroupData = disabled || !activeId || !activeIsGroup ? null : dndItems.find((g_20) => g_20.name === activeId) || null;
|
|
@@ -13999,7 +14005,7 @@
|
|
|
13999
14005
|
return t8;
|
|
14000
14006
|
}
|
|
14001
14007
|
function RenameGroupDialog(t0) {
|
|
14002
|
-
const $ = reactCompilerRuntime.c(
|
|
14008
|
+
const $ = reactCompilerRuntime.c(40);
|
|
14003
14009
|
const {
|
|
14004
14010
|
open,
|
|
14005
14011
|
initialName,
|
|
@@ -14191,19 +14197,18 @@
|
|
|
14191
14197
|
t15 = $[35];
|
|
14192
14198
|
}
|
|
14193
14199
|
let t16;
|
|
14194
|
-
if ($[36] !==
|
|
14195
|
-
t16 = /* @__PURE__ */ jsxRuntime.jsxs(ui.Dialog, { open,
|
|
14200
|
+
if ($[36] !== open || $[37] !== t11 || $[38] !== t15) {
|
|
14201
|
+
t16 = /* @__PURE__ */ jsxRuntime.jsxs(ui.Dialog, { open, children: [
|
|
14196
14202
|
t6,
|
|
14197
14203
|
t11,
|
|
14198
14204
|
t15
|
|
14199
14205
|
] });
|
|
14200
|
-
$[36] =
|
|
14201
|
-
$[37] =
|
|
14202
|
-
$[38] =
|
|
14203
|
-
$[39] =
|
|
14204
|
-
$[40] = t16;
|
|
14206
|
+
$[36] = open;
|
|
14207
|
+
$[37] = t11;
|
|
14208
|
+
$[38] = t15;
|
|
14209
|
+
$[39] = t16;
|
|
14205
14210
|
} else {
|
|
14206
|
-
t16 = $[
|
|
14211
|
+
t16 = $[39];
|
|
14207
14212
|
}
|
|
14208
14213
|
return t16;
|
|
14209
14214
|
}
|
|
@@ -14427,7 +14432,6 @@
|
|
|
14427
14432
|
] }),
|
|
14428
14433
|
dialogOpenForGroup && /* @__PURE__ */ jsxRuntime.jsx(RenameGroupDialog, { open: true, initialName: dialogOpenForGroup, existingGroupNames: items.map((g_9) => g_9.name).filter((n) => n !== dialogOpenForGroup), onClose: () => setDialogOpenForGroup(null), onRename: (newName) => {
|
|
14429
14434
|
handleRenameGroup(dialogOpenForGroup, newName);
|
|
14430
|
-
setDialogOpenForGroup(null);
|
|
14431
14435
|
} })
|
|
14432
14436
|
] });
|
|
14433
14437
|
}
|