Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@henrybuilt/react-lib

Package Overview
Dependencies
Maintainers
5
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@henrybuilt/react-lib - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

dist/assets/asset-01ba4719

24

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc