jamespot-react-core 1.1.75 → 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 +1 -1
- package/build/app.bundle.js +2 -2
- package/build/app.bundle.js.map +1 -1
- package/build/redux/slice/Application.slice.d.ts +1 -1
- package/build/redux/slice/Article.slice.d.ts +1 -1
- package/build/redux/slice/Model.slice.d.ts +1 -1
- package/build/redux/slice/Toast.slice.d.ts +1 -1
- package/build/redux/slice/User.slice.d.ts +1 -1
- package/build/redux/store.d.ts +12 -5
- package/package.json +8 -8
- package/script/traduction-react.php +3 -1
|
@@ -46,5 +46,5 @@ export declare const toastSelector: import("@reduxjs/toolkit").EntitySelectors<T
|
|
|
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 {};
|
package/build/redux/store.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export interface AsyncReducers {
|
|
|
26
26
|
[key: string]: Reducer;
|
|
27
27
|
}
|
|
28
28
|
export declare function makeStore(initialState: AsyncReducers): JInjectStore;
|
|
29
|
-
declare function createStore(initialAsyncReducers: {}, initialState: any): import("@reduxjs/toolkit").
|
|
29
|
+
declare function createStore(initialAsyncReducers: {}, initialState: any): import("@reduxjs/toolkit/dist/configureStore").ToolkitStore<import("redux").CombinedState<{
|
|
30
30
|
entities: import("redux").CombinedState<{
|
|
31
31
|
applications: import("@reduxjs/toolkit").EntityState<import("../types").Application>;
|
|
32
32
|
models: import("@reduxjs/toolkit").EntityState<import("../types").Model<string>>;
|
|
@@ -35,13 +35,20 @@ declare function createStore(initialAsyncReducers: {}, initialState: any): impor
|
|
|
35
35
|
}>;
|
|
36
36
|
form: import("redux-form").FormStateMap;
|
|
37
37
|
toasts: import("@reduxjs/toolkit").EntityState<import("./slice/Toast.slice").ToastEntity>;
|
|
38
|
-
}>, import("redux").AnyAction, import("
|
|
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, {
|
|
39
48
|
jApi: import("jamespot-user-api").JamespotUserApi;
|
|
40
49
|
}>[]>;
|
|
41
50
|
export declare type AppDispatch = ReturnType<typeof createStore>['dispatch'];
|
|
42
51
|
export declare type RootState = ReturnType<ReturnType<typeof createStore>['getState']>;
|
|
43
|
-
export declare const useAppDispatch: () => import("redux
|
|
44
|
-
jApi: import("jamespot-user-api").JamespotUserApi;
|
|
45
|
-
}, import("redux").AnyAction> & import("redux").Dispatch<import("redux").AnyAction>;
|
|
52
|
+
export declare const useAppDispatch: () => import("redux").Dispatch<import("redux").AnyAction>;
|
|
46
53
|
export declare const useAppSelector: TypedUseSelectorHook<RootState>;
|
|
47
54
|
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",
|
|
@@ -25,15 +25,15 @@
|
|
|
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",
|
|
@@ -66,19 +66,19 @@
|
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"history": "^5.3.0",
|
|
68
68
|
"jamespot-react-components": "^1.0.105",
|
|
69
|
-
"jamespot-user-api": "^1.0.
|
|
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
|
},
|
|
@@ -53,7 +53,9 @@ class Translator {
|
|
|
53
53
|
$output[$key] = $this->traductionKeysTmp[$key];
|
|
54
54
|
} else if (array_key_exists($key, $this->traductionKeys["en"])) {
|
|
55
55
|
$output[$key] = $this->traductionKeys["en"][$key];
|
|
56
|
-
|
|
56
|
+
if (in_array($language, ['fr', 'es'])) {
|
|
57
|
+
echo "\nKey not found: $key";
|
|
58
|
+
}
|
|
57
59
|
} else {
|
|
58
60
|
$output[$key] = $value;
|
|
59
61
|
echo "\nKey not found: $key";
|