@widergy/mobile-ui 1.19.7 → 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,10 @@
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
+
1
8
  ## [1.19.7](https://github.com/widergy/mobile-ui/compare/v1.19.6...v1.19.7) (2024-08-27)
2
9
 
3
10
 
@@ -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
@@ -2,7 +2,7 @@
2
2
  "name": "@widergy/mobile-ui",
3
3
  "description": "Widergy Mobile Components",
4
4
  "author": "widergy",
5
- "version": "1.19.7",
5
+ "version": "1.20.0",
6
6
  "repository": "https://github.com/widergy/mobile-ui.git",
7
7
  "main": "lib/index.js",
8
8
  "files": [