@atlaskit/avatar
Advanced tools
Comparing version 21.15.0 to 21.15.1
@@ -12,4 +12,4 @@ "use strict"; | ||
var _react2 = require("@emotion/react"); | ||
var _reactUid = require("react-uid"); | ||
var _analyticsNext = require("@atlaskit/analytics-next"); | ||
var _reactUid = require("@atlaskit/ds-lib/react-uid"); | ||
var _focusRing = _interopRequireDefault(require("@atlaskit/focus-ring")); | ||
@@ -34,3 +34,3 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags"); | ||
var packageName = "@atlaskit/avatar"; | ||
var packageVersion = "21.15.0"; | ||
var packageVersion = "21.15.1"; | ||
var getTestId = function getTestId(testId, children) { | ||
@@ -98,3 +98,3 @@ return !children ? { | ||
var lastAnalytics = (0, _react.useRef)(analyticsContext); | ||
var uuid = (0, _reactUid.useUIDSeed)()('avatar'); | ||
var labelId = (0, _reactUid.useId)(); | ||
(0, _react.useEffect)(function () { | ||
@@ -160,3 +160,3 @@ lastAnalytics.current = analyticsContext; | ||
role: containerShouldBeImage ? 'img' : undefined, | ||
"aria-labelledby": containerShouldBeImage ? "".concat(uuid, "-label") : undefined, | ||
"aria-labelledby": containerShouldBeImage ? labelId : undefined, | ||
style: { | ||
@@ -187,3 +187,3 @@ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766 | ||
children: (0, _react2.jsx)(_AvatarImage.default | ||
// Only pass in the name if an image is provded and the | ||
// Only pass in the name if an image is provided and the | ||
// container is not being used as an `img` role | ||
@@ -217,3 +217,3 @@ , { | ||
"data-testid": testId && "".concat(testId, "--label"), | ||
id: "".concat(uuid, "-label"), | ||
id: labelId, | ||
hidden: true | ||
@@ -220,0 +220,0 @@ }, defaultLabel) : undefined); |
@@ -10,4 +10,4 @@ /** | ||
import { ClassNames, jsx } from '@emotion/react'; | ||
import { useUIDSeed } from 'react-uid'; | ||
import { useAnalyticsEvents } from '@atlaskit/analytics-next'; | ||
import { useId } from '@atlaskit/ds-lib/react-uid'; | ||
import FocusRing from '@atlaskit/focus-ring'; | ||
@@ -23,3 +23,3 @@ import { fg } from '@atlaskit/platform-feature-flags'; | ||
const packageName = "@atlaskit/avatar"; | ||
const packageVersion = "21.15.0"; | ||
const packageVersion = "21.15.1"; | ||
const getTestId = (testId, children) => !children ? { | ||
@@ -169,3 +169,3 @@ 'data-testid': `${testId}--inner` | ||
const lastAnalytics = useRef(analyticsContext); | ||
const uuid = useUIDSeed()('avatar'); | ||
const labelId = useId(); | ||
useEffect(() => { | ||
@@ -235,3 +235,3 @@ lastAnalytics.current = analyticsContext; | ||
role: containerShouldBeImage ? 'img' : undefined, | ||
"aria-labelledby": containerShouldBeImage ? `${uuid}-label` : undefined, | ||
"aria-labelledby": containerShouldBeImage ? labelId : undefined, | ||
style: { | ||
@@ -265,3 +265,3 @@ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766 | ||
children: jsx(AvatarImage | ||
// Only pass in the name if an image is provded and the | ||
// Only pass in the name if an image is provided and the | ||
// container is not being used as an `img` role | ||
@@ -295,3 +295,3 @@ , { | ||
"data-testid": testId && `${testId}--label`, | ||
id: `${uuid}-label`, | ||
id: labelId, | ||
hidden: true | ||
@@ -298,0 +298,0 @@ }, defaultLabel) : undefined); |
@@ -15,4 +15,4 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty"; | ||
import { ClassNames, jsx } from '@emotion/react'; | ||
import { useUIDSeed } from 'react-uid'; | ||
import { useAnalyticsEvents } from '@atlaskit/analytics-next'; | ||
import { useId } from '@atlaskit/ds-lib/react-uid'; | ||
import FocusRing from '@atlaskit/focus-ring'; | ||
@@ -28,3 +28,3 @@ import { fg } from '@atlaskit/platform-feature-flags'; | ||
var packageName = "@atlaskit/avatar"; | ||
var packageVersion = "21.15.0"; | ||
var packageVersion = "21.15.1"; | ||
var getTestId = function getTestId(testId, children) { | ||
@@ -92,3 +92,3 @@ return !children ? { | ||
var lastAnalytics = useRef(analyticsContext); | ||
var uuid = useUIDSeed()('avatar'); | ||
var labelId = useId(); | ||
useEffect(function () { | ||
@@ -154,3 +154,3 @@ lastAnalytics.current = analyticsContext; | ||
role: containerShouldBeImage ? 'img' : undefined, | ||
"aria-labelledby": containerShouldBeImage ? "".concat(uuid, "-label") : undefined, | ||
"aria-labelledby": containerShouldBeImage ? labelId : undefined, | ||
style: { | ||
@@ -181,3 +181,3 @@ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766 | ||
children: jsx(AvatarImage | ||
// Only pass in the name if an image is provded and the | ||
// Only pass in the name if an image is provided and the | ||
// container is not being used as an `img` role | ||
@@ -211,3 +211,3 @@ , { | ||
"data-testid": testId && "".concat(testId, "--label"), | ||
id: "".concat(uuid, "-label"), | ||
id: labelId, | ||
hidden: true | ||
@@ -214,0 +214,0 @@ }, defaultLabel) : undefined); |
{ | ||
"name": "@atlaskit/avatar", | ||
"version": "21.15.0", | ||
"version": "21.15.1", | ||
"description": "An avatar is a visual representation of a user or entity.", | ||
@@ -48,12 +48,12 @@ "publishConfig": { | ||
"@atlaskit/analytics-next": "^10.1.0", | ||
"@atlaskit/ds-lib": "^2.4.0", | ||
"@atlaskit/focus-ring": "^1.6.0", | ||
"@atlaskit/icon": "^22.12.0", | ||
"@atlaskit/icon": "^22.15.0", | ||
"@atlaskit/platform-feature-flags": "^0.3.0", | ||
"@atlaskit/primitives": "^12.0.0", | ||
"@atlaskit/theme": "^13.0.0", | ||
"@atlaskit/tokens": "^1.58.0", | ||
"@atlaskit/tokens": "^1.59.0", | ||
"@babel/runtime": "^7.0.0", | ||
"@emotion/react": "^11.7.1", | ||
"@emotion/serialize": "^1.1.0", | ||
"react-uid": "^2.2.0" | ||
"@emotion/serialize": "^1.1.0" | ||
}, | ||
@@ -66,3 +66,2 @@ "peerDependencies": { | ||
"@af/visual-regression": "*", | ||
"@atlaskit/ds-lib": "^2.4.0", | ||
"@atlaskit/ssr": "*", | ||
@@ -69,0 +68,0 @@ "@atlaskit/textfield": "^6.5.0", |
Sorry, the diff of this file is too big to display
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
264208
15
+ Added@atlaskit/ds-lib@^2.4.0
- Removedreact-uid@^2.2.0
Updated@atlaskit/icon@^22.15.0
Updated@atlaskit/tokens@^1.59.0