{"_id":"@amalendu123/chat-widget","_rev":"2-1e2b8e38495c9504f55de87941f39fed","name":"@amalendu123/chat-widget","dist-tags":{"latest":"2.0.5"},"versions":{"2.0.3":{"name":"@amalendu123/chat-widget","version":"2.0.3","keywords":["elna","ai"],"author":{"name":"elna"},"license":"ISC","_id":"@amalendu123/chat-widget@2.0.3","maintainers":[{"name":"amalendu","email":"220229@tkmce.ac.in"}],"homepage":"https://github.com/amalendu123/chat-widget#readme","bugs":{"url":"https://github.com/amalendu123/chat-widget/issues"},"dist":{"shasum":"b47fb6039f1bdf5fef22dd4cf3dddcb2aab69392","tarball":"https://registry.npmjs.org/@amalendu123/chat-widget/-/chat-widget-2.0.3.tgz","fileCount":12,"integrity":"sha512-0Y7xzH+mxLIHTnPpGr434/EZb2aacCAWY4hPpc8OKzEw6MohqwTBdS/4i+T7LhhF/fiMOnDavb6qV9Nd5dZ9Xg==","signatures":[{"sig":"MEUCIQCJicP01EqOagx1IP64XLvsSsQ1Eg382mErNxCncbf2wAIgGxk5EoinSFPYauss1rbQ6OUApE+1WubhCr5ztp53os4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":827170},"main":"./dist/chat-widget.cjs","type":"module","types":"types/elna-chat-widget.d.ts","module":"./dist/chat-widget.js","exports":{".":{"import":"./dist/chat-widget.js","require":"./dist/chat-widget.cjs"}},"gitHead":"bc33a21b0efac5db3adc07e8c5fe465e6dbf2d44","scripts":{"dev":"vite","build":"tsc && vite build","preview":"vite preview"},"_npmUser":{"name":"amalendu","email":"220229@tkmce.ac.in"},"repository":{"url":"git+https://github.com/amalendu123/chat-widget.git","type":"git"},"_npmVersion":"10.8.1","description":"Embeddable third-party widget library for Elna Agents","directories":{},"_nodeVersion":"22.3.0","dependencies":{"lit":"^3.1.4","uuid":"^10.0.0","axios":"^1.7.2","natural":"^8.0.1","dompurify":"^3.1.5","@dfinity/agent":"^1.4.0"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^5.3.1","eslint":"^9.5.0","prettier":"^3.3.2","typescript":"^5.2.2","@types/dompurify":"^3.0.5"},"_npmOperationalInternal":{"tmp":"tmp/chat-widget_2.0.3_1729390724484_0.0013169426930270678","host":"s3://npm-registry-packages"}},"2.0.4":{"name":"@amalendu123/chat-widget","version":"2.0.4","keywords":["elna","ai"],"author":{"name":"elna"},"license":"ISC","_id":"@amalendu123/chat-widget@2.0.4","maintainers":[{"name":"amalendu","email":"220229@tkmce.ac.in"}],"homepage":"https://github.com/amalendu123/chat-widget#readme","bugs":{"url":"https://github.com/amalendu123/chat-widget/issues"},"dist":{"shasum":"52c010eb39f91e0fce25b54dc0a9c1d25ac16b4a","tarball":"https://registry.npmjs.org/@amalendu123/chat-widget/-/chat-widget-2.0.4.tgz","fileCount":12,"integrity":"sha512-eVwkdoPTOSr6MStUnUtZZn8PUmc2SUjIjkmquPA1h0qpIqiN4McLi2UD4EU+KpTr+e2Kv19qhQB68pFUDctBLQ==","signatures":[{"sig":"MEYCIQCHNPqRdvUsZzvltr1Wr4jhXBbxHxsj4rsrtzJ9BmItHgIhAMDHFmAWYKmuqD/IHi0yuHufgY3DiW7svuqrsy81Idmo","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":829127},"main":"./dist/chat-widget.cjs","type":"module","types":"types/elna-chat-widget.d.ts","module":"./dist/chat-widget.js","exports":{".":{"import":"./dist/chat-widget.js","require":"./dist/chat-widget.cjs"}},"gitHead":"b5d2f0a1ae7994f6ac10401191ed22ea98556e7e","scripts":{"dev":"vite","build":"tsc && vite build","preview":"vite preview"},"_npmUser":{"name":"amalendu","email":"220229@tkmce.ac.in"},"repository":{"url":"git+https://github.com/amalendu123/chat-widget.git","type":"git"},"_npmVersion":"10.8.1","description":"Embeddable third-party widget library for Elna Agents","directories":{},"_nodeVersion":"22.3.0","dependencies":{"lit":"^3.1.4","uuid":"^10.0.0","axios":"^1.7.2","natural":"^8.0.1","dompurify":"^3.1.5","@dfinity/agent":"^1.4.0"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^5.3.1","eslint":"^9.5.0","prettier":"^3.3.2","typescript":"^5.2.2","@types/dompurify":"^3.0.5"},"_npmOperationalInternal":{"tmp":"tmp/chat-widget_2.0.4_1729400994866_0.2546812618093375","host":"s3://npm-registry-packages"}},"2.0.5":{"name":"@amalendu123/chat-widget","version":"2.0.5","type":"module","description":"Embeddable third-party widget library for Elna Agents","keywords":["elna","ai"],"author":{"name":"elna"},"license":"ISC","module":"./dist/chat-widget.js","main":"./dist/chat-widget.cjs","exports":{".":{"import":"./dist/chat-widget.js","require":"./dist/chat-widget.cjs"}},"types":"types/elna-chat-widget.d.ts","scripts":{"dev":"vite","build":"tsc && vite build","preview":"vite preview"},"dependencies":{"@dfinity/agent":"^1.4.0","axios":"^1.7.2","dompurify":"^3.1.5","lit":"^3.1.4","natural":"^8.0.1","uuid":"^10.0.0"},"devDependencies":{"@types/dompurify":"^3.0.5","eslint":"^9.5.0","prettier":"^3.3.2","typescript":"^5.2.2","vite":"^5.3.1"},"repository":{"type":"git","url":"git+https://github.com/amalendu123/chat-widget.git"},"bugs":{"url":"https://github.com/amalendu123/chat-widget/issues"},"homepage":"https://github.com/amalendu123/chat-widget#readme","_id":"@amalendu123/chat-widget@2.0.5","gitHead":"b5d2f0a1ae7994f6ac10401191ed22ea98556e7e","_nodeVersion":"22.3.0","_npmVersion":"10.8.1","dist":{"integrity":"sha512-zlJwDgJhxxUIMxfZBEYcs8cDG6dsxH2r7EwHDKirXXIP1FPE7T4j7Hr4ZSsbNc2giqxm00WEEw7haHhkciYd+g==","shasum":"cf963e66c06449b3a9fd6e78759fc6521bd8cf19","tarball":"https://registry.npmjs.org/@amalendu123/chat-widget/-/chat-widget-2.0.5.tgz","fileCount":12,"unpackedSize":829127,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7QGi2dQJFfsAfNUuC0CP0rc27AHrmLQAeS3KSTlbf3QIhAIxsjF2L1luESnqbttjRyu1Ch6gG81LBjrJupMHag7bP"}]},"_npmUser":{"name":"amalendu","email":"220229@tkmce.ac.in"},"directories":{},"maintainers":[{"name":"amalendu","email":"220229@tkmce.ac.in"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chat-widget_2.0.5_1729514997613_0.8377127657507064"},"_hasShrinkwrap":false}},"time":{"created":"2024-10-20T02:18:44.385Z","modified":"2024-10-21T12:49:58.150Z","2.0.3":"2024-10-20T02:18:44.768Z","2.0.4":"2024-10-20T05:09:55.097Z","2.0.5":"2024-10-21T12:49:57.943Z"},"bugs":{"url":"https://github.com/amalendu123/chat-widget/issues"},"author":{"name":"elna"},"license":"ISC","homepage":"https://github.com/amalendu123/chat-widget#readme","keywords":["elna","ai"],"repository":{"type":"git","url":"git+https://github.com/amalendu123/chat-widget.git"},"description":"Embeddable third-party widget library for Elna Agents","maintainers":[{"name":"amalendu","email":"220229@tkmce.ac.in"}],"readme":"# Elna chat widget\n\nA third party [lit](https://lit.dev/) library which can we embedded into the customers application which can interact with agents created in Elna platform\n\n## Integration and Usage\n ### npm\n\n```bash \nnpm i @elna-ai/chat-widget\n```\n\n### yarn \n```bash\nyarn add @elna-ai/chat-widget\n```\n\n### pnpm\n```bash \npnpm add @elna-ai/chat-widget\n```\n\n#### Example  usage\n```js\n   import \"@elna-ai/chat-widget\";\n   ...\n  <elna-chat-widget\n      agentId=\"${AGENT_UUID_IN_ELNA}\"\n      logo=\"${LOGO_URL}\"\n      headerBackgroundColor=\"#{VALID_VALUE_FOR_COLOR_PROPERTY}\"\n      ></elna-chat-widget>\n\n```\nlogo is the image used in the title and as avatar for the bot. headerBackgroundColor is used as the background for the title bar in expanded state\n\n### Cavite with React\nmight need to declare type manually to avoid `JSX.IntrinsicElements` error\nhttps://coryrylan.com/blog/how-to-use-web-components-with-typescript-and-react\n\n## Running locally\n\nclone repo\n```sh \n  git clone https://github.com/elna-ai/chat-widget.git\n```\n\ninstall dependence\n\n```bash\npnpm install\n```\n\nrun dev server\n```bash\n  pnpm dev\n```\n\n\n","readmeFilename":"README.md"}