react-native-srschat 0.1.46 → 0.1.48

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.
Files changed (69) hide show
  1. package/README.md +14 -3
  2. package/lib/commonjs/components/LoadingTips.js +2 -2
  3. package/lib/commonjs/components/LoadingTips.js.map +1 -1
  4. package/lib/commonjs/components/email.js +6 -3
  5. package/lib/commonjs/components/email.js.map +1 -1
  6. package/lib/commonjs/components/input.js +2 -3
  7. package/lib/commonjs/components/input.js.map +1 -1
  8. package/lib/commonjs/components/productCard.js +125 -32
  9. package/lib/commonjs/components/productCard.js.map +1 -1
  10. package/lib/commonjs/components/progressCircle.js +1 -1
  11. package/lib/commonjs/components/progressCircle.js.map +1 -1
  12. package/lib/commonjs/contexts/AppContext.js +12 -6
  13. package/lib/commonjs/contexts/AppContext.js.map +1 -1
  14. package/lib/commonjs/hooks/Stream.js +2 -1
  15. package/lib/commonjs/hooks/Stream.js.map +1 -1
  16. package/lib/commonjs/layout/ex.js +252 -270
  17. package/lib/commonjs/layout/ex.js.map +1 -1
  18. package/lib/commonjs/layout/icon.js +2 -1
  19. package/lib/commonjs/layout/icon.js.map +1 -1
  20. package/lib/commonjs/layout/welcome.js +6 -5
  21. package/lib/commonjs/layout/welcome.js.map +1 -1
  22. package/lib/commonjs/layout/window.js +38 -10
  23. package/lib/commonjs/layout/window.js.map +1 -1
  24. package/lib/commonjs/utils/storage.js +1 -1
  25. package/lib/module/components/LoadingTips.js +2 -2
  26. package/lib/module/components/LoadingTips.js.map +1 -1
  27. package/lib/module/components/email.js +7 -4
  28. package/lib/module/components/email.js.map +1 -1
  29. package/lib/module/components/input.js +2 -3
  30. package/lib/module/components/input.js.map +1 -1
  31. package/lib/module/components/productCard.js +125 -32
  32. package/lib/module/components/productCard.js.map +1 -1
  33. package/lib/module/components/progressCircle.js +1 -1
  34. package/lib/module/components/progressCircle.js.map +1 -1
  35. package/lib/module/contexts/AppContext.js +12 -6
  36. package/lib/module/contexts/AppContext.js.map +1 -1
  37. package/lib/module/hooks/Stream.js +2 -1
  38. package/lib/module/hooks/Stream.js.map +1 -1
  39. package/lib/module/layout/ex.js +252 -261
  40. package/lib/module/layout/ex.js.map +1 -1
  41. package/lib/module/layout/icon.js +2 -1
  42. package/lib/module/layout/icon.js.map +1 -1
  43. package/lib/module/layout/welcome.js +6 -5
  44. package/lib/module/layout/welcome.js.map +1 -1
  45. package/lib/module/layout/window.js +38 -10
  46. package/lib/module/layout/window.js.map +1 -1
  47. package/lib/module/utils/storage.js +1 -1
  48. package/lib/typescript/components/email.d.ts.map +1 -1
  49. package/lib/typescript/components/productCard.d.ts +2 -1
  50. package/lib/typescript/components/productCard.d.ts.map +1 -1
  51. package/lib/typescript/contexts/AppContext.d.ts.map +1 -1
  52. package/lib/typescript/hooks/Stream.d.ts.map +1 -1
  53. package/lib/typescript/layout/ex.d.ts +0 -2
  54. package/lib/typescript/layout/ex.d.ts.map +1 -1
  55. package/lib/typescript/layout/icon.d.ts.map +1 -1
  56. package/lib/typescript/layout/window.d.ts.map +1 -1
  57. package/package.json +1 -1
  58. package/src/components/LoadingTips.js +2 -2
  59. package/src/components/email.js +7 -4
  60. package/src/components/input.js +1 -2
  61. package/src/components/productCard.js +132 -33
  62. package/src/components/progressCircle.js +1 -1
  63. package/src/contexts/AppContext.js +13 -6
  64. package/src/hooks/Stream.js +1 -0
  65. package/src/layout/ex.js +250 -249
  66. package/src/layout/icon.js +2 -1
  67. package/src/layout/welcome.js +5 -5
  68. package/src/layout/window.js +33 -6
  69. package/src/utils/storage.ts +1 -1
@@ -1,272 +1,254 @@
1
- "use strict";
1
+ // import React, { useState, useEffect, useContext, useRef } from 'react';
2
+ // import { Text, StyleSheet, View, TextInput, TouchableOpacity, Platform, KeyboardAvoidingView,
3
+ // Keyboard, Animated, PanResponder, Pressable } from 'react-native';
4
+ // import { Header } from '../components/header';
5
+ // import { AppContext } from '../contexts/AppContext';
6
+ // import Ionicons from 'react-native-vector-icons/Ionicons';
7
+ // import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view';
8
+ // import { Testing } from '../components/testing';
9
+ // import { ChatInput } from '../components/input';
10
+ // import { useWebSocketMessage } from '../hooks/Stream';
11
+ // import { ProductCard } from '../components/productCard'
12
+ // import Markdown from 'react-native-markdown-display';
13
+
14
+ // export const ChatWindow = () => {
15
+ // const { handleSend, messages, input, setInput, ghostMessage, handleButtonClick, setShowModal } = useContext(AppContext);
16
+
17
+ // const scrollViewRef = useRef(null);
18
+ // const fadeAnim = useRef(new Animated.Value(0.6)).current;
19
+ // const panY = useRef(new Animated.Value(0)).current;
20
+ // const isDragging = useRef(false);
21
+
22
+ // useEffect(() => {
23
+ // if (scrollViewRef.current) {
24
+ // setTimeout(() => {
25
+ // scrollViewRef.current.scrollToEnd({ animated: false });
26
+ // }, 100);
27
+ // }
28
+ // }, []);
29
+
30
+ // useEffect(() => {
31
+ // if (ghostMessage) {
32
+ // Animated.loop(
33
+ // Animated.sequence([
34
+ // Animated.timing(fadeAnim, { toValue: 1, duration: 500, useNativeDriver: false }),
35
+ // Animated.timing(fadeAnim, { toValue: 0.6, duration: 500, useNativeDriver: false }),
36
+ // ])
37
+ // ).start();
38
+ // }
39
+ // }, [ghostMessage]);
40
+
41
+ // useWebSocketMessage()
42
+
43
+ // const headerPanResponder = PanResponder.create({
44
+ // onStartShouldSetPanResponder: () => true,
45
+ // onMoveShouldSetPanResponder: () => true,
46
+ // onPanResponderGrant: () => {
47
+ // isDragging.current = true;
48
+ // },
49
+ // onPanResponderMove: (evt, gestureState) => {
50
+ // if (isDragging.current && gestureState.dy > 0) { // Downward swipe
51
+ // panY.setValue(gestureState.dy);
52
+ // }
53
+ // },
54
+ // onPanResponderRelease: (evt, gestureState) => {
55
+ // if (gestureState.dy > 100) { // Swiped down enough
56
+ // handleClick()
57
+ // } else {
58
+ // Animated.spring(panY, { toValue: 0, useNativeDriver: false }).start();
59
+ // }
60
+ // isDragging.current = false;
61
+ // },
62
+ // });
63
+
64
+ // const handleClick = () => {
65
+ // if ((uiConfig.showIcon ?? true) !== true) {
66
+ // setShowModal("Off");
67
+ // } else {
68
+ // setShowModal("Icon");
69
+ // }
70
+ // };
71
+
72
+ // return (
73
+ // <View style={styles.overlay}>
74
+ // {/* Click outside chat to close */}
75
+ // <Pressable style={styles.outsideTouchable} onPress={() => handleClick()} />
76
+
77
+ // <Animated.View style={[styles.container, { transform: [{ translateY: panY }] }]}>
78
+ // {/* Header - Only this section triggers drag-to-close */}
79
+ // <View style={styles.headerContainer} {...headerPanResponder.panHandlers}>
80
+ // <Header />
81
+ // </View>
2
82
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ChatWindow = void 0;
7
- var _react = _interopRequireWildcard(require("react"));
8
- var _reactNative = require("react-native");
9
- var _header = require("../components/header");
10
- var _AppContext = require("../contexts/AppContext");
11
- var _Ionicons = _interopRequireDefault(require("react-native-vector-icons/Ionicons"));
12
- var _reactNativeKeyboardAwareScrollView = require("react-native-keyboard-aware-scroll-view");
13
- var _testing = require("../components/testing");
14
- var _input = require("../components/input");
15
- var _Stream = require("../hooks/Stream");
16
- var _productCard = require("../components/productCard");
17
- var _reactNativeMarkdownDisplay = _interopRequireDefault(require("react-native-markdown-display"));
18
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
19
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
20
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
21
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
22
- const ChatWindow = () => {
23
- const {
24
- handleSend,
25
- messages,
26
- input,
27
- setInput,
28
- ghostMessage,
29
- handleButtonClick,
30
- setShowModal
31
- } = (0, _react.useContext)(_AppContext.AppContext);
32
- const scrollViewRef = (0, _react.useRef)(null);
33
- const fadeAnim = (0, _react.useRef)(new _reactNative.Animated.Value(0.6)).current;
34
- const panY = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current;
35
- const isDragging = (0, _react.useRef)(false);
36
- (0, _react.useEffect)(() => {
37
- if (scrollViewRef.current) {
38
- setTimeout(() => {
39
- scrollViewRef.current.scrollToEnd({
40
- animated: false
41
- });
42
- }, 100);
43
- }
44
- }, []);
45
- (0, _react.useEffect)(() => {
46
- if (ghostMessage) {
47
- _reactNative.Animated.loop(_reactNative.Animated.sequence([_reactNative.Animated.timing(fadeAnim, {
48
- toValue: 1,
49
- duration: 500,
50
- useNativeDriver: false
51
- }), _reactNative.Animated.timing(fadeAnim, {
52
- toValue: 0.6,
53
- duration: 500,
54
- useNativeDriver: false
55
- })])).start();
56
- }
57
- }, [ghostMessage]);
58
- (0, _Stream.useWebSocketMessage)();
59
- const headerPanResponder = _reactNative.PanResponder.create({
60
- onStartShouldSetPanResponder: () => true,
61
- onMoveShouldSetPanResponder: () => true,
62
- onPanResponderGrant: () => {
63
- isDragging.current = true;
64
- },
65
- onPanResponderMove: (evt, gestureState) => {
66
- if (isDragging.current && gestureState.dy > 0) {
67
- // Downward swipe
68
- panY.setValue(gestureState.dy);
69
- }
70
- },
71
- onPanResponderRelease: (evt, gestureState) => {
72
- if (gestureState.dy > 100) {
73
- // Swiped down enough
74
- handleClick();
75
- } else {
76
- _reactNative.Animated.spring(panY, {
77
- toValue: 0,
78
- useNativeDriver: false
79
- }).start();
80
- }
81
- isDragging.current = false;
82
- }
83
- });
84
- const handleClick = () => {
85
- if ((uiConfig.showIcon ?? true) !== true) {
86
- setShowModal("Off");
87
- } else {
88
- setShowModal("Icon");
89
- }
90
- };
91
- return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
92
- style: styles.overlay
93
- }, /*#__PURE__*/_react.default.createElement(_reactNative.Pressable, {
94
- style: styles.outsideTouchable,
95
- onPress: () => handleClick()
96
- }), /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, {
97
- style: [styles.container, {
98
- transform: [{
99
- translateY: panY
100
- }]
101
- }]
102
- }, /*#__PURE__*/_react.default.createElement(_reactNative.View, _extends({
103
- style: styles.headerContainer
104
- }, headerPanResponder.panHandlers), /*#__PURE__*/_react.default.createElement(_header.Header, null)), /*#__PURE__*/_react.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView, {
105
- ref: scrollViewRef,
106
- contentContainerStyle: styles.messagesContent,
107
- enableOnAndroid: true,
108
- contentInsetAdjustmentBehavior: "never",
109
- automaticallyAdjustContentInsets: false,
110
- contentInset: {
111
- bottom: 0
112
- },
113
- keyboardShouldPersistTaps: "always",
114
- showsVerticalScrollIndicator: false,
115
- extraScrollHeight: 0,
116
- onContentSizeChange: () => {
117
- var _scrollViewRef$curren;
118
- (_scrollViewRef$curren = scrollViewRef.current) === null || _scrollViewRef$curren === void 0 || _scrollViewRef$curren.scrollToEnd({
119
- animated: true
120
- });
121
- }
122
- }, messages.map((msg, i) => /*#__PURE__*/_react.default.createElement(_reactNative.View, {
123
- key: i,
124
- style: styles.messageWrapper
125
- }, msg.type !== "middle" && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
126
- style: [styles.messageBubble, msg.type === "user" ? styles.userMessage : styles.aiMessage]
127
- }, /*#__PURE__*/_react.default.createElement(_reactNativeMarkdownDisplay.default, {
128
- style: {
129
- body: {
130
- color: msg.type === "user" ? "#ffffff" : "#161616",
131
- fontSize: 16,
132
- lineHeight: 22
133
- }
134
- }
135
- }, msg.text)), msg.products && msg.products.length > 0 && msg.products.map((prod, index) => /*#__PURE__*/_react.default.createElement(_reactNative.View, {
136
- key: index,
137
- style: styles.productCardWrapper
138
- }, /*#__PURE__*/_react.default.createElement(_productCard.ProductCard, {
139
- prod: prod
140
- }))), msg.suggested_questions && Array.isArray(msg.questions) && msg.questions.map((question, index) => /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
141
- key: index,
142
- style: styles.suggestedQuestionButton,
143
- onPress: () => handleButtonClick(question)
144
- }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
145
- style: styles.suggestedQuestionText
146
- }, question))), ghostMessage && i === messages.length - 1 && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
147
- style: styles.ghostMessageContainer
148
- }, /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, {
149
- style: [styles.ghostBar, styles.ghostBarShort, {
150
- opacity: fadeAnim
151
- }]
152
- }), /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, {
153
- style: [styles.ghostBar, styles.ghostBarLong, {
154
- opacity: fadeAnim
155
- }]
156
- }), /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, {
157
- style: [styles.ghostBar, styles.ghostBarMedium, {
158
- opacity: fadeAnim
159
- }]
160
- }))))), /*#__PURE__*/_react.default.createElement(_reactNative.KeyboardAvoidingView, {
161
- behavior: _reactNative.Platform.OS === 'ios' ? 'padding' : undefined,
162
- keyboardVerticalOffset: _reactNative.Platform.OS === 'ios' ? 120 : 60
163
- }, /*#__PURE__*/_react.default.createElement(_input.ChatInput, null))));
164
- };
165
- exports.ChatWindow = ChatWindow;
166
- const styles = _reactNative.StyleSheet.create({
167
- overlay: {
168
- flex: 1,
169
- position: 'absolute',
170
- left: 0,
171
- right: 0,
172
- top: 0,
173
- bottom: 0,
174
- backgroundColor: 'rgba(0, 0, 0, 0.3)',
175
- justifyContent: 'flex-end'
176
- },
177
- outsideTouchable: {
178
- flex: 1 // Takes up the space above the chat, allows clicking to close
179
- },
180
- container: {
181
- flex: 1,
182
- backgroundColor: '#f6f6f6',
183
- position: 'absolute',
184
- zIndex: 1000,
185
- left: 0,
186
- right: 0,
187
- bottom: 0,
188
- top: 140,
189
- pointerEvents: 'box-none',
190
- borderTopWidth: 1,
191
- borderTopColor: '#DDD',
192
- borderTopLeftRadius: 16,
193
- borderTopRightRadius: 16,
194
- overflow: 'hidden'
195
- },
196
- headerContainer: {
197
- alignItems: "center",
198
- backgroundColor: "#f6f6f6",
199
- borderTopLeftRadius: 16,
200
- borderTopRightRadius: 16
201
- },
202
- messagesContent: {
203
- padding: 16,
204
- justifyContent: 'flex-end'
205
- },
206
- messageWrapper: {
207
- marginBottom: 0
208
- },
209
- messageBubble: {
210
- padding: 6,
211
- paddingHorizontal: 16,
212
- borderRadius: 12,
213
- marginBottom: 5
214
- },
215
- userMessage: {
216
- alignSelf: 'flex-end',
217
- backgroundColor: "#003764",
218
- color: "#ffffff"
219
- },
220
- aiMessage: {
221
- alignSelf: 'flex-start',
222
- backgroundColor: '#FFFFFF',
223
- width: '100%'
224
- },
225
- productCardWrapper: {
226
- marginTop: 5
227
- },
228
- suggestedQuestionButton: {
229
- backgroundColor: "white",
230
- borderWidth: 1,
231
- borderColor: "#004687",
232
- borderRadius: 18,
233
- paddingVertical: 10,
234
- paddingHorizontal: 16,
235
- marginBottom: 7,
236
- alignSelf: "flex-start"
237
- },
238
- suggestedQuestionText: {
239
- color: "#004687",
240
- fontSize: 13,
241
- textAlign: "left"
242
- },
243
- ghostMessageContainer: {
244
- alignSelf: 'flex-start',
245
- width: '100%',
246
- backgroundColor: "#FFFFFF",
247
- borderRadius: 10,
248
- borderTopLeftRadius: 0,
249
- padding: 14,
250
- marginVertical: 5
251
- },
252
- ghostBar: {
253
- height: 20,
254
- borderRadius: 10,
255
- backgroundColor: "#ebebeb",
256
- marginVertical: 3
257
- },
258
- ghostBarShort: {
259
- width: "50%"
260
- },
261
- ghostBarMedium: {
262
- width: "75%"
263
- },
264
- ghostBarLong: {
265
- width: "100%"
266
- }
267
- });
268
- {/* <Testing
269
- onProductCardClick={onProductCardClick}
270
- onAddToCartClick={onAddToCartClick}
271
- /> */}
83
+ // {/* Messages area */}
84
+ // <KeyboardAwareScrollView
85
+ // ref={scrollViewRef}
86
+ // contentContainerStyle={styles.messagesContent}
87
+ // enableOnAndroid
88
+ // contentInsetAdjustmentBehavior="never"
89
+ // automaticallyAdjustContentInsets={false}
90
+ // contentInset={{ bottom: 0 }}
91
+ // keyboardShouldPersistTaps="always"
92
+ // showsVerticalScrollIndicator={false}
93
+ // extraScrollHeight={0}
94
+ // onContentSizeChange={() => {
95
+ // scrollViewRef.current?.scrollToEnd({ animated: true });
96
+ // }}
97
+ // >
98
+ // {messages.map((msg, i) => (
99
+
100
+ // <View key={i} style={styles.messageWrapper}>
101
+ // {msg.type !== "middle" && (
102
+ // <View style={[ styles.messageBubble, msg.type === "user" ? styles.userMessage : styles.aiMessage,]}>
103
+ // <Markdown style={{ body: { color: msg.type === "user" ? "#ffffff" : "#161616",fontSize: 16, lineHeight: 22 }}}>
104
+ // {msg.text}
105
+ // </Markdown>
106
+ // </View>
107
+ // )}
108
+
109
+ // {msg.products && msg.products.length > 0 &&
110
+ // msg.products.map((prod, index) => (
111
+ // <View key={index} style={styles.productCardWrapper}>
112
+ // <ProductCard prod={prod} />
113
+ // </View>
114
+ // ))}
115
+
116
+ // {msg.suggested_questions && Array.isArray(msg.questions) && msg.questions.map((question, index) => (
117
+ // <TouchableOpacity key={index} style={styles.suggestedQuestionButton}
118
+ // onPress={() => handleButtonClick(question)}>
119
+ // <Text style={styles.suggestedQuestionText}>{question}</Text>
120
+ // </TouchableOpacity>
121
+ // ))}
122
+
123
+ // {ghostMessage && i === messages.length - 1 && (
124
+ // <View style={styles.ghostMessageContainer}>
125
+ // <Animated.View style={[styles.ghostBar, styles.ghostBarShort, { opacity: fadeAnim }]} />
126
+ // <Animated.View style={[styles.ghostBar, styles.ghostBarLong, { opacity: fadeAnim }]} />
127
+ // <Animated.View style={[styles.ghostBar, styles.ghostBarMedium, { opacity: fadeAnim }]} />
128
+ // </View>
129
+ // )}
130
+ // </View>
131
+ // ))}
132
+
133
+ // <KeyboardAvoidingView
134
+ // behavior={Platform.OS === 'ios' ? 'padding' : undefined}
135
+ // keyboardVerticalOffset={Platform.OS === 'ios' ? 120 : 60}
136
+ // >
137
+ // <ChatInput/>
138
+ // </KeyboardAvoidingView>
139
+ // </KeyboardAwareScrollView>
140
+
141
+ // </Animated.View>
142
+ // </View>
143
+ // );
144
+ // };
145
+
146
+ // const styles = StyleSheet.create({
147
+ // overlay: {
148
+ // flex: 1,
149
+ // position: 'absolute',
150
+ // left: 0,
151
+ // right: 0,
152
+ // top: 0,
153
+ // bottom: 0,
154
+ // backgroundColor: 'rgba(0, 0, 0, 0.3)',
155
+ // justifyContent: 'flex-end',
156
+ // },
157
+ // outsideTouchable: {
158
+ // flex: 1, // Takes up the space above the chat, allows clicking to close
159
+ // },
160
+ // container: {
161
+ // flex: 1,
162
+ // backgroundColor: '#f6f6f6',
163
+ // position: 'absolute',
164
+ // zIndex: 1000,
165
+ // left: 0,
166
+ // right: 0,
167
+ // bottom: 0,
168
+ // top: 140,
169
+ // pointerEvents: 'box-none',
170
+ // borderTopWidth: 1,
171
+ // borderTopColor: '#DDD',
172
+ // borderTopLeftRadius: 16,
173
+ // borderTopRightRadius: 16,
174
+ // overflow: 'hidden',
175
+ // },
176
+ // headerContainer: {
177
+ // alignItems: "center",
178
+ // backgroundColor: "#f6f6f6",
179
+ // borderTopLeftRadius: 16,
180
+ // borderTopRightRadius: 16,
181
+ // },
182
+ // messagesContent: {
183
+ // padding: 16,
184
+ // justifyContent: 'flex-end',
185
+ // },
186
+ // messageWrapper: {
187
+ // marginBottom: 0,
188
+ // },
189
+ // messageBubble: {
190
+ // padding: 6,
191
+ // paddingHorizontal: 16,
192
+ // borderRadius: 12,
193
+ // marginBottom: 5
194
+ // },
195
+ // userMessage: {
196
+ // alignSelf: 'flex-end',
197
+ // backgroundColor: "#003764",
198
+ // color: "#ffffff"
199
+ // },
200
+ // aiMessage: {
201
+ // alignSelf: 'flex-start',
202
+ // backgroundColor: '#FFFFFF',
203
+ // width: '100%',
204
+ // },
205
+ // productCardWrapper: {
206
+ // marginTop: 5,
207
+ // },
208
+ // suggestedQuestionButton: {
209
+ // backgroundColor: "white",
210
+ // borderWidth: 1,
211
+ // borderColor: "#004687",
212
+ // borderRadius: 18,
213
+ // paddingVertical: 10,
214
+ // paddingHorizontal: 16,
215
+ // marginBottom: 7,
216
+ // alignSelf: "flex-start",
217
+ // },
218
+ // suggestedQuestionText: {
219
+ // color: "#004687",
220
+ // fontSize: 13,
221
+ // textAlign: "left",
222
+ // },
223
+ // ghostMessageContainer: {
224
+ // alignSelf: 'flex-start',
225
+ // width: '100%',
226
+ // backgroundColor: "#FFFFFF",
227
+ // borderRadius: 10,
228
+ // borderTopLeftRadius: 0,
229
+ // padding: 14,
230
+ // marginVertical: 5,
231
+ // },
232
+ // ghostBar: {
233
+ // height: 20,
234
+ // borderRadius: 10,
235
+ // backgroundColor: "#ebebeb",
236
+ // marginVertical: 3,
237
+ // },
238
+ // ghostBarShort: {
239
+ // width: "50%",
240
+ // },
241
+ // ghostBarMedium: {
242
+ // width: "75%",
243
+ // },
244
+ // ghostBarLong: {
245
+ // width: "100%",
246
+ // },
247
+ // });
248
+
249
+ // {/* <Testing
250
+ // onProductCardClick={onProductCardClick}
251
+ // onAddToCartClick={onAddToCartClick}
252
+ // /> */}
253
+ "use strict";
272
254
  //# sourceMappingURL=ex.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_header","_AppContext","_Ionicons","_interopRequireDefault","_reactNativeKeyboardAwareScrollView","_testing","_input","_Stream","_productCard","_reactNativeMarkdownDisplay","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","ChatWindow","handleSend","messages","input","setInput","ghostMessage","handleButtonClick","setShowModal","useContext","AppContext","scrollViewRef","useRef","fadeAnim","Animated","Value","current","panY","isDragging","useEffect","setTimeout","scrollToEnd","animated","loop","sequence","timing","toValue","duration","useNativeDriver","start","useWebSocketMessage","headerPanResponder","PanResponder","create","onStartShouldSetPanResponder","onMoveShouldSetPanResponder","onPanResponderGrant","onPanResponderMove","evt","gestureState","dy","setValue","onPanResponderRelease","handleClick","spring","uiConfig","showIcon","createElement","View","style","styles","overlay","Pressable","outsideTouchable","onPress","container","transform","translateY","headerContainer","panHandlers","Header","KeyboardAwareScrollView","ref","contentContainerStyle","messagesContent","enableOnAndroid","contentInsetAdjustmentBehavior","automaticallyAdjustContentInsets","contentInset","bottom","keyboardShouldPersistTaps","showsVerticalScrollIndicator","extraScrollHeight","onContentSizeChange","_scrollViewRef$curren","map","msg","key","messageWrapper","type","messageBubble","userMessage","aiMessage","body","color","fontSize","lineHeight","text","products","prod","index","productCardWrapper","ProductCard","suggested_questions","Array","isArray","questions","question","TouchableOpacity","suggestedQuestionButton","Text","suggestedQuestionText","ghostMessageContainer","ghostBar","ghostBarShort","opacity","ghostBarLong","ghostBarMedium","KeyboardAvoidingView","behavior","Platform","OS","undefined","keyboardVerticalOffset","ChatInput","exports","StyleSheet","flex","position","left","right","top","backgroundColor","justifyContent","zIndex","pointerEvents","borderTopWidth","borderTopColor","borderTopLeftRadius","borderTopRightRadius","overflow","alignItems","padding","marginBottom","paddingHorizontal","borderRadius","alignSelf","width","marginTop","borderWidth","borderColor","paddingVertical","textAlign","marginVertical","height"],"sourceRoot":"../../../src","sources":["layout/ex.js"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAA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AAE,EAAE;IACnBP,iBAAiB,EAAE,EAAE;IACrBD,YAAY,EAAE,CAAC;IACfG,SAAS,EAAE;EACb,CAAC;EACDnC,qBAAqB,EAAE;IACrBjB,KAAK,EAAE,SAAS;IAChBC,QAAQ,EAAE,EAAE;IACZyD,SAAS,EAAE;EACb,CAAC;EACDxC,qBAAqB,EAAE;IACrBkC,SAAS,EAAE,YAAY;IACvBC,KAAK,EAAE,MAAM;IACbf,eAAe,EAAE,SAAS;IAC1Ba,YAAY,EAAE,EAAE;IAChBP,mBAAmB,EAAE,CAAC;IACtBI,OAAO,EAAE,EAAE;IACXW,cAAc,EAAE;EAClB,CAAC;EACDxC,QAAQ,EAAE;IACRyC,MAAM,EAAE,EAAE;IACVT,YAAY,EAAE,EAAE;IAChBb,eAAe,EAAE,SAAS;IAC1BqB,cAAc,EAAE;EAClB,CAAC;EACDvC,aAAa,EAAE;IACbiC,KAAK,EAAE;EACT,CAAC;EACD9B,cAAc,EAAE;IACd8B,KAAK,EAAE;EACT,CAAC;EACD/B,YAAY,EAAE;IACZ+B,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAEF,CAAC;AACD;AACA;AACA,MAHC","ignoreList":[]}
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["layout/ex.js"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AAAA","ignoreList":[]}
@@ -36,7 +36,8 @@ const ChatIcon = () => {
36
36
  if (!disclaimer) {
37
37
  setShowModal("Form");
38
38
  } else {
39
- if (messages.length > 1 || maintenance) {
39
+ if ((messages.length > 1 || maintenance) && !uiConfig.showWelcome) {
40
+ // console.log("UI Config", uiConfig.showWelcome)
40
41
  setShowModal("ChatWindow");
41
42
  } else {
42
43
  setShowModal("Welcome");
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_AppContext","_Ionicons","_interopRequireDefault","_cloudinary","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ChatIcon","_uiConfig$iconPositio","_uiConfig$iconPositio2","setShowModal","messages","maintenance","disclaimer","uiConfig","useContext","AppContext","iconPosition","top","right","iconType","handleClick","length","containerStyle","styles","tabContainer","bubbleContainer","createElement","TouchableOpacity","style","onPress","activeOpacity","View","iconContent","cldImg","imageStyle","width","height","Text","tabText","exports","StyleSheet","create","position","borderRadius","alignItems","justifyContent","zIndex","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","borderTopLeftRadius","borderBottomLeftRadius","backgroundColor","flexDirection","paddingHorizontal","color","fontSize","fontWeight","marginLeft"],"sourceRoot":"../../../src","sources":["layout/icon.js"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAEA,IAAAK,WAAA,GAAAD,sBAAA,CAAAJ,OAAA;AAAkD,SAAAI,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAP,wBAAAO,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAE,OAAA,EAAAF,CAAA,QAAAM,CAAA,GAAAH,wBAAA,CAAAE,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAC,GAAA,CAAAP,CAAA,UAAAM,CAAA,CAAAE,GAAA,CAAAR,CAAA,OAAAS,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA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ACpBC,cAAc,EAAE,QAAQ;IACxBC,MAAM,EAAE,EAAE;IACVC,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MAAEb,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCa,aAAa,EAAE,GAAG;IAClBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE;EACb,CAAC;EAED;EACA3B,YAAY,EAAE;IACZkB,QAAQ,EAAE,UAAU;IACpBP,KAAK,EAAE,GAAG;IACVC,MAAM,EAAE,EAAE;IACVgB,mBAAmB,EAAE,EAAE;IACvBC,sBAAsB,EAAE,EAAE;IAC1BC,eAAe,EAAE,SAAS;IAC1BC,aAAa,EAAE,KAAK;IACpBX,UAAU,EAAE,QAAQ;IACpBY,iBAAiB,EAAE,EAAE;IACrBX,cAAc,EAAE,YAAY;IAC5BC,MAAM,EAAE,EAAE;IACVC,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MAAEb,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCa,aAAa,EAAE,GAAG;IAClBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE;EACb,CAAC;EACDnB,WAAW,EAAE;IACXuB,aAAa,EAAE,KAAK;IACpBX,UAAU,EAAE;EACd,CAAC;EAEDN,OAAO,EAAE;IACPmB,KAAK,EAAE,OAAO;IACdC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_AppContext","_Ionicons","_interopRequireDefault","_cloudinary","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ChatIcon","_uiConfig$iconPositio","_uiConfig$iconPositio2","setShowModal","messages","maintenance","disclaimer","uiConfig","useContext","AppContext","iconPosition","top","right","iconType","handleClick","length","showWelcome","containerStyle","styles","tabContainer","bubbleContainer","createElement","TouchableOpacity","style","onPress","activeOpacity","View","iconContent","cldImg","imageStyle","width","height","Text","tabText","exports","StyleSheet","create","position","borderRadius","alignItems","justifyContent","zIndex","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","borderTopLeftRadius","borderBottomLeftRadius","backgroundColor","flexDirection","paddingHorizontal","color","fontSize","fontWeight","marginLeft"],"sourceRoot":"../../../src","sources":["layout/icon.js"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAEA,IAAAK,WAAA,GAAAD,sBAAA,CAAAJ,OAAA;AAAkD,SAAAI,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAP,wBAAAO,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAE,OAAA,EAAAF,CAAA,QAAAM,CAAA,GAAAH,wBAAA,CAAAE,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAC,GAAA,CAAAP,CAAA,UAAAM,CAAA,CAAAE,GAAA,CAAAR,CAAA,OAAAS,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAf,CAA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cAAc,EAAE,QAAQ;IACxBC,MAAM,EAAE,EAAE;IACVC,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MAAEb,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCa,aAAa,EAAE,GAAG;IAClBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE;EACb,CAAC;EAED;EACA3B,YAAY,EAAE;IACZkB,QAAQ,EAAE,UAAU;IACpBP,KAAK,EAAE,GAAG;IACVC,MAAM,EAAE,EAAE;IACVgB,mBAAmB,EAAE,EAAE;IACvBC,sBAAsB,EAAE,EAAE;IAC1BC,eAAe,EAAE,SAAS;IAC1BC,aAAa,EAAE,KAAK;IACpBX,UAAU,EAAE,QAAQ;IACpBY,iBAAiB,EAAE,EAAE;IACrBX,cAAc,EAAE,YAAY;IAC5BC,MAAM,EAAE,EAAE;IACVC,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MAAEb,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCa,aAAa,EAAE,GAAG;IAClBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE;EACb,CAAC;EACDnB,WAAW,EAAE;IACXuB,aAAa,EAAE,KAAK;IACpBX,UAAU,EAAE;EACd,CAAC;EAEDN,OAAO,EAAE;IACPmB,KAAK,EAAE,OAAO;IACdC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
@@ -23,7 +23,8 @@ const Welcome = ({
23
23
  setShowModal,
24
24
  uiConfig,
25
25
  onProductCardClick,
26
- onAddToCartClick
26
+ onAddToCartClick,
27
+ data
27
28
  } = (0, _react.useContext)(_AppContext.AppContext);
28
29
  const handleClick = () => {
29
30
  if ((uiConfig.showIcon ?? true) !== true) {
@@ -62,15 +63,15 @@ const Welcome = ({
62
63
  style: styles.blueContainer
63
64
  }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
64
65
  style: styles.welcomeHeader
65
- }, "Hi \uD83D\uDC4B"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
66
+ }, "Hi ", (data === null || data === void 0 ? void 0 : data.customer_name) || "", " \uD83D\uDC4B"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
66
67
  style: styles.welcomeBody2
67
- }, "I'm Poseidon, your Heritage Pool+ AI Agent. I can help you during your online visit with Product and Account information."), /*#__PURE__*/_react.default.createElement(_welcomeInput.WelcomeInput, null), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
68
+ }, "I\u2019m your Heritage Pool+ AI Agent. I can help you during your online visit with Product and Account information."), /*#__PURE__*/_react.default.createElement(_welcomeInput.WelcomeInput, null), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
68
69
  style: styles.textBeta
69
- }, "Beta version. Poseidon is learning!"))), /*#__PURE__*/_react.default.createElement(_reactNative.ScrollView, {
70
+ }, "Beta version. AI Assistant is still learning!"))), /*#__PURE__*/_react.default.createElement(_reactNative.ScrollView, {
70
71
  style: styles.bottomContainer
71
72
  }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
72
73
  style: styles.welcomeBody
73
- }, "Suggested Capabilities..."), /*#__PURE__*/_react.default.createElement(_welcomeButton.default, null))));
74
+ }, "Suggested Questions..."), /*#__PURE__*/_react.default.createElement(_welcomeButton.default, null))));
74
75
  };
75
76
  exports.Welcome = Welcome;
76
77
  const styles = _reactNative.StyleSheet.create({