@ibti-tech/chatbot 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* IBTI Chatbot – Embed script
|
|
3
|
-
* @version 0.9.
|
|
3
|
+
* @version 0.9.1
|
|
4
4
|
*
|
|
5
5
|
* Standalone widget for embedding the IBTI chatbot on any website (HTML, WordPress, PHP, etc.)
|
|
6
6
|
* without requiring React or a build step. Include this script and set window.IBTIChatbotConfig
|
|
@@ -1312,7 +1312,7 @@ Error generating stack: `+a.message+`
|
|
|
1312
1312
|
transform: scale(0.9);
|
|
1313
1313
|
}
|
|
1314
1314
|
`}
|
|
1315
|
-
`;var aC={name:"@ibti-tech/chatbot",version:"0.9.
|
|
1315
|
+
`;var aC={name:"@ibti-tech/chatbot",version:"0.9.1",description:"Chatbot system developed to be embedded in any website",packageManager:"yarn@3.6.4",main:"./dist/index.mjs",types:"./dist/index.d.ts",files:["dist/**/*"],publishConfig:{access:"public"},scripts:{dev:"node ./build.config.mjs --watch",build:"node ./build.config.mjs","build:embed":"node ./build-embed.config.mjs","build:all":"node ./build.config.mjs && node ./build-embed.config.mjs",test:"vitest"},repository:{type:"git",url:"git+https://github.com/ibti-solutions/ibti-chatbot.git"},keywords:["chatbot","openai","chat-gpt","ibti"],author:"IBTI Solu\xE7\xF5es em TI",license:"ISC",bugs:{url:"https://github.com/ibti-solutions/ibti-chatbot/issues"},homepage:"https://github.com/ibti-solutions/ibti-chatbot#readme",dependencies:{"@types/node":"^20.13.0","date-fns":"^3.6.0","lucide-react":"^0.263.1",polished:"^4.3.1","react-markdown":"^9.0.1",uuid:"^9.0.1"},devDependencies:{"@ibti-tech/prettier-config":"^0.1.6","@ibti-tech/tsconfig":"^0.0.3","@ibti-tech/ui":"^0.16.4","@testing-library/react":"^15.0.7","@types/react":"^18.3.2","@types/uuid":"^9.0.8",esbuild:"0.21.3","esbuild-node-externals":"^1.13.1","esbuild-plugin-clean":"^1.0.1","esbuild-plugin-external-global":"^1.0.1",jsdom:"^24.0.0",lodash:"^4.17.21",nookies:"^2.5.2","npm-dts":"^1.3.12",prettier:"3.2.5",react:"18.2.0","react-dom":"^18.2.0","styled-components":"^6.1.11","ts-node":"^10.9.2",typescript:"^5.4.5",vitest:"^1.6.0"},peerDependencies:{lodash:"^4.17.21",nookies:"^2.5.2",react:"18.2.0","react-dom":"^18.2.0"}};var Fm=aC.version??"";var iC=({chatFeedbackBox:e})=>{let t=De(),[r,n]=(0,it.useState)(5),[o,a]=(0,it.useState)(""),i=ot(),l=s=>{s.preventDefault(),e.sendUserRating({description:o,ratingScore:r})};return it.default.createElement(oC,{$opened:e.opened&&t.opened},it.default.createElement(Om,null,it.default.createElement(nC,null,i.CHAT_FEEDBACK.TITLE),it.default.createElement(rC,null,i.CHAT_FEEDBACK.DESCRIPTION),it.default.createElement(tC,{onSubmit:l},it.default.createElement(Q1,{value:r,setValue:n,layer:2}),it.default.createElement(ou,{layer:2,placeholder:i.CHAT_FEEDBACK.MESSAGE_FIELD,fillWidth:!0,value:o,onChange:s=>a(s.target.value),className:"feedbackTextarea"}),it.default.createElement(Zw,null,Fm?it.default.createElement(Jw,null,"v",Fm):null,it.default.createElement(eC,null,it.default.createElement(Xn,{onClick:e.close,label:i.CHAT_FEEDBACK.CLOSE_BUTTON,size:"small",variant:"layerBased"}),it.default.createElement(Xn,{type:"submit",label:i.CHAT_FEEDBACK.SUBMIT_BUTTON,size:"small",loading:e.loading}))))))};var Xu=z(Y());var lC=()=>{let{apiURL:e,locale:t,publicHash:r,visitorId:n}=De(),[o,a]=(0,Xu.useState)(!1),[i,l]=(0,Xu.useState)(!1),[s,u]=(0,Xu.useState)(!1);return{opened:i,open:()=>{l(!0)},close:()=>{l(!1),a(!0)},sendUserRating:async({ratingScore:p,description:y})=>{try{u(!0),await Ed({apiURL:e,publicHash:r,visitorId:n,locale:t,ratingScore:p,description:y})}finally{u(!1),a(!0),l(!1)}},loading:s}};var eP=32,tP=({verticalPosition:e="bottom",pushContentDown:t=!1,horizontalPosition:r,pushContentDownBarHeight:n=eP})=>{let{opened:o}=De(),a=lC(),i=n;return ao.default.createElement(rS,{$opened:o,$verticalPosition:e,$pushContentDown:t,$horizontalPosition:r,$pushContentDownBarHeight:i},ao.default.createElement(iC,{chatFeedbackBox:a}),ao.default.createElement(dS,{chatFeedbackBox:a}),ao.default.createElement(Ww,null),ao.default.createElement(Kw,null),ao.default.createElement(Yw,{verticalPosition:e,opened:o,pushContentDown:t,pushContentDownBarHeight:i}))},sC=tP;var uC=D($1)`
|
|
1316
1316
|
font-family: 'Montserrat', sans-serif !important;
|
|
1317
1317
|
font-weight: 600 !important;
|
|
1318
1318
|
|