@asaleh37/ui-base 1.1.8 → 1.1.9

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/package.json CHANGED
@@ -1,113 +1,113 @@
1
- {
2
- "name": "@asaleh37/ui-base",
3
- "version": "1.1.8",
4
- "description": "",
5
- "license": "ISC",
6
- "author": "Ahmed Saleh Mohamed",
7
- "type": "commonjs",
8
- "main": "dist/index.js",
9
- "module": "dist/index.mjs",
10
- "types": "dist/index.d.ts",
11
- "scripts": {
12
- "build": "rollup -c --bundleConfigAsCjs",
13
- "dev": "vite"
14
- },
15
- "devDependencies": {
16
- "@emotion/cache": "^11.14.0",
17
- "@emotion/react": "^11.14.0",
18
- "@emotion/styled": "^11.14.0",
19
- "@eslint/js": "^9.19.0",
20
- "@fortawesome/fontawesome-svg-core": "^6.7.2",
21
- "@fortawesome/free-brands-svg-icons": "^6.7.2",
22
- "@fortawesome/free-regular-svg-icons": "^6.7.2",
23
- "@fortawesome/free-solid-svg-icons": "^6.7.2",
24
- "@fortawesome/react-fontawesome": "^0.2.2",
25
- "@hookform/resolvers": "^4.1.0",
26
- "@mui/icons-material": "^6.4.8",
27
- "@mui/material": "^6.4.4",
28
- "@mui/x-charts": "^7.27.0",
29
- "@mui/x-data-grid-premium": "^8.3.0",
30
- "@mui/x-date-pickers": "^7.27.0",
31
- "@mui/x-license": "^8.3.0",
32
- "@mui/x-tree-view": "^7.26.0",
33
- "@react-spring/web": "^9.7.5",
34
- "@reduxjs/toolkit": "^2.5.1",
35
- "@rollup/plugin-commonjs": "^28.0.3",
36
- "@rollup/plugin-node-resolve": "^16.0.1",
37
- "@rollup/plugin-terser": "^0.4.4",
38
- "@rollup/plugin-typescript": "^12.1.2",
39
- "@types/react": "^19.1.6",
40
- "@types/react-dom": "^19.0.3",
41
- "@types/react-i18next": "^7.8.3",
42
- "@vitejs/plugin-react": "^4.3.4",
43
- "axios": "^1.8.1",
44
- "eslint": "^9.19.0",
45
- "eslint-plugin-react-hooks": "^5.0.0",
46
- "eslint-plugin-react-refresh": "^0.4.18",
47
- "globals": "^15.14.0",
48
- "i18next": "^24.2.2",
49
- "i18next-browser-languagedetector": "^8.0.3",
50
- "i18next-http-backend": "^3.0.2",
51
- "moment": "^2.30.1",
52
- "oidc-client-ts": "^3.1.0",
53
- "react": "^19.1.0",
54
- "react-dom": "^19.0.0",
55
- "react-hook-form": "^7.54.2",
56
- "react-i18next": "^15.4.0",
57
- "react-redux": "^9.2.0",
58
- "react-router-dom": "^7.1.5",
59
- "react-toastify": "^11.0.5",
60
- "rollup": "^4.41.1",
61
- "rollup-plugin-dts": "^6.2.1",
62
- "rollup-plugin-peer-deps-external": "^2.2.4",
63
- "rollup-plugin-postcss": "^4.0.2",
64
- "stylis": "^4.3.6",
65
- "stylis-plugin-rtl": "^2.1.1",
66
- "tslib": "^2.8.1",
67
- "typescript": "~5.7.2",
68
- "typescript-eslint": "^8.22.0",
69
- "vite": "^6.1.0",
70
- "zod": "^3.24.2"
71
- },
72
- "peerDependencies": {
73
- "@emotion/cache": "^11.14.0",
74
- "@emotion/react": "^11.14.0",
75
- "@emotion/styled": "^11.14.0",
76
- "@fortawesome/fontawesome-svg-core": "^6.7.2",
77
- "@fortawesome/free-brands-svg-icons": "^6.7.2",
78
- "@fortawesome/free-regular-svg-icons": "^6.7.2",
79
- "@fortawesome/free-solid-svg-icons": "^6.7.2",
80
- "@fortawesome/react-fontawesome": "^0.2.2",
81
- "@hookform/resolvers": "^4.1.0",
82
- "@mui/icons-material": "^6.4.8",
83
- "@mui/material": "^6.4.4",
84
- "@mui/x-charts": "^7.27.0",
85
- "@mui/x-data-grid-premium": "^8.3.0",
86
- "@mui/x-date-pickers": "^7.27.0",
87
- "@mui/x-license": "^8.3.0",
88
- "@mui/x-tree-view": "^7.26.0",
89
- "@react-spring/web": "^9.7.5",
90
- "@reduxjs/toolkit": "^2.5.1",
91
- "axios": "^1.8.1",
92
- "i18next": "^24.2.2",
93
- "i18next-browser-languagedetector": "^8.0.3",
94
- "i18next-http-backend": "^3.0.2",
95
- "moment": "^2.30.1",
96
- "oidc-client-ts": "^3.1.0",
97
- "react": "^19.0.0",
98
- "react-dom": "^19.0.0",
99
- "react-hook-form": "^7.54.2",
100
- "react-i18next": "^15.4.0",
101
- "react-redux": "^9.2.0",
102
- "react-router-dom": "^7.1.5",
103
- "react-toastify": "^11.0.5",
104
- "rollup": "^4.41.1",
105
- "rollup-plugin-postcss": "^4.0.2",
106
- "stylis": "^4.3.6",
107
- "stylis-plugin-rtl": "^2.1.1",
108
- "zod": "^3.24.2"
109
- },
110
- "dependencies": {
111
- "@rollup/plugin-json": "^6.1.0"
112
- }
113
- }
1
+ {
2
+ "name": "@asaleh37/ui-base",
3
+ "version": "1.1.9",
4
+ "description": "",
5
+ "license": "ISC",
6
+ "author": "Ahmed Saleh Mohamed",
7
+ "type": "commonjs",
8
+ "main": "dist/index.js",
9
+ "module": "dist/index.mjs",
10
+ "types": "dist/index.d.ts",
11
+ "scripts": {
12
+ "build": "rollup -c --bundleConfigAsCjs",
13
+ "dev": "vite"
14
+ },
15
+ "devDependencies": {
16
+ "@emotion/cache": "^11.14.0",
17
+ "@emotion/react": "^11.14.0",
18
+ "@emotion/styled": "^11.14.0",
19
+ "@eslint/js": "^9.19.0",
20
+ "@fortawesome/fontawesome-svg-core": "^6.7.2",
21
+ "@fortawesome/free-brands-svg-icons": "^6.7.2",
22
+ "@fortawesome/free-regular-svg-icons": "^6.7.2",
23
+ "@fortawesome/free-solid-svg-icons": "^6.7.2",
24
+ "@fortawesome/react-fontawesome": "^0.2.2",
25
+ "@hookform/resolvers": "^4.1.0",
26
+ "@mui/icons-material": "^6.4.8",
27
+ "@mui/material": "^6.4.4",
28
+ "@mui/x-charts": "^7.27.0",
29
+ "@mui/x-data-grid-premium": "^8.3.0",
30
+ "@mui/x-date-pickers": "^7.27.0",
31
+ "@mui/x-license": "^8.3.0",
32
+ "@mui/x-tree-view": "^7.26.0",
33
+ "@react-spring/web": "^9.7.5",
34
+ "@reduxjs/toolkit": "^2.5.1",
35
+ "@rollup/plugin-commonjs": "^28.0.3",
36
+ "@rollup/plugin-node-resolve": "^16.0.1",
37
+ "@rollup/plugin-terser": "^0.4.4",
38
+ "@rollup/plugin-typescript": "^12.1.2",
39
+ "@types/react": "^19.1.6",
40
+ "@types/react-dom": "^19.0.3",
41
+ "@types/react-i18next": "^7.8.3",
42
+ "@vitejs/plugin-react": "^4.3.4",
43
+ "axios": "^1.8.1",
44
+ "eslint": "^9.19.0",
45
+ "eslint-plugin-react-hooks": "^5.0.0",
46
+ "eslint-plugin-react-refresh": "^0.4.18",
47
+ "globals": "^15.14.0",
48
+ "i18next": "^24.2.2",
49
+ "i18next-browser-languagedetector": "^8.0.3",
50
+ "i18next-http-backend": "^3.0.2",
51
+ "moment": "^2.30.1",
52
+ "oidc-client-ts": "^3.1.0",
53
+ "react": "^19.1.0",
54
+ "react-dom": "^19.0.0",
55
+ "react-hook-form": "^7.54.2",
56
+ "react-i18next": "^15.4.0",
57
+ "react-redux": "^9.2.0",
58
+ "react-router-dom": "^7.1.5",
59
+ "react-toastify": "^11.0.5",
60
+ "rollup": "^4.41.1",
61
+ "rollup-plugin-dts": "^6.2.1",
62
+ "rollup-plugin-peer-deps-external": "^2.2.4",
63
+ "rollup-plugin-postcss": "^4.0.2",
64
+ "stylis": "^4.3.6",
65
+ "stylis-plugin-rtl": "^2.1.1",
66
+ "tslib": "^2.8.1",
67
+ "typescript": "~5.7.2",
68
+ "typescript-eslint": "^8.22.0",
69
+ "vite": "^6.1.0",
70
+ "zod": "^3.24.2"
71
+ },
72
+ "peerDependencies": {
73
+ "@emotion/cache": "^11.14.0",
74
+ "@emotion/react": "^11.14.0",
75
+ "@emotion/styled": "^11.14.0",
76
+ "@fortawesome/fontawesome-svg-core": "^6.7.2",
77
+ "@fortawesome/free-brands-svg-icons": "^6.7.2",
78
+ "@fortawesome/free-regular-svg-icons": "^6.7.2",
79
+ "@fortawesome/free-solid-svg-icons": "^6.7.2",
80
+ "@fortawesome/react-fontawesome": "^0.2.2",
81
+ "@hookform/resolvers": "^4.1.0",
82
+ "@mui/icons-material": "^6.4.8",
83
+ "@mui/material": "^6.4.4",
84
+ "@mui/x-charts": "^7.27.0",
85
+ "@mui/x-data-grid-premium": "^8.3.0",
86
+ "@mui/x-date-pickers": "^7.27.0",
87
+ "@mui/x-license": "^8.3.0",
88
+ "@mui/x-tree-view": "^7.26.0",
89
+ "@react-spring/web": "^9.7.5",
90
+ "@reduxjs/toolkit": "^2.5.1",
91
+ "axios": "^1.8.1",
92
+ "i18next": "^24.2.2",
93
+ "i18next-browser-languagedetector": "^8.0.3",
94
+ "i18next-http-backend": "^3.0.2",
95
+ "moment": "^2.30.1",
96
+ "oidc-client-ts": "^3.1.0",
97
+ "react": "^19.0.0",
98
+ "react-dom": "^19.0.0",
99
+ "react-hook-form": "^7.54.2",
100
+ "react-i18next": "^15.4.0",
101
+ "react-redux": "^9.2.0",
102
+ "react-router-dom": "^7.1.5",
103
+ "react-toastify": "^11.0.5",
104
+ "rollup": "^4.41.1",
105
+ "rollup-plugin-postcss": "^4.0.2",
106
+ "stylis": "^4.3.6",
107
+ "stylis-plugin-rtl": "^2.1.1",
108
+ "zod": "^3.24.2"
109
+ },
110
+ "dependencies": {
111
+ "@rollup/plugin-json": "^6.1.0"
112
+ }
113
+ }
@@ -1,16 +1,16 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var resolve = require('@rollup/plugin-node-resolve');
6
- var commonjs = require('@rollup/plugin-commonjs');
7
- var typescript = require('@rollup/plugin-typescript');
8
- var dts = require('rollup-plugin-dts');
9
- var terser = require('@rollup/plugin-terser');
10
- var json = require('@rollup/plugin-json');
11
- var peerDepsExternal = require('rollup-plugin-peer-deps-external');
12
- var postcss = require('rollup-plugin-postcss');
13
-
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var resolve = require('@rollup/plugin-node-resolve');
6
+ var commonjs = require('@rollup/plugin-commonjs');
7
+ var typescript = require('@rollup/plugin-typescript');
8
+ var dts = require('rollup-plugin-dts');
9
+ var terser = require('@rollup/plugin-terser');
10
+ var json = require('@rollup/plugin-json');
11
+ var peerDepsExternal = require('rollup-plugin-peer-deps-external');
12
+ var postcss = require('rollup-plugin-postcss');
13
+
14
14
  const packageJson = require("./package.json");
15
15
 
16
16
  var rollup_config = [
@@ -45,6 +45,6 @@ var rollup_config = [
45
45
  plugins: [dts.default()],
46
46
  external: [/\.css$/],
47
47
  },
48
- ];
49
-
50
- exports.default = rollup_config;
48
+ ];
49
+
50
+ exports.default = rollup_config;
@@ -7,8 +7,10 @@ import { LightThemeOptions } from "../theme/LightThemeOptions";
7
7
  import { DarkThemeOptions } from "../theme/DarkThemeOptions";
8
8
  import Layout from "../layout/Layout";
9
9
  import { AppInfo, AppInfoActions } from "../redux/features/common/AppInfoSlice";
10
+ import { LicenseInfo } from "@mui/x-license";
10
11
 
11
12
  const App: React.FC<AppInfo> = (props: AppInfo) => {
13
+ LicenseInfo.setLicenseKey(props.muiPremiumKey);
12
14
  const dispatch = useDispatch();
13
15
  const AppLayoutState = useSelector((state: RootState) => state.AppLayout);
14
16
  let themeOptions = { ...LightThemeOptions };
@@ -5,11 +5,6 @@ import { fab } from "@fortawesome/free-brands-svg-icons";
5
5
  import { far } from "@fortawesome/free-regular-svg-icons";
6
6
  import { fas } from "@fortawesome/free-solid-svg-icons";
7
7
  import "../styles/index.css";
8
- import { LicenseInfo } from "@mui/x-license";
9
-
10
- LicenseInfo.setLicenseKey(
11
- "c2bd611fa642666253500ab9c8e4f78fTz0xMTE4MjEsRT0xNzc2OTg4Nzk5MDAwLFM9cHJlbWl1bSxMTT1zdWJzY3JpcHRpb24sUFY9aW5pdGlhbCxLVj0y"
12
- );
13
8
  import "react-toastify/dist/ReactToastify.css";
14
9
  import App from "./App";
15
10
  import { AppInfo } from "../redux/features/common/AppInfoSlice";
@@ -13,6 +13,7 @@ export type AppInfo = {
13
13
  businessNavigationItems: Array<ExtendedTreeItemProps>;
14
14
  businessReduxReducers: { [key: string]: Reducer<any> };
15
15
  businessCommonStoresMetaData: { [key: string]: StoreMetaData };
16
+ muiPremiumKey: string;
16
17
  };
17
18
 
18
19
  export type AppInfoProp = {
@@ -26,6 +27,7 @@ const initialState: AppInfoProp = {
26
27
  appName: null,
27
28
  appVersion: null,
28
29
  appLogo: null,
30
+ muiPremiumKey: null,
29
31
  businessRoutes: [],
30
32
  businessNavigationItems: [],
31
33
  businessReduxReducers: {},