{"_id":"@desklync/vue","_rev":"3-7132fa5a141dda96ec5cff712f1e2447","name":"@desklync/vue","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@desklync/vue","version":"0.0.1","keywords":["desklync","vue","vue3","chat","widget","customer-support","live-chat","ai-support"],"author":{"name":"DeskLync"},"license":"MIT","_id":"@desklync/vue@0.0.1","maintainers":[{"name":"ajibadeabd","email":"ajibadeabd@gmail.com"}],"homepage":"https://desklync.com","bugs":{"url":"https://github.com/desklync/desklync-sdk/issues"},"dist":{"shasum":"ef385aca2beb95afcfcb1adfa1e996c689572233","tarball":"https://registry.npmjs.org/@desklync/vue/-/vue-0.0.1.tgz","fileCount":6,"integrity":"sha512-yTWJa1sbDW31EQ1OOoRCjlBe+Bvejv5fC2qHdF1X3hNQVv8oXDnmcTViDxLvq0U8AN3ZT5x1NLI2QiSpxnynkQ==","signatures":[{"sig":"MEQCIErlCTmckaX6I603X8qDrUxAtcB15Zmpnh4JZk0yfZGZAiAS3NagwHK4bHVN5iMCY/JoYv+NRbos/rYih7LMC9bYSQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12961},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"5fda1d2ae3e4d92c26de1bc335735b44d591dffd","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --external vue --watch","build":"tsup src/index.ts --format cjs,esm --dts --external vue","clean":"rm -rf dist","prepublishOnly":"npm run build"},"_npmUser":{"name":"ajibadeabd","email":"ajibadeabd@gmail.com"},"repository":{"url":"git+https://github.com/desklync/desklync-sdk.git","type":"git"},"_npmVersion":"10.8.2","description":"DeskLync Chat Widget - Vue 3 SDK","directories":{},"_nodeVersion":"20.10.0","dependencies":{"@desklync/core":"^0.0.1"},"_hasShrinkwrap":false,"devDependencies":{"vue":"^3.4.0","tsup":"^8.0.0","typescript":"^5.3.0"},"peerDependencies":{"vue":">=3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vue_0.0.1_1767516432262_0.9082029324849246","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@desklync/vue","version":"0.0.2","keywords":["desklync","vue","vue3","chat","widget","customer-support","live-chat","ai-support"],"author":{"name":"DeskLync"},"license":"MIT","_id":"@desklync/vue@0.0.2","maintainers":[{"name":"ajibadeabd","email":"ajibadeabd@gmail.com"}],"homepage":"https://desklync.com","bugs":{"url":"https://github.com/desklync/desklync-sdk/issues"},"dist":{"shasum":"28c97ed5aa3a8c7a4ecbe268793bca9a391cadd3","tarball":"https://registry.npmjs.org/@desklync/vue/-/vue-0.0.2.tgz","fileCount":6,"integrity":"sha512-Wvap5pFqOA/c/NXw3knXzrDvpnuGsYmBk1MJl9+HX1fnlDpGKrhzDTeoLuRGF/BsDeCHztgXP+8vKdTMcSyxzA==","signatures":[{"sig":"MEUCIQCstvryFyLuN/r59hJwa9sZxQc8ijNuxM2IlF3v/mnj3QIgHdm2s9OcyohX7gE0syycRC436K3GBGlI/9OC2JKV03g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12961},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"0a8d886eaff28943ec37acf600557a05117fa251","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --external vue --watch","build":"tsup src/index.ts --format cjs,esm --dts --external vue","clean":"rm -rf dist","prepublishOnly":"npm run build"},"_npmUser":{"name":"ajibadeabd","email":"ajibadeabd@gmail.com"},"repository":{"url":"git+https://github.com/desklync/desklync-sdk.git","type":"git"},"_npmVersion":"10.8.2","description":"DeskLync Chat Widget - Vue 3 SDK","directories":{},"_nodeVersion":"20.10.0","dependencies":{"@desklync/core":"^0.0.2"},"_hasShrinkwrap":false,"devDependencies":{"vue":"^3.4.0","tsup":"^8.0.0","typescript":"^5.3.0"},"peerDependencies":{"vue":">=3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vue_0.0.2_1767521809631_0.6176364146806983","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@desklync/vue","version":"0.0.3","description":"DeskLync Chat Widget - Vue 3 SDK","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts --external vue","dev":"tsup src/index.ts --format cjs,esm --dts --external vue --watch","clean":"rm -rf dist","prepublishOnly":"npm run build"},"keywords":["desklync","vue","vue3","chat","widget","customer-support","live-chat","ai-support"],"author":{"name":"DeskLync"},"license":"MIT","homepage":"https://desklync.com","repository":{"type":"git","url":"git+https://github.com/desklync/desklync-sdk.git"},"peerDependencies":{"vue":">=3.0.0"},"dependencies":{"@desklync/core":"^0.0.3"},"devDependencies":{"tsup":"^8.0.0","typescript":"^5.3.0","vue":"^3.4.0"},"_id":"@desklync/vue@0.0.3","gitHead":"0a8d886eaff28943ec37acf600557a05117fa251","bugs":{"url":"https://github.com/desklync/desklync-sdk/issues"},"_nodeVersion":"20.10.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-Ul5rPH3kegNXVoR+dooORSe3iYMSkBhcRMUxW7mHxhBzzx5JPlJv8n47JR2Q4ZxkJRA44o/zTidtQSq8GJreVQ==","shasum":"44a0d4635b9cc9816cace2d4ff356759d49dac09","tarball":"https://registry.npmjs.org/@desklync/vue/-/vue-0.0.3.tgz","fileCount":6,"unpackedSize":12961,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCIfFj8xE8dzMCu29t4IQwhpgi54cjr5/4RSVKIuL8H5wIgFmzbSJ5Sjj52+u0s4rIMYxjYN/n3Pzmq6Km6SNg0MWw="}]},"_npmUser":{"name":"ajibadeabd","email":"ajibadeabd@gmail.com"},"directories":{},"maintainers":[{"name":"ajibadeabd","email":"ajibadeabd@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/vue_0.0.3_1767525497017_0.469877205586418"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-04T08:47:12.153Z","modified":"2026-01-04T11:18:17.395Z","0.0.1":"2026-01-04T08:47:12.446Z","0.0.2":"2026-01-04T10:16:49.784Z","0.0.3":"2026-01-04T11:18:17.163Z"},"bugs":{"url":"https://github.com/desklync/desklync-sdk/issues"},"author":{"name":"DeskLync"},"license":"MIT","homepage":"https://desklync.com","keywords":["desklync","vue","vue3","chat","widget","customer-support","live-chat","ai-support"],"repository":{"type":"git","url":"git+https://github.com/desklync/desklync-sdk.git"},"description":"DeskLync Chat Widget - Vue 3 SDK","maintainers":[{"name":"ajibadeabd","email":"ajibadeabd@gmail.com"}],"readme":"# @desklync/vue\n\nVue 3 SDK for the DeskLync chat widget.\n\n## Installation\n\n```bash\nnpm install @desklync/vue\n# or\nyarn add @desklync/vue\n# or\npnpm add @desklync/vue\n```\n\n## Quick Start\n\n```typescript\n// main.ts\nimport { createApp } from 'vue'\nimport { createDeskLync } from '@desklync/vue'\nimport App from './App.vue'\n\nconst app = createApp(App)\n\napp.use(createDeskLync({\n  businessId: 'your-business-id'\n}))\n\napp.mount('#app')\n```\n\n```vue\n<!-- Component.vue -->\n<script setup lang=\"ts\">\nimport { useDeskLync } from '@desklync/vue'\n\nconst { open, isReady, isOpen } = useDeskLync()\n</script>\n\n<template>\n  <button @click=\"open\" :disabled=\"!isReady\">\n    {{ isOpen ? 'Close Chat' : 'Open Chat' }}\n  </button>\n</template>\n```\n\n## Plugin Configuration\n\n```typescript\napp.use(createDeskLync({\n  businessId: 'your-business-id',\n  position: 'bottom-right',\n  primaryColor: '#6366f1',\n  welcomeMessage: 'Hi there! 👋',\n  welcomeSubtext: 'We usually reply within a few minutes.'\n}))\n```\n\n## Composables\n\n### `useDeskLync()`\n\nAccess all DeskLync functionality.\n\n```vue\n<script setup lang=\"ts\">\nimport { useDeskLync } from '@desklync/vue'\n\nconst {\n  isReady,      // Ref<boolean> - Widget is loaded\n  isOpen,       // Ref<boolean> - Widget is open\n  isIdentified, // Ref<boolean> - User identified\n  open,         // () => void\n  close,        // () => void\n  toggle,       // () => void\n  identify,     // (user) => void\n  clearUser,    // () => void\n} = useDeskLync()\n\n// Identify user after login\nfunction handleLogin(user: User) {\n  identify({\n    email: user.email,\n    name: user.name,\n    userHash: user.deskLyncHash,\n  })\n}\n\n// Clear on logout\nfunction handleLogout() {\n  clearUser()\n}\n</script>\n```\n\n### `useDeskLyncMessages(callback)`\n\nListen for new messages.\n\n```vue\n<script setup lang=\"ts\">\nimport { useDeskLyncMessages } from '@desklync/vue'\n\nuseDeskLyncMessages((message) => {\n  console.log('New message:', message.content)\n})\n</script>\n```\n\n## Components\n\n### `<DeskLyncButton />`\n\nPre-built button component.\n\n```vue\n<script setup lang=\"ts\">\nimport { DeskLyncButton } from '@desklync/vue'\n</script>\n\n<template>\n  <DeskLyncButton>\n    Need help? Chat with us\n  </DeskLyncButton>\n</template>\n```\n\n## TypeScript\n\nFull TypeScript support included. Types are automatically inferred.\n\n```typescript\nimport type { DeskLyncConfig, DeskLyncUser } from '@desklync/vue'\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}