diff --git a/packages/react-dock/package.json b/packages/react-dock/package.json index 1918123f..3fee2f24 100644 --- a/packages/react-dock/package.json +++ b/packages/react-dock/package.json @@ -41,9 +41,7 @@ "dependencies": { "@babel/runtime": "^7.23.5", "@types/lodash": "^4.14.202", - "@types/prop-types": "^15.7.11", - "lodash.debounce": "^4.0.8", - "prop-types": "^15.8.1" + "lodash.debounce": "^4.0.8" }, "devDependencies": { "@babel/cli": "^7.23.4", diff --git a/packages/react-dock/src/Dock.tsx b/packages/react-dock/src/Dock.tsx index 45d6f0f2..891384fd 100644 --- a/packages/react-dock/src/Dock.tsx +++ b/packages/react-dock/src/Dock.tsx @@ -1,5 +1,4 @@ import React, { Component, ReactNode } from 'react'; -import PropTypes from 'prop-types'; import debounce from 'lodash.debounce'; import type { DebouncedFunc } from 'lodash'; import autoprefix from './autoprefix'; @@ -260,21 +259,6 @@ export default class Dock extends Component { isWindowResizing: false, }; - static propTypes = { - position: PropTypes.oneOf(['left', 'right', 'top', 'bottom']), - zIndex: PropTypes.number, - fluid: PropTypes.bool, - size: PropTypes.number, - defaultSize: PropTypes.number, - dimMode: PropTypes.oneOf(['none', 'transparent', 'opaque']), - isVisible: PropTypes.bool, - onVisibleChange: PropTypes.func, - onSizeChange: PropTypes.func, - dimStyle: PropTypes.object, - dockStyle: PropTypes.object, - duration: PropTypes.number, - }; - static defaultProps = { position: 'left', zIndex: 99999999, diff --git a/packages/redux-devtools-app/package.json b/packages/redux-devtools-app/package.json index 9c55c8c8..2a57f0bb 100644 --- a/packages/redux-devtools-app/package.json +++ b/packages/redux-devtools-app/package.json @@ -51,14 +51,12 @@ "@redux-devtools/slider-monitor": "^4.1.0", "@redux-devtools/ui": "^1.3.1", "@reduxjs/toolkit": "^1.9.7", - "@types/prop-types": "^15.7.11", "d3-state-visualizer": "^2.0.0", "javascript-stringify": "^2.1.0", "jsan": "^3.1.14", "jsondiffpatch": "^0.5.0", "localforage": "^1.10.0", "lodash": "^4.17.21", - "prop-types": "^15.8.1", "react-icons": "^4.12.0", "react-is": "^18.2.0", "react-redux": "^8.1.3", diff --git a/packages/redux-devtools-app/src/components/BottomButtons.tsx b/packages/redux-devtools-app/src/components/BottomButtons.tsx index fbb1ff29..395f1cc7 100644 --- a/packages/redux-devtools-app/src/components/BottomButtons.tsx +++ b/packages/redux-devtools-app/src/components/BottomButtons.tsx @@ -1,7 +1,5 @@ import React, { Component } from 'react'; -import PropTypes from 'prop-types'; -import { Button, Toolbar, Divider } from '@redux-devtools/ui'; -import { MdSave } from 'react-icons/md'; +import { Toolbar, Divider } from '@redux-devtools/ui'; import ExportButton from './buttons/ExportButton'; import ImportButton from './buttons/ImportButton'; import PrintButton from './buttons/PrintButton'; @@ -17,12 +15,6 @@ interface Props { } export default class BottomButtons extends Component { - static propTypes = { - dispatcherIsOpen: PropTypes.bool, - sliderIsOpen: PropTypes.bool, - options: PropTypes.object.isRequired, - }; - shouldComponentUpdate(nextProps: Props) { return ( nextProps.dispatcherIsOpen !== this.props.dispatcherIsOpen || diff --git a/packages/redux-devtools-app/src/components/TopButtons.tsx b/packages/redux-devtools-app/src/components/TopButtons.tsx index c93eef17..5f5d3d7e 100644 --- a/packages/redux-devtools-app/src/components/TopButtons.tsx +++ b/packages/redux-devtools-app/src/components/TopButtons.tsx @@ -1,5 +1,4 @@ import React, { Component } from 'react'; -import PropTypes from 'prop-types'; import { ActionCreators, LiftedAction } from '@redux-devtools/core'; import { Button, Toolbar, Divider } from '@redux-devtools/ui'; import { Action } from 'redux'; @@ -20,13 +19,6 @@ interface Props { } export default class TopButtons extends Component { - static propTypes = { - // shouldSync: PropTypes.bool, - liftedState: PropTypes.object.isRequired, - dispatch: PropTypes.func.isRequired, - options: PropTypes.object.isRequired, - }; - shouldComponentUpdate(nextProps: Props) { return ( nextProps.options !== this.props.options || diff --git a/packages/redux-devtools-app/src/components/buttons/PersistButton.tsx b/packages/redux-devtools-app/src/components/buttons/PersistButton.tsx index 9bc0de86..a7d59172 100644 --- a/packages/redux-devtools-app/src/components/buttons/PersistButton.tsx +++ b/packages/redux-devtools-app/src/components/buttons/PersistButton.tsx @@ -1,5 +1,4 @@ import React, { Component } from 'react'; -import PropTypes from 'prop-types'; import { connect, ResolveThunks } from 'react-redux'; import { Button } from '@redux-devtools/ui'; import { FaThumbtack } from 'react-icons/fa'; diff --git a/packages/redux-devtools-dock-monitor/package.json b/packages/redux-devtools-dock-monitor/package.json index 73419e63..ae7f116b 100644 --- a/packages/redux-devtools-dock-monitor/package.json +++ b/packages/redux-devtools-dock-monitor/package.json @@ -42,9 +42,7 @@ }, "dependencies": { "@babel/runtime": "^7.23.5", - "@types/prop-types": "^15.7.11", "parse-key": "^0.2.1", - "prop-types": "^15.8.1", "react-dock": "^0.6.0" }, "devDependencies": { diff --git a/packages/redux-devtools-dock-monitor/src/DockMonitor.tsx b/packages/redux-devtools-dock-monitor/src/DockMonitor.tsx index 7cde604f..66a2c27d 100644 --- a/packages/redux-devtools-dock-monitor/src/DockMonitor.tsx +++ b/packages/redux-devtools-dock-monitor/src/DockMonitor.tsx @@ -1,9 +1,7 @@ import React, { cloneElement, Children, Component } from 'react'; -import PropTypes from 'prop-types'; import { Dock } from 'react-dock'; import { Action, Dispatch } from 'redux'; import { LiftedState, Monitor } from '@redux-devtools/core'; -import { POSITIONS } from './constants'; import { toggleVisibility, changeMonitor, @@ -68,24 +66,6 @@ class DockMonitor> extends Component< > { static update = reducer; - static propTypes = { - defaultPosition: PropTypes.oneOf(POSITIONS), - defaultIsVisible: PropTypes.bool.isRequired, - defaultSize: PropTypes.number.isRequired, - toggleVisibilityKey: PropTypes.string.isRequired, - changePositionKey: PropTypes.string.isRequired, - changeMonitorKey: PropTypes.string, - fluid: PropTypes.bool, - - dispatch: PropTypes.func, - monitorState: PropTypes.shape({ - position: PropTypes.oneOf(POSITIONS).isRequired, - size: PropTypes.number.isRequired, - isVisible: PropTypes.bool.isRequired, - childMonitorState: PropTypes.any, - }), - }; - static defaultProps: DefaultProps = { defaultIsVisible: true, defaultPosition: 'right', diff --git a/packages/redux-devtools-inspector-monitor-test-tab/package.json b/packages/redux-devtools-inspector-monitor-test-tab/package.json index f9bef22d..bd1615e7 100644 --- a/packages/redux-devtools-inspector-monitor-test-tab/package.json +++ b/packages/redux-devtools-inspector-monitor-test-tab/package.json @@ -45,12 +45,10 @@ "dependencies": { "@babel/runtime": "^7.23.5", "@redux-devtools/ui": "^1.3.1", - "@types/prop-types": "^15.7.11", "es6template": "^1.0.5", "javascript-stringify": "^2.1.0", "jsan": "^3.1.14", "object-path": "^0.11.8", - "prop-types": "^15.8.1", "react-icons": "^4.12.0", "simple-diff": "^1.7.2" }, diff --git a/packages/redux-devtools-inspector-monitor-test-tab/src/index.tsx b/packages/redux-devtools-inspector-monitor-test-tab/src/index.tsx index 47c1dff0..90e74a71 100644 --- a/packages/redux-devtools-inspector-monitor-test-tab/src/index.tsx +++ b/packages/redux-devtools-inspector-monitor-test-tab/src/index.tsx @@ -1,5 +1,4 @@ import React, { Component } from 'react'; -import PropTypes from 'prop-types'; import { Toolbar, Container, @@ -185,22 +184,6 @@ export class TestTab> extends Component< ); } - - static propTypes = { - monitorState: PropTypes.shape({ - testGenerator: PropTypes.shape({ - templates: PropTypes.array, - selected: PropTypes.number, - hideTip: PropTypes.bool, - }), - }).isRequired, - /* - options: PropTypes.shape({ - lib: PropTypes.string - }).isRequired, - */ - updateMonitorState: PropTypes.func.isRequired, - }; } export { default as reduxAvaTemplate } from './redux/ava'; diff --git a/packages/redux-devtools-inspector-monitor/package.json b/packages/redux-devtools-inspector-monitor/package.json index 0dbb1626..b0c9bda9 100644 --- a/packages/redux-devtools-inspector-monitor/package.json +++ b/packages/redux-devtools-inspector-monitor/package.json @@ -41,7 +41,6 @@ "@dnd-kit/sortable": "^8.0.0", "@dnd-kit/utilities": "^3.2.2", "@types/lodash": "^4.14.202", - "@types/prop-types": "^15.7.11", "@types/redux-devtools-themes": "^1.0.3", "dateformat": "^5.0.3", "hex-rgba": "^1.0.2", @@ -51,7 +50,6 @@ "jss": "^10.10.0", "jss-preset-default": "^10.10.0", "lodash.debounce": "^4.0.8", - "prop-types": "^15.8.1", "react-base16-styling": "^0.9.1", "react-json-tree": "^0.18.0", "redux-devtools-themes": "^1.0.0" diff --git a/packages/redux-devtools-inspector-monitor/src/ActionListHeader.tsx b/packages/redux-devtools-inspector-monitor/src/ActionListHeader.tsx index 6a6456eb..6a982e75 100644 --- a/packages/redux-devtools-inspector-monitor/src/ActionListHeader.tsx +++ b/packages/redux-devtools-inspector-monitor/src/ActionListHeader.tsx @@ -1,5 +1,4 @@ import React, { FunctionComponent } from 'react'; -import PropTypes from 'prop-types'; import { StylingFunction } from 'react-base16-styling'; import RightSlider from './RightSlider'; @@ -65,14 +64,4 @@ const ActionListHeader: FunctionComponent = ({ ); -ActionListHeader.propTypes = { - styling: PropTypes.func.isRequired, - onSearch: PropTypes.func.isRequired, - onCommit: PropTypes.func.isRequired, - onSweep: PropTypes.func.isRequired, - hideMainButtons: PropTypes.bool, - hasSkippedActions: PropTypes.bool.isRequired, - hasStagedActions: PropTypes.bool.isRequired, -}; - export default ActionListHeader; diff --git a/packages/redux-devtools-inspector-monitor/src/ActionListRow.tsx b/packages/redux-devtools-inspector-monitor/src/ActionListRow.tsx index 48b8c0f3..a694a36d 100644 --- a/packages/redux-devtools-inspector-monitor/src/ActionListRow.tsx +++ b/packages/redux-devtools-inspector-monitor/src/ActionListRow.tsx @@ -1,5 +1,4 @@ import React, { MouseEvent, MouseEventHandler, PureComponent } from 'react'; -import PropTypes from 'prop-types'; import dateformat from 'dateformat'; import type { DebouncedFunc } from 'lodash'; import debounce from 'lodash.debounce'; @@ -37,20 +36,6 @@ export default class ActionListRow< > extends PureComponent, State> { state: State = { hover: false }; - static propTypes = { - styling: PropTypes.func.isRequired, - isSelected: PropTypes.bool.isRequired, - action: PropTypes.object.isRequired, - isInFuture: PropTypes.bool.isRequired, - isInitAction: PropTypes.bool.isRequired, - onSelect: PropTypes.func.isRequired, - timestamps: PropTypes.shape({ - current: PropTypes.number.isRequired, - previous: PropTypes.number.isRequired, - }).isRequired, - isSkipped: PropTypes.bool.isRequired, - }; - render() { const { styling, diff --git a/packages/redux-devtools-inspector-monitor/src/ActionPreviewHeader.tsx b/packages/redux-devtools-inspector-monitor/src/ActionPreviewHeader.tsx index 91eb7435..3a810b7a 100644 --- a/packages/redux-devtools-inspector-monitor/src/ActionPreviewHeader.tsx +++ b/packages/redux-devtools-inspector-monitor/src/ActionPreviewHeader.tsx @@ -1,5 +1,4 @@ import React, { FunctionComponent } from 'react'; -import PropTypes from 'prop-types'; import { Action } from 'redux'; import { StylingFunction } from 'react-base16-styling'; import { Tab } from './ActionPreview'; @@ -65,13 +64,4 @@ const ActionPreviewHeader: FunctionComponent< ); -ActionPreviewHeader.propTypes = { - tabs: PropTypes.array.isRequired, - styling: PropTypes.func.isRequired, - inspectedPath: PropTypes.array.isRequired, - onInspectPath: PropTypes.func.isRequired, - tabName: PropTypes.string.isRequired, - onSelectTab: PropTypes.func.isRequired, -}; - export default ActionPreviewHeader; diff --git a/packages/redux-devtools-inspector-monitor/src/DevtoolsInspector.tsx b/packages/redux-devtools-inspector-monitor/src/DevtoolsInspector.tsx index acf17c15..ff03ae80 100644 --- a/packages/redux-devtools-inspector-monitor/src/DevtoolsInspector.tsx +++ b/packages/redux-devtools-inspector-monitor/src/DevtoolsInspector.tsx @@ -1,5 +1,4 @@ import React, { PureComponent } from 'react'; -import PropTypes from 'prop-types'; import { Base16Theme } from 'redux-devtools-themes'; import { getBase16Theme, @@ -205,32 +204,6 @@ class DevtoolsInspector> extends PureComponent< themeState: createThemeState(this.props), }; - static propTypes = { - dispatch: PropTypes.func, - computedStates: PropTypes.array, - stagedActionIds: PropTypes.array, - actionsById: PropTypes.object, - currentStateIndex: PropTypes.number, - monitorState: PropTypes.shape({ - initialScrollTop: PropTypes.number, - }), - preserveScrollTop: PropTypes.bool, - draggableActions: PropTypes.bool, - select: PropTypes.func.isRequired, - theme: PropTypes.oneOfType([PropTypes.object, PropTypes.string]), - supportImmutable: PropTypes.bool, - diffObjectHash: PropTypes.func, - diffPropertyFilter: PropTypes.func, - hideMainButtons: PropTypes.bool, - hideActionButtons: PropTypes.bool, - invertTheme: PropTypes.bool, - sortStateTreeAlphabetically: PropTypes.bool, - disableStateTreeCollection: PropTypes.bool, - skippedActionIds: PropTypes.array, - dataTypeKey: PropTypes.any, - tabs: PropTypes.oneOfType([PropTypes.array, PropTypes.func]), - }; - static update = reducer; static defaultProps = { diff --git a/packages/redux-devtools-inspector-monitor/src/RightSlider.tsx b/packages/redux-devtools-inspector-monitor/src/RightSlider.tsx index ee95bfa3..261f9c34 100644 --- a/packages/redux-devtools-inspector-monitor/src/RightSlider.tsx +++ b/packages/redux-devtools-inspector-monitor/src/RightSlider.tsx @@ -1,5 +1,4 @@ import React, { FunctionComponent } from 'react'; -import PropTypes from 'prop-types'; import { StylingFunction } from 'react-base16-styling'; interface Props { @@ -27,11 +26,4 @@ const RightSlider: FunctionComponent = ({ ); -RightSlider.propTypes = { - styling: PropTypes.func.isRequired, - shown: PropTypes.bool, - children: PropTypes.any.isRequired, - rotate: PropTypes.bool, -}; - export default RightSlider; diff --git a/packages/redux-devtools-inspector-monitor/src/tabs/ActionTab.tsx b/packages/redux-devtools-inspector-monitor/src/tabs/ActionTab.tsx index 59c62e00..d69a7531 100644 --- a/packages/redux-devtools-inspector-monitor/src/tabs/ActionTab.tsx +++ b/packages/redux-devtools-inspector-monitor/src/tabs/ActionTab.tsx @@ -1,5 +1,4 @@ import React, { FunctionComponent } from 'react'; -import PropTypes from 'prop-types'; import { JSONTree } from 'react-json-tree'; import { Action } from 'redux'; import getItemString from './getItemString'; @@ -29,14 +28,4 @@ const ActionTab: FunctionComponent< /> ); -ActionTab.propTypes = { - action: PropTypes.any.isRequired, - styling: PropTypes.func.isRequired, - base16Theme: PropTypes.any.isRequired, - invertTheme: PropTypes.bool.isRequired, - labelRenderer: PropTypes.func.isRequired, - dataTypeKey: PropTypes.string, - isWideLayout: PropTypes.bool.isRequired, -}; - export default ActionTab; diff --git a/packages/redux-devtools-inspector-monitor/src/tabs/DiffTab.tsx b/packages/redux-devtools-inspector-monitor/src/tabs/DiffTab.tsx index 433d284c..6b148b14 100644 --- a/packages/redux-devtools-inspector-monitor/src/tabs/DiffTab.tsx +++ b/packages/redux-devtools-inspector-monitor/src/tabs/DiffTab.tsx @@ -1,5 +1,4 @@ import React, { FunctionComponent } from 'react'; -import PropTypes from 'prop-types'; import JSONDiff from './JSONDiff'; import { TabComponentProps } from '../ActionPreview'; import { Action } from 'redux'; @@ -28,14 +27,4 @@ const DiffTab: FunctionComponent< /> ); -DiffTab.propTypes = { - delta: PropTypes.any, - styling: PropTypes.func.isRequired, - base16Theme: PropTypes.any.isRequired, - invertTheme: PropTypes.bool.isRequired, - labelRenderer: PropTypes.func.isRequired, - isWideLayout: PropTypes.bool.isRequired, - dataTypeKey: PropTypes.oneOfType([PropTypes.string, PropTypes.symbol]), -}; - export default DiffTab; diff --git a/packages/redux-devtools-inspector-monitor/src/tabs/StateTab.tsx b/packages/redux-devtools-inspector-monitor/src/tabs/StateTab.tsx index 5dffc3c6..95d305d4 100644 --- a/packages/redux-devtools-inspector-monitor/src/tabs/StateTab.tsx +++ b/packages/redux-devtools-inspector-monitor/src/tabs/StateTab.tsx @@ -1,5 +1,4 @@ import React from 'react'; -import PropTypes from 'prop-types'; import { JSONTree } from 'react-json-tree'; import { Action } from 'redux'; import getItemString from './getItemString'; @@ -33,14 +32,4 @@ const StateTab: React.FunctionComponent< /> ); -StateTab.propTypes = { - nextState: PropTypes.any.isRequired, - styling: PropTypes.func.isRequired, - base16Theme: PropTypes.any.isRequired, - invertTheme: PropTypes.bool.isRequired, - labelRenderer: PropTypes.func.isRequired, - dataTypeKey: PropTypes.oneOfType([PropTypes.string, PropTypes.symbol]), - isWideLayout: PropTypes.bool.isRequired, -}; - export default StateTab; diff --git a/packages/redux-devtools-log-monitor/package.json b/packages/redux-devtools-log-monitor/package.json index 2cb02d83..db755ed2 100644 --- a/packages/redux-devtools-log-monitor/package.json +++ b/packages/redux-devtools-log-monitor/package.json @@ -43,10 +43,8 @@ "dependencies": { "@babel/runtime": "^7.23.5", "@types/lodash.debounce": "^4.0.9", - "@types/prop-types": "^15.7.11", "@types/redux-devtools-themes": "^1.0.3", "lodash.debounce": "^4.0.8", - "prop-types": "^15.8.1", "react-json-tree": "^0.18.0", "redux-devtools-themes": "^1.0.0" }, diff --git a/packages/redux-devtools-log-monitor/src/LogMonitor.tsx b/packages/redux-devtools-log-monitor/src/LogMonitor.tsx index 13d87cbe..6b1d34dd 100644 --- a/packages/redux-devtools-log-monitor/src/LogMonitor.tsx +++ b/packages/redux-devtools-log-monitor/src/LogMonitor.tsx @@ -1,5 +1,4 @@ import React, { PureComponent } from 'react'; -import PropTypes from 'prop-types'; import { Action, Dispatch } from 'redux'; import * as themes from 'redux-devtools-themes'; import { Base16Theme } from 'redux-devtools-themes'; @@ -84,26 +83,6 @@ class LogMonitor> extends PureComponent< > { static update = reducer; - static propTypes = { - dispatch: PropTypes.func, - computedStates: PropTypes.array, - actionsById: PropTypes.object, - stagedActionIds: PropTypes.array, - skippedActionIds: PropTypes.array, - monitorState: PropTypes.shape({ - initialScrollTop: PropTypes.number, - consecutiveToggleStartId: PropTypes.number, - }), - - preserveScrollTop: PropTypes.bool, - select: PropTypes.func, - theme: PropTypes.oneOfType([PropTypes.object, PropTypes.string]), - expandActionRoot: PropTypes.bool, - expandStateRoot: PropTypes.bool, - markStateDiff: PropTypes.bool, - hideMainButtons: PropTypes.bool, - }; - static defaultProps: DefaultProps = { select: (state: unknown) => state, theme: 'nicinabox', diff --git a/packages/redux-devtools-log-monitor/src/LogMonitorButtonBar.tsx b/packages/redux-devtools-log-monitor/src/LogMonitorButtonBar.tsx index 356bfa39..9753977f 100644 --- a/packages/redux-devtools-log-monitor/src/LogMonitorButtonBar.tsx +++ b/packages/redux-devtools-log-monitor/src/LogMonitorButtonBar.tsx @@ -1,5 +1,4 @@ import React, { CSSProperties, PureComponent } from 'react'; -import PropTypes from 'prop-types'; import { ActionCreators, LiftedAction } from '@redux-devtools/core'; import { Base16Theme } from 'redux-devtools-themes'; import { Action, Dispatch } from 'redux'; @@ -31,11 +30,6 @@ export default class LogMonitorButtonBar< S, A extends Action, > extends PureComponent> { - static propTypes = { - dispatch: PropTypes.func, - theme: PropTypes.object, - }; - handleRollback = () => { this.props.dispatch(rollback()); }; diff --git a/packages/redux-devtools-log-monitor/src/LogMonitorEntry.tsx b/packages/redux-devtools-log-monitor/src/LogMonitorEntry.tsx index 3d481f43..853ca117 100644 --- a/packages/redux-devtools-log-monitor/src/LogMonitorEntry.tsx +++ b/packages/redux-devtools-log-monitor/src/LogMonitorEntry.tsx @@ -1,5 +1,4 @@ import React, { CSSProperties, MouseEventHandler, PureComponent } from 'react'; -import PropTypes from 'prop-types'; import { JSONTree } from 'react-json-tree'; import type { ShouldExpandNodeInitially, StylingValue } from 'react-json-tree'; import { Base16Theme } from 'redux-devtools-themes'; @@ -51,22 +50,6 @@ export default class LogMonitorEntry< S, A extends Action, > extends PureComponent> { - static propTypes = { - state: PropTypes.object.isRequired, - action: PropTypes.object.isRequired, - actionId: PropTypes.number.isRequired, - select: PropTypes.func.isRequired, - inFuture: PropTypes.bool, - error: PropTypes.string, - onActionClick: PropTypes.func.isRequired, - onActionShiftClick: PropTypes.func.isRequired, - collapsed: PropTypes.bool, - selected: PropTypes.bool, - expandActionRoot: PropTypes.bool, - expandStateRoot: PropTypes.bool, - previousState: PropTypes.object, - }; - printState(state: S, error: string | undefined) { let errorText = error; if (!errorText) { diff --git a/packages/redux-devtools-log-monitor/src/LogMonitorEntryList.tsx b/packages/redux-devtools-log-monitor/src/LogMonitorEntryList.tsx index 99440aaa..76448453 100644 --- a/packages/redux-devtools-log-monitor/src/LogMonitorEntryList.tsx +++ b/packages/redux-devtools-log-monitor/src/LogMonitorEntryList.tsx @@ -1,5 +1,4 @@ import React, { PureComponent } from 'react'; -import PropTypes from 'prop-types'; import { Action } from 'redux'; import { PerformAction } from '@redux-devtools/core'; import { Base16Theme } from 'redux-devtools-themes'; @@ -26,21 +25,6 @@ export default class LogMonitorEntryList< S, A extends Action, > extends PureComponent> { - static propTypes = { - actionsById: PropTypes.object, - computedStates: PropTypes.array, - stagedActionIds: PropTypes.array, - skippedActionIds: PropTypes.array, - currentStateIndex: PropTypes.number, - consecutiveToggleStartId: PropTypes.number, - - select: PropTypes.func.isRequired, - onActionClick: PropTypes.func.isRequired, - theme: PropTypes.oneOfType([PropTypes.object, PropTypes.string]), - expandActionRoot: PropTypes.bool, - expandStateRoot: PropTypes.bool, - }; - render() { const elements = []; const { diff --git a/packages/redux-devtools-rtk-query-monitor/package.json b/packages/redux-devtools-rtk-query-monitor/package.json index 1e38b077..6ff40243 100644 --- a/packages/redux-devtools-rtk-query-monitor/package.json +++ b/packages/redux-devtools-rtk-query-monitor/package.json @@ -47,14 +47,12 @@ "@babel/runtime": "^7.23.5", "@redux-devtools/ui": "^1.3.1", "@types/lodash": "^4.14.202", - "@types/prop-types": "^15.7.11", "@types/redux-devtools-themes": "^1.0.3", "hex-rgba": "^1.0.2", "immutable": "^4.3.4", "jss": "^10.10.0", "jss-preset-default": "^10.10.0", "lodash.debounce": "^4.0.8", - "prop-types": "^15.8.1", "react-base16-styling": "^0.9.1", "react-json-tree": "^0.18.0", "redux-devtools-themes": "^1.0.0" diff --git a/packages/redux-devtools-rtk-query-monitor/src/containers/RtkQueryMonitor.tsx b/packages/redux-devtools-rtk-query-monitor/src/containers/RtkQueryMonitor.tsx index 9f5ca446..f1916396 100644 --- a/packages/redux-devtools-rtk-query-monitor/src/containers/RtkQueryMonitor.tsx +++ b/packages/redux-devtools-rtk-query-monitor/src/containers/RtkQueryMonitor.tsx @@ -1,5 +1,4 @@ import React, { Component } from 'react'; -import PropTypes from 'prop-types'; import { Action, AnyAction } from 'redux'; import RtkQueryInspector from './RtkQueryInspector'; import { reducer } from '../reducers'; @@ -29,18 +28,6 @@ class RtkQueryMonitor> extends Component< > { static update = reducer; - static propTypes = { - dispatch: PropTypes.func, - computedStates: PropTypes.array, - currentStateIndex: PropTypes.number, - actionsById: PropTypes.object, - stagedActionIds: PropTypes.array, - skippedActionIds: PropTypes.array, - monitorState: PropTypes.object, - theme: PropTypes.oneOfType([PropTypes.object, PropTypes.string]), - invertTheme: PropTypes.bool, - }; - static defaultProps: DefaultProps = { theme: 'nicinabox', invertTheme: false, diff --git a/packages/redux-devtools-slider-monitor/examples/todomvc/package.json b/packages/redux-devtools-slider-monitor/examples/todomvc/package.json index 9c3ff113..6689576e 100644 --- a/packages/redux-devtools-slider-monitor/examples/todomvc/package.json +++ b/packages/redux-devtools-slider-monitor/examples/todomvc/package.json @@ -20,7 +20,6 @@ "@redux-devtools/log-monitor": "^4.0.0", "@redux-devtools/slider-monitor": "^4.0.0", "classnames": "^2.3.2", - "prop-types": "^15.8.1", "react": "^18.2.0", "react-dom": "^18.2.0", "react-is": "^18.2.0", @@ -36,7 +35,6 @@ "@babel/preset-typescript": "^7.23.3", "@types/classnames": "^2.3.1", "@types/node": "^20.10.4", - "@types/prop-types": "^15.7.11", "@types/react": "^18.2.43", "@types/react-dom": "^18.2.17", "@types/styled-components": "^5.1.34", diff --git a/packages/redux-devtools-slider-monitor/examples/todomvc/src/components/Footer.tsx b/packages/redux-devtools-slider-monitor/examples/todomvc/src/components/Footer.tsx index 9462dd0c..250a4cc8 100644 --- a/packages/redux-devtools-slider-monitor/examples/todomvc/src/components/Footer.tsx +++ b/packages/redux-devtools-slider-monitor/examples/todomvc/src/components/Footer.tsx @@ -1,5 +1,4 @@ import React, { Component, MouseEventHandler } from 'react'; -import PropTypes from 'prop-types'; import classnames from 'classnames'; import { SHOW_ALL, @@ -23,14 +22,6 @@ interface Props { } export default class Footer extends Component { - static propTypes = { - markedCount: PropTypes.number.isRequired, - unmarkedCount: PropTypes.number.isRequired, - filter: PropTypes.string.isRequired, - onClearMarked: PropTypes.func.isRequired, - onShow: PropTypes.func.isRequired, - }; - render() { return (