@atlaskit/primitives
Advanced tools
Comparing version 7.0.1 to 7.0.2
# @atlaskit/primitives | ||
## 7.0.2 | ||
### Patch Changes | ||
- [#110867](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110867) | ||
[`dc7e72da70ef7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dc7e72da70ef7) - | ||
Migrating instances of `UNSAFE_ANCHOR` primitive imports to the new safe import `Anchor`, in | ||
preparation of Anchor open beta and removal of the unsafe export from `@atlaskit/primitives` | ||
## 7.0.1 | ||
@@ -4,0 +13,0 @@ |
@@ -49,3 +49,3 @@ "use strict"; | ||
var IS_NON_HTTP_BASED = /^(((mailto|tel|sms):)|(#))/; | ||
var Anchor = function Anchor(_ref, ref) { | ||
var AnchorNoRef = function AnchorNoRef(_ref, ref) { | ||
var href = _ref.href, | ||
@@ -80,3 +80,3 @@ children = _ref.children, | ||
packageName: "@atlaskit/primitives", | ||
packageVersion: "7.0.1", | ||
packageVersion: "7.0.2", | ||
analyticsData: analyticsContext, | ||
@@ -143,3 +143,3 @@ actionSubject: 'link' | ||
*/ | ||
var UNSAFE_ANCHOR = /*#__PURE__*/(0, _react.forwardRef)(Anchor); | ||
var _default = exports.default = UNSAFE_ANCHOR; | ||
var Anchor = /*#__PURE__*/(0, _react.forwardRef)(AnchorNoRef); | ||
var _default = exports.default = Anchor; |
@@ -81,3 +81,3 @@ "use strict"; | ||
packageName: "@atlaskit/primitives", | ||
packageVersion: "7.0.1", | ||
packageVersion: "7.0.2", | ||
analyticsData: analyticsContext, | ||
@@ -84,0 +84,0 @@ actionSubject: 'button' |
@@ -35,3 +35,3 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
const IS_NON_HTTP_BASED = /^(((mailto|tel|sms):)|(#))/; | ||
const Anchor = ({ | ||
const AnchorNoRef = ({ | ||
href, | ||
@@ -66,3 +66,3 @@ children, | ||
packageName: "@atlaskit/primitives", | ||
packageVersion: "7.0.1", | ||
packageVersion: "7.0.2", | ||
analyticsData: analyticsContext, | ||
@@ -129,3 +129,3 @@ actionSubject: 'link' | ||
*/ | ||
const UNSAFE_ANCHOR = /*#__PURE__*/forwardRef(Anchor); | ||
export default UNSAFE_ANCHOR; | ||
const Anchor = /*#__PURE__*/forwardRef(AnchorNoRef); | ||
export default Anchor; |
@@ -67,3 +67,3 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
packageName: "@atlaskit/primitives", | ||
packageVersion: "7.0.1", | ||
packageVersion: "7.0.2", | ||
analyticsData: analyticsContext, | ||
@@ -70,0 +70,0 @@ actionSubject: 'button' |
@@ -39,3 +39,3 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
var IS_NON_HTTP_BASED = /^(((mailto|tel|sms):)|(#))/; | ||
var Anchor = function Anchor(_ref, ref) { | ||
var AnchorNoRef = function AnchorNoRef(_ref, ref) { | ||
var href = _ref.href, | ||
@@ -70,3 +70,3 @@ children = _ref.children, | ||
packageName: "@atlaskit/primitives", | ||
packageVersion: "7.0.1", | ||
packageVersion: "7.0.2", | ||
analyticsData: analyticsContext, | ||
@@ -133,3 +133,3 @@ actionSubject: 'link' | ||
*/ | ||
var UNSAFE_ANCHOR = /*#__PURE__*/forwardRef(Anchor); | ||
export default UNSAFE_ANCHOR; | ||
var Anchor = /*#__PURE__*/forwardRef(AnchorNoRef); | ||
export default Anchor; |
@@ -71,3 +71,3 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
packageName: "@atlaskit/primitives", | ||
packageVersion: "7.0.1", | ||
packageVersion: "7.0.2", | ||
analyticsData: analyticsContext, | ||
@@ -74,0 +74,0 @@ actionSubject: 'button' |
@@ -29,3 +29,3 @@ import React, { type ReactNode, type Ref } from 'react'; | ||
}; | ||
declare const Anchor: <RouterLinkConfig extends Record<string, any> = never>({ href, children, backgroundColor, padding, paddingBlock, paddingBlockStart, paddingBlockEnd, paddingInline, paddingInlineStart, paddingInlineEnd, testId, xcss: xcssStyles, target, onClick: providedOnClick, interactionName, componentName, analyticsContext, ...htmlAttributes }: AnchorProps<RouterLinkConfig>, ref: Ref<HTMLAnchorElement>) => JSX.Element; | ||
declare const AnchorNoRef: <RouterLinkConfig extends Record<string, any> = never>({ href, children, backgroundColor, padding, paddingBlock, paddingBlockStart, paddingBlockEnd, paddingInline, paddingInlineStart, paddingInlineEnd, testId, xcss: xcssStyles, target, onClick: providedOnClick, interactionName, componentName, analyticsContext, ...htmlAttributes }: AnchorProps<RouterLinkConfig>, ref: Ref<HTMLAnchorElement>) => JSX.Element; | ||
/** | ||
@@ -44,5 +44,5 @@ * __Anchor__ | ||
*/ | ||
declare const UNSAFE_ANCHOR: <RouterLinkConfig extends Record<string, any> = never>(props: AnchorProps<RouterLinkConfig> & { | ||
declare const Anchor: <RouterLinkConfig extends Record<string, any> = never>(props: AnchorProps<RouterLinkConfig> & { | ||
ref?: Ref<HTMLAnchorElement>; | ||
}) => ReturnType<typeof Anchor>; | ||
export default UNSAFE_ANCHOR; | ||
}) => ReturnType<typeof AnchorNoRef>; | ||
export default Anchor; |
@@ -29,3 +29,3 @@ import React, { type ReactNode, type Ref } from 'react'; | ||
}; | ||
declare const Anchor: <RouterLinkConfig extends Record<string, any> = never>({ href, children, backgroundColor, padding, paddingBlock, paddingBlockStart, paddingBlockEnd, paddingInline, paddingInlineStart, paddingInlineEnd, testId, xcss: xcssStyles, target, onClick: providedOnClick, interactionName, componentName, analyticsContext, ...htmlAttributes }: AnchorProps<RouterLinkConfig>, ref: Ref<HTMLAnchorElement>) => JSX.Element; | ||
declare const AnchorNoRef: <RouterLinkConfig extends Record<string, any> = never>({ href, children, backgroundColor, padding, paddingBlock, paddingBlockStart, paddingBlockEnd, paddingInline, paddingInlineStart, paddingInlineEnd, testId, xcss: xcssStyles, target, onClick: providedOnClick, interactionName, componentName, analyticsContext, ...htmlAttributes }: AnchorProps<RouterLinkConfig>, ref: Ref<HTMLAnchorElement>) => JSX.Element; | ||
/** | ||
@@ -44,5 +44,5 @@ * __Anchor__ | ||
*/ | ||
declare const UNSAFE_ANCHOR: <RouterLinkConfig extends Record<string, any> = never>(props: AnchorProps<RouterLinkConfig> & { | ||
declare const Anchor: <RouterLinkConfig extends Record<string, any> = never>(props: AnchorProps<RouterLinkConfig> & { | ||
ref?: Ref<HTMLAnchorElement>; | ||
}) => ReturnType<typeof Anchor>; | ||
export default UNSAFE_ANCHOR; | ||
}) => ReturnType<typeof AnchorNoRef>; | ||
export default Anchor; |
{ | ||
"name": "@atlaskit/primitives", | ||
"version": "7.0.1", | ||
"version": "7.0.2", | ||
"description": "Primitives are token-backed low-level building blocks.", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
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
1851344