@@ -1,2 +0,2 @@ | ||
| var Chatsy=(()=>{var m=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames,v=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var w=(t,e,s)=>e in t?m(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,O=(t,e)=>{for(var s in e||(e={}))I.call(e,s)&&w(t,s,e[s]);if(v)for(var s of v(e))B.call(e,s)&&w(t,s,e[s]);return t};var H=(t,e)=>{for(var s in e)m(t,s,{get:e[s],enumerable:!0})},U=(t,e,s,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of R(e))!I.call(t,i)&&i!==s&&m(t,i,{get:()=>e[i],enumerable:!(o=M(e,i))||o.enumerable});return t};var $=t=>U(m({},"__esModule",{value:!0}),t);var W={};H(W,{Chatsy:()=>a,default:()=>V});var h="2.0.7",u=typeof window!="undefined"&&typeof document!="undefined",f="https://chatsy.ai",E={settings:{button:{backgroundColor:"#297bf7",textColor:"#FFFFFF",position:"bottom-right",type:"round",icon:"default"}},user:{},context:{}},y={default:t=>`<svg viewBox="0 0 700 700" width="28" height="28" fill="${t}" style="pointer-events:none"> | ||
| var Chatsy=(()=>{var m=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames,v=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var w=(t,e,s)=>e in t?m(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,O=(t,e)=>{for(var s in e||(e={}))I.call(e,s)&&w(t,s,e[s]);if(v)for(var s of v(e))B.call(e,s)&&w(t,s,e[s]);return t};var H=(t,e)=>{for(var s in e)m(t,s,{get:e[s],enumerable:!0})},U=(t,e,s,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of R(e))!I.call(t,i)&&i!==s&&m(t,i,{get:()=>e[i],enumerable:!(o=M(e,i))||o.enumerable});return t};var $=t=>U(m({},"__esModule",{value:!0}),t);var W={};H(W,{Chatsy:()=>a,default:()=>V});var h="2.0.9",u=typeof window!="undefined"&&typeof document!="undefined",f="https://chatsy.ai",E={settings:{button:{backgroundColor:"#297bf7",textColor:"#FFFFFF",position:"bottom-right",type:"round",icon:"default"}},user:{},context:{}},y={default:t=>`<svg viewBox="0 0 700 700" width="28" height="28" fill="${t}" style="pointer-events:none"> | ||
| <path d="M62.75 600.75V606c0 19.25 10.75 36.5 28.25 45 7 3.5 14.5 5 22 5 10.75 0 21.75-3.5 30.75-10.75l19.75-15.25c23-18.25 51.75-28 81-28h135.25c28.75 0 53.75-16.25 66.5-40-19.75-10.5-41.75-16.25-64-16.25H202.25c-78.75 0-142.75-63.75-142.75-142V252.25C25.5 259.75 0 290 0 326.25v200.5c0 37.25 27.25 68.25 62.75 74z"/> | ||
@@ -3,0 +3,0 @@ <path d="M607.5 44H202c-51 0-92.5 41.25-92.5 92v267.75c0 50.75 41.5 92 92.75 92H382.25c41 0 81.25 13.75 113.25 39l40 31.25c9 7.25 19.75 10.75 30.75 10.75 7.25 0 14.75-1.75 21.75-5 17.5-8.5 28.25-25.75 28.25-45v-31.5c47-4.25 83.75-43.75 83.75-91.5V136C700 85.25 658.5 44 607.5 44zM504.75 347.75H304.75c-13.75 0-25-11.25-25-25s11.25-25 25-25h200c14 0 25 11 25 25s-11 25-25 25zm0-105.25H304.75c-13.75 0-25-11.25-25-25.25s11.25-25 25-25h200c14 0 25 11.25 25 25s-11 25.25-25 25.25z"/> |
+2
-1
@@ -28,3 +28,3 @@ var __defProp = Object.defineProperty; | ||
| // src/lib/constants.js | ||
| var VERSION = "2.0.7"; | ||
| var VERSION = "2.0.9"; | ||
| var IS_BROWSER = typeof window !== "undefined" && typeof document !== "undefined"; | ||
@@ -541,1 +541,2 @@ var API_URL = "https://chatsy.ai"; | ||
| var index_default = Chatsy; | ||
| module.exports=module.exports.default||module.exports; |
+1
-1
| // src/lib/constants.js | ||
| var VERSION = "2.0.7"; | ||
| var VERSION = "2.0.9"; | ||
| var IS_BROWSER = typeof window !== "undefined" && typeof document !== "undefined"; | ||
@@ -4,0 +4,0 @@ var API_URL = "https://chatsy.ai"; |
+2
-2
| { | ||
| "name": "chatsy", | ||
| "version": "2.0.8", | ||
| "version": "2.0.9", | ||
| "description": "Embeddable AI chatbot widget. Add a chat widget to any website with one line of code.", | ||
@@ -64,3 +64,3 @@ "main": "./dist/index.js", | ||
| "mocha": "^11.7.5", | ||
| "prepare-package": "^2.0.4" | ||
| "prepare-package": "^2.0.7" | ||
| }, | ||
@@ -67,0 +67,0 @@ "dependencies": { |
+6
-0
@@ -49,4 +49,10 @@ <p align="center"> | ||
| ```js | ||
| // ESM | ||
| import Chatsy from 'chatsy'; | ||
| // CommonJS | ||
| const Chatsy = require('chatsy'); | ||
| ``` | ||
| ```js | ||
| const chat = new Chatsy('YOUR_AGENT_ID'); | ||
@@ -53,0 +59,0 @@ ``` |
57434
0.21%1126
0.09%182
3.41%