diff --git a/app/components/common/Prism.tsx b/app/components/common/Prism.tsx index ceabed3..c1cf713 100644 --- a/app/components/common/Prism.tsx +++ b/app/components/common/Prism.tsx @@ -1,5 +1,5 @@ import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter'; -import { tomorrow } from 'react-syntax-highlighter/dist/esm/styles/prism'; +import { tomorrow } from 'react-syntax-highlighter/dist/cjs/styles/prism'; export type PrismProps = { className?: string; diff --git a/app/components/web-osx/WindowResizer.tsx b/app/components/web-osx/WindowResizer.tsx index 43e885a..28c2fb2 100644 --- a/app/components/web-osx/WindowResizer.tsx +++ b/app/components/web-osx/WindowResizer.tsx @@ -26,9 +26,8 @@ export const WindowResizer = forwardRef(function WindowResizer( const [height, setHeight] = useCachedState(() => externalHeight, [externalHeight]); const [width, setWidth] = useCachedState(() => externalWidth, [externalWidth]); const [resizer, setResizer] = useState(null); - const containerRef: React.RefObject = useRef( - typeof externalRef === 'function' ? null : externalRef - ); + const containerRef: React.RefObject = + typeof externalRef === 'function' ? (externalRef as any) : useRef(null); useEffect(() => { const onResize = (e: MouseEvent) => { diff --git a/bun.lockb b/bun.lockb index 826dc17..fc7d429 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/jest.config.ts b/jest.config.ts index f23a069..9b5398d 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -22,7 +22,7 @@ const jestConfig: JestConfigWithTsJest = { moduleNameMapper: { '\\.(scss)$': '/__tests__/identity-obj-proxy-esm.ts', }, - transformIgnorePatterns: ['^.+\\.js$'], + transformIgnorePatterns: ['^.+\\.js$', 'node_modules/(?!react-syntax-highlighter)'], }; export default jestConfig; diff --git a/package.json b/package.json index a5478fc..1f15242 100644 --- a/package.json +++ b/package.json @@ -20,10 +20,10 @@ "react-syntax-highlighter": "^15.5.0" }, "devDependencies": { - "@parcel/packager-raw-url": "2.9.3", + "@parcel/packager-raw-url": "^2.12.0", "@parcel/resolver-default": "^2.9.3", - "@parcel/transformer-sass": "2.9.3", - "@parcel/transformer-webmanifest": "2.9.3", + "@parcel/transformer-sass": "^2.12.0", + "@parcel/transformer-webmanifest": "^2.12.0", "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^14.0.0", "@testing-library/user-event": "^14.4.3",