Skip to content

Commit

Permalink
Revert "Update packages"
Browse files Browse the repository at this point in the history
This reverts commit 892ef88.
  • Loading branch information
marshallku committed Dec 17, 2024
1 parent 892ef88 commit 40de92c
Show file tree
Hide file tree
Showing 10 changed files with 1,085 additions and 1,090 deletions.
38 changes: 19 additions & 19 deletions apps/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,42 +22,42 @@
"@marshallku/toast": "workspace:^",
"@marshallku/ui": "workspace:^",
"@marshallku/utils": "workspace:^",
"@next/eslint-plugin-next": "^15.1.0",
"@next/third-parties": "^15.1.0",
"@tanstack/react-query": "^5.62.7",
"@next/eslint-plugin-next": "^15.0.3",
"@next/third-parties": "^15.0.3",
"@tanstack/react-query": "^5.59.20",
"copy2clip": "^1.1.1",
"gray-matter": "^4.0.3",
"image-size": "^1.1.1",
"marked": "^15.0.4",
"monocart-coverage-reports": "^2.11.4",
"next": "^15.1.0",
"marked": "^15.0.0",
"monocart-coverage-reports": "^2.11.2",
"next": "^15.0.3",
"next-mdx-remote": "^5.0.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"rehype-autolink-headings": "^7.1.0",
"rehype-pretty-code": "^0.14.0",
"rehype-slug": "^6.0.0",
"rehype-unwrap-images": "^1.0.0",
"remark-gfm": "^4.0.0",
"remark-toc": "^9.0.0",
"smooth-zoom": "^1.5.0",
"zod": "^3.24.1"
"smooth-zoom": "^1.4.1",
"zod": "^3.23.8"
},
"devDependencies": {
"@marshallku/eslint-config": "^0.0.4",
"@marshallku/typescript-config": "^0.0.4",
"@next/bundle-analyzer": "^15.1.0",
"@playwright/test": "^1.49.1",
"@testing-library/react": "^16.1.0",
"@next/bundle-analyzer": "^15.0.3",
"@playwright/test": "^1.48.2",
"@testing-library/react": "^16.0.1",
"@types/node": "^20.16.15",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.2",
"@vitejs/plugin-react": "^4.3.4",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.3",
"eslint": "^8.57.1",
"jsdom": "^25.0.1",
"sass": "^1.83.0",
"typescript": "^5.7.2",
"vitest": "^2.1.8",
"sass": "^1.80.6",
"typescript": "^5.6.3",
"vitest": "^2.1.4",
"vitest-monocart-coverage": "^2.1.2"
}
}
2 changes: 0 additions & 2 deletions apps/blog/src/app/[category]/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,6 @@ export default async function Post({ params }: PostProps) {
],
},
}}
// FIXME: Update after next-mdx-remote supports react 19
// @ts-ignore
components={MDXComponents}
/>
<Typography component="div" variant="c1" className={cx("__copyright")}>
Expand Down
14 changes: 4 additions & 10 deletions apps/blog/src/components/MDXComponents/index.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import type { AnchorHTMLAttributes, DetailedHTMLProps, ImgHTMLAttributes, TableHTMLAttributes } from "react";
import { HTMLProps } from "react";
import NextLink from "next/link";
import { Icon } from "@marshallku/icon";
import PostImage from "#components/PostImage";

function Link({
href,
children,
...rest
}: DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>) {
function Link({ href, children, ...rest }: Omit<HTMLProps<HTMLAnchorElement>, "ref">) {
if (!href) {
return null;
}
Expand Down Expand Up @@ -37,11 +33,9 @@ function Link({
}

const MDXComponents = {
img: (props: DetailedHTMLProps<ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>) => (
<PostImage {...props} useLowQualityPlaceholder />
),
img: PostImage,
a: Link,
table: (props: DetailedHTMLProps<TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>) => (
table: (props: HTMLProps<HTMLTableElement>) => (
<div className="table">
<table {...props} />
</div>
Expand Down
4 changes: 2 additions & 2 deletions packages/icon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
"@types/react-dom": "^18.2.18",
"clean-css-cli": "^5.6.2",
"fantasticon": "^3.0.0",
"react": "^19.0.0",
"react": "^18.3.1",
"tsup": "^8.3.5",
"typescript": "^5.7.2"
"typescript": "^5.6.3"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/react-error-boundary/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@marshallku/typescript-config": "^0.0.4",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"react-dom": "^19.0.0",
"react-dom": "^18.3.1",
"tsup": "^8.3.5"
},
"peerDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion packages/toast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
"@marshallku/eslint-config": "^0.0.4",
"@marshallku/typescript-config": "^0.0.4",
"eslint": "^8.56.0",
"react": "^18.3.1",
"tsup": "^8.3.5",
"typescript": "^5.7.2"
"typescript": "^5.6.3"
},
"publishConfig": {
"access": "public"
Expand Down
24 changes: 12 additions & 12 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,28 +29,28 @@
"@marshallku/typescript-config": "^0.0.4",
"@marshallku/utils": "workspace:^",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.1.0",
"@types/node": "^22.10.2",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.2",
"@vitejs/plugin-react": "^4.3.4",
"@testing-library/react": "^16.0.1",
"@types/node": "^22.9.0",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.3",
"eslint": "^8.56.0",
"glob": "^11.0.0",
"jsdom": "^25.0.1",
"sass": "^1.83.0",
"typescript": "^5.7.2",
"sass": "^1.80.6",
"typescript": "^5.6.3",
"vite": "^5.4.11",
"vite-plugin-dts": "^4.3.0",
"vite-plugin-lib-inject-css": "^2.1.1",
"vite-plugin-static-copy": "^2.2.0",
"vitest": "^2.1.8",
"vite-plugin-static-copy": "^2.1.0",
"vitest": "^2.1.4",
"vitest-monocart-coverage": "^2.1.2"
},
"peerDependencies": {
"react": "^19.0.0",
"react-dom": "^19.0.0"
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"publishConfig": {
"access": "public"
}
}
}
2 changes: 1 addition & 1 deletion packages/ui/src/components/Typography/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type ReactNode, createElement, type JSX } from "react";
import { type ReactNode, createElement } from "react";
import { classNames } from "@marshallku/utils";
import type { Range } from "../../types";
import styles from "./index.module.scss";
Expand Down
6 changes: 3 additions & 3 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
"@marshallku/eslint-config": "^0.0.4",
"@marshallku/typescript-config": "^0.0.4",
"eslint": "^8.56.0",
"react": "^19.0.0",
"react": "^18.3.1",
"tsup": "^8.3.5",
"typescript": "^5.7.2",
"vitest": "^2.1.8",
"typescript": "^5.6.3",
"vitest": "^2.1.5",
"vitest-monocart-coverage": "^2.1.2"
},
"publishConfig": {
Expand Down
Loading

1 comment on commit 40de92c

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Visual regression test result - success

Component Story Success Viewport MisMatch Percentage
components-button string-children phone 0.00%
components-button string-children tablet 0.09%
input-input default phone 0.00%
input-input default tablet 0.00%
input-input line phone 0.00%
input-input line tablet 0.00%
input-input box phone 0.00%
input-input box tablet 0.00%
input-textarea line phone 0.00%
input-textarea line tablet 0.00%
input-textarea box phone 0.00%
input-textarea box tablet 0.00%
typography-typography default phone 0.00%
typography-typography default tablet 0.00%

Please sign in to comment.