{"_id":"@brandensilva/react-use-hubspot-form","_rev":"1-17e681323d6791138fd9f94658a9452d","name":"@brandensilva/react-use-hubspot-form","dist-tags":{"latest":"1.3.1"},"versions":{"1.3.1":{"name":"@brandensilva/react-use-hubspot-form","version":"1.3.1","description":"Embed HubSpot forms into your React components using hooks! Works with Create React App, Gatsby and other platforms.","main":"build/main/index.js","typings":"build/main/index.d.ts","types":"build/main/index.d.ts","module":"build/module/index.js","repository":{"type":"git","url":"git+https://github.com/brandensilva/react-use-hubspot-form.git"},"license":"MIT","keywords":["react","hook","hubspot","gatsby","form"],"scripts":{"describe":"npm-scripts-info","build":"run-s clean && run-p build:rollup","build:main":"tsc -p tsconfig.json","build:module":"tsc -p tsconfig.module.json","build:rollup":"rollup -c","fix":"run-s fix:*","fix:prettier":"prettier \"src/**/*.ts\" --write","fix:tslint":"tslint --fix --project .","test":"run-s build test:*","test:lint":"tslint --project . && prettier \"src/**/*.ts\" --list-different","watch":"run-s clean build:main && run-p \"build:main -- -w\" \"test:unit -- --watch\"","version":"standard-version","reset":"git clean -dfx && git reset --hard && yarn","clean":"trash build test","prepare-release":"run-s reset test version"},"scripts-info":{"info":"Display information about the package scripts","build":"Clean and rebuild the project","fix":"Try to automatically fix any linting problems","test":"Lint and unit test the project","watch":"Watch and rebuild the project on save, then rerun relevant tests","cov":"Rebuild, run tests, then create and open the coverage report","version":"Bump package.json version, update CHANGELOG.md, tag release","reset":"Delete all untracked files and reset the repo to the last commit","prepare-release":"One-step: clean, build, test, and prep a release"},"engines":{"node":">=10.16"},"dependencies":{},"devDependencies":{"@bitjson/npm-scripts-info":"^1.0.0","@bitjson/typedoc":"^0.15.0-0","@istanbuljs/nyc-config-typescript":"^0.1.3","@types/react":"^17.0.2","@types/react-dom":"^17.0.1","ava":"2.4.0","codecov":"^3.5.0","cz-conventional-changelog":"^3.0.2","husky":"^3.0.9","lint-staged":"^9.4.2","npm-run-all":"^4.1.5","nyc":"^14.1.1","open-cli":"^5.0.0","prettier":"^1.18.2","pretty-quick":"^2.0.0","react":"^17.0.1","react-dom":"^17.0.1","react-scroll":"^1.7.14","rollup":"^1.26.2","rollup-plugin-typescript2":"^0.25.2","standard-version":"^7.0.0","trash-cli":"^3.0.0","tslint":"^5.18.0","tslint-config-prettier":"^1.18.0","tslint-immutable":"^6.0.1","typescript":"^3.5.3"},"peerDependencies":{"react":"^17.0.1","react-dom":"^17.0.1"},"ava":{"failFast":true,"files":["build/main/**/*.spec.js"],"sources":["build/main/**/*.js"]},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"prettier":{"singleQuote":true},"nyc":{"extends":"@istanbuljs/nyc-config-typescript","exclude":["**/*.spec.js"]},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"gitHead":"ffc3a1b0ea884945027c3eb62a2a66a18da4aca5","bugs":{"url":"https://github.com/brandensilva/react-use-hubspot-form/issues"},"homepage":"https://github.com/brandensilva/react-use-hubspot-form#readme","_id":"@brandensilva/react-use-hubspot-form@1.3.1","_nodeVersion":"12.21.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-tYeT7nVDD6tvw5jjiCD3WNcPyXv66ErVvW2b/VksNeeojQ1Jr+hmEgEdW007mf/FcIg9QzjZ0Qn5INbnV2vp8g==","shasum":"c791a1726849440e8548e640a0111618e85d8ad2","tarball":"https://registry.npmjs.org/@brandensilva/react-use-hubspot-form/-/react-use-hubspot-form-1.3.1.tgz","fileCount":15,"unpackedSize":23263,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQR/wCRA9TVsSAnZWagAALmYP/0Y3H0rOe402KKJICIRg\nWZaTuJ3AITLb7oO67CdRDRnWUBRIlJM+WC2lud1/Vo3BNtbFYmJ9/U3thKpM\nycCZsyN7zA8cKG7SiFZSQAOP+hCwMG87G4X6jFWyRnZtQVI/Va8RrJA3PnDV\njbA/vDjdoz/CkPJJd2CdR2JmVN0eu6Ufy2Rjy/c56lW18hiMtVxGywizLkr+\n4TGKrh/b4WpPmFJBL0HOSx8ajPElqM9JlUejMPqKXIWYgJxfnzSo9w8IKg1r\nvyMBqvlW0/27miSU0Kjf6fKrk+RXrQkao1A+uGkK4utdR0C867f7PuUQQSnc\ndARA+8tj/Il6Z7tY53cWUN2nOywoOyRpWPsLkAt+TYU2CVJggKBtdnhdhkKM\n3iIgVSMHye/dN0mja6iLUKrjY7zkuYrH5Fc6uPIn8PaAda1IQsoOvrd/mjRx\nOtNbsLih4c37xhK+GxBu7eyO2utl4HTULG0Vzh8T+wQx3W01o8EtE8ss2F5C\nRBM+oEnOjtWSTkGZHNc6fb+BVe1/rboV6flInsss3yVob+r2npt78aC1czD6\n33vnZ3urOYHEYPQNgM85TQZT0h0oLehvk5giqv4LERaXGz19GvZgflKGfABF\nGzjqGOh7N7xNebH0CTcEw7ca/cDYI0Fvobj9NVBIMtBSS8dbCUdERX7A1LnQ\n/Rec\r\n=3Ewc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHPYJLlMV8qkcHKaCg1xFbgzAO+LIiOzHPl29vscu/okAiEAwREP9bc/mfchaxigCBXOsFA4/ska29l1IrYoZSNYe8U="}]},"_npmUser":{"name":"brandensilva","email":"qksilva@gmail.com"},"directories":{},"maintainers":[{"name":"brandensilva","email":"qksilva@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-use-hubspot-form_1.3.1_1614880752501_0.4979089542430182"},"_hasShrinkwrap":false}},"time":{"created":"2021-03-04T17:59:12.445Z","1.3.1":"2021-03-04T17:59:12.661Z","modified":"2022-04-04T20:22:20.761Z"},"maintainers":[{"name":"brandensilva","email":"qksilva@gmail.com"}],"description":"Embed HubSpot forms into your React components using hooks! Works with Create React App, Gatsby and other platforms.","homepage":"https://github.com/brandensilva/react-use-hubspot-form#readme","keywords":["react","hook","hubspot","gatsby","form"],"repository":{"type":"git","url":"git+https://github.com/brandensilva/react-use-hubspot-form.git"},"bugs":{"url":"https://github.com/brandensilva/react-use-hubspot-form/issues"},"license":"MIT","readme":"# React Use HubSpot Form Embed\n\n[![npm (scoped)](https://img.shields.io/npm/v/@brandensilva/react-use-hubspot-form?style=flat-square)](https://www.npmjs.com/package/@brandensilva/react-use-hubspot-form)\n[![Bundle Size](https://img.shields.io/bundlephobia/min/@brandensilva/react-use-hubspot-form?style=flat-square)](https://bundlephobia.com/result?p=@brandensilva/react-use-hubspot-form)\n![License](https://img.shields.io/npm/l/@brandensilva/react-use-hubspot-form?style=flat-square)\n\nEmbed HubSpot forms into your React components using hooks! Works with Create React App, Gatsby and other platforms.\n\n## Install\n\n```\n$ npm install --save @brandensilva/react-use-hubspot-form\n```\n\n```\n$ yarn add @brandensilva/react-use-hubspot-form\n```\n\n## Usage\n\n```TypeScript\nimport React from 'react';\n\nimport { useHubspotForm } from '@brandensilva/react-use-hubspot-form';\n\nconst MyPage = () => {\n    const { loaded, error, formCreated } = useHubspotForm({\n        portalId: 'XXXXXXX',\n        formId: 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX',\n        target: '#my-hubspot-form'\n    });\n\n    return (\n        <div>\n            <h1>Embed Form Below</h1>\n            <div id=\"my-hubspot-form\"></div>\n        </div>\n    )\n}\n\n```\n","readmeFilename":"README.md"}