{"_id":"@dscvr-one/canvas-client-sdk","_rev":"15-1846f3149f94a538cce5c52faff7ea97","name":"@dscvr-one/canvas-client-sdk","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.2":{"name":"@dscvr-one/canvas-client-sdk","version":"1.0.2","keywords":["dscvr","canvas","frontend","client","typescript","sdk","rpc"],"license":"MIT","_id":"@dscvr-one/canvas-client-sdk@1.0.2","maintainers":[{"name":"jimmy-dscvr","email":"jimmy@dscvr.one"},{"name":"chandra-dscvr","email":"chandra@dscvr.one"},{"name":"rckprtr_dscvr","email":"rick@dscvr.one"},{"name":"vinayakkulkarni","email":"inbox.vinayak@gmail.com"}],"homepage":"https://github.com/dscvr-one/dscvr-canvas/libs/canvas-client-sdk#readme","dist":{"shasum":"715ec0ae66c5cb5370d4fb3b8e9fcd78af0c91b8","tarball":"https://registry.npmjs.org/@dscvr-one/canvas-client-sdk/-/canvas-client-sdk-1.0.2.tgz","fileCount":8,"integrity":"sha512-nlvxx+KH0vzF/eyVIz0W3nVKBrm4PiR8i9nglW5RUqZAquMnZ2tjUdSPPnLiPed6PsgxDjADXMSMEDbtccts8w==","signatures":[{"sig":"MEYCIQDIgvD2MbzRaCLimbB1qVA4VxGRHgtGmGRUBhzNfHLCgwIhAKuKSDEjWSC0Fv5Yf5ZFW3eWoQ1xr9Z2AYBAyNjmoDiM","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":28867},"main":"./dist/index.js","type":"module","_from":"file:dscvr-one-canvas-client-sdk-1.0.2.tgz","types":"./dist/index.d.ts","scripts":{"doc":"typedoc","build":"tsup","lint:js":"npm run lint:eslint && npm run lint:prettier","release":"shipjs prepare","lint:eslint":"eslint \"{,!(node_modules|dist|static)/**/}*.{js,ts}\" --ignore-path .gitignore","release:dry":"shipjs prepare --dry-run","release:auto":"shipjs prepare --yes","lint:prettier":"prettier --check \"{,!(node_modules|dist|static)/**/}*.{js,ts}\" --ignore-path .gitignore"},"_npmUser":{"name":"jimmy-dscvr","email":"jimmy@dscvr.one"},"_resolved":"/private/var/folders/9x/d3wh4sxd4qv9t7d5s60ll0zc0000gp/T/eb34cc66dfbeb0b45c3c3a922e9c3b8b/dscvr-one-canvas-client-sdk-1.0.2.tgz","_integrity":"sha512-nlvxx+KH0vzF/eyVIz0W3nVKBrm4PiR8i9nglW5RUqZAquMnZ2tjUdSPPnLiPed6PsgxDjADXMSMEDbtccts8w==","deprecated":"this package has been deprecated","_npmVersion":"10.2.4","description":"SDK for iframes apps to connect to dscvr host using postMessage rpc","directories":{},"_nodeVersion":"21.4.0","dependencies":{"eventemitter3":"^5.0.1","@dscvr-one/canvas-interface":"1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.2","eslint":"^8.57.0","shipjs":"0.26.3","ts-node":"^10.9.2","typedoc":"^0.26.3","typescript":"^5.3.3","@types/node":"^20","lint-staged":"^15.2.2","@commitlint/cli":"^19.1.0","typedoc-plugin-zod":"^1.2.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^7.3.1","@commitlint/config-conventional":"^19.1.0","@typescript-eslint/eslint-plugin":"^7.3.1"},"_npmOperationalInternal":{"tmp":"tmp/canvas-client-sdk_1.0.2_1721070913684_0.6519581504242551","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"@dscvr-one/canvas-client-sdk","version":"1.0.5","keywords":["dscvr","canvas","frontend","client","typescript","sdk","rpc"],"license":"MIT","_id":"@dscvr-one/canvas-client-sdk@1.0.5","maintainers":[{"name":"jimmy-dscvr","email":"jimmy@dscvr.one"},{"name":"chandra-dscvr","email":"chandra@dscvr.one"},{"name":"rckprtr_dscvr","email":"rick@dscvr.one"},{"name":"vinayakkulkarni","email":"inbox.vinayak@gmail.com"}],"homepage":"https://github.com/dscvr-one/dscvr-canvas/tree/main/libs/canvas-client-sdk#readme","dist":{"shasum":"dddac8f878af87cb9678b9ed2c1631d75b024f9c","tarball":"https://registry.npmjs.org/@dscvr-one/canvas-client-sdk/-/canvas-client-sdk-1.0.5.tgz","fileCount":8,"integrity":"sha512-InwU6YQLGCp39wU/zzloLvBqYU2v4PJh1uWUhxbAsu0mgCuzGG4QnQKxlAM+8i6pR6uN8xIhgEohhFyhj6d/tg==","signatures":[{"sig":"MEUCIQChHxAY5kK9u+niQE6IjMBsl5fS5OGET2nOU6OkvbUgSAIgesD+BakQsdYIl4fTq49g+ffwWMMBn4KgkW1XBerdTRQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29368},"main":"./dist/index.js","type":"module","_from":"file:dscvr-one-canvas-client-sdk-1.0.5.tgz","types":"./dist/index.d.ts","scripts":{"doc":"typedoc","build":"tsup","lint:js":"npm run lint:eslint && npm run lint:prettier","release":"shipjs prepare","lint:eslint":"eslint \"{,!(node_modules|dist|static)/**/}*.{js,ts}\" --ignore-path .gitignore","release:dry":"shipjs prepare --dry-run","release:auto":"shipjs prepare --yes","lint:prettier":"prettier --check \"{,!(node_modules|dist|static)/**/}*.{js,ts}\" --ignore-path .gitignore"},"_npmUser":{"name":"jimmy-dscvr","email":"jimmy@dscvr.one"},"_resolved":"/private/var/folders/9x/d3wh4sxd4qv9t7d5s60ll0zc0000gp/T/247202600ba60e2884ec0977b59d137d/dscvr-one-canvas-client-sdk-1.0.5.tgz","_integrity":"sha512-InwU6YQLGCp39wU/zzloLvBqYU2v4PJh1uWUhxbAsu0mgCuzGG4QnQKxlAM+8i6pR6uN8xIhgEohhFyhj6d/tg==","_npmVersion":"10.2.4","description":"SDK for iframes apps to connect to dscvr host using postMessage rpc","directories":{},"_nodeVersion":"21.4.0","dependencies":{"eventemitter3":"^5.0.1","@dscvr-one/canvas-interface":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.2","eslint":"^8.57.0","shipjs":"0.26.3","ts-node":"^10.9.2","typedoc":"^0.26.3","typescript":"^5.3.3","@types/node":"^20","lint-staged":"^15.2.2","@commitlint/cli":"^19.1.0","typedoc-plugin-zod":"^1.2.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^7.3.1","@commitlint/config-conventional":"^19.1.0","@typescript-eslint/eslint-plugin":"^7.3.1"},"_npmOperationalInternal":{"tmp":"tmp/canvas-client-sdk_1.0.5_1721249055735_0.821899544754221","host":"s3://npm-registry-packages"}},"1.0.6":{"name":"@dscvr-one/canvas-client-sdk","version":"1.0.6","keywords":["dscvr","canvas","frontend","client","typescript","sdk","rpc"],"license":"MIT","_id":"@dscvr-one/canvas-client-sdk@1.0.6","maintainers":[{"name":"jimmy-dscvr","email":"jimmy@dscvr.one"},{"name":"chandra-dscvr","email":"chandra@dscvr.one"},{"name":"rckprtr_dscvr","email":"rick@dscvr.one"},{"name":"vinayakkulkarni","email":"inbox.vinayak@gmail.com"}],"homepage":"https://github.com/dscvr-one/dscvr-canvas/tree/main/libs/canvas-client-sdk#readme","dist":{"shasum":"24ce8d050be9a611c5a6ca25cd4912795bcf05ca","tarball":"https://registry.npmjs.org/@dscvr-one/canvas-client-sdk/-/canvas-client-sdk-1.0.6.tgz","fileCount":8,"integrity":"sha512-q37jG4EZ/tYauL03ERtFwiYRbiYrU7uRwShm7iHNnR0lv6zgwa4dfTTMsohd3KZprigLkv1EBmb+hmTWOapTvw==","signatures":[{"sig":"MEUCIGAdQEM0AQHqFJ04f5KfpXGPTK49MD1OrhBShzmEW9ZHAiEAu2l+fWhzOkHynik8vJZyLBjFMKqK8aBKIqv3tgBNW7c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27257},"main":"./dist/index.js","type":"module","_from":"file:dscvr-one-canvas-client-sdk-1.0.6.tgz","types":"./dist/index.d.ts","scripts":{"doc":"typedoc","build":"tsup","lint:js":"npm run lint:eslint && npm run lint:prettier","release":"shipjs prepare","lint:eslint":"eslint \"{,!(node_modules|dist|static)/**/}*.{js,ts}\" --ignore-path .gitignore","release:dry":"shipjs prepare --dry-run","release:auto":"shipjs prepare --yes","lint:prettier":"prettier --check \"{,!(node_modules|dist|static)/**/}*.{js,ts}\" --ignore-path .gitignore"},"_npmUser":{"name":"jimmy-dscvr","email":"jimmy@dscvr.one"},"_resolved":"/private/var/folders/9x/d3wh4sxd4qv9t7d5s60ll0zc0000gp/T/7209ee0a0a319b1779d4b50a98a68534/dscvr-one-canvas-client-sdk-1.0.6.tgz","_integrity":"sha512-q37jG4EZ/tYauL03ERtFwiYRbiYrU7uRwShm7iHNnR0lv6zgwa4dfTTMsohd3KZprigLkv1EBmb+hmTWOapTvw==","_npmVersion":"10.2.4","description":"SDK for iframes apps to connect to dscvr host using postMessage rpc","directories":{},"_nodeVersion":"21.4.0","dependencies":{"eventemitter3":"^5.0.1","@dscvr-one/canvas-interface":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.2","eslint":"^8.57.0","shipjs":"0.26.3","ts-node":"^10.9.2","typedoc":"^0.26.3","typescript":"^5.3.3","@types/node":"^20","lint-staged":"^15.2.2","@commitlint/cli":"^19.1.0","typedoc-plugin-zod":"^1.2.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^7.3.1","@commitlint/config-conventional":"^19.1.0","@typescript-eslint/eslint-plugin":"^7.3.1"},"_npmOperationalInternal":{"tmp":"tmp/canvas-client-sdk_1.0.6_1721344103445_0.13465232577942876","host":"s3://npm-registry-packages"}},"1.0.7":{"name":"@dscvr-one/canvas-client-sdk","version":"1.0.7","keywords":["dscvr","canvas","frontend","client","typescript","sdk","rpc"],"license":"MIT","_id":"@dscvr-one/canvas-client-sdk@1.0.7","maintainers":[{"name":"jimmy-dscvr","email":"jimmy@dscvr.one"},{"name":"chandra-dscvr","email":"chandra@dscvr.one"},{"name":"rckprtr_dscvr","email":"rick@dscvr.one"},{"name":"vinayakkulkarni","email":"inbox.vinayak@gmail.com"}],"homepage":"https://github.com/dscvr-one/dscvr-canvas/tree/main/libs/canvas-client-sdk#readme","dist":{"shasum":"82d82e81335339b9649f00dfe298462cd2e54671","tarball":"https://registry.npmjs.org/@dscvr-one/canvas-client-sdk/-/canvas-client-sdk-1.0.7.tgz","fileCount":8,"integrity":"sha512-l5AKxBgC/IrwoE020u1LWxSKpB6nbY/cC8YpDe8rCqKxa8zDuoxGJkvZHesVwzFyk0e76QO1kcuDOcAcXI5B6g==","signatures":[{"sig":"MEUCIDNP4Ld5RFQipY0UwRQiDcSXTdXYYtdpdYeqyPXYNjjPAiEA/l6o3DLFc63QPwH2MUOvi2apt/KP7GQp0OVfOV0BbQo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33513},"main":"./dist/index.js","type":"module","_from":"file:dscvr-one-canvas-client-sdk-1.0.7.tgz","types":"./dist/index.d.ts","scripts":{"doc":"typedoc","build":"tsup","lint:js":"npm run lint:eslint && npm run lint:prettier","release":"shipjs prepare","lint:eslint":"eslint \"{,!(node_modules|dist|static)/**/}*.{js,ts}\" --ignore-path .gitignore","release:dry":"shipjs prepare --dry-run","release:auto":"shipjs prepare --yes","lint:prettier":"prettier --check \"{,!(node_modules|dist|static)/**/}*.{js,ts}\" --ignore-path .gitignore"},"_npmUser":{"name":"jimmy-dscvr","email":"jimmy@dscvr.one"},"_resolved":"/private/var/folders/9x/d3wh4sxd4qv9t7d5s60ll0zc0000gp/T/f691328beb7c6819587f0e71b1e9bbf4/dscvr-one-canvas-client-sdk-1.0.7.tgz","_integrity":"sha512-l5AKxBgC/IrwoE020u1LWxSKpB6nbY/cC8YpDe8rCqKxa8zDuoxGJkvZHesVwzFyk0e76QO1kcuDOcAcXI5B6g==","_npmVersion":"10.2.4","description":"SDK for iframes apps to connect to dscvr host using postMessage rpc","directories":{},"_nodeVersion":"21.4.0","dependencies":{"eventemitter3":"^5.0.1","@dscvr-one/canvas-interface":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.2","eslint":"^8.57.0","shipjs":"0.26.3","ts-node":"^10.9.2","typedoc":"^0.26.3","typescript":"^5.3.3","@types/node":"^20","lint-staged":"^15.2.2","@commitlint/cli":"^19.1.0","typedoc-plugin-zod":"^1.2.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^7.3.1","@commitlint/config-conventional":"^19.1.0","@typescript-eslint/eslint-plugin":"^7.3.1"},"_npmOperationalInternal":{"tmp":"tmp/canvas-client-sdk_1.0.7_1722283854205_0.272682211264754","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@dscvr-one/canvas-client-sdk","version":"1.1.0","keywords":["dscvr","canvas","frontend","client","typescript","sdk","rpc"],"license":"MIT","_id":"@dscvr-one/canvas-client-sdk@1.1.0","maintainers":[{"name":"jimmy-dscvr","email":"jimmy@dscvr.one"},{"name":"chandra-dscvr","email":"chandra@dscvr.one"},{"name":"rckprtr_dscvr","email":"rick@dscvr.one"},{"name":"vinayakkulkarni","email":"inbox.vinayak@gmail.com"}],"homepage":"https://github.com/dscvr-one/dscvr-canvas/tree/main/libs/canvas-client-sdk#readme","dist":{"shasum":"85c08d665fb594fd89594e7c7546a9e3a0ebefc5","tarball":"https://registry.npmjs.org/@dscvr-one/canvas-client-sdk/-/canvas-client-sdk-1.1.0.tgz","fileCount":8,"integrity":"sha512-9ooMFjmJxPwYqIxyuztVcttLcYHIyxmYnsdtLCZTR2C0DKkKpUy5GlVY1YTABu4z1PpYXH1byTF+kg/BKTsJjw==","signatures":[{"sig":"MEYCIQD6hsTrVoQUMz+H+usYvWlAqGtptMMgD398xpQqSUm6awIhAJqokqbdVVN31YZMe9RQ0jrVWLkSi8VtzMJBkFaeG93V","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38995},"main":"./dist/index.js","type":"module","_from":"file:dscvr-one-canvas-client-sdk-1.1.0.tgz","types":"./dist/index.d.ts","scripts":{"doc":"typedoc","build":"tsup","lint:js":"npm run lint:eslint && npm run lint:prettier","release":"shipjs prepare","lint:eslint":"eslint \"{,!(node_modules|dist|static)/**/}*.{js,ts}\" --ignore-path .gitignore","release:dry":"shipjs prepare --dry-run","release:auto":"shipjs prepare --yes","lint:prettier":"prettier --check \"{,!(node_modules|dist|static)/**/}*.{js,ts}\" --ignore-path .gitignore"},"_npmUser":{"name":"jimmy-dscvr","email":"jimmy@dscvr.one"},"_resolved":"/private/var/folders/9x/d3wh4sxd4qv9t7d5s60ll0zc0000gp/T/56fe5ccfd01d534e11dc6e9d53917ff2/dscvr-one-canvas-client-sdk-1.1.0.tgz","_integrity":"sha512-9ooMFjmJxPwYqIxyuztVcttLcYHIyxmYnsdtLCZTR2C0DKkKpUy5GlVY1YTABu4z1PpYXH1byTF+kg/BKTsJjw==","_npmVersion":"10.2.4","description":"SDK for iframes apps to connect to dscvr host using postMessage rpc","directories":{},"_nodeVersion":"21.4.0","dependencies":{"eventemitter3":"^5.0.1","@dscvr-one/canvas-interface":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.2","eslint":"^8.57.0","shipjs":"0.26.3","ts-node":"^10.9.2","typedoc":"^0.26.3","typescript":"^5.3.3","@types/node":"^20","lint-staged":"^15.2.2","@commitlint/cli":"^19.1.0","typedoc-plugin-zod":"^1.2.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^7.3.1","@commitlint/config-conventional":"^19.1.0","@typescript-eslint/eslint-plugin":"^7.3.1"},"_npmOperationalInternal":{"tmp":"tmp/canvas-client-sdk_1.1.0_1723679669288_0.322823318908108","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"@dscvr-one/canvas-client-sdk","version":"1.1.1","keywords":["dscvr","canvas","frontend","client","typescript","sdk","rpc"],"license":"MIT","_id":"@dscvr-one/canvas-client-sdk@1.1.1","maintainers":[{"name":"jimmy-dscvr","email":"jimmy@dscvr.one"},{"name":"chandra-dscvr","email":"chandra@dscvr.one"},{"name":"rckprtr_dscvr","email":"rick@dscvr.one"},{"name":"vinayakkulkarni","email":"inbox.vinayak@gmail.com"}],"homepage":"https://github.com/dscvr-one/dscvr-canvas/tree/main/libs/canvas-client-sdk#readme","dist":{"shasum":"7194523a2951b1b3dbbf7e0fe8994ed3b507cd16","tarball":"https://registry.npmjs.org/@dscvr-one/canvas-client-sdk/-/canvas-client-sdk-1.1.1.tgz","fileCount":8,"integrity":"sha512-4px0p913KDO1ZNF6h2/MVRGabkvEmW90yXxKoCypWLedYxWFiI1FNjRjkRvuZQa2Y2C2YHN5FRhbKh5UXjjWGQ==","signatures":[{"sig":"MEUCICIFg6n2RucYVF4Bmqh4V4dyc+b3D9dXr/tl1tubTDZvAiEAz/m6K3nb80N4qy5wWJf7iBzBX2ISB/1D3d9Y1vo+Y08=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":45950},"main":"./dist/index.js","type":"module","_from":"file:dscvr-one-canvas-client-sdk-1.1.1.tgz","types":"./dist/index.d.ts","scripts":{"doc":"typedoc","build":"tsup","lint:js":"npm run lint:eslint && npm run lint:prettier","release":"shipjs prepare","lint:eslint":"eslint \"{,!(node_modules|dist|static)/**/}*.{js,ts}\" --ignore-path .gitignore","release:dry":"shipjs prepare --dry-run","release:auto":"shipjs prepare --yes","lint:prettier":"prettier --check \"{,!(node_modules|dist|static)/**/}*.{js,ts}\" --ignore-path .gitignore"},"_npmUser":{"name":"jimmy-dscvr","email":"jimmy@dscvr.one"},"_resolved":"/private/var/folders/9x/d3wh4sxd4qv9t7d5s60ll0zc0000gp/T/c1d88091ccf58b7f9718d7b6de530260/dscvr-one-canvas-client-sdk-1.1.1.tgz","_integrity":"sha512-4px0p913KDO1ZNF6h2/MVRGabkvEmW90yXxKoCypWLedYxWFiI1FNjRjkRvuZQa2Y2C2YHN5FRhbKh5UXjjWGQ==","_npmVersion":"10.2.4","description":"SDK for iframes apps to connect to dscvr host using postMessage rpc","directories":{},"_nodeVersion":"21.4.0","dependencies":{"eventemitter3":"^5.0.1","@dscvr-one/canvas-interface":"~1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.2","eslint":"^8.57.0","shipjs":"0.26.3","ts-node":"^10.9.2","typedoc":"^0.26.3","typescript":"^5.3.3","@types/node":"^20","lint-staged":"^15.2.2","@commitlint/cli":"^19.1.0","typedoc-plugin-zod":"^1.2.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^7.3.1","@commitlint/config-conventional":"^19.1.0","@typescript-eslint/eslint-plugin":"^7.3.1"},"_npmOperationalInternal":{"tmp":"tmp/canvas-client-sdk_1.1.1_1724976940592_0.954180797319429","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@dscvr-one/canvas-client-sdk","version":"2.0.0","description":"SDK for iframes apps to connect to dscvr host using postMessage rpc","type":"module","main":"src/index.ts","publishConfig":{"main":"./dist/index.js","types":"./dist/index.d.ts"},"homepage":"https://github.com/dscvr-one/dscvr-canvas/tree/main/libs/canvas-client-sdk#readme","scripts":{"build":"tsup","doc":"typedoc","release":"shipjs prepare","release:dry":"shipjs prepare --dry-run","release:auto":"shipjs prepare --yes"},"keywords":["dscvr","canvas","frontend","client","typescript","sdk","rpc"],"dependencies":{"@dscvr-one/canvas-interface":"~1.2.0","eventemitter3":"^5.0.1"},"license":"MIT","devDependencies":{"@commitlint/cli":"^19.1.0","@commitlint/config-conventional":"^19.1.0","@types/node":"^20","@typescript-eslint/eslint-plugin":"^7.3.1","@typescript-eslint/parser":"^7.3.1","eslint":"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","lint-staged":"^15.2.2","shipjs":"0.26.3","ts-node":"^10.9.2","tsup":"^8.0.2","typedoc":"^0.26.3","typedoc-plugin-zod":"^1.2.0","typescript":"^5.3.3"},"_id":"@dscvr-one/canvas-client-sdk@2.0.0","gitHead":"591551461edbf9adbdd6a223291e2c1b0dee10b1","_nodeVersion":"22.9.0","_npmVersion":"10.8.3","dist":{"integrity":"sha512-j7whL2tvFL3azt13SqzDlCdPl35hJCGKVmewXExvDOC6Hhh19SYsVtUMKtttH6p/v3xUwVRm4wBtZlt67zdpRQ==","shasum":"d6cdb2e0fcad2d874d2a49f844eaa17d87e50a33","tarball":"https://registry.npmjs.org/@dscvr-one/canvas-client-sdk/-/canvas-client-sdk-2.0.0.tgz","fileCount":9,"unpackedSize":48624,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDWd1pgodGn9iBhlijTqv64DJPXpmxmksCbz+H3li/OtAiAqCHuMDGQL9HhiQjZ2EA6Drs1QO0JitBoT9jzSTzbkMQ=="}]},"_npmUser":{"name":"chandra-dscvr","email":"chandra@dscvr.one"},"directories":{},"maintainers":[{"name":"jimmy-dscvr","email":"jimmy@dscvr.one"},{"name":"chandra-dscvr","email":"chandra@dscvr.one"},{"name":"rckprtr_dscvr","email":"rick@dscvr.one"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/canvas-client-sdk_2.0.0_1731696958803_0.6145447690256951"},"_hasShrinkwrap":false}},"time":{"created":"2024-07-15T19:15:13.572Z","modified":"2024-11-15T18:55:59.418Z","1.0.0":"2024-07-15T15:39:57.667Z","1.0.2":"2024-07-15T19:15:13.860Z","1.0.3":"2024-07-17T20:25:15.965Z","1.0.4":"2024-07-17T20:33:49.478Z","1.0.5":"2024-07-17T20:44:15.908Z","1.0.6":"2024-07-18T23:08:23.645Z","1.0.7":"2024-07-29T20:10:54.408Z","1.1.0":"2024-08-14T23:54:29.429Z","1.1.1":"2024-08-30T00:15:40.831Z","2.0.0":"2024-11-15T18:55:59.000Z"},"license":"MIT","homepage":"https://github.com/dscvr-one/dscvr-canvas/tree/main/libs/canvas-client-sdk#readme","keywords":["dscvr","canvas","frontend","client","typescript","sdk","rpc"],"description":"SDK for iframes apps to connect to dscvr host using postMessage rpc","maintainers":[{"name":"jimmy-dscvr","email":"jimmy@dscvr.one"},{"name":"chandra-dscvr","email":"chandra@dscvr.one"},{"name":"rckprtr_dscvr","email":"rick@dscvr.one"}],"readme":"# @dscvr-one/canvas-client-sdk\n\nThis SDK can be used by DSCVR Canvas Applications to communicate with the DSCVR Frontend.\n\nCurrent features include:\n\n- Get the current user and content.\n- Prompt the user to open an external link.\n- Execute wallet transactions.\n\n## Installation\n\nInstall with your favorite package manager:\n\n```bash\nnpm install @dscvr-one/canvas-client-sdk\n```\n\nyarn\n\n```bash\nyarn add @dscvr-one/canvas-client-sdk\n```\n\n## Usage\n\nTo use the SDK:\n\n1. Import `CanvasClient` and `CanvasInterface` into your typescript project:\n\n```typescript\nimport {\n  createCanvasClient,\n  type CanvasInterface,\n  type CanvasClient,\n} from '@dscvr-one/canvas-client-sdk';\n```\n\n2. Instantiate the `CanvasClient`:\n\n```typescript\nconst canvasClient = createCanvasClient();\n```\n\n3. Start the handshake:\n\n```typescript\nconst response = await canvasClient.ready();\n//\nif (response) {\n  // The handshake allows access to the user and the content that the application is embedded in.\n  const user: CanvasInterface.Handshake.User = response.untrusted.user;\n  const content: CanvasInterface.Handshake.Content = response.untrusted.content;\n  // ...\n}\n```\n\n4. Destruction\n\nIf the client is being instantiated in a react hook or in a vue component/composable (anything with a lifecycle),\nwe recommend to destroy the client on hot refreshes to avoid `CanvasInterface.ClientAlreadyInitializedError` while on localhost.\n\ne.g `Vue`\n\n```typescript\nonMounted(() => {\n  canvasClient = createCanvasClient();\n  if (!canvasClient) return;\n  response = await canvasClient.ready();\n});\n\nonUnmounted(() => {\n  canvasClient?.destroy();\n});\n```\n\ne.g `React`\n\n```typescript\nuseEffect(() => {\n  canvasClient = createCanvasClient();\n  if (canvasClient) {\n    response = await canvasClient.ready();\n  }\n\n  // Destroy the client on effect cleanup\n  return () => {\n    canvasClient?.destroy();\n  };\n});\n```\n\n## Contributing\n\nContributions are welcome! If you find any issues or have suggestions for improvement, feel free to open an issue or submit a pull request.\n","readmeFilename":"README.md"}