Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React 19 version update #102

Open
wants to merge 2 commits into
base: react-18--version-update
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions react/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"@egovernments/digit-ui-react-components": "1.7.10",
"@egovernments/digit-ui-svg-components": "1.0.4",
"http-proxy-middleware": "^1.0.5",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react": "19.0.0-rc-f38c22b244-20240704",
"react-dom": "19.0.0-rc-f38c22b244-20240704",
"react-i18next": "11.16.2",
"react-router-dom": "5.3.0",
"react-scripts": "^4.0.1",
Expand Down
13 changes: 7 additions & 6 deletions react/example/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import ReactDOM from 'react-dom';
import ReactDOM from 'react-dom/client';
import { initLibraries } from "@egovernments/digit-ui-libraries";
import App from './App';

Expand Down Expand Up @@ -51,9 +51,10 @@ if (!user || !user.access_token || !user.info) {
// end
}

ReactDOM.render(
<React.StrictMode>
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(


<App />
</React.StrictMode>,
document.getElementById('root')
);

);
7 changes: 4 additions & 3 deletions react/example/src/oldindex.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import ReactDOM from "react-dom";
import ReactDOM from 'react-dom/client';
import { initLibraries } from "@egovernments/digit-ui-libraries";

import {
Expand Down Expand Up @@ -60,7 +60,8 @@ const initDigitUI = () => {
const stateCode =
window?.globalConfigs?.getConfig("STATE_LEVEL_TENANT_ID") || "pb";
initTokens(stateCode);
ReactDOM.render(
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<DigitUI
stateCode={stateCode}
enabledModules={enabledModules}
Expand All @@ -72,4 +73,4 @@ const initDigitUI = () => {
};
initLibraries().then(() => {
initDigitUI();
});
});
6 changes: 3 additions & 3 deletions react/libraries-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"prepublish": "yarn build"
},
"peerDependencies": {
"react": "^18.0.0"
"react": "19.0.0-rc-f38c22b244-20240704"
},
"devDependencies": {
"gh-pages": "2.2.0",
"microbundle-crl": "0.13.11",
"react-dom": "^18.0.0",
"react-dom": "19.0.0-rc-f38c22b244-20240704",
"react-scripts": "^4.0.1"
},
"dependencies": {
Expand All @@ -31,7 +31,7 @@
"i18next": "19.9.2",
"i18next-react-postprocessor": "3.0.7",
"pdfmake": "0.1.72",
"react": "^18.0.0",
"react": "19.0.0-rc-f38c22b244-20240704",
"react-i18next": "11.16.2",
"react-query": "3.6.1",
"react-redux": "7.2.8",
Expand Down
6 changes: 3 additions & 3 deletions react/libraries/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"prepublish": "yarn build"
},
"peerDependencies": {
"react": "^18.0.0"
"react": "19.0.0-rc-f38c22b244-20240704"
},
"devDependencies": {
"gh-pages": "2.2.0",
"microbundle-crl": "0.13.11",
"react-dom": "^18.0.0",
"react-dom": "19.0.0-rc-f38c22b244-20240704",
"react-scripts": "^4.0.1"
},
"dependencies": {
Expand All @@ -31,7 +31,7 @@
"i18next": "19.9.2",
"i18next-react-postprocessor": "3.0.7",
"pdfmake": "0.1.72",
"react": "^18.0.0",
"react": "19.0.0-rc-f38c22b244-20240704",
"react-i18next": "11.16.2",
"react-query": "3.6.1",
"react-redux": "7.2.8",
Expand Down
6 changes: 3 additions & 3 deletions react/modules/Project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
"prepublish": "yarn build"
},
"peerDependencies": {
"react": "^18.0.0",
"react": "19.0.0-rc-f38c22b244-20240704",
"react-router-dom": "5.3.0"
},
"dependencies": {
"@egovernments/digit-ui-react-components": "1.8.1-beta.4",
"@egovernments/digit-ui-components": "0.0.2-beta.12",
"lodash": "^4.17.21",
"react": "^18.0.0",
"react": "19.0.0-rc-f38c22b244-20240704",
"react-date-range": "^1.4.0",
"react-dom": "^18.0.0",
"react-dom": "19.0.0-rc-f38c22b244-20240704",
"react-hook-form": "6.15.8",
"react-i18next": "11.16.2",
"react-query": "3.6.1",
Expand Down
4 changes: 2 additions & 2 deletions react/modules/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"dependencies": {
"@egovernments/digit-ui-components": "0.0.2-beta.12",
"@egovernments/digit-ui-react-components": "1.8.1-beta.4",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react": "19.0.0-rc-f38c22b244-20240704",
"react-dom": "19.0.0-rc-f38c22b244-20240704",
"react-i18next": "11.16.2",
"react-query": "3.6.1",
"react-redux": "7.2.8",
Expand Down
6 changes: 3 additions & 3 deletions react/modules/sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
"prepublish": "yarn build"
},
"peerDependencies": {
"react": "^18.0.0",
"react": "19.0.0-rc-f38c22b244-20240704",
"react-router-dom": "5.3.0"
},
"dependencies": {
"@egovernments/digit-ui-react-components": "1.8.1-beta.4",
"@egovernments/digit-ui-components": "0.0.2-beta.12",
"react": "^18.0.0",
"react": "19.0.0-rc-f38c22b244-20240704",
"react-date-range": "^1.4.0",
"react-dom": "^18.0.0",
"react-dom": "19.0.0-rc-f38c22b244-20240704",
"react-hook-form": "6.15.8",
"react-i18next": "11.16.2",
"react-query": "3.6.1",
Expand Down
2 changes: 1 addition & 1 deletion react/modules/sample/src/pages/employee/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ const App = ({ path, stateCode, userType, tenants }) => {
);
};

export default App;
export default App;
8 changes: 4 additions & 4 deletions react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
"microbundle-crl": "0.13.11",
"npm-run-all": "4.1.5",
"prettier": "2.1.2",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react": "19.0.0-rc-f38c22b244-20240704",
"react-dom": "19.0.0-rc-f38c22b244-20240704",
"react-hook-form": "6.15.8",
"react-i18next": "11.16.2",
"react-query": "3.6.1",
Expand All @@ -85,8 +85,8 @@
"jsonpath": "^1.1.1",
"lodash": "4.17.21",
"microbundle-crl": "0.13.11",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react": "19.0.0-rc-f38c22b244-20240704",
"react-dom": "19.0.0-rc-f38c22b244-20240704",
"react-hook-form": "6.15.8",
"react-i18next": "11.16.2",
"react-query": "3.6.1",
Expand Down
8 changes: 4 additions & 4 deletions react/ui-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"deploy-storybook": "npm run build-storybook && surge --project dist-storybook --domain svg-components-$npm_package_version.surge.sh"
},
"peerDependencies": {
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react": "19.0.0-rc-f38c22b244-20240704",
"react-dom": "19.0.0-rc-f38c22b244-20240704",
"react-router-dom": "5.3.0"
},
"devDependencies": {
Expand All @@ -40,8 +40,8 @@
"husky": "7.0.4",
"lint-staged": "12.3.7",
"microbundle-crl": "0.13.11",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react": "19.0.0-rc-f38c22b244-20240704",
"react-dom": "19.0.0-rc-f38c22b244-20240704",
"react-query": "3.6.1",
"react-responsive": "9.0.2",
"react-router-dom": "5.3.0",
Expand Down