@guillotinaweb/react-gmi 0.30.1-alpha.1 → 0.30.1-alpha.2

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.
@@ -1,5 +1,3 @@
1
- /// <reference types="react" />
2
- import { ItemModel } from '../models';
3
1
  import { IndexSignature } from '../types/global';
4
2
  import { GuillotinaCommonObject } from '../types/guillotina';
5
3
  export interface GuillotinaGlobalState {
@@ -35,9 +33,3 @@ export declare function guillotinaReducer(state: GuillotinaGlobalState, action:
35
33
  type: GuillotinaReducerActionTypes;
36
34
  payload: IndexSignature;
37
35
  }): GuillotinaGlobalState;
38
- export interface IColumn {
39
- key: string;
40
- label: string;
41
- isSortable: string;
42
- child: (model: ItemModel, link: () => void, search: string) => React.ReactElement;
43
- }
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import { ItemModel } from '../models';
2
3
  import { IndexSignature } from './global';
3
4
  type ItemsPropertyObject = {
4
5
  '@id': string;
@@ -49,6 +50,7 @@ export type SearchItem = {
49
50
  parent_uuid: string;
50
51
  path: string;
51
52
  tid: string;
53
+ depth: number;
52
54
  description: string;
53
55
  access_roles: string[];
54
56
  access_users: string[];
@@ -243,10 +245,15 @@ export type ReturnSearchCompatible<T> = {
243
245
  items_total: number;
244
246
  };
245
247
  export interface ItemColumn {
246
- label: string;
247
248
  key: string;
249
+ label: string;
248
250
  isSortable?: boolean;
249
- child: React.ReactNode;
251
+ child: ({ model, link, search }: ItemColumnChild) => React.ReactNode;
252
+ }
253
+ export interface ItemColumnChild {
254
+ model: ItemModel;
255
+ link?: () => void;
256
+ search?: string;
250
257
  }
251
258
  export type GuillotinaUser = {
252
259
  user_roles: string[];
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.30.1-alpha.1",
2
+ "version": "0.30.1-alpha.2",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git@github.com:guillotinaweb/guillotina_react.git"