@asaleh37/ui-base 1.2.9 → 1.2.11

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@asaleh37/ui-base",
3
- "version": "1.2.9",
3
+ "version": "1.2.11",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "Ahmed Saleh Mohamed",
@@ -24,6 +24,7 @@
24
24
  "@fortawesome/react-fontawesome": "^0.2.2",
25
25
  "@hookform/resolvers": "^4.1.0",
26
26
  "@mui/icons-material": "^6.4.8",
27
+ "@mui/lab": "^7.0.0-beta.13",
27
28
  "@mui/material": "^6.4.4",
28
29
  "@mui/x-charts": "^7.27.0",
29
30
  "@mui/x-data-grid-premium": "^8.3.0",
@@ -41,6 +42,9 @@
41
42
  "@types/react-i18next": "^7.8.3",
42
43
  "@vitejs/plugin-react": "^4.3.4",
43
44
  "axios": "^1.8.1",
45
+ "draft-js": "^0.11.7",
46
+ "draft-js-import-html": "^1.4.1",
47
+ "draftjs-to-html": "^0.9.1",
44
48
  "eslint": "^9.19.0",
45
49
  "eslint-plugin-react-hooks": "^5.0.0",
46
50
  "eslint-plugin-react-refresh": "^0.4.18",
@@ -52,6 +56,7 @@
52
56
  "oidc-client-ts": "^3.1.0",
53
57
  "react": "^19.1.0",
54
58
  "react-dom": "^19.0.0",
59
+ "react-draft-wysiwyg": "^1.15.0",
55
60
  "react-hook-form": "^7.54.2",
56
61
  "react-i18next": "^15.4.0",
57
62
  "react-redux": "^9.2.0",
@@ -60,6 +65,7 @@
60
65
  "rollup": "^4.41.1",
61
66
  "rollup-plugin-dts": "^6.2.1",
62
67
  "rollup-plugin-peer-deps-external": "^2.2.4",
68
+ "rollup-plugin-polyfill-node": "^0.13.0",
63
69
  "rollup-plugin-postcss": "^4.0.2",
64
70
  "stylis": "^4.3.6",
65
71
  "stylis-plugin-rtl": "^2.1.1",
@@ -67,13 +73,7 @@
67
73
  "typescript": "~5.7.2",
68
74
  "typescript-eslint": "^8.22.0",
69
75
  "vite": "^6.1.0",
70
- "zod": "^3.24.2",
71
- "@mui/lab": "^7.0.0-beta.13",
72
- "draft-js": "^0.11.7",
73
- "draft-js-import-html": "^1.4.1",
74
- "draftjs-to-html": "^0.9.1",
75
- "react-draft-wysiwyg": "^1.15.0",
76
- "rollup-plugin-polyfill-node": "^0.13.0"
76
+ "zod": "^3.24.2"
77
77
  },
78
78
  "peerDependencies": {
79
79
  "@emotion/cache": "^11.14.0",
@@ -86,6 +86,7 @@
86
86
  "@fortawesome/react-fontawesome": "^0.2.2",
87
87
  "@hookform/resolvers": "^4.1.0",
88
88
  "@mui/icons-material": "^6.4.8",
89
+ "@mui/lab": "^7.0.0-beta.13",
89
90
  "@mui/material": "^6.4.4",
90
91
  "@mui/x-charts": "^7.27.0",
91
92
  "@mui/x-data-grid-premium": "^8.3.0",
@@ -95,6 +96,9 @@
95
96
  "@react-spring/web": "^9.7.5",
96
97
  "@reduxjs/toolkit": "^2.5.1",
97
98
  "axios": "^1.8.1",
99
+ "draft-js": "^0.11.7",
100
+ "draft-js-import-html": "^1.4.1",
101
+ "draftjs-to-html": "^0.9.1",
98
102
  "i18next": "^24.2.2",
99
103
  "i18next-browser-languagedetector": "^8.0.3",
100
104
  "i18next-http-backend": "^3.0.2",
@@ -102,24 +106,21 @@
102
106
  "oidc-client-ts": "^3.1.0",
103
107
  "react": "^19.0.0",
104
108
  "react-dom": "^19.0.0",
109
+ "react-draft-wysiwyg": "^1.15.0",
105
110
  "react-hook-form": "^7.54.2",
106
111
  "react-i18next": "^15.4.0",
107
112
  "react-redux": "^9.2.0",
108
113
  "react-router-dom": "^7.1.5",
109
114
  "react-toastify": "^11.0.5",
110
115
  "rollup": "^4.41.1",
116
+ "rollup-plugin-polyfill-node": "^0.13.0",
111
117
  "rollup-plugin-postcss": "^4.0.2",
112
118
  "stylis": "^4.3.6",
113
119
  "stylis-plugin-rtl": "^2.1.1",
114
- "zod": "^3.24.2",
115
- "@mui/lab": "^7.0.0-beta.13",
116
- "draft-js": "^0.11.7",
117
- "draft-js-import-html": "^1.4.1",
118
- "draftjs-to-html": "^0.9.1",
119
- "react-draft-wysiwyg": "^1.15.0",
120
- "rollup-plugin-polyfill-node": "^0.13.0"
120
+ "zod": "^3.24.2"
121
121
  },
122
122
  "dependencies": {
123
- "@rollup/plugin-json": "^6.1.0"
123
+ "@rollup/plugin-json": "^6.1.0",
124
+ "global": "^4.4.0"
124
125
  }
125
126
  }
@@ -19,6 +19,11 @@ library.add(fab);
19
19
  library.add(far);
20
20
  library.add(fas);
21
21
 
22
+ // Polyfill for global in case it's not defined (for browser/Vite compatibility)
23
+ if (typeof global === "undefined") {
24
+ global = globalThis;
25
+ }
26
+
22
27
  export const BaseApp: React.FC<AppInfo> = (props) => {
23
28
  const systemReducers = {
24
29
  AppLayout: AppLayoutReducer,