react-native-chatbot-ai 0.1.11 → 0.1.12
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.
|
@@ -18,13 +18,8 @@ const ChatEmpty = () => {
|
|
|
18
18
|
onSendMessage(item.content);
|
|
19
19
|
}, 200);
|
|
20
20
|
return /*#__PURE__*/_jsxs(KContainer.ScrollView, {
|
|
21
|
-
contentContainerStyle:
|
|
22
|
-
|
|
23
|
-
scale: -1
|
|
24
|
-
} : {
|
|
25
|
-
scaleY: -1
|
|
26
|
-
}]
|
|
27
|
-
}],
|
|
21
|
+
contentContainerStyle: styles.container,
|
|
22
|
+
style: styles.transformStyle,
|
|
28
23
|
children: [/*#__PURE__*/_jsx(KLabel.Text, {
|
|
29
24
|
typo: "TextXLgMedium",
|
|
30
25
|
center: true,
|
|
@@ -61,6 +56,13 @@ const styles = StyleSheet.create({
|
|
|
61
56
|
alignItems: 'center',
|
|
62
57
|
padding: KSpacingValue['0.75rem'],
|
|
63
58
|
gap: KSpacingValue['0.5rem']
|
|
59
|
+
},
|
|
60
|
+
transformStyle: {
|
|
61
|
+
transform: [Platform.OS === 'android' ? {
|
|
62
|
+
scale: -1
|
|
63
|
+
} : {
|
|
64
|
+
scaleY: -1
|
|
65
|
+
}]
|
|
64
66
|
}
|
|
65
67
|
});
|
|
66
68
|
//# sourceMappingURL=ChatEmpty.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["KColors","KContainer","KLabel","KSpacingValue","StyleSheet","Platform","useFetchSuggestions","SuggestionItem","useSendMessage","debounce","jsx","_jsx","jsxs","_jsxs","ChatEmpty","data","onSendMessage","onPress","item","content","ScrollView","contentContainerStyle","styles","container","
|
|
1
|
+
{"version":3,"names":["KColors","KContainer","KLabel","KSpacingValue","StyleSheet","Platform","useFetchSuggestions","SuggestionItem","useSendMessage","debounce","jsx","_jsx","jsxs","_jsxs","ChatEmpty","data","onSendMessage","onPress","item","content","ScrollView","contentContainerStyle","styles","container","style","transformStyle","children","Text","typo","center","View","color","gray","normal","suggestions","map","onPressItem","suggestion_id","light","textAlign","create","flexGrow","justifyContent","alignItems","padding","gap","transform","OS","scale","scaleY"],"sourceRoot":"../../../../src","sources":["components/chat/ChatEmpty.tsx"],"mappings":";;AAAA,SAASA,OAAO,EAAEC,UAAU,EAAEC,MAAM,EAAEC,aAAa,QAAQ,eAAe;AAC1E,SAASC,UAAU,EAAEC,QAAQ,QAAQ,cAAc;AACnD,SAASC,mBAAmB,QAAQ,gDAA6C;AACjF,OAAOC,cAAc,MAAM,qBAAkB;AAC7C,SAASC,cAAc,QAAQ,uCAAoC;AACnE,OAAOC,QAAQ,MAAM,iBAAiB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGvC,MAAMC,SAAS,GAAGA,CAAA,KAAM;EACtB,MAAM;IAAEC;EAAK,CAAC,GAAGT,mBAAmB,CAAC,CAAC;EACtC,MAAM;IAAEU;EAAc,CAAC,GAAGR,cAAc,CAAC,CAAC;EAE1C,MAAMS,OAAO,GAAGR,QAAQ,CAAES,IAAqB,IAAK;IAClDF,aAAa,CAACE,IAAI,CAACC,OAAO,CAAC;EAC7B,CAAC,EAAE,GAAG,CAAC;EAEP,oBACEN,KAAA,CAACZ,UAAU,CAACmB,UAAU;IACpBC,qBAAqB,EAAEC,MAAM,CAACC,SAAU;IACxCC,KAAK,EAAEF,MAAM,CAACG,cAAe;IAAAC,QAAA,gBAE7Bf,IAAA,CAACT,MAAM,CAACyB,IAAI;MAACC,IAAI,EAAC,eAAe;MAACC,MAAM;MAAAH,QAAA,EACrC;IAA4B,CAClB,CAAC,eACdb,KAAA,CAACZ,UAAU,CAAC6B,IAAI;MAACD,MAAM;MAAAH,QAAA,gBACrBf,IAAA,CAACT,MAAM,CAACyB,IAAI;QAACC,IAAI,EAAC,cAAc;QAACC,MAAM;QAACE,KAAK,EAAE/B,OAAO,CAACgC,IAAI,CAACC,MAAO;QAAAP,QAAA,EAChE;MAA8C,CACpC,CAAC,eACdf,IAAA,CAACT,MAAM,CAACyB,IAAI;QAACC,IAAI,EAAC,cAAc;QAACC,MAAM;QAACE,KAAK,EAAE/B,OAAO,CAACgC,IAAI,CAACC,MAAO;QAAAP,QAAA,EAChE;MAA2B,CACjB,CAAC;IAAA,CACC,CAAC,EACjBX,IAAI,EAAEmB,WAAW,EAAEC,GAAG,CAAEjB,IAAqB,iBAC5CP,IAAA,CAACJ,cAAc;MAEbW,IAAI,EAAEA,IAAK;MACXkB,WAAW,EAAEnB;IAAQ,GAFhBC,IAAI,CAACmB,aAGX,CACF,CAAC,eACF1B,IAAA,CAACT,MAAM,CAACyB,IAAI;MACVC,IAAI,EAAC,cAAc;MACnBG,KAAK,EAAE/B,OAAO,CAACgC,IAAI,CAACM,KAAM;MAC1BC,SAAS,EAAC,QAAQ;MAAAb,QAAA,EAGhB;IAAgG,CAEvF,CAAC;EAAA,CACO,CAAC;AAE5B,CAAC;AAED,eAAeZ,SAAS;AAExB,MAAMQ,MAAM,GAAGlB,UAAU,CAACoC,MAAM,CAAC;EAC/BjB,SAAS,EAAE;IACTkB,QAAQ,EAAE,CAAC;IACXC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBC,OAAO,EAAEzC,aAAa,CAAC,SAAS,CAAC;IACjC0C,GAAG,EAAE1C,aAAa,CAAC,QAAQ;EAC7B,CAAC;EACDsB,cAAc,EAAE;IACdqB,SAAS,EAAE,CAACzC,QAAQ,CAAC0C,EAAE,KAAK,SAAS,GAAG;MAAEC,KAAK,EAAE,CAAC;IAAE,CAAC,GAAG;MAAEC,MAAM,EAAE,CAAC;IAAE,CAAC;EACxE;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatEmpty.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/ChatEmpty.tsx"],"names":[],"mappings":"AAQA,QAAA,MAAM,SAAS,+
|
|
1
|
+
{"version":3,"file":"ChatEmpty.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/ChatEmpty.tsx"],"names":[],"mappings":"AAQA,QAAA,MAAM,SAAS,+CA0Cd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -16,12 +16,8 @@ const ChatEmpty = () => {
|
|
|
16
16
|
|
|
17
17
|
return (
|
|
18
18
|
<KContainer.ScrollView
|
|
19
|
-
contentContainerStyle={
|
|
20
|
-
|
|
21
|
-
{
|
|
22
|
-
transform: [Platform.OS === 'android' ? { scale: -1 } : { scaleY: -1 }],
|
|
23
|
-
},
|
|
24
|
-
]}
|
|
19
|
+
contentContainerStyle={styles.container}
|
|
20
|
+
style={styles.transformStyle}
|
|
25
21
|
>
|
|
26
22
|
<KLabel.Text typo="TextXLgMedium" center>
|
|
27
23
|
{'Bạn cần hỗ trợ gì hôm nay?'}
|
|
@@ -64,4 +60,7 @@ const styles = StyleSheet.create({
|
|
|
64
60
|
padding: KSpacingValue['0.75rem'],
|
|
65
61
|
gap: KSpacingValue['0.5rem'],
|
|
66
62
|
},
|
|
63
|
+
transformStyle: {
|
|
64
|
+
transform: [Platform.OS === 'android' ? { scale: -1 } : { scaleY: -1 }],
|
|
65
|
+
},
|
|
67
66
|
});
|