@henrybuilt/react-lib
Advanced tools
Comparing version 1.0.7 to 1.0.8
{ | ||
"name": "@henrybuilt/react-lib", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "", | ||
@@ -27,10 +27,9 @@ "main": "dist/index.js", | ||
"homepage": "https://github.com/henrybuilt/hb-react-lib#readme", | ||
"dependencies": { | ||
"lodash": "^4.17.21", | ||
"moment": "^2.29.4", | ||
"react": "^18.2.0", | ||
"uuid": "^9.0.0" | ||
"peerDependencies": { | ||
"react": ">=16.9.0", | ||
"react-dom": ">=16.9.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.21.0", | ||
"@babel/eslint-parser": "^7.19.1", | ||
"@babel/plugin-proposal-class-properties": "^7.18.6", | ||
@@ -40,11 +39,20 @@ "@babel/plugin-transform-runtime": "^7.21.0", | ||
"@babel/preset-react": "^7.18.6", | ||
"@babel/runtime": "^7.21.0", | ||
"@rollup/plugin-babel": "^6.0.3", | ||
"@rollup/plugin-commonjs": "^24.0.1", | ||
"@rollup/plugin-image": "^3.0.2", | ||
"@rollup/plugin-node-resolve": "^15.0.1", | ||
"@svgr/rollup": "^6.5.1", | ||
"eslint": "^8.35.0", | ||
"eslint-plugin-react": "^7.32.2", | ||
"lodash": "^4.17.21", | ||
"rollup": "^3.17.2", | ||
"rollup-plugin-includepaths": "^0.2.4", | ||
"rollup-plugin-peer-deps-external": "^2.2.4" | ||
"rollup-plugin-peer-deps-external": "^2.2.4", | ||
"rollup-plugin-postcss": "^4.0.2" | ||
}, | ||
"dependencies": { | ||
"@babel/runtime": "^7.21.0", | ||
"rc-upload": "^4.3.4", | ||
"rc-util": "^5.29.2" | ||
} | ||
} |
@@ -11,1 +11,27 @@ # hb-react-lib | ||
4. `npm i` | ||
### Local development with `npm link` | ||
1. `cd ~/repos/hb-react-lib` | ||
2. `npm link` | ||
3. `npm run watch`, this will rebuild your ~/repos/hb-react-lib/dist as you make changes locally | ||
4. `rm -rf ./node_modules/react`, we remove the /react dir from ./node_modules to prevent conflicts with the target repo we wish to npm link with `hb-react-lib` | ||
4. `cd ~/repos/target-repo`, where "target-repo" is the repo in which you wish to use `@henrybuilt/react-lib` | ||
5. `npm link @henrybuilt/react-lib` | ||
### Troubleshooting | ||
1. If `npm run build` results in `TypeError: Unknown file extension ".json"`, try the following: | ||
* See this [stack-overflow](https://stackoverflow.com/questions/60205891/import-json-extension-in-es6-node-js-throws-an-error) for more information. | ||
* Run `node --experimental-json-modules ./node_modules/.bin/rollup -c` | ||
2. If using `npm link` and you get the following error message in the repo where you're linking `@henrybuilt/react-lib`, | ||
> Uncaught TypeError: Cannot read properties of null (reading 'useState') | ||
run the following commands in `hb-react-lib` directory: | ||
a. `rm -rf ./node_modules/react` | ||
b. `rm -rf ./node_modules/react-dom` | ||
This can occur if you recently ran `npm i` inside `hb-react-lib`. |
@@ -1,5 +0,42 @@ | ||
import Button from './components/button'; | ||
import {CheckboxGroup, Checkbox} from './components/checkbox'; | ||
import {RadioGroup, Radio} from './components/radio'; | ||
import AddButton from './components/button/add-button'; | ||
import AppHeader from './components/app-header'; | ||
import Button from './components/button/button'; | ||
import CheckableTag from './components/tag/checkable-tag'; | ||
import CollapsibleHeader from './components/collapsible-header'; | ||
import Dropdown from './components/dropdown'; | ||
import Icon from './components/icon'; | ||
import Image from './components/image'; | ||
import K from './k'; | ||
import NavMenu from './components/nav-menu'; | ||
import OverlayUpload from './components/upload/overlayUpload'; | ||
import Popup from './components/popup'; | ||
import SearchBar from './components/search-bar'; | ||
import Tag from './components/tag/tag'; | ||
import Upload from './components/upload/upload'; | ||
import './index.css'; | ||
//HINT Please make sure this list is always sorted alphabetically | ||
export { | ||
Button | ||
}; | ||
AddButton, | ||
AppHeader, | ||
Button, | ||
CheckableTag, | ||
Checkbox, | ||
CheckboxGroup, | ||
CollapsibleHeader, | ||
Dropdown, | ||
Icon, | ||
Image, | ||
K, | ||
NavMenu, | ||
OverlayUpload, | ||
Popup, | ||
Radio, | ||
RadioGroup, | ||
SearchBar, | ||
Tag, | ||
Upload, | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3737834
61
40872
36
5
18
15
5
+ Added@babel/runtime@^7.21.0
+ Addedrc-upload@^4.3.4
+ Addedrc-util@^5.29.2
+ Added@babel/runtime@7.26.0(transitive)
+ Addedclassnames@2.5.1(transitive)
+ Addedrc-upload@4.8.1(transitive)
+ Addedrc-util@5.44.3(transitive)
+ Addedreact@19.0.0(transitive)
+ Addedreact-dom@19.0.0(transitive)
+ Addedreact-is@18.3.1(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)
+ Addedscheduler@0.25.0(transitive)
- Removedlodash@^4.17.21
- Removedmoment@^2.29.4
- Removedreact@^18.2.0
- Removeduuid@^9.0.0
- Removedjs-tokens@4.0.0(transitive)
- Removedlodash@4.17.21(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedmoment@2.30.1(transitive)
- Removedreact@18.3.1(transitive)
- Removeduuid@9.0.1(transitive)