@widergy/mobile-ui 1.19.6 → 1.20.0
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [1.20.0](https://github.com/widergy/mobile-ui/compare/v1.19.7...v1.20.0) (2024-08-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* mixpanel superproperties method ([#337](https://github.com/widergy/mobile-ui/issues/337)) ([10c8881](https://github.com/widergy/mobile-ui/commit/10c8881e1fb1c895b87ece76b48d857e3a641158))
|
|
7
|
+
|
|
8
|
+
## [1.19.7](https://github.com/widergy/mobile-ui/compare/v1.19.6...v1.19.7) (2024-08-27)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* input validations ([#348](https://github.com/widergy/mobile-ui/issues/348)) ([dd2cbeb](https://github.com/widergy/mobile-ui/commit/dd2cbebe026e8bdeae5535c38991290ced16f0c4))
|
|
14
|
+
|
|
1
15
|
## [1.19.6](https://github.com/widergy/mobile-ui/compare/v1.19.5...v1.19.6) (2024-08-27)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -6,6 +6,12 @@ export const STATUSES = {
|
|
|
6
6
|
default: 'default'
|
|
7
7
|
};
|
|
8
8
|
|
|
9
|
+
export const ICON_STATUS_COLOR_MAPPER = {
|
|
10
|
+
[STATUSES.success]: 'success',
|
|
11
|
+
[STATUSES.error]: 'error',
|
|
12
|
+
[STATUSES.default]: 'light'
|
|
13
|
+
};
|
|
14
|
+
|
|
9
15
|
export const STATUS_COLOR_MAPPER = {
|
|
10
16
|
[STATUSES.success]: 'success',
|
|
11
17
|
[STATUSES.error]: 'error',
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { STATUSES,
|
|
1
|
+
import { STATUSES, ICON_STATUS_COLOR_MAPPER } from './constants';
|
|
2
2
|
|
|
3
3
|
const variantsColorTheme = (colorTheme, theme) => theme.Palette[colorTheme];
|
|
4
4
|
|
|
5
5
|
export const retrieveStyle = ({ theme }) => ({
|
|
6
6
|
icon: {
|
|
7
7
|
[STATUSES.success]: {
|
|
8
|
-
backgroundColor: variantsColorTheme(
|
|
8
|
+
backgroundColor: variantsColorTheme(ICON_STATUS_COLOR_MAPPER[STATUSES.success], theme)['01']
|
|
9
9
|
},
|
|
10
10
|
[STATUSES.error]: {
|
|
11
|
-
backgroundColor: variantsColorTheme(
|
|
11
|
+
backgroundColor: variantsColorTheme(ICON_STATUS_COLOR_MAPPER[STATUSES.error], theme)['01']
|
|
12
12
|
},
|
|
13
13
|
[STATUSES.default]: {
|
|
14
|
-
backgroundColor: variantsColorTheme(
|
|
14
|
+
backgroundColor: variantsColorTheme(ICON_STATUS_COLOR_MAPPER[STATUSES.default], theme)['04']
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
});
|
|
@@ -92,6 +92,12 @@ export const singleMixpanelEvent = mixpanelInstance => eventData => {
|
|
|
92
92
|
if (mixpanelInstance) mixpanelInstance.track(name, yourProperties);
|
|
93
93
|
};
|
|
94
94
|
|
|
95
|
+
export const mixpanelSuperPropertiesRegister = mixpanelInstance => superProperties => {
|
|
96
|
+
if (mixpanelInstance) {
|
|
97
|
+
mixpanelInstance.registerSuperProperties(superProperties);
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
|
|
95
101
|
export const singleFirebaseEvent = analyticsIntance => eventData => {
|
|
96
102
|
const { action, category, currency, label, value } = eventData;
|
|
97
103
|
if (analyticsIntance) analyticsIntance.logEvent(category, { action, currency, label, value });
|
|
@@ -116,6 +122,7 @@ export const singleEventMultitracking = (trackers, eventDefinitions) => (name, e
|
|
|
116
122
|
export default {
|
|
117
123
|
createAnalyticsMiddleware,
|
|
118
124
|
mixpanelEventsFlush,
|
|
125
|
+
mixpanelSuperPropertiesRegister,
|
|
119
126
|
mixpanelUserIdentify,
|
|
120
127
|
mixpanelUserReset,
|
|
121
128
|
multiTracking,
|
package/package.json
CHANGED