jamespot-react-core 1.1.84 → 1.1.86

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.
@@ -7,6 +7,7 @@ export declare type TwoColLayoutProps = {
7
7
  key: string;
8
8
  icon: string;
9
9
  label: string;
10
+ group?: string;
10
11
  }>;
11
12
  description: JRCAppColumnProps['description'];
12
13
  };
@@ -42,6 +42,7 @@ export declare const articlesSelector: import("@reduxjs/toolkit").EntitySelector
42
42
  timeout: number;
43
43
  type: "error" | "success" | "warning";
44
44
  }>;
45
+ userCurrent: import("jamespot-user-api").jUserList;
45
46
  }>>;
46
47
  export declare type ArticleSelectorType = typeof articlesSelector;
47
48
  export declare const articleActions: import("@reduxjs/toolkit").CaseReducerActions<{
@@ -42,6 +42,7 @@ export declare const usersSelector: import("@reduxjs/toolkit").EntitySelectors<U
42
42
  timeout: number;
43
43
  type: "error" | "success" | "warning";
44
44
  }>;
45
+ userCurrent: import("jamespot-user-api").jUserList;
45
46
  }>>;
46
47
  export declare type UsersSelectorType = typeof usersSelector;
47
48
  export declare const userActions: import("@reduxjs/toolkit").CaseReducerActions<{
@@ -2,7 +2,7 @@ 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 { Application, Model } from 'jamespot-front-business';
5
+ import { Application, Model, UserCurrent } from 'jamespot-front-business';
6
6
  import { TypedUseSelectorHook } from 'react-redux';
7
7
  export interface JInjectStore extends ReturnType<typeof createStore> {
8
8
  asyncReducers: AsyncReducers;
@@ -12,12 +12,14 @@ export interface JInjectStore extends ReturnType<typeof createStore> {
12
12
  application: typeof Application.selectors;
13
13
  model: typeof Model.selectors;
14
14
  user: UsersSelectorType;
15
+ userCurrent: typeof UserCurrent.selectors;
15
16
  };
16
17
  actions: {
17
18
  article: ArticleActionsType;
18
19
  application: typeof Application.actions;
19
20
  model: typeof Model.actions;
20
21
  user: UserActionsType;
22
+ userCurrent: typeof UserCurrent.actions;
21
23
  generic: GenericActionsType;
22
24
  };
23
25
  }
@@ -40,6 +42,7 @@ declare function createStore(initialAsyncReducers: {}, initialState: any): impor
40
42
  timeout: number;
41
43
  type: "error" | "success" | "warning";
42
44
  }>;
45
+ userCurrent: import("jamespot-user-api").jUserList;
43
46
  }>, import("redux").AnyAction, import("@reduxjs/toolkit").ThunkMiddleware<import("redux").EmptyObject & {
44
47
  entities: import("redux").CombinedState<{
45
48
  applications: import("@reduxjs/toolkit").EntityState<import("jamespot-user-api").Application>;
@@ -55,6 +58,7 @@ declare function createStore(initialAsyncReducers: {}, initialState: any): impor
55
58
  timeout: number;
56
59
  type: "error" | "success" | "warning";
57
60
  }>;
61
+ userCurrent: import("jamespot-user-api").jUserList;
58
62
  }, import("redux").AnyAction, {
59
63
  jApi: import("jamespot-user-api").JamespotUserApi;
60
64
  }>[]>;
@@ -1,10 +1,10 @@
1
+ import { Application, jUserList, Model } from 'jamespot-user-api';
1
2
  import * as React from 'react';
2
- import { ReactRegistry } from '../registry/Registry';
3
- import { ReactTranslation, SupportedLanguages, TranslationKeys } from './translation';
4
3
  import { useDisplay } from '../displayer/useDisplay';
5
- import { ReactRouter } from './router';
4
+ import { ReactRegistry } from '../registry/Registry';
6
5
  import { JrComponentListType } from '../registry/types';
7
- import { Application, Model } from 'jamespot-user-api';
6
+ import { ReactRouter } from './router';
7
+ import { ReactTranslation, SupportedLanguages, TranslationKeys } from './translation';
8
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';
9
9
  export interface ReactCore {
10
10
  extensions: ReactExtensions;
@@ -124,32 +124,16 @@ export interface WindowJ {
124
124
  locale: SupportedLanguages;
125
125
  config: JConfig;
126
126
  resources: TranslationKeys;
127
- jUserLogged: JUser;
127
+ jUserCurrent: jUserList;
128
128
  jamespotReactComponentList: JrComponentListType;
129
129
  jamespotReactTheme: any;
130
130
  applications: Application[];
131
131
  models: Model<string>[];
132
132
  debug: any;
133
133
  urlBase: string;
134
+ jlandUrlBase: string;
134
135
  types: JType[];
135
136
  }
136
- export interface JObject {
137
- id: number;
138
- type: string;
139
- mainType: string;
140
- _cssColor: string;
141
- _cssClass: string;
142
- uri: string;
143
- }
144
- export interface JUser extends JObject {
145
- title: string;
146
- firstname: string;
147
- lastname: string;
148
- mail: string;
149
- _url: string;
150
- dateModified: string;
151
- _values: Record<string, any>;
152
- }
153
137
  export declare type IsAppActivateProps = {
154
138
  dependency: string;
155
139
  children: JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-core",
3
- "version": "1.1.84",
3
+ "version": "1.1.86",
4
4
  "description": "Jamespot React Core",
5
5
  "main": "./build/app.bundle.js",
6
6
  "types": "./build/App.d.ts",
@@ -64,9 +64,9 @@
64
64
  "dependencies": {
65
65
  "@reduxjs/toolkit": "^1.9.0",
66
66
  "history": "^5.3.0",
67
- "jamespot-front-business": "^1.1.0",
68
- "jamespot-react-components": "^1.0.113",
69
- "jamespot-user-api": "^1.0.84",
67
+ "jamespot-front-business": "^1.1.3",
68
+ "jamespot-react-components": "^1.0.116",
69
+ "jamespot-user-api": "^1.0.89",
70
70
  "react": "^17.0.2",
71
71
  "react-dom": "^17.0.2",
72
72
  "react-hook-form": "^7.25.0",