react-native-srschat 0.1.42 → 0.1.43
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/lib/commonjs/components/email.js +50 -24
- package/lib/commonjs/components/email.js.map +1 -1
- package/lib/commonjs/components/productCard.js +2 -6
- package/lib/commonjs/components/productCard.js.map +1 -1
- package/lib/commonjs/layout/welcome.js +17 -14
- package/lib/commonjs/layout/welcome.js.map +1 -1
- package/lib/module/components/email.js +51 -25
- package/lib/module/components/email.js.map +1 -1
- package/lib/module/components/productCard.js +2 -6
- package/lib/module/components/productCard.js.map +1 -1
- package/lib/module/layout/welcome.js +17 -14
- package/lib/module/layout/welcome.js.map +1 -1
- package/lib/typescript/components/email.d.ts +1 -0
- package/lib/typescript/components/email.d.ts.map +1 -1
- package/lib/typescript/layout/welcome.d.ts +1 -0
- package/lib/typescript/layout/welcome.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/email.js +113 -55
- package/src/components/productCard.js +2 -2
- package/src/layout/welcome.js +24 -26
package/src/layout/welcome.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
// Welcome.js
|
|
2
2
|
import React, { useContext } from 'react';
|
|
3
|
-
import { View, Text,
|
|
3
|
+
import { View, Text, TouchableOpacity, ScrollView, StyleSheet } from 'react-native';
|
|
4
4
|
import Ionicons from 'react-native-vector-icons/Ionicons';
|
|
5
5
|
import { AppContext } from '../contexts/AppContext';
|
|
6
6
|
import { WelcomeInput } from '../components/welcomeInput';
|
|
7
7
|
import ButtonComponent from '../components/welcomeButton';
|
|
8
|
-
import { Testing } from '../components/testing';
|
|
9
8
|
import CloudinaryImage from '../utils/cloudinary';
|
|
10
|
-
// import { PoseidonLogo } from '../components/PoseidonLogo';
|
|
11
9
|
|
|
12
10
|
export const Welcome = ({ panHandlers }) => {
|
|
13
11
|
const { setShowModal, uiConfig, onProductCardClick, onAddToCartClick } = useContext(AppContext);
|
|
@@ -19,30 +17,25 @@ export const Welcome = ({ panHandlers }) => {
|
|
|
19
17
|
setShowModal("Icon");
|
|
20
18
|
}
|
|
21
19
|
|
|
22
|
-
// Reset toggleChat in the parent component
|
|
23
20
|
if (typeof uiConfig.setToggleChat === 'function') {
|
|
24
21
|
uiConfig.setToggleChat(false);
|
|
25
22
|
}
|
|
26
23
|
};
|
|
27
24
|
|
|
28
25
|
return (
|
|
29
|
-
<View
|
|
26
|
+
<View style={styles.container}>
|
|
30
27
|
<View style={styles.parentContainer}>
|
|
31
|
-
|
|
32
28
|
{/* Top section */}
|
|
33
29
|
<View style={styles.topContainer}>
|
|
34
30
|
<View style={styles.topHeader}>
|
|
35
|
-
{/*
|
|
36
|
-
{
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
imageStyle={{ width: 150, height: 35 }}
|
|
44
|
-
/>
|
|
45
|
-
<TouchableOpacity onPress={() => handleClick()} style={styles.collapseButton}>
|
|
31
|
+
{/* Logo container with absolute positioning */}
|
|
32
|
+
<View style={styles.logoContainer}>
|
|
33
|
+
<CloudinaryImage
|
|
34
|
+
cldImg="posiden"
|
|
35
|
+
imageStyle={{ width: 150, height: 35 }}
|
|
36
|
+
/>
|
|
37
|
+
</View>
|
|
38
|
+
<TouchableOpacity onPress={handleClick} style={styles.collapseButton}>
|
|
46
39
|
<Ionicons name="close" size={26} color="white" />
|
|
47
40
|
</TouchableOpacity>
|
|
48
41
|
</View>
|
|
@@ -50,8 +43,7 @@ export const Welcome = ({ panHandlers }) => {
|
|
|
50
43
|
<View style={styles.blueContainer}>
|
|
51
44
|
<Text style={styles.welcomeHeader}>Hi 👋</Text>
|
|
52
45
|
<Text style={styles.welcomeBody2}>
|
|
53
|
-
I'm Poseidon, your Heritage Pool+ AI Agent. I can help you during your online
|
|
54
|
-
visit with Product and Account information.
|
|
46
|
+
I'm Poseidon, your Heritage Pool+ AI Agent. I can help you during your online visit with Product and Account information.
|
|
55
47
|
</Text>
|
|
56
48
|
<WelcomeInput />
|
|
57
49
|
<Text style={styles.textBeta}>Beta version. Poseidon is learning!</Text>
|
|
@@ -75,7 +67,7 @@ const styles = StyleSheet.create({
|
|
|
75
67
|
parentContainer: {
|
|
76
68
|
flexGrow: 1,
|
|
77
69
|
backgroundColor: '#004687',
|
|
78
|
-
paddingTop: 60
|
|
70
|
+
paddingTop: 60,
|
|
79
71
|
},
|
|
80
72
|
topContainer: {
|
|
81
73
|
backgroundColor: '#004687',
|
|
@@ -83,14 +75,19 @@ const styles = StyleSheet.create({
|
|
|
83
75
|
},
|
|
84
76
|
topHeader: {
|
|
85
77
|
flexDirection: 'row',
|
|
86
|
-
justifyContent: 'flex-end',
|
|
87
78
|
alignItems: 'center',
|
|
88
79
|
paddingHorizontal: 15,
|
|
89
80
|
paddingTop: 10,
|
|
81
|
+
justifyContent: 'flex-end',
|
|
82
|
+
position: 'relative',
|
|
90
83
|
},
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
84
|
+
logoContainer: {
|
|
85
|
+
position: 'absolute',
|
|
86
|
+
left: 15,
|
|
87
|
+
top: 10,
|
|
88
|
+
// left: '50%',
|
|
89
|
+
// transform: [{ translateX: -65 }],
|
|
90
|
+
// top: 10,
|
|
94
91
|
},
|
|
95
92
|
collapseButton: {
|
|
96
93
|
paddingHorizontal: 15,
|
|
@@ -121,12 +118,12 @@ const styles = StyleSheet.create({
|
|
|
121
118
|
fontSize: 11,
|
|
122
119
|
color: '#f6f6f6',
|
|
123
120
|
fontWeight: '400',
|
|
124
|
-
marginTop: 5
|
|
121
|
+
marginTop: 5,
|
|
125
122
|
},
|
|
126
123
|
bottomContainer: {
|
|
127
124
|
paddingHorizontal: 25,
|
|
128
125
|
backgroundColor: "#f6f6f6",
|
|
129
|
-
paddingTop: 30
|
|
126
|
+
paddingTop: 30,
|
|
130
127
|
},
|
|
131
128
|
welcomeBody: {
|
|
132
129
|
fontSize: 13,
|
|
@@ -137,3 +134,4 @@ const styles = StyleSheet.create({
|
|
|
137
134
|
},
|
|
138
135
|
});
|
|
139
136
|
|
|
137
|
+
export default Welcome;
|