Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .changeset/modern-parts-call.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
"@cutting/react-hook-form-components": minor
"@cutting/use-get-parent-size": minor
"@cutting/component-library": minor
"@cutting/use-shortcuts": minor
"@cutting/useful-types": minor
"@cutting/frontend-support": minor
"@cutting/use-mathjax": minor
"@cutting/devtools": minor
"@cutting/markdown": minor
"@cutting/tsconfig": minor
"@cutting/hooks": minor
"@cutting/website": minor
"@cutting/svg": minor
---

introduce new jsx.d.ts to @cutting/useful-types
10 changes: 7 additions & 3 deletions apps/frontendsupport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@
"katex": "^0.16.21",
"mdx-bundler": "^10.1.0",
"micromark-util-chunked": "^2.0.1",
"react": "^19.0.0",
"react-calendly": "^4.3.1",
"react-device-detect": "^2.2.3",
"react-dom": "^19.0.0",
"react-hook-form": "7.54.2",
"react-is": "^19.0.0",
"reading-time": "^1.5.0",
Expand All @@ -60,7 +58,7 @@
"remark-breaks": "^4.0.0",
"remark-gfm": "^4.0.1",
"remark-math": "^6.0.0",
"remark-mdx-images": "^3.0.0",
"rehype-mdx-import-media": "^1.2.0",
"rehype-slug": "^6.0.0",
"resize-observer-polyfill": "^1.5.1",
"source-map-support": "^0.5.21",
Expand Down Expand Up @@ -92,12 +90,18 @@
"js-yaml": "^4.1.0",
"npm-run-all2": "^7.0.2",
"prettier": "3.5.3",
"react": "19.0.0",
"react-dom": "19.0.0",
"toml": "^3.0.0",
"tsx": "^4.19.3",
"uuid": "^11.1.0",
"vite": "6.2.0",
"vite-tsconfig-paths": "^5.1.4"
},
"peerDependencies": {
"react": "19.0.0",
"react-dom": "19.0.0"
},
"files": [
"public",
"public/build",
Expand Down
8 changes: 6 additions & 2 deletions apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@
"nocache": "4.0.0",
"puppeteer": "^24.3.1",
"rc-slider": "^11.1.8",
"react": "19.0.0",
"react-dom": "19.0.0",
"react-helmet": "6.1.0",
"react-hook-form": "7.54.2",
"react-is": "^19.0.0",
Expand Down Expand Up @@ -102,6 +100,8 @@
"copyfiles": "2.4.1",
"install": "0.13.0",
"nodemon": "3.1.9",
"react": "19.0.0",
"react-dom": "19.0.0",
"rimraf": "6.0.1",
"tsx": "^4.19.3",
"vite": "6.2.0",
Expand All @@ -111,6 +111,10 @@
"vite-plugin-svgr": "4.3.0",
"vite-tsconfig-paths": "5.1.4"
},
"peerDependencies": {
"react": "19.0.0",
"react-dom": "19.0.0"
},
"volta": {
"extends": "../../package.json"
}
Expand Down
4 changes: 0 additions & 4 deletions apps/website/src/components/Footer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
/* eslint-disable @typescript-eslint/ban-ts-comment */
import { Column, Columns, Inline, PageBlock, Stack, Text, TextLink } from '@cutting/component-library';

// @ts-expect-error
import cow from '~/assets/images/cow-logo-small2.png';
// @ts-expect-error
import github from '~/assets/images/github.png';
// @ts-expect-error
import twitter from '~/assets/images/twitter.png';
import { footerPages } from '~/routes';

Expand Down
3 changes: 0 additions & 3 deletions apps/website/src/components/Nav/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
/* eslint-disable @typescript-eslint/ban-ts-comment */
import { Box, Heading, Nav, NavItem, NavItems, ResponsiveImage } from '@cutting/component-library';
import cs from 'classnames';
import { useCallback, useState } from 'react';
import { NavLink } from 'react-router-dom';

// @ts-expect-error
import cow from '~/assets/images/cow-logo.png';
// @ts-expect-error
import cowMobile from '~/assets/images/cow-mobile.png';
import { bannerPages } from '~/routes';
import * as urls from '~/urls';
Expand Down
2 changes: 0 additions & 2 deletions apps/website/src/pages/OSS/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { Box, Heading, Inline, PageBlock, Stack, Text, TextLink, Tiles } from '@cutting/component-library';

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
import github from '~/assets/images/github-medium.png';
import { ApplicationLayout } from '~/layouts/ApplicationLayout';

Expand Down
2 changes: 0 additions & 2 deletions apps/website/src/pages/PrivacyPolicy/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { ApplicationLayout } from '~/layouts/ApplicationLayout';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
import Markdown from '~/markdown/privacy.mdx';

export function PrivacyPolicy(): JSX.Element {
Expand Down
2 changes: 0 additions & 2 deletions apps/website/src/pages/TermsOfService/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { ApplicationLayout } from '~/layouts/ApplicationLayout';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
import Markdown from '~/markdown/terms-of-service.mdx';

export function TermsOfService(): JSX.Element {
Expand Down
2 changes: 1 addition & 1 deletion apps/website/tsconfig.dist.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"server.mts",
"../../node_modules/@types/d3/index.d.ts",
"node_modules/vite/types/*",
"node_modules/@cutting/useful-types/global.d.ts"
"../../node_modules/@types/mdx/index.d.ts"
],
"exclude": ["pruned"],
"references": [
Expand Down
5 changes: 3 additions & 2 deletions apps/website/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"noEmit": true,
"paths": {
"~/*": ["src/*"]
}
},
"types": ["node", "@cutting/useful-types", "@cutting/useful-types/jsx"]
},
"include": [
"src/**/*.ts",
Expand All @@ -20,7 +21,7 @@
"node_modules/@floating-ui/dom/src/types.d.ts",
"node_modules/@floating-ui/react-dom/src/types.d.ts",
"node_modules/@floating-ui/react/src/types.d.ts",
"node_modules/@cutting/useful-types/global.d.ts"
"../../node_modules/@types/mdx/index.d.ts"
],
"exclude": ["src/**/*.test.ts", "src/**/*.test.tsx", "server.mts", "pruned"]
}
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
"prerelease": "pnpm clean && pnpm install --no-frozen-lockfile && pnpm run build",
"release": "pnpm run prerelease && changeset publish && git push --follow-tags && git status && pnpm -r publish"
},
"dependencies": {
"react": "19.0.0",
"react-dom": "19.0.0"
},
"devDependencies": {
"@changesets/cli": "2.28.1",
"@cutting/assert": "workspace:*",
Expand Down Expand Up @@ -78,9 +82,10 @@
},
"pnpm": {
"overrides": {
"eslint": "^9.21.0",
"@types/react": "19.0.10",
"@types/react-dom": "19.0.4",
"@typescript-eslint/parser": "8.26.0",
"gsap": "npm:@gsap/shockingly@^3.12.5"
"gsap": "npm:@gsap/shockingly@^3.12.7"
},
"updateConfig": {
"ignoreDependencies": [
Expand Down
5 changes: 2 additions & 3 deletions packages/component-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"@testing-library/react": "16.2.0",
"@types/babel__core": "7.20.5",
"@types/dedent": "0.7.2",
"@types/mdx-js__react": "2.0.0",
"@types/react": "19.0.10",
"@types/react-dom": "19.0.4",
"@vanilla-extract/css": "^1.17.1",
Expand All @@ -65,8 +64,8 @@
"@vanilla-extract/sprinkles": "1.6.3",
"@vanilla-extract/css-utils": "^0.1.4",
"@vanilla-extract/dynamic": "^2.1.2",
"react": ">= 19.0.0",
"react-dom": ">= 19.0.0",
"react": "19.0.0",
"react-dom": "19.0.0",
"react-router": ">= 7.2.0",
"react-is": ">= 18.3.1"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/component-library/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"noEmit": true,
"paths": {
"~/*": ["src/*"]
}
},
"types": ["node", "@cutting/useful-types", "@cutting/useful-types/jsx"]
},
"include": [
"src/**/*.ts",
Expand Down
10 changes: 7 additions & 3 deletions packages/devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@
"postcss-url": "10.1.3",
"prettier": "3.5.3",
"raf": "3.4.1",
"react": "19.0.0",
"react-dom": "19.0.0",
"rollup": "4.34.9",
"rollup-plugin-analyzer": "^4.0.0",
"rollup-plugin-inject-process-env": "1.3.1",
Expand Down Expand Up @@ -99,7 +97,13 @@
"eslint-plugin-jsx-a11y": "6.10.2",
"eslint-plugin-prettier": "5.2.3",
"eslint-plugin-react": "7.37.4",
"eslint-plugin-react-hooks": "5.2.0"
"eslint-plugin-react-hooks": "5.2.0",
"react": "19.0.0",
"react-dom": "19.0.0"
},
"peerDependencies": {
"react": "19.0.0",
"react-dom": "19.0.0"
},
"volta": {
"extends": "../../package.json"
Expand Down
4 changes: 2 additions & 2 deletions packages/hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"react-dom": "19.0.0"
},
"peerDependencies": {
"react": ">= 19.0.0",
"react-dom": ">= 19.0.0"
"react": "19.0.0",
"react-dom": "19.0.0"
},
"volta": {
"extends": "../../package.json"
Expand Down
2 changes: 1 addition & 1 deletion packages/markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"remark-breaks": "^4.0.0",
"remark-gfm": "^4.0.1",
"remark-math": "^6.0.0",
"remark-mdx-images": "^3.0.0",
"rehype-mdx-import-media": "^1.2.0",
"rehype-preset-minify": "^7.0.1",
"rehype-raw": "^7.0.0",
"rehype-slug": "^6.0.0",
Expand Down
1 change: 0 additions & 1 deletion packages/markdown/src/bundleMarkdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import rehypePresetMinify from 'rehype-preset-minify';
import rehypePrismPlus from 'rehype-prism-plus';
import rehypeRaw from 'rehype-raw';
import rehypeSlug from 'rehype-slug';
// import remarkMdxImages from 'remark-mdx-images';
import remarkBreaks from 'remark-breaks';
import remarkGfm from 'remark-gfm';
import remarkMath from 'remark-math';
Expand Down
3 changes: 2 additions & 1 deletion packages/react-hook-form-components/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"extends": "../../tsconfig-base.json",
"compilerOptions": {
"baseUrl": "./",
"noEmit": true
"noEmit": true,
"types": ["node", "@cutting/useful-types", "@cutting/useful-types/jsx"]
},
"include": ["src/**/*.ts", "src/**/*.tsx"],
"references": [{ "path": "../util/tsconfig.dist.json" }]
Expand Down
4 changes: 2 additions & 2 deletions packages/svg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"react-dom": "19.0.0"
},
"peerDependencies": {
"react": ">= 19.0.0",
"react-dom": ">= 19.0.0"
"react": "19.0.0",
"react-dom": "19.0.0"
},
"scripts": {
"build": "NODE_ENV=production devtools rollup",
Expand Down
3 changes: 2 additions & 1 deletion packages/svg/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"compilerOptions": {
"baseUrl": "./",
"rootDirs": ["src", "demo"],
"noEmit": true
"noEmit": true,
"types": ["node", "@cutting/useful-types", "@cutting/useful-types/jsx"]
},
"references": [
{ "path": "../util/tsconfig.dist.json" },
Expand Down
3 changes: 1 addition & 2 deletions packages/tsconfig/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"declarationMap": true,
"sourceMap": true,
"noFallthroughCasesInSwitch": true,
"lib": ["es5", "es2015", "es2016", "ES2019", "ES2022", "ES2023", "dom"],
"types": ["node", "@cutting/useful-types"]
"lib": ["es5", "es2015", "es2016", "ES2019", "ES2022", "ES2023", "dom"]
}
}
4 changes: 2 additions & 2 deletions packages/use-get-parent-size/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"three": "^0.174.0"
},
"peerDependencies": {
"react": ">= 19.0.0",
"react-dom": ">= 19.0.0",
"react": "19.0.0",
"react-dom": "19.0.0",
"resize-observer-polyfill": ">= 1.5.1",
"use-debounce": ">= 10.0.3"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/use-mathjax/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"react-syntax-highlighter": "15.6.1"
},
"peerDependencies": {
"react": ">= 19.0.0",
"react-dom": ">= 19.0.0"
"react": "19.0.0",
"react-dom": "19.0.0"
},
"keywords": [
"hotkeys",
Expand Down
7 changes: 3 additions & 4 deletions packages/use-mathjax/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
"extends": "../../tsconfig-base.json",
"compilerOptions": {
"baseUrl": "./",
"noEmit": true
"noEmit": true,
"types": ["node", "@cutting/useful-types", "@cutting/useful-types/jsx"]
},
"include": ["src/**/*.ts", "src/**/*.tsx"],
"references": [
{ "path": "../util/tsconfig.dist.json" }
]
"references": [{ "path": "../util/tsconfig.dist.json" }]
}
4 changes: 2 additions & 2 deletions packages/use-shortcuts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
"react-dom": "19.0.0"
},
"peerDependencies": {
"react": ">= 19.0.0",
"react-dom": ">= 19.0.0"
"react": "19.0.0",
"react-dom": "19.0.0"
},
"volta": {
"extends": "../../package.json"
Expand Down
9 changes: 4 additions & 5 deletions packages/use-shortcuts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
"extends": "../../tsconfig-base.json",
"compilerOptions": {
"baseUrl": "./",
"noEmit": true
"noEmit": true,
"types": ["node", "@cutting/useful-types", "@cutting/useful-types/jsx"]
},
"include": ["src/**/*.ts", "src/**/*.tsx"],
"references": [
{ "path": "../util/tsconfig.dist.json" }
]
}
"references": [{ "path": "../util/tsconfig.dist.json" }]
}
Loading
Loading