diff --git a/app/package.json b/app/package.json index 99f89ab19b..20659f7e8d 100644 --- a/app/package.json +++ b/app/package.json @@ -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", diff --git a/changelog.md b/changelog.md index fb5a0fff8a..b059c9bf45 100644 --- a/changelog.md +++ b/changelog.md @@ -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 diff --git a/epam-electric/package.json b/epam-electric/package.json index 3615bcfb6b..b19ef96a85 100644 --- a/epam-electric/package.json +++ b/epam-electric/package.json @@ -20,7 +20,6 @@ "mockdate": "^3.0.5" }, "peerDependencies": { - "prop-types": "*", "react": ">=16.0.0", "react-dom": ">=16.0.0" }, diff --git a/epam-promo/package.json b/epam-promo/package.json index e7c7b40533..9433b7ee6d 100644 --- a/epam-promo/package.json +++ b/epam-promo/package.json @@ -20,7 +20,6 @@ "classnames": "2.2.6" }, "peerDependencies": { - "prop-types": "*", "react": ">=16.0.0", "react-dom": ">=16.0.0" }, diff --git a/extra/package.json b/extra/package.json index 72735aecce..aa9c31bdd4 100644 --- a/extra/package.json +++ b/extra/package.json @@ -17,7 +17,6 @@ "immutable": "3.8.2" }, "peerDependencies": { - "prop-types": "*", "react": ">=16.0.0", "react-dom": ">=16.0.0" }, diff --git a/loveship/package.json b/loveship/package.json index 1ecddaa308..af7dfaccdc 100644 --- a/loveship/package.json +++ b/loveship/package.json @@ -20,7 +20,6 @@ "classnames": "2.2.6" }, "peerDependencies": { - "prop-types": "*", "react": ">=16.0.0", "react-dom": ">=16.0.0" }, diff --git a/uui-components/package.json b/uui-components/package.json index 064d404d1e..9744b90003 100644 --- a/uui-components/package.json +++ b/uui-components/package.json @@ -28,7 +28,6 @@ "react-transition-group": "4.4.5" }, "peerDependencies": { - "prop-types": "*", "react": ">=16.0.0", "react-dom": ">=16.0.0" }, diff --git a/uui-core/package.json b/uui-core/package.json index eb141e6775..e40c28dbaf 100644 --- a/uui-core/package.json +++ b/uui-core/package.json @@ -24,7 +24,6 @@ "react-popper": "2.3.0" }, "peerDependencies": { - "prop-types": "*", "react": ">=16.0.0", "react-dom": ">=16.0.0" }, diff --git a/uui-core/src/types/contexts.ts b/uui-core/src/types/contexts.ts index 3bbbf1c95b..a11fe63d03 100644 --- a/uui-core/src/types/contexts.ts +++ b/uui-core/src/types/contexts.ts @@ -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'; @@ -293,20 +292,3 @@ export interface CommonContexts 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, -}; diff --git a/uui-db/package.json b/uui-db/package.json index d4018974a4..d36e33ddf2 100644 --- a/uui-db/package.json +++ b/uui-db/package.json @@ -47,7 +47,6 @@ "ts-node": "10.9.1" }, "peerDependencies": { - "prop-types": "*", "react": ">=16.0.0", "react-dom": ">=16.0.0" }, diff --git a/uui-docs/package.json b/uui-docs/package.json index 9735d02ebf..599d34d721 100644 --- a/uui-docs/package.json +++ b/uui-docs/package.json @@ -21,7 +21,6 @@ "classnames": "^2.2.6" }, "peerDependencies": { - "prop-types": "*", "react": ">=16.0.0", "react-dom": ">=16.0.0" }, diff --git a/uui/package.json b/uui/package.json index 7c4c684e72..5fda3cfaff 100644 --- a/uui/package.json +++ b/uui/package.json @@ -22,7 +22,6 @@ "react-popper": "2.3.0" }, "peerDependencies": { - "prop-types": "*", "react": ">=16.0.0", "react-dom": ">=16.0.0" },