{"_id":"@allowmy/webpopup","_rev":"3-28188786e69133ff26384b101118f403","name":"@allowmy/webpopup","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@allowmy/webpopup","version":"1.0.0","license":"MIT","_id":"@allowmy/webpopup@1.0.0","maintainers":[{"name":"codetrayapps","email":"codetrayapps@gmail.com"}],"dist":{"shasum":"ff56f670873b0a07cb793e5efe94cbd253494048","tarball":"https://registry.npmjs.org/@allowmy/webpopup/-/webpopup-1.0.0.tgz","fileCount":41,"integrity":"sha512-0cW8MFxxr3z4pbCpFdQXT69Rd3vDsAAO2pRh2jJ1gGNC4UgvbFTnpjQ8rZBqhQBhmw6fIMWzT2lVKZnDi5Rbag==","signatures":[{"sig":"MEUCID/8KVLH12rgw2BPL8Ah82Riue+EFw/Kn487Hojr/ppzAiEA9DuyqRRfEnMtKGlAPJ+tVhcyCKeK0Ca+g5sJX8lgB6s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57041},"main":"dist/umd/index.js","types":"dist/umd/src/index.d.ts","source":"src/index.ts","gitHead":"b6ffe9a9deb66ff48e0943156976bc8c45af632b","scripts":{"dev":"rollup -c -w --bundleConfigAsCjs","lint":"eslint --ext ts --ext tsx --ext js src","test":"jest","build":"rm -rf dist/ && rollup -c --bundleConfigAsCjs","format":"prettier --write \"src/**/*\"","prepublish":"yarn build && yarn test","test:watch":"jest --watchAll"},"_npmUser":{"name":"codetrayapps","email":"codetrayapps@gmail.com"},"_npmVersion":"9.8.1","description":"Popup Web User Experience","directories":{},"_nodeVersion":"18.18.0","dependencies":{"promise-retry":"^2.0.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^24.9.0","eslint":"^6.8.0","rollup":"^2.63.0","ts-jest":"^24.2.0","prettier":"^1.19.1","typescript":"^3.7.2","@babel/core":"^7.10.3","@types/jest":"^24.9.1","rollup-plugin-dts":"^5.3.1","eslint-plugin-jest":"^23.3.0","rollup-plugin-copy":"^3.3.0","rollup-plugin-babel":"^4.4.0","@testing-library/dom":"^8.11.3","@types/promise-retry":"^1.1.3","eslint-config-airbnb":"^18.0.1","eslint-plugin-import":"^2.19.1","rollup-plugin-terser":"^7.0.2","eslint-config-prettier":"^6.9.0","eslint-plugin-prettier":"^3.1.2","@rollup/plugin-commonjs":"^21.0.1","@testing-library/jest-dom":"^5.16.2","@typescript-eslint/parser":"^2.14.0","rollup-plugin-typescript2":"^0.27.3","@rollup/plugin-node-resolve":"^13.1.3","@sheerun/mutationobserver-shim":"^0.3.3","eslint-config-airbnb-typescript":"^6.3.1","@typescript-eslint/eslint-plugin":"^2.14.0","rollup-plugin-peer-deps-external":"^2.2.4"},"_npmOperationalInternal":{"tmp":"tmp/webpopup_1.0.0_1718562765696_0.07538112243722894","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@allowmy/webpopup","version":"1.1.0","license":"MIT","main":"dist/umd/index.js","types":"dist/umd/src/index.d.ts","source":"src/index.ts","scripts":{"build":"rm -rf dist/ && rollup -c --bundleConfigAsCjs","prepublish":"yarn build && yarn test","dev":"rollup -c -w --bundleConfigAsCjs","test":"jest","test:watch":"jest --watchAll","format":"prettier --write \"src/**/*\"","lint":"eslint --ext ts --ext tsx --ext js src"},"dependencies":{"promise-retry":"^2.0.1"},"devDependencies":{"@babel/core":"^7.10.3","@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.1.3","@sheerun/mutationobserver-shim":"^0.3.3","@testing-library/dom":"^8.11.3","@testing-library/jest-dom":"^5.16.2","@types/jest":"^24.9.1","@types/promise-retry":"^1.1.3","@typescript-eslint/eslint-plugin":"^2.14.0","@typescript-eslint/parser":"^2.14.0","eslint":"^6.8.0","eslint-config-airbnb":"^18.0.1","eslint-config-airbnb-typescript":"^6.3.1","eslint-config-prettier":"^6.9.0","eslint-plugin-import":"^2.19.1","eslint-plugin-jest":"^23.3.0","eslint-plugin-prettier":"^3.1.2","jest":"^24.9.0","prettier":"^1.19.1","rollup":"^2.63.0","rollup-plugin-babel":"^4.4.0","rollup-plugin-copy":"^3.3.0","rollup-plugin-dts":"^5.3.1","rollup-plugin-peer-deps-external":"^2.2.4","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.27.3","ts-jest":"^24.2.0","typescript":"^3.7.2"},"_id":"@allowmy/webpopup@1.1.0","gitHead":"b6ffe9a9deb66ff48e0943156976bc8c45af632b","description":"Popup Web User Experience","_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-FzgVxQKRKdGkQNf3PMu7kASaiPLCYIdwn6vANbE+85xRJ+Arzhkpqm/aCCCS5MtXI7WvLlmRQ0v6z6oIKEbWqw==","shasum":"7604b95e4ccd55216eeda901ddebba953d82d60d","tarball":"https://registry.npmjs.org/@allowmy/webpopup/-/webpopup-1.1.0.tgz","fileCount":41,"unpackedSize":57049,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBy4WT7vzl03QnZVhXQmr+wWav6tOlGjVxn9ZFHKjmLiAiBxXikqzgIaWPITAjk3QtxKPjDR9l3HJit5LSrSTrTQBA=="}]},"_npmUser":{"name":"allowmyaccounts","email":"accounts@allowmy.ai"},"directories":{},"maintainers":[{"name":"allowmyaccounts","email":"accounts@allowmy.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpopup_1.1.0_1721579972461_0.15046265192695318"},"_hasShrinkwrap":false}},"time":{"created":"2024-06-16T18:32:45.599Z","modified":"2024-07-21T16:39:32.792Z","1.0.0":"2024-06-16T18:32:45.834Z","1.1.0":"2024-07-21T16:39:32.627Z"},"license":"MIT","description":"Popup Web User Experience","maintainers":[{"name":"allowmyaccounts","email":"accounts@allowmy.ai"}],"readme":"# AllowMy Web Popup\n\nPopup Web User Experience\n\n## Overview\n\nThis library provides a wrapper for an iFrame that executes code on a remote server (at hostUrl)\nIt expects the embedded code to be downloadable from WIDGET_DOWNLOAD_PATH and implement the interface WebWidgetCore\nThis code is expected to use the Zoid component.\n\nStart a flow by triggering the user popup:\n\n```\nimport { WebPopupInitializer } from \"@allowmy/webpopup\"\n\n  // init the popup\n  const options = {\n    agentId: 'my-service-agent-id',\n    hostUrl: 'https://myservice.com',\n  }\n  const popupInit = WebPopupInitializer()\n  const webPopup = await popupInit.init(options)\n\n\n  // trigger the popup to appear and run an action on host service\n  webPopup.launch('myAction', {agentId: 123, actionParam1: '123'})\n  .then((result) => {console.log('myAction result', result)})\n  .catch((error) => {console.log('error', error)})\n\n```\n\nThis will launch a pop-up. When the user finishes the flow, the onError or onSuccess callback will be called.\n\n**Important**\n\n- This library must be used within browser or a web wrapper component that has a `window` object\n- The popup flow should be triggered by the user clicking a button, link, or some other item that causes an Event. This will help get around pop-up blockers\n\n<br>\n\n## Installation\n\n```\nnpm install @allowmy/webpopup\n```\n\n<br>\n","readmeFilename":"README.md"}