@asaleh37/ui-base 25.6.18-1 → 25.6.19-2
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/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -8
- package/src/layout/NavigationTree.tsx +2 -1
- package/src/main.tsx +2 -2
- package/vite.config.ts +14 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asaleh37/ui-base",
|
|
3
|
-
"version": "25.6.
|
|
3
|
+
"version": "25.6.19-2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "Ahmed Saleh Mohamed",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"types": "dist/index.d.ts",
|
|
11
11
|
"scripts": {
|
|
12
12
|
"build": "rollup -c --bundleConfigAsCjs",
|
|
13
|
-
"dev": "vite"
|
|
13
|
+
"dev": "vite --host"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@emotion/cache": "^11.14.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@types/react-dom": "^19.0.3",
|
|
42
42
|
"@types/react-i18next": "^7.8.3",
|
|
43
43
|
"@vitejs/plugin-react": "^4.3.4",
|
|
44
|
-
"axios": "^1.8.1",
|
|
44
|
+
"axios": "^1.8.1",
|
|
45
45
|
"eslint": "^9.19.0",
|
|
46
46
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
47
47
|
"eslint-plugin-react-refresh": "^0.4.18",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"moment": "^2.30.1",
|
|
54
54
|
"oidc-client-ts": "^3.1.0",
|
|
55
55
|
"react": "^19.1.0",
|
|
56
|
-
"react-dom": "^19.0.0",
|
|
56
|
+
"react-dom": "^19.0.0",
|
|
57
57
|
"react-hook-form": "^7.54.2",
|
|
58
58
|
"react-i18next": "^15.4.0",
|
|
59
59
|
"react-redux": "^9.2.0",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"@mui/x-tree-view": "^7.26.0",
|
|
93
93
|
"@react-spring/web": "^9.7.5",
|
|
94
94
|
"@reduxjs/toolkit": "^2.5.1",
|
|
95
|
-
"axios": "^1.8.1",
|
|
95
|
+
"axios": "^1.8.1",
|
|
96
96
|
"global": "^4.4.0",
|
|
97
97
|
"i18next": "^24.2.2",
|
|
98
98
|
"i18next-browser-languagedetector": "^8.0.3",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"moment": "^2.30.1",
|
|
101
101
|
"oidc-client-ts": "^3.1.0",
|
|
102
102
|
"react": "^19.0.0",
|
|
103
|
-
"react-dom": "^19.0.0",
|
|
103
|
+
"react-dom": "^19.0.0",
|
|
104
104
|
"react-hook-form": "^7.54.2",
|
|
105
105
|
"react-i18next": "^15.4.0",
|
|
106
106
|
"react-redux": "^9.2.0",
|
|
@@ -113,7 +113,8 @@
|
|
|
113
113
|
"stylis-plugin-rtl": "^2.1.1",
|
|
114
114
|
"zod": "^3.24.2"
|
|
115
115
|
},
|
|
116
|
-
"dependencies": {
|
|
117
|
-
"@rollup/plugin-json": "^6.1.0"
|
|
116
|
+
"dependencies": {
|
|
117
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
118
|
+
"rollup-plugin-terser": "^7.0.2"
|
|
118
119
|
}
|
|
119
120
|
}
|
|
@@ -235,6 +235,7 @@ export default function NavigationTree() {
|
|
|
235
235
|
const dispatch = useDispatch();
|
|
236
236
|
const isMobile = useIsMobile();
|
|
237
237
|
const { isUserAuthorized } = useSession();
|
|
238
|
+
debugger;
|
|
238
239
|
const filterData = (data) => {
|
|
239
240
|
return data
|
|
240
241
|
.filter(
|
|
@@ -256,7 +257,7 @@ export default function NavigationTree() {
|
|
|
256
257
|
mergedNavigationItems.push(...NavigationItems);
|
|
257
258
|
}
|
|
258
259
|
mergedNavigationItems.push(...AppInfo.businessNavigationItems);
|
|
259
|
-
const authoriedNavigationItems =
|
|
260
|
+
const authoriedNavigationItems = filterData(mergedNavigationItems);
|
|
260
261
|
|
|
261
262
|
return (
|
|
262
263
|
<RichTreeView
|
package/src/main.tsx
CHANGED
|
@@ -4,8 +4,8 @@ import { BaseApp } from "./components";
|
|
|
4
4
|
|
|
5
5
|
createRoot(document.getElementById("root")!).render(
|
|
6
6
|
<BaseApp
|
|
7
|
-
apiBaseUrl="http://
|
|
8
|
-
appLogo={"/
|
|
7
|
+
apiBaseUrl="http://192.168.1.2:8081/api-base"
|
|
8
|
+
appLogo={"/logo.png"}
|
|
9
9
|
appName="UI Base Library"
|
|
10
10
|
appVersion="0.0"
|
|
11
11
|
businessCommonStoresMetaData={{}}
|
package/vite.config.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { defineConfig } from "vite";
|
|
|
2
2
|
import react from "@vitejs/plugin-react";
|
|
3
3
|
import rollupNodePolyFill from "rollup-plugin-polyfill-node";
|
|
4
4
|
import inject from "@rollup/plugin-inject";
|
|
5
|
+
import { terser } from "rollup-plugin-terser";
|
|
5
6
|
|
|
6
7
|
// https://vite.dev/config/
|
|
7
8
|
export default defineConfig({
|
|
@@ -13,8 +14,20 @@ export default defineConfig({
|
|
|
13
14
|
include: ["fbjs"],
|
|
14
15
|
},
|
|
15
16
|
build: {
|
|
17
|
+
minify: false,
|
|
16
18
|
rollupOptions: {
|
|
17
|
-
plugins: [
|
|
19
|
+
plugins: [
|
|
20
|
+
rollupNodePolyFill(),
|
|
21
|
+
terser({
|
|
22
|
+
compress: {
|
|
23
|
+
drop_debugger: false,
|
|
24
|
+
drop_console: false,
|
|
25
|
+
},
|
|
26
|
+
format: {
|
|
27
|
+
comments: false,
|
|
28
|
+
},
|
|
29
|
+
}),
|
|
30
|
+
],
|
|
18
31
|
},
|
|
19
32
|
},
|
|
20
33
|
server: {
|