@robylon/react-native-sdk 2.0.19-staging.58 → 2.0.19-staging.59

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,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _ErrorTrackingService=require("./services/ErrorTrackingService");var _errorConstants=require("./constants/errorConstants");var _jsxRuntime=require("react/jsx-runtime");var _this=this,_jsxFileName="/Users/jobinabraham/Developer/personal/robylon-react-native-sdk/src/FloatingButton.tsx";var FloatingButton=function FloatingButton(_ref){var onPress=_ref.onPress,_ref$brandColor=_ref.brandColor,brandColor=_ref$brandColor===void 0?"#007AFF":_ref$brandColor,imageUrl=_ref.imageUrl,isWebViewVisible=_ref.isWebViewVisible;var handleImageError=function handleImageError(){_ErrorTrackingService.errorTracker.trackError(new Error("Failed to load button image"),"FloatingButton",{type:_errorConstants.ErrorTypes.RUNTIME_ERROR,context:{imageUrl:imageUrl}});};return(0,_jsxRuntime.jsx)(_reactNative.TouchableOpacity,{style:[styles.button,{backgroundColor:isWebViewVisible?"transparent":brandColor},isWebViewVisible&&styles.disabledButton],onPress:isWebViewVisible?undefined:onPress,activeOpacity:isWebViewVisible?1:0.7,children:imageUrl&&!isWebViewVisible?(0,_jsxRuntime.jsx)(_reactNative.Image,{source:{uri:imageUrl},style:styles.buttonImage}):(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.buttonText,children:"Chat"})});};var styles=_reactNative.StyleSheet.create({button:{position:"absolute",bottom:20,right:20,borderRadius:24,width:48,height:48,justifyContent:"center",alignItems:"center",elevation:5,shadowColor:"#000",shadowOffset:{width:0,height:2},shadowOpacity:0.25,shadowRadius:3.84,zIndex:999},buttonText:{color:"white",fontSize:16,fontWeight:"bold"},buttonImage:{width:48,height:48,borderRadius:24},disabledButton:{backgroundColor:"rgba(0, 0, 0, 0)"}});var _default=exports.default=FloatingButton;
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _ErrorTrackingService=require("./services/ErrorTrackingService");var _errorConstants=require("./constants/errorConstants");var _jsxRuntime=require("react/jsx-runtime");var _this=this,_jsxFileName="/Users/jobinabraham/Developer/personal/robylon-react-native-sdk/src/FloatingButton.tsx";var FloatingButton=function FloatingButton(_ref){var onPress=_ref.onPress,_ref$brandColor=_ref.brandColor,brandColor=_ref$brandColor===void 0?"#007AFF":_ref$brandColor,imageUrl=_ref.imageUrl,isWebViewVisible=_ref.isWebViewVisible;var handleImageError=function handleImageError(){_ErrorTrackingService.errorTracker.trackError(new Error("Failed to load button image"),"FloatingButton",{type:_errorConstants.ErrorTypes.RUNTIME_ERROR,context:{imageUrl:imageUrl}});};return(0,_jsxRuntime.jsx)(_reactNative.View,{pointerEvents:isWebViewVisible?"none":"auto",children:(0,_jsxRuntime.jsx)(_reactNative.TouchableOpacity,{style:[styles.button,{backgroundColor:isWebViewVisible?"transparent":brandColor},isWebViewVisible&&styles.disabledButton],onPress:isWebViewVisible?undefined:onPress,activeOpacity:isWebViewVisible?1:0.7,children:imageUrl&&!isWebViewVisible?(0,_jsxRuntime.jsx)(_reactNative.Image,{source:{uri:imageUrl},style:styles.buttonImage}):(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.buttonText,children:"Chat"})})});};var styles=_reactNative.StyleSheet.create({button:{position:"absolute",bottom:20,right:20,borderRadius:24,width:48,height:48,justifyContent:"center",alignItems:"center",elevation:5,shadowColor:"#000",shadowOffset:{width:0,height:2},shadowOpacity:0.25,shadowRadius:3.84,zIndex:998},buttonText:{color:"white",fontSize:16,fontWeight:"bold"},buttonImage:{width:48,height:48,borderRadius:24},disabledButton:{backgroundColor:"rgba(0, 0, 0, 0)"}});var _default=exports.default=FloatingButton;
2
2
  //# sourceMappingURL=FloatingButton.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ErrorTrackingService","_errorConstants","_jsxRuntime","_this","_jsxFileName","FloatingButton","_ref","onPress","_ref$brandColor","brandColor","imageUrl","isWebViewVisible","handleImageError","errorTracker","trackError","Error","type","ErrorTypes","RUNTIME_ERROR","context","jsx","TouchableOpacity","style","styles","button","backgroundColor","disabledButton","undefined","activeOpacity","children","Image","source","uri","buttonImage","Text","buttonText","StyleSheet","create","position","bottom","right","borderRadius","width","height","justifyContent","alignItems","elevation","shadowColor","shadowOffset","shadowOpacity","shadowRadius","zIndex","color","fontSize","fontWeight","_default","exports","default"],"sourceRoot":"../../src","sources":["FloatingButton.tsx"],"mappings":"mKAAA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBACA,IAAAE,qBAAA,CAAAF,OAAA,oCACA,IAAAG,eAAA,CAAAH,OAAA,+BAAwD,IAAAI,WAAA,CAAAJ,OAAA,0BAAAK,KAAA,MAAAC,YAAA,0FASxD,GAAM,CAAAC,cAA6C,CAAG,QAAhD,CAAAA,cAA6CA,CAAAC,IAAA,CAK7C,IAJJ,CAAAC,OAAO,CAAAD,IAAA,CAAPC,OAAO,CAAAC,eAAA,CAAAF,IAAA,CACPG,UAAU,CAAVA,UAAU,CAAAD,eAAA,UAAG,SAAS,CAAAA,eAAA,CACtBE,QAAQ,CAAAJ,IAAA,CAARI,QAAQ,CACRC,gBAAgB,CAAAL,IAAA,CAAhBK,gBAAgB,CAEhB,GAAM,CAAAC,gBAAgB,CAAG,QAAnB,CAAAA,gBAAgBA,CAAA,CAAS,CAC7BC,kCAAY,CAACC,UAAU,CACrB,GAAI,CAAAC,KAAK,CAAC,6BAA6B,CAAC,CACxC,gBAAgB,CAChB,CACEC,IAAI,CAAEC,0BAAU,CAACC,aAAa,CAC9BC,OAAO,CAAE,CAAET,QAAQ,CA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AAC,CACDhB,UAAU,CAAE,CACViB,KAAK,CAAE,OAAO,CACdC,QAAQ,CAAE,EAAE,CACZC,UAAU,CAAE,MACd,CAAC,CACDrB,WAAW,CAAE,CACXS,KAAK,CAAE,EAAE,CACTC,MAAM,CAAE,EAAE,CACVF,YAAY,CAAE,EAChB,CAAC,CACDf,cAAc,CAAE,CACdD,eAAe,CAAE,kBACnB,CACF,CAAC,CAAC,CAAC,IAAA8B,QAAA,CAAAC,OAAA,CAAAC,OAAA,CAEYpD,cAAc","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ErrorTrackingService","_errorConstants","_jsxRuntime","_this","_jsxFileName","FloatingButton","_ref","onPress","_ref$brandColor","brandColor","imageUrl","isWebViewVisible","handleImageError","errorTracker","trackError","Error","type","ErrorTypes","RUNTIME_ERROR","context","jsx","View","pointerEvents","children","TouchableOpacity","style","styles","button","backgroundColor","disabledButton","undefined","activeOpacity","Image","source","uri","buttonImage","Text","buttonText","StyleSheet","create","position","bottom","right","borderRadius","width","height","justifyContent","alignItems","elevation","shadowColor","shadowOffset","shadowOpacity","shadowRadius","zIndex","color","fontSize","fontWeight","_default","exports","default"],"sourceRoot":"../../src","sources":["FloatingButton.tsx"],"mappings":"mKAAA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBACA,IAAAE,qBAAA,CAAAF,OAAA,oCACA,IAAAG,eAAA,CAAAH,OAAA,+BAAwD,IAAAI,WAAA,CAAAJ,OAAA,0BAAAK,KAAA,MAAAC,YAAA,0FASxD,GAAM,CAAAC,cAA6C,CAAG,QAAhD,CAAAA,cAA6CA,CAAAC,IAAA,CAK7C,IAJJ,CAAAC,OAAO,CAAAD,IAAA,CAAPC,OAAO,CAAAC,eAAA,CAAAF,IAAA,CACPG,UAAU,CAAVA,UAAU,CAAAD,eAAA,UAAG,SAAS,CAAAA,eAAA,CACtBE,QAAQ,CAAAJ,IAAA,CA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AAC,CAC/BZ,MAAM,CAAE,CACNa,QAAQ,CAAE,UAAU,CACpBC,MAAM,CAAE,EAAE,CACVC,KAAK,CAAE,EAAE,CACTC,YAAY,CAAE,EAAE,CAChBC,KAAK,CAAE,EAAE,CACTC,MAAM,CAAE,EAAE,CACVC,cAAc,CAAE,QAAQ,CACxBC,UAAU,CAAE,QAAQ,CACpBC,SAAS,CAAE,CAAC,CACZC,WAAW,CAAE,MAAM,CACnBC,YAAY,CAAE,CAAEN,KAAK,CAAE,CAAC,CAAEC,MAAM,CAAE,CAAE,CAAC,CACrCM,aAAa,CAAE,IAAI,CACnBC,YAAY,CAAE,IAAI,CAClBC,MAAM,CAAE,GACV,CAAC,CACDhB,UAAU,CAAE,CACViB,KAAK,CAAE,OAAO,CACdC,QAAQ,CAAE,EAAE,CACZC,UAAU,CAAE,MACd,CAAC,CACDrB,WAAW,CAAE,CACXS,KAAK,CAAE,EAAE,CACTC,MAAM,CAAE,EAAE,CACVF,YAAY,CAAE,EAChB,CAAC,CACDd,cAAc,CAAE,CACdD,eAAe,CAAE,kBACnB,CACF,CAAC,CAAC,CAAC,IAAA6B,QAAA,CAAAC,OAAA,CAAAC,OAAA,CAEYtD,cAAc","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,"__esModule",{value:true});exports.SDK_VERSION=void 0;var SDK_VERSION=exports.SDK_VERSION='2.0.19-staging.58';
1
+ Object.defineProperty(exports,"__esModule",{value:true});exports.SDK_VERSION=void 0;var SDK_VERSION=exports.SDK_VERSION='2.0.19-staging.59';
2
2
  //# sourceMappingURL=version.staging.js.map
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _ErrorTrackingService=require("./services/ErrorTrackingService");var _errorConstants=require("./constants/errorConstants");var _jsxRuntime=require("react/jsx-runtime");var _this=this,_jsxFileName="/Users/jobinabraham/Developer/personal/robylon-react-native-sdk/src/FloatingButton.tsx";var FloatingButton=function FloatingButton(_ref){var onPress=_ref.onPress,_ref$brandColor=_ref.brandColor,brandColor=_ref$brandColor===void 0?"#007AFF":_ref$brandColor,imageUrl=_ref.imageUrl,isWebViewVisible=_ref.isWebViewVisible;var handleImageError=function handleImageError(){_ErrorTrackingService.errorTracker.trackError(new Error("Failed to load button image"),"FloatingButton",{type:_errorConstants.ErrorTypes.RUNTIME_ERROR,context:{imageUrl:imageUrl}});};return(0,_jsxRuntime.jsx)(_reactNative.TouchableOpacity,{style:[styles.button,{backgroundColor:isWebViewVisible?"transparent":brandColor},isWebViewVisible&&styles.disabledButton],onPress:isWebViewVisible?undefined:onPress,activeOpacity:isWebViewVisible?1:0.7,children:imageUrl&&!isWebViewVisible?(0,_jsxRuntime.jsx)(_reactNative.Image,{source:{uri:imageUrl},style:styles.buttonImage}):(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.buttonText,children:"Chat"})});};var styles=_reactNative.StyleSheet.create({button:{position:"absolute",bottom:20,right:20,borderRadius:24,width:48,height:48,justifyContent:"center",alignItems:"center",elevation:5,shadowColor:"#000",shadowOffset:{width:0,height:2},shadowOpacity:0.25,shadowRadius:3.84,zIndex:999},buttonText:{color:"white",fontSize:16,fontWeight:"bold"},buttonImage:{width:48,height:48,borderRadius:24},disabledButton:{backgroundColor:"rgba(0, 0, 0, 0)"}});var _default=exports.default=FloatingButton;
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _ErrorTrackingService=require("./services/ErrorTrackingService");var _errorConstants=require("./constants/errorConstants");var _jsxRuntime=require("react/jsx-runtime");var _this=this,_jsxFileName="/Users/jobinabraham/Developer/personal/robylon-react-native-sdk/src/FloatingButton.tsx";var FloatingButton=function FloatingButton(_ref){var onPress=_ref.onPress,_ref$brandColor=_ref.brandColor,brandColor=_ref$brandColor===void 0?"#007AFF":_ref$brandColor,imageUrl=_ref.imageUrl,isWebViewVisible=_ref.isWebViewVisible;var handleImageError=function handleImageError(){_ErrorTrackingService.errorTracker.trackError(new Error("Failed to load button image"),"FloatingButton",{type:_errorConstants.ErrorTypes.RUNTIME_ERROR,context:{imageUrl:imageUrl}});};return(0,_jsxRuntime.jsx)(_reactNative.View,{pointerEvents:isWebViewVisible?"none":"auto",children:(0,_jsxRuntime.jsx)(_reactNative.TouchableOpacity,{style:[styles.button,{backgroundColor:isWebViewVisible?"transparent":brandColor},isWebViewVisible&&styles.disabledButton],onPress:isWebViewVisible?undefined:onPress,activeOpacity:isWebViewVisible?1:0.7,children:imageUrl&&!isWebViewVisible?(0,_jsxRuntime.jsx)(_reactNative.Image,{source:{uri:imageUrl},style:styles.buttonImage}):(0,_jsxRuntime.jsx)(_reactNative.Text,{style:styles.buttonText,children:"Chat"})})});};var styles=_reactNative.StyleSheet.create({button:{position:"absolute",bottom:20,right:20,borderRadius:24,width:48,height:48,justifyContent:"center",alignItems:"center",elevation:5,shadowColor:"#000",shadowOffset:{width:0,height:2},shadowOpacity:0.25,shadowRadius:3.84,zIndex:998},buttonText:{color:"white",fontSize:16,fontWeight:"bold"},buttonImage:{width:48,height:48,borderRadius:24},disabledButton:{backgroundColor:"rgba(0, 0, 0, 0)"}});var _default=exports.default=FloatingButton;
2
2
  //# sourceMappingURL=FloatingButton.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ErrorTrackingService","_errorConstants","_jsxRuntime","_this","_jsxFileName","FloatingButton","_ref","onPress","_ref$brandColor","brandColor","imageUrl","isWebViewVisible","handleImageError","errorTracker","trackError","Error","type","ErrorTypes","RUNTIME_ERROR","context","jsx","TouchableOpacity","style","styles","button","backgroundColor","disabledButton","undefined","activeOpacity","children","Image","source","uri","buttonImage","Text","buttonText","StyleSheet","create","position","bottom","right","borderRadius","width","height","justifyContent","alignItems","elevation","shadowColor","shadowOffset","shadowOpacity","shadowRadius","zIndex","color","fontSize","fontWeight","_default","exports","default"],"sourceRoot":"../../src","sources":["FloatingButton.tsx"],"mappings":"mKAAA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBACA,IAAAE,qBAAA,CAAAF,OAAA,oCACA,IAAAG,eAAA,CAAAH,OAAA,+BAAwD,IAAAI,WAAA,CAAAJ,OAAA,0BAAAK,KAAA,MAAAC,YAAA,0FASxD,GAAM,CAAAC,cAA6C,CAAG,QAAhD,CAAAA,cAA6CA,CAAAC,IAAA,CAK7C,IAJJ,CAAAC,OAAO,CAAAD,IAAA,CAAPC,OAAO,CAAAC,eAAA,CAAAF,IAAA,CACPG,UAAU,CAAVA,UAAU,CAAAD,eAAA,UAAG,SAAS,CAAAA,eAAA,CACtBE,QAAQ,CAAAJ,IAAA,CAARI,QAAQ,CACRC,gBAAgB,CAAAL,IAAA,CAAhBK,gBAAgB,CAEhB,GAAM,CAAAC,gBAAgB,CAAG,QAAnB,CAAAA,gBAAgBA,CAAA,CAAS,CAC7BC,kCAAY,CAACC,UAAU,CACrB,GAAI,CAAAC,KAAK,CAAC,6BAA6B,CAAC,CACxC,gBAAgB,CAChB,CACEC,IAAI,CAAEC,0BAAU,CAACC,aAAa,CAC9BC,OAAO,CAAE,CAAET,QAAQ,CAARA,QAAS,CACtB,CACF,CAAC,CACH,CAAC,CAED,MACE,GAAAR,WAAA,CAAAkB,GAAA,EAACrB,YAAA,CAAAsB,gBAAgB,EACfC,KAAK,CAAE,CACLC,MAAM,CAACC,MAAM,CACb,CAAEC,eAAe,CAAEd,gBAAgB,CAAG,aAAa,CAAGF,UAAW,CAAC,CAClEE,gBAAgB,EAAIY,MAAM,CAACG,cAAc,CACzC,CACFnB,OAAO,CAAEI,gBAAgB,CAAGgB,SAAS,CAAGpB,OAAQ,CAChDqB,aAAa,CAAEjB,gBAAgB,CAAG,CAAC,CAAG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require","_reactNative","_ErrorTrackingService","_errorConstants","_jsxRuntime","_this","_jsxFileName","FloatingButton","_ref","onPress","_ref$brandColor","brandColor","imageUrl","isWebViewVisible","handleImageError","errorTracker","trackError","Error","type","ErrorTypes","RUNTIME_ERROR","context","jsx","View","pointerEvents","children","TouchableOpacity","style","styles","button","backgroundColor","disabledButton","undefined","activeOpacity","Image","source","uri","buttonImage","Text","buttonText","StyleSheet","create","position","bottom","right","borderRadius","width","height","justifyContent","alignItems","elevation","shadowColor","shadowOffset","shadowOpacity","shadowRadius","zIndex","color","fontSize","fontWeight","_default","exports","default"],"sourceRoot":"../../src","sources":["FloatingButton.tsx"],"mappings":"mKAAA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBACA,IAAAE,qBAAA,CAAAF,OAAA,oCACA,IAAAG,eAAA,CAAAH,OAAA,+BAAwD,IAAAI,WAAA,CAAAJ,OAAA,0BAAAK,KAAA,MAAAC,YAAA,0FASxD,GAAM,CAAAC,cAA6C,CAAG,QAAhD,CAAAA,cAA6CA,CAAAC,IAAA,CAK7C,IAJJ,CAAAC,OAAO,CAAAD,IAAA,CAAPC,OAAO,CAAAC,eAAA,CAAAF,IAAA,CACPG,UAAU,CAAVA,UAAU,CAAAD,eAAA,UAAG,SAAS,CAAAA,eAAA,CACtBE,QAAQ,CAAAJ,IAAA,CAARI,QAAQ,CACRC,gBAAgB,CAAAL,IAAA,CAAhBK,gBAAgB,CAEhB,GAAM,CAAAC,gBAAgB,CAAG,QAAnB,CAAAA,gBAAgBA,CAAA,CAAS,CAC7BC,kCAAY,CAACC,UAAU,CACrB,GAAI,CAAAC,KAAK,CAAC,6BAA6B,CAAC,CACxC,gBAAgB,CAChB,CACEC,IAAI,CAAEC,0BAAU,CAACC,aAAa,CAC9BC,OAAO,CAAE,CAAET,QAAQ,CAARA,QAAS,CACtB,CACF,CAAC,CACH,CAAC,CAED,MACE,GAAAR,WAAA,CAAAkB,GA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AAE,IAAI,CACnBC,YAAY,CAAE,IAAI,CAClBC,MAAM,CAAE,GACV,CAAC,CACDhB,UAAU,CAAE,CACViB,KAAK,CAAE,OAAO,CACdC,QAAQ,CAAE,EAAE,CACZC,UAAU,CAAE,MACd,CAAC,CACDrB,WAAW,CAAE,CACXS,KAAK,CAAE,EAAE,CACTC,MAAM,CAAE,EAAE,CACVF,YAAY,CAAE,EAChB,CAAC,CACDd,cAAc,CAAE,CACdD,eAAe,CAAE,kBACnB,CACF,CAAC,CAAC,CAAC,IAAA6B,QAAA,CAAAC,OAAA,CAAAC,OAAA,CAEYtD,cAAc","ignoreList":[]}
@@ -1,2 +1,3 @@
1
- Object.defineProperty(exports,"__esModule",{value:true});exports.openChatbot=void 0;var _reactNative=require("react-native");var _constants=require("./constants");var openChatbot=exports.openChatbot=function openChatbot(chatbotId){var additionalParams=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var params=new URLSearchParams(Object.assign({id:chatbotId},additionalParams));var url=`${_constants.BASE_CHATBOT_URL}?${params.toString()}`;_reactNative.Linking.openURL(url);};
1
+
2
+ //# sourceMappingURL=openChatbot.js.mape",{value:true});exports.openChatbot=void 0;var _reactNative=require("react-native");var _constants=require("./constants");var openChatbot=exports.openChatbot=function openChatbot(chatbotId){var additionalParams=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var params=new URLSearchParams(Object.assign({id:chatbotId},additionalParams));var url=`${_constants.BASE_CHATBOT_URL}?${params.toString()}`;_reactNative.Linking.openURL(url);};
2
3
  //# sourceMappingURL=openChatbot.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_constants","openChatbot","exports","chatbotId","additionalParams","arguments","length","undefined","params","URLSearchParams","Object","assign","id","url","BASE_CHATBOT_URL","toString","Linking","openURL"],"sourceRoot":"../../src","sources":["openChatbot.ts"],"mappings":"oFAAA,IAAAA,YAAA,CAAAC,OAAA,iBACA,IAAAC,UAAA,CAAAD,OAAA,gBAEO,GAAM,CAAAE,WAAW,CAAAC,OAAA,CAAAD,WAAA,CAAG,QAAd,CAAAA,WAAWA,CACtBE,SAAiB,CAER,IADT,CAAAC,gBAAwC,CAAAC,SAAA,CAAAC,MAAA,IAAAD,SAAA,MAAAE,SAAA,CAAAF,SAAA,IAAG,CAAC,CAAC,CAE7C,GAAM,CAAAG,MAAM,CAAG,GAAI,CAAAC,eAAe,CAAAC,MAAA,CAAAC,MAAA,EAAGC,EAAE,CAAET,SAAS,EAAKC,gBAAgB,CAAE,CAAC,CAC1E,GAAM,CAAAS,GAAG,CAAG,GAAGC,2BAAgB,IAAIN,MAAM,CAACO,QAAQ,CAAC,CAAC,EAAE,CACtDC,oBAAO,CAACC,OAAO,CAACJ,GAAG,CAAC,CACtB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":[],"sourceRoot":"../../src","sources":["openChatbot.tsx"],"mappings":"","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,"__esModule",{value:true});exports.SDK_VERSION=void 0;var SDK_VERSION=exports.SDK_VERSION='2.0.19-staging.58';
1
+ Object.defineProperty(exports,"__esModule",{value:true});exports.SDK_VERSION=void 0;var SDK_VERSION=exports.SDK_VERSION='2.0.19-staging.59';
2
2
  //# sourceMappingURL=version.staging.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FloatingButton.d.ts","sourceRoot":"","sources":["../../src/FloatingButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,mBAAmB;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAkCjD,CAAC;AAkCF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"FloatingButton.d.ts","sourceRoot":"","sources":["../../src/FloatingButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,mBAAmB;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAoCjD,CAAC;AAkCF,eAAe,cAAc,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const SDK_VERSION = "2.0.19-staging.58";
1
+ export declare const SDK_VERSION = "2.0.19-staging.59";
2
2
  //# sourceMappingURL=version.staging.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robylon/react-native-sdk",
3
- "version": "2.0.19-staging.58",
3
+ "version": "2.0.19-staging.59",
4
4
  "description": "React Native SDK for Robylon",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { TouchableOpacity, StyleSheet, Text, Image } from "react-native";
2
+ import { TouchableOpacity, StyleSheet, Text, Image, View } from "react-native";
3
3
  import { errorTracker } from "./services/ErrorTrackingService";
4
4
  import { ErrorTypes } from "./constants/errorConstants";
5
5
 
@@ -28,21 +28,23 @@ const FloatingButton: React.FC<FloatingButtonProps> = ({
28
28
  };
29
29
 
30
30
  return (
31
- <TouchableOpacity
32
- style={[
33
- styles.button,
34
- { backgroundColor: isWebViewVisible ? "transparent" : brandColor }, // Set transparent to visually disable
35
- isWebViewVisible && styles.disabledButton, // Add a disabled style
36
- ]}
37
- onPress={isWebViewVisible ? undefined : onPress} // Disable interaction
38
- activeOpacity={isWebViewVisible ? 1 : 0.7} // Prevent touch feedback when disabled
39
- >
40
- {imageUrl && !isWebViewVisible ? (
41
- <Image source={{ uri: imageUrl }} style={styles.buttonImage} />
42
- ) : (
43
- <Text style={styles.buttonText}>Chat</Text>
44
- )}
45
- </TouchableOpacity>
31
+ <View pointerEvents={isWebViewVisible ? "none" : "auto"}>
32
+ <TouchableOpacity
33
+ style={[
34
+ styles.button,
35
+ { backgroundColor: isWebViewVisible ? "transparent" : brandColor }, // Set transparent to visually disable
36
+ isWebViewVisible && styles.disabledButton, // Add a disabled style
37
+ ]}
38
+ onPress={isWebViewVisible ? undefined : onPress} // Disable interaction
39
+ activeOpacity={isWebViewVisible ? 1 : 0.7} // Prevent touch feedback when disabled
40
+ >
41
+ {imageUrl && !isWebViewVisible ? (
42
+ <Image source={{ uri: imageUrl }} style={styles.buttonImage} />
43
+ ) : (
44
+ <Text style={styles.buttonText}>Chat</Text>
45
+ )}
46
+ </TouchableOpacity>
47
+ </View>
46
48
  );
47
49
  };
48
50
 
@@ -61,7 +63,7 @@ const styles = StyleSheet.create({
61
63
  shadowOffset: { width: 0, height: 2 },
62
64
  shadowOpacity: 0.25,
63
65
  shadowRadius: 3.84,
64
- zIndex: 999,
66
+ zIndex: 998,
65
67
  },
66
68
  buttonText: {
67
69
  color: "white",
@@ -1,2 +1,2 @@
1
1
  // This file is auto-generated. Do not modify it manually.
2
- export const SDK_VERSION = '2.0.19-staging.58';
2
+ export const SDK_VERSION = '2.0.19-staging.59';