{"_id":"@ally.wtf/connect","_rev":"2-c0f9ee79a270d2db21b1aec6ffc8ed3b","name":"@ally.wtf/connect","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@ally.wtf/connect","version":"1.0.0","description":"Ally Connect Widget Library","main":"dist/@ally.wtf/connect-js.cjs.js","module":"dist/@ally.wtf/connect.esm.js","browser":"dist/@ally.wtf/connect.umd.js","scripts":{"build":"rollup -c","pretest":"npm run build"},"keywords":["ally.wtf","connect","widget"],"author":{"name":"Ally","url":"https://ally.wtf/"},"license":"MIT","devDependencies":{"@babel/core":"^7.23.9","@babel/preset-env":"^7.23.9","rollup":"^2.79.1","rollup-plugin-babel":"^4.4.0","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-node-resolve":"^5.2.0"},"repository":{"type":"git","url":"git+https://github.com/allyHQ/connect-js.git"},"homepage":"https://github.com/allyHQ/connect-js#readme","publishConfig":{"access":"public"},"gitHead":"00c88a874315be5d32794a1855c7296252e76d96","bugs":{"url":"https://github.com/allyHQ/connect-js/issues"},"_id":"@ally.wtf/connect@1.0.0","_nodeVersion":"18.17.0","_npmVersion":"9.6.7","dist":{"integrity":"sha512-lb/rjGz/S+wuISKzXADntCXYbBKW9ovL+rF2s4zqDAz2prkBTWdIfS04jjs4YzrHUUKgyywH6txbk8c/xyWY5Q==","shasum":"785525ce3267998c900440ba47c895c3997ac63d","tarball":"https://registry.npmjs.org/@ally.wtf/connect/-/connect-1.0.0.tgz","fileCount":6,"unpackedSize":12945,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEkotwXo8i7IP9P3k6AQkPAth1ZI6tEKER7/Mhe/hXwTAiEAvHqOHicFPxMk7BinhpniSRXY8eJ34OVLOsRow8tcFzk="}]},"_npmUser":{"name":"keosariel","email":"kennethgabriel78@gmail.com"},"directories":{},"maintainers":[{"name":"keosariel","email":"kennethgabriel78@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/connect_1.0.0_1708510675804_0.315833515712987"},"_hasShrinkwrap":false},"1.0.1":{"name":"@ally.wtf/connect","version":"1.0.1","description":"Ally Connect Widget Library","main":"dist/@ally.wtf/connect-js.cjs.js","module":"dist/@ally.wtf/connect.esm.js","browser":"dist/@ally.wtf/connect.umd.js","scripts":{"build":"rollup -c","pretest":"npm run build"},"keywords":["ally.wtf","connect","widget"],"author":{"name":"Ally","url":"https://ally.wtf/"},"license":"MIT","devDependencies":{"@babel/core":"^7.23.9","@babel/preset-env":"^7.23.9","rollup":"^2.79.1","rollup-plugin-babel":"^4.4.0","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-node-resolve":"^5.2.0"},"repository":{"type":"git","url":"git+https://github.com/allyHQ/connect-js.git"},"homepage":"https://github.com/allyHQ/connect-js#readme","publishConfig":{"access":"public"},"gitHead":"345d96081c9717f6b8f958c94ebb94288926aed7","bugs":{"url":"https://github.com/allyHQ/connect-js/issues"},"_id":"@ally.wtf/connect@1.0.1","_nodeVersion":"18.17.0","_npmVersion":"9.6.7","dist":{"integrity":"sha512-4gKe4emcXYf6qmcpdKFxyqFH9jfOsirGj9qZBq0qeKZBO6frgOjDs1v9c8JI7sAwT3yuaNKiTeeG18hf6prxvw==","shasum":"04991099deb2cd28b48f2e2fc49a6a23c6909413","tarball":"https://registry.npmjs.org/@ally.wtf/connect/-/connect-1.0.1.tgz","fileCount":6,"unpackedSize":12957,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAcd02+ezUEe4xPS/AzcYrqqjFybJL/BXvRY+Rn3761/AiEAjSOlQyTOZBP9T9Xwt0VTkDnq88fiTBe0SKYznOmeagI="}]},"_npmUser":{"name":"keosariel","email":"kennethgabriel78@gmail.com"},"directories":{},"maintainers":[{"name":"keosariel","email":"kennethgabriel78@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/connect_1.0.1_1708516110416_0.7543401773523013"},"_hasShrinkwrap":false},"1.0.2":{"name":"@ally.wtf/connect","version":"1.0.2","description":"Ally Connect Widget Library","main":"dist/@ally.wtf/connect-js.cjs.js","module":"dist/@ally.wtf/connect.esm.js","browser":"dist/@ally.wtf/connect.umd.js","scripts":{"build":"rollup -c","pretest":"npm run build"},"keywords":["ally.wtf","connect","widget"],"author":{"name":"Ally","url":"https://ally.wtf/"},"license":"MIT","devDependencies":{"@babel/core":"^7.23.9","@babel/preset-env":"^7.23.9","rollup":"^2.79.1","rollup-plugin-babel":"^4.4.0","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-node-resolve":"^5.2.0"},"repository":{"type":"git","url":"git+https://github.com/allyHQ/connect-js.git"},"homepage":"https://github.com/allyHQ/connect-js#readme","publishConfig":{"access":"public"},"gitHead":"0c390c859b6f1ed7445cbe028a318e04259f4e3d","bugs":{"url":"https://github.com/allyHQ/connect-js/issues"},"_id":"@ally.wtf/connect@1.0.2","_nodeVersion":"18.17.0","_npmVersion":"9.6.7","dist":{"integrity":"sha512-yhEi7YhL4HYkeU2G11LPpJL1GdqmlbRe8kKeWId2Dr9Q8lJGdNc2gR6A87x9SGbaRlHmR3i8AiNMzkrCJdSVww==","shasum":"7a42e33898eb72219aaaaef5c0fc92a5dbfb49df","tarball":"https://registry.npmjs.org/@ally.wtf/connect/-/connect-1.0.2.tgz","fileCount":6,"unpackedSize":15035,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDi2x0xaDeUvci1Hs+dpNqKpT1wa7x+EZk6pdpYisbJGwIhAPD6U4p8aT6e/rapfdlgaJaXy08xmgX3B+4yuApN4sBO"}]},"_npmUser":{"name":"keosariel","email":"kennethgabriel78@gmail.com"},"directories":{},"maintainers":[{"name":"keosariel","email":"kennethgabriel78@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/connect_1.0.2_1708519371036_0.02806788658587922"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-21T10:17:55.734Z","1.0.0":"2024-02-21T10:17:55.969Z","modified":"2024-02-21T12:42:51.757Z","1.0.1":"2024-02-21T11:48:30.597Z","1.0.2":"2024-02-21T12:42:51.349Z"},"maintainers":[{"name":"keosariel","email":"kennethgabriel78@gmail.com"}],"description":"Ally Connect Widget Library","homepage":"https://github.com/allyHQ/connect-js#readme","keywords":["ally.wtf","connect","widget"],"repository":{"type":"git","url":"git+https://github.com/allyHQ/connect-js.git"},"author":{"name":"Ally","url":"https://ally.wtf/"},"bugs":{"url":"https://github.com/allyHQ/connect-js/issues"},"license":"MIT","readme":"# AllyConnect Usage Guide\n\nAllyConnect is a JavaScript class designed to facilitate seamless integration of the AllyConnect widget into web applications. Follow the steps below to integrate and utilize AllyConnect in your project:\n\n### Installation\n\nYou can install AllyConnect via npm:\n\n```bash\nnpm i @ally.wtf/connect\n```\n\n### Usage\n\n1. **Import AllyConnect:** Import the AllyConnect class into your JavaScript file.\n   \n   ```javascript\n   let AllyConnect = require(\"@ally.wtf/connect\");\n   ```\n\n2. **Instantiate AllyConnect:** Create a new instance of AllyConnect by providing your unique `appId`.\n\n   ```javascript\n   const ally = new AllyConnect('your_app_id');\n   ```\n\n3. **Open the Widget:** Call the `openWidget()` method to launch the Ally Connect widget.\n\n   ```javascript\n   ally.openWidget();\n   ```\n\n4. **Handling Events:** You can handle events emitted by the AllyConnect widget using the on() method. Supported events include `ready`, `select_bank`, `connecting`, `connected` & `auth_expired`.\n\n   ```javascript\n   ally.on('connecting', (data) => {\n        // Handle close event\n   });\n   \n   ally.on('connected', (data) => {\n        // Handle close event\n   });\n\n   ally.on('auth_expired', (data) => {\n        // Handle close event\n   });\n   ```\n\n### Example\n\n```javascript\nconst AllyConnect = require('@ally.wtf/connect');\n\n// Instantiate AllyConnect\nconst ally = new AllyConnect('your_app_id');\n\n// Open the Widget\nally.openWidget();\n\n// Handle close event\nally.on('close', (data) => {\n    console.log('Widget closed', data);\n});\n```\n\nFor more examples [check here](https://github.com/allyHQ/connect-js/tree/main/examples)\n\n### Contributing\n\nIf you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request on [GitHub](https://github.com/allyHQ/connect-js).\n\n### License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](https://github.com/allyHQ/connect-js/blob/main/LICENSE.md) file for details.\n\n### Support\n\nFor any inquiries or assistance, contact [support@ally.wtf](support@ally.wtf).\n","readmeFilename":"README.md"}