@firecms/core 3.0.0-canary.125 → 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 +3 -10
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +3 -10
- package/dist/index.umd.js.map +1 -1
- package/package.json +5 -5
- package/src/components/EntityCollectionTable/fields/TableReferenceField.tsx +0 -1
- package/src/components/EntityCollectionTable/fields/TableStorageUpload.tsx +1 -1
- package/src/components/EntityCollectionView/EntityCollectionView.tsx +0 -1
- 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 +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/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.126",
|
|
5
5
|
"description": "Awesome Firebase/Firestore-based headless open-source CMS",
|
|
6
6
|
"funding": {
|
|
7
7
|
"url": "https://github.com/sponsors/firecmsco"
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"./package.json": "./package.json"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@firecms/editor": "^3.0.0-canary.
|
|
50
|
-
"@firecms/formex": "^3.0.0-canary.
|
|
51
|
-
"@firecms/ui": "^3.0.0-canary.
|
|
49
|
+
"@firecms/editor": "^3.0.0-canary.126",
|
|
50
|
+
"@firecms/formex": "^3.0.0-canary.126",
|
|
51
|
+
"@firecms/ui": "^3.0.0-canary.126",
|
|
52
52
|
"@hello-pangea/dnd": "^16.6.0",
|
|
53
53
|
"@radix-ui/react-portal": "^1.1.1",
|
|
54
54
|
"clsx": "^2.1.1",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"dist",
|
|
101
101
|
"src"
|
|
102
102
|
],
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "122cb2b218a404444b4580e8f561f671c8b785a9",
|
|
104
104
|
"publishConfig": {
|
|
105
105
|
"access": "public"
|
|
106
106
|
},
|
|
@@ -67,7 +67,6 @@ export const TableReferenceFieldInternal = React.memo(
|
|
|
67
67
|
}, [updateValue]);
|
|
68
68
|
|
|
69
69
|
const onMultipleEntitiesSelected = useCallback((entities: Entity<any>[]) => {
|
|
70
|
-
console.log("onMultipleEntitiesSelected", entities);
|
|
71
70
|
updateValue(entities.map((e) => getReferenceFrom(e)));
|
|
72
71
|
}, [updateValue]);
|
|
73
72
|
|
|
@@ -179,7 +179,7 @@ function StorageUpload({
|
|
|
179
179
|
onDropRejected: (fileRejections, event) => {
|
|
180
180
|
for (const fileRejection of fileRejections) {
|
|
181
181
|
for (const error of fileRejection.errors) {
|
|
182
|
-
console.
|
|
182
|
+
console.error("Error uploading file: ", error);
|
|
183
183
|
if (error.code === "file-too-large") {
|
|
184
184
|
snackbarContext.open({
|
|
185
185
|
type: "error",
|
|
@@ -207,7 +207,6 @@ export const EntityCollectionView = React.memo(
|
|
|
207
207
|
}, [tableController.setPopupCell]);
|
|
208
208
|
|
|
209
209
|
const onEntityClick = useCallback((clickedEntity: Entity<M>) => {
|
|
210
|
-
console.log("Entity clicked", clickedEntity)
|
|
211
210
|
const collection = collectionRef.current;
|
|
212
211
|
setHighlightedEntity(clickedEntity);
|
|
213
212
|
analyticsController.onAnalyticsEvent?.("edit_entity_clicked", {
|
|
@@ -93,7 +93,7 @@ export function DefaultDrawer({
|
|
|
93
93
|
.map((view, index) =>
|
|
94
94
|
<DrawerNavigationItem
|
|
95
95
|
key={`navigation_${index}`}
|
|
96
|
-
icon={<IconForView collectionOrView={view.collection ?? view.view}/>}
|
|
96
|
+
icon={<IconForView collectionOrView={view.collection ?? view.view} size={"small"}/>}
|
|
97
97
|
tooltipsOpen={tooltipsOpen}
|
|
98
98
|
adminMenuOpen={adminMenuOpen}
|
|
99
99
|
drawerOpen={drawerOpen}
|
|
@@ -299,7 +299,6 @@ export function EntityEditViewInner<M extends Record<string, any>>({
|
|
|
299
299
|
onUpdate({ entity: updatedEntity });
|
|
300
300
|
|
|
301
301
|
if (closeAfterSave) {
|
|
302
|
-
console.log("Closing side dialog")
|
|
303
302
|
sideDialogContext.setBlocked(false);
|
|
304
303
|
sideDialogContext.close(true);
|
|
305
304
|
onClose?.();
|
package/src/core/SideDialogs.tsx
CHANGED
|
@@ -182,7 +182,7 @@ function FileDropComponent({
|
|
|
182
182
|
onDropRejected: (fileRejections, event) => {
|
|
183
183
|
for (const fileRejection of fileRejections) {
|
|
184
184
|
for (const error of fileRejection.errors) {
|
|
185
|
-
console.
|
|
185
|
+
console.error("Error uploading file: ", error);
|
|
186
186
|
if (error.code === "file-too-large") {
|
|
187
187
|
snackbarContext.open({
|
|
188
188
|
type: "error",
|