@firecms/core 3.0.0-canary.79 → 3.0.0-canary.80
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 +132 -130
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/dist/types/plugins.d.ts +3 -1
- package/package.json +4 -4
- package/src/components/EntityCollectionView/EntityCollectionView.tsx +5 -2
- package/src/types/plugins.tsx +3 -1
package/dist/types/plugins.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from "react";
|
|
2
2
|
import { FireCMSContext } from "./firecms_context";
|
|
3
|
-
import { CollectionActionsProps, EntityCollection } from "./collections";
|
|
3
|
+
import { CollectionActionsProps, EntityCollection, EntityTableController } from "./collections";
|
|
4
4
|
import { User } from "./user";
|
|
5
5
|
import { FieldProps, FormContext } from "./fields";
|
|
6
6
|
import { CMSType, Property } from "./properties";
|
|
@@ -109,6 +109,7 @@ export type FireCMSPlugin<PROPS = any, FORM_PROPS = any, EC extends EntityCollec
|
|
|
109
109
|
parentCollectionIds: string[];
|
|
110
110
|
onHover: boolean;
|
|
111
111
|
collection: EC;
|
|
112
|
+
tableController: EntityTableController;
|
|
112
113
|
}>;
|
|
113
114
|
/**
|
|
114
115
|
* If you add this callback to your plugin, an add button will be added to the collection table.
|
|
@@ -118,6 +119,7 @@ export type FireCMSPlugin<PROPS = any, FORM_PROPS = any, EC extends EntityCollec
|
|
|
118
119
|
fullPath: string;
|
|
119
120
|
parentCollectionIds: string[];
|
|
120
121
|
collection: EC;
|
|
122
|
+
tableController: EntityTableController;
|
|
121
123
|
}>;
|
|
122
124
|
};
|
|
123
125
|
form?: {
|
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.80",
|
|
5
5
|
"description": "Awesome Firebase/Firestore-based headless open-source CMS",
|
|
6
6
|
"funding": {
|
|
7
7
|
"url": "https://github.com/sponsors/firecmsco"
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"./package.json": "./package.json"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@firecms/formex": "^3.0.0-canary.
|
|
50
|
-
"@firecms/ui": "^3.0.0-canary.
|
|
49
|
+
"@firecms/formex": "^3.0.0-canary.80",
|
|
50
|
+
"@firecms/ui": "^3.0.0-canary.80",
|
|
51
51
|
"@fontsource/jetbrains-mono": "^5.0.20",
|
|
52
52
|
"@hello-pangea/dnd": "^16.6.0",
|
|
53
53
|
"@radix-ui/react-portal": "^1.1.1",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"dist",
|
|
103
103
|
"src"
|
|
104
104
|
],
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "e41e7401fda1929c44300ada0b993e5b0703b7a1",
|
|
106
106
|
"publishConfig": {
|
|
107
107
|
"access": "public"
|
|
108
108
|
},
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
CollectionSize,
|
|
8
8
|
Entity,
|
|
9
9
|
EntityAction,
|
|
10
|
-
EntityCollection,
|
|
10
|
+
EntityCollection, EntityTableController,
|
|
11
11
|
FilterValues,
|
|
12
12
|
PartialEntityCollection,
|
|
13
13
|
PropertyOrBuilder,
|
|
@@ -266,6 +266,7 @@ export const EntityCollectionView = React.memo(
|
|
|
266
266
|
fullPath: string,
|
|
267
267
|
parentCollectionIds: string[],
|
|
268
268
|
collection: EntityCollection;
|
|
269
|
+
tableController: EntityTableController;
|
|
269
270
|
}> | undefined
|
|
270
271
|
|
|
271
272
|
// we are only using the first plugin that implements this
|
|
@@ -564,6 +565,7 @@ export const EntityCollectionView = React.memo(
|
|
|
564
565
|
property={property}
|
|
565
566
|
fullPath={fullPath}
|
|
566
567
|
collection={collection}
|
|
568
|
+
tableController={tableController}
|
|
567
569
|
parentCollectionIds={parentCollectionIds ?? []}/>;
|
|
568
570
|
})}
|
|
569
571
|
</>;
|
|
@@ -574,7 +576,8 @@ export const EntityCollectionView = React.memo(
|
|
|
574
576
|
if (typeof AddColumnComponent === "function")
|
|
575
577
|
return <AddColumnComponent fullPath={fullPath}
|
|
576
578
|
parentCollectionIds={parentCollectionIds ?? []}
|
|
577
|
-
collection={collection}
|
|
579
|
+
collection={collection}
|
|
580
|
+
tableController={tableController}/>;
|
|
578
581
|
return null;
|
|
579
582
|
}
|
|
580
583
|
: undefined;
|
package/src/types/plugins.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from "react";
|
|
2
2
|
|
|
3
3
|
import { FireCMSContext } from "./firecms_context";
|
|
4
|
-
import { CollectionActionsProps, EntityCollection } from "./collections";
|
|
4
|
+
import { CollectionActionsProps, EntityCollection, EntityTableController } from "./collections";
|
|
5
5
|
import { User } from "./user";
|
|
6
6
|
import { FieldProps, FormContext } from "./fields";
|
|
7
7
|
import { CMSType, Property } from "./properties";
|
|
@@ -130,6 +130,7 @@ export type FireCMSPlugin<PROPS = any, FORM_PROPS = any, EC extends EntityCollec
|
|
|
130
130
|
parentCollectionIds: string[],
|
|
131
131
|
onHover: boolean,
|
|
132
132
|
collection: EC;
|
|
133
|
+
tableController: EntityTableController;
|
|
133
134
|
}>;
|
|
134
135
|
|
|
135
136
|
/**
|
|
@@ -140,6 +141,7 @@ export type FireCMSPlugin<PROPS = any, FORM_PROPS = any, EC extends EntityCollec
|
|
|
140
141
|
fullPath: string,
|
|
141
142
|
parentCollectionIds: string[],
|
|
142
143
|
collection: EC;
|
|
144
|
+
tableController: EntityTableController;
|
|
143
145
|
}>;
|
|
144
146
|
}
|
|
145
147
|
|