@guillotinaweb/react-gmi 0.32.2 → 0.33.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.
@@ -54,6 +54,9 @@ export type SearchItem = {
54
54
  description: string;
55
55
  access_roles: string[];
56
56
  access_users: string[];
57
+ contributors: string[];
58
+ tags: string[];
59
+ creators: string[];
57
60
  } & ItemsPropertyObject;
58
61
  export interface IBehaviorDublinCore {
59
62
  title: string;
@@ -244,14 +247,14 @@ export type ReturnSearchCompatible<T> = {
244
247
  items: T[];
245
248
  items_total: number;
246
249
  };
247
- export interface ItemColumn {
250
+ export interface ItemColumn<T extends SearchItem | GuillotinaCommonObject = SearchItem | GuillotinaCommonObject> {
248
251
  key: string;
249
252
  label: string;
250
253
  isSortable?: boolean;
251
- child: ({ model, link, search }: ItemColumnChild) => React.ReactNode;
254
+ child: ({ model, link, search }: ItemColumnChild<T>) => React.ReactNode;
252
255
  }
253
- export interface ItemColumnChild {
254
- model: ItemModel;
256
+ export interface ItemColumnChild<T extends SearchItem | GuillotinaCommonObject = SearchItem | GuillotinaCommonObject> {
257
+ model: ItemModel<T>;
255
258
  link?: () => void;
256
259
  search?: string;
257
260
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.32.2",
2
+ "version": "0.33.0",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git@github.com:guillotinaweb/guillotina_react.git"
@@ -31,8 +31,8 @@
31
31
  "uuid": "9.0.1"
32
32
  },
33
33
  "peerDependencies": {
34
- "react": "^16.12.0 || ^17.0.0 || ^18.0.0",
35
- "react-dom": "^16.12.0 || ^17.0.0 || ^18.0.0"
34
+ "react": "^16.12.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
35
+ "react-dom": "^16.12.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@babel/cli": "7.12.10",