react-native-srschat 0.1.67 ā 0.1.68
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/README.md +9 -1
- package/lib/commonjs/components/header.js +2 -2
- package/lib/commonjs/components/header.js.map +1 -1
- package/lib/commonjs/components/productCard.js +9 -6
- package/lib/commonjs/components/productCard.js.map +1 -1
- package/lib/commonjs/components/welcomeButton.js +5 -5
- package/lib/commonjs/components/welcomeButton.js.map +1 -1
- package/lib/commonjs/contexts/AppContext.js +6 -6
- package/lib/commonjs/contexts/AppContext.js.map +1 -1
- package/lib/commonjs/hooks/Stream.js +1 -0
- package/lib/commonjs/hooks/Stream.js.map +1 -1
- package/lib/commonjs/layout/disclaimer.js +1 -1
- package/lib/commonjs/layout/disclaimer.js.map +1 -1
- package/lib/commonjs/layout/ex.js +2 -2
- package/lib/commonjs/layout/welcome.js +5 -5
- package/lib/commonjs/layout/welcome.js.map +1 -1
- package/lib/commonjs/layout/window.js +4 -4
- package/lib/commonjs/utils/cloudinary.js +3 -3
- package/lib/commonjs/utils/cloudinary.js.map +1 -1
- package/lib/commonjs/utils/storage.js +1 -1
- package/lib/module/components/header.js +2 -2
- package/lib/module/components/header.js.map +1 -1
- package/lib/module/components/productCard.js +9 -6
- package/lib/module/components/productCard.js.map +1 -1
- package/lib/module/components/welcomeButton.js +5 -5
- package/lib/module/components/welcomeButton.js.map +1 -1
- package/lib/module/contexts/AppContext.js +6 -6
- package/lib/module/contexts/AppContext.js.map +1 -1
- package/lib/module/hooks/Stream.js +1 -0
- package/lib/module/hooks/Stream.js.map +1 -1
- package/lib/module/layout/disclaimer.js +1 -1
- package/lib/module/layout/disclaimer.js.map +1 -1
- package/lib/module/layout/ex.js +2 -2
- package/lib/module/layout/welcome.js +5 -5
- package/lib/module/layout/welcome.js.map +1 -1
- package/lib/module/layout/window.js +4 -4
- package/lib/module/utils/cloudinary.js +3 -3
- package/lib/module/utils/cloudinary.js.map +1 -1
- package/lib/module/utils/storage.js +1 -1
- package/lib/typescript/components/productCard.d.ts.map +1 -1
- package/lib/typescript/hooks/Stream.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/header.js +2 -2
- package/src/components/productCard.js +9 -5
- package/src/components/welcomeButton.js +5 -5
- package/src/contexts/AppContext.js +7 -7
- package/src/hooks/Stream.js +1 -0
- package/src/layout/disclaimer.js +1 -1
- package/src/layout/ex.js +2 -2
- package/src/layout/welcome.js +5 -5
- package/src/layout/window.js +4 -4
- package/src/utils/cloudinary.js +3 -3
- package/src/utils/storage.ts +1 -1
|
@@ -37,7 +37,7 @@ export const Welcome = ({
|
|
|
37
37
|
}, /*#__PURE__*/React.createElement(View, {
|
|
38
38
|
style: styles.logoContainer
|
|
39
39
|
}, /*#__PURE__*/React.createElement(CloudinaryImage, {
|
|
40
|
-
cldImg: "logos/
|
|
40
|
+
cldImg: "logos/HLSG_Logo_Lockup_Color",
|
|
41
41
|
imageStyle: {
|
|
42
42
|
width: 150,
|
|
43
43
|
height: 35
|
|
@@ -55,7 +55,7 @@ export const Welcome = ({
|
|
|
55
55
|
style: styles.welcomeHeader
|
|
56
56
|
}, "Hi ", (data === null || data === void 0 ? void 0 : data.customer_name) || "", " \uD83D\uDC4B"), /*#__PURE__*/React.createElement(Text, {
|
|
57
57
|
style: styles.welcomeBody2
|
|
58
|
-
}, "I\u2019m your Heritage
|
|
58
|
+
}, "I\u2019m your Heritage+ AI Agent. I can help you during your online visit with Product and Account information."), /*#__PURE__*/React.createElement(WelcomeInput, null), /*#__PURE__*/React.createElement(Text, {
|
|
59
59
|
style: styles.textBeta
|
|
60
60
|
}, "Beta version. AI Assistant is still learning!"))), /*#__PURE__*/React.createElement(ScrollView, {
|
|
61
61
|
style: styles.bottomContainer
|
|
@@ -69,11 +69,11 @@ const styles = StyleSheet.create({
|
|
|
69
69
|
},
|
|
70
70
|
parentContainer: {
|
|
71
71
|
flexGrow: 1,
|
|
72
|
-
backgroundColor: '#
|
|
72
|
+
backgroundColor: '#437D3D',
|
|
73
73
|
paddingTop: 60
|
|
74
74
|
},
|
|
75
75
|
topContainer: {
|
|
76
|
-
backgroundColor: '#
|
|
76
|
+
backgroundColor: '#437D3D',
|
|
77
77
|
paddingBottom: 5
|
|
78
78
|
},
|
|
79
79
|
topHeader: {
|
|
@@ -98,7 +98,7 @@ const styles = StyleSheet.create({
|
|
|
98
98
|
alignItems: 'center'
|
|
99
99
|
},
|
|
100
100
|
blueContainer: {
|
|
101
|
-
backgroundColor: '#
|
|
101
|
+
backgroundColor: '#437D3D',
|
|
102
102
|
padding: 15,
|
|
103
103
|
margin: 10,
|
|
104
104
|
borderRadius: 20
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useContext","View","Text","TouchableOpacity","ScrollView","StyleSheet","Ionicons","AppContext","WelcomeInput","ButtonComponent","CloudinaryImage","Welcome","panHandlers","setShowModal","uiConfig","onProductCardClick","onAddToCartClick","data","handleClick","showIcon","setToggleChat","createElement","style","styles","container","parentContainer","topContainer","topHeader","logoContainer","cldImg","imageStyle","width","height","onPress","collapseButton","name","size","color","blueContainer","welcomeHeader","customer_name","welcomeBody2","textBeta","bottomContainer","welcomeBody","create","flex","flexGrow","backgroundColor","paddingTop","paddingBottom","flexDirection","alignItems","paddingHorizontal","justifyContent","position","left","top","padding","margin","borderRadius","fontSize","marginBottom","fontWeight","lineHeight","textAlign","marginTop"],"sourceRoot":"../../../src","sources":["layout/welcome.js"],"mappings":"AAAA;AACA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,UAAU,EAAEC,UAAU,QAAQ,cAAc;AACnF,OAAOC,QAAQ,MAAM,oCAAoC;AACzD,SAASC,UAAU,QAAQ,wBAAwB;AACnD,SAASC,YAAY,QAAQ,4BAA4B;AACzD,OAAOC,eAAe,MAAM,6BAA6B;AACzD,OAAOC,eAAe,MAAM,qBAAqB;AAEjD,OAAO,MAAMC,OAAO,GAAGA,CAAC;EAAEC;AAAY,CAAC,KAAK;EAC1C,MAAM;IAAEC,YAAY;IAAEC,QAAQ;IAAEC,kBAAkB;IAAEC,gBAAgB;IAAEC;EAAK,CAAC,GAAGjB,UAAU,CAACO,UAAU,CAAC;EAErG,MAAMW,WAAW,GAAGA,CAAA,KAAM;IACxB,IAAI,CAACJ,QAAQ,CAACK,QAAQ,IAAI,IAAI,MAAM,IAAI,EAAE;MACxCN,YAAY,CAAC,KAAK,CAAC;IACrB,CAAC,MAAM;MACLA,YAAY,CAAC,MAAM,CAAC;IACtB;IAEA,IAAI,OAAOC,QAAQ,CAACM,aAAa,KAAK,UAAU,EAAE;MAChDN,QAAQ,CAACM,aAAa,CAAC,KAAK,CAAC;IAC/B;EACF,CAAC;EAED,oBACErB,KAAA,CAAAsB,aAAA,CAACpB,IAAI;IAACqB,KAAK,EAAEC,MAAM,CAACC;EAAU,gBAC5BzB,KAAA,CAAAsB,aAAA,CAACpB,IAAI;IAACqB,KAAK,EAAEC,MAAM,CAACE;EAAgB,gBAElC1B,KAAA,CAAAsB,aAAA,CAACpB,IAAI;IAACqB,KAAK,EAAEC,MAAM,CAACG;EAAa,gBAC/B3B,KAAA,CAAAsB,aAAA,CAACpB,IAAI;IAACqB,KAAK,EAAEC,MAAM,CAACI;EAAU,gBAE5B5B,KAAA,CAAAsB,aAAA,CAACpB,IAAI;IAACqB,KAAK,EAAEC,MAAM,CAACK;EAAc,gBAChC7B,KAAA,CAAAsB,aAAA,CAACX,eAAe;IACdmB,MAAM,EAAC,
|
|
1
|
+
{"version":3,"names":["React","useContext","View","Text","TouchableOpacity","ScrollView","StyleSheet","Ionicons","AppContext","WelcomeInput","ButtonComponent","CloudinaryImage","Welcome","panHandlers","setShowModal","uiConfig","onProductCardClick","onAddToCartClick","data","handleClick","showIcon","setToggleChat","createElement","style","styles","container","parentContainer","topContainer","topHeader","logoContainer","cldImg","imageStyle","width","height","onPress","collapseButton","name","size","color","blueContainer","welcomeHeader","customer_name","welcomeBody2","textBeta","bottomContainer","welcomeBody","create","flex","flexGrow","backgroundColor","paddingTop","paddingBottom","flexDirection","alignItems","paddingHorizontal","justifyContent","position","left","top","padding","margin","borderRadius","fontSize","marginBottom","fontWeight","lineHeight","textAlign","marginTop"],"sourceRoot":"../../../src","sources":["layout/welcome.js"],"mappings":"AAAA;AACA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,UAAU,EAAEC,UAAU,QAAQ,cAAc;AACnF,OAAOC,QAAQ,MAAM,oCAAoC;AACzD,SAASC,UAAU,QAAQ,wBAAwB;AACnD,SAASC,YAAY,QAAQ,4BAA4B;AACzD,OAAOC,eAAe,MAAM,6BAA6B;AACzD,OAAOC,eAAe,MAAM,qBAAqB;AAEjD,OAAO,MAAMC,OAAO,GAAGA,CAAC;EAAEC;AAAY,CAAC,KAAK;EAC1C,MAAM;IAAEC,YAAY;IAAEC,QAAQ;IAAEC,kBAAkB;IAAEC,gBAAgB;IAAEC;EAAK,CAAC,GAAGjB,UAAU,CAACO,UAAU,CAAC;EAErG,MAAMW,WAAW,GAAGA,CAAA,KAAM;IACxB,IAAI,CAACJ,QAAQ,CAACK,QAAQ,IAAI,IAAI,MAAM,IAAI,EAAE;MACxCN,YAAY,CAAC,KAAK,CAAC;IACrB,CAAC,MAAM;MACLA,YAAY,CAAC,MAAM,CAAC;IACtB;IAEA,IAAI,OAAOC,QAAQ,CAACM,aAAa,KAAK,UAAU,EAAE;MAChDN,QAAQ,CAACM,aAAa,CAAC,KAAK,CAAC;IAC/B;EACF,CAAC;EAED,oBACErB,KAAA,CAAAsB,aAAA,CAACpB,IAAI;IAACqB,KAAK,EAAEC,MAAM,CAACC;EAAU,gBAC5BzB,KAAA,CAAAsB,aAAA,CAACpB,IAAI;IAACqB,KAAK,EAAEC,MAAM,CAACE;EAAgB,gBAElC1B,KAAA,CAAAsB,aAAA,CAACpB,I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AU,EAAE,KAAK;IACjBD,YAAY,EAAE;EAChB,CAAC;EACDpB,QAAQ,EAAE;IACRuB,SAAS,EAAE,QAAQ;IACnBJ,QAAQ,EAAE,EAAE;IACZxB,KAAK,EAAE,SAAS;IAChB0B,UAAU,EAAE,KAAK;IACjBG,SAAS,EAAE;EACb,CAAC;EACDvB,eAAe,EAAE;IACfU,iBAAiB,EAAE,EAAE;IACrBL,eAAe,EAAE,SAAS;IAC1BC,UAAU,EAAE;EACd,CAAC;EACDL,WAAW,EAAE;IACXiB,QAAQ,EAAE,EAAE;IACZC,YAAY,EAAE,EAAE;IAChBzB,KAAK,EAAE,SAAS;IAChB0B,UAAU,EAAE,KAAK;IACjBC,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAEF,eAAerD,OAAO","ignoreList":[]}
|
|
@@ -236,7 +236,7 @@ const styles = StyleSheet.create({
|
|
|
236
236
|
},
|
|
237
237
|
userMessage: {
|
|
238
238
|
alignSelf: 'flex-end',
|
|
239
|
-
backgroundColor: "#
|
|
239
|
+
backgroundColor: "#437D3D",
|
|
240
240
|
color: "#ffffff",
|
|
241
241
|
borderTopRightRadius: 0
|
|
242
242
|
},
|
|
@@ -251,7 +251,7 @@ const styles = StyleSheet.create({
|
|
|
251
251
|
suggestedQuestionButton: {
|
|
252
252
|
backgroundColor: "white",
|
|
253
253
|
borderWidth: 1,
|
|
254
|
-
borderColor: "#
|
|
254
|
+
borderColor: "#437D3D",
|
|
255
255
|
borderRadius: 18,
|
|
256
256
|
paddingVertical: 10,
|
|
257
257
|
paddingHorizontal: 16,
|
|
@@ -259,7 +259,7 @@ const styles = StyleSheet.create({
|
|
|
259
259
|
alignSelf: "flex-start"
|
|
260
260
|
},
|
|
261
261
|
suggestedQuestionText: {
|
|
262
|
-
color: "#
|
|
262
|
+
color: "#437D3D",
|
|
263
263
|
fontSize: 13,
|
|
264
264
|
textAlign: "left",
|
|
265
265
|
includeFontPadding: false,
|
|
@@ -343,7 +343,7 @@ const styles = StyleSheet.create({
|
|
|
343
343
|
middleMessage: {
|
|
344
344
|
color: '#161616',
|
|
345
345
|
alignSelf: 'flex-start',
|
|
346
|
-
backgroundColor: '#
|
|
346
|
+
backgroundColor: '#e7decd',
|
|
347
347
|
//'#e0f4fc',
|
|
348
348
|
width: '100%'
|
|
349
349
|
},
|
|
@@ -11,10 +11,10 @@ const CloudinaryImage = ({
|
|
|
11
11
|
}) => {
|
|
12
12
|
const cld = new Cloudinary({
|
|
13
13
|
cloud: {
|
|
14
|
-
cloudName: '
|
|
14
|
+
cloudName: 'mktg'
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
|
-
const myImage = Platform.OS === 'ios' ? cld.image(
|
|
17
|
+
const myImage = Platform.OS === 'ios' ? cld.image(`${cldImg}`) : cld.image(`${cldImg}`).format('png');
|
|
18
18
|
return /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(AdvancedImage, {
|
|
19
19
|
cldImg: myImage,
|
|
20
20
|
accessibilityLabel: accessibilityLabel,
|
|
@@ -34,7 +34,7 @@ export const CloudinaryBannerImage = ({
|
|
|
34
34
|
}) => {
|
|
35
35
|
const cld = new Cloudinary({
|
|
36
36
|
cloud: {
|
|
37
|
-
cloudName: '
|
|
37
|
+
cloudName: 'mktg'
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
const myImage = cld.image(`${cldImg}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Cloudinary","Platform","View","AdvancedImage","scale","CloudinaryImage","cldImg","imageStyle","accessibilityLabel","testID","cld","cloud","cloudName","myImage","OS","image","format","createElement","style","resizeMode","CloudinaryBannerImage","width","height","resize","parseInt"],"sourceRoot":"../../../src","sources":["utils/cloudinary.js"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,QAAQ,qBAAqB;AAChD,SAASC,QAAQ,EAAEC,IAAI,QAAQ,cAAc;AAC7C,SAASC,aAAa,QAAQ,yBAAyB;AACvD,SAASC,KAAK,QAAQ,oCAAoC;AAE1D,MAAMC,eAAe,GAAGA,CAAC;EAAEC,MAAM;EAAEC,UAAU;EAAEC,kBAAkB;EAAEC;AAAO,CAAC,KAAK;EAC9E,MAAMC,GAAG,GAAG,IAAIV,UAAU,CAAC;IACzBW,KAAK,EAAE;MACLC,SAAS,EAAE;IACb;EACF,CAAC,CAAC;EAEF,MAAMC,OAAO,GAAGZ,QAAQ,CAACa,EAAE,KAAK,KAAK,GAAGJ,GAAG,CAACK,KAAK,CAAC,
|
|
1
|
+
{"version":3,"names":["React","Cloudinary","Platform","View","AdvancedImage","scale","CloudinaryImage","cldImg","imageStyle","accessibilityLabel","testID","cld","cloud","cloudName","myImage","OS","image","format","createElement","style","resizeMode","CloudinaryBannerImage","width","height","resize","parseInt"],"sourceRoot":"../../../src","sources":["utils/cloudinary.js"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,QAAQ,qBAAqB;AAChD,SAASC,QAAQ,EAAEC,IAAI,QAAQ,cAAc;AAC7C,SAASC,aAAa,QAAQ,yBAAyB;AACvD,SAASC,KAAK,QAAQ,oCAAoC;AAE1D,MAAMC,eAAe,GAAGA,CAAC;EAAEC,MAAM;EAAEC,UAAU;EAAEC,kBAAkB;EAAEC;AAAO,CAAC,KAAK;EAC9E,MAAMC,GAAG,GAAG,IAAIV,UAAU,CAAC;IACzBW,KAAK,EAAE;MACLC,SAAS,EAAE;IACb;EACF,CAAC,CAAC;EAEF,MAAMC,OAAO,GAAGZ,QAAQ,CAACa,EAAE,KAAK,KAAK,GAAGJ,GAAG,CAACK,KAAK,CAAC,GAAGT,MAAM,EAAE,CAAC,GAAGI,GAAG,CAACK,KAAK,CAAC,GAAGT,MAAM,EAAE,CAAC,CAACU,MAAM,CAAC,KAAK,CAAC;EACrG,oBACEjB,KAAA,CAAAkB,aAAA,CAACf,IAAI,qBACHH,KAAA,CAAAkB,aAAA,CAACd,aAAa;IACZG,MAAM,EAAEO,OAAQ;IAChBL,kBAAkB,EAAEA,kBAAmB;IACvCC,MAAM,EAAEA,MAAO;IACfS,KAAK,EAAE,CAAC;MAAEC,UAAU,EAAE;IAAU,CAAC,EAAEZ,UAAU;EAAE,CAChD,CACG,CAAC;AAEX,CAAC;AAED,OAAO,MAAMa,qBAAqB,GAAGA,CAAC;EACpCd,MAAM;EACNC,UAAU;EACVC,kBAAkB;EAClBC,MAAM;EACNY,KAAK,GAAG,GAAG;EACXC,MAAM,GAAG;AACX,CAAC,KAAK;EACJ,MAAMZ,GAAG,GAAG,IAAIV,UAAU,CAAC;IACzBW,KAAK,EAAE;MACLC,SAAS,EAAE;IACb;EACF,CAAC,CAAC;EACF,MAAMC,OAAO,GAAGH,GAAG,CAACK,KAAK,CAAC,GAAGT,MAAM,EAAE,CAAC;EACtCO,OAAO,CAACU,MAAM,CACZnB,KAAK,CAAC,CAAC,CACJiB,KAAK,CAACG,QAAQ,CAACH,KAAK,GAAG,CAAC,CAAC,CAAC,CAC1BC,MAAM,CAACE,QAAQ,CAACF,MAAM,GAAG,CAAC,CAAC,CAChC,CAAC;EACD,oBACEvB,KAAA,CAAAkB,aAAA,CAACf,IAAI,qBACHH,KAAA,CAAAkB,aAAA,CAACd,aAAa;IACZG,MAAM,EAAEO,OAAQ;IAChBL,kBAAkB,EAAEA,kBAAmB;IACvCC,MAAM,EAAEA,MAAO;IACfS,KAAK,EAAE,CAAC;MAAEC,UAAU,EAAE,SAAS;MAAEE,KAAK,EAAEA,KAAK;MAAEC,MAAM,EAAEA;IAAO,CAAC,EAAEf,UAAU;EAAE,CAC9E,CACG,CAAC;AAEX,CAAC;AAED,eAAeF,eAAe","ignoreList":[]}
|
|
@@ -11,7 +11,7 @@ export const defaultState = {
|
|
|
11
11
|
startStreaming: false,
|
|
12
12
|
messages: [{
|
|
13
13
|
type: "ai",
|
|
14
|
-
text: "Hi there š Hi there š I'm your Heritage
|
|
14
|
+
text: "Hi there š Hi there š I'm your Heritage+ AI Assistant. I'm here to help you with Product and Account information during your online visit. I'm still learning and growing - the more we interact and the more feedback you share, the better I can assist you. How can I help you today?"
|
|
15
15
|
}],
|
|
16
16
|
showIcon: true,
|
|
17
17
|
toggleChat: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productCard.d.ts","sourceRoot":"","sources":["../../../src/components/productCard.js"],"names":[],"mappings":"AAOO;;;;
|
|
1
|
+
{"version":3,"file":"productCard.d.ts","sourceRoot":"","sources":["../../../src/components/productCard.js"],"names":[],"mappings":"AAOO;;;;sBA8dN;kBAresD,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stream.d.ts","sourceRoot":"","sources":["../../../src/hooks/Stream.js"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"Stream.d.ts","sourceRoot":"","sources":["../../../src/hooks/Stream.js"],"names":[],"mappings":"AAGA,4CAwRC"}
|
package/package.json
CHANGED
package/src/components/header.js
CHANGED
|
@@ -32,7 +32,7 @@ export const Header = () => {
|
|
|
32
32
|
height={35}
|
|
33
33
|
/> */}
|
|
34
34
|
<CloudinaryImage
|
|
35
|
-
cldImg="logos/
|
|
35
|
+
cldImg="logos/HLSG_Logo_Lockup_Color"
|
|
36
36
|
imageStyle={{ width: 150, height: 35 }}
|
|
37
37
|
/>
|
|
38
38
|
</View>
|
|
@@ -71,7 +71,7 @@ const styles = StyleSheet.create({
|
|
|
71
71
|
header: {
|
|
72
72
|
flexDirection: 'row',
|
|
73
73
|
alignItems: 'center',
|
|
74
|
-
backgroundColor: '#
|
|
74
|
+
backgroundColor: '#437D3D',
|
|
75
75
|
padding: 16,
|
|
76
76
|
paddingTop: 60,
|
|
77
77
|
borderBottomWidth: 1,
|
|
@@ -362,11 +362,14 @@ export const ProductCard = ({ prod, onFocusQuantityInput, messageId }) => {
|
|
|
362
362
|
<>
|
|
363
363
|
<Text style={styles.originalPrice} allowFontScaling={false}>${Number(grossPrice).toFixed(2)}</Text>
|
|
364
364
|
<Text style={styles.salePrice} allowFontScaling={false}>${Number(netPrice).toFixed(2)}</Text>
|
|
365
|
+
<Text style={styles.perUnit}>/ {selectedUom}</Text>
|
|
365
366
|
</>
|
|
366
367
|
) : (
|
|
367
|
-
|
|
368
|
+
<>
|
|
369
|
+
<Text style={styles.price} allowFontScaling={false}>${Number(grossPrice).toFixed(2)}</Text>
|
|
370
|
+
<Text style={styles.perUnit}>/ {selectedUom}</Text>
|
|
371
|
+
</>
|
|
368
372
|
)}
|
|
369
|
-
<Text style={styles.perUnit}> / {selectedUom}</Text>
|
|
370
373
|
</View>
|
|
371
374
|
<Text style={styles.availability}>
|
|
372
375
|
{maxQuantity === 0 ? "0 available" : maxQuantity > 1000 ? "1000+ available" : `${maxQuantity} available`}
|
|
@@ -537,9 +540,8 @@ const styles = StyleSheet.create({
|
|
|
537
540
|
textAlignVertical: 'center',
|
|
538
541
|
},
|
|
539
542
|
priceContainer: {
|
|
540
|
-
flexDirection: "
|
|
543
|
+
flexDirection: "column",
|
|
541
544
|
alignItems: "center",
|
|
542
|
-
flexWrap: "nowrap",
|
|
543
545
|
justifyContent: "center",
|
|
544
546
|
paddingHorizontal: 2,
|
|
545
547
|
},
|
|
@@ -547,7 +549,7 @@ const styles = StyleSheet.create({
|
|
|
547
549
|
fontSize: 14,
|
|
548
550
|
textDecorationLine: "line-through",
|
|
549
551
|
color: "gray",
|
|
550
|
-
|
|
552
|
+
textAlign: "center",
|
|
551
553
|
textBreakStrategy: "simple",
|
|
552
554
|
lineHeight: 20,
|
|
553
555
|
includeFontPadding: false,
|
|
@@ -557,6 +559,7 @@ const styles = StyleSheet.create({
|
|
|
557
559
|
fontSize: 16,
|
|
558
560
|
fontWeight: "bold",
|
|
559
561
|
color: "red",
|
|
562
|
+
textAlign: "center",
|
|
560
563
|
textBreakStrategy: "simple",
|
|
561
564
|
lineHeight: 22,
|
|
562
565
|
includeFontPadding: false,
|
|
@@ -565,6 +568,7 @@ const styles = StyleSheet.create({
|
|
|
565
568
|
perUnit: {
|
|
566
569
|
fontSize: 12,
|
|
567
570
|
color: "gray",
|
|
571
|
+
textAlign: "center",
|
|
568
572
|
},
|
|
569
573
|
availability: {
|
|
570
574
|
fontSize: 12,
|
|
@@ -5,9 +5,9 @@ import { AppContext } from '../contexts/AppContext';
|
|
|
5
5
|
|
|
6
6
|
const suggestedQuestions = [
|
|
7
7
|
{ text: 'What are the hours of my current branch?' },
|
|
8
|
-
{ text: 'Do you have part #
|
|
9
|
-
{ text: '
|
|
10
|
-
{ text: '
|
|
8
|
+
{ text: 'Do you have part # RBLESPLXME2 in stock?' },
|
|
9
|
+
{ text: 'How do I install the seal on B82456?' },
|
|
10
|
+
{ text: 'Where can I find my POs?' },
|
|
11
11
|
{ text: '¿Puedes ayudarme en español?' }
|
|
12
12
|
];
|
|
13
13
|
|
|
@@ -34,7 +34,7 @@ const styles = StyleSheet.create({
|
|
|
34
34
|
},
|
|
35
35
|
button: {
|
|
36
36
|
backgroundColor: 'white',
|
|
37
|
-
borderColor: '#
|
|
37
|
+
borderColor: '#437D3D',
|
|
38
38
|
borderWidth: 1,
|
|
39
39
|
borderRadius: 18,
|
|
40
40
|
paddingVertical: 12,
|
|
@@ -42,7 +42,7 @@ const styles = StyleSheet.create({
|
|
|
42
42
|
marginBottom: 16,
|
|
43
43
|
},
|
|
44
44
|
buttonText: {
|
|
45
|
-
color: '#
|
|
45
|
+
color: '#437D3D',
|
|
46
46
|
fontSize: 13,
|
|
47
47
|
fontWeight: '400',
|
|
48
48
|
},
|
|
@@ -17,22 +17,22 @@ export const AppProvider = ({ data, onProductCardClick, onAddToCartClick, uiConf
|
|
|
17
17
|
primaryColor: '#161616'
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
const TRACK_CLICK_URL = "https://srs-external-agent-logging-586731320826.us-central1.run.app/track-click"
|
|
21
|
-
const ADD_TO_CART_URL = "https://srs-external-agent-logging-586731320826.us-central1.run.app/add-to-cart"
|
|
20
|
+
const TRACK_CLICK_URL = "https://srs-external-agent-landscape-logging-586731320826.us-central1.run.app/track-click"
|
|
21
|
+
const ADD_TO_CART_URL = "https://srs-external-agent-landscape-logging-586731320826.us-central1.run.app/add-to-cart"
|
|
22
22
|
|
|
23
23
|
// Backend URLs
|
|
24
24
|
const BASE_URL = data.env === "stage"
|
|
25
|
-
? "
|
|
26
|
-
: "
|
|
27
|
-
const LOGGING_URL = "srs-external-agent-logging-
|
|
25
|
+
? "landscape-stage-external-agent-adk-586731320826.us-east1.run.app"
|
|
26
|
+
: "landscape-prod-external-agent-adk-586731320826.us-east1.run.app";
|
|
27
|
+
const LOGGING_URL = "srs-external-agent-landscape-logging-586731320826.us-central1.run.app";
|
|
28
28
|
const API_PREFIX = "https://";
|
|
29
29
|
|
|
30
30
|
// Default Messages
|
|
31
31
|
const defaultMessage = [
|
|
32
|
-
{type: "ai", text: "Hi there š I'm your Heritage
|
|
32
|
+
{type: "ai", text: "Hi there š I'm your Heritage+ AI Assistant. I'm here to help you with Product and Account information during your online visit. I'm still learning and growing - the more we interact and the more feedback you share, the better I can assist you. How can I help you today?"}
|
|
33
33
|
]
|
|
34
34
|
const maintenanceMessage = [
|
|
35
|
-
{ type: "ai", text: "Hi there š I'm your Heritage
|
|
35
|
+
{ type: "ai", text: "Hi there š I'm your Heritage+ AI Agent. I'm currently undergoing maintenance to improve my services. Thank you for your patience and understanding!",},
|
|
36
36
|
];
|
|
37
37
|
|
|
38
38
|
|
package/src/hooks/Stream.js
CHANGED
|
@@ -41,6 +41,7 @@ export function useWebSocketMessage() {
|
|
|
41
41
|
"secondarySalesPersonName": "",
|
|
42
42
|
"secondarySalesPersonEmail": null */
|
|
43
43
|
},
|
|
44
|
+
branch_details: data.branch_details,
|
|
44
45
|
/* branch_details: {
|
|
45
46
|
"active_branch_business_hours": "8:00 AM - 4:30 PM",
|
|
46
47
|
"active_branch_email": "OrdersHarrisburg@bel-aqua.com",
|
package/src/layout/disclaimer.js
CHANGED
|
@@ -65,7 +65,7 @@ export const Disclaimer = ({ panHandlers }) => {
|
|
|
65
65
|
<Text style={styles.buttonText}>Confirm</Text>
|
|
66
66
|
</TouchableOpacity>
|
|
67
67
|
<Text style={styles.confirmText}>
|
|
68
|
-
By clicking the "Confirm" button above, you understand and confirm that your use of Heritage
|
|
68
|
+
By clicking the "Confirm" button above, you understand and confirm that your use of Heritage+ AI Agent is subject to our current Terms of Service and Privacy Policy, and you confirm your understanding of the above.
|
|
69
69
|
</Text>
|
|
70
70
|
</View>
|
|
71
71
|
</View>
|
package/src/layout/ex.js
CHANGED
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
// suggestedQuestionButton: {
|
|
209
209
|
// backgroundColor: "white",
|
|
210
210
|
// borderWidth: 1,
|
|
211
|
-
// borderColor: "#
|
|
211
|
+
// borderColor: "#437D3D",
|
|
212
212
|
// borderRadius: 18,
|
|
213
213
|
// paddingVertical: 10,
|
|
214
214
|
// paddingHorizontal: 16,
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
// alignSelf: "flex-start",
|
|
217
217
|
// },
|
|
218
218
|
// suggestedQuestionText: {
|
|
219
|
-
// color: "#
|
|
219
|
+
// color: "#437D3D",
|
|
220
220
|
// fontSize: 13,
|
|
221
221
|
// textAlign: "left",
|
|
222
222
|
// },
|
package/src/layout/welcome.js
CHANGED
|
@@ -31,7 +31,7 @@ export const Welcome = ({ panHandlers }) => {
|
|
|
31
31
|
{/* Logo container with absolute positioning */}
|
|
32
32
|
<View style={styles.logoContainer}>
|
|
33
33
|
<CloudinaryImage
|
|
34
|
-
cldImg="logos/
|
|
34
|
+
cldImg="logos/HLSG_Logo_Lockup_Color"
|
|
35
35
|
imageStyle={{ width: 150, height: 35 }}
|
|
36
36
|
/>
|
|
37
37
|
</View>
|
|
@@ -43,7 +43,7 @@ export const Welcome = ({ panHandlers }) => {
|
|
|
43
43
|
<View style={styles.blueContainer}>
|
|
44
44
|
<Text style={styles.welcomeHeader}>Hi {data?.customer_name || ""} š</Text>
|
|
45
45
|
<Text style={styles.welcomeBody2}>
|
|
46
|
-
Iām your Heritage
|
|
46
|
+
Iām your Heritage+ AI Agent. I can help you during your online visit with Product and Account information.
|
|
47
47
|
</Text>
|
|
48
48
|
<WelcomeInput />
|
|
49
49
|
<Text style={styles.textBeta}>Beta version. AI Assistant is still learning!</Text>
|
|
@@ -66,11 +66,11 @@ const styles = StyleSheet.create({
|
|
|
66
66
|
},
|
|
67
67
|
parentContainer: {
|
|
68
68
|
flexGrow: 1,
|
|
69
|
-
backgroundColor: '#
|
|
69
|
+
backgroundColor: '#437D3D',
|
|
70
70
|
paddingTop: 60,
|
|
71
71
|
},
|
|
72
72
|
topContainer: {
|
|
73
|
-
backgroundColor: '#
|
|
73
|
+
backgroundColor: '#437D3D',
|
|
74
74
|
paddingBottom: 5,
|
|
75
75
|
},
|
|
76
76
|
topHeader: {
|
|
@@ -95,7 +95,7 @@ const styles = StyleSheet.create({
|
|
|
95
95
|
alignItems: 'center',
|
|
96
96
|
},
|
|
97
97
|
blueContainer: {
|
|
98
|
-
backgroundColor: '#
|
|
98
|
+
backgroundColor: '#437D3D',
|
|
99
99
|
padding: 15,
|
|
100
100
|
margin: 10,
|
|
101
101
|
borderRadius: 20,
|
package/src/layout/window.js
CHANGED
|
@@ -218,7 +218,7 @@ const styles = StyleSheet.create({
|
|
|
218
218
|
},
|
|
219
219
|
userMessage: {
|
|
220
220
|
alignSelf: 'flex-end',
|
|
221
|
-
backgroundColor: "#
|
|
221
|
+
backgroundColor: "#437D3D",
|
|
222
222
|
color: "#ffffff",
|
|
223
223
|
borderTopRightRadius: 0,
|
|
224
224
|
},
|
|
@@ -233,7 +233,7 @@ const styles = StyleSheet.create({
|
|
|
233
233
|
suggestedQuestionButton: {
|
|
234
234
|
backgroundColor: "white",
|
|
235
235
|
borderWidth: 1,
|
|
236
|
-
borderColor: "#
|
|
236
|
+
borderColor: "#437D3D",
|
|
237
237
|
borderRadius: 18,
|
|
238
238
|
paddingVertical: 10,
|
|
239
239
|
paddingHorizontal: 16,
|
|
@@ -241,7 +241,7 @@ const styles = StyleSheet.create({
|
|
|
241
241
|
alignSelf: "flex-start",
|
|
242
242
|
},
|
|
243
243
|
suggestedQuestionText: {
|
|
244
|
-
color: "#
|
|
244
|
+
color: "#437D3D",
|
|
245
245
|
fontSize: 13,
|
|
246
246
|
textAlign: "left",
|
|
247
247
|
includeFontPadding: false,
|
|
@@ -319,7 +319,7 @@ const styles = StyleSheet.create({
|
|
|
319
319
|
middleMessage:{
|
|
320
320
|
color: '#161616',
|
|
321
321
|
alignSelf: 'flex-start',
|
|
322
|
-
backgroundColor: '#
|
|
322
|
+
backgroundColor: '#e7decd', //'#e0f4fc',
|
|
323
323
|
width: '100%',
|
|
324
324
|
},
|
|
325
325
|
middleMessageText: {
|
package/src/utils/cloudinary.js
CHANGED
|
@@ -7,11 +7,11 @@ import { scale } from '@cloudinary/url-gen/actions/resize';
|
|
|
7
7
|
const CloudinaryImage = ({ cldImg, imageStyle, accessibilityLabel, testID }) => {
|
|
8
8
|
const cld = new Cloudinary({
|
|
9
9
|
cloud: {
|
|
10
|
-
cloudName: '
|
|
10
|
+
cloudName: 'mktg'
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
|
|
14
|
-
const myImage = Platform.OS === 'ios' ? cld.image(
|
|
14
|
+
const myImage = Platform.OS === 'ios' ? cld.image(`${cldImg}`) : cld.image(`${cldImg}`).format('png');
|
|
15
15
|
return (
|
|
16
16
|
<View>
|
|
17
17
|
<AdvancedImage
|
|
@@ -34,7 +34,7 @@ export const CloudinaryBannerImage = ({
|
|
|
34
34
|
}) => {
|
|
35
35
|
const cld = new Cloudinary({
|
|
36
36
|
cloud: {
|
|
37
|
-
cloudName: '
|
|
37
|
+
cloudName: 'mktg'
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
const myImage = cld.image(`${cldImg}`);
|
package/src/utils/storage.ts
CHANGED
|
@@ -33,7 +33,7 @@ export const defaultState: ChatState = {
|
|
|
33
33
|
startStreaming: false,
|
|
34
34
|
messages: [{
|
|
35
35
|
type: "ai",
|
|
36
|
-
text: "Hi there š Hi there š I'm your Heritage
|
|
36
|
+
text: "Hi there š Hi there š I'm your Heritage+ AI Assistant. I'm here to help you with Product and Account information during your online visit. I'm still learning and growing - the more we interact and the more feedback you share, the better I can assist you. How can I help you today?"
|
|
37
37
|
}],
|
|
38
38
|
showIcon: true,
|
|
39
39
|
toggleChat: false,
|