-
Notifications
You must be signed in to change notification settings - Fork 109
chore: migrate to @rc-component namespace and update #294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
zombieJ
merged 3 commits into
react-component:master
from
EmilyyyLiu:useControlledState-use
Sep 16, 2025
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,14 @@ | ||
| { | ||
| "name": "rc-checkbox", | ||
| "version": "3.5.0", | ||
| "name": "@rc-component/checkbox", | ||
| "version": "1.0.0", | ||
| "description": "checkbox ui component for react", | ||
|
Comment on lines
+2
to
4
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion 首次发布 scoped 包建议显式声明为 public NPM 对作用域包默认私有。为避免首发失败或误发私有,建议添加 可在根级添加: "publishConfig": {
"access": "public"
}需要我顺手补上并校验发布流程脚本吗? 🤖 Prompt for AI Agents |
||
| "keywords": [ | ||
| "react", | ||
| "react-component", | ||
| "react-checkbox", | ||
| "checkbox" | ||
| ], | ||
| "homepage": "http://github.com/react-component/checkbox", | ||
| "homepage": "https://react-component.github.io/checkbox", | ||
| "bugs": { | ||
| "url": "http://github.com/react-component/checkbox/issues" | ||
| }, | ||
|
|
@@ -29,12 +29,13 @@ | |
| "build": "dumi build", | ||
| "compile": "father build && lessc assets/index.less assets/index.css", | ||
| "coverage": "jest --coverage", | ||
| "gh-pages": "npm run build && father doc deploy -d .docs", | ||
| "gh-pages": "npm run build && father doc deploy -d dist", | ||
| "lint": "eslint src/ --ext .tsx,.ts", | ||
| "prepare": "husky install && dumi setup", | ||
| "prepublishOnly": "npm run compile && np --yolo --no-publish", | ||
| "prepublishOnly": "npm run compile && rc-np", | ||
| "start": "dumi dev", | ||
| "test": "jest" | ||
| "test": "jest", | ||
| "tsc": "bunx tsc --noEmit" | ||
| }, | ||
| "lint-staged": { | ||
| "*.{js,jsx,less,md,json}": [ | ||
|
|
@@ -45,14 +46,14 @@ | |
| ] | ||
| }, | ||
| "dependencies": { | ||
| "@babel/runtime": "^7.10.1", | ||
| "classnames": "^2.3.2", | ||
| "rc-util": "^5.25.2" | ||
| "@rc-component/util": "^1.3.0", | ||
| "classnames": "^2.3.2" | ||
| }, | ||
| "devDependencies": { | ||
| "@rc-component/father-plugin": "^1.0.1", | ||
| "@testing-library/react": "^14.1.2 ", | ||
| "@rc-component/father-plugin": "^2.1.3", | ||
| "@rc-component/np": "^1.0.0", | ||
| "@testing-library/jest-dom": "^6.1.5", | ||
| "@testing-library/react": "^14.1.2", | ||
| "@testing-library/user-event": "^14.4.3", | ||
| "@types/classnames": "^2.3.1", | ||
| "@types/jest": "^29.2.4", | ||
|
|
@@ -71,7 +72,6 @@ | |
| "jest-environment-jsdom": "^29.3.1", | ||
| "less": "^4.2.0", | ||
| "lint-staged": "^15.1.0", | ||
| "np": "^9.0.0", | ||
| "react": "^18.2.0", | ||
| "react-dom": "^18.2.0", | ||
| "ts-node": "^10.9.1", | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
README 用法示例中的组件名大小写错误,当前会被当作原生标签渲染
应使用大写组件名并与默认导出同名,避免
<checkbox />被识别为自定义元素而非 React 组件。建议改成:
🤖 Prompt for AI Agents