jamespot-react-core 1.1.78 → 1.1.84
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/build/898.bundle.js +1 -1
- package/build/898.bundle.js.map +1 -1
- package/build/ReactCore.d.ts +0 -2
- package/build/app.bundle.js +406 -353
- package/build/app.bundle.js.map +1 -1
- package/build/displayer/list/formatter.d.ts +11 -11
- package/build/displayer/types.d.ts +1 -76
- package/build/displayer/useDisplay.d.ts +1 -1
- package/build/redux/slice/Article.slice.d.ts +9 -3
- package/build/redux/slice/User.slice.d.ts +9 -3
- package/build/redux/store.d.ts +23 -12
- package/build/registry/ext-component-list.d.ts +46 -41
- package/build/utils/types.d.ts +1 -25
- package/package.json +5 -6
- package/script/checkDependencies.js +6 -3
- package/build/redux/slice/Application.slice.d.ts +0 -60
- package/build/redux/slice/Model.slice.d.ts +0 -60
- package/build/redux/slice/Toast.slice.d.ts +0 -50
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { FieldConfiguration } from '
|
|
2
|
+
import { FieldConfiguration } from 'jamespot-user-api';
|
|
3
3
|
export declare function formatDate<T extends string>(configuration: FieldConfiguration<T>): {
|
|
4
4
|
accessor: T;
|
|
5
5
|
components: {
|
|
@@ -15,7 +15,7 @@ export declare function formatDate<T extends string>(configuration: FieldConfigu
|
|
|
15
15
|
};
|
|
16
16
|
label: string;
|
|
17
17
|
description?: string;
|
|
18
|
-
widget: import("
|
|
18
|
+
widget: import("jamespot-user-api").Widget;
|
|
19
19
|
name: T;
|
|
20
20
|
mandatory: boolean;
|
|
21
21
|
};
|
|
@@ -34,7 +34,7 @@ export declare function formatString<T extends string>(configuration: FieldConfi
|
|
|
34
34
|
};
|
|
35
35
|
label: string;
|
|
36
36
|
description?: string;
|
|
37
|
-
widget: import("
|
|
37
|
+
widget: import("jamespot-user-api").Widget;
|
|
38
38
|
name: T;
|
|
39
39
|
mandatory: boolean;
|
|
40
40
|
};
|
|
@@ -52,7 +52,7 @@ export declare function formatTextarea<T extends string>(configuration: FieldCon
|
|
|
52
52
|
};
|
|
53
53
|
label: string;
|
|
54
54
|
description?: string;
|
|
55
|
-
widget: import("
|
|
55
|
+
widget: import("jamespot-user-api").Widget;
|
|
56
56
|
name: T;
|
|
57
57
|
mandatory: boolean;
|
|
58
58
|
};
|
|
@@ -70,7 +70,7 @@ export declare function formatNumber<T extends string>(configuration: FieldConfi
|
|
|
70
70
|
};
|
|
71
71
|
label: string;
|
|
72
72
|
description?: string;
|
|
73
|
-
widget: import("
|
|
73
|
+
widget: import("jamespot-user-api").Widget;
|
|
74
74
|
name: T;
|
|
75
75
|
mandatory: boolean;
|
|
76
76
|
};
|
|
@@ -88,7 +88,7 @@ export declare function formatTaxonomy<T extends string>(configuration: FieldCon
|
|
|
88
88
|
};
|
|
89
89
|
label: string;
|
|
90
90
|
description?: string;
|
|
91
|
-
widget: import("
|
|
91
|
+
widget: import("jamespot-user-api").Widget;
|
|
92
92
|
name: T;
|
|
93
93
|
mandatory: boolean;
|
|
94
94
|
};
|
|
@@ -107,7 +107,7 @@ export declare function formatOrientedlinks<T extends string>(configuration: Fie
|
|
|
107
107
|
};
|
|
108
108
|
label: string;
|
|
109
109
|
description?: string;
|
|
110
|
-
widget: import("
|
|
110
|
+
widget: import("jamespot-user-api").Widget;
|
|
111
111
|
name: T;
|
|
112
112
|
mandatory: boolean;
|
|
113
113
|
};
|
|
@@ -125,7 +125,7 @@ export declare function formatUri<T extends string>(configuration: FieldConfigur
|
|
|
125
125
|
};
|
|
126
126
|
label: string;
|
|
127
127
|
description?: string;
|
|
128
|
-
widget: import("
|
|
128
|
+
widget: import("jamespot-user-api").Widget;
|
|
129
129
|
name: T;
|
|
130
130
|
mandatory: boolean;
|
|
131
131
|
};
|
|
@@ -144,7 +144,7 @@ export declare function formatRadio<T extends string>(configuration: FieldConfig
|
|
|
144
144
|
};
|
|
145
145
|
label: string;
|
|
146
146
|
description?: string;
|
|
147
|
-
widget: import("
|
|
147
|
+
widget: import("jamespot-user-api").Widget;
|
|
148
148
|
name: T;
|
|
149
149
|
mandatory: boolean;
|
|
150
150
|
};
|
|
@@ -162,7 +162,7 @@ export declare function formatCheckbox<T extends string>(configuration: FieldCon
|
|
|
162
162
|
};
|
|
163
163
|
label: string;
|
|
164
164
|
description?: string;
|
|
165
|
-
widget: import("
|
|
165
|
+
widget: import("jamespot-user-api").Widget;
|
|
166
166
|
name: T;
|
|
167
167
|
mandatory: boolean;
|
|
168
168
|
};
|
|
@@ -180,7 +180,7 @@ export declare function formatDefault<T extends string>(configuration: FieldConf
|
|
|
180
180
|
};
|
|
181
181
|
label: string;
|
|
182
182
|
description?: string;
|
|
183
|
-
widget: import("
|
|
183
|
+
widget: import("jamespot-user-api").Widget;
|
|
184
184
|
name: T;
|
|
185
185
|
mandatory: boolean;
|
|
186
186
|
};
|
|
@@ -1,82 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { UseFormReset } from 'react-hook-form';
|
|
3
|
+
import { Widget } from 'jamespot-user-api';
|
|
3
4
|
export declare type Fields<T extends string> = ReadonlyArray<T>;
|
|
4
|
-
export declare type WidgetText = {
|
|
5
|
-
type: 'text';
|
|
6
|
-
};
|
|
7
|
-
export declare type WidgetTextarea = {
|
|
8
|
-
type: 'textarea';
|
|
9
|
-
};
|
|
10
|
-
export declare type WidgetNumber = {
|
|
11
|
-
type: 'number';
|
|
12
|
-
};
|
|
13
|
-
export declare type WidgetDate = {
|
|
14
|
-
type: 'date';
|
|
15
|
-
format: string;
|
|
16
|
-
};
|
|
17
|
-
export declare type WidgetDatetime = {
|
|
18
|
-
type: 'datetime';
|
|
19
|
-
};
|
|
20
|
-
export declare type WidgetSelect<U extends string = string> = {
|
|
21
|
-
type: 'select';
|
|
22
|
-
options: Record<U, string>;
|
|
23
|
-
params?: {
|
|
24
|
-
data?: string;
|
|
25
|
-
defaultValue?: U;
|
|
26
|
-
explain?: 1;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
export declare type WidgetEmail = {
|
|
30
|
-
type: 'email';
|
|
31
|
-
};
|
|
32
|
-
export declare type WidgetUrl = {
|
|
33
|
-
type: 'url';
|
|
34
|
-
params: {
|
|
35
|
-
target?: '_blank';
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
export declare type WidgetRefUser = {
|
|
39
|
-
type: 'refUser';
|
|
40
|
-
};
|
|
41
|
-
export declare type WidgetRadio = {
|
|
42
|
-
type: 'radio';
|
|
43
|
-
options: Record<string, string>;
|
|
44
|
-
};
|
|
45
|
-
export declare type WidgetCheckbox = {
|
|
46
|
-
type: 'checkbox';
|
|
47
|
-
options: Record<string, string>;
|
|
48
|
-
};
|
|
49
|
-
export declare type WidgetTaxonomy = {
|
|
50
|
-
type: 'taxonomy';
|
|
51
|
-
params: {
|
|
52
|
-
idTaxonomy: string;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
export declare type WidgetOrientedlinks = {
|
|
56
|
-
type: 'orientedlinks';
|
|
57
|
-
params: {
|
|
58
|
-
'jcomplete-multiple': '0' | '1';
|
|
59
|
-
showAdd: '0' | '1';
|
|
60
|
-
supportedTypes: Array<string>;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
export declare type WidgetUri = {
|
|
64
|
-
type: 'uri';
|
|
65
|
-
params: {
|
|
66
|
-
class: string;
|
|
67
|
-
'jcomplete-url': string;
|
|
68
|
-
type: string;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
export declare type Widget = WidgetText | WidgetTextarea | WidgetNumber | WidgetDate | WidgetDatetime | WidgetSelect | WidgetEmail | WidgetUrl | WidgetRefUser | WidgetRadio | WidgetCheckbox | WidgetOrientedlinks | WidgetTaxonomy | WidgetUri;
|
|
72
|
-
export declare type FieldConfiguration<T extends string = string> = {
|
|
73
|
-
label: string;
|
|
74
|
-
description?: string;
|
|
75
|
-
widget: Widget;
|
|
76
|
-
name: T;
|
|
77
|
-
mandatory: boolean;
|
|
78
|
-
};
|
|
79
|
-
export declare type Configuration<T extends string> = FieldConfiguration<T>;
|
|
80
5
|
export declare type DisplayInputComponentProps = {
|
|
81
6
|
control: any;
|
|
82
7
|
label: string;
|
|
@@ -29,13 +29,19 @@ export declare const articleSlice: import("@reduxjs/toolkit").Slice<import("@red
|
|
|
29
29
|
}, "articles">;
|
|
30
30
|
export declare const articlesSelector: import("@reduxjs/toolkit").EntitySelectors<Article, import("redux").CombinedState<{
|
|
31
31
|
entities: import("redux").CombinedState<{
|
|
32
|
-
applications: import("@reduxjs/toolkit").EntityState<import("
|
|
33
|
-
models: import("@reduxjs/toolkit").EntityState<import("
|
|
32
|
+
applications: import("@reduxjs/toolkit").EntityState<import("jamespot-user-api").Application>;
|
|
33
|
+
models: import("@reduxjs/toolkit").EntityState<import("jamespot-user-api").Model<string>>;
|
|
34
34
|
users: import("@reduxjs/toolkit").EntityState<import("./User.slice").User>;
|
|
35
35
|
articles: import("@reduxjs/toolkit").EntityState<Article>;
|
|
36
36
|
}>;
|
|
37
37
|
form: import("redux-form").FormStateMap;
|
|
38
|
-
toasts: import("@reduxjs/toolkit").EntityState<
|
|
38
|
+
toasts: import("@reduxjs/toolkit").EntityState<{
|
|
39
|
+
id: string;
|
|
40
|
+
label: string;
|
|
41
|
+
description?: string;
|
|
42
|
+
timeout: number;
|
|
43
|
+
type: "error" | "success" | "warning";
|
|
44
|
+
}>;
|
|
39
45
|
}>>;
|
|
40
46
|
export declare type ArticleSelectorType = typeof articlesSelector;
|
|
41
47
|
export declare const articleActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
@@ -29,13 +29,19 @@ export declare const userSlice: import("@reduxjs/toolkit").Slice<import("@reduxj
|
|
|
29
29
|
}, "users">;
|
|
30
30
|
export declare const usersSelector: import("@reduxjs/toolkit").EntitySelectors<User, import("redux").CombinedState<{
|
|
31
31
|
entities: import("redux").CombinedState<{
|
|
32
|
-
applications: import("@reduxjs/toolkit").EntityState<import("
|
|
33
|
-
models: import("@reduxjs/toolkit").EntityState<import("
|
|
32
|
+
applications: import("@reduxjs/toolkit").EntityState<import("jamespot-user-api").Application>;
|
|
33
|
+
models: import("@reduxjs/toolkit").EntityState<import("jamespot-user-api").Model<string>>;
|
|
34
34
|
users: import("@reduxjs/toolkit").EntityState<User>;
|
|
35
35
|
articles: import("@reduxjs/toolkit").EntityState<import("./Article.slice").Article>;
|
|
36
36
|
}>;
|
|
37
37
|
form: import("redux-form").FormStateMap;
|
|
38
|
-
toasts: import("@reduxjs/toolkit").EntityState<
|
|
38
|
+
toasts: import("@reduxjs/toolkit").EntityState<{
|
|
39
|
+
id: string;
|
|
40
|
+
label: string;
|
|
41
|
+
description?: string;
|
|
42
|
+
timeout: number;
|
|
43
|
+
type: "error" | "success" | "warning";
|
|
44
|
+
}>;
|
|
39
45
|
}>>;
|
|
40
46
|
export declare type UsersSelectorType = typeof usersSelector;
|
|
41
47
|
export declare const userActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
package/build/redux/store.d.ts
CHANGED
|
@@ -2,22 +2,21 @@ import { Reducer } from '@reduxjs/toolkit';
|
|
|
2
2
|
import { UsersSelectorType, UserActionsType } from './slice/User.slice';
|
|
3
3
|
import { ArticleSelectorType, ArticleActionsType } from './slice/Article.slice';
|
|
4
4
|
import { GenericActionsType } from './slice/Generic.actions';
|
|
5
|
-
import {
|
|
6
|
-
import { ModelSelectorType, ModelActionsType } from './slice/Model.slice';
|
|
5
|
+
import { Application, Model } from 'jamespot-front-business';
|
|
7
6
|
import { TypedUseSelectorHook } from 'react-redux';
|
|
8
7
|
export interface JInjectStore extends ReturnType<typeof createStore> {
|
|
9
8
|
asyncReducers: AsyncReducers;
|
|
10
9
|
add: (key: string, asyncReducer: Reducer) => void;
|
|
11
10
|
selectors: {
|
|
12
11
|
article: ArticleSelectorType;
|
|
13
|
-
application:
|
|
14
|
-
model:
|
|
12
|
+
application: typeof Application.selectors;
|
|
13
|
+
model: typeof Model.selectors;
|
|
15
14
|
user: UsersSelectorType;
|
|
16
15
|
};
|
|
17
16
|
actions: {
|
|
18
17
|
article: ArticleActionsType;
|
|
19
|
-
application:
|
|
20
|
-
model:
|
|
18
|
+
application: typeof Application.actions;
|
|
19
|
+
model: typeof Model.actions;
|
|
21
20
|
user: UserActionsType;
|
|
22
21
|
generic: GenericActionsType;
|
|
23
22
|
};
|
|
@@ -28,22 +27,34 @@ export interface AsyncReducers {
|
|
|
28
27
|
export declare function makeStore(initialState: AsyncReducers): JInjectStore;
|
|
29
28
|
declare function createStore(initialAsyncReducers: {}, initialState: any): import("@reduxjs/toolkit/dist/configureStore").ToolkitStore<import("redux").CombinedState<{
|
|
30
29
|
entities: import("redux").CombinedState<{
|
|
31
|
-
applications: import("@reduxjs/toolkit").EntityState<import("
|
|
32
|
-
models: import("@reduxjs/toolkit").EntityState<import("
|
|
30
|
+
applications: import("@reduxjs/toolkit").EntityState<import("jamespot-user-api").Application>;
|
|
31
|
+
models: import("@reduxjs/toolkit").EntityState<import("jamespot-user-api").Model<string>>;
|
|
33
32
|
users: import("@reduxjs/toolkit").EntityState<import("./slice/User.slice").User>;
|
|
34
33
|
articles: import("@reduxjs/toolkit").EntityState<import("./slice/Article.slice").Article>;
|
|
35
34
|
}>;
|
|
36
35
|
form: import("redux-form").FormStateMap;
|
|
37
|
-
toasts: import("@reduxjs/toolkit").EntityState<
|
|
36
|
+
toasts: import("@reduxjs/toolkit").EntityState<{
|
|
37
|
+
id: string;
|
|
38
|
+
label: string;
|
|
39
|
+
description?: string;
|
|
40
|
+
timeout: number;
|
|
41
|
+
type: "error" | "success" | "warning";
|
|
42
|
+
}>;
|
|
38
43
|
}>, import("redux").AnyAction, import("@reduxjs/toolkit").ThunkMiddleware<import("redux").EmptyObject & {
|
|
39
44
|
entities: import("redux").CombinedState<{
|
|
40
|
-
applications: import("@reduxjs/toolkit").EntityState<import("
|
|
41
|
-
models: import("@reduxjs/toolkit").EntityState<import("
|
|
45
|
+
applications: import("@reduxjs/toolkit").EntityState<import("jamespot-user-api").Application>;
|
|
46
|
+
models: import("@reduxjs/toolkit").EntityState<import("jamespot-user-api").Model<string>>;
|
|
42
47
|
users: import("@reduxjs/toolkit").EntityState<import("./slice/User.slice").User>;
|
|
43
48
|
articles: import("@reduxjs/toolkit").EntityState<import("./slice/Article.slice").Article>;
|
|
44
49
|
}>;
|
|
45
50
|
form: import("redux-form").FormStateMap;
|
|
46
|
-
toasts: import("@reduxjs/toolkit").EntityState<
|
|
51
|
+
toasts: import("@reduxjs/toolkit").EntityState<{
|
|
52
|
+
id: string;
|
|
53
|
+
label: string;
|
|
54
|
+
description?: string;
|
|
55
|
+
timeout: number;
|
|
56
|
+
type: "error" | "success" | "warning";
|
|
57
|
+
}>;
|
|
47
58
|
}, import("redux").AnyAction, {
|
|
48
59
|
jApi: import("jamespot-user-api").JamespotUserApi;
|
|
49
60
|
}>[]>;
|
|
@@ -1,86 +1,91 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
readonly AppColumn: "JRCAppColumn";
|
|
3
|
-
readonly MainColumn: "JRCMainColumn";
|
|
4
|
-
readonly Column: "JRCColumn";
|
|
5
|
-
readonly Container: "JRCContainer";
|
|
6
2
|
readonly Alert: "JRCAlert";
|
|
3
|
+
readonly AppColumn: "JRCAppColumn";
|
|
7
4
|
readonly AppContainer: "JRCAppContainer";
|
|
8
5
|
readonly AppHeader: "JRCAppHeader";
|
|
9
6
|
readonly AppLeftColumn: "JRCAppLeftColumn";
|
|
10
|
-
readonly Avatar: "JRCAvatar";
|
|
11
7
|
readonly AutocompleteAudienceField: "JRCAutocompleteAudienceField";
|
|
12
8
|
readonly AutocompleteCommunityField: "JRCAutocompleteCommunityField";
|
|
13
9
|
readonly AutocompleteTaxonomyField: "JRCAutocompleteTaxonomyField";
|
|
10
|
+
readonly Avatar: "JRCAvatar";
|
|
14
11
|
readonly Button: "JRCButton";
|
|
15
|
-
readonly ButtonDropdown: "JRCButtonDropdown";
|
|
16
12
|
readonly ButtonDownload: "JRCButtonDownload";
|
|
13
|
+
readonly ButtonDropdown: "JRCButtonDropdown";
|
|
17
14
|
readonly ButtonFile: "JRCButtonFile";
|
|
18
15
|
readonly Card: "JRCCard";
|
|
16
|
+
readonly CardImg: "JRCCardImg";
|
|
17
|
+
readonly Column: "JRCColumn";
|
|
19
18
|
readonly ColumnCenter: "JRCColumnCenter";
|
|
20
19
|
readonly ColumnLeft: "JRCColumnLeft";
|
|
21
20
|
readonly ColumnRight: "JRCColumnRight";
|
|
22
|
-
readonly FormCheckbox: "JRCFormCheckbox";
|
|
23
21
|
readonly ConditionalWrapper: "JRCConditionalWrapper";
|
|
22
|
+
readonly Container: "JRCContainer";
|
|
24
23
|
readonly Date: "JRCDate";
|
|
25
24
|
readonly DraggingPlaceholder: "JRCDraggingPlaceholder";
|
|
25
|
+
readonly DropDown: "JRCDropDown";
|
|
26
|
+
readonly Ellipsis: "JRCEllipsis";
|
|
26
27
|
readonly FileOpen: "JRCFileOpen";
|
|
28
|
+
readonly FlexBox: "JRCFlexBox";
|
|
29
|
+
readonly FormCheckbox: "JRCFormCheckbox";
|
|
27
30
|
readonly FormColorField: "JRCFormColorField";
|
|
28
31
|
readonly FormDatetimeField: "JRCFormDatetimeField";
|
|
29
32
|
readonly FormEmailField: "JRCFormEmailField";
|
|
30
|
-
readonly FormNumberField: "JRCFormNumberField";
|
|
31
33
|
readonly FormInputFile: "JRCFormInputFile";
|
|
32
34
|
readonly FormInputFileField: "JRCFormInputFileField";
|
|
33
35
|
readonly FormInputImageField: "JRCFormInputImageField";
|
|
34
|
-
readonly
|
|
35
|
-
readonly Ellipsis: "JRCEllipsis";
|
|
36
|
+
readonly FormNumberField: "JRCFormNumberField";
|
|
36
37
|
readonly FormRangeField: "JRCFormRangeField";
|
|
37
|
-
readonly FormRichTextField: "JRCFormRichTextField";
|
|
38
|
-
readonly FormSendAlertField: "JRCFormSendAlertField";
|
|
39
38
|
readonly FormReceiveACopyField: "JRCFormReceiveACopyField";
|
|
40
|
-
readonly
|
|
41
|
-
readonly FormUrlField: "JRCFormUrlField";
|
|
42
|
-
readonly FormSelectInput: "JRCFormSelectInput";
|
|
39
|
+
readonly FormRichTextField: "JRCFormRichTextField";
|
|
43
40
|
readonly FormSelectField: "JRCFormSelectField";
|
|
41
|
+
readonly FormSelectInput: "JRCFormSelectInput";
|
|
44
42
|
readonly FormSelectTagField: "JRCFormSelectTagField";
|
|
45
|
-
readonly
|
|
46
|
-
readonly Pagination: "JRCPagination";
|
|
43
|
+
readonly FormSendAlertField: "JRCFormSendAlertField";
|
|
47
44
|
readonly FormTextarea: "JRCFormTextarea";
|
|
48
45
|
readonly FormTextareaField: "JRCFormTextareaField";
|
|
49
|
-
readonly
|
|
50
|
-
readonly
|
|
51
|
-
readonly
|
|
52
|
-
readonly List: "JRCList";
|
|
53
|
-
readonly Icon: "JRCIcon";
|
|
54
|
-
readonly IconButton: "JRCIconButton";
|
|
55
|
-
readonly Img: "JRCImg";
|
|
56
|
-
readonly Loader: "JRCLoader";
|
|
57
|
-
readonly Menu: "JRCMenu";
|
|
58
|
-
readonly Tag: "JRCTag";
|
|
59
|
-
readonly ThemeProvider: "JRCThemeProvider";
|
|
60
|
-
readonly Tooltip: "JRCTooltip";
|
|
46
|
+
readonly FormTextField: "JRCFormTextField";
|
|
47
|
+
readonly FormUrlField: "JRCFormUrlField";
|
|
48
|
+
readonly Grid: "JRCGrid";
|
|
61
49
|
readonly H1: "JRCH1";
|
|
62
50
|
readonly H2: "JRCH2";
|
|
63
51
|
readonly H3: "JRCH3";
|
|
64
52
|
readonly H4: "JRCH4";
|
|
65
53
|
readonly H5: "JRCH5";
|
|
66
|
-
readonly
|
|
67
|
-
readonly
|
|
68
|
-
readonly
|
|
69
|
-
readonly
|
|
70
|
-
readonly TemplateBase: "JRCTemplateBase";
|
|
71
|
-
readonly TemplateTwoColumns: "JRCTemplateTwoColumns";
|
|
72
|
-
readonly Resources: "Resources";
|
|
73
|
-
readonly StyledInput: "StyledInput";
|
|
74
|
-
readonly InputSelect: "JRCInputSelect";
|
|
54
|
+
readonly Html: "JRCHtml";
|
|
55
|
+
readonly Icon: "JRCIcon";
|
|
56
|
+
readonly IconButton: "JRCIconButton";
|
|
57
|
+
readonly Img: "JRCImg";
|
|
75
58
|
readonly InputAutocomplete: "JRCInputAutocomplete";
|
|
76
|
-
readonly InputCommunity: "JRCInputCommunity";
|
|
77
59
|
readonly InputCheckbox: "JRCInputCheckbox";
|
|
78
|
-
readonly
|
|
60
|
+
readonly InputCommunity: "JRCInputCommunity";
|
|
79
61
|
readonly InputDate: "JRCInputDate";
|
|
62
|
+
readonly InputEmail: "JRCInputEmail";
|
|
63
|
+
readonly InputRichText: "JRCInputRichText";
|
|
64
|
+
readonly InputSelect: "JRCInputSelect";
|
|
80
65
|
readonly InputText: "JRCInputText";
|
|
81
66
|
readonly InputTextarea: "JRCInputTextarea";
|
|
82
|
-
readonly
|
|
67
|
+
readonly InputTime: "JRCInputTime";
|
|
68
|
+
readonly List: "JRCList";
|
|
69
|
+
readonly Loader: "JRCLoader";
|
|
70
|
+
readonly MainColumn: "JRCMainColumn";
|
|
71
|
+
readonly Menu: "JRCMenu";
|
|
72
|
+
readonly Modal: "JRCModal";
|
|
73
|
+
readonly ModalImg: "JRCModalImg";
|
|
74
|
+
readonly Pagination: "JRCPagination";
|
|
75
|
+
readonly Resources: "Resources";
|
|
83
76
|
readonly SkeletonLine: "JRCSkeletonLine";
|
|
77
|
+
readonly SkeletonSquare: "JRCSkeletonSquare";
|
|
78
|
+
readonly StyledHref: "JRCStyledHref";
|
|
79
|
+
readonly StyledInput: "StyledInput";
|
|
80
|
+
readonly Tabs: "JRCTabs";
|
|
81
|
+
readonly Tag: "JRCTag";
|
|
82
|
+
readonly TemplateBase: "JRCTemplateBase";
|
|
83
|
+
readonly TemplateTwoColumns: "JRCTemplateTwoColumns";
|
|
84
|
+
readonly Text: "JRCText";
|
|
85
|
+
readonly Theme: "Theme";
|
|
86
|
+
readonly ThemeProvider: "JRCThemeProvider";
|
|
87
|
+
readonly Tooltip: "JRCTooltip";
|
|
88
|
+
readonly Typography: "JRCTypography";
|
|
84
89
|
readonly ValidationButton: "JRCValidationButton";
|
|
85
90
|
};
|
|
86
91
|
export default _default;
|
package/build/utils/types.d.ts
CHANGED
|
@@ -2,10 +2,9 @@ import * as React from 'react';
|
|
|
2
2
|
import { ReactRegistry } from '../registry/Registry';
|
|
3
3
|
import { ReactTranslation, SupportedLanguages, TranslationKeys } from './translation';
|
|
4
4
|
import { useDisplay } from '../displayer/useDisplay';
|
|
5
|
-
import { Configuration } from '../displayer/types';
|
|
6
5
|
import { ReactRouter } from './router';
|
|
7
|
-
import { toasts } from '../redux/slice/Toast.slice';
|
|
8
6
|
import { JrComponentListType } from '../registry/types';
|
|
7
|
+
import { Application, Model } from 'jamespot-user-api';
|
|
9
8
|
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
9
|
export interface ReactCore {
|
|
11
10
|
extensions: ReactExtensions;
|
|
@@ -19,7 +18,6 @@ export interface ReactCore {
|
|
|
19
18
|
router: ReactRouter;
|
|
20
19
|
require: (extensionName: string, args?: any) => void;
|
|
21
20
|
extensionAdd: (extensionName: string, load: () => void) => void;
|
|
22
|
-
toasts: typeof toasts;
|
|
23
21
|
routeAdd: (route: string, extensionName: string, idDiv: string, gabarit?: Gabarit, gabaritOptions?: object) => void;
|
|
24
22
|
transitionTo: (stateName: string, args: {}, options?: {
|
|
25
23
|
reload: boolean;
|
|
@@ -135,28 +133,6 @@ export interface WindowJ {
|
|
|
135
133
|
urlBase: string;
|
|
136
134
|
types: JType[];
|
|
137
135
|
}
|
|
138
|
-
export interface Application {
|
|
139
|
-
name: string;
|
|
140
|
-
label: string;
|
|
141
|
-
icon: string;
|
|
142
|
-
img: string;
|
|
143
|
-
url: string;
|
|
144
|
-
description: string;
|
|
145
|
-
color?: string;
|
|
146
|
-
sref?: string;
|
|
147
|
-
type?: string;
|
|
148
|
-
_extend: {
|
|
149
|
-
[key: string]: any;
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
export interface Model<T extends string = string> {
|
|
153
|
-
type: string;
|
|
154
|
-
mainType: string;
|
|
155
|
-
label: string;
|
|
156
|
-
fields: Record<T, Configuration<T>>;
|
|
157
|
-
icon: string;
|
|
158
|
-
color: string;
|
|
159
|
-
}
|
|
160
136
|
export interface JObject {
|
|
161
137
|
id: number;
|
|
162
138
|
type: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.84",
|
|
4
4
|
"description": "Jamespot React Core",
|
|
5
5
|
"main": "./build/app.bundle.js",
|
|
6
6
|
"types": "./build/App.d.ts",
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
"@babel/core": "^7.12.8",
|
|
26
26
|
"@babel/preset-env": "^7.12.7",
|
|
27
27
|
"@babel/preset-react": "^7.12.7",
|
|
28
|
-
"@reduxjs/toolkit": "^1.9.0",
|
|
29
28
|
"@types/jest": "^27.0.2",
|
|
30
29
|
"@types/react": "^17.0.2",
|
|
31
30
|
"@types/react-dom": "^17.0.2",
|
|
@@ -49,7 +48,6 @@
|
|
|
49
48
|
"husky": "^7.0.4",
|
|
50
49
|
"identity-obj-proxy": "^3.0.0",
|
|
51
50
|
"jest": "^27.3.1",
|
|
52
|
-
"jsdom": "^16.4.0",
|
|
53
51
|
"lint-staged": "^12.0.2",
|
|
54
52
|
"mini-css-extract-plugin": "^0.10.0",
|
|
55
53
|
"prettier": "^2.4.1",
|
|
@@ -64,10 +62,11 @@
|
|
|
64
62
|
"worker-loader": "^3.0.8"
|
|
65
63
|
},
|
|
66
64
|
"dependencies": {
|
|
65
|
+
"@reduxjs/toolkit": "^1.9.0",
|
|
67
66
|
"history": "^5.3.0",
|
|
68
|
-
"jamespot-
|
|
69
|
-
"jamespot-
|
|
70
|
-
"
|
|
67
|
+
"jamespot-front-business": "^1.1.0",
|
|
68
|
+
"jamespot-react-components": "^1.0.113",
|
|
69
|
+
"jamespot-user-api": "^1.0.84",
|
|
71
70
|
"react": "^17.0.2",
|
|
72
71
|
"react-dom": "^17.0.2",
|
|
73
72
|
"react-hook-form": "^7.25.0",
|
|
@@ -23,14 +23,16 @@ const checkDependenciesList = (dependencies, list) => {
|
|
|
23
23
|
dependencies[k] = [];
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
const version = list[k].replace(/\^/g, '').replace(/file:/g, '');
|
|
27
|
+
if (dependencies[k].indexOf(version) === -1) {
|
|
28
|
+
dependencies[k].push(version);
|
|
28
29
|
}
|
|
29
30
|
});
|
|
30
31
|
};
|
|
31
32
|
|
|
32
33
|
const userApiPackage = fileJson('../../jamespot-user-api/package.json');
|
|
33
34
|
const componentPackage = fileJson('../../jamespot-react-components/package.json');
|
|
35
|
+
const frontBusinessPackage = fileJson('../../jamespot-front-business/package.json');
|
|
34
36
|
const corePackage = fileJson('../package.json');
|
|
35
37
|
const extensionPackage = fileJson('../../jamespot-react-extensions/package.json');
|
|
36
38
|
|
|
@@ -38,8 +40,9 @@ let dependencies = {};
|
|
|
38
40
|
|
|
39
41
|
checkDependencies(dependencies, userApiPackage);
|
|
40
42
|
checkDependencies(dependencies, componentPackage);
|
|
43
|
+
checkDependencies(dependencies, frontBusinessPackage);
|
|
41
44
|
checkDependencies(dependencies, corePackage);
|
|
42
45
|
checkDependencies(dependencies, extensionPackage);
|
|
43
46
|
|
|
44
47
|
console.log('MISMATCH VERSION');
|
|
45
|
-
console.log(Object.
|
|
48
|
+
console.log(Object.entries(dependencies).filter(([dependency]) => dependencies[dependency].length > 1));
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { Application } from '../../utils/types';
|
|
2
|
-
export declare const applicationAdapter: import("@reduxjs/toolkit").EntityAdapter<Application>;
|
|
3
|
-
export declare const applicationSlice: import("@reduxjs/toolkit").Slice<import("@reduxjs/toolkit").EntityState<Application>, {
|
|
4
|
-
addOne: {
|
|
5
|
-
<S extends import("@reduxjs/toolkit").EntityState<Application>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S, import("@reduxjs/toolkit").EntityState<Application>, S>, entity: Application): S;
|
|
6
|
-
<S_1 extends import("@reduxjs/toolkit").EntityState<Application>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_1, import("@reduxjs/toolkit").EntityState<Application>, S_1>, action: {
|
|
7
|
-
payload: Application;
|
|
8
|
-
type: string;
|
|
9
|
-
}): S_1;
|
|
10
|
-
};
|
|
11
|
-
addMany: {
|
|
12
|
-
<S_2 extends import("@reduxjs/toolkit").EntityState<Application>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_2, import("@reduxjs/toolkit").EntityState<Application>, S_2>, entities: readonly Application[] | Record<import("@reduxjs/toolkit").EntityId, Application>): S_2;
|
|
13
|
-
<S_3 extends import("@reduxjs/toolkit").EntityState<Application>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_3, import("@reduxjs/toolkit").EntityState<Application>, S_3>, entities: {
|
|
14
|
-
payload: readonly Application[] | Record<import("@reduxjs/toolkit").EntityId, Application>;
|
|
15
|
-
type: string;
|
|
16
|
-
}): S_3;
|
|
17
|
-
};
|
|
18
|
-
setAll: {
|
|
19
|
-
<S_4 extends import("@reduxjs/toolkit").EntityState<Application>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_4, import("@reduxjs/toolkit").EntityState<Application>, S_4>, entities: readonly Application[] | Record<import("@reduxjs/toolkit").EntityId, Application>): S_4;
|
|
20
|
-
<S_5 extends import("@reduxjs/toolkit").EntityState<Application>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_5, import("@reduxjs/toolkit").EntityState<Application>, S_5>, entities: {
|
|
21
|
-
payload: readonly Application[] | Record<import("@reduxjs/toolkit").EntityId, Application>;
|
|
22
|
-
type: string;
|
|
23
|
-
}): S_5;
|
|
24
|
-
};
|
|
25
|
-
}, "applications">;
|
|
26
|
-
export declare const applicationSelector: import("@reduxjs/toolkit").EntitySelectors<Application, import("redux").CombinedState<{
|
|
27
|
-
entities: import("redux").CombinedState<{
|
|
28
|
-
applications: import("@reduxjs/toolkit").EntityState<Application>;
|
|
29
|
-
models: import("@reduxjs/toolkit").EntityState<import("../../utils/types").Model<string>>;
|
|
30
|
-
users: import("@reduxjs/toolkit").EntityState<import("./User.slice").User>;
|
|
31
|
-
articles: import("@reduxjs/toolkit").EntityState<import("./Article.slice").Article>;
|
|
32
|
-
}>;
|
|
33
|
-
form: import("redux-form").FormStateMap;
|
|
34
|
-
toasts: import("@reduxjs/toolkit").EntityState<import("./Toast.slice").ToastEntity>;
|
|
35
|
-
}>>;
|
|
36
|
-
export declare type ApplicationSelectorType = typeof applicationSelector;
|
|
37
|
-
export declare const applicationActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
38
|
-
addOne: {
|
|
39
|
-
<S extends import("@reduxjs/toolkit").EntityState<Application>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S, import("@reduxjs/toolkit").EntityState<Application>, S>, entity: Application): S;
|
|
40
|
-
<S_1 extends import("@reduxjs/toolkit").EntityState<Application>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_1, import("@reduxjs/toolkit").EntityState<Application>, S_1>, action: {
|
|
41
|
-
payload: Application;
|
|
42
|
-
type: string;
|
|
43
|
-
}): S_1;
|
|
44
|
-
};
|
|
45
|
-
addMany: {
|
|
46
|
-
<S_2 extends import("@reduxjs/toolkit").EntityState<Application>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_2, import("@reduxjs/toolkit").EntityState<Application>, S_2>, entities: readonly Application[] | Record<import("@reduxjs/toolkit").EntityId, Application>): S_2;
|
|
47
|
-
<S_3 extends import("@reduxjs/toolkit").EntityState<Application>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_3, import("@reduxjs/toolkit").EntityState<Application>, S_3>, entities: {
|
|
48
|
-
payload: readonly Application[] | Record<import("@reduxjs/toolkit").EntityId, Application>;
|
|
49
|
-
type: string;
|
|
50
|
-
}): S_3;
|
|
51
|
-
};
|
|
52
|
-
setAll: {
|
|
53
|
-
<S_4 extends import("@reduxjs/toolkit").EntityState<Application>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_4, import("@reduxjs/toolkit").EntityState<Application>, S_4>, entities: readonly Application[] | Record<import("@reduxjs/toolkit").EntityId, Application>): S_4;
|
|
54
|
-
<S_5 extends import("@reduxjs/toolkit").EntityState<Application>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S_5, import("@reduxjs/toolkit").EntityState<Application>, S_5>, entities: {
|
|
55
|
-
payload: readonly Application[] | Record<import("@reduxjs/toolkit").EntityId, Application>;
|
|
56
|
-
type: string;
|
|
57
|
-
}): S_5;
|
|
58
|
-
};
|
|
59
|
-
}, "applications">;
|
|
60
|
-
export declare type ApplicationActionsType = typeof applicationActions;
|