{"_id":"@dhatvibs/consumer-chat-sdk","_rev":"3-577ded2367bfc299c2349ced26fbe45b","name":"@dhatvibs/consumer-chat-sdk","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.1":{"name":"@dhatvibs/consumer-chat-sdk","version":"1.0.1","keywords":["react-native","chatbot","sdk","consumer","support"],"license":"UNLICENSED","_id":"@dhatvibs/consumer-chat-sdk@1.0.1","maintainers":[{"name":"dhatvibs","email":"madhu.s@dhatvibs.com"}],"dist":{"shasum":"95c44bcedf67a2038e94fec52097e8d2cf045f96","tarball":"https://registry.npmjs.org/@dhatvibs/consumer-chat-sdk/-/consumer-chat-sdk-1.0.1.tgz","fileCount":10,"integrity":"sha512-0PaPTMXWUelzdNzq45fFwbEqLWUDpwhwcDq8SU8bhn0a5CKguPw1cVjBNRptpjL3NgthiMsxKbqIZAWBU4A36w==","signatures":[{"sig":"MEQCIGuwAk6oRmVMCo8R5IdekisRDYCUKv9/4Soho//O8/7nAiBhRzdQvyCTAcF2jFUluQe3ZgKJLC3q5qAbtIKufO3CTQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":89532},"main":"index.ts","types":"index.ts","engines":{"node":">= 22.11.0"},"gitHead":"b905b43fe3120bb07a81f247795258d474c69451","scripts":{"lint":"eslint .","test":"jest"},"_npmUser":{"name":"dhatvibs","email":"madhu.s@dhatvibs.com"},"_npmVersion":"11.6.2","description":"Consumer 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.8.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/consumer-chat-sdk_1.0.1_1780309410006_0.8622489351401696","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@dhatvibs/consumer-chat-sdk","version":"1.0.2","keywords":["react-native","chatbot","sdk","consumer","support"],"license":"UNLICENSED","_id":"@dhatvibs/consumer-chat-sdk@1.0.2","maintainers":[{"name":"dhatvibs","email":"madhu.s@dhatvibs.com"}],"dist":{"shasum":"bd5387508a5306620ad7799f9cf1284cebb23dbc","tarball":"https://registry.npmjs.org/@dhatvibs/consumer-chat-sdk/-/consumer-chat-sdk-1.0.2.tgz","fileCount":10,"integrity":"sha512-FAtp5eARoykuaQyxqKaSYIw1HJhWbKVUr3QT9pLhUcs7FkETMW4BFE/QoxtKZEftXM9Zi0AsTjRDhgzcOZ+ttw==","signatures":[{"sig":"MEUCIGB/FKlz9FCcrL02oW/bu9QVtjZHX7caaqzOn0/z7kSEAiEAoEVMup21WSiRu/AoKq5+kLyFp2gXxah5cYmB13ZaSuw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":89431},"main":"index.ts","types":"index.ts","engines":{"node":">= 22.11.0"},"gitHead":"b905b43fe3120bb07a81f247795258d474c69451","scripts":{"lint":"eslint .","test":"jest"},"_npmUser":{"name":"dhatvibs","email":"madhu.s@dhatvibs.com"},"_npmVersion":"11.6.2","description":"Consumer 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.8.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/consumer-chat-sdk_1.0.2_1780310739192_0.27160833607557366","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@dhatvibs/consumer-chat-sdk","version":"1.0.3","description":"Consumer help-center chatbot SDK for React Native","main":"index.ts","types":"index.ts","scripts":{"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.8.3"},"keywords":["react-native","chatbot","sdk","consumer","support"],"license":"UNLICENSED","engines":{"node":">= 22.11.0"},"gitHead":"0af50c09f573a3fbb5d246cd75dd7b95f80dce49","_id":"@dhatvibs/consumer-chat-sdk@1.0.3","_nodeVersion":"24.13.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-KcpwqW8QsFcJYj4WVz6/8EdO2/eqQNnXobRUCDdjLO/hrH6P4XZLZRi9NcrfLW9P/nIIXgt/7/Ovxm81efHOxQ==","shasum":"f2684e3c6be32de12f431b4b651df4ed156f5f60","tarball":"https://registry.npmjs.org/@dhatvibs/consumer-chat-sdk/-/consumer-chat-sdk-1.0.3.tgz","fileCount":10,"unpackedSize":89431,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCwF15gEEzw7ukw0fe411g8wqRCFjh5eLz4HHVf8ZsLuQIhAIRE5T7LLf7rBN87kaFmO6ALE0wsV2+dIHUekx+9Q1+7"}]},"_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/consumer-chat-sdk_1.0.3_1780483450856_0.2822421151980792"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-01T10:23:29.840Z","modified":"2026-06-03T10:44:11.124Z","1.0.1":"2026-06-01T10:23:30.160Z","1.0.2":"2026-06-01T10:45:39.322Z","1.0.3":"2026-06-03T10:44:11.013Z"},"license":"UNLICENSED","keywords":["react-native","chatbot","sdk","consumer","support"],"description":"Consumer help-center chatbot SDK for React Native","maintainers":[{"name":"dhatvibs","email":"madhu.s@dhatvibs.com"}],"readme":"# @dhatvibs/consumer-chat-sdk\n\nPlug-and-play support chatbot and help center for consumer apps built with React Native.\n\n## Installation\n\n```bash\nnpm install @dhatvibs/consumer-chat-sdk\n# peer deps (if not already installed)\nnpm install axios react-native-svg\n```\n\n## Usage\n\n```tsx\nimport ConsumerChatSDK from '@dhatvibs/consumer-chat-sdk';\n\n<ConsumerChatSDK\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```\nConsumerChatSDK\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"}