{"_id":"@dsr4ai/miva-bdn-sdk","_rev":"12-f36bc5728a2d7155f2ffc5e686ec1a59","name":"@dsr4ai/miva-bdn-sdk","dist-tags":{"latest":"0.0.12"},"versions":{"0.0.1":{"name":"@dsr4ai/miva-bdn-sdk","version":"0.0.1","license":"MIT","_id":"@dsr4ai/miva-bdn-sdk@0.0.1","maintainers":[{"name":"memochou1993","email":"memochou1993@gmail.com"}],"homepage":"https://github.com/dsr4ai/miva-bdn-js-sdk#readme","bugs":{"url":"https://github.com/dsr4ai/miva-bdn-js-sdk/issues"},"dist":{"shasum":"500df90df9599e04bd13c35b549034808613a18d","tarball":"https://registry.npmjs.org/@dsr4ai/miva-bdn-sdk/-/miva-bdn-sdk-0.0.1.tgz","fileCount":8,"integrity":"sha512-m4f7BXK7Kb4h1Ocn/wgifDYkhL6xmd9rYxWLO8Af5SmiLYH5HreBD6TScJEMmyZfUi806Wd7omUCsvGUOwHs8Q==","signatures":[{"sig":"MEQCIA2A+CCFg1jpUu8RyTKfbIxeE0/rui1rv3LMCF7v4I+DAiApWFZ4e48XiYKPYSWK3fvSr9KMNPwy2l1VBjK+bDr93g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17535},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.js","require":"./dist/index.umd.js"}},"gitHead":"1d08a3ec18319324709a43aa5b1040cb0f74abf7","private":false,"scripts":{"dev":"vite","lint":"eslint .","build":"tsc -p ./tsconfig.build.json && vite build","preview":"vite preview","release":"npm run build && npm publish --access public"},"_npmUser":{"name":"memochou1993","email":"memochou1993@gmail.com"},"repository":{"url":"git+https://github.com/dsr4ai/miva-bdn-js-sdk.git","type":"git"},"_npmVersion":"10.5.2","description":"MivaBDN SDK provides an easy way to embed the **Miva BDN iframe** in a web application.","directories":{},"_nodeVersion":"20.13.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^4.4.5","eslint":"^9.11.0","vitest":"^2.1.1","globals":"^15.9.0","@eslint/js":"^9.11.0","typescript":"^5.5.4","@types/node":"^22.5.5","vite-plugin-dts":"^4.2.1","@types/eslint__js":"^8.42.3","typescript-eslint":"^8.6.0","@stylistic/eslint-plugin":"^2.9.0"},"_npmOperationalInternal":{"tmp":"tmp/miva-bdn-sdk_0.0.1_1762406605426_0.4494525622368426","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@dsr4ai/miva-bdn-sdk","version":"0.0.2","license":"MIT","_id":"@dsr4ai/miva-bdn-sdk@0.0.2","maintainers":[{"name":"memochou1993","email":"memochou1993@gmail.com"}],"homepage":"https://github.com/dsr4ai/miva-bdn-sdk#readme","bugs":{"url":"https://github.com/dsr4ai/miva-bdn-sdk/issues"},"dist":{"shasum":"8cd0c8983786711f08897dcac75022a40caa84c3","tarball":"https://registry.npmjs.org/@dsr4ai/miva-bdn-sdk/-/miva-bdn-sdk-0.0.2.tgz","fileCount":9,"integrity":"sha512-+djm16TV0iozQjECARmlkm45+Uenq97hrLBAdiodoaex/9FwT0C+Xmi5nQFOtPd9two3tNh0QN9rN/rmpsQvkg==","signatures":[{"sig":"MEYCIQDY87rlKzGl5OXyPHWblk6fSAjmAbWo63iFDR9rVU6kMwIhAJw2MsLG4BiowRAiFiWWVIa+e6OQGocs0JkcUQABzceD","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18527},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.js","require":"./dist/index.umd.js"}},"gitHead":"528f3b5ed75f3e2f7cbba88a58a0097c3a9c4fca","private":false,"scripts":{"dev":"vite","lint":"eslint .","build":"tsc -p ./tsconfig.build.json && vite build","preview":"vite preview","release":"npm run build && npm publish --access public"},"_npmUser":{"name":"memochou1993","email":"memochou1993@gmail.com"},"repository":{"url":"git+https://github.com/dsr4ai/miva-bdn-sdk.git","type":"git"},"_npmVersion":"10.5.2","description":"MivaBDN SDK provides an easy way to embed the **Miva BDN iframe** in a web application.","directories":{},"_nodeVersion":"20.13.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^4.4.5","eslint":"^9.11.0","vitest":"^2.1.1","globals":"^15.9.0","@eslint/js":"^9.11.0","typescript":"^5.5.4","@types/node":"^22.5.5","vite-plugin-dts":"^4.2.1","@types/eslint__js":"^8.42.3","typescript-eslint":"^8.6.0","@stylistic/eslint-plugin":"^2.9.0"},"_npmOperationalInternal":{"tmp":"tmp/miva-bdn-sdk_0.0.2_1762512269528_0.7428391974231954","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@dsr4ai/miva-bdn-sdk","version":"0.0.3","license":"MIT","_id":"@dsr4ai/miva-bdn-sdk@0.0.3","maintainers":[{"name":"memochou1993","email":"memochou1993@gmail.com"}],"homepage":"https://github.com/dsr4ai/miva-bdn-sdk#readme","bugs":{"url":"https://github.com/dsr4ai/miva-bdn-sdk/issues"},"dist":{"shasum":"9dd1d5b254fd508711b49e53d12e9507e3ca9439","tarball":"https://registry.npmjs.org/@dsr4ai/miva-bdn-sdk/-/miva-bdn-sdk-0.0.3.tgz","fileCount":9,"integrity":"sha512-SoGxY2jDjHQQWvwo0hf9xci1Lr/ppMtpHa+0JJJHjIWENcVjcKNIME/Fq5vUEDAyNsu+YaJfwm34mAa/0Figbg==","signatures":[{"sig":"MEYCIQDWTw+WPradttSK7DGvc00xGgnxREKvOLFcOPLSuobnwQIhALihPP7LVuxXDlnjHi8xYLUzQo5fB7gVKgZX9lcMmOpC","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21161},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.js","require":"./dist/index.umd.js"}},"gitHead":"cb2a3039179db8e4a0ce03287f4a9389c4bb445f","private":false,"scripts":{"dev":"vite","lint":"eslint .","build":"tsc -p ./tsconfig.build.json && vite build","preview":"vite preview","release":"npm run build && npm publish --access public"},"_npmUser":{"name":"memochou1993","email":"memochou1993@gmail.com"},"repository":{"url":"git+https://github.com/dsr4ai/miva-bdn-sdk.git","type":"git"},"_npmVersion":"10.9.4","description":"MivaBDN SDK provides an easy way to embed the **Miva BDN iframe** in a web application.","directories":{},"_nodeVersion":"22.21.1","_hasShrinkwrap":false,"devDependencies":{"vite":"^4.4.5","eslint":"^9.11.0","vitest":"^2.1.1","globals":"^15.9.0","@eslint/js":"^9.11.0","typescript":"^5.5.4","@types/node":"^22.5.5","vite-plugin-dts":"^4.2.1","@types/eslint__js":"^8.42.3","typescript-eslint":"^8.6.0","@stylistic/eslint-plugin":"^2.9.0"},"_npmOperationalInternal":{"tmp":"tmp/miva-bdn-sdk_0.0.3_1765017359095_0.6878836857380843","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@dsr4ai/miva-bdn-sdk","version":"0.0.4","license":"MIT","_id":"@dsr4ai/miva-bdn-sdk@0.0.4","maintainers":[{"name":"memochou1993","email":"memochou1993@gmail.com"}],"homepage":"https://github.com/dsr4ai/miva-bdn-sdk#readme","bugs":{"url":"https://github.com/dsr4ai/miva-bdn-sdk/issues"},"dist":{"shasum":"201c7291d99a108a2286e70b5f15ca278003c8f8","tarball":"https://registry.npmjs.org/@dsr4ai/miva-bdn-sdk/-/miva-bdn-sdk-0.0.4.tgz","fileCount":11,"integrity":"sha512-rb7jYs1sNwrtV0lLT4nwadPopbm/Z+Cx8HlIpfPSsWZXQ7dq+UvpGkH3M2HT07mMCywMo5K87cS3tz+J3TlfJw==","signatures":[{"sig":"MEYCIQDK71Ai3GEgd3QsWvosSvrgSjPjNOvZPeHahhGraKzxJAIhAIho98jEbks6FNofl8Mj+1JBtiMApKYq3bid7AEr5lhV","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22488},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.js","require":"./dist/index.umd.js"}},"gitHead":"488aff714da577737c96063cdd2435477ae38dc9","private":false,"scripts":{"dev":"vite","lint":"eslint .","build":"tsc -p ./tsconfig.build.json && vite build","preview":"vite preview","release":"npm run build && npm publish --access public"},"_npmUser":{"name":"memochou1993","email":"memochou1993@gmail.com"},"repository":{"url":"git+https://github.com/dsr4ai/miva-bdn-sdk.git","type":"git"},"_npmVersion":"10.9.4","description":"MivaBDN SDK provides an easy way to embed the **Miva BDN iframe** in a web application.","directories":{},"_nodeVersion":"22.21.1","_hasShrinkwrap":false,"devDependencies":{"vite":"^4.4.5","eslint":"^9.11.0","vitest":"^2.1.1","globals":"^15.9.0","@eslint/js":"^9.11.0","typescript":"^5.5.4","@types/node":"^22.5.5","vite-plugin-dts":"^4.2.1","@types/eslint__js":"^8.42.3","typescript-eslint":"^8.6.0","@stylistic/eslint-plugin":"^2.9.0"},"_npmOperationalInternal":{"tmp":"tmp/miva-bdn-sdk_0.0.4_1768362116323_0.005855195701473415","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@dsr4ai/miva-bdn-sdk","version":"0.0.5","license":"MIT","_id":"@dsr4ai/miva-bdn-sdk@0.0.5","maintainers":[{"name":"memochou1993","email":"memochou1993@gmail.com"}],"homepage":"https://github.com/dsr4ai/miva-bdn-sdk#readme","bugs":{"url":"https://github.com/dsr4ai/miva-bdn-sdk/issues"},"dist":{"shasum":"911323060eea2af3a2d698e9405ee60397a361cb","tarball":"https://registry.npmjs.org/@dsr4ai/miva-bdn-sdk/-/miva-bdn-sdk-0.0.5.tgz","fileCount":11,"integrity":"sha512-NSHZr2phMG28j2qG2HyamZg8HsFo8CW+/9KN2eM0I/ATatBaXZUmxPVYW6tjaBsLqxMmbbruqAZKLHVKEPCTcg==","signatures":[{"sig":"MEYCIQCxjGcNWxOIHnDWIb+iC2wOikiqJqeGBiwTVNWsRLPJqgIhAPT1Y0+2NYKVodhcII/uMlX6umDTDZ3MVF5DZYUVKTfw","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22638},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.js","require":"./dist/index.umd.js"}},"gitHead":"5b8b5055f92b61cf81bcd03da2bcb180b026d683","private":false,"scripts":{"dev":"vite","lint":"eslint .","build":"tsc -p ./tsconfig.build.json && vite build","preview":"vite preview","release":"npm run build && npm publish --access public"},"_npmUser":{"name":"memochou1993","email":"memochou1993@gmail.com"},"repository":{"url":"git+https://github.com/dsr4ai/miva-bdn-sdk.git","type":"git"},"_npmVersion":"11.8.0","description":"MivaBDN SDK provides an easy way to embed the **Miva BDN iframe** in a web application.","directories":{},"_nodeVersion":"22.21.1","_hasShrinkwrap":false,"devDependencies":{"vite":"^4.4.5","eslint":"^9.11.0","vitest":"^2.1.1","globals":"^15.9.0","@eslint/js":"^9.11.0","typescript":"^5.5.4","@types/node":"^22.5.5","vite-plugin-dts":"^4.2.1","@types/eslint__js":"^8.42.3","typescript-eslint":"^8.6.0","@stylistic/eslint-plugin":"^2.9.0"},"_npmOperationalInternal":{"tmp":"tmp/miva-bdn-sdk_0.0.5_1772986970497_0.29819832656644896","host":"s3://npm-registry-packages-npm-production"}},"0.0.6":{"name":"@dsr4ai/miva-bdn-sdk","version":"0.0.6","license":"MIT","_id":"@dsr4ai/miva-bdn-sdk@0.0.6","maintainers":[{"name":"memochou1993","email":"memochou1993@gmail.com"}],"homepage":"https://github.com/dsr4ai/miva-bdn-sdk#readme","bugs":{"url":"https://github.com/dsr4ai/miva-bdn-sdk/issues"},"dist":{"shasum":"8de5f909e72855bd6d4634f56fa58f39005e6503","tarball":"https://registry.npmjs.org/@dsr4ai/miva-bdn-sdk/-/miva-bdn-sdk-0.0.6.tgz","fileCount":11,"integrity":"sha512-jboEPxjRTuknW71k6w1BC5/N7omef43lUbdY+LeyuCP6H6D+87Zrikvd+itQ+mWcxPvb7PhdHvJrT0yGuTNkqw==","signatures":[{"sig":"MEUCIGsChmsP6gIQPskwz5zaWoFh2ZjEaDnNGezT5p2UXbM/AiEA83t8y9sUGVfn278GtJFHCM2nkGGHVHewAIrzP1aOvvM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23059},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.js","require":"./dist/index.umd.js"}},"gitHead":"4892d8fbcd76e419e7e0df688a1e9585379f5219","private":false,"scripts":{"dev":"vite","lint":"eslint .","build":"tsc -p ./tsconfig.build.json && vite build","preview":"vite preview","release":"npm run build && npm publish --access public"},"_npmUser":{"name":"memochou1993","email":"memochou1993@gmail.com"},"repository":{"url":"git+https://github.com/dsr4ai/miva-bdn-sdk.git","type":"git"},"_npmVersion":"11.8.0","description":"MivaBDN SDK provides an easy way to embed the **Miva BDN iframe** in a web application.","directories":{},"_nodeVersion":"22.21.1","_hasShrinkwrap":false,"devDependencies":{"vite":"^4.4.5","eslint":"^9.11.0","vitest":"^2.1.1","globals":"^15.9.0","@eslint/js":"^9.11.0","typescript":"^5.5.4","@types/node":"^22.5.5","vite-plugin-dts":"^4.2.1","@types/eslint__js":"^8.42.3","typescript-eslint":"^8.6.0","@stylistic/eslint-plugin":"^2.9.0"},"_npmOperationalInternal":{"tmp":"tmp/miva-bdn-sdk_0.0.6_1773051944605_0.8839877892676204","host":"s3://npm-registry-packages-npm-production"}},"0.0.7":{"name":"@dsr4ai/miva-bdn-sdk","version":"0.0.7","license":"MIT","_id":"@dsr4ai/miva-bdn-sdk@0.0.7","maintainers":[{"name":"memochou1993","email":"memochou1993@gmail.com"}],"homepage":"https://github.com/dsr4ai/miva-bdn-sdk#readme","bugs":{"url":"https://github.com/dsr4ai/miva-bdn-sdk/issues"},"dist":{"shasum":"4775a11ef79beb546aafa109f5578d98d3e2a829","tarball":"https://registry.npmjs.org/@dsr4ai/miva-bdn-sdk/-/miva-bdn-sdk-0.0.7.tgz","fileCount":13,"integrity":"sha512-QUi3uIdPFoNdW9cs75vDzZ9CqjUALQMRcVEb1UHB+yErrZMB83jJoxQoQO6z7ClJkg5QT+qD5IRXAaphaW1Bdg==","signatures":[{"sig":"MEQCICsa++huOkJ/3izxkQPiBtKnZeEG4D5UIVbEMn6Qy1aoAiBo7ujyuZVecfXVxN+zJitQ9+zdlOXGqYh/Gbu9ugIBaw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41176},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.js","require":"./dist/index.umd.js"}},"gitHead":"5d029e8fdbffb70fd1b5648e0ee829e1c3b68105","private":false,"scripts":{"dev":"vite","lint":"eslint .","build":"tsc -p ./tsconfig.build.json && vite build","preview":"vite preview","release":"npm run lint && npm run build && npm publish --access public"},"_npmUser":{"name":"memochou1993","email":"memochou1993@gmail.com"},"repository":{"url":"git+https://github.com/dsr4ai/miva-bdn-sdk.git","type":"git"},"_npmVersion":"11.8.0","description":"MivaBDN SDK provides an easy way to embed the **Miva BDN iframe** in a web application.","directories":{},"_nodeVersion":"22.21.1","_hasShrinkwrap":false,"devDependencies":{"vite":"^4.4.5","eslint":"^9.11.0","vitest":"^2.1.1","globals":"^15.9.0","@eslint/js":"^9.11.0","typescript":"^5.5.4","@types/node":"^22.5.5","vite-plugin-dts":"^4.2.1","@types/eslint__js":"^8.42.3","typescript-eslint":"^8.6.0","@stylistic/eslint-plugin":"^2.9.0"},"_npmOperationalInternal":{"tmp":"tmp/miva-bdn-sdk_0.0.7_1774771206450_0.3534755147355988","host":"s3://npm-registry-packages-npm-production"}},"0.0.8":{"name":"@dsr4ai/miva-bdn-sdk","version":"0.0.8","license":"MIT","_id":"@dsr4ai/miva-bdn-sdk@0.0.8","maintainers":[{"name":"memochou1993","email":"memochou1993@gmail.com"}],"homepage":"https://github.com/dsr4ai/miva-bdn-sdk#readme","bugs":{"url":"https://github.com/dsr4ai/miva-bdn-sdk/issues"},"dist":{"shasum":"ff719c13aeab5d77b3811c86ea23bd8ede937f68","tarball":"https://registry.npmjs.org/@dsr4ai/miva-bdn-sdk/-/miva-bdn-sdk-0.0.8.tgz","fileCount":13,"integrity":"sha512-kIJGCJr32c/2O9jepta0fBNLqVzd6QUxvanoA5Ecg3TLn42wSqjRGQbVlKLBPC8wC42C6Uyt1DUPBVODly/6kQ==","signatures":[{"sig":"MEQCIBVwvu8Bf4kvfQI8bY4Shc/WF8aGzbyquOwvq2tQFgezAiBXapU5Ib9Gi0jBPkm9KyZaNtIfe+E7UNCcLhzsOLUHdw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":31112},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.js","require":"./dist/index.umd.js"}},"gitHead":"80a73f6fb8b32655e7aaf1bea1f4c4310db4d83f","private":false,"scripts":{"dev":"vite","lint":"eslint .","build":"tsc -p ./tsconfig.build.json && vite build","preview":"vite preview","release":"npm run lint && npm run build && npm publish --access public"},"_npmUser":{"name":"memochou1993","email":"memochou1993@gmail.com"},"repository":{"url":"git+https://github.com/dsr4ai/miva-bdn-sdk.git","type":"git"},"_npmVersion":"11.8.0","description":"MivaBDN SDK provides an easy way to embed the **Miva BDN iframe** in a web application.","directories":{},"_nodeVersion":"22.21.1","_hasShrinkwrap":false,"devDependencies":{"vite":"^4.4.5","eslint":"^9.11.0","vitest":"^2.1.1","globals":"^15.9.0","@eslint/js":"^9.11.0","typescript":"^5.5.4","@types/node":"^22.5.5","vite-plugin-dts":"^4.2.1","@types/eslint__js":"^8.42.3","typescript-eslint":"^8.6.0","@stylistic/eslint-plugin":"^2.9.0"},"_npmOperationalInternal":{"tmp":"tmp/miva-bdn-sdk_0.0.8_1774774277942_0.550424251949803","host":"s3://npm-registry-packages-npm-production"}},"0.0.9":{"name":"@dsr4ai/miva-bdn-sdk","version":"0.0.9","license":"MIT","_id":"@dsr4ai/miva-bdn-sdk@0.0.9","maintainers":[{"name":"memochou1993","email":"memochou1993@gmail.com"}],"homepage":"https://github.com/dsr4ai/miva-bdn-sdk#readme","bugs":{"url":"https://github.com/dsr4ai/miva-bdn-sdk/issues"},"dist":{"shasum":"becafb19b4b7ef10df13071e337c5f13b5daae4c","tarball":"https://registry.npmjs.org/@dsr4ai/miva-bdn-sdk/-/miva-bdn-sdk-0.0.9.tgz","fileCount":12,"integrity":"sha512-dFtHOGZiyez2B8whpKf0PZPNUZKOJ4sGmU57PocQsI28Nfh9kdcNaR823WiSfMHTXIbUHLfGtiyPgS00x83E9A==","signatures":[{"sig":"MEUCIQDn3CrwaWUT3vIR8eBnINlarqT5WUV7GAAAekVPk9IhXAIgE1SzR2PiGDFROdRa94H5pMZP6qZkD7Vp8UBJphCuBOo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":30077},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.js","require":"./dist/index.umd.js"}},"gitHead":"54c3b7d92f3bab574eea1b2417f8413d6162a813","private":false,"scripts":{"dev":"vite","lint":"eslint .","build":"tsc -p ./tsconfig.build.json && vite build","preview":"vite preview","release":"npm run lint && npm run build && npm publish --access public"},"_npmUser":{"name":"memochou1993","email":"memochou1993@gmail.com"},"repository":{"url":"git+https://github.com/dsr4ai/miva-bdn-sdk.git","type":"git"},"_npmVersion":"11.8.0","description":"MivaBDN SDK provides an easy way to embed the **Miva BDN iframe** in a web application.","directories":{},"_nodeVersion":"22.21.1","_hasShrinkwrap":false,"devDependencies":{"vite":"^4.4.5","eslint":"^9.11.0","vitest":"^2.1.1","globals":"^15.9.0","@eslint/js":"^9.11.0","typescript":"^5.5.4","@types/node":"^22.5.5","vite-plugin-dts":"^4.2.1","@types/eslint__js":"^8.42.3","typescript-eslint":"^8.6.0","@stylistic/eslint-plugin":"^2.9.0"},"_npmOperationalInternal":{"tmp":"tmp/miva-bdn-sdk_0.0.9_1774933797849_0.9270252056130361","host":"s3://npm-registry-packages-npm-production"}},"0.0.10":{"name":"@dsr4ai/miva-bdn-sdk","version":"0.0.10","license":"MIT","_id":"@dsr4ai/miva-bdn-sdk@0.0.10","maintainers":[{"name":"memochou1993","email":"memochou1993@gmail.com"}],"homepage":"https://github.com/dsr4ai/miva-bdn-sdk#readme","bugs":{"url":"https://github.com/dsr4ai/miva-bdn-sdk/issues"},"dist":{"shasum":"854e55226549935df54fb4ac7115b83a7ca4d1b7","tarball":"https://registry.npmjs.org/@dsr4ai/miva-bdn-sdk/-/miva-bdn-sdk-0.0.10.tgz","fileCount":12,"integrity":"sha512-chg42Ki8V2T7IvJic4n6bXs2UYw1l/cYRh/QopLW0ow+2MVFIGlEp/PqAq0DdLHwWGZEJOnGcrVBVKcQbtfq9Q==","signatures":[{"sig":"MEYCIQDyqWRVC0iGIqzAWtEXlQaohEDfXxVWVpxyeXzNmtgaRwIhAKmr7qj/NRsuCZWgQU3QLggag/2l9E/L/fpS5kjssHHX","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":34962},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.js","require":"./dist/index.umd.js"}},"gitHead":"44471fd473f0f31ed37a14ab47140afbc014023c","private":false,"scripts":{"dev":"vite","lint":"eslint .","build":"tsc -p ./tsconfig.build.json && vite build","preview":"vite preview","release":"npm run lint && npm run build && npm publish --access public"},"_npmUser":{"name":"memochou1993","email":"memochou1993@gmail.com"},"repository":{"url":"git+https://github.com/dsr4ai/miva-bdn-sdk.git","type":"git"},"_npmVersion":"11.12.1","description":"MivaBDN SDK provides an easy way to embed the **Miva BDN iframe** in a web application.","directories":{},"_nodeVersion":"24.15.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^4.4.5","eslint":"^9.11.0","vitest":"^2.1.1","globals":"^15.9.0","@eslint/js":"^9.11.0","typescript":"^5.5.4","@types/node":"^22.5.5","vite-plugin-dts":"^4.2.1","@types/eslint__js":"^8.42.3","typescript-eslint":"^8.6.0","@stylistic/eslint-plugin":"^2.9.0"},"_npmOperationalInternal":{"tmp":"tmp/miva-bdn-sdk_0.0.10_1783322253105_0.6271216102556436","host":"s3://npm-registry-packages-npm-production"}},"0.0.11":{"name":"@dsr4ai/miva-bdn-sdk","version":"0.0.11","license":"MIT","_id":"@dsr4ai/miva-bdn-sdk@0.0.11","maintainers":[{"name":"memochou1993","email":"memochou1993@gmail.com"}],"homepage":"https://github.com/dsr4ai/miva-bdn-sdk#readme","bugs":{"url":"https://github.com/dsr4ai/miva-bdn-sdk/issues"},"dist":{"shasum":"46c07a60dc0eb623b41b86a6dc27dd4337311496","tarball":"https://registry.npmjs.org/@dsr4ai/miva-bdn-sdk/-/miva-bdn-sdk-0.0.11.tgz","fileCount":12,"integrity":"sha512-d5bW3274XYnDXjkt+agZwwjIsk1oyZ7Yzn1of1wPAcVWsHUhDGMPamllQMHSyaoRYqnuF6p+DQwv9uiwApMbOw==","signatures":[{"sig":"MEUCIFk6jiefZx2TrH3hd80tZcz9FuyXZkIn93eo2iiD4QC+AiEAgB6aJMGrFlhAXGcKdUDpsPmGIrPEa+BupwTaqBJIcd0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35027},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.js","require":"./dist/index.umd.js"}},"gitHead":"8f17eca446daaa8a4914d6769d1ab004a158f29f","private":false,"scripts":{"dev":"vite","lint":"eslint .","build":"tsc -p ./tsconfig.build.json && vite build","preview":"vite preview","release":"npm run lint && npm run build && npm publish --access public"},"_npmUser":{"name":"memochou1993","email":"memochou1993@gmail.com"},"repository":{"url":"git+https://github.com/dsr4ai/miva-bdn-sdk.git","type":"git"},"_npmVersion":"11.12.1","description":"MivaBDN SDK provides an easy way to embed the **Miva BDN iframe** in a web application.","directories":{},"_nodeVersion":"24.15.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^4.4.5","eslint":"^9.11.0","vitest":"^2.1.1","globals":"^15.9.0","@eslint/js":"^9.11.0","typescript":"^5.5.4","@types/node":"^22.5.5","vite-plugin-dts":"^4.2.1","@types/eslint__js":"^8.42.3","typescript-eslint":"^8.6.0","@stylistic/eslint-plugin":"^2.9.0"},"_npmOperationalInternal":{"tmp":"tmp/miva-bdn-sdk_0.0.11_1786898591629_0.3765797361156866","host":"s3://npm-registry-packages-npm-production"}},"0.0.12":{"name":"@dsr4ai/miva-bdn-sdk","private":false,"version":"0.0.12","license":"MIT","type":"module","scripts":{"dev":"vite","build":"tsc -p ./tsconfig.build.json && vite build","preview":"vite preview","lint":"eslint .","release":"npm run lint && npm run build && npm publish --access public"},"devDependencies":{"@eslint/js":"^9.11.0","@stylistic/eslint-plugin":"^2.9.0","@types/eslint__js":"^8.42.3","@types/node":"^22.5.5","eslint":"^9.11.0","globals":"^15.9.0","typescript":"^5.5.4","typescript-eslint":"^8.6.0","vite":"^4.4.5","vite-plugin-dts":"^4.2.1","vitest":"^2.1.1"},"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.js","require":"./dist/index.umd.js"}},"repository":{"type":"git","url":"git+https://github.com/dsr4ai/miva-bdn-sdk.git"},"gitHead":"87e91f0041782eb286d3d409d199ffd129f622ca","_id":"@dsr4ai/miva-bdn-sdk@0.0.12","description":"MivaBDN SDK provides an easy way to embed the **Miva BDN iframe** in a web application.","bugs":{"url":"https://github.com/dsr4ai/miva-bdn-sdk/issues"},"homepage":"https://github.com/dsr4ai/miva-bdn-sdk#readme","_nodeVersion":"24.15.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-kjcYxaZewHicDG+IDaryGejZ6o/aIczwMTJB6E4lXDrapIN1Aai23EHelpC7/EFeWfyrDaLKIa4ZFgggCnaP/w==","shasum":"c64fd92fece7bb96510249532e7891f8ca2a459f","tarball":"https://registry.npmjs.org/@dsr4ai/miva-bdn-sdk/-/miva-bdn-sdk-0.0.12.tgz","fileCount":12,"unpackedSize":35582,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDoDphPN2LaXpDedmbDZE858RlIydFgm3mh6gG1Q0M3hQIgHrP9rifmSUVybDswqOds6Nvh6ucreWe2FMvUXjqH/ys="}]},"_npmUser":{"name":"memochou1993","email":"memochou1993@gmail.com"},"directories":{},"maintainers":[{"name":"memochou1993","email":"memochou1993@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/miva-bdn-sdk_0.0.12_1786980391997_0.997484224507805"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-06T05:23:25.367Z","modified":"2026-08-17T15:26:32.344Z","0.0.1":"2025-11-06T05:23:25.629Z","0.0.2":"2025-11-07T10:44:29.702Z","0.0.3":"2025-12-06T10:35:59.245Z","0.0.4":"2026-01-14T03:41:56.461Z","0.0.5":"2026-03-08T16:22:50.665Z","0.0.6":"2026-03-09T10:25:44.741Z","0.0.7":"2026-03-29T08:00:06.598Z","0.0.8":"2026-03-29T08:51:18.136Z","0.0.9":"2026-03-31T05:09:58.018Z","0.0.10":"2026-07-06T07:17:33.280Z","0.0.11":"2026-08-16T16:43:11.821Z","0.0.12":"2026-08-17T15:26:32.156Z"},"bugs":{"url":"https://github.com/dsr4ai/miva-bdn-sdk/issues"},"license":"MIT","homepage":"https://github.com/dsr4ai/miva-bdn-sdk#readme","repository":{"type":"git","url":"git+https://github.com/dsr4ai/miva-bdn-sdk.git"},"description":"MivaBDN SDK provides an easy way to embed the **Miva BDN iframe** in a web application.","maintainers":[{"name":"memochou1993","email":"memochou1993@gmail.com"}],"readme":"# MivaBDN SDK\n\nMivaBDN SDK provides an easy way to embed the **Miva BDN iframe** in a web application.\n\n## Installation\n\n```bash\nnpm install @dsr4ai/miva-bdn-sdk\n```\n\n## Getting Started\n\n### Using with ES Modules\n\nTo get started with ES Modules, simply import the module and use it in your code:\n\n```js\nimport MivaBDN from '@dsr4ai/miva-bdn-sdk';\n```\n\n### Using with UMD Modules\n\nAlternatively, if you're using UMD modules, include the script in your HTML file:\n\n```html\n<script src=\"https://unpkg.com/@dsr4ai/miva-bdn-sdk/dist/index.umd.js\"></script>\n```\n\nAfter importing, you can initialize and use the SDK as follows:\n\n```js\nconst mivaBDN = new MivaBDN({\n  appId: 'your-app-id', // your Miva BDN app ID\n  target: '#app',       // container selector\n  debug: true,          // optional debug mode\n  locale: 'ja',         // optional locale\n});\n\n// Initializes the iframe and starts message listening\nmivaBDN.init();\n\n// Removes the iframe and event listeners when no longer needed\n// mivaBDN.destroy();\n```\n\n### Manual Integration\n\nFor manual integration, refer to the implementation in [`src/manual.js`](src/manual.js).\n\n## Usage\n\n### Loading a Single Book\n\nYou can load a single book in the Miva BDN iframe by specifying the `path` and `sourceId` when initializing the `MivaBDN` instance.\n\n```js\nconst mivaBDN = new MivaBDN({\n  appId: 'your-app-id',  // your Miva BDN app ID\n  target: '#app',        // container selector\n  debug: true,           // optional debug mode\n  locale: 'ja',          // optional locale\n  path: '/library',      // Path inside the iframe to load the book\n  sourceId: 'source-id', // ID of the book to load\n});\n\n// Initializes the iframe and starts message listening\nmivaBDN.init();\n```\n\n## Single Sign-On (SSO)\n\nIf your users are already authenticated in your own system, you can sign them\ninto the embedded Miva application automatically by passing a partner-signed\n`token`. When a `token` is present the app skips anonymous sign-in and exchanges\nthe token for a session.\n\n```js\nconst mivaBDN = new MivaBDN({\n  appId: 'your-app-id',\n  target: '#app',\n  token: '<signed-jwt-from-your-backend>', // short-lived, single-use RS256 JWT\n  onError: (error) => {\n    // Fired if the token is expired, replayed, or invalid.\n    // `error` is a MivaBDNError; check `error.code` for the reason.\n    console.error('Miva SSO failed:', error.code, error.message);\n  },\n});\n\nmivaBDN.init();\n```\n\nNotes:\n\n- The `token` is delivered to the iframe over `postMessage`; it is never placed\n  in the iframe URL.\n- Generate the token on your **backend** and keep it short-lived (a few minutes)\n  and single-use. Contact Miva to register your issuer's public key and receive\n  your `appId` and the expected `aud` value.\n\n## Analytics Tracking\n\n### Default Behavior\n\nThe SDK does not send any data to Miva's analytics services by default. The `enableOfficialTracking` option is set to `false` by default. Events are forwarded to your page's `dataLayer` with a `miva.` prefix, allowing you to track them with your own analytics tools if desired.\n\n### Enabling Official Tracking\n\nWe recommend enabling official tracking to help us improve the application for everyone.\n\nWhen you set `enableOfficialTracking` to `true`, you help Miva understand how users interact with the content, allowing us to:\n\n- Optimize reading experience and performance\n- Identify and fix issues faster\n- Prioritize features that users actually need\n- Improve content recommendations\n\n**Privacy protection:**\n\n- Only iframe events are sent to Miva with a `miva.` prefix\n- Your page's own analytics events stay private\n- Events get namespace isolation to prevent data pollution\n\n```js\nconst mivaBDN = new MivaBDN({\n  appId: 'your-app-id',\n  target: '#app',\n  enableOfficialTracking: true,\n});\n```\n\n**Important:** Review your privacy policy and obtain necessary user consent before enabling this option.\n\n### Tracking with Your Own GTM\n\nThe SDK forwards all iframe events to `dataLayer` with a `miva.` prefix. If you have your own GTM loaded on the page, configure triggers to listen for `miva.*` events (e.g., Custom Event trigger with regex `^miva\\..*`).\n\n## API\n\n### `new MivaBDN(options: MivaBDNOptions)`\n\nCreates a new `MivaBDN` instance that manages the iframe.\n\n#### Options\n\nProperty | Type | Description\n--- | --- | ---\n`appId` | `string` | Unique application identifier.\n`baseUrl` | `string` | Base URL of the Miva BDN loaded in the iframe. Default: `https://miva.bookai.com`.\n`debug` | `boolean` | Enables verbose logging.\n`enableOfficialTracking` | `boolean` | Controls whether to send usage data to Miva's official GTM. Only iframe events are sent to Miva (with `miva.` prefix isolation). Your page's events stay private. Default: `false`.\n`locale` | `string` | Locale passed to the Miva application.\n`onConfirmed` | `(data: unknown, instance: MivaBDN) => void` | Called when the iframe signals a `confirmed` event.\n`onError` | `(error: MivaBDNError, instance: MivaBDN) => void` | Called when the iframe signals an `error` event (e.g. an expired, replayed, or invalid SSO `token`). Receives a `MivaBDNError`; inspect `error.code` for the reason.\n`onReady` | `(data: unknown, instance: MivaBDN) => void` | Called when the iframe signals a `ready` event.\n`path` | `string` | The relative path to be appended to baseUrl when constructing the iframe URL. Should not include protocol or hostname.\n`region` | `string` | ISO 3166 country code overriding the Miva application's geo-detected curation region (e.g. for previews).\n`sourceId` | `string \\| string[]` | The identifier(s) provided to the Miva application as content source metadata. Can be a single ID string or an array for multiple sources.\n`target` | `HTMLElement \\| string` | DOM element or CSS selector where the iframe is mounted.\n`token` | `string` | A partner-signed SSO token (JWT). When provided, the embedded app exchanges it for a session instead of signing in anonymously. Delivered to the iframe over `postMessage` (never placed in the URL). See [Single Sign-On](#single-sign-on-sso).\n\n### Methods\n\n- `init(): void`  \n  Initializes the iframe and starts message listening.\n\n- `destroy(): void`  \n  Removes the iframe and event listeners when no longer needed.\n\n## Error Handling\n\nSetup errors — such as missing required options or an invalid target — are thrown synchronously from `init()` (not the constructor), so a single `try/catch` around `init()` covers them:\n\n```js\ntry {\n  new MivaBDN({ appId, target }).init();\n} catch (error) {\n  // error is a MivaBDNError; check error.code (e.g. 'missing_app_id').\n}\n```\n\nRuntime errors reported by the embedded application (e.g. SSO failures) are delivered asynchronously to [`onError`](#single-sign-on-sso). Both channels deliver a `MivaBDNError` carrying an optional `code`.\n\n## Security\n\nThe SDK implements multiple security measures:\n\n1. **Origin Verification**: All incoming `postMessage` events are verified against the trusted iframe origin. Messages from untrusted sources are ignored.\n\n2. **Event Namespace Isolation**: GTM events from iframe are automatically prefixed with `miva.` to prevent accidental processing by your GTM triggers.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}