@atlaskit/teams-public 0.69.0 → 0.69.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,12 @@
1
1
  # @atlaskit/teams-public
2
2
 
3
+ ## 0.69.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`057762a8dac32`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/057762a8dac32) -
8
+ Remove prevent_parallel_team_web_links_fetch feature gate
9
+
3
10
  ## 0.69.0
4
11
 
5
12
  ### Minor Changes
@@ -9,12 +9,13 @@ exports.ContainerIcon = void 0;
9
9
  require("./index.compiled.css");
10
10
  var _runtime = require("@compiled/react/runtime");
11
11
  var _react = _interopRequireDefault(require("react"));
12
+ var _atlassianContext = require("@atlaskit/atlassian-context");
12
13
  var _avatar = _interopRequireDefault(require("@atlaskit/avatar"));
13
14
  var _new = require("@atlaskit/button/new");
14
15
  var _css = require("@atlaskit/css");
15
- var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
16
16
  var _globe = _interopRequireDefault(require("@atlaskit/icon/core/globe"));
17
17
  var _link = _interopRequireDefault(require("@atlaskit/icon/core/link"));
18
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
19
  var _compiled = require("@atlaskit/primitives/compiled");
19
20
  var _loomAvatar = require("../loom-avatar");
20
21
  var styles = {
@@ -42,7 +43,7 @@ var ContainerIcon = exports.ContainerIcon = function ContainerIcon(_ref2) {
42
43
  _ref2$iconHasLoaded = _ref2.iconHasLoaded,
43
44
  iconHasLoaded = _ref2$iconHasLoaded === void 0 ? true : _ref2$iconHasLoaded;
44
45
  var isMedium = size === 'medium';
45
- var isNewTeamProfilePageEnabled = _featureGateJsClient.default.getExperimentValue('new_team_profile', 'isEnabled', false);
46
+ var isNewTeamProfilePageEnabled = !(0, _atlassianContext.isFedRamp)() || (0, _platformFeatureFlags.fg)('new_team_profile_fedramp');
46
47
  if (containerType === 'LoomSpace') {
47
48
  return /*#__PURE__*/_react.default.createElement(_loomAvatar.LoomSpaceAvatar, {
48
49
  spaceName: title,
@@ -38,7 +38,7 @@ var actions = exports.actions = {
38
38
  case 0:
39
39
  getState = _ref.getState, setState = _ref.setState, dispatch = _ref.dispatch;
40
40
  _getState = getState(), links = _getState.links, currentTeamId = _getState.teamId, hasLoaded = _getState.hasLoaded, isLoading = _getState.isLoading;
41
- if (!((isLoading || teamId === currentTeamId && hasLoaded && links.length > 0) && (0, _platformFeatureFlags.fg)('prevent_parallel_team_web_links_fetch'))) {
41
+ if (!(isLoading || teamId === currentTeamId && hasLoaded && links.length > 0)) {
42
42
  _context.next = 4;
43
43
  break;
44
44
  }
@@ -11,7 +11,6 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
11
11
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
12
12
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
13
13
  var _reactSweetState = require("react-sweet-state");
14
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
14
  var _teamsClient = require("@atlaskit/teams-client");
16
15
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
17
16
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -45,8 +44,7 @@ var actions = exports.actions = {
45
44
  _getState = getState(), teams = _getState.teams;
46
45
  currentTeamState = teams[teamId];
47
46
  currentLinks = (currentTeamState === null || currentTeamState === void 0 ? void 0 : currentTeamState.links) || []; // Only skip if already loaded and not currently loading (prevents duplicate fetches)
48
- // Feature flag check: if enabled, also skip if hasLoaded and has links
49
- if (!(currentTeamState !== null && currentTeamState !== void 0 && currentTeamState.hasLoaded && !currentTeamState.isLoading && (!(0, _platformFeatureFlags.fg)('prevent_parallel_team_web_links_fetch') || currentLinks.length > 0))) {
47
+ if (!(currentTeamState !== null && currentTeamState !== void 0 && currentTeamState.hasLoaded && !currentTeamState.isLoading && currentLinks.length > 0)) {
50
48
  _context.next = 6;
51
49
  break;
52
50
  }
@@ -15,10 +15,10 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
15
15
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
16
16
  var _react = _interopRequireWildcard(require("react"));
17
17
  var _reactIntlNext = require("react-intl-next");
18
+ var _atlassianContext = require("@atlaskit/atlassian-context");
18
19
  var _new = require("@atlaskit/button/new");
19
20
  var _css = require("@atlaskit/css");
20
21
  var _dropdownMenu = _interopRequireWildcard(require("@atlaskit/dropdown-menu"));
21
- var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
22
22
  var _cross = _interopRequireDefault(require("@atlaskit/icon/core/cross"));
23
23
  var _linkExternal = _interopRequireDefault(require("@atlaskit/icon/core/link-external"));
24
24
  var _showMoreHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/show-more-horizontal"));
@@ -104,7 +104,7 @@ var TeamLinkCard = exports.TeamLinkCard = function TeamLinkCard(_ref) {
104
104
  formatMessage = _useIntl.formatMessage;
105
105
  var _useAnalyticsEvents = (0, _teamsAppInternalAnalytics.useAnalyticsEvents)(),
106
106
  fireEvent = _useAnalyticsEvents.fireEvent;
107
- var isNewTeamProfilePageEnabled = _featureGateJsClient.default.getExperimentValue('new_team_profile', 'isEnabled', false);
107
+ var isNewTeamProfilePageEnabled = !(0, _atlassianContext.isFedRamp)() || (0, _platformFeatureFlags.fg)('new_team_profile_fedramp');
108
108
  var isOpenWebLinkInNewTabEnabled = containerType === 'WebLink' && isNewTeamProfilePageEnabled;
109
109
  var handleMouseEnter = function handleMouseEnter() {
110
110
  if (isReadOnly) {
@@ -2,12 +2,13 @@
2
2
  import "./index.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
5
+ import { isFedRamp } from '@atlaskit/atlassian-context';
5
6
  import Avatar from '@atlaskit/avatar';
6
7
  import { IconButton } from '@atlaskit/button/new';
7
8
  import { cx } from '@atlaskit/css';
8
- import FeatureGates from '@atlaskit/feature-gate-js-client';
9
9
  import GlobeIcon from '@atlaskit/icon/core/globe';
10
10
  import LinkIcon from '@atlaskit/icon/core/link';
11
+ import { fg } from '@atlaskit/platform-feature-flags';
11
12
  import { Box } from '@atlaskit/primitives/compiled';
12
13
  import { LoomSpaceAvatar } from '../loom-avatar';
13
14
  const styles = {
@@ -34,7 +35,7 @@ export const ContainerIcon = ({
34
35
  iconHasLoaded = true
35
36
  }) => {
36
37
  const isMedium = size === 'medium';
37
- const isNewTeamProfilePageEnabled = FeatureGates.getExperimentValue('new_team_profile', 'isEnabled', false);
38
+ const isNewTeamProfilePageEnabled = !isFedRamp() || fg('new_team_profile_fedramp');
38
39
  if (containerType === 'LoomSpace') {
39
40
  return /*#__PURE__*/React.createElement(LoomSpaceAvatar, {
40
41
  spaceName: title,
@@ -27,7 +27,7 @@ export const actions = {
27
27
  hasLoaded,
28
28
  isLoading
29
29
  } = getState();
30
- if ((isLoading || teamId === currentTeamId && hasLoaded && links.length > 0) && fg('prevent_parallel_team_web_links_fetch')) {
30
+ if (isLoading || teamId === currentTeamId && hasLoaded && links.length > 0) {
31
31
  return;
32
32
  }
33
33
  const initialLinks = teamId === currentTeamId ? links : [];
@@ -1,5 +1,4 @@
1
1
  import { createHook, createStore } from 'react-sweet-state';
2
- import { fg } from '@atlaskit/platform-feature-flags';
3
2
  import { teamsClient } from '@atlaskit/teams-client';
4
3
  const getInitialTeamState = () => ({
5
4
  isLoading: false,
@@ -30,8 +29,7 @@ export const actions = {
30
29
  const currentLinks = (currentTeamState === null || currentTeamState === void 0 ? void 0 : currentTeamState.links) || [];
31
30
 
32
31
  // Only skip if already loaded and not currently loading (prevents duplicate fetches)
33
- // Feature flag check: if enabled, also skip if hasLoaded and has links
34
- if (currentTeamState !== null && currentTeamState !== void 0 && currentTeamState.hasLoaded && !currentTeamState.isLoading && (!fg('prevent_parallel_team_web_links_fetch') || currentLinks.length > 0)) {
32
+ if (currentTeamState !== null && currentTeamState !== void 0 && currentTeamState.hasLoaded && !currentTeamState.isLoading && currentLinks.length > 0) {
35
33
  return;
36
34
  }
37
35
  // Skip if currently loading to prevent concurrent fetches
@@ -4,10 +4,10 @@ import "./index.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import React, { useState } from 'react';
6
6
  import { defineMessages, useIntl } from 'react-intl-next';
7
+ import { isFedRamp } from '@atlaskit/atlassian-context';
7
8
  import { IconButton } from '@atlaskit/button/new';
8
9
  import { cx } from '@atlaskit/css';
9
10
  import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
10
- import FeatureGates from '@atlaskit/feature-gate-js-client';
11
11
  import CrossIcon from '@atlaskit/icon/core/cross';
12
12
  import LinkExternalIcon from '@atlaskit/icon/core/link-external';
13
13
  import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
@@ -78,7 +78,7 @@ export const TeamLinkCard = ({
78
78
  const {
79
79
  fireEvent
80
80
  } = useAnalyticsEvents();
81
- const isNewTeamProfilePageEnabled = FeatureGates.getExperimentValue('new_team_profile', 'isEnabled', false);
81
+ const isNewTeamProfilePageEnabled = !isFedRamp() || fg('new_team_profile_fedramp');
82
82
  const isOpenWebLinkInNewTabEnabled = containerType === 'WebLink' && isNewTeamProfilePageEnabled;
83
83
  const handleMouseEnter = () => {
84
84
  if (isReadOnly) {
@@ -2,12 +2,13 @@
2
2
  import "./index.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
5
+ import { isFedRamp } from '@atlaskit/atlassian-context';
5
6
  import Avatar from '@atlaskit/avatar';
6
7
  import { IconButton } from '@atlaskit/button/new';
7
8
  import { cx } from '@atlaskit/css';
8
- import FeatureGates from '@atlaskit/feature-gate-js-client';
9
9
  import GlobeIcon from '@atlaskit/icon/core/globe';
10
10
  import LinkIcon from '@atlaskit/icon/core/link';
11
+ import { fg } from '@atlaskit/platform-feature-flags';
11
12
  import { Box } from '@atlaskit/primitives/compiled';
12
13
  import { LoomSpaceAvatar } from '../loom-avatar';
13
14
  var styles = {
@@ -35,7 +36,7 @@ export var ContainerIcon = function ContainerIcon(_ref2) {
35
36
  _ref2$iconHasLoaded = _ref2.iconHasLoaded,
36
37
  iconHasLoaded = _ref2$iconHasLoaded === void 0 ? true : _ref2$iconHasLoaded;
37
38
  var isMedium = size === 'medium';
38
- var isNewTeamProfilePageEnabled = FeatureGates.getExperimentValue('new_team_profile', 'isEnabled', false);
39
+ var isNewTeamProfilePageEnabled = !isFedRamp() || fg('new_team_profile_fedramp');
39
40
  if (containerType === 'LoomSpace') {
40
41
  return /*#__PURE__*/React.createElement(LoomSpaceAvatar, {
41
42
  spaceName: title,
@@ -31,7 +31,7 @@ export var actions = {
31
31
  case 0:
32
32
  getState = _ref.getState, setState = _ref.setState, dispatch = _ref.dispatch;
33
33
  _getState = getState(), links = _getState.links, currentTeamId = _getState.teamId, hasLoaded = _getState.hasLoaded, isLoading = _getState.isLoading;
34
- if (!((isLoading || teamId === currentTeamId && hasLoaded && links.length > 0) && fg('prevent_parallel_team_web_links_fetch'))) {
34
+ if (!(isLoading || teamId === currentTeamId && hasLoaded && links.length > 0)) {
35
35
  _context.next = 4;
36
36
  break;
37
37
  }
@@ -6,7 +6,6 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
6
6
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7
7
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
8
8
  import { createHook, createStore } from 'react-sweet-state';
9
- import { fg } from '@atlaskit/platform-feature-flags';
10
9
  import { teamsClient } from '@atlaskit/teams-client';
11
10
  var getInitialTeamState = function getInitialTeamState() {
12
11
  return {
@@ -38,8 +37,7 @@ export var actions = {
38
37
  _getState = getState(), teams = _getState.teams;
39
38
  currentTeamState = teams[teamId];
40
39
  currentLinks = (currentTeamState === null || currentTeamState === void 0 ? void 0 : currentTeamState.links) || []; // Only skip if already loaded and not currently loading (prevents duplicate fetches)
41
- // Feature flag check: if enabled, also skip if hasLoaded and has links
42
- if (!(currentTeamState !== null && currentTeamState !== void 0 && currentTeamState.hasLoaded && !currentTeamState.isLoading && (!fg('prevent_parallel_team_web_links_fetch') || currentLinks.length > 0))) {
40
+ if (!(currentTeamState !== null && currentTeamState !== void 0 && currentTeamState.hasLoaded && !currentTeamState.isLoading && currentLinks.length > 0)) {
43
41
  _context.next = 6;
44
42
  break;
45
43
  }
@@ -10,10 +10,10 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
10
10
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
11
11
  import React, { useState } from 'react';
12
12
  import { defineMessages, useIntl } from 'react-intl-next';
13
+ import { isFedRamp } from '@atlaskit/atlassian-context';
13
14
  import { IconButton } from '@atlaskit/button/new';
14
15
  import { cx } from '@atlaskit/css';
15
16
  import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
16
- import FeatureGates from '@atlaskit/feature-gate-js-client';
17
17
  import CrossIcon from '@atlaskit/icon/core/cross';
18
18
  import LinkExternalIcon from '@atlaskit/icon/core/link-external';
19
19
  import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
@@ -95,7 +95,7 @@ export var TeamLinkCard = function TeamLinkCard(_ref) {
95
95
  formatMessage = _useIntl.formatMessage;
96
96
  var _useAnalyticsEvents = useAnalyticsEvents(),
97
97
  fireEvent = _useAnalyticsEvents.fireEvent;
98
- var isNewTeamProfilePageEnabled = FeatureGates.getExperimentValue('new_team_profile', 'isEnabled', false);
98
+ var isNewTeamProfilePageEnabled = !isFedRamp() || fg('new_team_profile_fedramp');
99
99
  var isOpenWebLinkInNewTabEnabled = containerType === 'WebLink' && isNewTeamProfilePageEnabled;
100
100
  var handleMouseEnter = function handleMouseEnter() {
101
101
  if (isReadOnly) {
package/package.json CHANGED
@@ -26,6 +26,7 @@
26
26
  "dependencies": {
27
27
  "@atlaskit/afm-i18n-platform-people-and-teams-teams-public": "2.7.0",
28
28
  "@atlaskit/analytics-next": "^11.1.0",
29
+ "@atlaskit/atlassian-context": "^0.6.0",
29
30
  "@atlaskit/avatar": "^25.7.0",
30
31
  "@atlaskit/button": "^23.9.0",
31
32
  "@atlaskit/css": "^0.19.0",
@@ -33,7 +34,7 @@
33
34
  "@atlaskit/feature-gate-js-client": "^5.5.0",
34
35
  "@atlaskit/flag": "^17.8.0",
35
36
  "@atlaskit/frontend-utilities": "^3.2.0",
36
- "@atlaskit/heading": "^5.2.0",
37
+ "@atlaskit/heading": "^5.3.0",
37
38
  "@atlaskit/icon": "^30.0.0",
38
39
  "@atlaskit/image": "^3.0.0",
39
40
  "@atlaskit/link": "^3.3.0",
@@ -109,7 +110,7 @@
109
110
  }
110
111
  },
111
112
  "name": "@atlaskit/teams-public",
112
- "version": "0.69.0",
113
+ "version": "0.69.1",
113
114
  "description": "Public components related to teams",
114
115
  "author": "Atlassian Pty Ltd",
115
116
  "license": "Apache-2.0",
@@ -130,9 +131,6 @@
130
131
  "migrate-product-permissions": {
131
132
  "type": "boolean"
132
133
  },
133
- "prevent_parallel_team_web_links_fetch": {
134
- "type": "boolean"
135
- },
136
134
  "enable_multi_team_containers_state": {
137
135
  "type": "boolean"
138
136
  },
@@ -144,6 +142,9 @@
144
142
  },
145
143
  "ptc-missed-analytics-migration-events": {
146
144
  "type": "boolean"
145
+ },
146
+ "new_team_profile_fedramp": {
147
+ "type": "boolean"
147
148
  }
148
149
  }
149
150
  }