@egovernments/digit-ui-module-core 1.7.0-beta.2 → 1.8.0-beta

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.
Files changed (3) hide show
  1. package/README.md +96 -0
  2. package/dist/index.js +1 -1
  3. package/package.json +12 -5
package/README.md ADDED
@@ -0,0 +1,96 @@
1
+ <!-- TODO: update this -->
2
+
3
+ # digit-ui-module-core
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install --save @egovernments/digit-ui-module-core
9
+ ```
10
+
11
+ ## Limitation
12
+
13
+ ```bash
14
+ This Package is more specific to DIGIT-UI's can be used across mission's
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ After adding the dependency make sure you have this dependency in
20
+
21
+ ```bash
22
+ frontend/micro-ui/web/package.json
23
+ ```
24
+
25
+ ```json
26
+ "@egovernments/digit-ui-module-core":"^1.5.0",
27
+ ```
28
+
29
+ then navigate to App.js
30
+
31
+ ```bash
32
+ frontend/micro-ui/web/src/App.js
33
+ ```
34
+
35
+ ```jsx
36
+ /** add this import **/
37
+
38
+ import { DigitUI } from "@egovernments/digit-ui-module-core";
39
+
40
+
41
+ /** inside render Function add the import for the component **/
42
+
43
+ ReactDOM.render(<DigitUI stateCode={stateCode} enabledModules={enabledModules} moduleReducers={moduleReducers} />, document.getElementById("root"));
44
+
45
+ ```
46
+
47
+ # Mandatory changes to use following version
48
+
49
+ ```
50
+ from 1.5.38 add the following utility method in micro-ui-internals/packages/libraries/src/utils/index.js
51
+
52
+ const createFunction = (functionAsString) => {
53
+ return Function("return " + functionAsString)();
54
+ };
55
+
56
+ export as createFunction;
57
+
58
+ similarly update line 76 of react-components/src/molecules/CustomDropdown.js
59
+
60
+ with
61
+ .filter((opt) => (opt?.hasOwnProperty("active") ? opt.active : true))
62
+
63
+ ```
64
+
65
+ # Changelog
66
+
67
+ ```bash
68
+ 1.8.0-beta workbench base version beta release
69
+ 1.5.42 fixed the mdms call in login component for dynamic updating
70
+ 1.5.41 updated the readme content
71
+ 1.5.40 Updated the login componenet to handle mdms config, which can be accessed from master - commonUiConfig and module - LoginConfig
72
+ 1.5.39 Show the Toast when password changed and need to logout from profile page
73
+ 1.5.38 enabled the admin mode for employee login which can be accessed through route employee/user/login?mode=admin and updated to use formcomposerv2
74
+ 1.5.37 fixed hiding upload drawer icons.
75
+ 1.5.36 fixed after clicking on change password and then try to save profile without changing password showing error.
76
+ 1.5.35 fixed user profile email was prefilled when clicking on change password
77
+ 1.5.34 fixed module not found redirection issue
78
+ 1.5.33 fixed payment not throwing error page for sanitation
79
+ 1.5.32 fixed the localisation issue by adding translation to the keys and fixed payment response issue for sanitation UI
80
+ 1.5.31 fixed the allservices screen back button for sanitation UI
81
+ 1.5.30 fixed the home routing issue in error screen
82
+ 1.5.29 added the readme file
83
+ 1.5.28 fixed the route issue for profile screen
84
+ ```
85
+
86
+ # Contributors
87
+
88
+ [jagankumar-egov] [nipunarora-eGov] [Tulika-eGov] [Ramkrishna-egov] [nabeelmd-eGov] [anil-egov] [vamshikrishnakole-wtt-egov]
89
+
90
+ ## Published from DIGIT Core
91
+
92
+ Digit Dev Repo (<https://github.com/egovernments/Digit-Core/tree/digit-ui-core>)
93
+
94
+ ## License
95
+
96
+ MIT © [jagankumar-egov](https://github.com/jagankumar-egov)