Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@atlaskit/analytics-next

Package Overview
Dependencies
Maintainers
1
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/analytics-next - npm Package Compare versions

Comparing version 8.1.2 to 8.1.3

6

CHANGELOG.md
# @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 @@

5

dist/cjs/hooks/usePlatformLeafEventHandler.js

@@ -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]);

2

dist/cjs/version.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc