vdb-ai-chat 1.0.54 → 1.0.55
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.
- package/dist/chat-widget.js +1 -1
- package/lib/commonjs/index.web.js +1 -2
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/module/index.web.js +1 -2
- package/lib/module/index.web.js.map +1 -1
- package/lib/typescript/index.web.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.web.tsx +1 -2
package/dist/chat-widget.js
CHANGED
|
@@ -459,4 +459,4 @@
|
|
|
459
459
|
font-size: 13px;
|
|
460
460
|
font-weight: 500;
|
|
461
461
|
line-height: 136%;
|
|
462
|
-
`,is=vn.TouchableOpacity``,os=i.A.create({listContent:{paddingVertical:8,flexGrow:1,justifyContent:"flex-end"},loading:{paddingVertical:8,alignItems:"center"}}),as=i.A.create({root:{flex:1,height:"100%",width:"100%"}});window.createChatWidget=function(e){const{id:i="chat-widget",apiUrl:a,theme:s,height:l="500px",width:u="360px",button:c={label:"",icon:"",iconColor:"transparent",labelColor:"transparent",backgroundColor:"transparent",borderRadius:"9999px",padding:"0",buttonPosition:{bottom:"60px",right:"44px"}},segmentWriteKey:d,isBetaMode:h,locale:f,translations:p,userToken:m,priceMode:g,userName:v,activeProductType:y,trackAnalyticsEvent:b,modalHeight:_,onViewAllPress:w,onItemPress:S}=e;(f||p)&&jr({locale:f,translations:p});const x=`${i}-modal`,E=`${i}-launcher`;let C=document.getElementById(E);C||(C=document.createElement("button"),C.id=E,C.type="button",C.innerText=c.label||"",C.innerHTML=c.icon||"<svg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 72 72' fill='none'> <g filter='url(#filter0_d_10_66)'> <g clip-path='url(#clip0_10_66)'> <foreignObject x='-33.12' y='-33.12' width='138.24' height='138.24'><div xmlns='http://www.w3.org/1999/xhtml' style='backdrop-filter:blur(1px);clip-path:url(#bgblur_1_10_66_clip_path);height:100%;width:100%'></div></foreignObject><g filter='url(#filter1_g_10_66)' data-figma-bg-blur-radius='2'> <rect width='72' height='72' fill='white' fill-opacity='0.05'/> </g> <g filter='url(#filter2_iii_10_66)'> <rect width='72' height='72' rx='36' fill='url(#paint0_linear_10_66)' fill-opacity='0.7'/> <rect x='0.5' y='0.5' width='71' height='71' rx='35.5' stroke='white' stroke-opacity='0.2'/> </g> <path d='M36 20C36 20 36.8828 28.2399 40.3215 31.6785C43.7601 35.1172 52 36 52 36C52 36 43.7601 36.8828 40.3215 40.3215C36.8828 43.7601 36 52 36 52C36 52 35.1172 43.7601 31.6785 40.3215C28.2399 36.8828 20 36 20 36C20 36 28.2399 35.1172 31.6785 31.6785C35.1172 28.2399 36 20 36 20Z' fill='white'/> </g> </g> <defs> <filter id='filter0_d_10_66' x='0' y='0' width='112' height='112' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'> <feFlood flood-opacity='0' result='BackgroundImageFix'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset dx='20' dy='20'/> <feGaussianBlur stdDeviation='10'/> <feComposite in2='hardAlpha' operator='out'/> <feColorMatrix type='matrix' values='0 0 0 0 0.862354 0 0 0 0 0.862354 0 0 0 0 0.89855 0 0 0 0.2 0'/> <feBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_10_66'/> <feBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_10_66' result='shape'/> </filter> <filter id='filter1_g_10_66' x='-33.12' y='-33.12' width='138.24' height='138.24' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'> <feFlood flood-opacity='0' result='BackgroundImageFix'/> <feBlend mode='normal' in='SourceGraphic' in2='BackgroundImageFix' result='shape'/> <feTurbulence type='fractalNoise' baseFrequency='0.012303149327635765 0.012303149327635765' numOctaves='3' seed='8425'/> <feDisplacementMap in='shape' scale='66.239997863769531' xChannelSelector='R' yChannelSelector='G' result='displacedImage' width='100%' height='100%'/> <feMerge result='effect1_texture_10_66'> <feMergeNode in='displacedImage'/> </feMerge> </filter> <clipPath id='bgblur_1_10_66_clip_path' transform='translate(33.12 33.12)'><rect width='72' height='72'/> </clipPath><filter id='filter2_iii_10_66' x='-1' y='-2' width='74' height='76' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'> <feFlood flood-opacity='0' result='BackgroundImageFix'/> <feBlend mode='normal' in='SourceGraphic' in2='BackgroundImageFix' result='shape'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset/> <feGaussianBlur stdDeviation='7'/> <feComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/> <feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.3 0'/> <feBlend mode='normal' in2='shape' result='effect1_innerShadow_10_66'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset dx='-1' dy='-3'/> <feGaussianBlur stdDeviation='1'/> <feComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/> <feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.1 0'/> <feBlend mode='normal' in2='effect1_innerShadow_10_66' result='effect2_innerShadow_10_66'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset dx='1' dy='3'/> <feGaussianBlur stdDeviation='1'/> <feComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/> <feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.3 0'/> <feBlend mode='normal' in2='effect2_innerShadow_10_66' result='effect3_innerShadow_10_66'/> </filter> <linearGradient id='paint0_linear_10_66' x1='4.5' y1='16' x2='67.5' y2='52.5' gradientUnits='userSpaceOnUse'> <stop stop-color='#C000FF'/> <stop offset='1' stop-color='#2BFFCA'/> </linearGradient> <clipPath id='clip0_10_66'> <rect width='72' height='72' rx='36' fill='white'/> </clipPath> </defs> </svg>",C.style.color=c.iconColor||"#ffffff",C.style.position="fixed",C.style.zIndex="2147483000",C.style.borderRadius="100px",C.style.padding="0",C.style.width="56px",C.style.height="56px",C.style.backgroundColor=c.backgroundColor||"transparent",C.style.color=c.labelColor||"transparent",C.style.border="none",C.style.cursor="pointer",C.style.boxShadow="0 4px 12px rgba(0,0,0,0.2)",C.style.fontFamily="system-ui, -apple-system, BlinkMacSystemFont, sans-serif",C.style.fontSize="14px",C.style.bottom=c.buttonPosition?.bottom||"24px",c.buttonPosition?.top&&(C.style.top=c.buttonPosition.top),C.style.right=c.buttonPosition?.right||"20px",c.buttonPosition?.left&&(C.style.left=c.buttonPosition.left),document.body.appendChild(C));let k=document.getElementById(x);k||(k=document.createElement("div"),k.id=x,k.style.position="fixed",k.style.zIndex="2147483000",k.style.bottom=c.modalPosition?.bottom||"30px",c.modalPosition?.top&&(k.style.top=c.modalPosition.top),k.style.right=c.modalPosition?.right||"30px",c.modalPosition?.left&&(k.style.left=c.modalPosition.left),k.style.width=u,k.style.height=l,k.style.maxWidth="30%",k.style.maxHeight="80%",k.style.backgroundColor="#ffffff",k.style.borderRadius="12px",k.style.overflow="hidden",k.style.boxShadow="0 16px 40px rgba(0,0,0,0.25)",k.style.display="none",k.style.opacity="0",k.style.transform="translateY(16px) scale(0.98)",k.style.transition="transform 220ms ease-out, opacity 220ms ease-out",document.body.appendChild(k)),function(e,i,a,s,l,u,c,d,h,f,p,m,g,v,y,b,_,w){const S=(0,o.H)(e),x=(e,t)=>{const n={source:"vdb-ai-chat",type:e,payload:t},r=JSON.stringify(n),i=window.ReactNativeWebView;if(i?.postMessage)i.postMessage(r);else{try{window.parent?.postMessage(n,"*")}catch{}try{window.dispatchEvent(new CustomEvent("vdb-ai-event",{detail:n}))}catch{}}},E=t.createElement($a,null,t.createElement(n.A,{style:as.root},t.createElement(Ga,{apiUrl:
|
|
462
|
+
`,is=vn.TouchableOpacity``,os=i.A.create({listContent:{paddingVertical:8,flexGrow:1,justifyContent:"flex-end"},loading:{paddingVertical:8,alignItems:"center"}}),as=i.A.create({root:{flex:1,height:"100%",width:"100%"}});window.createChatWidget=function(e){const{id:i="chat-widget",apiUrl:a,theme:s,height:l="500px",width:u="360px",button:c={label:"",icon:"",iconColor:"transparent",labelColor:"transparent",backgroundColor:"transparent",borderRadius:"9999px",padding:"0",buttonPosition:{bottom:"60px",right:"44px"}},segmentWriteKey:d,isBetaMode:h,locale:f,translations:p,userToken:m,priceMode:g,userName:v,activeProductType:y,trackAnalyticsEvent:b,modalHeight:_,onViewAllPress:w,onItemPress:S}=e;(f||p)&&jr({locale:f,translations:p});const x=`${i}-modal`,E=`${i}-launcher`;let C=document.getElementById(E);C||(C=document.createElement("button"),C.id=E,C.type="button",C.innerText=c.label||"",C.innerHTML=c.icon||"<svg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 72 72' fill='none'> <g filter='url(#filter0_d_10_66)'> <g clip-path='url(#clip0_10_66)'> <foreignObject x='-33.12' y='-33.12' width='138.24' height='138.24'><div xmlns='http://www.w3.org/1999/xhtml' style='backdrop-filter:blur(1px);clip-path:url(#bgblur_1_10_66_clip_path);height:100%;width:100%'></div></foreignObject><g filter='url(#filter1_g_10_66)' data-figma-bg-blur-radius='2'> <rect width='72' height='72' fill='white' fill-opacity='0.05'/> </g> <g filter='url(#filter2_iii_10_66)'> <rect width='72' height='72' rx='36' fill='url(#paint0_linear_10_66)' fill-opacity='0.7'/> <rect x='0.5' y='0.5' width='71' height='71' rx='35.5' stroke='white' stroke-opacity='0.2'/> </g> <path d='M36 20C36 20 36.8828 28.2399 40.3215 31.6785C43.7601 35.1172 52 36 52 36C52 36 43.7601 36.8828 40.3215 40.3215C36.8828 43.7601 36 52 36 52C36 52 35.1172 43.7601 31.6785 40.3215C28.2399 36.8828 20 36 20 36C20 36 28.2399 35.1172 31.6785 31.6785C35.1172 28.2399 36 20 36 20Z' fill='white'/> </g> </g> <defs> <filter id='filter0_d_10_66' x='0' y='0' width='112' height='112' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'> <feFlood flood-opacity='0' result='BackgroundImageFix'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset dx='20' dy='20'/> <feGaussianBlur stdDeviation='10'/> <feComposite in2='hardAlpha' operator='out'/> <feColorMatrix type='matrix' values='0 0 0 0 0.862354 0 0 0 0 0.862354 0 0 0 0 0.89855 0 0 0 0.2 0'/> <feBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_10_66'/> <feBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_10_66' result='shape'/> </filter> <filter id='filter1_g_10_66' x='-33.12' y='-33.12' width='138.24' height='138.24' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'> <feFlood flood-opacity='0' result='BackgroundImageFix'/> <feBlend mode='normal' in='SourceGraphic' in2='BackgroundImageFix' result='shape'/> <feTurbulence type='fractalNoise' baseFrequency='0.012303149327635765 0.012303149327635765' numOctaves='3' seed='8425'/> <feDisplacementMap in='shape' scale='66.239997863769531' xChannelSelector='R' yChannelSelector='G' result='displacedImage' width='100%' height='100%'/> <feMerge result='effect1_texture_10_66'> <feMergeNode in='displacedImage'/> </feMerge> </filter> <clipPath id='bgblur_1_10_66_clip_path' transform='translate(33.12 33.12)'><rect width='72' height='72'/> </clipPath><filter id='filter2_iii_10_66' x='-1' y='-2' width='74' height='76' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'> <feFlood flood-opacity='0' result='BackgroundImageFix'/> <feBlend mode='normal' in='SourceGraphic' in2='BackgroundImageFix' result='shape'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset/> <feGaussianBlur stdDeviation='7'/> <feComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/> <feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.3 0'/> <feBlend mode='normal' in2='shape' result='effect1_innerShadow_10_66'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset dx='-1' dy='-3'/> <feGaussianBlur stdDeviation='1'/> <feComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/> <feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.1 0'/> <feBlend mode='normal' in2='effect1_innerShadow_10_66' result='effect2_innerShadow_10_66'/> <feColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/> <feOffset dx='1' dy='3'/> <feGaussianBlur stdDeviation='1'/> <feComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/> <feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.3 0'/> <feBlend mode='normal' in2='effect2_innerShadow_10_66' result='effect3_innerShadow_10_66'/> </filter> <linearGradient id='paint0_linear_10_66' x1='4.5' y1='16' x2='67.5' y2='52.5' gradientUnits='userSpaceOnUse'> <stop stop-color='#C000FF'/> <stop offset='1' stop-color='#2BFFCA'/> </linearGradient> <clipPath id='clip0_10_66'> <rect width='72' height='72' rx='36' fill='white'/> </clipPath> </defs> </svg>",C.style.color=c.iconColor||"#ffffff",C.style.position="fixed",C.style.zIndex="2147483000",C.style.borderRadius="100px",C.style.padding="0",C.style.width="56px",C.style.height="56px",C.style.backgroundColor=c.backgroundColor||"transparent",C.style.color=c.labelColor||"transparent",C.style.border="none",C.style.cursor="pointer",C.style.boxShadow="0 4px 12px rgba(0,0,0,0.2)",C.style.fontFamily="system-ui, -apple-system, BlinkMacSystemFont, sans-serif",C.style.fontSize="14px",C.style.bottom=c.buttonPosition?.bottom||"24px",c.buttonPosition?.top&&(C.style.top=c.buttonPosition.top),C.style.right=c.buttonPosition?.right||"20px",c.buttonPosition?.left&&(C.style.left=c.buttonPosition.left),document.body.appendChild(C));let k=document.getElementById(x);k||(k=document.createElement("div"),k.id=x,k.style.position="fixed",k.style.zIndex="2147483000",k.style.bottom=c.modalPosition?.bottom||"30px",c.modalPosition?.top&&(k.style.top=c.modalPosition.top),k.style.right=c.modalPosition?.right||"30px",c.modalPosition?.left&&(k.style.left=c.modalPosition.left),k.style.width=u,k.style.height=l,k.style.maxWidth="30%",k.style.maxHeight="80%",k.style.backgroundColor="#ffffff",k.style.borderRadius="12px",k.style.overflow="hidden",k.style.boxShadow="0 16px 40px rgba(0,0,0,0.25)",k.style.display="none",k.style.opacity="0",k.style.transform="translateY(16px) scale(0.98)",k.style.transition="transform 220ms ease-out, opacity 220ms ease-out",document.body.appendChild(k)),function(e,i,a,s,l,u,c,d,h,f,p,m,g,v,y,b,_,w){const S=(0,o.H)(e),x=(e,t)=>{const n={source:"vdb-ai-chat",type:e,payload:t},r=JSON.stringify(n),i=window.ReactNativeWebView;if(i?.postMessage)i.postMessage(r);else{try{window.parent?.postMessage(n,"*")}catch{}try{window.dispatchEvent(new CustomEvent("vdb-ai-event",{detail:n}))}catch{}}},E=t.createElement($a,null,t.createElement(n.A,{style:as.root},t.createElement(Ga,{apiUrl:i,theme:a,onClose:s,onClearChat:()=>{},onViewAllPress:(e,t)=>{c?.(e,t),x("ai_view_all",{url:e,payload:t}),s?.()},onItemPress:(e,t)=>{d?.(e,t),x("ai_item_click",{url:e,item:t}),s?.()},isBetaMode:h,classic_search_filters:void 0,userToken:p,priceMode:m,userName:g,activeProductType:v,trackAnalyticsEvent:y,modalHeight:b,locale:_,translations:w})));if(S.render(E),"web"===r.A.OS&&u)try{const e="undefined"!=typeof navigator&&(navigator.userAgent.includes("Edg")||navigator.userAgent.includes("Edge"));dt.load({writeKey:u,trackAppLifecycleEvents:!1,flushAt:e?1:10,flushInterval:1e4,maxBatchSize:e?1:10}).then(async e=>{let[n]=e;n?.debug?.(!0),window.analytics=n,n.page?.();try{const e=await si(),t=e?.id;t&&n.identify(t)}catch{}const r=t.createElement(ft,{client:n},E);S.render(r)}).catch(e=>{console.error("[Segment] init failed",e)})}catch(e){console.error("[Segment] init failed",e)}}(k,a,s,()=>R(!1),0,d,w||void 0,S||void 0,h,0,m,g,v,y,b||void 0,_,f,p);let A=!1;const R=e=>{A=e,e?(k.style.display="block",requestAnimationFrame(()=>{k.style.opacity="1",k.style.transform="translateY(0px) scale(1)";const e=document.getElementById("chat-input");e&&e.focus()})):(k.style.opacity="0",k.style.transform="translateY(16px) scale(0.98)",setTimeout(()=>{A||(k.style.display="none")},230))};C.onclick=()=>{try{const e=window.analytics;e&&(A?e.track(ui.WIDGET_CLOSED,{userAgent:"undefined"!=typeof navigator?navigator.userAgent:""}).then?.():e.track(ui.WIDGET_OPENED,{userAgent:"undefined"!=typeof navigator?navigator.userAgent:""}).then?.())}catch(e){}R(!A)}},window.clearChat=function(){e.A.emit("clearChat")},window.changePriceMode=function(t){e.A.emit("changePriceMode",{priceMode:t})},window.setTranslations=async e=>{try{const t=await Pr("persist:root"),n=t?JSON.parse(t):{};let r="string"==typeof n?.globalData?JSON.parse(n.globalData):n?.globalData||{};if(r.ai_chat_bot={...r.ai_chat_bot,translations:e},n.globalData=JSON.stringify(r),await Or("persist:root",JSON.stringify(n)),Dr.isInitialized){const t=Fr(e);Dr.addResourceBundle(Dr.language,"translation",t,!0,!0)}}catch{}},window.getTranslations=async()=>{const e=await Vr();return e&&Object.keys(e).length>0?e:Er},window.changeLanguage=async e=>{const t=await Vr(),n=zr(t,void 0),r=Fr(n);Dr.addResourceBundle(e,"translation",r,!0,!0),await Dr.changeLanguage(e)},window.initI18n=jr})()})();
|
|
@@ -11,7 +11,6 @@ var _analyticsNext = require("@segment/analytics-next");
|
|
|
11
11
|
var _AnalyticsClientContext = require("./contexts/AnalyticsClientContext");
|
|
12
12
|
var _ChatWidget = require("./components/ChatWidget");
|
|
13
13
|
var _utils = require("./components/utils");
|
|
14
|
-
var _routes = _interopRequireDefault(require("./routes"));
|
|
15
14
|
var _ThemeProvider = _interopRequireDefault(require("./contexts/ThemeProvider"));
|
|
16
15
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
16
|
function renderChatApp(domElement, apiUrl, theme, onClose, onClearChat, segmentWriteKey, onViewAllPress, onItemPress, isBetaMode, classic_search_filters, userToken, priceMode, userName, activeProductType, trackAnalyticsEvent, modalHeight, locale, translations) {
|
|
@@ -64,7 +63,7 @@ function renderChatApp(domElement, apiUrl, theme, onClose, onClearChat, segmentW
|
|
|
64
63
|
const content = /*#__PURE__*/_react.default.createElement(_ThemeProvider.default, null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
65
64
|
style: styles.root
|
|
66
65
|
}, /*#__PURE__*/_react.default.createElement(_ChatWidget.ChatWidget, {
|
|
67
|
-
apiUrl:
|
|
66
|
+
apiUrl: apiUrl,
|
|
68
67
|
theme: theme,
|
|
69
68
|
onClose: onClose,
|
|
70
69
|
onClearChat: onClearChat,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_client","_analyticsNext","_AnalyticsClientContext","_ChatWidget","_utils","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_client","_analyticsNext","_AnalyticsClientContext","_ChatWidget","_utils","_ThemeProvider","e","__esModule","default","renderChatApp","domElement","apiUrl","theme","onClose","onClearChat","segmentWriteKey","onViewAllPress","onItemPress","isBetaMode","classic_search_filters","userToken","priceMode","userName","activeProductType","trackAnalyticsEvent","modalHeight","locale","translations","root","createRoot","sendToParent","type","payload","msg","source","json","JSON","stringify","rnwv","window","ReactNativeWebView","postMessage","parent","dispatchEvent","CustomEvent","detail","handleViewAll","url","handleItemPress","item","content","createElement","View","style","styles","ChatWidget","render","Platform","OS","isEdge","navigator","userAgent","includes","clientPromise","AnalyticsBrowser","load","writeKey","trackAppLifecycleEvents","flushAt","flushInterval","maxBatchSize","then","client","debug","analytics","page","user","getUserDetails","userId","id","identify","contentWithAnalytics","AnalyticsClientProvider","catch","console","error","StyleSheet","create","flex","height","width"],"sourceRoot":"../../src","sources":["index.web.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,uBAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AAEA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,cAAA,GAAAR,sBAAA,CAAAC,OAAA;AAAqD,SAAAD,uBAAAS,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAuB9C,SAASG,aAAaA,CAC3BC,UAAuB,EACvBC,MAAc,EACdC,KAA0B,EAC1BC,OAAoB,EACpBC,WAAwB,EACxBC,eAAwB,EACxBC,cAAoD,EACpDC,WAA8C,EAC9CC,UAAoB,EACpBC,sBAA4B,EAC5BC,SAAkB,EAClBC,SAAkB,EAClBC,QAAiB,EACjBC,iBAA0B,EAC1BC,mBAAkE,EAClEC,WAAoB,EACpBC,MAAe,EACfC,YAAqC,EACrC;EACA,MAAMC,IAAI,GAAG,IAAAC,kBAAU,EAACnB,UAAU,CAAC;;EAEnC;EACA,MAAMoB,YAAY,GAAGA,CAACC,IAAY,EAAEC,OAAY,KAAK;IACnD,MAAMC,GAAG,GAAG;MAAEC,MAAM,EAAE,aAAa;MAAEH,IAAI;MAAEC;IAAQ,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AC,qBAAc,EAAC,CAAC;UACnC,MAAMC,MAAM,GAAGF,IAAI,EAAEG,EAAE;UACvB,IAAID,MAAM,EAAEN,MAAM,CAACQ,QAAQ,CAACF,MAAM,CAAC;QACrC,CAAC,CAAC,MAAM,CAAC;QAET,MAAMG,oBAAoB,gBACxBrF,MAAA,CAAAY,OAAA,CAAA2C,aAAA,CAACjD,uBAAA,CAAAgF,uBAAuB;UAACV,MAAM,EAAEA;QAAO,GACrCtB,OACsB,CAC1B;QACDtB,IAAI,CAAC4B,MAAM,CAACyB,oBAAoB,CAAC;MACnC,CAAC,CAAC,CACDE,KAAK,CAAE7E,CAAM,IAAK;QACjB;QACA8E,OAAO,CAACC,KAAK,CAAC,uBAAuB,EAAE/E,CAAC,CAAC;MAC3C,CAAC,CAAC;IACN,CAAC,CAAC,OAAOA,CAAC,EAAE;MACV;MACA8E,OAAO,CAACC,KAAK,CAAC,uBAAuB,EAAE/E,CAAC,CAAC;IAC3C;EACF;AACF;AAEA,MAAMgD,MAAM,GAAGgC,uBAAU,CAACC,MAAM,CAAC;EAC/B3D,IAAI,EAAE;IACJ4D,IAAI,EAAE,CAAC;IACPC,MAAM,EAAE,MAAM;IACdC,KAAK,EAAE;EACT;AACF,CAAC,CAAC","ignoreList":[]}
|
package/lib/module/index.web.js
CHANGED
|
@@ -5,7 +5,6 @@ import { AnalyticsBrowser } from "@segment/analytics-next";
|
|
|
5
5
|
import { AnalyticsClientProvider } from "./contexts/AnalyticsClientContext";
|
|
6
6
|
import { ChatWidget } from "./components/ChatWidget";
|
|
7
7
|
import { getUserDetails } from "./components/utils";
|
|
8
|
-
import Routes from "./routes";
|
|
9
8
|
import ThemeProvider from "./contexts/ThemeProvider";
|
|
10
9
|
export function renderChatApp(domElement, apiUrl, theme, onClose, onClearChat, segmentWriteKey, onViewAllPress, onItemPress, isBetaMode, classic_search_filters, userToken, priceMode, userName, activeProductType, trackAnalyticsEvent, modalHeight, locale, translations) {
|
|
11
10
|
const root = createRoot(domElement);
|
|
@@ -57,7 +56,7 @@ export function renderChatApp(domElement, apiUrl, theme, onClose, onClearChat, s
|
|
|
57
56
|
const content = /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(View, {
|
|
58
57
|
style: styles.root
|
|
59
58
|
}, /*#__PURE__*/React.createElement(ChatWidget, {
|
|
60
|
-
apiUrl:
|
|
59
|
+
apiUrl: apiUrl,
|
|
61
60
|
theme: theme,
|
|
62
61
|
onClose: onClose,
|
|
63
62
|
onClearChat: onClearChat,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Platform","StyleSheet","View","createRoot","AnalyticsBrowser","AnalyticsClientProvider","ChatWidget","getUserDetails","
|
|
1
|
+
{"version":3,"names":["React","Platform","StyleSheet","View","createRoot","AnalyticsBrowser","AnalyticsClientProvider","ChatWidget","getUserDetails","ThemeProvider","renderChatApp","domElement","apiUrl","theme","onClose","onClearChat","segmentWriteKey","onViewAllPress","onItemPress","isBetaMode","classic_search_filters","userToken","priceMode","userName","activeProductType","trackAnalyticsEvent","modalHeight","locale","translations","root","sendToParent","type","payload","msg","source","json","JSON","stringify","rnwv","window","ReactNativeWebView","postMessage","parent","dispatchEvent","CustomEvent","detail","handleViewAll","url","handleItemPress","item","content","createElement","style","styles","render","OS","isEdge","navigator","userAgent","includes","clientPromise","load","writeKey","trackAppLifecycleEvents","flushAt","flushInterval","maxBatchSize","then","client","debug","analytics","page","user","userId","id","identify","contentWithAnalytics","catch","e","console","error","create","flex","height","width"],"sourceRoot":"../../src","sources":["index.web.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AACzD,SAASC,UAAU,QAAQ,kBAAkB;AAC7C,SAASC,gBAAgB,QAAQ,yBAAyB;AAC1D,SAASC,uBAAuB,QAAQ,mCAAmC;AAC3E,SAASC,UAAU,QAAQ,yBAAyB;AAEpD,SAASC,cAAc,QAA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
|
-
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../src/index.web.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../src/index.web.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAIzC,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,WAAW,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,IAAI,CAAC;IACrD,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sBAAsB,CAAC,EAAE,GAAG,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IACnE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACvC;AAED,wBAAgB,aAAa,CAC3B,UAAU,EAAE,WAAW,EACvB,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,EAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,EACpB,WAAW,CAAC,EAAE,MAAM,IAAI,EACxB,eAAe,CAAC,EAAE,MAAM,EACxB,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,IAAI,EACpD,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,IAAI,EAC9C,UAAU,CAAC,EAAE,OAAO,EACpB,sBAAsB,CAAC,EAAE,GAAG,EAC5B,SAAS,CAAC,EAAE,MAAM,EAClB,SAAS,CAAC,EAAE,MAAM,EAClB,QAAQ,CAAC,EAAE,MAAM,EACjB,iBAAiB,CAAC,EAAE,MAAM,EAC1B,mBAAmB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,GAAG,KAAK,IAAI,EAClE,WAAW,CAAC,EAAE,MAAM,EACpB,MAAM,CAAC,EAAE,MAAM,EACf,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,QA2GtC"}
|
package/package.json
CHANGED
package/src/index.web.tsx
CHANGED
|
@@ -6,7 +6,6 @@ import { AnalyticsClientProvider } from "./contexts/AnalyticsClientContext";
|
|
|
6
6
|
import { ChatWidget } from "./components/ChatWidget";
|
|
7
7
|
import type { ChatTheme } from "./types";
|
|
8
8
|
import { getUserDetails } from "./components/utils";
|
|
9
|
-
import Routes from "./routes";
|
|
10
9
|
import ThemeProvider from "./contexts/ThemeProvider";
|
|
11
10
|
|
|
12
11
|
export interface RenderChatAppOptions {
|
|
@@ -90,7 +89,7 @@ export function renderChatApp(
|
|
|
90
89
|
<ThemeProvider>
|
|
91
90
|
<View style={styles.root}>
|
|
92
91
|
<ChatWidget
|
|
93
|
-
apiUrl={
|
|
92
|
+
apiUrl={apiUrl}
|
|
94
93
|
theme={theme}
|
|
95
94
|
onClose={onClose}
|
|
96
95
|
onClearChat={onClearChat}
|