Skip to content

Commit

Permalink
Revert changes that are not compatible with React 18
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoAndai committed Aug 12, 2024
1 parent c97d39b commit a2ce4ba
Show file tree
Hide file tree
Showing 37 changed files with 897 additions and 1,447 deletions.
8 changes: 4 additions & 4 deletions apps/pigment-css-next-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
"@mui/system": "workspace:^",
"@emotion/cache": "latest",
"next": "latest",
"react": "19.0.0-rc-2d2cc042-20240809",
"react-dom": "19.0.0-rc-2d2cc042-20240809"
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@pigment-css/nextjs-plugin": "0.0.20",
"@types/node": "^20.5.7",
"@types/react": "npm:types-react@19.0.0-rc.1",
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"eslint": "^8.57.0",
"typescript": "^5.4.5"
},
Expand Down
10 changes: 4 additions & 6 deletions apps/pigment-css-vite-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,18 @@
"@mui/lab": "workspace:^",
"@mui/material": "workspace:^",
"@mui/system": "workspace:^",
"@mui/utils": "workspace:^",
"@pigment-css/react": "^0.0.16",
"clsx": "^2.1.1",
"react": "19.0.0-rc-2d2cc042-20240809",
"react-dom": "19.0.0-rc-2d2cc042-20240809",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-error-boundary": "^4.0.13",
"react-router-dom": "^6.26.0"
},
"devDependencies": {
"@babel/preset-react": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@pigment-css/vite-plugin": "0.0.20",
"@types/react": "npm:types-react@19.0.0-rc.1",
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
"postcss": "^8.4.41",
"postcss-combine-media-query": "^1.0.1",
Expand Down
6 changes: 3 additions & 3 deletions benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"jss": "^10.10.0",
"playwright": "^1.46.0",
"prop-types": "^15.8.1",
"react": "19.0.0-rc-2d2cc042-20240809",
"react-dom": "19.0.0-rc-2d2cc042-20240809",
"react-is": "19.0.0-rc-2d2cc042-20240809",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-is": "^18.3.1",
"react-jss": "^10.10.0",
"react-redux": "^8.1.3",
"redux": "^4.2.1",
Expand Down
4 changes: 2 additions & 2 deletions docs/data/base/getting-started/quickstart/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ Please note that [react](https://www.npmjs.com/package/react) and [react-dom](ht

```json
"peerDependencies": {
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0"
},
```

Expand Down
4 changes: 2 additions & 2 deletions docs/data/joy/getting-started/installation/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ Please note that [react](https://www.npmjs.com/package/react) and [react-dom](ht

```json
"peerDependencies": {
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0"
},
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ Please note that [react](https://www.npmjs.com/package/react) and [react-dom](ht

```json
"peerDependencies": {
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0"
},
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Please note that [react](https://www.npmjs.com/package/react) is a peer dependen

```json
"peerDependencies": {
"react": "^17.0.0 || ^18.0.0 || ^19.0.0"
"react": "^17.0.0 || ^18.0.0"
},
```

Expand Down
10 changes: 5 additions & 5 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@
"postcss": "^8.4.41",
"postcss-import": "^16.1.0",
"prop-types": "^15.8.1",
"react": "19.0.0-rc-2d2cc042-20240809",
"react-dom": "19.0.0-rc-2d2cc042-20240809",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-draggable": "^4.4.6",
"react-final-form": "^6.5.9",
"react-imask": "^7.6.1",
"react-intersection-observer": "^9.13.0",
"react-is": "19.0.0-rc-2d2cc042-20240809",
"react-is": "^18.3.1",
"react-number-format": "^5.4.0",
"react-router-dom": "^6.26.0",
"react-runner": "^1.0.5",
Expand Down Expand Up @@ -126,8 +126,8 @@
"@types/json2mq": "^0.2.2",
"@types/node": "^18.19.44",
"@types/prop-types": "^15.7.12",
"@types/react": "npm:types-react@19.0.0-rc.1",
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/react-swipeable-views": "^0.13.5",
"@types/react-transition-group": "^4.4.11",
"@types/react-window": "^1.8.8",
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/pricing/PricingTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,7 @@ function StickyHead({
container,
disableCalculation = false,
}: {
container: React.RefObject<HTMLElement | null>;
container: React.MutableRefObject<HTMLElement | null>;
disableCalculation?: boolean;
}) {
const [hidden, setHidden] = React.useState(true);
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/productMaterial/MaterialStyling.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const endLine = [37, 20, 12];
const scrollTo = [27, 10, 4];

export const useResizeHandle = (
target: React.RefObject<HTMLDivElement | null>,
target: React.MutableRefObject<HTMLDivElement | null>,
options?: { minWidth?: string; maxWidth?: string },
) => {
const { minWidth = '0px', maxWidth = '100%' } = options || {};
Expand Down
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
"@types/lodash": "^4.17.7",
"@types/mocha": "^10.0.7",
"@types/node": "^18.19.44",
"@types/react": "npm:types-react@19.0.0-rc.1",
"@types/react": "^18.3.3",
"@types/yargs": "^17.0.33",
"@typescript-eslint/eslint-plugin": "^7.16.1",
"@typescript-eslint/parser": "^7.16.1",
Expand Down Expand Up @@ -208,11 +208,8 @@
"@definitelytyped/typescript-versions": "^0.1.3",
"@definitelytyped/utils": "^0.1.7",
"@types/node": "^18.19.44",
"types-react-dom>@types/react": "npm:types-react@19.0.0-rc.1",
"@types/hoist-non-react-statics>@types/react": "npm:types-react@19.0.0-rc.1",
"@types/react-transition-group>@types/react": "npm:types-react@19.0.0-rc.1",
"@types/react-window>@types/react": "npm:types-react@19.0.0-rc.1",
"@types/react-swipeable-views>@types/react": "npm:types-react@19.0.0-rc.1",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"cross-fetch": "^4.0.0",
"@pigment-css/react": "0.0.20",
"@pigment-css/unplugin": "0.0.20",
Expand Down
2 changes: 1 addition & 1 deletion packages-internal/scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@types/doctrine": "^0.0.9",
"@types/lodash": "^4.17.7",
"@types/node": "^18.19.44",
"@types/react": "npm:types-react@19.0.0-rc.1",
"@types/react": "^18.3.3",
"@types/uuid": "^9.0.8",
"chai": "^4.5.0",
"fast-glob": "^3.3.2",
Expand Down
8 changes: 4 additions & 4 deletions packages-internal/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@
"@types/chai-dom": "^1.11.3",
"@types/format-util": "^1.0.4",
"@types/prop-types": "^15.7.12",
"@types/react": "npm:types-react@19.0.0-rc.1",
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/sinon": "^17.0.3",
"typescript": "^5.4.5"
},
"peerDependencies": {
"react": "19.0.0-rc-2d2cc042-20240809",
"react-dom": "19.0.0-rc-2d2cc042-20240809"
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"publishConfig": {
"access": "public"
Expand Down
14 changes: 7 additions & 7 deletions packages/mui-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,20 @@
"@testing-library/user-event": "^14.5.2",
"@types/chai": "^4.3.17",
"@types/prop-types": "^15.7.12",
"@types/react": "npm:types-react@19.0.0-rc.1",
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@types/sinon": "^17.0.3",
"chai": "^4.5.0",
"fast-glob": "^3.3.2",
"lodash": "^4.17.21",
"react": "19.0.0-rc-2d2cc042-20240809",
"react-dom": "19.0.0-rc-2d2cc042-20240809",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"sinon": "^16.1.3"
},
"peerDependencies": {
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
"@types/react": "^17.0.0 || ^18.0.0",
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0"
},
"peerDependenciesMeta": {
"@types/react": {
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-base/src/utils/useControllableReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ interface UseStateChangeDetectionParameters<State extends {}> {
/**
* The last action that was dispatched.
*/
lastActionRef: React.RefObject<ControllableReducerAction | null>;
lastActionRef: React.MutableRefObject<ControllableReducerAction | null>;
}

/**
Expand Down
8 changes: 4 additions & 4 deletions packages/mui-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,20 @@
"@types/gtag.js": "^0.0.20",
"@types/node": "^18.19.44",
"@types/prop-types": "^15.7.12",
"@types/react": "npm:types-react@19.0.0-rc.1",
"@types/react": "^18.3.3",
"next": "^14.2.5",
"react": "19.0.0-rc-2d2cc042-20240809"
"react": "^18.3.1"
},
"peerDependencies": {
"@mui/base": "*",
"@mui/icons-material": "^5.0.0",
"@mui/material": "^5.0.0",
"@mui/system": "^5.0.0",
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
"@types/react": "^17.0.0 || ^18.0.0",
"chai": "^4.4.1",
"csstype": "^3.1.3",
"next": "^13.5.1 || ^14",
"react": "^17.0.0 || ^18.0.0 || ^19.0.0"
"react": "^17.0.0 || ^18.0.0"
},
"peerDependenciesMeta": {
"@types/react": {
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-docs/src/CodeCopy/CodeCopy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import { useRouter } from 'next/router';
import clipboardCopy from 'clipboard-copy';

const CodeBlockContext = React.createContext<React.RefObject<HTMLDivElement | null>>({
const CodeBlockContext = React.createContext<React.MutableRefObject<HTMLDivElement | null>>({
current: null,
});

Expand Down
6 changes: 3 additions & 3 deletions packages/mui-envinfo/test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"@mui/base": "5.0.0-beta.30",
"@mui/joy": "5.0.0-beta.22",
"@mui/material": "5.15.4",
"react": "19.0.0-rc-2d2cc042-20240809",
"react-dom": "19.0.0-rc-2d2cc042-20240809"
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@types/react": "npm:types-react@19.0.0-rc.1"
"@types/react": "^18.3.3"
}
}
8 changes: 4 additions & 4 deletions packages/mui-icons-material/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,24 +52,24 @@
"@mui/internal-waterfall": "workspace:^",
"@mui/material": "workspace:^",
"@types/chai": "^4.3.17",
"@types/react": "npm:types-react@19.0.0-rc.1",
"@types/react": "^18.3.3",
"chai": "^4.5.0",
"chalk": "^5.3.0",
"cross-fetch": "^4.0.0",
"fast-glob": "^3.3.2",
"fs-extra": "^11.2.0",
"lodash": "^4.17.21",
"mustache": "^4.2.0",
"react": "19.0.0-rc-2d2cc042-20240809",
"react": "^18.3.1",
"rimraf": "^5.0.10",
"shx": "^0.3.4",
"svgo": "^3.3.2",
"yargs": "^17.7.2"
},
"peerDependencies": {
"@mui/material": "workspace:*",
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
"react": "^17.0.0 || ^18.0.0 || ^19.0.0"
"@types/react": "^17.0.0 || ^18.0.0",
"react": "^17.0.0 || ^18.0.0"
},
"peerDependenciesMeta": {
"@types/react": {
Expand Down
14 changes: 7 additions & 7 deletions packages/mui-joy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,23 +52,23 @@
"@mui/material": "workspace:^",
"@types/chai": "^4.3.17",
"@types/prop-types": "^15.7.12",
"@types/react": "npm:types-react@19.0.0-rc.1",
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/sinon": "^17.0.3",
"chai": "^4.5.0",
"fast-glob": "^3.3.2",
"lodash": "^4.17.21",
"next": "^14.2.5",
"react": "19.0.0-rc-2d2cc042-20240809",
"react-dom": "19.0.0-rc-2d2cc042-20240809",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"sinon": "^16.1.3"
},
"peerDependencies": {
"@emotion/react": "^11.5.0",
"@emotion/styled": "^11.3.0",
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
"@types/react": "^17.0.0 || ^18.0.0",
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0"
},
"peerDependenciesMeta": {
"@types/react": {
Expand Down
14 changes: 7 additions & 7 deletions packages/mui-lab/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,22 +53,22 @@
"@mui/material": "workspace:*",
"@types/chai": "^4.3.17",
"@types/prop-types": "^15.7.12",
"@types/react": "npm:types-react@19.0.0-rc.1",
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/sinon": "^17.0.3",
"chai": "^4.5.0",
"react": "19.0.0-rc-2d2cc042-20240809",
"react-dom": "19.0.0-rc-2d2cc042-20240809",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"sinon": "^16.1.3"
},
"peerDependencies": {
"@emotion/react": "^11.5.0",
"@emotion/styled": "^11.3.0",
"@mui/material": "workspace:^",
"@mui/material-pigment-css": "workspace:^",
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
"@types/react": "^17.0.0 || ^18.0.0",
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0"
},
"peerDependenciesMeta": {
"@types/react": {
Expand Down
10 changes: 5 additions & 5 deletions packages/mui-material-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@
"@emotion/cache": "^11.13.1",
"@emotion/react": "^11.13.0",
"@emotion/server": "^11.11.0",
"@types/react": "npm:types-react@19.0.0-rc.1",
"next": "canary",
"react": "19.0.0-rc-2d2cc042-20240809"
"@types/react": "^18.3.3",
"next": "14.2.5",
"react": "^18.3.1"
},
"peerDependencies": {
"@emotion/cache": "^11.11.0",
"@emotion/react": "^11.11.4",
"@emotion/server": "^11.11.0",
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
"@types/react": "^17.0.0 || ^18.0.0",
"next": "^13.0.0 || ^14.0.0",
"react": "^17.0.0 || ^18.0.0 || ^19.0.0"
"react": "^17.0.0 || ^18.0.0"
},
"peerDependenciesMeta": {
"@types/react": {
Expand Down
Loading

0 comments on commit a2ce4ba

Please sign in to comment.