@atlaskit/analytics-next
Advanced tools
Comparing version 6.0.1 to 6.0.2
# @atlaskit/analytics-next | ||
## 6.0.2 | ||
### Patch Changes | ||
- [patch][ecca4d1dbb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ecca4d1dbb): | ||
Upgraded Typescript to 3.3.x | ||
## 6.0.1 | ||
@@ -4,0 +12,0 @@ |
{ | ||
"name": "@atlaskit/analytics-next", | ||
"version": "6.0.1", | ||
"version": "6.0.2", | ||
"sideEffects": false | ||
} |
@@ -5,3 +5,3 @@ import React from 'react'; | ||
} | ||
declare const withAnalyticsContext: (defaultData?: any) => <Props, Component>(WrappedComponent: (((props: Props) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) & Component) | ((new (props: Props) => React.Component<Props, any, any>) & Component)) => React.ForwardRefExoticComponent<React.PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Props & WithContextProps>> & React.RefAttributes<any>>; | ||
declare const withAnalyticsContext: (defaultData?: any) => <Props, Component>(WrappedComponent: (((props: Props) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | null) & Component) | ((new (props: Props) => React.Component<Props, any, any>) & Component)) => React.ForwardRefExoticComponent<React.PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Props & WithContextProps>> & React.RefAttributes<any>>; | ||
export default withAnalyticsContext; |
@@ -8,3 +8,2 @@ "use strict"; | ||
var WithAnalyticsContext = react_1.default.forwardRef(function (props, ref) { | ||
// @ts-ignore | ||
var _a = props.analyticsContext, analyticsContext = _a === void 0 ? {} : _a, rest = tslib_1.__rest(props, ["analyticsContext"]); | ||
@@ -11,0 +10,0 @@ var analyticsData = tslib_1.__assign({}, defaultData, analyticsContext); |
@@ -9,4 +9,5 @@ import React from 'react'; | ||
createAnalyticsEvent?: CreateUIAnalyticsEvent; | ||
ref?: React.Ref<any>; | ||
} | ||
declare const withAnalyticsEvents: (createEventMap?: Record<string, Record<string, any> | import("./types").AnalyticsEventCreator> | undefined) => <Props extends WithAnalyticsEventsProps, Component>(WrappedComponent: (((props: Props) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) & Component) | ((new (props: Props) => React.Component<Props, any, any>) & Component)) => React.ForwardRefExoticComponent<React.PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Pick<Props, Exclude<keyof Props, "createAnalyticsEvent">>>> & React.RefAttributes<any>>; | ||
declare const withAnalyticsEvents: (createEventMap?: Record<string, Record<string, any> | import("./types").AnalyticsEventCreator> | undefined) => <Props extends WithAnalyticsEventsProps, Component>(WrappedComponent: (((props: Props) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | null) & Component) | ((new (props: Props) => React.Component<Props, any, any>) & Component)) => React.ForwardRefExoticComponent<React.PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Pick<Props, Exclude<keyof Props, "createAnalyticsEvent" | "ref">>>> & React.RefAttributes<any>>; | ||
export default withAnalyticsEvents; |
@@ -9,5 +9,3 @@ "use strict"; | ||
var createAnalyticsEvent = _a.createAnalyticsEvent, patchedEventProps = _a.patchedEventProps; | ||
return (react_1.default.createElement(WrappedComponent, tslib_1.__assign({}, props, patchedEventProps, { createAnalyticsEvent: createAnalyticsEvent, | ||
// @ts-ignore | ||
ref: ref }))); | ||
return (react_1.default.createElement(WrappedComponent, tslib_1.__assign({}, props, patchedEventProps, { createAnalyticsEvent: createAnalyticsEvent, ref: ref }))); | ||
})); }); | ||
@@ -14,0 +12,0 @@ // @ts-ignore |
{ | ||
"name": "@atlaskit/analytics-next", | ||
"version": "6.0.1", | ||
"version": "6.0.2", | ||
"sideEffects": false | ||
} |
@@ -5,3 +5,3 @@ import React from 'react'; | ||
} | ||
declare const withAnalyticsContext: (defaultData?: any) => <Props, Component>(WrappedComponent: (((props: Props) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) & Component) | ((new (props: Props) => React.Component<Props, any, any>) & Component)) => React.ForwardRefExoticComponent<React.PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Props & WithContextProps>> & React.RefAttributes<any>>; | ||
declare const withAnalyticsContext: (defaultData?: any) => <Props, Component>(WrappedComponent: (((props: Props) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | null) & Component) | ((new (props: Props) => React.Component<Props, any, any>) & Component)) => React.ForwardRefExoticComponent<React.PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Props & WithContextProps>> & React.RefAttributes<any>>; | ||
export default withAnalyticsContext; |
@@ -6,3 +6,2 @@ import * as tslib_1 from "tslib"; | ||
var WithAnalyticsContext = React.forwardRef(function (props, ref) { | ||
// @ts-ignore | ||
var _a = props.analyticsContext, analyticsContext = _a === void 0 ? {} : _a, rest = tslib_1.__rest(props, ["analyticsContext"]); | ||
@@ -9,0 +8,0 @@ var analyticsData = tslib_1.__assign({}, defaultData, analyticsContext); |
@@ -9,4 +9,5 @@ import React from 'react'; | ||
createAnalyticsEvent?: CreateUIAnalyticsEvent; | ||
ref?: React.Ref<any>; | ||
} | ||
declare const withAnalyticsEvents: (createEventMap?: Record<string, Record<string, any> | import("./types").AnalyticsEventCreator> | undefined) => <Props extends WithAnalyticsEventsProps, Component>(WrappedComponent: (((props: Props) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) & Component) | ((new (props: Props) => React.Component<Props, any, any>) & Component)) => React.ForwardRefExoticComponent<React.PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Pick<Props, Exclude<keyof Props, "createAnalyticsEvent">>>> & React.RefAttributes<any>>; | ||
declare const withAnalyticsEvents: (createEventMap?: Record<string, Record<string, any> | import("./types").AnalyticsEventCreator> | undefined) => <Props extends WithAnalyticsEventsProps, Component>(WrappedComponent: (((props: Props) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | null) & Component) | ((new (props: Props) => React.Component<Props, any, any>) & Component)) => React.ForwardRefExoticComponent<React.PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Pick<Props, Exclude<keyof Props, "createAnalyticsEvent" | "ref">>>> & React.RefAttributes<any>>; | ||
export default withAnalyticsEvents; |
@@ -7,5 +7,3 @@ import * as tslib_1 from "tslib"; | ||
var createAnalyticsEvent = _a.createAnalyticsEvent, patchedEventProps = _a.patchedEventProps; | ||
return (React.createElement(WrappedComponent, tslib_1.__assign({}, props, patchedEventProps, { createAnalyticsEvent: createAnalyticsEvent, | ||
// @ts-ignore | ||
ref: ref }))); | ||
return (React.createElement(WrappedComponent, tslib_1.__assign({}, props, patchedEventProps, { createAnalyticsEvent: createAnalyticsEvent, ref: ref }))); | ||
})); }); | ||
@@ -12,0 +10,0 @@ // @ts-ignore |
{ | ||
"name": "@atlaskit/analytics-next", | ||
"version": "6.0.1", | ||
"version": "6.0.2", | ||
"description": "The 🆕 Atlaskit component analytics framework", | ||
@@ -24,3 +24,3 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@atlaskit/type-helpers": "^4.1.6", | ||
"@atlaskit/type-helpers": "^4.1.7", | ||
"prop-types": "^15.5.10", | ||
@@ -33,8 +33,8 @@ "tslib": "^1.9.3" | ||
"devDependencies": { | ||
"@atlaskit/build-utils": "^2.0.0", | ||
"@atlaskit/button": "^13.1.3", | ||
"@atlaskit/docs": "^8.1.1", | ||
"@atlaskit/field-text": "^9.0.8", | ||
"@atlaskit/build-utils": "^2.2.4", | ||
"@atlaskit/button": "^13.1.5", | ||
"@atlaskit/docs": "^8.1.4", | ||
"@atlaskit/field-text": "^9.0.10", | ||
"@atlaskit/ssr": "^0.1.0", | ||
"@atlaskit/type-helpers": "^4.1.6", | ||
"@atlaskit/type-helpers": "^4.1.7", | ||
"enzyme": "^3.7.0", | ||
@@ -41,0 +41,0 @@ "react-dom": "^16.8.0", |
{ | ||
"name": "@atlaskit/analytics-next", | ||
"version": "6.0.1", | ||
"version": "6.0.2", | ||
"sideEffects": false | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
188570
3052