@widergy/mobile-ui 1.23.0 → 1.23.1

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.23.1](https://github.com/widergy/mobile-ui/compare/v1.23.0...v1.23.1) (2024-09-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * instance validation added ([#352](https://github.com/widergy/mobile-ui/issues/352)) ([6f2d5da](https://github.com/widergy/mobile-ui/commit/6f2d5da7771e61736eb602f9de080acffb48a63b))
7
+
1
8
  # [1.23.0](https://github.com/widergy/mobile-ui/compare/v1.22.0...v1.23.0) (2024-09-04)
2
9
 
3
10
 
@@ -131,13 +131,13 @@ export const singleEventMultitracking = (trackers, eventDefinitions) => (name, e
131
131
  });
132
132
  };
133
133
 
134
- export const intercomSingleEvent = trackEventFunction => eventData => {
134
+ export const intercomSingleEvent = intercomInstance => eventData => {
135
135
  const { name, ...eventMetadata } = eventData;
136
- if (trackEventFunction) trackEventFunction(name, eventMetadata);
136
+ if (intercomInstance) intercomInstance.logEvent(name, eventMetadata);
137
137
  };
138
138
 
139
- export const intercomUpdateUser = updaterFunction => userProperties => {
140
- updaterFunction(userProperties);
139
+ export const intercomUpdateUser = intercomInstance => userProperties => {
140
+ if (intercomInstance) intercomInstance.updateUser(userProperties);
141
141
  };
142
142
 
143
143
  export default {
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.23.0",
5
+ "version": "1.23.1",
6
6
  "repository": "https://github.com/widergy/mobile-ui.git",
7
7
  "main": "lib/index.js",
8
8
  "files": [