@microsoft/applicationinsights-react-js 3.2.4 → 3.2.5-nightly.2203-02

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - React Plugin, 3.2.4
2
+ * Application Insights JavaScript SDK - React Plugin, 3.2.5-nightly.2203-02
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -2076,7 +2076,7 @@
2076
2076
  trackedData.idleCount * trackedData.idleTimeout) /
2077
2077
  1000);
2078
2078
  }
2079
- var useComponentTracking = function (reactPlugin, componentName) {
2079
+ var useComponentTracking = function (reactPlugin, componentName, customProperties) {
2080
2080
  var tracking = React.useRef({
2081
2081
  hookTimestamp: dateNow(),
2082
2082
  firstActiveTimestamp: 0,
@@ -2115,7 +2115,7 @@
2115
2115
  name: "React Component Engaged Time (seconds)",
2116
2116
  sampleCount: 1
2117
2117
  };
2118
- var additionalProperties = { "Component Name": componentName };
2118
+ var additionalProperties = __assignFn({ "Component Name": componentName }, customProperties);
2119
2119
  reactPlugin.trackMetric(metricData, additionalProperties);
2120
2120
  };
2121
2121
  }, []);