@guillotinaweb/react-gmi 0.33.0 → 0.34.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.
@@ -247,13 +247,14 @@ export type ReturnSearchCompatible<T> = {
247
247
  items: T[];
248
248
  items_total: number;
249
249
  };
250
- export interface ItemColumn<T extends SearchItem | GuillotinaCommonObject = SearchItem | GuillotinaCommonObject> {
250
+ export type SearchOrCommonObject = SearchItem | GuillotinaCommonObject;
251
+ export interface ItemColumn<T extends SearchOrCommonObject = SearchOrCommonObject> {
251
252
  key: string;
252
253
  label: string;
253
254
  isSortable?: boolean;
254
255
  child: ({ model, link, search }: ItemColumnChild<T>) => React.ReactNode;
255
256
  }
256
- export interface ItemColumnChild<T extends SearchItem | GuillotinaCommonObject = SearchItem | GuillotinaCommonObject> {
257
+ export interface ItemColumnChild<T extends SearchOrCommonObject = SearchOrCommonObject> {
257
258
  model: ItemModel<T>;
258
259
  link?: () => void;
259
260
  search?: string;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.33.0",
2
+ "version": "0.34.0",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git@github.com:guillotinaweb/guillotina_react.git"