Skip to content

Commit

Permalink
Upgrade TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
tassoevan committed Oct 11, 2024
1 parent be4595a commit dbf525d
Show file tree
Hide file tree
Showing 18 changed files with 364 additions and 161 deletions.
4 changes: 2 additions & 2 deletions packages/css-in-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
"rollup": "~2.79.2",
"rollup-plugin-terser": "~7.0.2",
"ts-jest": "~29.2.4",
"typedoc": "~0.25.13",
"typescript": "~5.5.4"
"typedoc": "~0.26.8",
"typescript": "~5.6.3"
},
"dependencies": {
"@emotion/hash": "^0.9.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/css-supports/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"lint-all": "workspace:~",
"prettier": "~2.8.7",
"rimraf": "~3.0.2",
"typedoc": "~0.25.13",
"typescript": "~5.5.4"
"typedoc": "~0.26.8",
"typescript": "~5.6.3"
},
"dependencies": {
"@rocket.chat/memo": "workspace:~"
Expand Down
4 changes: 2 additions & 2 deletions packages/emitter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"rollup": "~2.79.2",
"rollup-plugin-terser": "~7.0.2",
"ts-jest": "~29.2.4",
"typedoc": "~0.25.13",
"typescript": "~5.5.4"
"typedoc": "~0.26.8",
"typescript": "~5.6.3"
}
}
10 changes: 5 additions & 5 deletions packages/fuselage-hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@
"@testing-library/react-hooks": "~8.0.1",
"@testing-library/user-event": "~14.5.2",
"@types/jest": "~29.5.13",
"@types/react": "~17.0.80",
"@types/react": "~17.0.83",
"@types/react-dom": "~17.0.25",
"@types/resize-observer-browser": "~0.1.7",
"@types/use-sync-external-store": "~0.0.3",
"@types/resize-observer-browser": "~0.1.11",
"@types/use-sync-external-store": "~0.0.6",
"bump": "workspace:~",
"eslint": "~8.38.0",
"jest": "~29.7.0",
Expand All @@ -69,8 +69,8 @@
"rollup-plugin-terser": "~7.0.2",
"testing-utils": "workspace:~",
"ts-jest": "~29.2.4",
"typedoc": "~0.25.13",
"typescript": "~5.5.4"
"typedoc": "~0.26.8",
"typescript": "~5.6.3"
},
"peerDependencies": {
"@rocket.chat/fuselage-tokens": "*",
Expand Down
6 changes: 3 additions & 3 deletions packages/fuselage-toastbar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"@testing-library/react": "~16.0.0",
"@testing-library/user-event": "~14.5.2",
"@types/jest": "~29.5.13",
"@types/react": "~17.0.80",
"@types/react": "~17.0.83",
"@types/react-dom": "~17.0.25",
"bump": "workspace:~",
"eslint": "~8.38.0",
Expand All @@ -76,8 +76,8 @@
"storybook": "~8.2.7",
"storybook-dark-mode": "~4.0.2",
"ts-jest": "~29.2.4",
"typedoc": "~0.25.13",
"typescript": "~5.5.4"
"typedoc": "~0.26.8",
"typescript": "~5.6.3"
},
"peerDependencies": {
"@rocket.chat/fuselage": "*",
Expand Down
4 changes: 2 additions & 2 deletions packages/fuselage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@
"stylelint-scss": "~4.6.0",
"testing-utils": "workspace:~",
"ts-jest": "~29.2.4",
"ts-loader": "~9.4.2",
"typescript": "~5.5.4",
"ts-loader": "~9.4.4",
"typescript": "~5.6.3",
"webpack": "~5.94.0",
"webpack-bundle-analyzer": "~4.8.0",
"webpack-cli": "~5.0.1",
Expand Down
9 changes: 7 additions & 2 deletions packages/fuselage/src/components/Position/Position.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import type { UsePositionOptions } from '@rocket.chat/fuselage-hooks';
import { usePosition } from '@rocket.chat/fuselage-hooks';
import type { RefObject, ComponentProps, ReactElement } from 'react';
import type {
RefObject,
ComponentProps,
ReactElement,
ReactPortal,
} from 'react';
import { useRef, useMemo, cloneElement, useState, useEffect } from 'react';
import { createPortal } from 'react-dom';

Expand All @@ -20,7 +25,7 @@ const Position = ({
margin,
className: _className,
...props
}: PositionProps) => {
}: PositionProps): ReactPortal => {
const target = useRef(null);
const { style: positionStyle, placement: positionPlacement } =
usePosition(
Expand Down
6 changes: 3 additions & 3 deletions packages/layout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@storybook/react-webpack5": "~8.2.7",
"@storybook/theming": "~8.2.7",
"@types/jest": "~29.5.13",
"@types/react": "~17.0.80",
"@types/react": "~17.0.83",
"@types/react-dom": "~17.0.25",
"bump": "workspace:~",
"eslint": "~8.38.0",
Expand All @@ -64,8 +64,8 @@
"storybook": "~8.2.7",
"storybook-dark-mode": "~4.0.2",
"ts-jest": "~29.2.4",
"typedoc": "~0.25.13",
"typescript": "~5.5.4"
"typedoc": "~0.26.8",
"typescript": "~5.6.3"
},
"peerDependencies": {
"@rocket.chat/fuselage": "*",
Expand Down
6 changes: 3 additions & 3 deletions packages/logo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@rocket.chat/fuselage-tokens": "workspace:~",
"@rocket.chat/prettier-config": "workspace:~",
"@types/jest": "~29.5.13",
"@types/react": "~17.0.80",
"@types/react": "~17.0.83",
"@types/react-dom": "~17.0.25",
"build-logo": "workspace:~",
"bump": "workspace:~",
Expand All @@ -59,8 +59,8 @@
"react-dom": "^17.0.2",
"rimraf": "^3.0.2",
"ts-jest": "~29.2.4",
"typedoc": "~0.25.13",
"typescript": "~5.5.4"
"typedoc": "~0.26.8",
"typescript": "~5.6.3"
},
"dependencies": {
"@rocket.chat/fuselage-hooks": "workspace:~",
Expand Down
4 changes: 2 additions & 2 deletions packages/memo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
"prettier": "~2.8.7",
"rimraf": "~3.0.2",
"ts-jest": "~29.2.4",
"typedoc": "~0.25.13",
"typescript": "~5.5.4"
"typedoc": "~0.26.8",
"typescript": "~5.6.3"
},
"eslintConfig": {
"extends": "@rocket.chat/eslint-config-alt/typescript",
Expand Down
4 changes: 2 additions & 2 deletions packages/mp3-encoder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"prettier": "~2.8.7",
"rollup": "~3.29.5",
"ts-jest": "~29.2.4",
"typedoc": "~0.25.13",
"typescript": "~5.5.4"
"typedoc": "~0.26.8",
"typescript": "~5.6.3"
}
}
6 changes: 3 additions & 3 deletions packages/onboarding-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@storybook/react-webpack5": "~8.2.7",
"@storybook/theming": "~8.2.7",
"@types/jest": "~29.5.13",
"@types/react": "~17.0.80",
"@types/react": "~17.0.83",
"@types/react-dom": "~17.0.25",
"bump": "workspace:~",
"countries-list": "^2.6.1",
Expand All @@ -75,8 +75,8 @@
"storybook": "~8.2.7",
"storybook-dark-mode": "~4.0.2",
"ts-jest": "~29.2.4",
"typedoc": "~0.25.13",
"typescript": "~5.5.4"
"typedoc": "~0.26.8",
"typescript": "~5.6.3"
},
"dependencies": {
"i18next": "~21.6.16",
Expand Down
4 changes: 2 additions & 2 deletions packages/peggy-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"devDependencies": {
"@rocket.chat/eslint-config-alt": "workspace:~",
"@rocket.chat/prettier-config": "workspace:~",
"@types/node": "~14.18.42",
"@types/node": "~14.18.63",
"bump": "workspace:~",
"eslint": "~8.38.0",
"lint-all": "workspace:~",
Expand All @@ -55,7 +55,7 @@
"prettier": "~2.8.7",
"rimraf": "^3.0.2",
"ts-jest": "~29.2.4",
"typescript": "~5.5.4",
"typescript": "~5.6.3",
"webpack": "~5.94.0"
}
}
4 changes: 2 additions & 2 deletions packages/string-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
"prettier": "~2.8.7",
"rimraf": "^3.0.2",
"ts-jest": "~29.2.4",
"typedoc": "~0.25.13",
"typescript": "~5.5.4"
"typedoc": "~0.26.8",
"typescript": "~5.6.3"
},
"eslintConfig": {
"extends": "@rocket.chat/eslint-config-alt/typescript",
Expand Down
4 changes: 2 additions & 2 deletions packages/styled/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
"prettier": "~2.8.7",
"rimraf": "^3.0.2",
"ts-jest": "~29.2.4",
"typedoc": "~0.25.13",
"typescript": "~5.5.4"
"typedoc": "~0.26.8",
"typescript": "~5.6.3"
},
"dependencies": {
"@rocket.chat/css-in-js": "workspace:~"
Expand Down
4 changes: 2 additions & 2 deletions packages/stylis-logical-props-middleware/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
"rimraf": "^3.0.2",
"stylis": "~4.3.2",
"ts-jest": "~29.2.4",
"typedoc": "~0.25.13",
"typescript": "~5.5.4"
"typedoc": "~0.26.8",
"typescript": "~5.6.3"
},
"dependencies": {
"@rocket.chat/css-supports": "workspace:~"
Expand Down
6 changes: 3 additions & 3 deletions tools/scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
"devDependencies": {
"@rocket.chat/eslint-config-alt": "workspace:~",
"@rocket.chat/prettier-config": "workspace:~",
"@types/node": "~14.18.42",
"@types/node": "~14.18.63",
"@typescript-eslint/parser": "~5.58.0",
"cross-env": "^7.0.3",
"endent": "^2.1.0",
"eslint": "~8.38.0",
"fast-glob": "~3.2.12",
"npm-run-all": "^4.1.5",
"prettier": "~2.8.7",
"ts-node": "~10.9.1",
"typescript": "~5.5.4"
"ts-node": "~10.9.2",
"typescript": "~5.6.3"
},
"version": "0.31.25"
}
Loading

0 comments on commit dbf525d

Please sign in to comment.