@firecms/core 3.0.0-tw4.3 → 3.0.0
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/README.md +1 -1
- package/dist/index.es.js +14 -14
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +14 -14
- package/dist/index.umd.js.map +1 -1
- package/package.json +5 -5
- package/src/app/Scaffold.tsx +1 -1
- package/src/components/ArrayContainer.tsx +1 -1
- package/src/components/EntityCollectionTable/EntityCollectionRowActions.tsx +1 -1
- package/src/components/EntityCollectionTable/internal/EntityTableCell.tsx +3 -3
- package/src/components/ReferenceWidget.tsx +1 -1
- package/src/components/SelectableTable/SelectableTable.tsx +1 -1
- package/src/components/VirtualTable/VirtualTableHeader.tsx +1 -1
- package/src/components/VirtualTable/VirtualTableRow.tsx +1 -1
- package/src/core/DefaultDrawer.tsx +1 -1
- package/src/core/DrawerNavigationItem.tsx +3 -4
- package/src/preview/components/EmptyValue.tsx +1 -1
package/README.md
CHANGED
|
@@ -167,7 +167,7 @@ in `example/src`.
|
|
|
167
167
|
That file needs to export a valid Firebase config, that you can get
|
|
168
168
|
from your Firebase console when creating a webapp for your project.
|
|
169
169
|
|
|
170
|
-
Then simply run `
|
|
170
|
+
Then simply run `yarn` and `yarn dev`
|
|
171
171
|
|
|
172
172
|
## License
|
|
173
173
|
|
package/dist/index.es.js
CHANGED
|
@@ -4920,7 +4920,7 @@ function EmptyValue() {
|
|
|
4920
4920
|
const $ = c(1);
|
|
4921
4921
|
let t0;
|
|
4922
4922
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
4923
|
-
t0 = /* @__PURE__ */ jsx("div", { className: "rounded-full bg-surface-200 bg-opacity-30
|
|
4923
|
+
t0 = /* @__PURE__ */ jsx("div", { className: "rounded-full bg-surface-200 bg-opacity-30 dark:bg-opacity-20 w-5 h-2 inline-block" });
|
|
4924
4924
|
$[0] = t0;
|
|
4925
4925
|
} else {
|
|
4926
4926
|
t0 = $[0];
|
|
@@ -9745,9 +9745,9 @@ const EntityTableCell = React__default.memo(function EntityTableCell2(t0) {
|
|
|
9745
9745
|
}
|
|
9746
9746
|
const setOnHoverFalse = t10;
|
|
9747
9747
|
const borderClass = showError ? "border-red-500" : internalSaved ? "border-green-500" : isSelected ? "border-primary" : "border-transparent";
|
|
9748
|
-
const t11 = `flex relative h-full rounded-md p-${p} border border-4
|
|
9748
|
+
const t11 = `flex relative h-full rounded-md p-${p} border border-4 border-opacity-75`;
|
|
9749
9749
|
const t12 = onHover && !disabled ? "bg-surface-50 dark:bg-surface-900" : "";
|
|
9750
|
-
const t13 = saved ? "bg-surface-100
|
|
9750
|
+
const t13 = saved ? "bg-surface-100 bg-opacity-75 dark:bg-surface-800 dark:bg-opacity-75" : "";
|
|
9751
9751
|
const t14 = hideOverflow ? "overflow-hidden" : "";
|
|
9752
9752
|
const t15 = isSelected ? "bg-surface-50 dark:bg-surface-900" : "";
|
|
9753
9753
|
let t16;
|
|
@@ -9815,7 +9815,7 @@ const EntityTableCell = React__default.memo(function EntityTableCell2(t0) {
|
|
|
9815
9815
|
}
|
|
9816
9816
|
let t24;
|
|
9817
9817
|
if ($[33] !== disabled || $[34] !== disabledTooltip || $[35] !== onHover) {
|
|
9818
|
-
t24 = disabled && onHover && disabledTooltip && /* @__PURE__ */ jsx("div", { className: "absolute top-1 right-1 text-xs", children: /* @__PURE__ */ jsx(Tooltip, { title: disabledTooltip, children: /* @__PURE__ */ jsx(DoNotDisturbOnIcon, { size: "smallest", color: "disabled", className: "text-
|
|
9818
|
+
t24 = disabled && onHover && disabledTooltip && /* @__PURE__ */ jsx("div", { className: "absolute top-1 right-1 text-xs", children: /* @__PURE__ */ jsx(Tooltip, { title: disabledTooltip, children: /* @__PURE__ */ jsx(DoNotDisturbOnIcon, { size: "smallest", color: "disabled", className: "text-surface-500" }) }) });
|
|
9819
9819
|
$[33] = disabled;
|
|
9820
9820
|
$[34] = disabledTooltip;
|
|
9821
9821
|
$[35] = onHover;
|
|
@@ -10281,7 +10281,7 @@ const EntityCollectionRowActions = function EntityCollectionRowActions2({
|
|
|
10281
10281
|
const enableLocalChangesBackup = collection ? getLocalChangesBackup(collection) : false;
|
|
10282
10282
|
const hasDraft = enableLocalChangesBackup ? getEntityFromCache(fullPath + "/" + entity.id) : false;
|
|
10283
10283
|
const iconSize = largeLayout && (size === "m" || size === "l" || size == "xl") ? "medium" : "small";
|
|
10284
|
-
return /* @__PURE__ */ jsxs("div", { className: cls("h-full flex items-center justify-center flex-col bg-surface-50 dark:bg-surface-900 bg-opacity-90
|
|
10284
|
+
return /* @__PURE__ */ jsxs("div", { className: cls("h-full flex items-center justify-center flex-col bg-surface-50 dark:bg-surface-900 bg-opacity-90 dark:bg-opacity-90 z-10", frozen ? "sticky left-0" : ""), onClick: useCallback((event) => {
|
|
10285
10285
|
event.stopPropagation();
|
|
10286
10286
|
}, []), style: {
|
|
10287
10287
|
width,
|
|
@@ -10795,7 +10795,7 @@ const VirtualTableHeader = React__default.memo(function VirtualTableHeader2(t0)
|
|
|
10795
10795
|
const t3 = column.frozen ? "sticky left-0 z-10" : "relative z-0";
|
|
10796
10796
|
let t4;
|
|
10797
10797
|
if ($[4] !== t3) {
|
|
10798
|
-
t4 = cls("flex py-0 px-3 h-full text-xs uppercase font-semibold relative select-none items-center bg-surface-50 dark:bg-surface-900", "text-text-secondary hover:text-text-primary dark:text-text-secondary-dark dark:hover:text-text-primary-dark", "hover:bg-surface-100 dark:hover:bg-surface-800 hover:bg-opacity-50
|
|
10798
|
+
t4 = cls("flex py-0 px-3 h-full text-xs uppercase font-semibold relative select-none items-center bg-surface-50 dark:bg-surface-900", "text-text-secondary hover:text-text-primary dark:text-text-secondary-dark dark:hover:text-text-primary-dark", "hover:bg-surface-100 dark:hover:bg-surface-800 hover:bg-opacity-50 dark:hover:bg-opacity-50", t3);
|
|
10799
10799
|
$[4] = t3;
|
|
10800
10800
|
$[5] = t4;
|
|
10801
10801
|
} else {
|
|
@@ -11231,7 +11231,7 @@ const VirtualTableRow = React__default.memo(function VirtualTableRow2(t0) {
|
|
|
11231
11231
|
const onClick = t1;
|
|
11232
11232
|
let t2;
|
|
11233
11233
|
if ($[4] !== hoverRow || $[5] !== onRowClick || $[6] !== rowClassName || $[7] !== rowData) {
|
|
11234
|
-
t2 = cls("flex min-w-full text-sm border-b border-surface-200 dark:border-surface-800 border-opacity-40
|
|
11234
|
+
t2 = cls("flex min-w-full text-sm border-b border-surface-200 dark:border-surface-800 border-opacity-40 dark:border-opacity-40", rowClassName ? rowClassName(rowData) : "", {
|
|
11235
11235
|
"hover:bg-opacity-95": hoverRow,
|
|
11236
11236
|
"cursor-pointer": onRowClick
|
|
11237
11237
|
});
|
|
@@ -12262,7 +12262,7 @@ const SelectableTable = function SelectableTable2({
|
|
|
12262
12262
|
selectedCell
|
|
12263
12263
|
}), [setPopupCell, select, onValueChange, size, selectedCell]);
|
|
12264
12264
|
return /* @__PURE__ */ jsx(SelectableTableContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx("div", { className: "h-full w-full flex flex-col bg-white dark:bg-surface-950", ref, children: /* @__PURE__ */ jsx(VirtualTable, { data, columns, cellRenderer, onRowClick: inlineEditing ? void 0 : onEntityClick ? onRowClick : void 0, onEndReached: loadNextPage, onResetPagination: resetPagination, error: dataLoadingError, onColumnResize, rowHeight: getRowHeight(size), loading: dataLoading, filter: filterValues, onFilterUpdate: setFilterValues ? onFilterUpdate : void 0, sortBy, onSortByUpdate: setSortBy, hoverRow, initialScroll, onScroll, checkFilterCombination, createFilterField: filterable ? createFilterField : void 0, rowClassName: useCallback((entity) => {
|
|
12265
|
-
return highlightedRow?.(entity) ? "bg-surface-100 bg-opacity-75
|
|
12265
|
+
return highlightedRow?.(entity) ? "bg-surface-100 bg-opacity-75 dark:bg-surface-800 dark:bg-opacity-75" : "";
|
|
12266
12266
|
}, [highlightedRow]), className: "flex-grow", emptyComponent, endAdornment, AddColumnComponent }) }) });
|
|
12267
12267
|
};
|
|
12268
12268
|
function createFilterField({
|
|
@@ -22060,7 +22060,7 @@ function ArrayContainerItem(t0) {
|
|
|
22060
22060
|
storedProps,
|
|
22061
22061
|
updateItemCustomProps
|
|
22062
22062
|
} = t0;
|
|
22063
|
-
const t1 = `relative ${!isDragging ? "hover\\:bg-surface-accent-50 dark\\:hover\\:bg-surface-800 dark\\:hover\\:bg-opacity-20
|
|
22063
|
+
const t1 = `relative ${!isDragging ? "hover\\:bg-surface-accent-50 dark\\:hover\\:bg-surface-800 dark\\:hover\\:bg-opacity-20" : ""} rounded-md opacity-100`;
|
|
22064
22064
|
let t2;
|
|
22065
22065
|
if ($[0] !== internalId || $[1] !== updateItemCustomProps) {
|
|
22066
22066
|
t2 = (props) => updateItemCustomProps(internalId, props);
|
|
@@ -22383,7 +22383,7 @@ function ReferenceWidget({
|
|
|
22383
22383
|
} else if (value?.isEntityReference && value?.isEntityReference()) {
|
|
22384
22384
|
child = /* @__PURE__ */ jsx(ReferencePreview, { reference: value, onClick: onEntryClick, disabled, previewProperties, size, includeId, includeEntityLink });
|
|
22385
22385
|
}
|
|
22386
|
-
return /* @__PURE__ */ jsxs("div", { className: cls("text-sm font-medium", "min-w-80 flex flex-col gap-4", "relative transition-colors duration-200 ease-in rounded font-medium", disabled ? "bg-opacity-50" : "hover:bg-opacity-75", "text-opacity-50
|
|
22386
|
+
return /* @__PURE__ */ jsxs("div", { className: cls("text-sm font-medium", "min-w-80 flex flex-col gap-4", "relative transition-colors duration-200 ease-in rounded font-medium", disabled ? "bg-opacity-50" : "hover:bg-opacity-75", "text-opacity-50 dark:text-white dark:text-opacity-50", className), children: [
|
|
22387
22387
|
child,
|
|
22388
22388
|
!value && /* @__PURE__ */ jsx("div", { className: "justify-center text-left", children: /* @__PURE__ */ jsxs(Button, { variant: "outlined", color: "primary", disabled, onClick: onEntryClick, children: [
|
|
22389
22389
|
"Edit ",
|
|
@@ -25279,7 +25279,7 @@ function DrawerNavigationItem(t0) {
|
|
|
25279
25279
|
const {
|
|
25280
25280
|
isActive
|
|
25281
25281
|
} = t52;
|
|
25282
|
-
return cls("rounded-lg truncate", "hover:bg-surface-accent-300 hover:bg-opacity-75
|
|
25282
|
+
return cls("rounded-lg truncate", "hover:bg-surface-accent-300 hover:bg-opacity-75 dark:hover:bg-surface-accent-800 dark:hover:bg-opacity-75 text-text-primary dark:text-surface-200 hover:text-surface-900 hover:dark:text-white", "flex flex-row items-center mr-8", drawerOpen ? "pl-4 h-10" : "pl-4 h-9", "font-semibold text-xs", isActive ? "bg-surface-accent-200 bg-opacity-60 dark:bg-surface-800 dark:bg-opacity-50" : "");
|
|
25283
25283
|
};
|
|
25284
25284
|
$[4] = drawerOpen;
|
|
25285
25285
|
$[5] = t4;
|
|
@@ -25289,7 +25289,7 @@ function DrawerNavigationItem(t0) {
|
|
|
25289
25289
|
const t5 = drawerOpen ? "opacity-100" : "opacity-0 hidden";
|
|
25290
25290
|
let t6;
|
|
25291
25291
|
if ($[6] !== t5) {
|
|
25292
|
-
t6 = cls(
|
|
25292
|
+
t6 = cls(t5, "ml-4 font-inherit text-inherit");
|
|
25293
25293
|
$[6] = t5;
|
|
25294
25294
|
$[7] = t6;
|
|
25295
25295
|
} else {
|
|
@@ -25437,7 +25437,7 @@ function DefaultDrawer(t0) {
|
|
|
25437
25437
|
}
|
|
25438
25438
|
let t10;
|
|
25439
25439
|
if ($[41] !== adminMenuOpen || $[42] !== buildGroupHeader || $[43] !== drawerOpen || $[44] !== navigationEntries || $[45] !== onClick || $[46] !== tooltipsOpen) {
|
|
25440
|
-
t10 = (group_0) => /* @__PURE__ */ jsxs("div", { className: "bg-surface-50 dark:bg-surface-800 dark:bg-opacity-30
|
|
25440
|
+
t10 = (group_0) => /* @__PURE__ */ jsxs("div", { className: "bg-surface-50 dark:bg-surface-800 dark:bg-opacity-30 my-4 rounded-lg ml-3 mr-1", children: [
|
|
25441
25441
|
buildGroupHeader(group_0),
|
|
25442
25442
|
Object.values(navigationEntries).filter((e_0) => e_0.group === group_0).map((view_0) => /* @__PURE__ */ jsx(DrawerNavigationItem, { icon: /* @__PURE__ */ jsx(IconForView, { collectionOrView: view_0.collection ?? view_0.view, size: "small" }), tooltipsOpen, adminMenuOpen, drawerOpen, onClick: () => onClick(view_0), url: view_0.url, name: view_0.name }, view_0.id))
|
|
25443
25443
|
] }, `drawer_group_${group_0}`);
|
|
@@ -26945,7 +26945,7 @@ function DrawerWrapper(props) {
|
|
|
26945
26945
|
}
|
|
26946
26946
|
let t12;
|
|
26947
26947
|
if ($[24] !== innerDrawer || $[25] !== props.open || $[26] !== props.setDrawerOpen) {
|
|
26948
|
-
t12 = /* @__PURE__ */ jsx(Sheet, { side: "left", transparent: true, open: props.open, onOpenChange: props.setDrawerOpen, title: "Navigation drawer", overlayClassName: "bg-white bg-opacity-80
|
|
26948
|
+
t12 = /* @__PURE__ */ jsx(Sheet, { side: "left", transparent: true, open: props.open, onOpenChange: props.setDrawerOpen, title: "Navigation drawer", overlayClassName: "bg-white bg-opacity-80", children: innerDrawer });
|
|
26949
26949
|
$[24] = innerDrawer;
|
|
26950
26950
|
$[25] = props.open;
|
|
26951
26951
|
$[26] = props.setDrawerOpen;
|