jamespot-react-core 1.1.13 → 1.1.20

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.
Files changed (54) hide show
  1. package/.github/workflows/deploy-dev-branches.yml +1 -1
  2. package/.github/workflows/increment-npm-version.yml +1 -1
  3. package/.github/workflows/npm-package.yml +1 -1
  4. package/build/App.d.ts +9 -6
  5. package/build/app.bundle.js +255 -236
  6. package/build/app.bundle.js.map +1 -1
  7. package/build/components/NoMatch.component.d.ts +1 -0
  8. package/build/components/types.d.ts +0 -1
  9. package/build/displayer/components/DisplaySingleValue.component.d.ts +0 -1
  10. package/build/displayer/list/formatter.d.ts +10 -112
  11. package/build/displayer/types.d.ts +2 -54
  12. package/build/redux/slice/Application.slice.d.ts +0 -6
  13. package/build/redux/slice/Article.slice.d.ts +1 -7
  14. package/build/redux/slice/Model.slice.d.ts +0 -6
  15. package/build/redux/slice/Toast.slice.d.ts +1 -7
  16. package/build/redux/slice/User.slice.d.ts +1 -7
  17. package/build/redux/store.d.ts +2 -9
  18. package/build/utils/router.d.ts +13 -0
  19. package/build/utils/types.d.ts +7 -14
  20. package/ext-component-list.json +20 -8
  21. package/package.json +8 -7
  22. package/src/App.tsx +41 -54
  23. package/src/components/ExtensionProvider.component.tsx +5 -3
  24. package/src/components/IfAppIsActivated.component.tsx +2 -1
  25. package/src/components/NoMatch.component.tsx +5 -0
  26. package/src/components/types.ts +0 -1
  27. package/src/displayer/DisplayAttribute.component.tsx +4 -2
  28. package/src/displayer/components/DisplaySingleValue.component.tsx +0 -6
  29. package/src/displayer/list/formatter.tsx +14 -182
  30. package/src/displayer/types.ts +2 -60
  31. package/src/displayer/useDisplay.ts +17 -33
  32. package/src/redux/store.tsx +21 -27
  33. package/src/utils/router.tsx +46 -0
  34. package/src/utils/types.ts +7 -15
  35. package/build/294.bundle.js +0 -2
  36. package/build/294.bundle.js.map +0 -1
  37. package/build/715.bundle.js +0 -2
  38. package/build/715.bundle.js.map +0 -1
  39. package/build/76.bundle.js +0 -2
  40. package/build/76.bundle.js.map +0 -1
  41. package/build/862.bundle.js +0 -2
  42. package/build/862.bundle.js.map +0 -1
  43. package/build/955.bundle.js +0 -2
  44. package/build/955.bundle.js.map +0 -1
  45. package/build/components/AppStateLoader.component.d.ts +0 -7
  46. package/build/components/index.d.ts +0 -1
  47. package/build/displayer/DisplayForm.component.d.ts +0 -19
  48. package/build/displayer/Empty.d.ts +0 -1
  49. package/build/redux/slice/AppState.slice.d.ts +0 -29
  50. package/src/components/AppStateLoader.component.tsx +0 -54
  51. package/src/components/index.tsx +0 -31
  52. package/src/displayer/DisplayForm.component.tsx +0 -78
  53. package/src/displayer/Empty.tsx +0 -4
  54. package/src/redux/slice/AppState.slice.ts +0 -25
@@ -0,0 +1 @@
1
+ export declare const NoMatch: () => JSX.Element;
@@ -1,3 +1,2 @@
1
1
  export { ExtensionProviderProps } from './ExtensionProvider.component';
2
2
  export { IfAppIsActivatedProps } from './IfAppIsActivated.component';
3
- export { AppStateLoaderProps } from './AppStateLoader.component';
@@ -1,3 +1,2 @@
1
1
  import { RenderAttributeProps } from 'displayer/types';
2
2
  export declare const DisplaySingleValue: (props: RenderAttributeProps) => JSX.Element | null;
3
- export declare const DisplayDate: ({ object, attribute }: RenderAttributeProps) => JSX.Element;
@@ -1,25 +1,10 @@
1
1
  import * as React from 'react';
2
- import { DisplayInputComponentProps, FieldConfiguration } from '../types';
3
- export declare function formatDate<T extends string>(configuration: FieldConfiguration<T>): {
4
- accessor: T;
5
- components: {
6
- render: ({ object, attribute }: import("../types").RenderAttributeProps) => JSX.Element;
7
- wrapper: ({ children }: {
8
- children: React.FunctionComponent<any>;
9
- }) => JSX.Element;
10
- element: ({ children }: {
11
- children: React.FunctionComponent<any>;
12
- }) => JSX.Element;
13
- input: (props: DisplayInputComponentProps) => JSX.Element;
14
- };
15
- label: string;
16
- description?: string | undefined;
17
- widget: import("../types").Widget;
18
- name: T;
19
- mandatory: boolean;
20
- };
2
+ import { FieldConfiguration } from '../types';
21
3
  export declare function formatString<T extends string>(configuration: FieldConfiguration<T>): {
4
+ name: T;
5
+ label: string;
22
6
  accessor: T;
7
+ widget: import("../types").Widget;
23
8
  components: {
24
9
  render: (props: import("../types").RenderAttributeProps) => JSX.Element | null;
25
10
  wrapper: ({ children }: {
@@ -28,70 +13,13 @@ export declare function formatString<T extends string>(configuration: FieldConfi
28
13
  element: ({ children }: {
29
14
  children: React.FunctionComponent<any>;
30
15
  }) => JSX.Element;
31
- input: (props: DisplayInputComponentProps) => JSX.Element;
32
16
  };
33
- label: string;
34
- description?: string | undefined;
35
- widget: import("../types").Widget;
36
- name: T;
37
- mandatory: boolean;
38
17
  };
39
18
  export declare function formatNumber<T extends string>(configuration: FieldConfiguration<T>): {
40
- accessor: T;
41
- components: {
42
- render: (props: import("../types").RenderAttributeProps) => JSX.Element | null;
43
- wrapper: ({ children }: {
44
- children: React.FunctionComponent<any>;
45
- }) => JSX.Element;
46
- element: ({ children }: {
47
- children: React.FunctionComponent<any>;
48
- }) => JSX.Element;
49
- input: (props: DisplayInputComponentProps) => JSX.Element;
50
- };
51
- label: string;
52
- description?: string | undefined;
53
- widget: import("../types").Widget;
54
19
  name: T;
55
- mandatory: boolean;
56
- };
57
- export declare function formatTaxonomy<T extends string>(configuration: FieldConfiguration<T>): {
58
- accessor: T;
59
- components: {
60
- render: (props: import("../types").RenderAttributeProps) => JSX.Element | null;
61
- wrapper: ({ children }: {
62
- children: React.FunctionComponent<any>;
63
- }) => JSX.Element;
64
- element: ({ children }: {
65
- children: React.FunctionComponent<any>;
66
- }) => JSX.Element;
67
- input: (props: DisplayInputComponentProps) => JSX.Element;
68
- };
69
20
  label: string;
70
- description?: string | undefined;
71
- widget: import("../types").Widget;
72
- name: T;
73
- mandatory: boolean;
74
- };
75
- export declare function formatOrientedlinks<T extends string>(configuration: FieldConfiguration<T>): {
76
21
  accessor: T;
77
- components: {
78
- render: (props: import("../types").RenderAttributeProps) => JSX.Element | null;
79
- wrapper: ({ children }: {
80
- children: React.FunctionComponent<any>;
81
- }) => JSX.Element;
82
- element: ({ children }: {
83
- children: React.FunctionComponent<any>;
84
- }) => JSX.Element;
85
- input: ({ widget, ...props }: DisplayInputComponentProps) => JSX.Element;
86
- };
87
- label: string;
88
- description?: string | undefined;
89
22
  widget: import("../types").Widget;
90
- name: T;
91
- mandatory: boolean;
92
- };
93
- export declare function formatUri<T extends string>(configuration: FieldConfiguration<T>): {
94
- accessor: T;
95
23
  components: {
96
24
  render: (props: import("../types").RenderAttributeProps) => JSX.Element | null;
97
25
  wrapper: ({ children }: {
@@ -100,34 +28,13 @@ export declare function formatUri<T extends string>(configuration: FieldConfigur
100
28
  element: ({ children }: {
101
29
  children: React.FunctionComponent<any>;
102
30
  }) => JSX.Element;
103
- input: ({ widget, ...props }: DisplayInputComponentProps) => JSX.Element;
104
31
  };
105
- label: string;
106
- description?: string | undefined;
107
- widget: import("../types").Widget;
108
- name: T;
109
- mandatory: boolean;
110
32
  };
111
- export declare function formatRadio<T extends string>(configuration: FieldConfiguration<T>): {
112
- accessor: T;
113
- components: {
114
- render: (props: import("../types").RenderAttributeProps) => JSX.Element | null;
115
- wrapper: ({ children }: {
116
- children: React.FunctionComponent<any>;
117
- }) => JSX.Element;
118
- element: ({ children }: {
119
- children: React.FunctionComponent<any>;
120
- }) => JSX.Element;
121
- input: ({ widget, ...props }: DisplayInputComponentProps) => JSX.Element;
122
- };
123
- label: string;
124
- description?: string | undefined;
125
- widget: import("../types").Widget;
33
+ export declare function formatTaxonomy<T extends string>(configuration: FieldConfiguration<T>): {
126
34
  name: T;
127
- mandatory: boolean;
128
- };
129
- export declare function formatCheckbox<T extends string>(configuration: FieldConfiguration<T>): {
35
+ label: string;
130
36
  accessor: T;
37
+ widget: import("../types").Widget;
131
38
  components: {
132
39
  render: (props: import("../types").RenderAttributeProps) => JSX.Element | null;
133
40
  wrapper: ({ children }: {
@@ -136,16 +43,13 @@ export declare function formatCheckbox<T extends string>(configuration: FieldCon
136
43
  element: ({ children }: {
137
44
  children: React.FunctionComponent<any>;
138
45
  }) => JSX.Element;
139
- input: ({ widget, ...props }: DisplayInputComponentProps) => JSX.Element;
140
46
  };
141
- label: string;
142
- description?: string | undefined;
143
- widget: import("../types").Widget;
144
- name: T;
145
- mandatory: boolean;
146
47
  };
147
48
  export declare function formatDefault<T extends string>(configuration: FieldConfiguration<T>): {
49
+ name: T;
50
+ label: string;
148
51
  accessor: T;
52
+ widget: import("../types").Widget;
149
53
  components: {
150
54
  render: (props: import("../types").RenderAttributeProps) => JSX.Element | null;
151
55
  wrapper: ({ children }: {
@@ -154,11 +58,5 @@ export declare function formatDefault<T extends string>(configuration: FieldConf
154
58
  element: ({ children }: {
155
59
  children: React.FunctionComponent<any>;
156
60
  }) => JSX.Element;
157
- input: (props: DisplayInputComponentProps) => JSX.Element;
158
61
  };
159
- label: string;
160
- description?: string | undefined;
161
- widget: import("../types").Widget;
162
- name: T;
163
- mandatory: boolean;
164
62
  };
@@ -1,5 +1,3 @@
1
- import * as React from 'react';
2
- import { UseFormReset } from 'react-hook-form';
3
1
  export declare type JObject<T extends string> = Record<T, any> & {
4
2
  title: string;
5
3
  id: string;
@@ -16,9 +14,6 @@ export declare type WidgetDate = {
16
14
  type: 'date';
17
15
  format: string;
18
16
  };
19
- export declare type WidgetDatetime = {
20
- type: 'datetime';
21
- };
22
17
  export declare type WidgetSelect<U extends string = string> = {
23
18
  type: 'select';
24
19
  options: Record<U, string>;
@@ -40,10 +35,6 @@ export declare type WidgetUrl = {
40
35
  export declare type WidgetRefUser = {
41
36
  type: 'refUser';
42
37
  };
43
- export declare type WidgetRadio = {
44
- type: 'radio';
45
- options: Record<string, string>;
46
- };
47
38
  export declare type WidgetCheckbox = {
48
39
  type: 'checkbox';
49
40
  options: Record<string, string>;
@@ -54,51 +45,22 @@ export declare type WidgetTaxonomy = {
54
45
  idTaxonomy: string;
55
46
  };
56
47
  };
57
- export declare type WidgetOrientedlinks = {
58
- type: 'orientedlinks';
59
- params: {
60
- 'jcomplete-multiple': '0' | '1';
61
- showAdd: '0' | '1';
62
- supportedTypes: Array<string>;
63
- };
64
- };
65
- export declare type WidgetUri = {
66
- type: 'uri';
67
- params: {
68
- class: string;
69
- 'jcomplete-url': string;
70
- type: string;
71
- };
72
- };
73
- export declare type Widget = WidgetText | WidgetNumber | WidgetDate | WidgetDatetime | WidgetSelect | WidgetEmail | WidgetUrl | WidgetRefUser | WidgetRadio | WidgetCheckbox | WidgetOrientedlinks | WidgetTaxonomy | WidgetUri;
48
+ export declare type Widget = WidgetText | WidgetNumber | WidgetDate | WidgetSelect | WidgetEmail | WidgetUrl | WidgetRefUser | WidgetCheckbox | WidgetTaxonomy;
74
49
  export declare type FieldConfiguration<T extends string> = {
75
50
  label: string;
76
- description?: string;
77
51
  widget: Widget;
78
52
  name: T;
79
- mandatory: boolean;
80
53
  };
81
54
  export declare type Configuration<T extends string> = FieldConfiguration<T>;
82
- export declare type DisplayInputComponentProps = {
83
- control: any;
84
- label: string;
85
- description?: string;
86
- name: string;
87
- widget: Widget;
88
- mandatory: boolean;
89
- };
90
55
  export declare type DisplayElementComponent = {
91
56
  render: React.FunctionComponent<RenderAttributeProps>;
92
57
  wrapper: React.FunctionComponent<any>;
93
58
  element: React.FunctionComponent<any>;
94
- input: React.FunctionComponent<DisplayInputComponentProps>;
95
59
  };
96
60
  export declare type DisplayerElement = {
97
61
  name: string;
98
62
  label: string;
99
- description?: string;
100
63
  accessor: string;
101
- mandatory: boolean;
102
64
  widget: Widget;
103
65
  components: DisplayElementComponent;
104
66
  };
@@ -111,8 +73,6 @@ declare type DisplayAttributeComponentOverrideProps = {
111
73
  wrapper: React.FunctionComponent<any>;
112
74
  } | {
113
75
  element: React.FunctionComponent<any>;
114
- } | {
115
- input: React.FunctionComponent<any>;
116
76
  };
117
77
  export declare type DisplayAttributesProps = {
118
78
  object: any;
@@ -123,17 +83,5 @@ export declare type RenderAttributeProps = {
123
83
  object: any;
124
84
  attribute: DisplayerElement;
125
85
  };
126
- export declare type DisplayFormProps = {
127
- object: any;
128
- componentsOverride?: Record<string, DisplayAttributeComponentOverrideProps>;
129
- attributesName: string[];
130
- onSubmit: any;
131
- };
132
- export declare type DisplayFormRef = {
133
- reset: UseFormReset<any>;
134
- };
135
- export declare type RenderInputProps = DisplayerElement & {
136
- control: any;
137
- };
138
- export declare type Displayer = Array<DisplayerElement>;
86
+ export declare type Displayer = Array<DisplayerElement | undefined>;
139
87
  export {};
@@ -30,12 +30,6 @@ export declare const applicationSelector: import("@reduxjs/toolkit").EntitySelec
30
30
  users: import("@reduxjs/toolkit").EntityState<import("./User.slice").User>;
31
31
  articles: import("@reduxjs/toolkit").EntityState<import("./Article.slice").Article>;
32
32
  }>;
33
- appState: {
34
- [key: string]: {
35
- isLoading: boolean;
36
- error?: object | undefined;
37
- };
38
- };
39
33
  form: import("redux-form").FormStateMap;
40
34
  toasts: import("@reduxjs/toolkit").EntityState<import("./Toast.slice").ToastEntity>;
41
35
  }>>;
@@ -30,16 +30,10 @@ export declare const articleSlice: import("@reduxjs/toolkit").Slice<import("@red
30
30
  export declare const articlesSelector: import("@reduxjs/toolkit").EntitySelectors<Article, import("redux").CombinedState<{
31
31
  entities: import("redux").CombinedState<{
32
32
  applications: import("@reduxjs/toolkit").EntityState<import("../../utils/types").Application>;
33
- models: import("@reduxjs/toolkit").EntityState<import("../../utils/types").Model<string>>;
33
+ models: import("@reduxjs/toolkit").EntityState<import("../../App").Model<string>>;
34
34
  users: import("@reduxjs/toolkit").EntityState<import("./User.slice").User>;
35
35
  articles: import("@reduxjs/toolkit").EntityState<Article>;
36
36
  }>;
37
- appState: {
38
- [key: string]: {
39
- isLoading: boolean;
40
- error?: object | undefined;
41
- };
42
- };
43
37
  form: import("redux-form").FormStateMap;
44
38
  toasts: import("@reduxjs/toolkit").EntityState<import("./Toast.slice").ToastEntity>;
45
39
  }>>;
@@ -30,12 +30,6 @@ export declare const modelSelector: import("@reduxjs/toolkit").EntitySelectors<M
30
30
  users: import("@reduxjs/toolkit").EntityState<import("./User.slice").User>;
31
31
  articles: import("@reduxjs/toolkit").EntityState<import("./Article.slice").Article>;
32
32
  }>;
33
- appState: {
34
- [key: string]: {
35
- isLoading: boolean;
36
- error?: object | undefined;
37
- };
38
- };
39
33
  form: import("redux-form").FormStateMap;
40
34
  toasts: import("@reduxjs/toolkit").EntityState<import("./Toast.slice").ToastEntity>;
41
35
  }>>;
@@ -39,16 +39,10 @@ export declare const toasts: {
39
39
  export declare const toastSelector: import("@reduxjs/toolkit").EntitySelectors<ToastEntity, import("redux").CombinedState<{
40
40
  entities: import("redux").CombinedState<{
41
41
  applications: import("@reduxjs/toolkit").EntityState<import("../../utils/types").Application>;
42
- models: import("@reduxjs/toolkit").EntityState<import("../../utils/types").Model<string>>;
42
+ models: import("@reduxjs/toolkit").EntityState<import("../../App").Model<string>>;
43
43
  users: import("@reduxjs/toolkit").EntityState<import("./User.slice").User>;
44
44
  articles: import("@reduxjs/toolkit").EntityState<import("./Article.slice").Article>;
45
45
  }>;
46
- appState: {
47
- [key: string]: {
48
- isLoading: boolean;
49
- error?: object | undefined;
50
- };
51
- };
52
46
  form: import("redux-form").FormStateMap;
53
47
  toasts: import("@reduxjs/toolkit").EntityState<ToastEntity>;
54
48
  }>>;
@@ -30,16 +30,10 @@ export declare const userSlice: import("@reduxjs/toolkit").Slice<import("@reduxj
30
30
  export declare const usersSelector: import("@reduxjs/toolkit").EntitySelectors<User, import("redux").CombinedState<{
31
31
  entities: import("redux").CombinedState<{
32
32
  applications: import("@reduxjs/toolkit").EntityState<import("../../utils/types").Application>;
33
- models: import("@reduxjs/toolkit").EntityState<import("../../utils/types").Model<string>>;
33
+ models: import("@reduxjs/toolkit").EntityState<import("../../App").Model<string>>;
34
34
  users: import("@reduxjs/toolkit").EntityState<User>;
35
35
  articles: import("@reduxjs/toolkit").EntityState<import("./Article.slice").Article>;
36
36
  }>;
37
- appState: {
38
- [key: string]: {
39
- isLoading: boolean;
40
- error?: object | undefined;
41
- };
42
- };
43
37
  form: import("redux-form").FormStateMap;
44
38
  toasts: import("@reduxjs/toolkit").EntityState<import("./Toast.slice").ToastEntity>;
45
39
  }>>;
@@ -5,24 +5,18 @@ export interface JInjectStore extends ReturnType<typeof createStore> {
5
5
  add: (key: string, asyncReducer: Reducer) => void;
6
6
  selectors: any;
7
7
  actions: any;
8
- useAppDispatch: any;
9
8
  }
10
9
  export interface AsyncReducers {
11
10
  [key: string]: Reducer;
12
11
  }
12
+ export declare function makeStore(initialState: any): JInjectStore;
13
13
  declare function createStore(initialAsyncReducers: {}, initialState: any): import("@reduxjs/toolkit").EnhancedStore<import("redux").CombinedState<{
14
14
  entities: import("redux").CombinedState<{
15
15
  applications: import("@reduxjs/toolkit").EntityState<import("../utils/types").Application>;
16
- models: import("@reduxjs/toolkit").EntityState<import("../utils/types").Model<string>>;
16
+ models: import("@reduxjs/toolkit").EntityState<import("../App").Model<string>>;
17
17
  users: import("@reduxjs/toolkit").EntityState<import("./slice/User.slice").User>;
18
18
  articles: import("@reduxjs/toolkit").EntityState<import("./slice/Article.slice").Article>;
19
19
  }>;
20
- appState: {
21
- [key: string]: {
22
- isLoading: boolean;
23
- error?: object | undefined;
24
- };
25
- };
26
20
  form: import("redux-form").FormStateMap;
27
21
  toasts: import("@reduxjs/toolkit").EntityState<import("./slice/Toast.slice").ToastEntity>;
28
22
  }>, import("redux").AnyAction, ((import("redux-thunk").ThunkMiddleware<{}, import("redux").AnyAction, undefined> & {
@@ -32,5 +26,4 @@ export declare type AppDispatch = ReturnType<typeof createStore>['dispatch'];
32
26
  export declare type RootState = ReturnType<ReturnType<typeof createStore>['getState']>;
33
27
  export declare const useAppDispatch: () => import("redux").Dispatch<import("redux").AnyAction>;
34
28
  export declare const useAppSelector: TypedUseSelectorHook<RootState>;
35
- export declare function makeStore(initialState: any): JInjectStore;
36
29
  export {};
@@ -0,0 +1,13 @@
1
+ import type { RouteObject } from 'react-router-dom';
2
+ export interface ReactRouter {
3
+ routes: RouteObject[];
4
+ addRoute: (route: RouteObject) => void;
5
+ init: (idDiv: string) => void;
6
+ }
7
+ declare class Router implements ReactRouter {
8
+ routes: RouteObject[];
9
+ addRoute: (route: RouteObject) => void;
10
+ init: (idDiv: string) => void;
11
+ }
12
+ declare const router: Router;
13
+ export default router;
@@ -1,27 +1,27 @@
1
1
  import * as React from 'react';
2
2
  import { ReactRegistry } from './registry';
3
3
  import { ReactTranslation, SupportedLanguages, TranslationKeys } from './translation';
4
- export { Configuration, DisplayAttributesProps, DisplayFormProps } from '../displayer/types';
4
+ export { Configuration, DisplayAttributesProps } from '../displayer/types';
5
5
  export * from '../components/types';
6
6
  import { useDisplay } from '../displayer/useDisplay';
7
7
  import { Configuration } from '../displayer/types';
8
- import { useDebounce, useDidMountEffect, useTimeout } from 'jamespot-react-components';
8
+ import { ReactRouter } from './router';
9
9
  import { toasts } from '../redux/slice/Toast.slice';
10
- import { JInjectStore } from '../redux/store';
11
- export declare type Gabarit = 'core-1-cols' | 'core-2-cols' | 'core-3-cols' | 'content-1-cols' | 'content-2-cols' | 'content-3-cols' | 'app-1-cols' | 'app-2-cols' | 'empty';
10
+ export declare type gabarit = 'core-1-cols' | 'core-2-cols' | 'core-3-cols' | 'content-1-cols' | 'content-2-cols' | 'content-3-cols' | 'app-1-cols' | 'app-2-cols' | 'empty';
12
11
  export interface ReactCore {
13
12
  extensions: ReactExtensions;
14
- store: JInjectStore;
13
+ store: any;
15
14
  actions: object;
16
15
  registry: ReactRegistry;
17
16
  locale?: SupportedLanguages;
18
17
  translation?: ReactTranslation;
19
18
  theme: any;
20
19
  socket?: ReactSocket;
20
+ router: ReactRouter;
21
21
  require: (extensionName: string, args?: any) => void;
22
22
  extensionAdd: (extensionName: string, load: () => void) => void;
23
23
  toasts: typeof toasts;
24
- routeAdd: (route: string, extensionName: string, idDiv: string, gabarit?: Gabarit, gabaritOptions?: object) => void;
24
+ routeAdd: (route: string, extensionName: string, idDiv: string, gabarit?: gabarit, gabaritOptions?: object) => void;
25
25
  transitionTo: (stateName: string, args: {}, options?: {
26
26
  reload: boolean;
27
27
  notify?: boolean;
@@ -98,11 +98,6 @@ export interface WindowJ {
98
98
  jamespotReactTheme: any;
99
99
  applications: Application[];
100
100
  models: Model<string>[];
101
- hook: {
102
- useTimeout: typeof useTimeout;
103
- useDebounce: typeof useDebounce;
104
- useDidMountEffect: typeof useDidMountEffect;
105
- };
106
101
  }
107
102
  export interface Application {
108
103
  name: string;
@@ -145,12 +140,10 @@ export declare type IsAppActivateProps = {
145
140
  };
146
141
  export declare type ReactExtensionProps = {
147
142
  extensionName: string;
148
- moduleName?: string;
149
143
  route?: string;
150
144
  idAnchor?: string;
151
145
  reducerName?: string;
152
- gabarit?: Gabarit;
146
+ gabarit?: gabarit;
153
147
  apiDependency?: string;
154
148
  };
155
- export * from '../displayer/types';
156
149
  export { RootState } from '../redux/store';
@@ -48,10 +48,6 @@
48
48
  "name": "ColumnCenter",
49
49
  "module": "JRCColumnCenter"
50
50
  },
51
- {
52
- "name": "ColumnCenterTitle",
53
- "module": "JRCColumnCenterTitle"
54
- },
55
51
  {
56
52
  "name": "ColumnLeft",
57
53
  "module": "JRCColumnLeft"
@@ -104,6 +100,10 @@
104
100
  "name": "DropDown",
105
101
  "module": "JRCDropDown"
106
102
  },
103
+ {
104
+ "name": "Ellipsis",
105
+ "module": "JRCEllipsis"
106
+ },
107
107
  {
108
108
  "name": "FormRangeField",
109
109
  "module": "JRCFormRangeField"
@@ -156,10 +156,6 @@
156
156
  "name": "FormTextareaField",
157
157
  "module": "JRCFormTextareaField"
158
158
  },
159
- {
160
- "name": "FormTextEditorField",
161
- "module": "JRCFormTextEditorField"
162
- },
163
159
  {
164
160
  "name": "ModalImg",
165
161
  "module": "JRCModalImg"
@@ -256,6 +252,14 @@
256
252
  "name": "Theme",
257
253
  "module": "Theme"
258
254
  },
255
+ {
256
+ "name": "TemplateBase",
257
+ "module": "JRCTemplateBase"
258
+ },
259
+ {
260
+ "name": "TemplateTwoColumns",
261
+ "module": "JRCTemplateTwoColumns"
262
+ },
259
263
  {
260
264
  "name": "Resources",
261
265
  "module": "Resources"
@@ -288,10 +292,18 @@
288
292
  "name": "InputEmail",
289
293
  "module": "JRCInputEmail"
290
294
  },
295
+ {
296
+ "name": "InputDate",
297
+ "module": "JRCInputDate"
298
+ },
291
299
  {
292
300
  "name": "InputText",
293
301
  "module": "JRCInputText"
294
302
  },
303
+ {
304
+ "name": "InputTextarea",
305
+ "module": "JRCInputTextarea"
306
+ },
295
307
  {
296
308
  "name": "DefaultSelectedOption",
297
309
  "module": "JRCDefaultSelectedOption"
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "jamespot-react-core",
3
- "version": "1.1.13",
3
+ "version": "1.1.20",
4
4
  "description": "Jamespot React Core",
5
- "types": "./build/utils/types.d.ts",
5
+ "types": "./build/App.d.ts",
6
6
  "scripts": {
7
7
  "dev": "webpack --env NODE_ENV=development",
8
8
  "local": "webpack s --env NODE_ENV=development",
@@ -29,11 +29,12 @@
29
29
  "@types/react": "^17.0.2",
30
30
  "@types/react-dom": "^17.0.2",
31
31
  "@types/react-redux": "^7.1.9",
32
+ "@types/react-router-dom": "^5.3.3",
32
33
  "@types/react-test-renderer": "^17.0.1",
33
34
  "@types/react-transition-group": "^4.4.1",
34
35
  "@types/redux-form": "^8.2.7",
35
- "@types/socket.io-client": "^3.0.0",
36
36
  "@types/styled-components": "^5.1.4",
37
+ "@types/socket.io-client": "^3.0.0",
37
38
  "@typescript-eslint/eslint-plugin": "^5.4.0",
38
39
  "@typescript-eslint/parser": "^5.4.0",
39
40
  "babel-jest": "^27.3.1",
@@ -51,7 +52,7 @@
51
52
  "lint-staged": "^12.0.2",
52
53
  "mini-css-extract-plugin": "^0.10.0",
53
54
  "prettier": "^2.4.1",
54
- "react-test-renderer": "^17.0.1",
55
+ "react-test-renderer": "^16.13.1",
55
56
  "source-map-loader": "^1.0.1",
56
57
  "ts-jest": "^27.0.7",
57
58
  "ts-loader": "^8.0.2",
@@ -62,14 +63,14 @@
62
63
  "worker-loader": "^3.0.8"
63
64
  },
64
65
  "dependencies": {
65
- "jamespot-react-components": "^1.0.1",
66
- "jamespot-user-api": "^1.0.2",
66
+ "jamespot-react-components": "file:../jamespot-react-components",
67
+ "jamespot-user-api": "file:../jamespot-user-api",
67
68
  "pkg.json": "^2.0.8",
68
69
  "react": "^17.0.2",
69
70
  "react-dom": "^17.0.2",
70
- "react-hook-form": "^7.25.0",
71
71
  "react-intl": "^5.8.6",
72
72
  "react-redux": "^7.2.3",
73
+ "react-router-dom": "^6.2.1",
73
74
  "react-select": "^3.2.0",
74
75
  "react-transition-group": "^4.4.1",
75
76
  "redux": "^4.0.5",