{"_id":"@blockroll/vue-sdk","name":"@blockroll/vue-sdk","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@blockroll/vue-sdk","version":"1.0.0","description":"BlockRoll Vue SDK - Secure data exchange for Vue.js applications","main":"dist/index.js","module":"dist/index.esm.js","types":"dist/index.d.ts","scripts":{"build":"rollup -c","dev":"rollup -c -w","test":"vitest","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"keywords":["blockroll","vue","composables","web3","storage","encryption"],"author":{"name":"BlockRoll Team"},"license":"MIT","peerDependencies":{"vue":">=3.0.0"},"dependencies":{"@blockroll/core":"^1.0.0"},"devDependencies":{"@rollup/plugin-commonjs":"^25.0.0","@rollup/plugin-node-resolve":"^15.2.0","@rollup/plugin-typescript":"^11.1.0","@vue/test-utils":"^2.4.0","rollup":"^4.9.0","rollup-plugin-dts":"^6.1.0","tslib":"^2.6.0","typescript":"^5.3.0","vitest":"^1.1.0","vue":"^3.4.0"},"repository":{"type":"git","url":"git+https://github.com/blockroll/sdk.git","directory":"packages/vue-sdk"},"_id":"@blockroll/vue-sdk@1.0.0","gitHead":"80fcb7857e4cf4816a4d2878806a4f1b916e218e","bugs":{"url":"https://github.com/blockroll/sdk/issues"},"homepage":"https://github.com/blockroll/sdk#readme","_nodeVersion":"24.2.0","_npmVersion":"11.3.0","dist":{"integrity":"sha512-pyou7ylTQ/aK0TviEx12EVOGgs+L9iunwbjXJL/5DrY4Iaij2kkJMSHr86IhLWnZ0zgRVaIdhaGw9F6IXR9/VA==","shasum":"d683a07f6e1f38836f45afe6ac0aed461ad298dd","tarball":"https://registry.npmjs.org/@blockroll/vue-sdk/-/vue-sdk-1.0.0.tgz","fileCount":7,"unpackedSize":71277,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDqkr388NyVxptGFErDsTum2jAe9HZtRZ/ks26jawSsjAIgBDrfkR3IykEWnnb8RNNpEBNZeC7Jp2fGiJ5Kgcgiss8="}]},"_npmUser":{"name":"blockroll","email":"mailquillofficial@gmail.com"},"directories":{},"maintainers":[{"name":"blockroll","email":"mailquillofficial@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/vue-sdk_1.0.0_1760220382292_0.6245861890992721"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-11T22:06:22.146Z","1.0.0":"2025-10-11T22:06:22.469Z","modified":"2025-10-11T22:06:22.812Z"},"maintainers":[{"name":"blockroll","email":"mailquillofficial@gmail.com"}],"description":"BlockRoll Vue SDK - Secure data exchange for Vue.js applications","homepage":"https://github.com/blockroll/sdk#readme","keywords":["blockroll","vue","composables","web3","storage","encryption"],"repository":{"type":"git","url":"git+https://github.com/blockroll/sdk.git","directory":"packages/vue-sdk"},"author":{"name":"BlockRoll Team"},"bugs":{"url":"https://github.com/blockroll/sdk/issues"},"license":"MIT","readme":"# @blockroll/vue-sdk\r\n\r\n**BlockRoll SDK for Vue.js - Secure data exchange with Vue composables**\r\n\r\n---\r\n\r\n## 📦 Installation\r\n\r\n```bash\r\nnpm install @blockroll/vue-sdk\r\n```\r\n\r\n---\r\n\r\n## ⚡ Quick Start\r\n\r\n```ts\r\n// main.ts\r\nimport { createApp } from 'vue';\r\nimport { BlockRollPlugin } from '@blockroll/vue-sdk';\r\nimport App from './App.vue';\r\n\r\nconst app = createApp(App);\r\n\r\napp.use(BlockRollPlugin, {\r\n  apiKey: import.meta.env.VITE_BLOCKROLL_API_KEY,\r\n});\r\n\r\napp.mount('#app');\r\n```\r\n\r\n```vue\r\n<!-- Component.vue -->\r\n<script setup lang=\"ts\">\r\nimport { useBlockRoll } from '@blockroll/vue-sdk';\r\n\r\nconst { uploadFile, loading, error } = useBlockRoll();\r\n\r\nconst handleUpload = async (file: File) => {\r\n  const result = await uploadFile({\r\n    file,\r\n    accessType: 'private',\r\n    encryption: true,\r\n  });\r\n\r\n  console.log('Uploaded:', result.fileId);\r\n};\r\n</script>\r\n\r\n<template>\r\n  <button @click=\"handleUpload(file)\" :disabled=\"loading\">\r\n    {{ loading ? 'Uploading...' : 'Upload' }}\r\n  </button>\r\n  <p v-if=\"error\">{{ error }}</p>\r\n</template>\r\n```\r\n\r\n---\r\n\r\n## 🎯 Available Composables\r\n\r\n### `useBlockRoll()`\r\nMain composable for file operations.\r\n\r\n### `useMyFiles(options)`\r\nFetch and manage user's files with real-time updates.\r\n\r\n### `useNotifications(options)`\r\nManage notifications with real-time WebSocket.\r\n\r\n### `useWorkspace()`\r\nManage team workspaces.\r\n\r\n---\r\n\r\n## 🎯 Features\r\n\r\n- ✅ Vue 3 Composition API\r\n- ✅ Real-time file updates\r\n- ✅ TypeScript support\r\n- ✅ Error handling\r\n- ✅ Reactive loading states\r\n- ✅ Workspace management\r\n\r\n## 📚 Full Documentation\r\n\r\nSee [parent README](../README.md) for complete API documentation.\r\n\r\n---\r\n\r\n## 📄 License\r\n\r\nMIT License\r\n\r\n","readmeFilename":"README.md","_rev":"1-45c075adc00406f76db77a99ac5b0b51"}