{"_id":"@aireact/smart-notify","_rev":"4-08acc3d32e8c2cfe22211dfae5ee2efa","name":"@aireact/smart-notify","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@aireact/smart-notify","version":"1.0.0","keywords":["react","notifications","ai","smart","toast"],"author":{"name":"reachbrt"},"license":"MIT","_id":"@aireact/smart-notify@1.0.0","maintainers":[{"name":"aivue","email":"reachbrt@gmail.com"}],"dist":{"shasum":"2b560e0dfbf8a485ecb66247aa97be75417ef8fd","tarball":"https://registry.npmjs.org/@aireact/smart-notify/-/smart-notify-1.0.0.tgz","fileCount":11,"integrity":"sha512-cJzeJCwUkZbkfikDXJ5XHRF+6LFNQMOCDZFDbG34dlJ7HsFgjgmCm8WH6aE17Ur1RrsUkv3ENZu4wQHW9dt3gQ==","signatures":[{"sig":"MEUCIQCrcY5S8vdeefpHZmc2QWjccEnvQ6gFQe2KiB1WpcidVAIgbU8aSPkzxuEQwH/D0A6zCqkAAihPcPwVRdHkPsMreBg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":105948},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./dist/smart-notify.css":"./dist/smart-notify.css"},"gitHead":"3578555f09dd610edce51f84a4d6d27a6b2146bd","scripts":{"dev":"vite build --watch","build":"tsc && vite build"},"_npmUser":{"name":"aivue","email":"reachbrt@gmail.com"},"_npmVersion":"10.9.2","description":"AI-powered smart notifications for React","directories":{},"sideEffects":["*.css"],"_nodeVersion":"22.14.0","dependencies":{"@aireact/core":"*"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^5.0.10","typescript":"^5.3.3","@types/react":"^18.2.45","vite-plugin-dts":"^3.7.0","@types/react-dom":"^18.2.18","@vitejs/plugin-react":"^4.2.1"},"peerDependencies":{"react":"^18.0.0","react-dom":"^18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/smart-notify_1.0.0_1765693710744_0.8347423303606318","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@aireact/smart-notify","version":"1.0.1","keywords":["react","notifications","ai","smart","toast"],"author":{"name":"reachbrt"},"license":"MIT","_id":"@aireact/smart-notify@1.0.1","maintainers":[{"name":"aivue","email":"reachbrt@gmail.com"}],"dist":{"shasum":"92d1e8b42622a70bbe11dcfc610273c10118c580","tarball":"https://registry.npmjs.org/@aireact/smart-notify/-/smart-notify-1.0.1.tgz","fileCount":12,"integrity":"sha512-qJ5e2IJgsgeDaRWfYd77hZYjdNQXeTmWyR3cTE+w90PSNnMrL7UapFGXX5yERq7lCC5xcgbodRFBEtstkEyeow==","signatures":[{"sig":"MEQCIFUok1jaKGfiJFsX7jpWuCJovIk2Ule/rERV6x89ggwrAiBnSYl50zK0GIpFuxFXP5UaX/heTtQcu28PONIjnMHn0Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":109597},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./dist/smart-notify.css":"./dist/smart-notify.css"},"gitHead":"6857364eda430b8e9222514d3a5eeb6a5175c5b7","scripts":{"dev":"vite build --watch","build":"tsc && vite build"},"_npmUser":{"name":"aivue","email":"reachbrt@gmail.com"},"_npmVersion":"10.9.2","description":"AI-powered smart notifications for React","directories":{},"sideEffects":["*.css"],"_nodeVersion":"22.14.0","dependencies":{"@aireact/core":"*"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^5.0.10","typescript":"^5.3.3","@types/react":"^18.2.45","vite-plugin-dts":"^3.7.0","@types/react-dom":"^18.2.18","@vitejs/plugin-react":"^4.2.1"},"peerDependencies":{"react":"^18.0.0","react-dom":"^18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/smart-notify_1.0.1_1765694994128_0.5512780083429247","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@aireact/smart-notify","version":"1.0.2","keywords":["react","notifications","ai","smart","toast"],"author":{"name":"reachbrt"},"license":"MIT","_id":"@aireact/smart-notify@1.0.2","maintainers":[{"name":"aivue","email":"reachbrt@gmail.com"}],"dist":{"shasum":"ebce385cbf6b0b1d87b1fd2bb4ab7612a7798d94","tarball":"https://registry.npmjs.org/@aireact/smart-notify/-/smart-notify-1.0.2.tgz","fileCount":12,"integrity":"sha512-q8CIstwJQDLJU/H0HBQJVGO6ywifOAEbIfzxK/73ZDlKO4V+QdlWd5TasQI5ccpXlmYzp3slP3F66Va7+XzJ+Q==","signatures":[{"sig":"MEUCIQDUFxOnRBk3achZja0G8hsa7C0yPI+uRBw3RKPenLh0fgIgNgR2IghMhYX8E1Er+JrXiPzYgiHaoYuvISJBFNO0aHQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":109597},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./dist/smart-notify.css":"./dist/smart-notify.css"},"gitHead":"6857364eda430b8e9222514d3a5eeb6a5175c5b7","scripts":{"dev":"vite build --watch","build":"tsc && vite build"},"_npmUser":{"name":"aivue","email":"reachbrt@gmail.com"},"_npmVersion":"10.9.2","description":"AI-powered smart notifications for React","directories":{},"sideEffects":["*.css"],"_nodeVersion":"22.14.0","dependencies":{"@aireact/core":"*"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^5.0.10","typescript":"^5.3.3","@types/react":"^18.2.45","vite-plugin-dts":"^3.7.0","@types/react-dom":"^18.2.18","@vitejs/plugin-react":"^4.2.1"},"peerDependencies":{"react":"^18.0.0","react-dom":"^18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/smart-notify_1.0.2_1765696322592_0.927024114915197","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@aireact/smart-notify","version":"1.0.3","description":"AI-powered smart notifications for React","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"},"./dist/smart-notify.css":"./dist/smart-notify.css"},"scripts":{"build":"tsc && vite build","dev":"vite build --watch"},"peerDependencies":{"react":"^18.0.0","react-dom":"^18.0.0"},"dependencies":{"@aireact/core":"*"},"devDependencies":{"@types/react":"^18.2.45","@types/react-dom":"^18.2.18","@vitejs/plugin-react":"^4.2.1","typescript":"^5.3.3","vite":"^5.0.10","vite-plugin-dts":"^3.7.0"},"keywords":["react","notifications","ai","smart","toast"],"author":{"name":"reachbrt"},"license":"MIT","sideEffects":["*.css"],"_id":"@aireact/smart-notify@1.0.3","gitHead":"eb0d57118209adc317afca9ec14db9074a14377b","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-TBPJoD+tHV7rpwkYYY5K4oXFnfhMAEzySdjU+wM8jojiEzXFnpDDZH8YVZcqmSPJXBR1/kBH6EvUpRZrn/2ivA==","shasum":"e384ef73fa128b65e32a266cc4cbe7c2bbb9523c","tarball":"https://registry.npmjs.org/@aireact/smart-notify/-/smart-notify-1.0.3.tgz","fileCount":12,"unpackedSize":110576,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDtRIFeAXdWixebs5RnZzG6Dz0aHTWaOgbGTpAkhrMVrwIhAOBMJm9wNNvgC5/7QHW11gIWvFfndq7tRruDTxJP2FDO"}]},"_npmUser":{"name":"aivue","email":"reachbrt@gmail.com"},"directories":{},"maintainers":[{"name":"aivue","email":"reachbrt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/smart-notify_1.0.3_1766466263367_0.6062112032380425"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-14T06:28:30.643Z","modified":"2025-12-23T05:04:23.760Z","1.0.0":"2025-12-14T06:28:30.911Z","1.0.1":"2025-12-14T06:49:54.279Z","1.0.2":"2025-12-14T07:12:02.733Z","1.0.3":"2025-12-23T05:04:23.527Z"},"author":{"name":"reachbrt"},"license":"MIT","keywords":["react","notifications","ai","smart","toast"],"description":"AI-powered smart notifications for React","maintainers":[{"name":"aivue","email":"reachbrt@gmail.com"}],"readme":"# @aireact/smart-notify\n\n🚀 **AI-Powered Smart Notifications for React**\n\nIntelligent notification system that adapts messages based on context and user behavior.\n\n<p>\n  <a href=\"https://www.npmjs.com/package/@aireact/smart-notify\"><img src=\"https://img.shields.io/npm/v/@aireact/smart-notify.svg?style=flat-square\" alt=\"npm version\"></a>\n  <a href=\"https://www.npmjs.com/package/@aireact/smart-notify\"><img src=\"https://img.shields.io/npm/dm/@aireact/smart-notify\" alt=\"npm downloads\"></a>\n  <a href=\"https://github.com/reachbrt/AIReact/blob/main/LICENSE\"><img src=\"https://img.shields.io/npm/l/@aireact/smart-notify.svg?style=flat-square\" alt=\"MIT License\"></a>\n  <a href=\"https://github.com/reachbrt/AIReact\"><img src=\"https://img.shields.io/github/stars/reachbrt/AIReact?style=social\" alt=\"GitHub Stars\"></a>\n</p>\n\n## ✨ Features\n\n- **🔔 Smart Notifications**: AI-enhanced notification content\n- **🎯 Context-Aware**: Adapts based on user context\n- **⏰ Smart Timing**: Optimal delivery timing\n- **📊 Priority Detection**: Auto-prioritize notifications\n- **🎨 Customizable**: Multiple notification styles\n- **🔧 TypeScript**: Full TypeScript support\n\n## 📦 Installation\n\n```bash\nnpm install @aireact/smart-notify @aireact/core\n```\n\n## 🚀 Quick Start\n\n```tsx\nimport { NotificationContainer, useNotifications } from '@aireact/smart-notify';\nimport '@aireact/smart-notify/style.css';\n\nfunction App() {\n  const { notify, notifications } = useNotifications({\n    provider: 'openai',\n    apiKey: process.env.REACT_APP_OPENAI_API_KEY\n  });\n\n  const handleAction = async () => {\n    await notify({\n      title: 'Action Complete',\n      message: 'Your file has been uploaded successfully.',\n      type: 'success',\n      enhance: true // AI will enhance the message\n    });\n  };\n\n  return (\n    <div>\n      <button onClick={handleAction}>Upload File</button>\n      <NotificationContainer notifications={notifications} />\n    </div>\n  );\n}\n```\n\n### Using the Hook\n\n```tsx\nimport { useNotifications } from '@aireact/smart-notify';\n\nfunction NotificationDemo() {\n  const {\n    notifications,\n    notify,\n    dismiss,\n    dismissAll,\n    updateNotification\n  } = useNotifications({\n    provider: 'openai',\n    apiKey: process.env.REACT_APP_OPENAI_API_KEY,\n    position: 'top-right',\n    maxNotifications: 5\n  });\n\n  const showSmartNotification = async () => {\n    await notify({\n      title: 'Order Update',\n      message: 'Your order #12345 has shipped',\n      type: 'info',\n      enhance: true,\n      context: 'e-commerce order tracking',\n      duration: 5000\n    });\n  };\n\n  return (\n    <div>\n      <button onClick={showSmartNotification}>Show Notification</button>\n      <button onClick={dismissAll}>Clear All</button>\n    </div>\n  );\n}\n```\n\n## 📖 Props & Options\n\n| Option | Type | Default | Description |\n|--------|------|---------|-------------|\n| `provider` | string | - | AI provider |\n| `apiKey` | string | - | API key |\n| `position` | string | 'top-right' | Notification position |\n| `maxNotifications` | number | 5 | Max visible |\n| `defaultDuration` | number | 5000 | Default duration (ms) |\n\n### Notification Types\n\n| Type | Description | Icon |\n|------|-------------|------|\n| `success` | Positive outcomes | ✅ |\n| `error` | Errors and failures | ❌ |\n| `warning` | Warnings and cautions | ⚠️ |\n| `info` | Informational messages | ℹ️ |\n\n## 🎨 Customization\n\n```css\n:root {\n  --aireact-notify-success: #4caf50;\n  --aireact-notify-error: #f44336;\n  --aireact-notify-warning: #ff9800;\n  --aireact-notify-info: #2196f3;\n}\n```\n\n## 📦 Related Packages\n\n### React (@aireact)\n- [@aireact/core](https://www.npmjs.com/package/@aireact/core) - Core AI Client\n- [@aireact/emotion-ui](https://www.npmjs.com/package/@aireact/emotion-ui) - Emotion UI\n- [@aireact/chatbot](https://www.npmjs.com/package/@aireact/chatbot) - AI Chat\n- [@aireact/voice-actions](https://www.npmjs.com/package/@aireact/voice-actions) - Voice Actions\n\n### Vue.js (@aivue)\n- [@aivue/smart-notify](https://www.npmjs.com/package/@aivue/smart-notify) - Vue Smart Notify\n- [@aivue/core](https://www.npmjs.com/package/@aivue/core) - Vue Core AI Client\n\n### Angular (@aiangular) - Coming Soon\n- @aiangular/smart-notify - Angular Smart Notify\n\n## 🔗 More Information\n\n- [GitHub Repository](https://github.com/reachbrt/AIReact)\n- [Full Documentation](https://github.com/reachbrt/AIReact/wiki)\n- [Report Issues](https://github.com/reachbrt/AIReact/issues)\n\n## 📄 License\n\nMIT © [Bharatkumar Subramanian](https://github.com/reachbrt)\n\n","readmeFilename":"README.md"}