react-native-chatbot-ai 0.1.64 → 0.1.65
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.
|
@@ -7,7 +7,7 @@ import { ImageBackground, StatusBar, StyleSheet } from 'react-native';
|
|
|
7
7
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
8
8
|
import useSessionStore from "../../store/session.js";
|
|
9
9
|
import { useChatContext } from "../../context/ChatContext.js";
|
|
10
|
-
import { SessionLogType } from "../../types/chat.js";
|
|
10
|
+
import { EventProvider, SessionLogType } from "../../types/chat.js";
|
|
11
11
|
import { GAEvents } from "../../constants/events.js";
|
|
12
12
|
|
|
13
13
|
// Type assertion to fix TypeScript issue with React Native components
|
|
@@ -27,6 +27,9 @@ export const ChatHeader = () => {
|
|
|
27
27
|
logGA(GAEvents.newChatCreateBtnTap, {
|
|
28
28
|
button_type: 'quick_button'
|
|
29
29
|
});
|
|
30
|
+
logGA(GAEvents.newChatCreateBtnTap, {
|
|
31
|
+
button_type: 'quick_button'
|
|
32
|
+
}, EventProvider.netcore);
|
|
30
33
|
}, [setSessionId, logGA]);
|
|
31
34
|
const renderStatusBar = useCallback(() => {
|
|
32
35
|
return /*#__PURE__*/_jsx(KContainer.View, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useCallback","KColors","KContainer","KImage","KLabel","KSpacingValue","images","ImageBackground","StatusBar","StyleSheet","useSafeAreaInsets","useSessionStore","useChatContext","SessionLogType","GAEvents","jsx","_jsx","jsxs","_jsxs","StatusBarComponent","ImageBackgroundComponent","ChatHeader","insets","setSessionId","state","cartButton","openDrawer","logGA","onPressNewSession","undefined","newChatBtn","newChatCreateBtnTap","button_type","renderStatusBar","View","height","top","background","children","translucent","source","bg_header","resizeMode","style","styles","header","Touchable","button","onPress","VectorIcons","name","size","color","white","Text","flex","typo","create","paddingHorizontal","paddingVertical","flexDirection","gap","alignItems","width","justifyContent"],"sourceRoot":"../../../../src","sources":["components/chat/ChatHeader.tsx"],"mappings":";;AAAA,SAASA,WAAW,QAAQ,OAAO;AAEnC,SACEC,OAAO,EACPC,UAAU,EACVC,MAAM,EACNC,MAAM,EACNC,aAAa,QACR,eAAe;AACtB,OAAOC,MAAM,MAAM,8BAAqB;AACxC,SAASC,eAAe,EAAEC,SAAS,EAAEC,UAAU,QAAQ,cAAc;AACrE,SAASC,iBAAiB,QAAQ,gCAAgC;AAClE,OAAOC,eAAe,MAAM,wBAAqB;AACjD,SAASC,cAAc,QAAQ,8BAA2B;AAC1D,SAASC,cAAc,QAAQ,qBAAkB;
|
|
1
|
+
{"version":3,"names":["useCallback","KColors","KContainer","KImage","KLabel","KSpacingValue","images","ImageBackground","StatusBar","StyleSheet","useSafeAreaInsets","useSessionStore","useChatContext","EventProvider","SessionLogType","GAEvents","jsx","_jsx","jsxs","_jsxs","StatusBarComponent","ImageBackgroundComponent","ChatHeader","insets","setSessionId","state","cartButton","openDrawer","logGA","onPressNewSession","undefined","newChatBtn","newChatCreateBtnTap","button_type","netcore","renderStatusBar","View","height","top","background","children","translucent","source","bg_header","resizeMode","style","styles","header","Touchable","button","onPress","VectorIcons","name","size","color","white","Text","flex","typo","create","paddingHorizontal","paddingVertical","flexDirection","gap","alignItems","width","justifyContent"],"sourceRoot":"../../../../src","sources":["components/chat/ChatHeader.tsx"],"mappings":";;AAAA,SAASA,WAAW,QAAQ,OAAO;AAEnC,SACEC,OAAO,EACPC,UAAU,EACVC,MAAM,EACNC,MAAM,EACNC,aAAa,QACR,eAAe;AACtB,OAAOC,MAAM,MAAM,8BAAqB;AACxC,SAASC,eAAe,EAAEC,SAAS,EAAEC,UAAU,QAAQ,cAAc;AACrE,SAASC,iBAAiB,QAAQ,gCAAgC;AAClE,OAAOC,eAAe,MAAM,wBAAqB;AACjD,SAASC,cAAc,QAAQ,8BAA2B;AAC1D,SAASC,aAAa,EAAEC,cAAc,QAAQ,qBAAkB;AAChE,SAASC,QAAQ,QAAQ,2BAAwB;;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,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/ChatHeader.tsx"],"names":[],"mappings":"AAwBA,eAAO,MAAM,UAAU,+
|
|
1
|
+
{"version":3,"file":"ChatHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/ChatHeader.tsx"],"names":[],"mappings":"AAwBA,eAAO,MAAM,UAAU,+CAmDtB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@ import { ImageBackground, StatusBar, StyleSheet } from 'react-native';
|
|
|
12
12
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
13
13
|
import useSessionStore from '../../store/session';
|
|
14
14
|
import { useChatContext } from '../../context/ChatContext';
|
|
15
|
-
import { SessionLogType } from '../../types/chat';
|
|
15
|
+
import { EventProvider, SessionLogType } from '../../types/chat';
|
|
16
16
|
import { GAEvents } from '../../constants/events';
|
|
17
17
|
|
|
18
18
|
// Type assertion to fix TypeScript issue with React Native components
|
|
@@ -32,6 +32,13 @@ export const ChatHeader = () => {
|
|
|
32
32
|
logGA(GAEvents.newChatCreateBtnTap, {
|
|
33
33
|
button_type: 'quick_button',
|
|
34
34
|
});
|
|
35
|
+
logGA(
|
|
36
|
+
GAEvents.newChatCreateBtnTap,
|
|
37
|
+
{
|
|
38
|
+
button_type: 'quick_button',
|
|
39
|
+
},
|
|
40
|
+
EventProvider.netcore
|
|
41
|
+
);
|
|
35
42
|
}, [setSessionId, logGA]);
|
|
36
43
|
|
|
37
44
|
const renderStatusBar = useCallback(() => {
|