@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 =
|
|
134
|
+
export const intercomSingleEvent = intercomInstance => eventData => {
|
|
135
135
|
const { name, ...eventMetadata } = eventData;
|
|
136
|
-
if (
|
|
136
|
+
if (intercomInstance) intercomInstance.logEvent(name, eventMetadata);
|
|
137
137
|
};
|
|
138
138
|
|
|
139
|
-
export const intercomUpdateUser =
|
|
140
|
-
|
|
139
|
+
export const intercomUpdateUser = intercomInstance => userProperties => {
|
|
140
|
+
if (intercomInstance) intercomInstance.updateUser(userProperties);
|
|
141
141
|
};
|
|
142
142
|
|
|
143
143
|
export default {
|
package/package.json
CHANGED