{"_id":"@dhatvibs/vendor-chat-sdk","_rev":"2-894ee6a08bdd79e669d23a1c13ad9706","name":"@dhatvibs/vendor-chat-sdk","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@dhatvibs/vendor-chat-sdk","version":"1.0.0","keywords":["react-native","chatbot","sdk","vendor","support"],"author":"","license":"UNLICENSED","_id":"@dhatvibs/vendor-chat-sdk@1.0.0","maintainers":[{"name":"dhatvibs","email":"madhu.s@dhatvibs.com"}],"dist":{"shasum":"8e169a5dc2e21c8d1c47881da547cbb45f8dd125","tarball":"https://registry.npmjs.org/@dhatvibs/vendor-chat-sdk/-/vendor-chat-sdk-1.0.0.tgz","fileCount":10,"integrity":"sha512-+o9Q+RcYIwUCqWzKNaLwfN9zXgqE6pNfqGgzKXh4eiSb46nC95c2xnMnzHXXgEi3QV9bjuJhXPECOxVcnGxUIA==","signatures":[{"sig":"MEYCIQCLpkgMg/KD6hQFGlPmf7Ig92fn2usPrHim/6O8a7ZmPAIhAKA6srBYCoPRuDFUVI1vRwDF6z3TChhdtikYXTlMaAc7","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":75111},"main":"index.ts","type":"commonjs","types":"index.ts","engines":{"node":">= 22.11.0"},"gitHead":"0b6011bfe762efc5707a926bd7bb01873d24500b","scripts":{"lint":"eslint .","test":"jest","build":"tsc --noEmit"},"_npmUser":{"name":"dhatvibs","email":"madhu.s@dhatvibs.com"},"_npmVersion":"11.6.2","description":"vendor help-center chatbot SDK for React Native","directories":{},"_nodeVersion":"24.13.0","dependencies":{"axios":"^1.4.0","jwt-decode":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.3","eslint":"^8.19.0","prettier":"2.8.8","typescript":"^5.9.3","@babel/core":"^7.25.2","@types/jest":"^29.5.13","@types/react":"^19.2.0","@react-native/jest-preset":"0.85.3","@react-native/babel-preset":"0.85.3","@react-native/typescript-config":"0.85.3"},"peerDependencies":{"react":">=18.0.0","react-native":">=0.70.0","react-native-svg":">=13.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vendor-chat-sdk_1.0.0_1780471405485_0.4778742728506167","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@dhatvibs/vendor-chat-sdk","version":"1.0.1","description":"vendor help-center chatbot SDK for React Native","main":"index.ts","types":"index.ts","scripts":{"build":"tsc --noEmit","lint":"eslint .","test":"jest"},"peerDependencies":{"react":">=18.0.0","react-native":">=0.70.0","react-native-svg":">=13.0.0"},"dependencies":{"axios":"^1.4.0","jwt-decode":"^4.0.0"},"devDependencies":{"@babel/core":"^7.25.2","@react-native/babel-preset":"0.85.3","@react-native/jest-preset":"0.85.3","@react-native/typescript-config":"0.85.3","@types/jest":"^29.5.13","@types/react":"^19.2.0","eslint":"^8.19.0","jest":"^29.6.3","prettier":"2.8.8","typescript":"^5.9.3"},"keywords":["react-native","chatbot","sdk","vendor","support"],"license":"UNLICENSED","engines":{"node":">= 22.11.0"},"author":"","type":"commonjs","gitHead":"8fb1e68d0332016c0d9590cfbf4a1ce82f230993","_id":"@dhatvibs/vendor-chat-sdk@1.0.1","_nodeVersion":"24.13.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-RLihDOJmrGns8A4LO6fT+IaL10GeR1fal2X5sGRnph6ThNPcQjwcF1lNN3ETtVMXH3wzBzcUVMDCrjyAcnbb5g==","shasum":"f79fb9ad34b860173e8975d17437d1b74b44214f","tarball":"https://registry.npmjs.org/@dhatvibs/vendor-chat-sdk/-/vendor-chat-sdk-1.0.1.tgz","fileCount":10,"unpackedSize":79537,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCnhjGz6oUkUYqmJaVYOhuONp+weIsv5xQwBe6eKdS5bwIhANT4xK1kYi71CNxpW5HvuhMG/06T/QTg9D7EtH4X6pS0"}]},"_npmUser":{"name":"dhatvibs","email":"madhu.s@dhatvibs.com"},"directories":{},"maintainers":[{"name":"dhatvibs","email":"madhu.s@dhatvibs.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/vendor-chat-sdk_1.0.1_1781777467724_0.9739497051230865"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-03T07:23:25.320Z","modified":"2026-06-18T10:11:07.972Z","1.0.0":"2026-06-03T07:23:25.629Z","1.0.1":"2026-06-18T10:11:07.859Z"},"license":"UNLICENSED","keywords":["react-native","chatbot","sdk","vendor","support"],"description":"vendor help-center chatbot SDK for React Native","maintainers":[{"name":"dhatvibs","email":"madhu.s@dhatvibs.com"}],"readme":"# @dhatvibs/vendor-chat-sdk\n\nPlug-and-play support chatbot and help center for vendor apps built with React Native.\n\n## Installation\n\n```bash\nnpm install @dhatvibs/vendor-chat-sdk\n# peer deps (if not already installed)\nnpm install axios react-native-svg\n```\n\n## Usage\n\n```tsx\nimport VendorChatSDK from '@dhatvibs/vendor-chat-sdk';\n\n<VendorChatSDK\n  token={token}            // Required: JWT from authentication\n  onClose={() => {}}       // Optional: dismiss the SDK (e.g. close a modal)\n/>\n```\n\n## Props\n\n| Prop | Type | Required | Description |\n|---|---|---|---|\n| `token` | `string` | ✅ | JWT token used for authentication (contains `userId`) |\n| `onClose` | `() => void` | ❌ | Called when user taps the close button |\n\n## Flow\n\n```\nVendorChatSDK\n  └─ OrderListScreen (Help & Support Center)\n       ├─ Home View (Top 3 Orders, FAQ Categories)\n       ├─ All Orders View\n       ├─ FAQ Category View (List of questions)\n       ├─ FAQ Answer View (Question and answer text)\n       └─ Tap order → startSession() → ChatScreen\n            ├─ GUIDED mode\n            ├─ FREE_CHAT mode\n            └─ RESOLVED mode\n```\n\n## API Endpoints Used\n\n| Method | Endpoint |\n|---|---|\n| GET | `/consumer/api/chat/orders/recent` (example) |\n| POST | `/consumer/api/chat/start` (example) |\n| POST | `/consumer/api/chat/resolve` (example) |\n| POST | `/consumer/api/chat/message` (example) |\n\n## Publishing\n\n```bash\nnpm login\nnpm publish --access public\n```\n","readmeFilename":"README.md"}