@atlaskit/analytics-next
Advanced tools
Comparing version 8.1.2 to 8.1.3
# @atlaskit/analytics-next | ||
## 8.1.3 | ||
### Patch Changes | ||
- [`5a9b102eef0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5a9b102eef0) - Add optional actionSubject parameter to usePlatformLeafHandlerHook | ||
## 8.1.2 | ||
@@ -4,0 +10,0 @@ |
@@ -32,2 +32,3 @@ "use strict"; | ||
componentName = _ref.componentName, | ||
actionSubject = _ref.actionSubject, | ||
packageName = _ref.packageName, | ||
@@ -49,3 +50,3 @@ packageVersion = _ref.packageVersion, | ||
action: action, | ||
actionSubject: componentName, | ||
actionSubject: actionSubject || componentName, | ||
attributes: { | ||
@@ -76,3 +77,3 @@ componentName: componentName, | ||
}, [// These are strings and won't change | ||
action, componentName, packageName, packageVersion, // This function is memoized in the context | ||
action, componentName, actionSubject, packageName, packageVersion, // This function is memoized in the context | ||
createAnalyticsEvent, // these are a stable ref because of the useTrackedRef hook | ||
@@ -79,0 +80,0 @@ dataRef, fnRef]); |
{ | ||
"name": "@atlaskit/analytics-next", | ||
"version": "8.1.2", | ||
"version": "8.1.3", | ||
"sideEffects": false | ||
} |
@@ -14,2 +14,3 @@ import { useCallback } from 'react'; | ||
componentName, | ||
actionSubject, | ||
packageName, | ||
@@ -31,3 +32,3 @@ packageVersion, | ||
action, | ||
actionSubject: componentName, | ||
actionSubject: actionSubject || componentName, | ||
attributes: { | ||
@@ -58,3 +59,3 @@ componentName, | ||
}, [// These are strings and won't change | ||
action, componentName, packageName, packageVersion, // This function is memoized in the context | ||
action, componentName, actionSubject, packageName, packageVersion, // This function is memoized in the context | ||
createAnalyticsEvent, // these are a stable ref because of the useTrackedRef hook | ||
@@ -61,0 +62,0 @@ dataRef, fnRef]); |
{ | ||
"name": "@atlaskit/analytics-next", | ||
"version": "8.1.2", | ||
"version": "8.1.3", | ||
"sideEffects": false | ||
} |
@@ -20,2 +20,3 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty"; | ||
componentName = _ref.componentName, | ||
actionSubject = _ref.actionSubject, | ||
packageName = _ref.packageName, | ||
@@ -37,3 +38,3 @@ packageVersion = _ref.packageVersion, | ||
action: action, | ||
actionSubject: componentName, | ||
actionSubject: actionSubject || componentName, | ||
attributes: { | ||
@@ -64,3 +65,3 @@ componentName: componentName, | ||
}, [// These are strings and won't change | ||
action, componentName, packageName, packageVersion, // This function is memoized in the context | ||
action, componentName, actionSubject, packageName, packageVersion, // This function is memoized in the context | ||
createAnalyticsEvent, // these are a stable ref because of the useTrackedRef hook | ||
@@ -67,0 +68,0 @@ dataRef, fnRef]); |
{ | ||
"name": "@atlaskit/analytics-next", | ||
"version": "8.1.2", | ||
"version": "8.1.3", | ||
"sideEffects": false | ||
} |
@@ -6,2 +6,3 @@ import UIAnalyticsEvent from '../events/UIAnalyticsEvent'; | ||
componentName: string; | ||
actionSubject?: string; | ||
packageName: string; | ||
@@ -12,2 +13,2 @@ packageVersion: string; | ||
export declare type UsePlatformLeafEventHandlerHook<T> = (value: T) => void; | ||
export declare function usePlatformLeafEventHandler<T>({ fn, action, componentName, packageName, packageVersion, analyticsData, }: UsePlatformLeafEventHandlerHookArgs<T>): (value: T) => void; | ||
export declare function usePlatformLeafEventHandler<T>({ fn, action, componentName, actionSubject, packageName, packageVersion, analyticsData, }: UsePlatformLeafEventHandlerHookArgs<T>): (value: T) => void; |
{ | ||
"name": "@atlaskit/analytics-next", | ||
"version": "8.1.2", | ||
"version": "8.1.3", | ||
"description": "React components, HOCs and hooks to assist with tracking user activity with React components", | ||
@@ -60,3 +60,3 @@ "publishConfig": { | ||
"redux": "^3.7.2", | ||
"storybook-addon-performance": "0.13.0", | ||
"storybook-addon-performance": "^0.15.1", | ||
"typescript": "3.9.6" | ||
@@ -63,0 +63,0 @@ }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
213414
3819