Socket
Socket
Sign inDemoInstall

@atlaskit/avatar

Package Overview
Dependencies
Maintainers
1
Versions
244
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/avatar - npm Package Compare versions

Comparing version 21.5.2 to 21.6.0

dist/cjs/context.js

7

dist/cjs/Avatar.js

@@ -17,2 +17,3 @@ "use strict";

var _constants = require("./constants");
var _context = require("./context");
var _Presence = require("./Presence");

@@ -27,3 +28,3 @@ var _Status = require("./Status");

var packageName = "@atlaskit/avatar";
var packageVersion = "21.5.2";
var packageVersion = "21.6.0";

@@ -68,3 +69,3 @@ // eslint-disable-next-line @repo/internal/react/consistent-types-definitions

_ref2$size = _ref2.size,
size = _ref2$size === void 0 ? 'medium' : _ref2$size,
sizeProp = _ref2$size === void 0 ? 'medium' : _ref2$size,
src = _ref2.src,

@@ -79,2 +80,4 @@ stackIndex = _ref2.stackIndex,

createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
var context = (0, _context.useAvatarContext)();
var size = (context === null || context === void 0 ? void 0 : context.size) || sizeProp;
var customPresenceNode = /*#__PURE__*/(0, _react.isValidElement)(presence) ? presence : null;

@@ -81,0 +84,0 @@ var customStatusNode = /*#__PURE__*/(0, _react.isValidElement)(status) ? status : null;

@@ -25,2 +25,8 @@ "use strict";

});
Object.defineProperty(exports, "AvatarContext", {
enumerable: true,
get: function get() {
return _context.AvatarContext;
}
});
Object.defineProperty(exports, "AvatarItem", {

@@ -62,2 +68,8 @@ enumerable: true,

});
Object.defineProperty(exports, "useAvatarContext", {
enumerable: true,
get: function get() {
return _context.useAvatarContext;
}
});
var _Avatar = _interopRequireDefault(require("./Avatar"));

@@ -68,2 +80,3 @@ var _AvatarItem = _interopRequireDefault(require("./AvatarItem"));

var _Skeleton = _interopRequireDefault(require("./Skeleton"));
var _context = require("./context");
var _constants = require("./constants");

@@ -10,2 +10,3 @@ /** @jsx jsx */

import { ACTIVE_SCALE_FACTOR, AVATAR_RADIUS, AVATAR_SIZES, BORDER_WIDTH } from './constants';
import { useAvatarContext } from './context';
import { PresenceWrapper } from './Presence';

@@ -15,3 +16,3 @@ import { StatusWrapper } from './Status';

const packageName = "@atlaskit/avatar";
const packageVersion = "21.5.2";
const packageVersion = "21.6.0";

@@ -141,3 +142,3 @@ // eslint-disable-next-line @repo/internal/react/consistent-types-definitions

presence,
size = 'medium',
size: sizeProp = 'medium',
src,

@@ -153,2 +154,4 @@ stackIndex,

} = useAnalyticsEvents();
const context = useAvatarContext();
const size = (context === null || context === void 0 ? void 0 : context.size) || sizeProp;
const customPresenceNode = /*#__PURE__*/isValidElement(presence) ? presence : null;

@@ -155,0 +158,0 @@ const customStatusNode = /*#__PURE__*/isValidElement(status) ? status : null;

@@ -7,2 +7,3 @@ // eslint-disable-next-line @repo/internal/fs/filename-pattern-match

export { default as Skeleton } from './Skeleton';
export { AvatarContext, useAvatarContext } from './context';
export { AVATAR_SIZES, BORDER_WIDTH, AVATAR_RADIUS, ACTIVE_SCALE_FACTOR } from './constants';

@@ -15,2 +15,3 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";

import { ACTIVE_SCALE_FACTOR, AVATAR_RADIUS, AVATAR_SIZES, BORDER_WIDTH } from './constants';
import { useAvatarContext } from './context';
import { PresenceWrapper } from './Presence';

@@ -20,3 +21,3 @@ import { StatusWrapper } from './Status';

var packageName = "@atlaskit/avatar";
var packageVersion = "21.5.2";
var packageVersion = "21.6.0";

@@ -61,3 +62,3 @@ // eslint-disable-next-line @repo/internal/react/consistent-types-definitions

_ref2$size = _ref2.size,
size = _ref2$size === void 0 ? 'medium' : _ref2$size,
sizeProp = _ref2$size === void 0 ? 'medium' : _ref2$size,
src = _ref2.src,

@@ -72,2 +73,4 @@ stackIndex = _ref2.stackIndex,

createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
var context = useAvatarContext();
var size = (context === null || context === void 0 ? void 0 : context.size) || sizeProp;
var customPresenceNode = /*#__PURE__*/isValidElement(presence) ? presence : null;

@@ -74,0 +77,0 @@ var customStatusNode = /*#__PURE__*/isValidElement(status) ? status : null;

@@ -7,2 +7,3 @@ // eslint-disable-next-line @repo/internal/fs/filename-pattern-match

export { default as Skeleton } from './Skeleton';
export { AvatarContext, useAvatarContext } from './context';
export { AVATAR_SIZES, BORDER_WIDTH, AVATAR_RADIUS, ACTIVE_SCALE_FACTOR } from './constants';
/** @jsx jsx */
import { MouseEventHandler, ReactNode, Ref } from 'react';
import { AppearanceType, AvatarClickEventHandler, Presence, SizeType, Status } from './types';
import { type MouseEventHandler, type ReactNode, type Ref } from 'react';
import { type AppearanceType, type AvatarClickEventHandler, type Presence, type SizeType, type Status } from './types';
export interface CustomAvatarProps {

@@ -5,0 +5,0 @@ /**

@@ -11,3 +11,4 @@ export { default } from './Avatar';

export type { SkeletonProps } from './Skeleton';
export { AvatarContext, useAvatarContext } from './context';
export { AVATAR_SIZES, BORDER_WIDTH, AVATAR_RADIUS, ACTIVE_SCALE_FACTOR, } from './constants';
export type { AvatarClickEventHandler, AppearanceType, SizeType, Presence as PresenceType, Status as StatusType, IndicatorSizeType, } from './types';
/** @jsx jsx */
import { MouseEventHandler, ReactNode, Ref } from 'react';
import { AppearanceType, AvatarClickEventHandler, Presence, SizeType, Status } from './types';
import { type MouseEventHandler, type ReactNode, type Ref } from 'react';
import { type AppearanceType, type AvatarClickEventHandler, type Presence, type SizeType, type Status } from './types';
export interface CustomAvatarProps {

@@ -5,0 +5,0 @@ /**

@@ -11,3 +11,4 @@ export { default } from './Avatar';

export type { SkeletonProps } from './Skeleton';
export { AvatarContext, useAvatarContext } from './context';
export { AVATAR_SIZES, BORDER_WIDTH, AVATAR_RADIUS, ACTIVE_SCALE_FACTOR, } from './constants';
export type { AvatarClickEventHandler, AppearanceType, SizeType, Presence as PresenceType, Status as StatusType, IndicatorSizeType, } from './types';
{
"name": "@atlaskit/avatar",
"version": "21.5.2",
"version": "21.6.0",
"description": "An avatar is a visual representation of a user or entity.",

@@ -46,6 +46,6 @@ "publishConfig": {

"dependencies": {
"@atlaskit/analytics-next": "^9.2.0",
"@atlaskit/analytics-next": "^9.3.0",
"@atlaskit/icon": "^22.1.0",
"@atlaskit/theme": "^12.6.0",
"@atlaskit/tokens": "^1.42.0",
"@atlaskit/theme": "^12.7.0",
"@atlaskit/tokens": "^1.44.0",
"@babel/runtime": "^7.0.0",

@@ -62,5 +62,5 @@ "@emotion/react": "^11.7.1",

"@af/visual-regression": "*",
"@atlaskit/ds-lib": "^2.2.0",
"@atlaskit/ds-lib": "^2.3.0",
"@atlaskit/ssr": "*",
"@atlaskit/tooltip": "^18.1.0",
"@atlaskit/tooltip": "^18.3.0",
"@atlaskit/visual-regression": "*",

@@ -67,0 +67,0 @@ "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",

Sorry, the diff of this file is too big to display

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