@atlaskit/teams-avatar 3.1.0 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/teams-avatar
2
2
 
3
+ ## 3.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c1363affce29a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c1363affce29a) -
8
+ Make the ADS fixes from the now-launched feature gate permanent.
9
+ - Updated dependencies
10
+
3
11
  ## 3.1.0
4
12
 
5
13
  ### Minor Changes
package/compass.yml ADDED
@@ -0,0 +1,38 @@
1
+ configVersion: 1
2
+ id: ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/b989d079-fe49-44fb-9fcf-41d49e27a465
3
+ name: '@atlaskit/teams-avatar'
4
+ ownerId: ari:cloud:identity::team/og-c0632dbd-17ef-49bc-b053-208b9fd565c5 # People and Teams Collective
5
+ labels:
6
+ - platform-code
7
+ - platform-afm
8
+ typeId: OTHER
9
+ fields:
10
+ tier: 4
11
+ lifecycle: Active
12
+ isMonorepoProject: true
13
+ links:
14
+ - name: Root Repository
15
+ type: REPOSITORY
16
+ url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master
17
+ - name: Slack Channel
18
+ type: CHAT_CHANNEL
19
+ url: https://atlassian.enterprise.slack.com/archives/C024C40LREH # #pt-frontend
20
+ - name: Teams Avatar
21
+ type: REPOSITORY
22
+ url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/people-and-teams/teams-avatar
23
+ customFields:
24
+ - name: Department
25
+ type: text
26
+ value: Eng - Atlas - Spoonsteen
27
+ - name: Technical Owner
28
+ type: user
29
+ value: ari:cloud:identity::user/60eee7cec94cc20068ac280c # Alex O'Shannessy
30
+ - name: Required Reviewers Opt In
31
+ type: boolean
32
+ value: true
33
+ - name: Reviewer Selection Mechanism
34
+ type: text
35
+ value: random(2)
36
+ - name: Required Reviewer Approvals
37
+ type: number
38
+ value: 1
@@ -12,11 +12,9 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
12
12
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
13
  var _react = _interopRequireDefault(require("react"));
14
14
  var _css = require("@atlaskit/css");
15
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
15
  var _compiled = require("@atlaskit/primitives/compiled");
17
16
  var _excluded = ["compact"];
18
17
  var styles = {
19
- wrapperOld: "_1e0c1txw",
20
18
  wrapper: "_1reo15vq _18m915vq _2rkol0p1 _1e0c1txw",
21
19
  wrapperSpacing: "_19pkv77o _2hwxv77o _otyrv77o _18u0v77o",
22
20
  compactWrapperSpacing: "_19pkze3t _2hwxze3t _otyrze3t _18u0ze3t"
@@ -25,7 +23,7 @@ function FallbackAvatar(_ref) {
25
23
  var compact = _ref.compact,
26
24
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
27
25
  return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
28
- xcss: (0, _css.cx)((0, _platformFeatureFlags.fg)('yurree_jjj_3_ads_fixes') ? styles.wrapper : styles.wrapperOld, compact ? styles.compactWrapperSpacing : styles.wrapperSpacing)
26
+ xcss: (0, _css.cx)(styles.wrapper, compact ? styles.compactWrapperSpacing : styles.wrapperSpacing)
29
27
  }, /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({
30
28
  width: "32",
31
29
  height: "32",
@@ -4,10 +4,8 @@ import "./index.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import React from 'react';
6
6
  import { cx } from '@atlaskit/css';
7
- import { fg } from '@atlaskit/platform-feature-flags';
8
7
  import { Box } from '@atlaskit/primitives/compiled';
9
8
  const styles = {
10
- wrapperOld: "_1e0c1txw",
11
9
  wrapper: "_1reo15vq _18m915vq _2rkol0p1 _1e0c1txw",
12
10
  wrapperSpacing: "_19pkv77o _2hwxv77o _otyrv77o _18u0v77o",
13
11
  compactWrapperSpacing: "_19pkze3t _2hwxze3t _otyrze3t _18u0ze3t"
@@ -17,7 +15,7 @@ export function FallbackAvatar({
17
15
  ...props
18
16
  }) {
19
17
  return /*#__PURE__*/React.createElement(Box, {
20
- xcss: cx(fg('yurree_jjj_3_ads_fixes') ? styles.wrapper : styles.wrapperOld, compact ? styles.compactWrapperSpacing : styles.wrapperSpacing)
18
+ xcss: cx(styles.wrapper, compact ? styles.compactWrapperSpacing : styles.wrapperSpacing)
21
19
  }, /*#__PURE__*/React.createElement("svg", _extends({
22
20
  width: "32",
23
21
  height: "32",
@@ -6,10 +6,8 @@ import "./index.compiled.css";
6
6
  import { ax, ix } from "@compiled/react/runtime";
7
7
  import React from 'react';
8
8
  import { cx } from '@atlaskit/css';
9
- import { fg } from '@atlaskit/platform-feature-flags';
10
9
  import { Box } from '@atlaskit/primitives/compiled';
11
10
  var styles = {
12
- wrapperOld: "_1e0c1txw",
13
11
  wrapper: "_1reo15vq _18m915vq _2rkol0p1 _1e0c1txw",
14
12
  wrapperSpacing: "_19pkv77o _2hwxv77o _otyrv77o _18u0v77o",
15
13
  compactWrapperSpacing: "_19pkze3t _2hwxze3t _otyrze3t _18u0ze3t"
@@ -18,7 +16,7 @@ export function FallbackAvatar(_ref) {
18
16
  var compact = _ref.compact,
19
17
  props = _objectWithoutProperties(_ref, _excluded);
20
18
  return /*#__PURE__*/React.createElement(Box, {
21
- xcss: cx(fg('yurree_jjj_3_ads_fixes') ? styles.wrapper : styles.wrapperOld, compact ? styles.compactWrapperSpacing : styles.wrapperSpacing)
19
+ xcss: cx(styles.wrapper, compact ? styles.compactWrapperSpacing : styles.wrapperSpacing)
22
20
  }, /*#__PURE__*/React.createElement("svg", _extends({
23
21
  width: "32",
24
22
  height: "32",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/teams-avatar",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "A team avatar is a visual representation of a team.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -37,9 +37,9 @@
37
37
  "@atlaskit/avatar": "^26.1.0",
38
38
  "@atlaskit/css": "^1.0.0",
39
39
  "@atlaskit/platform-feature-flags": "^2.0.0",
40
- "@atlaskit/primitives": "^20.1.0",
40
+ "@atlaskit/primitives": "^20.3.0",
41
41
  "@atlaskit/react-compiler-gating": "^0.2.0",
42
- "@atlaskit/tokens": "^15.1.0",
42
+ "@atlaskit/tokens": "^15.4.0",
43
43
  "@babel/runtime": "^7.0.0",
44
44
  "@compiled/react": "^0.20.0"
45
45
  },
@@ -50,16 +50,13 @@
50
50
  "@af/integration-testing": "workspace:^",
51
51
  "@af/visual-regression": "workspace:^",
52
52
  "@atlaskit/ssr": "workspace:^",
53
- "@atlassian/teams-app-internal-playground": "^2.7.0",
53
+ "@atlassian/teams-app-internal-playground": "^2.8.0",
54
54
  "@testing-library/react": "^16.3.0",
55
55
  "react": "^18.2.0",
56
56
  "react-dom": "^18.2.0",
57
57
  "wait-for-expect": "^1.2.0"
58
58
  },
59
59
  "platform-feature-flags": {
60
- "yurree_jjj_3_ads_fixes": {
61
- "type": "boolean"
62
- },
63
60
  "enable_teams_t26_design_drop_core_experiences": {
64
61
  "type": "boolean"
65
62
  }
@@ -0,0 +1,40 @@
1
+ import path from 'path';
2
+
3
+ import type { StructuredContentSource } from '@atlassian/structured-docs-types/types';
4
+
5
+ import packageJson from './package.json';
6
+
7
+ const packagePath = path.resolve(__dirname);
8
+
9
+ const documentation: StructuredContentSource = {
10
+ components: [
11
+ {
12
+ name: 'TeamsAvatar',
13
+ description: 'A visual representation of a team, typically used in profile views or lists.',
14
+ status: 'general-availability',
15
+ import: {
16
+ name: 'default',
17
+ package: '@atlaskit/teams-avatar',
18
+ type: 'default',
19
+ packagePath,
20
+ packageJson,
21
+ },
22
+ usageGuidelines: [
23
+ 'Use TeamsAvatar to identify a team visually.',
24
+ 'Supports different sizes and shapes (square by default for teams).',
25
+ 'Can display an image or fallback to a team icon.',
26
+ ],
27
+ examples: [
28
+ {
29
+ name: 'Basic',
30
+ description: 'Standard team avatar example.',
31
+ source: path.resolve(packagePath, './examples/basic.tsx'),
32
+ },
33
+ ],
34
+ keywords: ['avatar', 'team', 'profile', 'identity', 'visual'],
35
+ categories: ['media', 'data-display'],
36
+ },
37
+ ],
38
+ };
39
+
40
+ export default documentation;