@firecms/core 3.0.0-canary.237 → 3.0.0-canary.239
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 +9 -10
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +9 -10
- package/dist/index.umd.js.map +1 -1
- package/package.json +5 -5
- package/src/components/EntityCollectionView/EntityCollectionView.tsx +2 -0
- package/src/core/EntityEditView.tsx +1 -2
- package/src/core/EntitySidePanel.tsx +2 -2
- package/src/form/components/LabelWithIcon.tsx +1 -1
- package/src/form/field_bindings/MarkdownEditorFieldBinding.tsx +1 -1
- package/src/form/field_bindings/MultiSelectFieldBinding.tsx +1 -1
- package/src/form/field_bindings/ReadOnlyFieldBinding.tsx +1 -1
- package/src/form/field_bindings/ReferenceFieldBinding.tsx +1 -1
- package/src/form/field_bindings/SelectFieldBinding.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firecms/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.0-canary.
|
|
4
|
+
"version": "3.0.0-canary.239",
|
|
5
5
|
"description": "Awesome Firebase/Firestore-based headless open-source CMS",
|
|
6
6
|
"funding": {
|
|
7
7
|
"url": "https://github.com/sponsors/firecmsco"
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"./package.json": "./package.json"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@firecms/editor": "^3.0.0-canary.
|
|
54
|
-
"@firecms/formex": "^3.0.0-canary.
|
|
55
|
-
"@firecms/ui": "^3.0.0-canary.
|
|
53
|
+
"@firecms/editor": "^3.0.0-canary.239",
|
|
54
|
+
"@firecms/formex": "^3.0.0-canary.239",
|
|
55
|
+
"@firecms/ui": "^3.0.0-canary.239",
|
|
56
56
|
"@hello-pangea/dnd": "^17.0.0",
|
|
57
57
|
"@radix-ui/react-portal": "^1.1.3",
|
|
58
58
|
"clsx": "^2.1.1",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"dist",
|
|
106
106
|
"src"
|
|
107
107
|
],
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "28e265bdb20ddd0d2eb813e9cbc2c082e17c2c65",
|
|
109
109
|
"publishConfig": {
|
|
110
110
|
"access": "public"
|
|
111
111
|
},
|
|
@@ -753,6 +753,8 @@ export const EntityCollectionView = React.memo(
|
|
|
753
753
|
equal(a.additionalFields, b.additionalFields) &&
|
|
754
754
|
equal(a.sideDialogWidth, b.sideDialogWidth) &&
|
|
755
755
|
equal(a.openEntityMode, b.openEntityMode) &&
|
|
756
|
+
equal(a.exportable, b.exportable) &&
|
|
757
|
+
equal(a.history, b.history) &&
|
|
756
758
|
equal(a.forceFilter, b.forceFilter);
|
|
757
759
|
}) as React.FunctionComponent<EntityCollectionViewProps<any>>
|
|
758
760
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useMemo, useState } from "react";
|
|
2
|
-
import { Entity, EntityCollection,
|
|
2
|
+
import { Entity, EntityCollection, EntityStatus, FireCMSPlugin, FormContext, User } from "../types";
|
|
3
3
|
|
|
4
4
|
import { CircularProgressCenter, EntityCollectionView, EntityView, ErrorBoundary } from "../components";
|
|
5
5
|
import {
|
|
@@ -214,7 +214,6 @@ export function EntityEditViewInner<M extends Record<string, any>>({
|
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
if (!entityId) {
|
|
217
|
-
console.error("INTERNAL: entityId is not defined");
|
|
218
217
|
return null;
|
|
219
218
|
}
|
|
220
219
|
|
|
@@ -50,8 +50,8 @@ export function EntitySidePanel(props: EntitySidePanelProps) {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
const onUpdate = (params: OnUpdateParams) => {
|
|
53
|
-
if (onUpdate) {
|
|
54
|
-
onUpdate(params);
|
|
53
|
+
if (props.onUpdate) {
|
|
54
|
+
props.onUpdate(params);
|
|
55
55
|
}
|
|
56
56
|
if (params.status !== "existing") {
|
|
57
57
|
sideEntityController.replace({
|
|
@@ -24,7 +24,7 @@ export const LabelWithIcon = forwardRef<HTMLDivElement, LabelWithIconProps>(
|
|
|
24
24
|
return (
|
|
25
25
|
<div
|
|
26
26
|
ref={ref}
|
|
27
|
-
className={cls("inline-flex items-center my-0.5",
|
|
27
|
+
className={cls("align-middle inline-flex items-center my-0.5",
|
|
28
28
|
small ? "gap-1" : "gap-2",
|
|
29
29
|
className)}
|
|
30
30
|
>
|
|
@@ -141,7 +141,7 @@ export function MarkdownEditorFieldBinding({
|
|
|
141
141
|
icon={getIconForProperty(property, "small")}
|
|
142
142
|
required={property.validation?.required}
|
|
143
143
|
title={property.name}
|
|
144
|
-
className={"h-
|
|
144
|
+
className={"h-6 text-text-secondary dark:text-text-secondary-dark ml-3.5"}/>
|
|
145
145
|
<div
|
|
146
146
|
className={cls("rounded-md", fieldBackgroundMixin, disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin)}>
|
|
147
147
|
{editor}
|
|
@@ -92,7 +92,7 @@ export function MultiSelectFieldBinding({
|
|
|
92
92
|
icon={getIconForProperty(property, "small")}
|
|
93
93
|
required={property.validation?.required}
|
|
94
94
|
title={property.name}
|
|
95
|
-
className={"h-
|
|
95
|
+
className={"h-6 text-text-secondary dark:text-text-secondary-dark ml-3.5"}/>}
|
|
96
96
|
onValueChange={(updatedValue: string[]) => {
|
|
97
97
|
let newValue: EnumType[] | null;
|
|
98
98
|
if (of && (of as ResolvedProperty)?.dataType === "number") {
|
|
@@ -39,7 +39,7 @@ export function ReadOnlyFieldBinding({
|
|
|
39
39
|
icon={getIconForProperty(property, "small")}
|
|
40
40
|
required={property.validation?.required}
|
|
41
41
|
title={property.name}
|
|
42
|
-
className={"h-
|
|
42
|
+
className={"h-6 text-text-secondary dark:text-text-secondary-dark ml-3.5"}/>
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
<div
|
|
@@ -90,7 +90,7 @@ function ReferenceFieldBindingInternal({
|
|
|
90
90
|
icon={getIconForProperty(property, "small")}
|
|
91
91
|
required={property.validation?.required}
|
|
92
92
|
title={property.name}
|
|
93
|
-
className={"h-
|
|
93
|
+
className={"h-6 text-text-secondary dark:text-text-secondary-dark ml-3.5"}/>}
|
|
94
94
|
|
|
95
95
|
{!collection && <ErrorView
|
|
96
96
|
error={"The specified collection does not exist. Check console"}/>}
|
|
@@ -62,7 +62,7 @@ export function SelectFieldBinding<T extends EnumType>({
|
|
|
62
62
|
icon={getIconForProperty(property, "small")}
|
|
63
63
|
required={property.validation?.required}
|
|
64
64
|
title={property.name}
|
|
65
|
-
className={"h-
|
|
65
|
+
className={"h-6 text-text-secondary dark:text-text-secondary-dark ml-3.5 my-0"}
|
|
66
66
|
/>
|
|
67
67
|
</PropertyIdCopyTooltip>}
|
|
68
68
|
endAdornment={
|