@firecms/core 3.0.0-canary.109 → 3.0.0-canary.110
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/form/field_bindings/MarkdownEditorFieldBinding.d.ts +3 -1
- package/dist/index.es.js +20 -16
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +19 -15
- package/dist/index.umd.js.map +1 -1
- package/package.json +5 -5
- package/src/components/HomePage/SmallNavigationCard.tsx +1 -2
- package/src/core/DefaultAppBar.tsx +1 -1
- package/src/core/EntityEditView.tsx +34 -31
- package/src/core/SideDialogs.tsx +3 -0
- package/src/form/field_bindings/MarkdownEditorFieldBinding.tsx +8 -5
- package/src/form/field_bindings/StorageUploadFieldBinding.tsx +1 -3
- package/src/hooks/data/save.ts +0 -1
- package/src/internal/useBuildSideEntityController.tsx +4 -2
- package/src/internal/useUnsavedChangesDialog.tsx +3 -1
package/dist/index.umd.js
CHANGED
|
@@ -3605,7 +3605,6 @@
|
|
|
3605
3605
|
previousValues,
|
|
3606
3606
|
status
|
|
3607
3607
|
}).then((entity) => {
|
|
3608
|
-
console.log("Entity saved");
|
|
3609
3608
|
try {
|
|
3610
3609
|
if (callbacks?.onSaveSuccess) {
|
|
3611
3610
|
const resolvedCollection = resolveCollection({
|
|
@@ -11245,7 +11244,6 @@
|
|
|
11245
11244
|
className: ui.cls(
|
|
11246
11245
|
ui.cardMixin,
|
|
11247
11246
|
ui.cardClickableMixin,
|
|
11248
|
-
ui.focusedMixin,
|
|
11249
11247
|
"cursor-pointer flex flex-row items-center px-4 py-2 text-inherit dark:text-inherit visited:text-inherit visited:dark:text-inherit hover:text-inherit hover:dark:text-inherit "
|
|
11250
11248
|
),
|
|
11251
11249
|
to: url,
|
|
@@ -13222,7 +13220,7 @@
|
|
|
13222
13220
|
{
|
|
13223
13221
|
variant: "subtitle1",
|
|
13224
13222
|
noWrap: true,
|
|
13225
|
-
className: ui.cls("
|
|
13223
|
+
className: ui.cls("transition-all", drawerOpen ? "ml-2" : ""),
|
|
13226
13224
|
children: title
|
|
13227
13225
|
}
|
|
13228
13226
|
) : title
|
|
@@ -14415,7 +14413,6 @@
|
|
|
14415
14413
|
disabled ? ui.fieldBackgroundDisabledMixin : ui.fieldBackgroundHoverMixin,
|
|
14416
14414
|
dropZoneClasses,
|
|
14417
14415
|
multipleFilesSupported && internalValue.length ? "" : "flex",
|
|
14418
|
-
ui.focusedMixin,
|
|
14419
14416
|
{
|
|
14420
14417
|
[nonActiveDropClasses]: !isDragActive,
|
|
14421
14418
|
[activeDropClasses]: isDragActive,
|
|
@@ -14482,7 +14479,7 @@
|
|
|
14482
14479
|
ref: provided.innerRef,
|
|
14483
14480
|
...provided.draggableProps,
|
|
14484
14481
|
...provided.dragHandleProps,
|
|
14485
|
-
className: ui.cls(
|
|
14482
|
+
className: ui.cls("rounded-md"),
|
|
14486
14483
|
style: {
|
|
14487
14484
|
...provided.draggableProps.style
|
|
14488
14485
|
},
|
|
@@ -16232,10 +16229,10 @@
|
|
|
16232
16229
|
minimalistView,
|
|
16233
16230
|
isSubmitting,
|
|
16234
16231
|
context,
|
|
16235
|
-
customProps
|
|
16236
|
-
...props
|
|
16232
|
+
customProps
|
|
16237
16233
|
}) {
|
|
16238
16234
|
const highlight = customProps?.highlight;
|
|
16235
|
+
const editorProps = customProps?.editorProps;
|
|
16239
16236
|
const storageSource = useStorageSource();
|
|
16240
16237
|
const storage = property.storage;
|
|
16241
16238
|
const entityValues = context.values;
|
|
@@ -16306,7 +16303,8 @@
|
|
|
16306
16303
|
throw new Error("Error uploading image");
|
|
16307
16304
|
}
|
|
16308
16305
|
return url;
|
|
16309
|
-
}
|
|
16306
|
+
},
|
|
16307
|
+
...editorProps
|
|
16310
16308
|
}
|
|
16311
16309
|
);
|
|
16312
16310
|
if (minimalistView)
|
|
@@ -17412,7 +17410,7 @@
|
|
|
17412
17410
|
sideEntityController.replace({
|
|
17413
17411
|
path,
|
|
17414
17412
|
entityId: updatedEntity.id,
|
|
17415
|
-
selectedSubPath: selectedTabRef.current,
|
|
17413
|
+
selectedSubPath: MAIN_TAB_VALUE === selectedTabRef.current ? void 0 : selectedTabRef.current,
|
|
17416
17414
|
updateUrl: true,
|
|
17417
17415
|
collection
|
|
17418
17416
|
});
|
|
@@ -17887,7 +17885,7 @@
|
|
|
17887
17885
|
)
|
|
17888
17886
|
] });
|
|
17889
17887
|
function buildForm() {
|
|
17890
|
-
let form = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
17888
|
+
let form = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
17891
17889
|
pluginActions.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
17892
17890
|
"div",
|
|
17893
17891
|
{
|
|
@@ -17895,7 +17893,7 @@
|
|
|
17895
17893
|
children: pluginActions
|
|
17896
17894
|
}
|
|
17897
17895
|
),
|
|
17898
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "pt-12 pb-16 pl-8 pr-8 md:pl-10 md:pr-10", children: [
|
|
17896
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-full overflow-auto", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "pt-12 pb-16 pl-8 pr-8 md:pl-10 md:pr-10", children: [
|
|
17899
17897
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
17900
17898
|
"div",
|
|
17901
17899
|
{
|
|
@@ -17943,7 +17941,7 @@
|
|
|
17943
17941
|
),
|
|
17944
17942
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-14" })
|
|
17945
17943
|
] })
|
|
17946
|
-
] })
|
|
17944
|
+
] }) })
|
|
17947
17945
|
] });
|
|
17948
17946
|
if (plugins) {
|
|
17949
17947
|
plugins.forEach((plugin) => {
|
|
@@ -18085,7 +18083,7 @@
|
|
|
18085
18083
|
role: "tabpanel",
|
|
18086
18084
|
hidden: !mainViewVisible,
|
|
18087
18085
|
id: `form_${path}`,
|
|
18088
|
-
className: " w-full",
|
|
18086
|
+
className: "relative w-full",
|
|
18089
18087
|
children: globalLoading ? /* @__PURE__ */ jsxRuntime.jsx(CircularProgressCenter, {}) : entityView
|
|
18090
18088
|
}
|
|
18091
18089
|
),
|
|
@@ -18184,8 +18182,10 @@
|
|
|
18184
18182
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
18185
18183
|
ui.Dialog,
|
|
18186
18184
|
{
|
|
18185
|
+
onEscapeKeyDown: () => {
|
|
18186
|
+
handleCancel();
|
|
18187
|
+
},
|
|
18187
18188
|
open,
|
|
18188
|
-
onOpenChange: (open2) => open2 ? handleCancel() : handleOk(),
|
|
18189
18189
|
children: [
|
|
18190
18190
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.DialogContent, { children: [
|
|
18191
18191
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "h6", children: title }),
|
|
@@ -18250,6 +18250,7 @@
|
|
|
18250
18250
|
const handleDrawerCloseOk = () => {
|
|
18251
18251
|
setBlocked(false);
|
|
18252
18252
|
setDrawerCloseRequested(false);
|
|
18253
|
+
console.log("handleDrawerCloseOk");
|
|
18253
18254
|
sideDialogsController.close();
|
|
18254
18255
|
panel?.onClose?.();
|
|
18255
18256
|
};
|
|
@@ -18257,9 +18258,11 @@
|
|
|
18257
18258
|
setDrawerCloseRequested(false);
|
|
18258
18259
|
};
|
|
18259
18260
|
const onCloseRequest = (force) => {
|
|
18261
|
+
console.log("onCloseRequest", blocked, force);
|
|
18260
18262
|
if (blocked && !force) {
|
|
18261
18263
|
setDrawerCloseRequested(true);
|
|
18262
18264
|
} else {
|
|
18265
|
+
console.log("onCloseRequest closing");
|
|
18263
18266
|
sideDialogsController.close();
|
|
18264
18267
|
panel?.onClose?.();
|
|
18265
18268
|
}
|
|
@@ -18538,12 +18541,13 @@
|
|
|
18538
18541
|
...props,
|
|
18539
18542
|
path: resolvedPath
|
|
18540
18543
|
};
|
|
18544
|
+
const entityViewWidth = getEntityViewWidth(props, smallLayout);
|
|
18541
18545
|
return {
|
|
18542
18546
|
key: `${props.path}/${props.entityId}`,
|
|
18543
18547
|
component: /* @__PURE__ */ jsxRuntime.jsx(EntitySidePanel, { ...resolvedPanelProps }),
|
|
18544
18548
|
urlPath: newPath,
|
|
18545
18549
|
parentUrlPath: buildUrlCollectionPath(collectionPath),
|
|
18546
|
-
width:
|
|
18550
|
+
width: entityViewWidth,
|
|
18547
18551
|
onClose: props.onClose
|
|
18548
18552
|
};
|
|
18549
18553
|
};
|