@firecms/core 3.0.0-rc.4 → 3.0.0-tw4.2
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 +14 -14
- 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 +4 -3
- 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 `yarn` and `yarn dev`
|
|
170
|
+
Then simply run `npm install` and `npm run dev` (or `yarn` and `yarn dev`)
|
|
171
171
|
|
|
172
172
|
## License
|
|
173
173
|
|
package/dist/index.es.js
CHANGED
|
@@ -4908,7 +4908,7 @@ function EmptyValue() {
|
|
|
4908
4908
|
const $ = c(1);
|
|
4909
4909
|
let t0;
|
|
4910
4910
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
4911
|
-
t0 = /* @__PURE__ */ jsx("div", { className: "rounded-full bg-surface-200 bg-opacity-30 dark:bg-opacity-20 w-5 h-2 inline-block" });
|
|
4911
|
+
t0 = /* @__PURE__ */ jsx("div", { className: "rounded-full bg-surface-200 bg-opacity-30 bg-surface-200/30 dark:bg-opacity-20 dark:bg-surface-200/20 w-5 h-2 inline-block" });
|
|
4912
4912
|
$[0] = t0;
|
|
4913
4913
|
} else {
|
|
4914
4914
|
t0 = $[0];
|
|
@@ -9733,9 +9733,9 @@ const EntityTableCell = React__default.memo(function EntityTableCell2(t0) {
|
|
|
9733
9733
|
}
|
|
9734
9734
|
const setOnHoverFalse = t10;
|
|
9735
9735
|
const borderClass = showError ? "border-red-500" : internalSaved ? "border-green-500" : isSelected ? "border-primary" : "border-transparent";
|
|
9736
|
-
const t11 = `flex relative h-full rounded-md p-${p} border border-4
|
|
9736
|
+
const t11 = `flex relative h-full rounded-md p-${p} border border-4 border-opacity-75`;
|
|
9737
9737
|
const t12 = onHover && !disabled ? "bg-surface-50 dark:bg-surface-900" : "";
|
|
9738
|
-
const t13 = saved ? "bg-surface-100
|
|
9738
|
+
const t13 = saved ? "bg-surface-100/75 dark:bg-surface-800/75" : "";
|
|
9739
9739
|
const t14 = hideOverflow ? "overflow-hidden" : "";
|
|
9740
9740
|
const t15 = isSelected ? "bg-surface-50 dark:bg-surface-900" : "";
|
|
9741
9741
|
let t16;
|
|
@@ -9803,7 +9803,7 @@ const EntityTableCell = React__default.memo(function EntityTableCell2(t0) {
|
|
|
9803
9803
|
}
|
|
9804
9804
|
let t24;
|
|
9805
9805
|
if ($[33] !== disabled || $[34] !== disabledTooltip || $[35] !== onHover) {
|
|
9806
|
-
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-
|
|
9806
|
+
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-text-disabled" }) }) });
|
|
9807
9807
|
$[33] = disabled;
|
|
9808
9808
|
$[34] = disabledTooltip;
|
|
9809
9809
|
$[35] = onHover;
|
|
@@ -10273,7 +10273,7 @@ const EntityCollectionRowActions = function EntityCollectionRowActions2({
|
|
|
10273
10273
|
const enableLocalChangesBackup = collection ? getLocalChangesBackup(collection) : false;
|
|
10274
10274
|
const hasDraft = enableLocalChangesBackup ? getEntityFromCache(fullPath + "/" + entity.id) : false;
|
|
10275
10275
|
const iconSize = largeLayout && (size === "m" || size === "l" || size == "xl") ? "medium" : "small";
|
|
10276
|
-
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) => {
|
|
10276
|
+
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 bg-surface-50/90 dark:bg-opacity-90 dark:bg-surface-900/90 z-10", frozen ? "sticky left-0" : ""), onClick: useCallback((event) => {
|
|
10277
10277
|
event.stopPropagation();
|
|
10278
10278
|
}, []), style: {
|
|
10279
10279
|
width,
|
|
@@ -10787,7 +10787,7 @@ const VirtualTableHeader = React__default.memo(function VirtualTableHeader2(t0)
|
|
|
10787
10787
|
const t3 = column.frozen ? "sticky left-0 z-10" : "relative z-0";
|
|
10788
10788
|
let t4;
|
|
10789
10789
|
if ($[4] !== t3) {
|
|
10790
|
-
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);
|
|
10790
|
+
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 hover:bg-surface-100/50 dark:hover:bg-opacity-50 dark:hover:bg-surface-800/50", t3);
|
|
10791
10791
|
$[4] = t3;
|
|
10792
10792
|
$[5] = t4;
|
|
10793
10793
|
} else {
|
|
@@ -11223,7 +11223,7 @@ const VirtualTableRow = React__default.memo(function VirtualTableRow2(t0) {
|
|
|
11223
11223
|
const onClick = t1;
|
|
11224
11224
|
let t2;
|
|
11225
11225
|
if ($[4] !== hoverRow || $[5] !== onRowClick || $[6] !== rowClassName || $[7] !== rowData) {
|
|
11226
|
-
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) : "", {
|
|
11226
|
+
t2 = cls("flex min-w-full text-sm border-b border-surface-200 dark:border-surface-800 border-opacity-40 border-surface-200/40 dark:border-opacity-40 dark:border-surface-800/40", rowClassName ? rowClassName(rowData) : "", {
|
|
11227
11227
|
"hover:bg-opacity-95": hoverRow,
|
|
11228
11228
|
"cursor-pointer": onRowClick
|
|
11229
11229
|
});
|
|
@@ -12254,7 +12254,7 @@ const SelectableTable = function SelectableTable2({
|
|
|
12254
12254
|
selectedCell
|
|
12255
12255
|
}), [setPopupCell, select, onValueChange, size, selectedCell]);
|
|
12256
12256
|
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) => {
|
|
12257
|
-
return highlightedRow?.(entity) ? "bg-surface-100 bg-opacity-75 dark:bg-surface-800 dark:bg-opacity-75" : "";
|
|
12257
|
+
return highlightedRow?.(entity) ? "bg-surface-100 bg-opacity-75 bg-surface-100/75 dark:bg-surface-800 dark:bg-opacity-75 dark:bg-surface-800/75" : "";
|
|
12258
12258
|
}, [highlightedRow]), className: "flex-grow", emptyComponent, endAdornment, AddColumnComponent }) }) });
|
|
12259
12259
|
};
|
|
12260
12260
|
function createFilterField({
|
|
@@ -22052,7 +22052,7 @@ function ArrayContainerItem(t0) {
|
|
|
22052
22052
|
storedProps,
|
|
22053
22053
|
updateItemCustomProps
|
|
22054
22054
|
} = t0;
|
|
22055
|
-
const t1 = `relative ${!isDragging ? "hover\\:bg-surface-accent-50 dark\\:hover\\:bg-surface-800 dark\\:hover\\:bg-opacity-20" : ""} rounded-md opacity-100`;
|
|
22055
|
+
const t1 = `relative ${!isDragging ? "hover\\:bg-surface-accent-50 dark\\:hover\\:bg-surface-800 dark\\:hover\\:bg-opacity-20 dark\\:hover\\:bg-surface-800/20" : ""} rounded-md opacity-100`;
|
|
22056
22056
|
let t2;
|
|
22057
22057
|
if ($[0] !== internalId || $[1] !== updateItemCustomProps) {
|
|
22058
22058
|
t2 = (props) => updateItemCustomProps(internalId, props);
|
|
@@ -22375,7 +22375,7 @@ function ReferenceWidget({
|
|
|
22375
22375
|
} else if (value?.isEntityReference && value?.isEntityReference()) {
|
|
22376
22376
|
child = /* @__PURE__ */ jsx(ReferencePreview, { reference: value, onClick: onEntryClick, disabled, previewProperties, size, includeId, includeEntityLink });
|
|
22377
22377
|
}
|
|
22378
|
-
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: [
|
|
22378
|
+
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 text-text-primary/50 dark:text-white dark:text-opacity-50 dark:text-white/50", className), children: [
|
|
22379
22379
|
child,
|
|
22380
22380
|
!value && /* @__PURE__ */ jsx("div", { className: "justify-center text-left", children: /* @__PURE__ */ jsxs(Button, { variant: "outlined", color: "primary", disabled, onClick: onEntryClick, children: [
|
|
22381
22381
|
"Edit ",
|
|
@@ -25263,7 +25263,7 @@ function DrawerNavigationItem(t0) {
|
|
|
25263
25263
|
const {
|
|
25264
25264
|
isActive
|
|
25265
25265
|
} = t52;
|
|
25266
|
-
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" : "");
|
|
25266
|
+
return cls("rounded-lg truncate", "hover:bg-surface-accent-300 hover:bg-opacity-75 hover:bg-surface-accent-300/75 dark:hover:bg-surface-accent-800 dark:hover:bg-opacity-75 dark:hover:bg-surface-accent-800/75 text-text-primary dark:text-surface-200 hover:text-surface-900 hover:dark:text-white hover:bg-surface-accent-300/75 dark:hover:bg-surface-accent-800/75", "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 bg-surface-accent-200/60 dark:bg-surface-800/50" : "");
|
|
25267
25267
|
};
|
|
25268
25268
|
$[4] = drawerOpen;
|
|
25269
25269
|
$[5] = t4;
|
|
@@ -25273,7 +25273,7 @@ function DrawerNavigationItem(t0) {
|
|
|
25273
25273
|
const t5 = drawerOpen ? "opacity-100" : "opacity-0 hidden";
|
|
25274
25274
|
let t6;
|
|
25275
25275
|
if ($[6] !== t5) {
|
|
25276
|
-
t6 = cls(t5, "ml-4 font-inherit
|
|
25276
|
+
t6 = cls("text-text-primary dark:text-surface-200", t5, "ml-4 font-inherit");
|
|
25277
25277
|
$[6] = t5;
|
|
25278
25278
|
$[7] = t6;
|
|
25279
25279
|
} else {
|
|
@@ -25421,7 +25421,7 @@ function DefaultDrawer(t0) {
|
|
|
25421
25421
|
}
|
|
25422
25422
|
let t10;
|
|
25423
25423
|
if ($[41] !== adminMenuOpen || $[42] !== buildGroupHeader || $[43] !== drawerOpen || $[44] !== navigationEntries || $[45] !== onClick || $[46] !== tooltipsOpen) {
|
|
25424
|
-
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: [
|
|
25424
|
+
t10 = (group_0) => /* @__PURE__ */ jsxs("div", { className: "bg-surface-50 dark:bg-surface-800 dark:bg-opacity-30 dark:bg-surface-800/30 bg-surface-50 dark:bg-surface-800/30 my-4 rounded-lg ml-3 mr-1", children: [
|
|
25425
25425
|
buildGroupHeader(group_0),
|
|
25426
25426
|
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))
|
|
25427
25427
|
] }, `drawer_group_${group_0}`);
|
|
@@ -26929,7 +26929,7 @@ function DrawerWrapper(props) {
|
|
|
26929
26929
|
}
|
|
26930
26930
|
let t12;
|
|
26931
26931
|
if ($[24] !== innerDrawer || $[25] !== props.open || $[26] !== props.setDrawerOpen) {
|
|
26932
|
-
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 });
|
|
26932
|
+
t12 = /* @__PURE__ */ jsx(Sheet, { side: "left", transparent: true, open: props.open, onOpenChange: props.setDrawerOpen, title: "Navigation drawer", overlayClassName: "bg-white bg-opacity-80 bg-white/80", children: innerDrawer });
|
|
26933
26933
|
$[24] = innerDrawer;
|
|
26934
26934
|
$[25] = props.open;
|
|
26935
26935
|
$[26] = props.setDrawerOpen;
|