@firecms/core 3.0.0-canary.124 → 3.0.0-canary.126
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 -19
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +15 -19
- package/dist/index.umd.js.map +1 -1
- package/package.json +5 -5
- package/src/app/Scaffold.tsx +3 -4
- package/src/components/EntityCollectionTable/fields/TableReferenceField.tsx +0 -1
- package/src/components/EntityCollectionTable/fields/TableStorageUpload.tsx +1 -1
- package/src/components/EntityCollectionView/EntityCollectionView.tsx +5 -3
- package/src/components/EntityPreview.tsx +3 -3
- package/src/components/HomePage/DefaultHomePage.tsx +0 -1
- package/src/components/SearchIconsView.tsx +0 -1
- package/src/components/SelectableTable/filters/StringNumberFilterField.tsx +0 -1
- package/src/core/DefaultDrawer.tsx +3 -3
- package/src/core/DrawerNavigationItem.tsx +1 -1
- package/src/core/EntityEditView.tsx +0 -1
- package/src/core/SideDialogs.tsx +0 -1
- package/src/form/field_bindings/StorageUploadFieldBinding.tsx +1 -1
package/dist/index.es.js
CHANGED
|
@@ -5173,7 +5173,7 @@ function EntityPreview({
|
|
|
5173
5173
|
hover: disabled ? void 0 : hover,
|
|
5174
5174
|
size,
|
|
5175
5175
|
children: [
|
|
5176
|
-
/* @__PURE__ */ jsxs("div", { className: cls("flex w-10 h-10 mr-2 shrink-0
|
|
5176
|
+
/* @__PURE__ */ jsxs("div", { className: cls("flex w-10 h-10 mr-2 shrink-0", size === "smallest" ? "my-0.5" : "m-2 self-start"), children: [
|
|
5177
5177
|
imageProperty && /* @__PURE__ */ jsx(
|
|
5178
5178
|
PropertyPreview,
|
|
5179
5179
|
{
|
|
@@ -5185,7 +5185,7 @@ function EntityPreview({
|
|
|
5185
5185
|
),
|
|
5186
5186
|
!imageProperty && /* @__PURE__ */ jsx(IconForView, { collectionOrView: collection, size, className: "m-auto" })
|
|
5187
5187
|
] }),
|
|
5188
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col
|
|
5188
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col grow-1 w-full max-w-full m-1", children: [
|
|
5189
5189
|
size !== "smallest" && includeId && (entity ? /* @__PURE__ */ jsx("div", { className: `${size !== "medium" ? "block whitespace-nowrap overflow-hidden truncate" : ""}`, children: /* @__PURE__ */ jsx(
|
|
5190
5190
|
Typography,
|
|
5191
5191
|
{
|
|
@@ -5289,7 +5289,7 @@ const EntityPreviewContainer = React.forwardRef(({
|
|
|
5289
5289
|
fullwidth ? "w-full" : "",
|
|
5290
5290
|
"items-center",
|
|
5291
5291
|
hover ? "hover:bg-slate-50 dark:hover:bg-gray-800 group-hover:bg-slate-50 dark:group-hover:bg-gray-800" : "",
|
|
5292
|
-
size === "smallest" ? "p-1" : "
|
|
5292
|
+
size === "smallest" ? "p-1" : "px-2 py-1",
|
|
5293
5293
|
"flex border rounded-lg",
|
|
5294
5294
|
onClick ? "cursor-pointer" : "",
|
|
5295
5295
|
defaultBorderMixin,
|
|
@@ -6997,7 +6997,7 @@ function StorageUpload$1({
|
|
|
6997
6997
|
onDropRejected: (fileRejections, event) => {
|
|
6998
6998
|
for (const fileRejection of fileRejections) {
|
|
6999
6999
|
for (const error2 of fileRejection.errors) {
|
|
7000
|
-
console.
|
|
7000
|
+
console.error("Error uploading file: ", error2);
|
|
7001
7001
|
if (error2.code === "file-too-large") {
|
|
7002
7002
|
snackbarContext.open({
|
|
7003
7003
|
type: "error",
|
|
@@ -7161,7 +7161,6 @@ const TableReferenceFieldInternal = React__default.memo(
|
|
|
7161
7161
|
updateValue(entity ? getReferenceFrom(entity) : null);
|
|
7162
7162
|
}, [updateValue]);
|
|
7163
7163
|
const onMultipleEntitiesSelected = useCallback((entities) => {
|
|
7164
|
-
console.log("onMultipleEntitiesSelected", entities);
|
|
7165
7164
|
updateValue(entities.map((e) => getReferenceFrom(e)));
|
|
7166
7165
|
}, [updateValue]);
|
|
7167
7166
|
const selectedEntityIds = internalValue ? Array.isArray(internalValue) ? internalValue.map((ref) => ref.id) : internalValue.id ? [internalValue.id] : [] : [];
|
|
@@ -9602,7 +9601,6 @@ function StringNumberFilterField({
|
|
|
9602
9601
|
}
|
|
9603
9602
|
}
|
|
9604
9603
|
const multiple = multipleSelectOperations$1.includes(operation);
|
|
9605
|
-
console.log("internalValue", { internalValue });
|
|
9606
9604
|
return /* @__PURE__ */ jsxs("div", { className: "flex w-[440px]", children: [
|
|
9607
9605
|
/* @__PURE__ */ jsx("div", { className: "w-[80px]", children: /* @__PURE__ */ jsx(
|
|
9608
9606
|
Select,
|
|
@@ -11532,7 +11530,6 @@ function DefaultHomePage({
|
|
|
11532
11530
|
setFilteredUrls(null);
|
|
11533
11531
|
} else {
|
|
11534
11532
|
const searchResult = fuse.current?.search(value);
|
|
11535
|
-
console.log("Search result", searchResult);
|
|
11536
11533
|
if (searchResult) {
|
|
11537
11534
|
setFilteredUrls(searchResult.map((e) => e.item.url));
|
|
11538
11535
|
}
|
|
@@ -12333,7 +12330,6 @@ const EntityCollectionView = React__default.memo(
|
|
|
12333
12330
|
tableController.setPopupCell?.(void 0);
|
|
12334
12331
|
}, [tableController.setPopupCell]);
|
|
12335
12332
|
const onEntityClick = useCallback((clickedEntity) => {
|
|
12336
|
-
console.log("Entity clicked", clickedEntity);
|
|
12337
12333
|
const collection2 = collectionRef.current;
|
|
12338
12334
|
setHighlightedEntity(clickedEntity);
|
|
12339
12335
|
analyticsController.onAnalyticsEvent?.("edit_entity_clicked", {
|
|
@@ -12847,6 +12843,9 @@ function EntityIdHeaderWidget({
|
|
|
12847
12843
|
{
|
|
12848
12844
|
open: openPopup,
|
|
12849
12845
|
onOpenChange: setOpenPopup,
|
|
12846
|
+
sideOffset: 0,
|
|
12847
|
+
align: "start",
|
|
12848
|
+
alignOffset: -117,
|
|
12850
12849
|
trigger: /* @__PURE__ */ jsx(IconButton, { size: "small", children: /* @__PURE__ */ jsx(SearchIcon, { size: "small" }) }),
|
|
12851
12850
|
children: /* @__PURE__ */ jsx(
|
|
12852
12851
|
"form",
|
|
@@ -12874,7 +12873,7 @@ function EntityIdHeaderWidget({
|
|
|
12874
12873
|
setSearchString(e.target.value);
|
|
12875
12874
|
},
|
|
12876
12875
|
value: searchString,
|
|
12877
|
-
className: "flex-grow bg-transparent outline-none p-1"
|
|
12876
|
+
className: "flex-grow bg-transparent outline-none p-1 " + focusedDisabled
|
|
12878
12877
|
}
|
|
12879
12878
|
),
|
|
12880
12879
|
/* @__PURE__ */ jsx(
|
|
@@ -13743,7 +13742,6 @@ function SearchIconsView({
|
|
|
13743
13742
|
};
|
|
13744
13743
|
}, [query, updateSearchResults]);
|
|
13745
13744
|
const icons = keys === null ? coolIconKeys : keys;
|
|
13746
|
-
console.log("Icons", icons);
|
|
13747
13745
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
13748
13746
|
/* @__PURE__ */ jsx(
|
|
13749
13747
|
SearchBar,
|
|
@@ -14434,7 +14432,7 @@ function FileDropComponent({
|
|
|
14434
14432
|
onDropRejected: (fileRejections, event) => {
|
|
14435
14433
|
for (const fileRejection of fileRejections) {
|
|
14436
14434
|
for (const error of fileRejection.errors) {
|
|
14437
|
-
console.
|
|
14435
|
+
console.error("Error uploading file: ", error);
|
|
14438
14436
|
if (error.code === "file-too-large") {
|
|
14439
14437
|
snackbarContext.open({
|
|
14440
14438
|
type: "error",
|
|
@@ -17491,7 +17489,6 @@ function EntityEditViewInner({
|
|
|
17491
17489
|
if (onUpdate)
|
|
17492
17490
|
onUpdate({ entity: updatedEntity });
|
|
17493
17491
|
if (closeAfterSave) {
|
|
17494
|
-
console.log("Closing side dialog");
|
|
17495
17492
|
sideDialogContext.setBlocked(false);
|
|
17496
17493
|
sideDialogContext.close(true);
|
|
17497
17494
|
onClose?.();
|
|
@@ -18341,7 +18338,6 @@ function SideDialogView({
|
|
|
18341
18338
|
const handleDrawerCloseOk = () => {
|
|
18342
18339
|
setBlocked(false);
|
|
18343
18340
|
setDrawerCloseRequested(false);
|
|
18344
|
-
console.log("handleDrawerCloseOk");
|
|
18345
18341
|
sideDialogsController.close();
|
|
18346
18342
|
panel?.onClose?.();
|
|
18347
18343
|
};
|
|
@@ -19319,7 +19315,7 @@ function DrawerWrapper(props) {
|
|
|
19319
19315
|
children: /* @__PURE__ */ jsx(
|
|
19320
19316
|
"div",
|
|
19321
19317
|
{
|
|
19322
|
-
className: "fixed top-2 left-3 !bg-gray-50 dark:!bg-gray-900 rounded-full w-fit z-20",
|
|
19318
|
+
className: "ml-2 fixed top-2 left-3 !bg-gray-50 dark:!bg-gray-900 rounded-full w-fit z-20",
|
|
19323
19319
|
children: /* @__PURE__ */ jsx(
|
|
19324
19320
|
IconButton,
|
|
19325
19321
|
{
|
|
@@ -19365,7 +19361,7 @@ function DrawerWrapper(props) {
|
|
|
19365
19361
|
"aria-label": "Open drawer",
|
|
19366
19362
|
onClick: () => props.setDrawerOpen(true),
|
|
19367
19363
|
size: "large",
|
|
19368
|
-
className: "absolute top-2 left-
|
|
19364
|
+
className: "absolute top-2 left-5",
|
|
19369
19365
|
children: /* @__PURE__ */ jsx(MenuIcon, {})
|
|
19370
19366
|
}
|
|
19371
19367
|
),
|
|
@@ -19424,7 +19420,7 @@ function DrawerNavigationItem({
|
|
|
19424
19420
|
},
|
|
19425
19421
|
className: ({ isActive }) => cls(
|
|
19426
19422
|
"rounded-lg truncate",
|
|
19427
|
-
"hover:bg-slate-300 hover:bg-opacity-75 dark:hover:bg-
|
|
19423
|
+
"hover:bg-slate-300 hover:bg-opacity-75 dark:hover:bg-slate-800 dark:hover:bg-opacity-75 text-gray-800 dark:text-gray-200 hover:text-gray-900 hover:dark:text-white",
|
|
19428
19424
|
"flex flex-row items-center mr-8",
|
|
19429
19425
|
// "transition-all ease-in-out delay-100 duration-300",
|
|
19430
19426
|
// drawerOpen ? "w-full" : "w-18",
|
|
@@ -19524,7 +19520,7 @@ function DefaultDrawer({
|
|
|
19524
19520
|
Object.values(navigationEntries).filter((e) => e.group === group).map((view, index) => /* @__PURE__ */ jsx(
|
|
19525
19521
|
DrawerNavigationItem,
|
|
19526
19522
|
{
|
|
19527
|
-
icon: /* @__PURE__ */ jsx(IconForView, { collectionOrView: view.collection ?? view.view }),
|
|
19523
|
+
icon: /* @__PURE__ */ jsx(IconForView, { collectionOrView: view.collection ?? view.view, size: "small" }),
|
|
19528
19524
|
tooltipsOpen,
|
|
19529
19525
|
adminMenuOpen,
|
|
19530
19526
|
drawerOpen,
|
|
@@ -19601,9 +19597,9 @@ function DrawerLogo({ logo }) {
|
|
|
19601
19597
|
{
|
|
19602
19598
|
style: {
|
|
19603
19599
|
transition: "padding 100ms cubic-bezier(0.4, 0, 0.6, 1) 0ms",
|
|
19604
|
-
padding: drawerOpen ? "32px 144px 0px 24px" : "72px
|
|
19600
|
+
padding: drawerOpen ? "32px 144px 0px 24px" : "72px 12px 0px 12px"
|
|
19605
19601
|
},
|
|
19606
|
-
className: cls("cursor-pointer"),
|
|
19602
|
+
className: cls("cursor-pointer ml-4"),
|
|
19607
19603
|
children: /* @__PURE__ */ jsx(
|
|
19608
19604
|
Tooltip,
|
|
19609
19605
|
{
|