jamespot-react-core 1.1.52 → 1.1.56

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.
@@ -1,4 +1,5 @@
1
1
  import type { RouteObject } from 'react-router-dom';
2
+ export declare const ReactRouterHistory: import("history").BrowserHistory;
2
3
  export interface ReactRouter {
3
4
  routes: RouteObject[];
4
5
  addRoute: (route: RouteObject) => void;
@@ -101,10 +101,26 @@ export interface JComponent {
101
101
  export interface JConfig {
102
102
  resourceShowKey?: boolean;
103
103
  }
104
+ declare type WindowJNG = {
105
+ html5: boolean;
106
+ addState: (stateName: string, options: any) => void;
107
+ transitionTo: (stateName: string, args: {}, options?: {
108
+ reload: boolean;
109
+ notify?: boolean;
110
+ callback?: () => void;
111
+ event?: React.MouseEvent<HTMLElement>;
112
+ }) => void;
113
+ scrollTop: () => void;
114
+ messengerOpenDiscussion: (options: {
115
+ idUser: number;
116
+ idDiscussion?: string;
117
+ type?: string;
118
+ }) => void;
119
+ };
104
120
  export interface WindowJ {
105
121
  react: ReactCore;
106
122
  revision: string;
107
- ng: any;
123
+ ng: WindowJNG;
108
124
  locale: SupportedLanguages;
109
125
  config: JConfig;
110
126
  resources: TranslationKeys;
@@ -114,6 +130,7 @@ export interface WindowJ {
114
130
  applications: Application[];
115
131
  models: Model<string>[];
116
132
  debug: any;
133
+ urlBase: string;
117
134
  }
118
135
  export interface Application {
119
136
  name: string;
@@ -123,6 +123,10 @@
123
123
  "name": "FormInputFileField",
124
124
  "module": "JRCFormInputFileField"
125
125
  },
126
+ {
127
+ "name": "FormInputImageField",
128
+ "module": "JRCFormInputImageField"
129
+ },
126
130
  {
127
131
  "name": "DropDown",
128
132
  "module": "JRCDropDown"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-core",
3
- "version": "1.1.52",
3
+ "version": "1.1.56",
4
4
  "description": "Jamespot React Core",
5
5
  "main": "./build/app.bundle.js",
6
6
  "types": "./build/App.d.ts",
@@ -64,8 +64,9 @@
64
64
  "worker-loader": "^3.0.8"
65
65
  },
66
66
  "dependencies": {
67
- "jamespot-react-components": "^1.0.66",
68
- "jamespot-user-api": "^1.0.44",
67
+ "history": "^5.3.0",
68
+ "jamespot-react-components": "^1.0.78",
69
+ "jamespot-user-api": "^1.0.48",
69
70
  "pkg.json": "^2.0.8",
70
71
  "react": "^17.0.2",
71
72
  "react-dom": "^17.0.2",