jamespot-react-core 1.1.59 → 1.1.78
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 +2 -0
- package/build/898.bundle.js.map +1 -0
- package/build/App.d.ts +9 -40
- package/build/ReactCore.d.ts +33 -0
- package/build/Router.d.ts +0 -0
- package/build/Toast.d.ts +1 -0
- package/build/app.bundle.js +353 -326
- package/build/app.bundle.js.map +1 -1
- package/build/assets/404.6ddcf23842aa398fdb2521ed61e26426.png +0 -0
- package/build/{enhencers/toast → components}/Toaster.d.ts +0 -0
- package/build/components/index.d.ts +4 -0
- package/build/components/types.d.ts +1 -0
- package/build/displayer/components/inputs/OrientedLink.d.ts +1 -1
- package/build/displayer/list/formatter.d.ts +10 -10
- package/build/displayer/types.d.ts +0 -5
- package/build/redux/slice/Application.slice.d.ts +5 -3
- package/build/redux/slice/Article.slice.d.ts +5 -3
- package/build/redux/slice/Generic.actions.d.ts +1 -0
- package/build/redux/slice/Model.slice.d.ts +5 -3
- package/build/redux/slice/Toast.slice.d.ts +3 -3
- package/build/redux/slice/User.slice.d.ts +5 -3
- package/build/redux/store.d.ts +34 -9
- package/build/{utils/registry.d.ts → registry/Registry.d.ts} +3 -3
- package/build/registry/core-component-list.d.ts +11 -0
- package/build/registry/coreComponents.d.ts +9 -0
- package/build/registry/ext-component-list.d.ts +86 -0
- package/build/registry/index.d.ts +1 -0
- package/build/registry/types.d.ts +31 -0
- package/build/types.d.ts +5 -1
- package/build/utils/router.d.ts +5 -1
- package/build/utils/types.d.ts +9 -12
- package/package.json +10 -10
- package/script/traduction-react.php +3 -1
- package/build/76.bundle.js +0 -2
- package/build/76.bundle.js.map +0 -1
- package/build/81.bundle.js +0 -2
- package/build/81.bundle.js.map +0 -1
- package/build/862.bundle.js +0 -2
- package/build/862.bundle.js.map +0 -1
- package/build/components/NoMatch.component.d.ts +0 -1
- package/ext-component-list.json +0 -350
|
Binary file
|
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DisplayInputComponentProps } from '../../types';
|
|
2
|
-
export declare const OrientedLinkInput: (type?: string,
|
|
2
|
+
export declare const OrientedLinkInput: (type?: string, isRequired?: boolean) => ({ widget, ...props }: DisplayInputComponentProps) => JSX.Element;
|
|
@@ -14,7 +14,7 @@ export declare function formatDate<T extends string>(configuration: FieldConfigu
|
|
|
14
14
|
search: (props: import("../types").DisplayInputComponentProps) => JSX.Element;
|
|
15
15
|
};
|
|
16
16
|
label: string;
|
|
17
|
-
description?: string
|
|
17
|
+
description?: string;
|
|
18
18
|
widget: import("../types").Widget;
|
|
19
19
|
name: T;
|
|
20
20
|
mandatory: boolean;
|
|
@@ -33,7 +33,7 @@ export declare function formatString<T extends string>(configuration: FieldConfi
|
|
|
33
33
|
search: (props: import("../types").DisplayInputComponentProps) => JSX.Element;
|
|
34
34
|
};
|
|
35
35
|
label: string;
|
|
36
|
-
description?: string
|
|
36
|
+
description?: string;
|
|
37
37
|
widget: import("../types").Widget;
|
|
38
38
|
name: T;
|
|
39
39
|
mandatory: boolean;
|
|
@@ -51,7 +51,7 @@ export declare function formatTextarea<T extends string>(configuration: FieldCon
|
|
|
51
51
|
input: (props: import("../types").DisplayInputComponentProps) => JSX.Element;
|
|
52
52
|
};
|
|
53
53
|
label: string;
|
|
54
|
-
description?: string
|
|
54
|
+
description?: string;
|
|
55
55
|
widget: import("../types").Widget;
|
|
56
56
|
name: T;
|
|
57
57
|
mandatory: boolean;
|
|
@@ -69,7 +69,7 @@ export declare function formatNumber<T extends string>(configuration: FieldConfi
|
|
|
69
69
|
input: (props: import("../types").DisplayInputComponentProps) => JSX.Element;
|
|
70
70
|
};
|
|
71
71
|
label: string;
|
|
72
|
-
description?: string
|
|
72
|
+
description?: string;
|
|
73
73
|
widget: import("../types").Widget;
|
|
74
74
|
name: T;
|
|
75
75
|
mandatory: boolean;
|
|
@@ -87,7 +87,7 @@ export declare function formatTaxonomy<T extends string>(configuration: FieldCon
|
|
|
87
87
|
input: (props: import("../types").DisplayInputComponentProps) => JSX.Element;
|
|
88
88
|
};
|
|
89
89
|
label: string;
|
|
90
|
-
description?: string
|
|
90
|
+
description?: string;
|
|
91
91
|
widget: import("../types").Widget;
|
|
92
92
|
name: T;
|
|
93
93
|
mandatory: boolean;
|
|
@@ -106,7 +106,7 @@ export declare function formatOrientedlinks<T extends string>(configuration: Fie
|
|
|
106
106
|
search: ({ widget, ...props }: import("../types").DisplayInputComponentProps) => JSX.Element;
|
|
107
107
|
};
|
|
108
108
|
label: string;
|
|
109
|
-
description?: string
|
|
109
|
+
description?: string;
|
|
110
110
|
widget: import("../types").Widget;
|
|
111
111
|
name: T;
|
|
112
112
|
mandatory: boolean;
|
|
@@ -124,7 +124,7 @@ export declare function formatUri<T extends string>(configuration: FieldConfigur
|
|
|
124
124
|
input: ({ widget, ...props }: import("../types").DisplayInputComponentProps) => JSX.Element;
|
|
125
125
|
};
|
|
126
126
|
label: string;
|
|
127
|
-
description?: string
|
|
127
|
+
description?: string;
|
|
128
128
|
widget: import("../types").Widget;
|
|
129
129
|
name: T;
|
|
130
130
|
mandatory: boolean;
|
|
@@ -143,7 +143,7 @@ export declare function formatRadio<T extends string>(configuration: FieldConfig
|
|
|
143
143
|
search: ({ widget, ...props }: import("../types").DisplayInputComponentProps) => JSX.Element;
|
|
144
144
|
};
|
|
145
145
|
label: string;
|
|
146
|
-
description?: string
|
|
146
|
+
description?: string;
|
|
147
147
|
widget: import("../types").Widget;
|
|
148
148
|
name: T;
|
|
149
149
|
mandatory: boolean;
|
|
@@ -161,7 +161,7 @@ export declare function formatCheckbox<T extends string>(configuration: FieldCon
|
|
|
161
161
|
input: ({ widget, ...props }: import("../types").DisplayInputComponentProps) => JSX.Element;
|
|
162
162
|
};
|
|
163
163
|
label: string;
|
|
164
|
-
description?: string
|
|
164
|
+
description?: string;
|
|
165
165
|
widget: import("../types").Widget;
|
|
166
166
|
name: T;
|
|
167
167
|
mandatory: boolean;
|
|
@@ -179,7 +179,7 @@ export declare function formatDefault<T extends string>(configuration: FieldConf
|
|
|
179
179
|
input: (props: import("../types").DisplayInputComponentProps) => JSX.Element;
|
|
180
180
|
};
|
|
181
181
|
label: string;
|
|
182
|
-
description?: string
|
|
182
|
+
description?: string;
|
|
183
183
|
widget: import("../types").Widget;
|
|
184
184
|
name: T;
|
|
185
185
|
mandatory: boolean;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { UseFormReset } from 'react-hook-form';
|
|
3
|
-
export declare type JObject<T extends string> = Record<T, any> & {
|
|
4
|
-
title: string;
|
|
5
|
-
id: string;
|
|
6
|
-
type: string;
|
|
7
|
-
};
|
|
8
3
|
export declare type Fields<T extends string> = ReadonlyArray<T>;
|
|
9
4
|
export declare type WidgetText = {
|
|
10
5
|
type: 'text';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Application } from 'utils/types';
|
|
1
|
+
import { Application } from '../../utils/types';
|
|
2
2
|
export declare const applicationAdapter: import("@reduxjs/toolkit").EntityAdapter<Application>;
|
|
3
3
|
export declare const applicationSlice: import("@reduxjs/toolkit").Slice<import("@reduxjs/toolkit").EntityState<Application>, {
|
|
4
4
|
addOne: {
|
|
@@ -26,13 +26,14 @@ export declare const applicationSlice: import("@reduxjs/toolkit").Slice<import("
|
|
|
26
26
|
export declare const applicationSelector: import("@reduxjs/toolkit").EntitySelectors<Application, import("redux").CombinedState<{
|
|
27
27
|
entities: import("redux").CombinedState<{
|
|
28
28
|
applications: import("@reduxjs/toolkit").EntityState<Application>;
|
|
29
|
-
models: import("@reduxjs/toolkit").EntityState<import("utils/types").Model<string>>;
|
|
29
|
+
models: import("@reduxjs/toolkit").EntityState<import("../../utils/types").Model<string>>;
|
|
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
33
|
form: import("redux-form").FormStateMap;
|
|
34
34
|
toasts: import("@reduxjs/toolkit").EntityState<import("./Toast.slice").ToastEntity>;
|
|
35
35
|
}>>;
|
|
36
|
+
export declare type ApplicationSelectorType = typeof applicationSelector;
|
|
36
37
|
export declare const applicationActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
37
38
|
addOne: {
|
|
38
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;
|
|
@@ -55,4 +56,5 @@ export declare const applicationActions: import("@reduxjs/toolkit").CaseReducerA
|
|
|
55
56
|
type: string;
|
|
56
57
|
}): S_5;
|
|
57
58
|
};
|
|
58
|
-
}>;
|
|
59
|
+
}, "applications">;
|
|
60
|
+
export declare type ApplicationActionsType = typeof applicationActions;
|
|
@@ -29,14 +29,15 @@ 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("../../types").Application>;
|
|
33
|
+
models: import("@reduxjs/toolkit").EntityState<import("../../types").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
38
|
toasts: import("@reduxjs/toolkit").EntityState<import("./Toast.slice").ToastEntity>;
|
|
39
39
|
}>>;
|
|
40
|
+
export declare type ArticleSelectorType = typeof articlesSelector;
|
|
40
41
|
export declare const articleActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
41
42
|
addOne: {
|
|
42
43
|
<S extends import("@reduxjs/toolkit").EntityState<Article>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S, import("@reduxjs/toolkit").EntityState<Article>, S>, entity: Article): S;
|
|
@@ -59,4 +60,5 @@ export declare const articleActions: import("@reduxjs/toolkit").CaseReducerActio
|
|
|
59
60
|
type: string;
|
|
60
61
|
}): S_5;
|
|
61
62
|
};
|
|
62
|
-
}>;
|
|
63
|
+
}, "articles">;
|
|
64
|
+
export declare type ArticleActionsType = typeof articleActions;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Model } from 'utils/types';
|
|
1
|
+
import { Model } from '../../utils/types';
|
|
2
2
|
export declare const modelAdapter: import("@reduxjs/toolkit").EntityAdapter<Model<string>>;
|
|
3
3
|
export declare const modelSlice: import("@reduxjs/toolkit").Slice<import("@reduxjs/toolkit").EntityState<Model<string>>, {
|
|
4
4
|
addOne: {
|
|
@@ -25,7 +25,7 @@ export declare const modelSlice: import("@reduxjs/toolkit").Slice<import("@redux
|
|
|
25
25
|
}, "models">;
|
|
26
26
|
export declare const modelSelector: import("@reduxjs/toolkit").EntitySelectors<Model<string>, import("redux").CombinedState<{
|
|
27
27
|
entities: import("redux").CombinedState<{
|
|
28
|
-
applications: import("@reduxjs/toolkit").EntityState<import("utils/types").Application>;
|
|
28
|
+
applications: import("@reduxjs/toolkit").EntityState<import("../../utils/types").Application>;
|
|
29
29
|
models: import("@reduxjs/toolkit").EntityState<Model<string>>;
|
|
30
30
|
users: import("@reduxjs/toolkit").EntityState<import("./User.slice").User>;
|
|
31
31
|
articles: import("@reduxjs/toolkit").EntityState<import("./Article.slice").Article>;
|
|
@@ -33,6 +33,7 @@ export declare const modelSelector: import("@reduxjs/toolkit").EntitySelectors<M
|
|
|
33
33
|
form: import("redux-form").FormStateMap;
|
|
34
34
|
toasts: import("@reduxjs/toolkit").EntityState<import("./Toast.slice").ToastEntity>;
|
|
35
35
|
}>>;
|
|
36
|
+
export declare type ModelSelectorType = typeof modelSelector;
|
|
36
37
|
export declare const modelActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
37
38
|
addOne: {
|
|
38
39
|
<S extends import("@reduxjs/toolkit").EntityState<Model<string>>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S, import("@reduxjs/toolkit").EntityState<Model<string>>, S>, entity: Model<string>): S;
|
|
@@ -55,4 +56,5 @@ export declare const modelActions: import("@reduxjs/toolkit").CaseReducerActions
|
|
|
55
56
|
type: string;
|
|
56
57
|
}): S_5;
|
|
57
58
|
};
|
|
58
|
-
}>;
|
|
59
|
+
}, "models">;
|
|
60
|
+
export declare type ModelActionsType = typeof modelActions;
|
|
@@ -38,13 +38,13 @@ export declare const toasts: {
|
|
|
38
38
|
};
|
|
39
39
|
export declare const toastSelector: import("@reduxjs/toolkit").EntitySelectors<ToastEntity, import("redux").CombinedState<{
|
|
40
40
|
entities: import("redux").CombinedState<{
|
|
41
|
-
applications: import("@reduxjs/toolkit").EntityState<import("../../
|
|
42
|
-
models: import("@reduxjs/toolkit").EntityState<import("../../
|
|
41
|
+
applications: import("@reduxjs/toolkit").EntityState<import("../../types").Application>;
|
|
42
|
+
models: import("@reduxjs/toolkit").EntityState<import("../../types").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
46
|
form: import("redux-form").FormStateMap;
|
|
47
47
|
toasts: import("@reduxjs/toolkit").EntityState<ToastEntity>;
|
|
48
48
|
}>>;
|
|
49
|
-
export declare const addOne: import("@reduxjs/toolkit").ActionCreatorWithPayload<ToastEntity,
|
|
49
|
+
export declare const addOne: import("@reduxjs/toolkit").ActionCreatorWithPayload<ToastEntity, "toasts/addOne">, removeOne: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("@reduxjs/toolkit").EntityId, "toasts/removeOne">;
|
|
50
50
|
export {};
|
|
@@ -29,14 +29,15 @@ 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("../../types").Application>;
|
|
33
|
+
models: import("@reduxjs/toolkit").EntityState<import("../../types").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
38
|
toasts: import("@reduxjs/toolkit").EntityState<import("./Toast.slice").ToastEntity>;
|
|
39
39
|
}>>;
|
|
40
|
+
export declare type UsersSelectorType = typeof usersSelector;
|
|
40
41
|
export declare const userActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
41
42
|
addOne: {
|
|
42
43
|
<S extends import("@reduxjs/toolkit").EntityState<User>>(state: import("@reduxjs/toolkit/dist/tsHelpers").IsAny<S, import("@reduxjs/toolkit").EntityState<User>, S>, entity: User): S;
|
|
@@ -59,4 +60,5 @@ export declare const userActions: import("@reduxjs/toolkit").CaseReducerActions<
|
|
|
59
60
|
type: string;
|
|
60
61
|
}): S_5;
|
|
61
62
|
};
|
|
62
|
-
}>;
|
|
63
|
+
}, "users">;
|
|
64
|
+
export declare type UserActionsType = typeof userActions;
|
package/build/redux/store.d.ts
CHANGED
|
@@ -1,27 +1,52 @@
|
|
|
1
1
|
import { Reducer } from '@reduxjs/toolkit';
|
|
2
|
+
import { UsersSelectorType, UserActionsType } from './slice/User.slice';
|
|
3
|
+
import { ArticleSelectorType, ArticleActionsType } from './slice/Article.slice';
|
|
4
|
+
import { GenericActionsType } from './slice/Generic.actions';
|
|
5
|
+
import { ApplicationSelectorType, ApplicationActionsType } from './slice/Application.slice';
|
|
6
|
+
import { ModelSelectorType, ModelActionsType } from './slice/Model.slice';
|
|
2
7
|
import { TypedUseSelectorHook } from 'react-redux';
|
|
3
8
|
export interface JInjectStore extends ReturnType<typeof createStore> {
|
|
4
9
|
asyncReducers: AsyncReducers;
|
|
5
10
|
add: (key: string, asyncReducer: Reducer) => void;
|
|
6
|
-
selectors:
|
|
7
|
-
|
|
11
|
+
selectors: {
|
|
12
|
+
article: ArticleSelectorType;
|
|
13
|
+
application: ApplicationSelectorType;
|
|
14
|
+
model: ModelSelectorType;
|
|
15
|
+
user: UsersSelectorType;
|
|
16
|
+
};
|
|
17
|
+
actions: {
|
|
18
|
+
article: ArticleActionsType;
|
|
19
|
+
application: ApplicationActionsType;
|
|
20
|
+
model: ModelActionsType;
|
|
21
|
+
user: UserActionsType;
|
|
22
|
+
generic: GenericActionsType;
|
|
23
|
+
};
|
|
8
24
|
}
|
|
9
25
|
export interface AsyncReducers {
|
|
10
26
|
[key: string]: Reducer;
|
|
11
27
|
}
|
|
12
|
-
export declare function makeStore(initialState:
|
|
13
|
-
declare function createStore(initialAsyncReducers: {}, initialState: any): import("@reduxjs/toolkit").
|
|
28
|
+
export declare function makeStore(initialState: AsyncReducers): JInjectStore;
|
|
29
|
+
declare function createStore(initialAsyncReducers: {}, initialState: any): import("@reduxjs/toolkit/dist/configureStore").ToolkitStore<import("redux").CombinedState<{
|
|
14
30
|
entities: import("redux").CombinedState<{
|
|
15
|
-
applications: import("@reduxjs/toolkit").EntityState<import("../
|
|
16
|
-
models: import("@reduxjs/toolkit").EntityState<import("../
|
|
31
|
+
applications: import("@reduxjs/toolkit").EntityState<import("../types").Application>;
|
|
32
|
+
models: import("@reduxjs/toolkit").EntityState<import("../types").Model<string>>;
|
|
17
33
|
users: import("@reduxjs/toolkit").EntityState<import("./slice/User.slice").User>;
|
|
18
34
|
articles: import("@reduxjs/toolkit").EntityState<import("./slice/Article.slice").Article>;
|
|
19
35
|
}>;
|
|
20
36
|
form: import("redux-form").FormStateMap;
|
|
21
37
|
toasts: import("@reduxjs/toolkit").EntityState<import("./slice/Toast.slice").ToastEntity>;
|
|
22
|
-
}>, import("redux").AnyAction,
|
|
23
|
-
|
|
24
|
-
|
|
38
|
+
}>, import("redux").AnyAction, import("@reduxjs/toolkit").ThunkMiddleware<import("redux").EmptyObject & {
|
|
39
|
+
entities: import("redux").CombinedState<{
|
|
40
|
+
applications: import("@reduxjs/toolkit").EntityState<import("../types").Application>;
|
|
41
|
+
models: import("@reduxjs/toolkit").EntityState<import("../types").Model<string>>;
|
|
42
|
+
users: import("@reduxjs/toolkit").EntityState<import("./slice/User.slice").User>;
|
|
43
|
+
articles: import("@reduxjs/toolkit").EntityState<import("./slice/Article.slice").Article>;
|
|
44
|
+
}>;
|
|
45
|
+
form: import("redux-form").FormStateMap;
|
|
46
|
+
toasts: import("@reduxjs/toolkit").EntityState<import("./slice/Toast.slice").ToastEntity>;
|
|
47
|
+
}, import("redux").AnyAction, {
|
|
48
|
+
jApi: import("jamespot-user-api").JamespotUserApi;
|
|
49
|
+
}>[]>;
|
|
25
50
|
export declare type AppDispatch = ReturnType<typeof createStore>['dispatch'];
|
|
26
51
|
export declare type RootState = ReturnType<ReturnType<typeof createStore>['getState']>;
|
|
27
52
|
export declare const useAppDispatch: () => import("redux").Dispatch<import("redux").AnyAction>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { AllComponentListKey, AllComponentListType, AllComponentTypes } from './types';
|
|
3
3
|
export interface RegistryComponents {
|
|
4
4
|
[key: string]: any;
|
|
5
5
|
}
|
|
@@ -8,8 +8,8 @@ export declare class ReactRegistry {
|
|
|
8
8
|
listLazy: RegistryComponents;
|
|
9
9
|
getComponent(name: string): any;
|
|
10
10
|
registerLazyComponent(name: string, promise: React.LazyExoticComponent<React.ComponentType<any>>): void;
|
|
11
|
-
registerLib(componentList:
|
|
12
|
-
getLazyComponent<T>(name:
|
|
11
|
+
registerLib(componentList: Partial<AllComponentListType>, importPromise: any): void;
|
|
12
|
+
getLazyComponent<T extends AllComponentListKey>(name: T): AllComponentTypes[AllComponentListType[T]];
|
|
13
13
|
}
|
|
14
14
|
declare const Registry: ReactRegistry;
|
|
15
15
|
export { Registry };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* please fill this file and coreComponents.ts
|
|
3
|
+
*/
|
|
4
|
+
export declare const coreComponentsMapping: {
|
|
5
|
+
readonly DisplayForm: "DisplayForm";
|
|
6
|
+
readonly Empty: "Empty";
|
|
7
|
+
readonly TwoColLayout: "TwoColLayout";
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* please fill this file and coreComponents.ts
|
|
11
|
+
*/
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* please fill this file and core-component-list.ts
|
|
3
|
+
*/
|
|
4
|
+
export { DisplayForm } from '../displayer/DisplayForm.component';
|
|
5
|
+
export { Empty } from '../displayer/Empty';
|
|
6
|
+
export { TwoColLayout } from '../components/TwoColLayout';
|
|
7
|
+
/**
|
|
8
|
+
* please fill this file and core-component-list.ts
|
|
9
|
+
*/
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
readonly AppColumn: "JRCAppColumn";
|
|
3
|
+
readonly MainColumn: "JRCMainColumn";
|
|
4
|
+
readonly Column: "JRCColumn";
|
|
5
|
+
readonly Container: "JRCContainer";
|
|
6
|
+
readonly Alert: "JRCAlert";
|
|
7
|
+
readonly AppContainer: "JRCAppContainer";
|
|
8
|
+
readonly AppHeader: "JRCAppHeader";
|
|
9
|
+
readonly AppLeftColumn: "JRCAppLeftColumn";
|
|
10
|
+
readonly Avatar: "JRCAvatar";
|
|
11
|
+
readonly AutocompleteAudienceField: "JRCAutocompleteAudienceField";
|
|
12
|
+
readonly AutocompleteCommunityField: "JRCAutocompleteCommunityField";
|
|
13
|
+
readonly AutocompleteTaxonomyField: "JRCAutocompleteTaxonomyField";
|
|
14
|
+
readonly Button: "JRCButton";
|
|
15
|
+
readonly ButtonDropdown: "JRCButtonDropdown";
|
|
16
|
+
readonly ButtonDownload: "JRCButtonDownload";
|
|
17
|
+
readonly ButtonFile: "JRCButtonFile";
|
|
18
|
+
readonly Card: "JRCCard";
|
|
19
|
+
readonly ColumnCenter: "JRCColumnCenter";
|
|
20
|
+
readonly ColumnLeft: "JRCColumnLeft";
|
|
21
|
+
readonly ColumnRight: "JRCColumnRight";
|
|
22
|
+
readonly FormCheckbox: "JRCFormCheckbox";
|
|
23
|
+
readonly ConditionalWrapper: "JRCConditionalWrapper";
|
|
24
|
+
readonly Date: "JRCDate";
|
|
25
|
+
readonly DraggingPlaceholder: "JRCDraggingPlaceholder";
|
|
26
|
+
readonly FileOpen: "JRCFileOpen";
|
|
27
|
+
readonly FormColorField: "JRCFormColorField";
|
|
28
|
+
readonly FormDatetimeField: "JRCFormDatetimeField";
|
|
29
|
+
readonly FormEmailField: "JRCFormEmailField";
|
|
30
|
+
readonly FormNumberField: "JRCFormNumberField";
|
|
31
|
+
readonly FormInputFile: "JRCFormInputFile";
|
|
32
|
+
readonly FormInputFileField: "JRCFormInputFileField";
|
|
33
|
+
readonly FormInputImageField: "JRCFormInputImageField";
|
|
34
|
+
readonly DropDown: "JRCDropDown";
|
|
35
|
+
readonly Ellipsis: "JRCEllipsis";
|
|
36
|
+
readonly FormRangeField: "JRCFormRangeField";
|
|
37
|
+
readonly FormRichTextField: "JRCFormRichTextField";
|
|
38
|
+
readonly FormSendAlertField: "JRCFormSendAlertField";
|
|
39
|
+
readonly FormReceiveACopyField: "JRCFormReceiveACopyField";
|
|
40
|
+
readonly FormTextField: "JRCFormTextField";
|
|
41
|
+
readonly FormUrlField: "JRCFormUrlField";
|
|
42
|
+
readonly FormSelectInput: "JRCFormSelectInput";
|
|
43
|
+
readonly FormSelectField: "JRCFormSelectField";
|
|
44
|
+
readonly FormSelectTagField: "JRCFormSelectTagField";
|
|
45
|
+
readonly Grid: "JRCGrid";
|
|
46
|
+
readonly Pagination: "JRCPagination";
|
|
47
|
+
readonly FormTextarea: "JRCFormTextarea";
|
|
48
|
+
readonly FormTextareaField: "JRCFormTextareaField";
|
|
49
|
+
readonly ModalImg: "JRCModalImg";
|
|
50
|
+
readonly Modal: "JRCModal";
|
|
51
|
+
readonly StyledHref: "JRCStyledHref";
|
|
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";
|
|
61
|
+
readonly H1: "JRCH1";
|
|
62
|
+
readonly H2: "JRCH2";
|
|
63
|
+
readonly H3: "JRCH3";
|
|
64
|
+
readonly H4: "JRCH4";
|
|
65
|
+
readonly H5: "JRCH5";
|
|
66
|
+
readonly Tabs: "JRCTabs";
|
|
67
|
+
readonly Text: "JRCText";
|
|
68
|
+
readonly Typography: "JRCTypography";
|
|
69
|
+
readonly Theme: "Theme";
|
|
70
|
+
readonly TemplateBase: "JRCTemplateBase";
|
|
71
|
+
readonly TemplateTwoColumns: "JRCTemplateTwoColumns";
|
|
72
|
+
readonly Resources: "Resources";
|
|
73
|
+
readonly StyledInput: "StyledInput";
|
|
74
|
+
readonly InputSelect: "JRCInputSelect";
|
|
75
|
+
readonly InputAutocomplete: "JRCInputAutocomplete";
|
|
76
|
+
readonly InputCommunity: "JRCInputCommunity";
|
|
77
|
+
readonly InputCheckbox: "JRCInputCheckbox";
|
|
78
|
+
readonly InputEmail: "JRCInputEmail";
|
|
79
|
+
readonly InputDate: "JRCInputDate";
|
|
80
|
+
readonly InputText: "JRCInputText";
|
|
81
|
+
readonly InputTextarea: "JRCInputTextarea";
|
|
82
|
+
readonly SkeletonSquare: "JRCSkeletonSquare";
|
|
83
|
+
readonly SkeletonLine: "JRCSkeletonLine";
|
|
84
|
+
readonly ValidationButton: "JRCValidationButton";
|
|
85
|
+
};
|
|
86
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function initCommonComponents(): void;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import jComponentList from './ext-component-list';
|
|
2
|
+
import { coreComponentsMapping } from './core-component-list';
|
|
3
|
+
import jrComponent from 'jamespot-react-components';
|
|
4
|
+
import * as coreComponents from './coreComponents';
|
|
5
|
+
/**
|
|
6
|
+
* j-react-components { JRCButton: () => <JRCButton/>, ... }
|
|
7
|
+
*/
|
|
8
|
+
export declare type JrComponentTypes = typeof jrComponent;
|
|
9
|
+
/**
|
|
10
|
+
* jrc component list { Button: "JRCButton", ... }
|
|
11
|
+
*/
|
|
12
|
+
export declare type JrComponentListType = typeof jComponentList;
|
|
13
|
+
/**
|
|
14
|
+
* jrc component keys { "Button" | ... }
|
|
15
|
+
*/
|
|
16
|
+
export declare type JrComponentListKey = keyof JrComponentListType;
|
|
17
|
+
/**
|
|
18
|
+
* j-core-components { Empty: () => <Empty/>, ... }
|
|
19
|
+
*/
|
|
20
|
+
export declare type CoreComponentTypes = typeof coreComponents;
|
|
21
|
+
/**
|
|
22
|
+
* jrc component list { Empty: "Empty", ... }
|
|
23
|
+
*/
|
|
24
|
+
export declare type CoreComponentListType = typeof coreComponentsMapping;
|
|
25
|
+
/**
|
|
26
|
+
* core component keys { "Empty" | ... }
|
|
27
|
+
*/
|
|
28
|
+
export declare type CoreComponentListKey = keyof CoreComponentListType;
|
|
29
|
+
export declare type AllComponentTypes = JrComponentTypes & CoreComponentTypes;
|
|
30
|
+
export declare type AllComponentListType = JrComponentListType & CoreComponentListType;
|
|
31
|
+
export declare type AllComponentListKey = JrComponentListKey | CoreComponentListKey;
|
package/build/types.d.ts
CHANGED
package/build/utils/router.d.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import type { RouteObject } from 'react-router-dom';
|
|
2
|
-
|
|
2
|
+
import { BrowserHistory } from 'history';
|
|
3
|
+
export declare const ReactRouterHistory: BrowserHistory;
|
|
3
4
|
export interface ReactRouter {
|
|
5
|
+
history: BrowserHistory;
|
|
4
6
|
routes: RouteObject[];
|
|
5
7
|
addRoute: (route: RouteObject) => void;
|
|
6
8
|
init: (idDiv: string) => void;
|
|
7
9
|
}
|
|
8
10
|
declare class Router implements ReactRouter {
|
|
11
|
+
history: BrowserHistory;
|
|
9
12
|
routes: RouteObject[];
|
|
13
|
+
constructor(history: BrowserHistory);
|
|
10
14
|
addRoute: (route: RouteObject) => void;
|
|
11
15
|
init: (idDiv: string) => void;
|
|
12
16
|
}
|
package/build/utils/types.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ReactRegistry } from '
|
|
2
|
+
import { ReactRegistry } from '../registry/Registry';
|
|
3
3
|
import { ReactTranslation, SupportedLanguages, TranslationKeys } from './translation';
|
|
4
|
-
export { Configuration, DisplayAttributesProps, DisplayFormProps } from '../displayer/types';
|
|
5
|
-
export * from '../components/types';
|
|
6
4
|
import { useDisplay } from '../displayer/useDisplay';
|
|
7
5
|
import { Configuration } from '../displayer/types';
|
|
8
6
|
import { ReactRouter } from './router';
|
|
9
7
|
import { toasts } from '../redux/slice/Toast.slice';
|
|
8
|
+
import { JrComponentListType } from '../registry/types';
|
|
10
9
|
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';
|
|
11
10
|
export interface ReactCore {
|
|
12
11
|
extensions: ReactExtensions;
|
|
@@ -14,7 +13,7 @@ export interface ReactCore {
|
|
|
14
13
|
actions: object;
|
|
15
14
|
registry: ReactRegistry;
|
|
16
15
|
locale?: SupportedLanguages;
|
|
17
|
-
translation
|
|
16
|
+
translation: ReactTranslation;
|
|
18
17
|
theme: any;
|
|
19
18
|
socket?: ReactSocket;
|
|
20
19
|
router: ReactRouter;
|
|
@@ -54,7 +53,7 @@ export interface ReactSocket {
|
|
|
54
53
|
export declare type SocketSharedWorker = {
|
|
55
54
|
user?: {
|
|
56
55
|
idUser: number;
|
|
57
|
-
};
|
|
56
|
+
} | undefined;
|
|
58
57
|
ports: any[];
|
|
59
58
|
call: (type: string, event: string, data?: any) => void;
|
|
60
59
|
};
|
|
@@ -94,10 +93,6 @@ export interface SharedWorkerEventData {
|
|
|
94
93
|
event?: string;
|
|
95
94
|
data: any;
|
|
96
95
|
}
|
|
97
|
-
export interface JComponent {
|
|
98
|
-
name: string;
|
|
99
|
-
module: string;
|
|
100
|
-
}
|
|
101
96
|
export interface JConfig {
|
|
102
97
|
resourceShowKey?: boolean;
|
|
103
98
|
}
|
|
@@ -132,7 +127,7 @@ export interface WindowJ {
|
|
|
132
127
|
config: JConfig;
|
|
133
128
|
resources: TranslationKeys;
|
|
134
129
|
jUserLogged: JUser;
|
|
135
|
-
jamespotReactComponentList:
|
|
130
|
+
jamespotReactComponentList: JrComponentListType;
|
|
136
131
|
jamespotReactTheme: any;
|
|
137
132
|
applications: Application[];
|
|
138
133
|
models: Model<string>[];
|
|
@@ -150,6 +145,9 @@ export interface Application {
|
|
|
150
145
|
color?: string;
|
|
151
146
|
sref?: string;
|
|
152
147
|
type?: string;
|
|
148
|
+
_extend: {
|
|
149
|
+
[key: string]: any;
|
|
150
|
+
};
|
|
153
151
|
}
|
|
154
152
|
export interface Model<T extends string = string> {
|
|
155
153
|
type: string;
|
|
@@ -189,5 +187,4 @@ export declare type ReactExtensionProps = {
|
|
|
189
187
|
gabarit?: Gabarit;
|
|
190
188
|
apiDependency?: string;
|
|
191
189
|
};
|
|
192
|
-
export
|
|
193
|
-
export { RootState } from '../redux/store';
|
|
190
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.78",
|
|
4
4
|
"description": "Jamespot React Core",
|
|
5
5
|
"main": "./build/app.bundle.js",
|
|
6
6
|
"types": "./build/App.d.ts",
|
|
@@ -19,21 +19,21 @@
|
|
|
19
19
|
"test": "jest",
|
|
20
20
|
"test:watch": "npm run test -- --watch",
|
|
21
21
|
"versions": "node -v && npm -v && webpack -v",
|
|
22
|
-
"prepare": "
|
|
22
|
+
"prepare": "husky install"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
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.
|
|
28
|
+
"@reduxjs/toolkit": "^1.9.0",
|
|
29
29
|
"@types/jest": "^27.0.2",
|
|
30
30
|
"@types/react": "^17.0.2",
|
|
31
31
|
"@types/react-dom": "^17.0.2",
|
|
32
|
-
"@types/react-redux": "^7.1.
|
|
32
|
+
"@types/react-redux": "^7.1.24",
|
|
33
33
|
"@types/react-router-dom": "^5.3.3",
|
|
34
34
|
"@types/react-test-renderer": "^17.0.1",
|
|
35
35
|
"@types/react-transition-group": "^4.4.1",
|
|
36
|
-
"@types/redux-form": "^8.
|
|
36
|
+
"@types/redux-form": "^8.3.5",
|
|
37
37
|
"@types/socket.io-client": "^3.0.0",
|
|
38
38
|
"@types/styled-components": "^5.1.4",
|
|
39
39
|
"@typescript-eslint/eslint-plugin": "^5.4.0",
|
|
@@ -65,20 +65,20 @@
|
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"history": "^5.3.0",
|
|
68
|
-
"jamespot-react-components": "^1.0.
|
|
69
|
-
"jamespot-user-api": "^1.0.
|
|
68
|
+
"jamespot-react-components": "^1.0.105",
|
|
69
|
+
"jamespot-user-api": "^1.0.80",
|
|
70
70
|
"pkg.json": "^2.0.8",
|
|
71
71
|
"react": "^17.0.2",
|
|
72
72
|
"react-dom": "^17.0.2",
|
|
73
73
|
"react-hook-form": "^7.25.0",
|
|
74
74
|
"react-intl": "^5.8.6",
|
|
75
|
-
"react-redux": "^7.2.
|
|
75
|
+
"react-redux": "^7.2.9",
|
|
76
76
|
"react-router-dom": "^6.2.1",
|
|
77
77
|
"react-select": "^3.2.0",
|
|
78
78
|
"react-transition-group": "^4.4.1",
|
|
79
|
-
"redux": "^4.0
|
|
79
|
+
"redux": "^4.2.0",
|
|
80
80
|
"redux-form": "^8.3.8",
|
|
81
|
-
"redux-thunk": "^2.
|
|
81
|
+
"redux-thunk": "^2.4.2",
|
|
82
82
|
"socket.io-client": "^4.2.0",
|
|
83
83
|
"styled-components": "^5.2.1"
|
|
84
84
|
},
|