@momo-kits/foundation 0.81.43-tracking.1 → 0.81.43-tracking.3

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.
@@ -82,10 +82,11 @@ export type LocalizationObject = {
82
82
 
83
83
  export type TrackingInfo = {
84
84
  [key: string]: any;
85
- app_id: string;
86
- feature_code: string;
87
- screen_name: string;
88
- flow_partner_id?: string;
85
+ appId: string;
86
+ code: string;
87
+ buildNumber: string;
88
+ screenName?: string;
89
+ flowPartnerId?: string;
89
90
  };
90
91
 
91
92
  export type NavigationContainerProps = {
package/Button/index.tsx CHANGED
@@ -76,6 +76,8 @@ export interface ButtonProps extends TouchableOpacityProps {
76
76
  onPress: () => void;
77
77
 
78
78
  trackingParams?: any;
79
+
80
+ component_id?: string;
79
81
  }
80
82
 
81
83
  const Button: FC<ButtonProps> = ({
@@ -89,6 +91,7 @@ const Button: FC<ButtonProps> = ({
89
91
  title = 'Button',
90
92
  onPress,
91
93
  trackingParams,
94
+ component_id,
92
95
  ...rest
93
96
  }) => {
94
97
  const {theme, config} = useContext(ApplicationContext);
@@ -306,6 +309,7 @@ const Button: FC<ButtonProps> = ({
306
309
  componentName: 'Button',
307
310
  params: trackingParams,
308
311
  state: type === 'disabled' ? 'disabled' : 'enabled',
312
+ component_id,
309
313
  }}>
310
314
  <TouchableOpacity
311
315
  {...rest}
package/Input/Input.tsx CHANGED
@@ -43,6 +43,7 @@ const Input = forwardRef(
43
43
  onPressIcon,
44
44
  style,
45
45
  trackingParams,
46
+ component_id,
46
47
  ...props
47
48
  }: InputProps,
48
49
  ref,
@@ -172,6 +173,7 @@ const Input = forwardRef(
172
173
  componentName: 'Input',
173
174
  params: trackingParams,
174
175
  state: disabled ? 'disabled' : 'enabled',
176
+ component_id,
175
177
  }}>
176
178
  <View
177
179
  style={[style, styles.wrapper]}
@@ -36,6 +36,7 @@ const InputMoney = forwardRef(
36
36
  style,
37
37
  trackingParams,
38
38
  defaultValue = '',
39
+ component_id,
39
40
  ...props
40
41
  }: InputMoneyProps,
41
42
  ref,
@@ -154,6 +155,7 @@ const InputMoney = forwardRef(
154
155
  componentName: 'InputMoney',
155
156
  params: trackingParams,
156
157
  state: 'enable',
158
+ component_id,
157
159
  }}>
158
160
  <View
159
161
  style={[style, styles.wrapper]}
@@ -84,6 +84,7 @@ const InputOTP = forwardRef(
84
84
  dataType = 'number',
85
85
  trackingParams,
86
86
  style,
87
+ component_id,
87
88
  ...props
88
89
  }: InputOTPProps,
89
90
  ref,
@@ -235,6 +236,7 @@ const InputOTP = forwardRef(
235
236
  componentName: 'InputOTP',
236
237
  params: trackingParams,
237
238
  state: 'enable',
239
+ component_id,
238
240
  }}>
239
241
  <TouchableOpacity
240
242
  activeOpacity={1}
@@ -34,6 +34,8 @@ const InputSearch = forwardRef(
34
34
  defaultValue,
35
35
  onPressButtonText,
36
36
  trackingParams,
37
+ component_id,
38
+
37
39
  ...props
38
40
  }: InputSearchProps,
39
41
  ref,
@@ -131,6 +133,7 @@ const InputSearch = forwardRef(
131
133
  componentName: 'InputSearch',
132
134
  params: trackingParams,
133
135
  state: 'enabled',
136
+ component_id,
134
137
  }}>
135
138
  <View
136
139
  style={[style, styles.searchInputContainer]}
package/Input/index.tsx CHANGED
@@ -82,6 +82,7 @@ export interface InputProps extends TextInputProps {
82
82
  onPressIcon?: () => void;
83
83
 
84
84
  trackingParams?: any;
85
+ component_id?: string;
85
86
  }
86
87
 
87
88
  type InputPropsWithoutSizeAndIcon = Omit<
@@ -130,6 +131,8 @@ export interface InputSearchProps extends TextInputProps {
130
131
  icon?: string;
131
132
 
132
133
  trackingParams?: any;
134
+
135
+ component_id?: string;
133
136
  }
134
137
 
135
138
  export interface InputMoneyProps extends InputPropsWithoutPlaceholder {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.81.43-tracking.1",
3
+ "version": "0.81.43-tracking.3",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {