react-native-chatbot-ai 0.1.6 → 0.1.7
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,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { KColors, KContainer, KLabel, KSpacingValue } from '@droppii/libs';
|
|
4
|
-
import { StyleSheet } from 'react-native';
|
|
4
|
+
import { StyleSheet, Platform } from 'react-native';
|
|
5
5
|
import { useFetchSuggestions } from "../../hooks/suggestions/useFetchSuggestions.js";
|
|
6
6
|
import SuggestionItem from "./SuggestionItem.js";
|
|
7
7
|
import { useSendMessage } from "../../hooks/message/useSendMessage.js";
|
|
@@ -19,11 +19,6 @@ const ChatEmpty = () => {
|
|
|
19
19
|
}, 200);
|
|
20
20
|
return /*#__PURE__*/_jsxs(KContainer.ScrollView, {
|
|
21
21
|
contentContainerStyle: styles.container,
|
|
22
|
-
style: {
|
|
23
|
-
transform: [{
|
|
24
|
-
scaleY: -1
|
|
25
|
-
}]
|
|
26
|
-
},
|
|
27
22
|
children: [/*#__PURE__*/_jsx(KLabel.Text, {
|
|
28
23
|
typo: "TextXLgMedium",
|
|
29
24
|
center: true,
|
|
@@ -59,7 +54,12 @@ const styles = StyleSheet.create({
|
|
|
59
54
|
justifyContent: 'center',
|
|
60
55
|
alignItems: 'center',
|
|
61
56
|
padding: KSpacingValue['0.75rem'],
|
|
62
|
-
gap: KSpacingValue['0.5rem']
|
|
57
|
+
gap: KSpacingValue['0.5rem'],
|
|
58
|
+
transform: [Platform.OS === 'android' ? {
|
|
59
|
+
scale: -1
|
|
60
|
+
} : {
|
|
61
|
+
scaleY: -1
|
|
62
|
+
}]
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
65
|
//# sourceMappingURL=ChatEmpty.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["KColors","KContainer","KLabel","KSpacingValue","StyleSheet","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","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;IAACC,qBAAqB,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,gBAC7Db,IAAA,CAACT,MAAM,CAACuB,IAAI;MAACC,IAAI,EAAC,eAAe;MAACC,MAAM;MAAAH,QAAA,EACrC;IAA4B,CA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xE;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,+CAuCd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { KColors, KContainer, KLabel, KSpacingValue } from '@droppii/libs';
|
|
2
|
-
import { StyleSheet } from 'react-native';
|
|
2
|
+
import { StyleSheet, Platform } from 'react-native';
|
|
3
3
|
import { useFetchSuggestions } from '../../hooks/suggestions/useFetchSuggestions';
|
|
4
4
|
import SuggestionItem from './SuggestionItem';
|
|
5
5
|
import { useSendMessage } from '../../hooks/message/useSendMessage';
|
|
@@ -15,10 +15,7 @@ const ChatEmpty = () => {
|
|
|
15
15
|
}, 200);
|
|
16
16
|
|
|
17
17
|
return (
|
|
18
|
-
<KContainer.ScrollView
|
|
19
|
-
contentContainerStyle={styles.container}
|
|
20
|
-
style={{ transform: [{ scaleY: -1 }] }}
|
|
21
|
-
>
|
|
18
|
+
<KContainer.ScrollView contentContainerStyle={styles.container}>
|
|
22
19
|
<KLabel.Text typo="TextXLgMedium" center>
|
|
23
20
|
{'Bạn cần hỗ trợ gì hôm nay?'}
|
|
24
21
|
</KLabel.Text>
|
|
@@ -59,5 +56,6 @@ const styles = StyleSheet.create({
|
|
|
59
56
|
alignItems: 'center',
|
|
60
57
|
padding: KSpacingValue['0.75rem'],
|
|
61
58
|
gap: KSpacingValue['0.5rem'],
|
|
59
|
+
transform: [Platform.OS === 'android' ? { scale: -1 } : { scaleY: -1 }],
|
|
62
60
|
},
|
|
63
61
|
});
|