{"_id":"@atelio/embedded-components","_rev":"9-96e878d94f88dba5bac150a015561e0d","name":"@atelio/embedded-components","description":"A collection of components for integrating with Atelio embedded finance products.","dist-tags":{"latest":"0.0.13"},"versions":{"0.0.1":{"name":"@atelio/embedded-components","version":"0.0.1","author":{"name":"Atelio by FIS"},"license":"ISC","_id":"@atelio/embedded-components@0.0.1","maintainers":[{"name":"luca-bond","email":"luca.masters@atelio.com"}],"dist":{"shasum":"f98735655804fccb8b78d6101744cfb875412e05","tarball":"https://registry.npmjs.org/@atelio/embedded-components/-/embedded-components-0.0.1.tgz","fileCount":3,"integrity":"sha512-VXbb42CM0cHu+XC7csZEYZy+KocxaabNmqWx1Ji42n3pQsspIZI/UoRETi422t6POoUivGjNG06K0SI3ox7LzQ==","signatures":[{"sig":"MEQCIHm13/8c5kwkJ2MaChCi4g8ycRwWGp7XvdisoBgaeXFDAiBdFmOEgJz6d9eJxXgJFkv4H0dd2K4Cpva+GwaIRao73Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1130},"main":"embedded-components.ts","scripts":{"test":"echo \"TODO: Write tests.\" && exit 0"},"_npmUser":{"name":"luca-bond","email":"luca.masters@atelio.com"},"_npmVersion":"10.5.0","description":"A collection of components for integrating with Atelio embedded finance products.","directories":{},"_nodeVersion":"18.20.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/embedded-components_0.0.1_1715708974174_0.8404640677887627","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@atelio/embedded-components","version":"0.0.2","author":{"name":"Atelio by FIS"},"license":"ISC","_id":"@atelio/embedded-components@0.0.2","maintainers":[{"name":"luca-bond","email":"luca.masters@atelio.com"}],"dist":{"shasum":"4e6ffade643ddaef8d1350bf59b275c9393c6a6c","tarball":"https://registry.npmjs.org/@atelio/embedded-components/-/embedded-components-0.0.2.tgz","fileCount":4,"integrity":"sha512-yM7/a6nrrre7XwIpeCoEKelfFkDezVWOq+/dY8T7ZjvGKTWk2fwyH11hDVpNsjs29Mj32dI7q5z4y6Sub327sg==","signatures":[{"sig":"MEYCIQCmXNugEQWOx3Er7z7t3aUg9hxoynAbY3gadiWsNI9YAwIhAON41I+ayL5nunn1fIV3XhcONCW4HQv8TQUtaLYJ/5ob","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1192},"main":"embedded-components.ts","scripts":{"test":"echo \"TODO: Write tests.\" && exit 0"},"_npmUser":{"name":"luca-bond","email":"luca.masters@atelio.com"},"_npmVersion":"10.5.0","description":"A collection of components for integrating with Atelio embedded finance products.","directories":{},"_nodeVersion":"18.20.0","dependencies":{"react":"^18.2.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/embedded-components_0.0.2_1715724363048_0.6582335637325649","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@atelio/embedded-components","version":"0.0.3","author":{"name":"Atelio by FIS"},"license":"ISC","_id":"@atelio/embedded-components@0.0.3","maintainers":[{"name":"luca-bond","email":"luca.masters@atelio.com"}],"dist":{"shasum":"217133b66e4a6e6158f28ad718508881f39d6a91","tarball":"https://registry.npmjs.org/@atelio/embedded-components/-/embedded-components-0.0.3.tgz","fileCount":5,"integrity":"sha512-YoX3uW4pwZsvwnG4ArPSo8b3UtIqP3WTNFSGUYPo3mrg4FMz8N0ZrKsYJE+Ye9MmT0LfV9hM6sXeV45RstisfQ==","signatures":[{"sig":"MEUCIQCfqHFUk8alDwS9btYmf1JpFuUSdTsJg1DsODT/q81RMQIgOGn+tPQ/0bYOmRdIbZ3kgWevesVYCrnZ6v8KPhtmc9A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1142},"main":"embedded-components.ts","scripts":{"test":"echo \"TODO: Write tests.\" && exit 0"},"_npmUser":{"name":"luca-bond","email":"luca.masters@atelio.com"},"_npmVersion":"10.5.0","description":"A collection of components for integrating with Atelio embedded finance products.","directories":{},"_nodeVersion":"18.20.0","dependencies":{"react":"^18.2.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/embedded-components_0.0.3_1715805888662_0.09055346915498097","host":"s3://npm-registry-packages"}},"0.0.5":{"name":"@atelio/embedded-components","version":"0.0.5","author":{"name":"Atelio by FIS"},"license":"ISC","_id":"@atelio/embedded-components@0.0.5","maintainers":[{"name":"luca-bond","email":"luca.masters@atelio.com"}],"dist":{"shasum":"c008c66b0bfdb9aacba861bd5f97e71f256a8254","tarball":"https://registry.npmjs.org/@atelio/embedded-components/-/embedded-components-0.0.5.tgz","fileCount":7,"integrity":"sha512-vALOOE2PT/89vhXhb1baT48rSwnDzIvicqnMja0UPhMQ6baYAETSza0Q13DpuYoCW4aswW3AsHajVz3iKAS8gg==","signatures":[{"sig":"MEUCIQD9VPs8SVogLpnOoUCQUWNAu6KClsqqvM+e4YgNjiBuNAIgbdwfqsGtLGtcxYdEH8BVk/2qWaQQAczpbICvHbh5ZEw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9370},"main":"embedded-components.ts","gitHead":"2bf64c090321e8f5d8b1507c1715f3efdb6512da","scripts":{"test":"echo \"TODO: Write tests.\" && exit 0"},"_npmUser":{"name":"luca-bond","email":"luca.masters@atelio.com"},"_npmVersion":"10.5.0","description":"A collection of components for integrating with Atelio embedded finance products.","directories":{},"_nodeVersion":"18.20.0","dependencies":{"react":"^18.2.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.2.0","@eslint/js":"^9.2.0","@types/react":"^18.3.2","typescript-eslint":"^7.9.0","eslint-plugin-react":"^7.34.1","eslint-plugin-unicorn":"^53.0.0"},"_npmOperationalInternal":{"tmp":"tmp/embedded-components_0.0.5_1716321323810_0.428927797644322","host":"s3://npm-registry-packages"}},"0.0.6":{"name":"@atelio/embedded-components","version":"0.0.6","author":{"name":"Atelio by FIS"},"license":"ISC","_id":"@atelio/embedded-components@0.0.6","maintainers":[{"name":"luca-bond","email":"luca.masters@atelio.com"}],"dist":{"shasum":"8d545b180c146fab7d05f540cc4e9ea06e011cef","tarball":"https://registry.npmjs.org/@atelio/embedded-components/-/embedded-components-0.0.6.tgz","fileCount":7,"integrity":"sha512-1x6mHkkbsqOhLOfXDieeGI8qqnan+QOXvfFunqNMDmd4GaJOgKHzx2YESN+Sfa0xx97EMvhDj+UqJYSLLiWuEQ==","signatures":[{"sig":"MEYCIQDg9Yo+ftj95b8HxJc819GWKqthk4wZ/iJmi33plQ34XQIhANeqYlBUwHeHUi/6YaAcYI0FO4A4EXc+wbbH5qjebS/O","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9483},"main":"embedded-components.ts","gitHead":"50e7a61183d1efba2c2495bcafc1a28bcee97b3b","scripts":{"test":"echo \"TODO: Write tests.\" && exit 0"},"_npmUser":{"name":"luca-bond","email":"luca.masters@atelio.com"},"_npmVersion":"10.5.0","description":"A collection of components for integrating with Atelio embedded finance products.","directories":{},"_nodeVersion":"18.20.0","dependencies":{"react":"^18.2.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.2.0","@eslint/js":"^9.2.0","@types/react":"^18.3.2","typescript-eslint":"^7.9.0","eslint-plugin-react":"^7.34.1","eslint-plugin-unicorn":"^53.0.0"},"_npmOperationalInternal":{"tmp":"tmp/embedded-components_0.0.6_1716582451148_0.867382559749698","host":"s3://npm-registry-packages"}},"0.0.9":{"name":"@atelio/embedded-components","version":"0.0.9","author":{"name":"Atelio by FIS"},"license":"ISC","_id":"@atelio/embedded-components@0.0.9","maintainers":[{"name":"marksarkisatelio","email":"mark.sarkis@bond.tech"},{"name":"chris.elko","email":"chris.elko@atelio.com"},{"name":"luca-bond","email":"luca.masters@atelio.com"}],"dist":{"shasum":"b0c01980f9150cb48bf6d3d8931c2e04793881f6","tarball":"https://registry.npmjs.org/@atelio/embedded-components/-/embedded-components-0.0.9.tgz","fileCount":6,"integrity":"sha512-GqLqhp4JITOLI3Zft6+Vily3EoCyBG2UKemKWVJ28KJh4/CsqHqJuVZaJsb/L2lspJwoX8ZlF525k+bG8T6UrQ==","signatures":[{"sig":"MEUCIEfq3n53H++VSjua6wbjEtoDUqiy+WeK63QAoCcMEFTpAiEA0IbiuSjXi3H8yCKCzPQ5W8tZaub3yYaraJMh9aEDdMs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4445},"main":"dist/embedded-components.min.js","types":"dist/embedded-components.d.ts","gitHead":"fab55f13c50476d7d0cd633cd75824051d007982","scripts":{"test":"echo \"TODO: Write tests.\" && exit 0","build":"pnpm tsc","minify":"uglifyjs dist/embedded-components.js -o dist/embedded-components.min.js --source-map","prepare":"npm version patch && npm run build && npm run minify"},"_npmUser":{"name":"marksarkisatelio","email":"mark.sarkis@bond.tech"},"_npmVersion":"10.5.0","description":"A collection of components for integrating with Atelio embedded finance products.","directories":{},"_nodeVersion":"18.20.0","dependencies":{"react":"^18.2.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.2.0","uglify-js":"^3.17.4","@eslint/js":"^9.2.0","typescript":"^5.4.5","@types/react":"^18.3.2","typescript-eslint":"^7.9.0","eslint-plugin-react":"^7.34.1","eslint-plugin-unicorn":"^53.0.0"},"_npmOperationalInternal":{"tmp":"tmp/embedded-components_0.0.9_1717712127382_0.8353274578425698","host":"s3://npm-registry-packages"}},"0.0.11":{"name":"@atelio/embedded-components","version":"0.0.11","author":{"name":"Atelio by FIS"},"license":"ISC","_id":"@atelio/embedded-components@0.0.11","maintainers":[{"name":"marksarkisatelio","email":"mark.sarkis@bond.tech"},{"name":"chris.elko","email":"chris.elko@atelio.com"},{"name":"luca-bond","email":"luca.masters@atelio.com"}],"dist":{"shasum":"92967bbf924bc654cb87006167bcc1ccf54582ea","tarball":"https://registry.npmjs.org/@atelio/embedded-components/-/embedded-components-0.0.11.tgz","fileCount":8,"integrity":"sha512-AYqxkQ8LpAvUA9izbUwa6b094vjbq4tFJsjnkrRJmViSie3BpghrgZLAN4dMqNxO/fulW3TlBNwR7NkwFXeZdw==","signatures":[{"sig":"MEUCIGMsFzFbznPinyiqaqgHWJAYuhZMTISkHvmtb0d/c2NMAiEApSFMtQPHoqUjR3wDUvLg6K817oJSPs+eKFHFOe+Te5g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6746},"main":"dist/embedded-components.min.js","types":"dist/embedded-components.d.ts","gitHead":"522c96fbce180db0eefcedf3af74c10245552deb","scripts":{"test":"echo \"TODO: Write tests.\" && exit 0","build":"pnpm tsc","minify":"uglifyjs dist/embedded-components.js -o dist/embedded-components.min.js --source-map","prepare":"npm version patch && npm run build && npm run minify"},"_npmUser":{"name":"marksarkisatelio","email":"mark.sarkis@bond.tech"},"_npmVersion":"10.5.0","description":"A collection of components for integrating with Atelio embedded finance products.","directories":{},"_nodeVersion":"18.20.0","dependencies":{"react":"^18.2.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.2.0","uglify-js":"^3.17.4","@eslint/js":"^9.2.0","typescript":"^5.4.5","@types/react":"^18.3.2","typescript-eslint":"^7.9.0","eslint-plugin-react":"^7.34.1","eslint-plugin-unicorn":"^53.0.0"},"_npmOperationalInternal":{"tmp":"tmp/embedded-components_0.0.11_1717713971805_0.8553276734580089","host":"s3://npm-registry-packages"}},"0.0.13":{"name":"@atelio/embedded-components","version":"0.0.13","description":"A collection of components for integrating with Atelio embedded finance products.","main":"dist/embedded-components.min.js","types":"dist/embedded-components.d.ts","scripts":{"build":"pnpm tsc","minify":"uglifyjs dist/embedded-components.js -o dist/embedded-components.min.js --source-map","prepare":"npm version patch && npm run build && npm run minify","test":"echo \"TODO: Write tests.\" && exit 0"},"author":{"name":"Atelio by FIS"},"license":"ISC","dependencies":{"react":"^18.2.0"},"devDependencies":{"@eslint/js":"^9.2.0","@types/react":"^18.3.2","eslint":"^9.2.0","eslint-plugin-react":"^7.34.1","eslint-plugin-unicorn":"^53.0.0","typescript":"^5.4.5","typescript-eslint":"^7.9.0","uglify-js":"^3.17.4"},"_id":"@atelio/embedded-components@0.0.13","gitHead":"f8a97553d27d9e89cce1cffe3ebaf07a5f0713f9","_nodeVersion":"18.20.0","_npmVersion":"10.5.0","dist":{"integrity":"sha512-K9ZXcflRfof9Kx5eCd5Xzes6TP6cx5PtAW5D1vfENdt/sBgMPV45CY5lQqsRkaBSuYivfO6h5zBVEpifWk76dQ==","shasum":"1d69f11257ee1b0958a50c31f67cb2c9cccb5948","tarball":"https://registry.npmjs.org/@atelio/embedded-components/-/embedded-components-0.0.13.tgz","fileCount":10,"unpackedSize":7156,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH9pwmwuQLZ1xp+RQR3Wi1gyhdYaXddFOuPkRFcNAIo+AiEArhiUhJNtbSi0MFSqnI8S1MAfDEAJlBRp56EKgoyf4ys="}]},"_npmUser":{"name":"marksarkisatelio","email":"mark.sarkis@bond.tech"},"directories":{},"maintainers":[{"name":"marksarkisatelio","email":"mark.sarkis@bond.tech"},{"name":"chris.elko","email":"chris.elko@atelio.com"},{"name":"luca-bond","email":"luca.masters@atelio.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/embedded-components_0.0.13_1717714249504_0.8624236873884501"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-14T17:49:34.060Z","modified":"2024-06-06T22:50:49.924Z","0.0.1":"2024-05-14T17:49:34.315Z","0.0.2":"2024-05-14T22:06:03.257Z","0.0.3":"2024-05-15T20:44:48.807Z","0.0.5":"2024-05-21T19:55:23.976Z","0.0.6":"2024-05-24T20:27:31.312Z","0.0.9":"2024-06-06T22:15:27.586Z","0.0.11":"2024-06-06T22:46:12.112Z","0.0.13":"2024-06-06T22:50:49.707Z"},"maintainers":[{"name":"marksarkisatelio","email":"mark.sarkis@bond.tech"},{"name":"chris.elko","email":"chris.elko@atelio.com"},{"name":"luca-bond","email":"luca.masters@atelio.com"}],"author":{"name":"Atelio by FIS"},"license":"ISC","readme":"# Atelio Embedded Components SDK\n\nThis SDK includes React components that allow brands to integration Atelio's hosted finance offerings. In order to make use of them, you will first need to create API Keys.\n\n## Installation\n\n### NPM\n\nTo install the module in your repo, simply run this in your terminal:\n`npm install @atelio/embedded-components`\n\nThen import the desired components in your code:\n`import { Onboarding } from '@atelio/embedded-components';`\n\n## Using Temporary Tokens\n\nBefore executing any request, you need to authorize the calls to the Atelio API.\n\n1. Make an authorized call _from your backend_ with the correct external_entity_id to receive temporary tokens of {Identity, Authorization} scoped to the external_entity_id. Use these limited in scope-and-time values to make requests from your app.\n\nFor onboarding a new entity, you can generate a unique uuid for your external_entity_id.\n\nNote that the following examples are for use with the \"production\" environment. There's also a sandbox environment you can use for development. For that, use `https://api-sandbox.auth.embedded.atelio.com/api/v0/auth/`\n\n### cURL\n\n```\ncurl --request POST \\\n  --url https://api.auth.embedded.atelio.com/api/v0/auth/ \\\n  --header 'Content-Type: application/json' \\\n  --header 'Identity: YOUR_IDENTITY' \\\n  --header 'Authorization: YOUR_AUTHORIZATION' \\\n  --data '{\"external_entity_id\": \"YOUR_EXTERNAL_ENTITY_ID\"}'\n```\n\n### Javascript\n\n```js\nconst headers: HeadersInit = {\n\t'Content-Type': 'application/json',\n\tAuthorization: YOUR_AUTHORIZATION,\n\tIdentity: YOUR_IDENTITY,\n};\nconst options: RequestInit = {\n\tbody: JSON.stringify({\n\t\texternal_entity_id: YOUR_EXTERNAL_ENTITY_ID,\n\t}),\n\theaders: headers,\n\tmethod: 'POST',\n};\nconst response = await fetch('https://api.auth.embedded.atelio.com/api/v0/auth/', options); \nconst data = await response.json();\nconst { access_token, refresh_token } = data;\n```\n\n## Components\n\nOnce you have an your access and refresh tokens, simply pass them as props to the component, in addition to specifying whether these are for production or sandbox:\n```js\n<Onboarding accessToken={accessToken} isProduction={true} refreshToken={refreshToken} />\n```\n","readmeFilename":"README.md"}