Skip to content

Commit

Permalink
remove prop-types from UUI packages dependencies. Remove uuiContextTy…
Browse files Browse the repository at this point in the history
…pes interface, since it was needed for outdated React context API.
  • Loading branch information
AlekseyManetov committed Dec 2, 2024
1 parent 3807157 commit 0be8b6c
Show file tree
Hide file tree
Showing 12 changed files with 1 addition and 28 deletions.
1 change: 0 additions & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"imask": "6.0.7",
"lodash.assign": "4.2.0",
"prismjs": "^1.19.0",
"prop-types": "15.7.2",
"qhistory": "1.0.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# 5.xx.xx - xx.xx.2024

**What's New**
* Remove 'prop-types' from UUI packages dependencies. Remove `uuiContextTypes` interface, since it was needed for already outdated React context API.
* [Alert]: added support for size theming
* [DataTable]: added support of column groups in table header. Read more - https://uui.epam.com/documents?id=advancedTables&mode=doc&category=tables&theme=electric#table_with_header_groups
* [ErrorPage]: added field for additional message with support link (it works with `500, 503, default` errors), added support link for the site
Expand Down
1 change: 0 additions & 1 deletion epam-electric/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"mockdate": "^3.0.5"
},
"peerDependencies": {
"prop-types": "*",
"react": ">=16.0.0",
"react-dom": ">=16.0.0"
},
Expand Down
1 change: 0 additions & 1 deletion epam-promo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"classnames": "2.2.6"
},
"peerDependencies": {
"prop-types": "*",
"react": ">=16.0.0",
"react-dom": ">=16.0.0"
},
Expand Down
1 change: 0 additions & 1 deletion extra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"immutable": "3.8.2"
},
"peerDependencies": {
"prop-types": "*",
"react": ">=16.0.0",
"react-dom": ">=16.0.0"
},
Expand Down
1 change: 0 additions & 1 deletion loveship/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"classnames": "2.2.6"
},
"peerDependencies": {
"prop-types": "*",
"react": ">=16.0.0",
"react-dom": ">=16.0.0"
},
Expand Down
1 change: 0 additions & 1 deletion uui-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"react-transition-group": "4.4.5"
},
"peerDependencies": {
"prop-types": "*",
"react": ">=16.0.0",
"react-dom": ">=16.0.0"
},
Expand Down
1 change: 0 additions & 1 deletion uui-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"react-popper": "2.3.0"
},
"peerDependencies": {
"prop-types": "*",
"react": ">=16.0.0",
"react-dom": ">=16.0.0"
},
Expand Down
18 changes: 0 additions & 18 deletions uui-core/src/types/contexts.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { AnalyticsEvent, Link } from './objects';
import * as PropTypes from 'prop-types';
import { IModal, INotification } from './props';
import { DndContextState, TMouseCoords } from '../services/dnd/DndContext';
import { Lock } from '../services/LockContext';
Expand Down Expand Up @@ -293,20 +292,3 @@ export interface CommonContexts<TApi, TAppContext> extends UuiContexts {
/** React router history instance */
history?: IHistory4;
}

export const uuiContextTypes = {
uuiAnalytics: PropTypes.object,
uuiErrors: PropTypes.object,
uuiApi: PropTypes.object,
uuiModals: PropTypes.object,
uuiNotifications: PropTypes.object,
api: PropTypes.object,
uuiUserSettings: PropTypes.object,
uuiDnD: PropTypes.object,
uuiApp: PropTypes.object,
uuiRouter: PropTypes.object,
uuiLayout: PropTypes.object,
uuiLocks: PropTypes.object,
history: PropTypes.object,
uuiSkin: PropTypes.object,
};
1 change: 0 additions & 1 deletion uui-db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"ts-node": "10.9.1"
},
"peerDependencies": {
"prop-types": "*",
"react": ">=16.0.0",
"react-dom": ">=16.0.0"
},
Expand Down
1 change: 0 additions & 1 deletion uui-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"classnames": "^2.2.6"
},
"peerDependencies": {
"prop-types": "*",
"react": ">=16.0.0",
"react-dom": ">=16.0.0"
},
Expand Down
1 change: 0 additions & 1 deletion uui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"react-popper": "2.3.0"
},
"peerDependencies": {
"prop-types": "*",
"react": ">=16.0.0",
"react-dom": ">=16.0.0"
},
Expand Down

0 comments on commit 0be8b6c

Please sign in to comment.