@firedesktop/react-base 1.42.0 → 1.43.0

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,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  export declare type configurationLoaderParamsType = {
3
- updateAppState: (name: string, value: object) => void;
3
+ updateAppState: (name: string, value: object) => any;
4
4
  path?: string;
5
5
  };
6
6
  declare function ConfigurationLoader({ updateAppState, path }: configurationLoaderParamsType): JSX.Element;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  export declare type languageLoaderParamsType = {
3
- updateAppState: (name: string, value: object) => void;
3
+ updateAppState: (name: string, value: object) => any;
4
4
  language: string;
5
5
  path?: string;
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firedesktop/react-base",
3
- "version": "1.42.0",
3
+ "version": "1.43.0",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "description": "This is the FireDesktop base package used to support every React Project in this Company.",
@@ -17,20 +17,20 @@
17
17
  "@babel/plugin-transform-arrow-functions": "7.16.7",
18
18
  "@babel/preset-typescript": "7.16.7",
19
19
  "@testing-library/jest-dom": "5.16.4",
20
- "@testing-library/react": "13.0.1",
21
- "@testing-library/user-event": "14.1.0",
20
+ "@testing-library/react": "13.1.1",
21
+ "@testing-library/user-event": "14.1.1",
22
22
  "@types/jest": "27.4.1",
23
- "@types/node": "17.0.23",
24
- "@types/react": "18.0.3",
25
- "@types/react-dom": "18.0.0",
26
- "@types/react-redux": "7.1.23",
23
+ "@types/node": "17.0.25",
24
+ "@types/react": "18.0.5",
25
+ "@types/react-dom": "18.0.1",
26
+ "@types/react-redux": "7.1.24",
27
27
  "babel-plugin-minify-builtins": "0.5.0",
28
28
  "babel-preset-minify": "0.5.1",
29
29
  "bootstrap": "4.6.0",
30
30
  "copyfiles": "2.4.1",
31
31
  "react": "18.0.0",
32
32
  "react-dom": "18.0.0",
33
- "react-redux": "7.2.8",
33
+ "react-redux": "8.0.0",
34
34
  "react-scripts": "5.0.1",
35
35
  "typescript": "4.6.3",
36
36
  "web-vitals": "2.1.4"
package/src/App.tsx CHANGED
@@ -1,4 +1,4 @@
1
- import React, { createRef, useRef, useState } from 'react';
1
+ import React, { useRef, useState } from 'react';
2
2
  import { Provider } from 'react-redux';
3
3
  import { createStore } from 'redux';
4
4
 
package/src/index.tsx CHANGED
@@ -1,14 +1,25 @@
1
- import React from 'react';
2
- import ReactDOM from 'react-dom';
1
+ import { registerLicense } from '@syncfusion/ej2-base';
2
+ import { createRoot } from 'react-dom/client';
3
+
3
4
  import App from './App';
4
5
  import reportWebVitals from './reportWebVitals';
5
6
 
6
- ReactDOM.render(
7
- <React.StrictMode>
8
- <App />
9
- </React.StrictMode>,
10
- document.getElementById('root')
11
- );
7
+
8
+ // ****************************************************************************************************
9
+ // Syncfusion Doc
10
+ // https://ej2.syncfusion.com/react/documentation/licensing/license-key-registration/#reactjs
11
+ //
12
+ // ReactJs
13
+ // https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html
14
+ //
15
+ // ****************************************************************************************************
16
+ registerLicense('ORg4AjUWIQA/Gnt2VVhhQlFaclhJXGFWfVJpTGpQdk5xdV9DaVZUTWY/P1ZhSXxRdkFjXX5fcXFVT2BeWUE=');
17
+
18
+ const container = document.getElementById('root');
19
+ if (container) {
20
+ const root = createRoot(container);
21
+ root.render(<App />);
22
+ }
12
23
 
13
24
  // If you want to start measuring performance in your app, pass a function
14
25
  // to log results (for example: reportWebVitals(console.log))
@@ -4,7 +4,7 @@ import { useDispatch, useSelector } from 'react-redux';
4
4
  import ConfigurationManager from './ConfigurationManager';
5
5
 
6
6
  export type configurationLoaderParamsType = {
7
- updateAppState: (name: string, value: object) => void,
7
+ updateAppState: (name: string, value: object) => any,
8
8
  path?: string
9
9
  }
10
10
 
@@ -4,7 +4,7 @@ import { useDispatch, useSelector } from 'react-redux';
4
4
  import LanguageManager from './LanguageManager';
5
5
 
6
6
  export type languageLoaderParamsType = {
7
- updateAppState: (name: string, value: object) => void,
7
+ updateAppState: (name: string, value: object) => any,
8
8
  language: string,
9
9
  path?: string,
10
10
  }