{"_id":"@apolopay-sdk/svelte","_rev":"6-5a851841279e9a8e7d41f728e5669a12","name":"@apolopay-sdk/svelte","dist-tags":{"latest":"1.3.0"},"versions":{"1.0.0":{"name":"@apolopay-sdk/svelte","version":"1.0.0","_id":"@apolopay-sdk/svelte@1.0.0","maintainers":[{"name":"apolopay","email":"developers@apolopay.app"}],"dist":{"shasum":"5ab09829536f315ec3ca7eb2cf46f4ab93961132","tarball":"https://registry.npmjs.org/@apolopay-sdk/svelte/-/svelte-1.0.0.tgz","fileCount":6,"integrity":"sha512-PBB7zIMDO9kyfeiFpHh4QDpcDE8n669h4GZBDGu7rmc2f6HTYaFEMGDy59pbkVLJaXqlyNTxB5EbAjmSVLKirA==","signatures":[{"sig":"MEYCIQD6ldeTnJLOaffkGsHVjl3XsDw+fJT4Db+1V4j+jyU6CQIhAN81HSCtWk+qpy2Vrfis/UyJK8pm/p5VMRraraW5Jbdu","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4732},"main":"./dist/index.js","type":"module","_from":"file:apolopay-sdk-svelte-1.0.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","svelte":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","svelte":"./dist/index.js","require":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"dev":"svelte-package --watch","build":"svelte-package","check":"svelte-check --tsconfig ./tsconfig.json","check:watch":"svelte-check --tsconfig ./tsconfig.json --watch"},"_npmUser":{"name":"apolopay","email":"developers@apolopay.app"},"_resolved":"C:\\Users\\usuario\\AppData\\Local\\Temp\\67afa0ac45adec6bfe13b36e51e1ae50\\apolopay-sdk-svelte-1.0.0.tgz","_integrity":"sha512-PBB7zIMDO9kyfeiFpHh4QDpcDE8n669h4GZBDGu7rmc2f6HTYaFEMGDy59pbkVLJaXqlyNTxB5EbAjmSVLKirA==","_npmVersion":"10.9.3","description":"Botón de pago de Tu Plataforma para Svelte","directories":{},"_nodeVersion":"22.20.0","dependencies":{"@apolopay-sdk/ui":"1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tslib":"2.0.0","svelte":"4.0.0","typescript":"5.4.5","svelte-check":"3.0.0","@tsconfig/svelte":"5.0.0","@sveltejs/package":"2.0.0","@sveltejs/vite-plugin-svelte":"3.0.0"},"peerDependencies":{"svelte":"3.0.0 || 4.0.0 || 5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/svelte_1.0.0_1770336484654_0.24413797222244327","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@apolopay-sdk/svelte","version":"1.1.0","_id":"@apolopay-sdk/svelte@1.1.0","maintainers":[{"name":"apolopay","email":"developers@apolopay.app"}],"dist":{"shasum":"5939d76d5960062ad0010fec701cdb34290896b2","tarball":"https://registry.npmjs.org/@apolopay-sdk/svelte/-/svelte-1.1.0.tgz","fileCount":6,"integrity":"sha512-NTILmmlcHB8enmaNoLc3J2Nf+anunC/Wda7LoZ2tgKCLO0ZHVseyiZG15xGPOUd6yZ9qIJhqxO7ubVc7nssEGQ==","signatures":[{"sig":"MEQCIFaAeFaPkKGJNqor2G3ua4ZAocys3WrRdUgzXiEyWL38AiBaJp34O84fP+H6UlevdbTCXGiKBHEC/il8kJM8GzH5lA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4743},"main":"./dist/index.js","type":"module","_from":"file:apolopay-sdk-svelte-1.1.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","svelte":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","svelte":"./dist/index.js","require":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"dev":"svelte-package --watch","build":"svelte-package","check":"svelte-check --tsconfig ./tsconfig.json","check:watch":"svelte-check --tsconfig ./tsconfig.json --watch"},"_npmUser":{"name":"apolopay","email":"developers@apolopay.app"},"_resolved":"C:\\Users\\usuario\\AppData\\Local\\Temp\\4ebc0ef8472d21c82300d79ac23029ed\\apolopay-sdk-svelte-1.1.0.tgz","_integrity":"sha512-NTILmmlcHB8enmaNoLc3J2Nf+anunC/Wda7LoZ2tgKCLO0ZHVseyiZG15xGPOUd6yZ9qIJhqxO7ubVc7nssEGQ==","_npmVersion":"10.9.3","description":"Svelte Payment Button Adapter","directories":{},"_nodeVersion":"22.20.0","dependencies":{"@apolopay-sdk/ui":"1.1.0"},"publishConfig":{"access":"public","provenance":false},"_hasShrinkwrap":false,"devDependencies":{"tslib":"2.0.0","svelte":"4.0.0","typescript":"5.4.5","svelte-check":"3.0.0","@tsconfig/svelte":"5.0.0","@sveltejs/package":"2.0.0","@sveltejs/vite-plugin-svelte":"3.0.0"},"peerDependencies":{"svelte":"3.0.0 || 4.0.0 || 5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/svelte_1.1.0_1770341587121_0.03023792278038573","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@apolopay-sdk/svelte","version":"1.2.0","_id":"@apolopay-sdk/svelte@1.2.0","maintainers":[{"name":"apolopay","email":"developers@apolopay.app"}],"homepage":"https://github.com/ApoloPay/payment-button-sdk#readme","bugs":{"url":"https://github.com/ApoloPay/payment-button-sdk/issues"},"dist":{"shasum":"d7e773b33d3ab929198bdf013ba72778902954a5","tarball":"https://registry.npmjs.org/@apolopay-sdk/svelte/-/svelte-1.2.0.tgz","fileCount":6,"integrity":"sha512-md/3799hCVsKbgNxs+BoGipo8u+A9IlGMTNeGPeEtPogIHZHoIi4pPOjZiyUEnbWRM2YoW0so688GGv9LSdhiw==","signatures":[{"sig":"MEQCIEJSWPy97wXSK/2vMryuswF7oUATgAUgX2uAx1152RxsAiB0u/JtOVOQcB5PVdlEOMI27rDhsSyxDu636oOF8JQE0A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5527},"main":"./dist/index.js","type":"module","_from":"file:apolopay-sdk-svelte-1.2.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","svelte":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","svelte":"./dist/index.js","require":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"dev":"svelte-package --watch","build":"svelte-package","check":"svelte-check --tsconfig ./tsconfig.json","check:watch":"svelte-check --tsconfig ./tsconfig.json --watch"},"_npmUser":{"name":"apolopay","email":"developers@apolopay.app"},"_resolved":"C:\\Users\\detex\\AppData\\Local\\Temp\\96e4d4fd578bc5ed55677c4766e5625d\\apolopay-sdk-svelte-1.2.0.tgz","_integrity":"sha512-md/3799hCVsKbgNxs+BoGipo8u+A9IlGMTNeGPeEtPogIHZHoIi4pPOjZiyUEnbWRM2YoW0so688GGv9LSdhiw==","repository":{"url":"git+https://github.com/ApoloPay/payment-button-sdk.git","type":"git"},"_npmVersion":"11.9.0","description":"Svelte Payment Button Adapter","directories":{},"_nodeVersion":"24.14.0","dependencies":{"@apolopay-sdk/ui":"1.2.0"},"publishConfig":{"access":"public","provenance":false},"_hasShrinkwrap":false,"devDependencies":{"tslib":"2.0.0","svelte":"4.0.0","typescript":"5.4.5","svelte-check":"3.0.0","@tsconfig/svelte":"5.0.0","@sveltejs/package":"2.0.0","@sveltejs/vite-plugin-svelte":"3.0.0"},"peerDependencies":{"svelte":"3.0.0 || 4.0.0 || 5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/svelte_1.2.0_1773950140768_0.8304787309180526","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@apolopay-sdk/svelte","version":"1.2.1","_id":"@apolopay-sdk/svelte@1.2.1","maintainers":[{"name":"apolopay","email":"developers@apolopay.app"}],"homepage":"https://github.com/ApoloPay/payment-button-sdk#readme","bugs":{"url":"https://github.com/ApoloPay/payment-button-sdk/issues"},"dist":{"shasum":"6b9a77e20bbfc01f08012a48ab61f74b654e45a1","tarball":"https://registry.npmjs.org/@apolopay-sdk/svelte/-/svelte-1.2.1.tgz","fileCount":6,"integrity":"sha512-6+jGKLPzK/4Y4EwW/10VtZyrZHHC2NKEf9jgqpj4r7IlcY+WfzDxmLzK+nUwATaFsL2/+0Fy/KUBLRaIxKf5qA==","signatures":[{"sig":"MEUCIQDdLpWsxwElH76KvrBrZgMC2TnZTUWSYBLl/FBWB1ir6gIgZcTka8VFK/wxTHxvtOMGlcVewGxQwwo0qH9bgMx+22A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5527},"main":"./dist/index.js","type":"module","_from":"file:apolopay-sdk-svelte-1.2.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","svelte":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","svelte":"./dist/index.js","require":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"dev":"svelte-package --watch","build":"svelte-package","check":"svelte-check --tsconfig ./tsconfig.json","check:watch":"svelte-check --tsconfig ./tsconfig.json --watch"},"_npmUser":{"name":"apolopay","email":"developers@apolopay.app"},"_resolved":"C:\\Users\\detex\\AppData\\Local\\Temp\\39cbd47e8e629767b96731416ebd857c\\apolopay-sdk-svelte-1.2.1.tgz","_integrity":"sha512-6+jGKLPzK/4Y4EwW/10VtZyrZHHC2NKEf9jgqpj4r7IlcY+WfzDxmLzK+nUwATaFsL2/+0Fy/KUBLRaIxKf5qA==","repository":{"url":"git+https://github.com/ApoloPay/payment-button-sdk.git","type":"git"},"_npmVersion":"11.9.0","description":"Svelte Payment Button Adapter","directories":{},"_nodeVersion":"24.14.0","dependencies":{"@apolopay-sdk/ui":"1.2.1"},"publishConfig":{"access":"public","provenance":false},"_hasShrinkwrap":false,"devDependencies":{"tslib":"2.0.0","svelte":"4.0.0","typescript":"5.4.5","svelte-check":"3.0.0","@tsconfig/svelte":"5.0.0","@sveltejs/package":"2.0.0","@sveltejs/vite-plugin-svelte":"3.0.0"},"peerDependencies":{"svelte":"3.0.0 || 4.0.0 || 5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/svelte_1.2.1_1774019414607_0.8128712568164822","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"@apolopay-sdk/svelte","version":"1.2.2","_id":"@apolopay-sdk/svelte@1.2.2","maintainers":[{"name":"apolopay","email":"developers@apolopay.app"}],"homepage":"https://github.com/ApoloPay/payment-button-sdk#readme","bugs":{"url":"https://github.com/ApoloPay/payment-button-sdk/issues"},"dist":{"shasum":"09697b342cc00965bb42bdaaab75c10481237cce","tarball":"https://registry.npmjs.org/@apolopay-sdk/svelte/-/svelte-1.2.2.tgz","fileCount":6,"integrity":"sha512-wTBtBs9yXsJTIJxEMp5XttGxkZb1DEejk4xr/L4/HqgwGPwryZnpfXk15MC0FQbvIdPMHmsoX4s2ALzkUG+HoA==","signatures":[{"sig":"MEQCICOd2mANAgSVoxcjglV1HtuJP9G+UXPHC11cUUydwOqPAiAuJ9hUkahSFZhNlCqMeJFQ1Dup136JHhWouXHAgmtDkQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6104},"main":"./dist/index.js","type":"module","_from":"file:apolopay-sdk-svelte-1.2.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","svelte":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","svelte":"./dist/index.js","require":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"dev":"svelte-package --watch","build":"svelte-package","check":"svelte-check --tsconfig ./tsconfig.json","check:watch":"svelte-check --tsconfig ./tsconfig.json --watch"},"_npmUser":{"name":"apolopay","email":"developers@apolopay.app"},"_resolved":"C:\\Users\\detex\\AppData\\Local\\Temp\\beb97d7e86e9abe4fca4b0450a15d8d3\\apolopay-sdk-svelte-1.2.2.tgz","_integrity":"sha512-wTBtBs9yXsJTIJxEMp5XttGxkZb1DEejk4xr/L4/HqgwGPwryZnpfXk15MC0FQbvIdPMHmsoX4s2ALzkUG+HoA==","repository":{"url":"git+https://github.com/ApoloPay/payment-button-sdk.git","type":"git"},"_npmVersion":"11.9.0","description":"Svelte Payment Button Adapter","directories":{},"_nodeVersion":"24.14.0","dependencies":{"@apolopay-sdk/ui":"1.3.0"},"publishConfig":{"access":"public","provenance":false},"_hasShrinkwrap":false,"devDependencies":{"tslib":"2.0.0","svelte":"4.0.0","typescript":"5.4.5","svelte-check":"3.0.0","@tsconfig/svelte":"5.0.0","@sveltejs/package":"2.0.0","@sveltejs/vite-plugin-svelte":"3.0.0"},"peerDependencies":{"svelte":"3.0.0 || 4.0.0 || 5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/svelte_1.2.2_1775944044350_0.6896696281397021","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@apolopay-sdk/svelte","version":"1.3.0","description":"Svelte Payment Button Adapter","repository":{"type":"git","url":"git+https://github.com/ApoloPay/payment-button-sdk.git"},"publishConfig":{"access":"public","provenance":false},"type":"module","svelte":"./dist/index.js","module":"./dist/index.mjs","main":"./dist/index.js","types":"./dist/index.d.ts","dependencies":{"@apolopay-sdk/ui":"1.4.0"},"devDependencies":{"@sveltejs/package":"2.0.0","@sveltejs/vite-plugin-svelte":"3.0.0","@tsconfig/svelte":"5.0.0","svelte":"4.0.0","svelte-check":"3.0.0","tslib":"2.0.0","typescript":"5.4.5"},"peerDependencies":{"svelte":"3.0.0 || 4.0.0 || 5.0.0"},"exports":{".":{"types":"./dist/index.d.ts","svelte":"./dist/index.js","import":"./dist/index.mjs","require":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"build":"svelte-package","dev":"svelte-package --watch","check":"svelte-check --tsconfig ./tsconfig.json","check:watch":"svelte-check --tsconfig ./tsconfig.json --watch"},"_id":"@apolopay-sdk/svelte@1.3.0","bugs":{"url":"https://github.com/ApoloPay/payment-button-sdk/issues"},"homepage":"https://github.com/ApoloPay/payment-button-sdk#readme","_integrity":"sha512-6WmMjZBVANtasSsLMoaTpKZcsZRxEWVb84n4nwoG8ni+KI/xpkA7u21ALeefOvoNq/4vsViAq1er/UHKQbh6lQ==","_resolved":"C:\\Users\\detex\\AppData\\Local\\Temp\\ebe14760d2e41332bc114d61583f7512\\apolopay-sdk-svelte-1.3.0.tgz","_from":"file:apolopay-sdk-svelte-1.3.0.tgz","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-6WmMjZBVANtasSsLMoaTpKZcsZRxEWVb84n4nwoG8ni+KI/xpkA7u21ALeefOvoNq/4vsViAq1er/UHKQbh6lQ==","shasum":"93fa8caea3f351c42f488a5016aee2ae71c4e0d7","tarball":"https://registry.npmjs.org/@apolopay-sdk/svelte/-/svelte-1.3.0.tgz","fileCount":6,"unpackedSize":6104,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCOU3kuZrKffUrzPRj7sAISzXU0Krn52H3kgqVsEZhSqgIgVDWC8hsrRrHua71QpTLvUcUnS5S/ml8H9njYj164ALY="}]},"_npmUser":{"name":"apolopay","email":"developers@apolopay.app"},"directories":{},"maintainers":[{"name":"apolopay","email":"developers@apolopay.app"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/svelte_1.3.0_1787682557316_0.82539450359841"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-06T00:08:04.538Z","modified":"2026-08-25T18:29:17.629Z","1.0.0":"2026-02-06T00:08:04.824Z","1.1.0":"2026-02-06T01:33:07.278Z","1.2.0":"2026-03-19T19:55:40.904Z","1.2.1":"2026-03-20T15:10:14.749Z","1.2.2":"2026-04-11T21:47:24.487Z","1.3.0":"2026-08-25T18:29:17.458Z"},"bugs":{"url":"https://github.com/ApoloPay/payment-button-sdk/issues"},"homepage":"https://github.com/ApoloPay/payment-button-sdk#readme","repository":{"type":"git","url":"git+https://github.com/ApoloPay/payment-button-sdk.git"},"description":"Svelte Payment Button Adapter","maintainers":[{"name":"apolopay","email":"developers@apolopay.app"}],"readme":"# @apolopay-sdk/svelte\r\n\r\nSvelte wrapper for the Apolo Pay SDK. Provides a component to integrate the Apolo Pay payment button into Svelte applications.\r\n\r\n## Installation\r\n\r\n```bash\r\nnpm install @apolopay-sdk/svelte\r\n# or\r\npnpm add @apolopay-sdk/svelte\r\n```\r\n\r\n## Usage\r\n\r\n```html\r\n<script lang=\"ts\">\r\n  import { ApoloPayButton, ApoloPayClient, type ClientResponse, type ClientError } from '@apolopay-sdk/svelte';\r\n\r\n  // 1. Initialize the client\r\n  const client = new ApoloPayClient({\r\n    publicKey: 'pk_test_...',\r\n  });\r\n\r\n  const processId = 'your-process-id';\r\n\r\n  // 2. Event handlers\r\n  function handleSuccess(event: CustomEvent<ClientResponse>) {\r\n    console.log('Payment success!', event.detail);\r\n  }\r\n\r\n  function handleError(event: CustomEvent<ClientError>) {\r\n    console.error('Payment error!', event.detail);\r\n  }\r\n</script>\r\n\r\n<main>\r\n  <h1>My Svelte Store</h1>\r\n\r\n  <!-- 3. Use the component -->\r\n  <ApoloPayButton\r\n    {client}\r\n    {processId}\r\n    productTitle=\"Order #SVELTE-1\"\r\n    lang=\"es\"\r\n    on:success={handleSuccess}\r\n    on:error={handleError}\r\n    barrierDismissible={true}\r\n  />\r\n</main>\r\n```\r\n\r\n## Props and Events\r\n\r\n- `client`: (ApoloPayClient) **Required**.\r\n- `processId`: (string) **Required**.\r\n- `productTitle`: (string)\r\n- `lang`: ('es' | 'en')\r\n- `label`: (string)\r\n- `barrierDismissible`: (boolean)\r\n- `on:success`: Fired on success.\r\n- `on:error`: Fired on error.\r\n\r\n## License\r\n\r\nMIT\r\n","readmeFilename":"README.md"}