@atlaskit/smart-card 40.5.4 → 40.5.5

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.
Files changed (23) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/utils/analytics/analytics.js +1 -1
  3. package/dist/cjs/view/FlexibleCard/components/elements/common/base-date-time-element/index.js +1 -2
  4. package/dist/cjs/view/FlexibleCard/components/elements/common/base-text-element/index.js +1 -2
  5. package/dist/cjs/view/FlexibleCard/components/elements/owned-by-element/index.js +1 -2
  6. package/dist/cjs/view/FlexibleCard/external.js +5 -8
  7. package/dist/cjs/view/FlexibleCard/utils.js +3 -6
  8. package/dist/cjs/view/LinkUrl/index.js +1 -1
  9. package/dist/es2019/utils/analytics/analytics.js +1 -1
  10. package/dist/es2019/view/FlexibleCard/components/elements/common/base-date-time-element/index.js +1 -2
  11. package/dist/es2019/view/FlexibleCard/components/elements/common/base-text-element/index.js +1 -2
  12. package/dist/es2019/view/FlexibleCard/components/elements/owned-by-element/index.js +1 -2
  13. package/dist/es2019/view/FlexibleCard/external.js +5 -8
  14. package/dist/es2019/view/FlexibleCard/utils.js +3 -5
  15. package/dist/es2019/view/LinkUrl/index.js +1 -1
  16. package/dist/esm/utils/analytics/analytics.js +1 -1
  17. package/dist/esm/view/FlexibleCard/components/elements/common/base-date-time-element/index.js +1 -2
  18. package/dist/esm/view/FlexibleCard/components/elements/common/base-text-element/index.js +1 -2
  19. package/dist/esm/view/FlexibleCard/components/elements/owned-by-element/index.js +1 -2
  20. package/dist/esm/view/FlexibleCard/external.js +5 -8
  21. package/dist/esm/view/FlexibleCard/utils.js +3 -6
  22. package/dist/esm/view/LinkUrl/index.js +1 -1
  23. package/package.json +2 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 40.5.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#190445](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/190445)
8
+ [`c720eb26b262f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c720eb26b262f) -
9
+ Clean up FG bandicoots-smart-card-teamwork-context
10
+
3
11
  ## 40.5.4
4
12
 
5
13
  ### Patch Changes
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
11
11
  var context = exports.context = {
12
12
  componentName: 'smart-cards',
13
13
  packageName: "@atlaskit/smart-card",
14
- packageVersion: "40.5.3"
14
+ packageVersion: "40.5.4"
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -13,7 +13,6 @@ var _runtime = require("@compiled/react/runtime");
13
13
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
14
14
  var _intlUtils = require("@formatjs/intl-utils");
15
15
  var _reactIntlNext = require("react-intl-next");
16
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
16
  var _messages = require("../../../../../../messages");
18
17
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
19
18
  var styles = null;
@@ -104,7 +103,7 @@ var BaseDateTimeElement = function BaseDateTimeElement(_ref) {
104
103
  "data-testid": testId
105
104
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
106
105
  ,
107
- className: (0, _runtime.ax)(["_11c81o8v _1reo15vq _18m915vq _syaz1gjq _1e0ccj1k _1ul9idpf _1bto1l2s _1nmz1hna _1yyjkb7n _sudp1e54 _102k7vkz", fontSize !== undefined && (0, _platformFeatureFlags.fg)('bandicoots-smart-card-teamwork-context') && fontOverrideStyleMap[fontSize], className])
106
+ className: (0, _runtime.ax)(["_11c81o8v _1reo15vq _18m915vq _syaz1gjq _1e0ccj1k _1ul9idpf _1bto1l2s _1nmz1hna _1yyjkb7n _sudp1e54 _102k7vkz", fontSize !== undefined && fontOverrideStyleMap[fontSize], className])
108
107
  }, content);
109
108
  };
110
109
  var _default = exports.default = BaseDateTimeElement;
@@ -9,7 +9,6 @@ exports.toTextProps = exports.toFormattedTextProps = exports.default = exports.B
9
9
  require("./index.compiled.css");
10
10
  var React = _interopRequireWildcard(require("react"));
11
11
  var _runtime = require("@compiled/react/runtime");
12
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
12
  var _utils = require("../../../utils");
14
13
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
15
14
  var baseStyle = null;
@@ -50,7 +49,7 @@ var BaseTextElement = exports.BaseTextElement = function BaseTextElement(_ref) {
50
49
  "data-testid": testId
51
50
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
52
51
  ,
53
- className: (0, _runtime.ax)(["_11c81o8v _1reo15vq _18m915vq _syaz1gjq _o5724jg8 _1e0ccj1k _1ul9idpf _1bto1l2s _1nmz1hna _sudp1e54", fontSize !== undefined && (0, _platformFeatureFlags.fg)('bandicoots-smart-card-teamwork-context') && fontOverrideStyleMap[fontSize], "_1yyjr31u _102klxil", className]),
52
+ className: (0, _runtime.ax)(["_11c81o8v _1reo15vq _18m915vq _syaz1gjq _o5724jg8 _1e0ccj1k _1ul9idpf _1bto1l2s _1nmz1hna _sudp1e54", fontSize !== undefined && fontOverrideStyleMap[fontSize], "_1yyjr31u _102klxil", className]),
54
53
  style: {
55
54
  color: color,
56
55
  "--_1erfju8": (0, _runtime.ix)(maxLines),
@@ -9,7 +9,6 @@ exports.default = void 0;
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
10
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
11
  var _react = _interopRequireWildcard(require("react"));
12
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
12
  var _constants = require("../../../../../constants");
14
13
  var _messages = require("../../../../../messages");
15
14
  var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
@@ -23,7 +22,7 @@ var OwnedByElement = function OwnedByElement(props) {
23
22
  _ref$textPrefix = _ref.textPrefix,
24
23
  textPrefix = _ref$textPrefix === void 0 ? 'owned_by' : _ref$textPrefix,
25
24
  restProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
26
- var data = context ? (0, _common.toFormattedTextProps)((0, _platformFeatureFlags.fg)('bandicoots-smart-card-teamwork-context') ? _messages.messages[textPrefix] : _messages.messages.owned_by, context === null || context === void 0 ? void 0 : context.ownedBy) : null;
25
+ var data = context ? (0, _common.toFormattedTextProps)(_messages.messages[textPrefix], context === null || context === void 0 ? void 0 : context.ownedBy) : null;
27
26
  (0, _react.useEffect)(function () {
28
27
  onRender === null || onRender === void 0 || onRender(!!data);
29
28
  }, [data, onRender]);
@@ -26,7 +26,6 @@ Object.defineProperty(exports, "CustomUnresolvedAction", {
26
26
  exports.toActionProps = exports.VoteCountElement = exports.ViewCountElement = exports.UnresolvedAction = exports.TitleElement = exports.TargetBranchElement = exports.SubscriberCountElement = exports.SubTasksProgressElement = exports.StoryPointsElement = exports.StateElement = exports.SourceBranchElement = exports.SnippetElement = exports.SentOnElement = exports.ReadTimeElement = exports.ReactCountElement = exports.ProviderElement = exports.ProgrammingLanguageElement = exports.PriorityElement = exports.PreviewElement = exports.PreviewAction = exports.OwnedByGroupElement = exports.OwnedByElement = exports.ModifiedOnElement = exports.ModifiedByElement = exports.LocationElement = exports.LinkIconElement = exports.LatestCommitElement = exports.FollowAction = exports.DueOnElement = exports.DownloadAction = void 0;
27
27
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
28
28
  var _react = _interopRequireDefault(require("react"));
29
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
30
29
  var _constants = require("../../constants");
31
30
  var _actions = require("./components/actions");
32
31
  var _elements = require("./components/elements");
@@ -97,14 +96,13 @@ var ModifiedOnElement = exports.ModifiedOnElement = function ModifiedOnElement(p
97
96
  });
98
97
  };
99
98
  var OwnedByElement = exports.OwnedByElement = function OwnedByElement(props) {
100
- return /*#__PURE__*/_react.default.createElement(_elements.OwnedBy, (0, _extends2.default)({
99
+ return /*#__PURE__*/_react.default.createElement(_elements.OwnedBy, {
101
100
  hideFormat: props === null || props === void 0 ? void 0 : props.hideFormat,
102
101
  color: props === null || props === void 0 ? void 0 : props.color,
103
- onRender: props === null || props === void 0 ? void 0 : props.onRender
104
- }, (0, _platformFeatureFlags.fg)('bandicoots-smart-card-teamwork-context') ? {
102
+ onRender: props === null || props === void 0 ? void 0 : props.onRender,
105
103
  textPrefix: props === null || props === void 0 ? void 0 : props.textPrefix,
106
104
  fontSize: props === null || props === void 0 ? void 0 : props.fontSize
107
- } : undefined));
105
+ });
108
106
  };
109
107
  var OwnedByGroupElement = exports.OwnedByGroupElement = function OwnedByGroupElement(props) {
110
108
  return /*#__PURE__*/_react.default.createElement(_elements.OwnedByGroup, {
@@ -165,12 +163,11 @@ var TitleElement = exports.TitleElement = function TitleElement(props) {
165
163
  return /*#__PURE__*/_react.default.createElement(_elements.Title, (0, _extends2.default)({
166
164
  hideTooltip: props === null || props === void 0 ? void 0 : props.hideTooltip,
167
165
  maxLines: props === null || props === void 0 ? void 0 : props.maxLines,
168
- target: props === null || props === void 0 ? void 0 : props.target
169
- }, (0, _platformFeatureFlags.fg)('bandicoots-smart-card-teamwork-context') ? {
166
+ target: props === null || props === void 0 ? void 0 : props.target,
170
167
  theme: props === null || props === void 0 ? void 0 : props.theme,
171
168
  size: props === null || props === void 0 ? void 0 : props.size,
172
169
  testId: props === null || props === void 0 ? void 0 : props.testId
173
- } : undefined, props !== null && props !== void 0 && props.text ? {
170
+ }, props !== null && props !== void 0 && props.text ? {
174
171
  text: props === null || props === void 0 ? void 0 : props.text
175
172
  } : undefined));
176
173
  };
@@ -18,8 +18,6 @@ var _extractProviderIcon = require("../../extractors/flexible/icon/extract-provi
18
18
  var _messages = require("../../messages");
19
19
  var _utils = require("../../utils");
20
20
  var _jsonld = require("../../utils/jsonld");
21
- 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; }
22
- 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; }
23
21
  var getContextByStatus = exports.getContextByStatus = function getContextByStatus(params) {
24
22
  var _response$meta;
25
23
  var _ref = params !== null && params !== void 0 ? params : {},
@@ -42,18 +40,17 @@ var getContextByStatus = exports.getContextByStatus = function getContextByStatu
42
40
  case _constants.SmartLinkStatus.Errored:
43
41
  case _constants.SmartLinkStatus.Fallback:
44
42
  default:
45
- return _objectSpread({
43
+ return {
46
44
  url: url,
47
45
  linkIcon: (0, _icon.extractErrorIcon)(response, status),
48
46
  linkTitle: (0, _extractLinkTitle.default)(status, url, response, onClick),
49
47
  preview: (0, _extractPreview.extractSmartLinkPreviewImage)(response),
50
48
  provider: (0, _extractProviderIcon.extractSmartLinkProviderIcon)(response),
51
- actions: (0, _defineProperty2.default)({}, _constants.InternalActionName.UnresolvedAction, getRetryOptions(url, status, response, params.onAuthorize))
52
- }, (0, _platformFeatureFlags.fg)('bandicoots-smart-card-teamwork-context') ? {
49
+ actions: (0, _defineProperty2.default)({}, _constants.InternalActionName.UnresolvedAction, getRetryOptions(url, status, response, params.onAuthorize)),
53
50
  meta: {
54
51
  accessType: response === null || response === void 0 || (_response$meta = response.meta) === null || _response$meta === void 0 || (_response$meta = _response$meta.requestAccess) === null || _response$meta === void 0 ? void 0 : _response$meta.accessType
55
52
  }
56
- } : undefined);
53
+ };
57
54
  }
58
55
  };
59
56
  var getForbiddenMessageKey = function getForbiddenMessageKey(meta) {
@@ -19,7 +19,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
19
19
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
20
20
  var PACKAGE_DATA = {
21
21
  packageName: "@atlaskit/smart-card",
22
- packageVersion: "40.5.3",
22
+ packageVersion: "40.5.4",
23
23
  componentName: 'linkUrl'
24
24
  };
25
25
  var Anchor = (0, _click.withLinkClickedEvent)('a');
@@ -2,7 +2,7 @@ export const ANALYTICS_CHANNEL = 'media';
2
2
  export const context = {
3
3
  componentName: 'smart-cards',
4
4
  packageName: "@atlaskit/smart-card",
5
- packageVersion: "40.5.3"
5
+ packageVersion: "40.5.4"
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -5,7 +5,6 @@ import * as React from 'react';
5
5
  import { ax, ix } from "@compiled/react/runtime";
6
6
  import { selectUnit } from '@formatjs/intl-utils';
7
7
  import { FormattedMessage, useIntl } from 'react-intl-next';
8
- import { fg } from '@atlaskit/platform-feature-flags';
9
8
  import { messages } from '../../../../../../messages';
10
9
  const styles = null;
11
10
  const typeToDescriptorMap = {
@@ -96,7 +95,7 @@ const BaseDateTimeElement = ({
96
95
  "data-testid": testId
97
96
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
98
97
  ,
99
- className: ax(["_11c81o8v _1reo15vq _18m915vq _syaz1gjq _1e0ccj1k _1ul9idpf _1bto1l2s _1nmz1hna _1yyjkb7n _sudp1e54 _102k7vkz", fontSize !== undefined && fg('bandicoots-smart-card-teamwork-context') && fontOverrideStyleMap[fontSize], className])
98
+ className: ax(["_11c81o8v _1reo15vq _18m915vq _syaz1gjq _1e0ccj1k _1ul9idpf _1bto1l2s _1nmz1hna _1yyjkb7n _sudp1e54 _102k7vkz", fontSize !== undefined && fontOverrideStyleMap[fontSize], className])
100
99
  }, content);
101
100
  };
102
101
  export default BaseDateTimeElement;
@@ -2,7 +2,6 @@
2
2
  import "./index.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { getFormattedMessage } from '../../../utils';
7
6
  const baseStyle = null;
8
7
  const fontOverrideStyleMap = {
@@ -40,7 +39,7 @@ export const BaseTextElement = ({
40
39
  "data-testid": testId
41
40
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
42
41
  ,
43
- className: ax(["_11c81o8v _1reo15vq _18m915vq _syaz1gjq _o5724jg8 _1e0ccj1k _1ul9idpf _1bto1l2s _1nmz1hna _sudp1e54", fontSize !== undefined && fg('bandicoots-smart-card-teamwork-context') && fontOverrideStyleMap[fontSize], "_1yyjr31u _102k1dud", className]),
42
+ className: ax(["_11c81o8v _1reo15vq _18m915vq _syaz1gjq _o5724jg8 _1e0ccj1k _1ul9idpf _1bto1l2s _1nmz1hna _sudp1e54", fontSize !== undefined && fontOverrideStyleMap[fontSize], "_1yyjr31u _102k1dud", className]),
44
43
  style: {
45
44
  color,
46
45
  "--_1erfju8": ix(maxLines)
@@ -1,6 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { useEffect } from 'react';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
3
  import { ElementName } from '../../../../../constants';
5
4
  import { messages } from '../../../../../messages';
6
5
  import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
@@ -12,7 +11,7 @@ const OwnedByElement = props => {
12
11
  textPrefix = 'owned_by',
13
12
  ...restProps
14
13
  } = props || {};
15
- const data = context ? toFormattedTextProps(fg('bandicoots-smart-card-teamwork-context') ? messages[textPrefix] : messages.owned_by, context === null || context === void 0 ? void 0 : context.ownedBy) : null;
14
+ const data = context ? toFormattedTextProps(messages[textPrefix], context === null || context === void 0 ? void 0 : context.ownedBy) : null;
16
15
  useEffect(() => {
17
16
  onRender === null || onRender === void 0 ? void 0 : onRender(!!data);
18
17
  }, [data, onRender]);
@@ -8,7 +8,6 @@ import _extends from "@babel/runtime/helpers/extends";
8
8
  * DO NOT add a new prop to these components until we are ready to support it externally.
9
9
  */
10
10
  import React from 'react';
11
- import { fg } from '@atlaskit/platform-feature-flags';
12
11
  import { SmartLinkSize } from '../../constants';
13
12
  import { CopyLinkAction as CopyLinkActionComponent, CustomAction as CustomActionComponent, DownloadAction as DownloadActionComponent, FollowAction as FollowActionComponent, PreviewAction as PreviewActionComponent, UnresolvedAction as UnresolvedActionComponent } from './components/actions';
14
13
  import { AssignedTo, AssignedToGroup, AttachmentCount, AuthorGroup, ChecklistProgress, CollaboratorGroup, CommentCount, CreatedBy, CreatedOn, DueOn, LatestCommit, LinkIcon, Location, ModifiedBy, ModifiedOn, OwnedBy, OwnedByGroup, Preview, Priority, ProgrammingLanguage, Provider, ReactCount, ReadTime, SentOn, Snippet, SourceBranch, State, StoryPoints, SubscriberCount, SubTasksProgress, TargetBranch, Title, ViewCount, VoteCount } from './components/elements';
@@ -47,14 +46,13 @@ export const ModifiedOnElement = props => {
47
46
  });
48
47
  };
49
48
  export const OwnedByElement = props => {
50
- return /*#__PURE__*/React.createElement(OwnedBy, _extends({
49
+ return /*#__PURE__*/React.createElement(OwnedBy, {
51
50
  hideFormat: props === null || props === void 0 ? void 0 : props.hideFormat,
52
51
  color: props === null || props === void 0 ? void 0 : props.color,
53
- onRender: props === null || props === void 0 ? void 0 : props.onRender
54
- }, fg('bandicoots-smart-card-teamwork-context') ? {
52
+ onRender: props === null || props === void 0 ? void 0 : props.onRender,
55
53
  textPrefix: props === null || props === void 0 ? void 0 : props.textPrefix,
56
54
  fontSize: props === null || props === void 0 ? void 0 : props.fontSize
57
- } : undefined));
55
+ });
58
56
  };
59
57
  export const OwnedByGroupElement = props => {
60
58
  return /*#__PURE__*/React.createElement(OwnedByGroup, {
@@ -90,12 +88,11 @@ export const TargetBranchElement = () => /*#__PURE__*/React.createElement(Target
90
88
  export const TitleElement = props => /*#__PURE__*/React.createElement(Title, _extends({
91
89
  hideTooltip: props === null || props === void 0 ? void 0 : props.hideTooltip,
92
90
  maxLines: props === null || props === void 0 ? void 0 : props.maxLines,
93
- target: props === null || props === void 0 ? void 0 : props.target
94
- }, fg('bandicoots-smart-card-teamwork-context') ? {
91
+ target: props === null || props === void 0 ? void 0 : props.target,
95
92
  theme: props === null || props === void 0 ? void 0 : props.theme,
96
93
  size: props === null || props === void 0 ? void 0 : props.size,
97
94
  testId: props === null || props === void 0 ? void 0 : props.testId
98
- } : undefined, props !== null && props !== void 0 && props.text ? {
95
+ }, props !== null && props !== void 0 && props.text ? {
99
96
  text: props === null || props === void 0 ? void 0 : props.text
100
97
  } : undefined));
101
98
  export const ViewCountElement = () => /*#__PURE__*/React.createElement(ViewCount, null);
@@ -42,11 +42,9 @@ export const getContextByStatus = params => {
42
42
  actions: {
43
43
  [InternalActionName.UnresolvedAction]: getRetryOptions(url, status, response, params.onAuthorize)
44
44
  },
45
- ...(fg('bandicoots-smart-card-teamwork-context') ? {
46
- meta: {
47
- accessType: response === null || response === void 0 ? void 0 : (_response$meta = response.meta) === null || _response$meta === void 0 ? void 0 : (_response$meta$reques = _response$meta.requestAccess) === null || _response$meta$reques === void 0 ? void 0 : _response$meta$reques.accessType
48
- }
49
- } : undefined)
45
+ meta: {
46
+ accessType: response === null || response === void 0 ? void 0 : (_response$meta = response.meta) === null || _response$meta === void 0 ? void 0 : (_response$meta$reques = _response$meta.requestAccess) === null || _response$meta$reques === void 0 ? void 0 : _response$meta$reques.accessType
47
+ }
50
48
  };
51
49
  }
52
50
  };
@@ -9,7 +9,7 @@ import LinkWarningModal from './LinkWarningModal';
9
9
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
10
10
  const PACKAGE_DATA = {
11
11
  packageName: "@atlaskit/smart-card",
12
- packageVersion: "40.5.3",
12
+ packageVersion: "40.5.4",
13
13
  componentName: 'linkUrl'
14
14
  };
15
15
  const Anchor = withLinkClickedEvent('a');
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
4
4
  export var context = {
5
5
  componentName: 'smart-cards',
6
6
  packageName: "@atlaskit/smart-card",
7
- packageVersion: "40.5.3"
7
+ packageVersion: "40.5.4"
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -5,7 +5,6 @@ import * as React from 'react';
5
5
  import { ax, ix } from "@compiled/react/runtime";
6
6
  import { selectUnit } from '@formatjs/intl-utils';
7
7
  import { FormattedMessage, useIntl } from 'react-intl-next';
8
- import { fg } from '@atlaskit/platform-feature-flags';
9
8
  import { messages } from '../../../../../../messages';
10
9
  var styles = null;
11
10
  var typeToDescriptorMap = {
@@ -95,7 +94,7 @@ var BaseDateTimeElement = function BaseDateTimeElement(_ref) {
95
94
  "data-testid": testId
96
95
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
97
96
  ,
98
- className: ax(["_11c81o8v _1reo15vq _18m915vq _syaz1gjq _1e0ccj1k _1ul9idpf _1bto1l2s _1nmz1hna _1yyjkb7n _sudp1e54 _102k7vkz", fontSize !== undefined && fg('bandicoots-smart-card-teamwork-context') && fontOverrideStyleMap[fontSize], className])
97
+ className: ax(["_11c81o8v _1reo15vq _18m915vq _syaz1gjq _1e0ccj1k _1ul9idpf _1bto1l2s _1nmz1hna _1yyjkb7n _sudp1e54 _102k7vkz", fontSize !== undefined && fontOverrideStyleMap[fontSize], className])
99
98
  }, content);
100
99
  };
101
100
  export default BaseDateTimeElement;
@@ -2,7 +2,6 @@
2
2
  import "./index.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { getFormattedMessage } from '../../../utils';
7
6
  var baseStyle = null;
8
7
  var fontOverrideStyleMap = {
@@ -42,7 +41,7 @@ export var BaseTextElement = function BaseTextElement(_ref) {
42
41
  "data-testid": testId
43
42
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
44
43
  ,
45
- className: ax(["_11c81o8v _1reo15vq _18m915vq _syaz1gjq _o5724jg8 _1e0ccj1k _1ul9idpf _1bto1l2s _1nmz1hna _sudp1e54", fontSize !== undefined && fg('bandicoots-smart-card-teamwork-context') && fontOverrideStyleMap[fontSize], "_1yyjr31u _102klxil", className]),
44
+ className: ax(["_11c81o8v _1reo15vq _18m915vq _syaz1gjq _o5724jg8 _1e0ccj1k _1ul9idpf _1bto1l2s _1nmz1hna _sudp1e54", fontSize !== undefined && fontOverrideStyleMap[fontSize], "_1yyjr31u _102klxil", className]),
46
45
  style: {
47
46
  color: color,
48
47
  "--_1erfju8": ix(maxLines),
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["onRender", "textPrefix"];
4
4
  import React, { useEffect } from 'react';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { ElementName } from '../../../../../constants';
7
6
  import { messages } from '../../../../../messages';
8
7
  import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
@@ -14,7 +13,7 @@ var OwnedByElement = function OwnedByElement(props) {
14
13
  _ref$textPrefix = _ref.textPrefix,
15
14
  textPrefix = _ref$textPrefix === void 0 ? 'owned_by' : _ref$textPrefix,
16
15
  restProps = _objectWithoutProperties(_ref, _excluded);
17
- var data = context ? toFormattedTextProps(fg('bandicoots-smart-card-teamwork-context') ? messages[textPrefix] : messages.owned_by, context === null || context === void 0 ? void 0 : context.ownedBy) : null;
16
+ var data = context ? toFormattedTextProps(messages[textPrefix], context === null || context === void 0 ? void 0 : context.ownedBy) : null;
18
17
  useEffect(function () {
19
18
  onRender === null || onRender === void 0 || onRender(!!data);
20
19
  }, [data, onRender]);
@@ -8,7 +8,6 @@ import _extends from "@babel/runtime/helpers/extends";
8
8
  * DO NOT add a new prop to these components until we are ready to support it externally.
9
9
  */
10
10
  import React from 'react';
11
- import { fg } from '@atlaskit/platform-feature-flags';
12
11
  import { SmartLinkSize } from '../../constants';
13
12
  import { CopyLinkAction as CopyLinkActionComponent, CustomAction as CustomActionComponent, DownloadAction as DownloadActionComponent, FollowAction as FollowActionComponent, PreviewAction as PreviewActionComponent, UnresolvedAction as UnresolvedActionComponent } from './components/actions';
14
13
  import { AssignedTo, AssignedToGroup, AttachmentCount, AuthorGroup, ChecklistProgress, CollaboratorGroup, CommentCount, CreatedBy, CreatedOn, DueOn, LatestCommit, LinkIcon, Location, ModifiedBy, ModifiedOn, OwnedBy, OwnedByGroup, Preview, Priority, ProgrammingLanguage, Provider, ReactCount, ReadTime, SentOn, Snippet, SourceBranch, State, StoryPoints, SubscriberCount, SubTasksProgress, TargetBranch, Title, ViewCount, VoteCount } from './components/elements';
@@ -71,14 +70,13 @@ export var ModifiedOnElement = function ModifiedOnElement(props) {
71
70
  });
72
71
  };
73
72
  export var OwnedByElement = function OwnedByElement(props) {
74
- return /*#__PURE__*/React.createElement(OwnedBy, _extends({
73
+ return /*#__PURE__*/React.createElement(OwnedBy, {
75
74
  hideFormat: props === null || props === void 0 ? void 0 : props.hideFormat,
76
75
  color: props === null || props === void 0 ? void 0 : props.color,
77
- onRender: props === null || props === void 0 ? void 0 : props.onRender
78
- }, fg('bandicoots-smart-card-teamwork-context') ? {
76
+ onRender: props === null || props === void 0 ? void 0 : props.onRender,
79
77
  textPrefix: props === null || props === void 0 ? void 0 : props.textPrefix,
80
78
  fontSize: props === null || props === void 0 ? void 0 : props.fontSize
81
- } : undefined));
79
+ });
82
80
  };
83
81
  export var OwnedByGroupElement = function OwnedByGroupElement(props) {
84
82
  return /*#__PURE__*/React.createElement(OwnedByGroup, {
@@ -139,12 +137,11 @@ export var TitleElement = function TitleElement(props) {
139
137
  return /*#__PURE__*/React.createElement(Title, _extends({
140
138
  hideTooltip: props === null || props === void 0 ? void 0 : props.hideTooltip,
141
139
  maxLines: props === null || props === void 0 ? void 0 : props.maxLines,
142
- target: props === null || props === void 0 ? void 0 : props.target
143
- }, fg('bandicoots-smart-card-teamwork-context') ? {
140
+ target: props === null || props === void 0 ? void 0 : props.target,
144
141
  theme: props === null || props === void 0 ? void 0 : props.theme,
145
142
  size: props === null || props === void 0 ? void 0 : props.size,
146
143
  testId: props === null || props === void 0 ? void 0 : props.testId
147
- } : undefined, props !== null && props !== void 0 && props.text ? {
144
+ }, props !== null && props !== void 0 && props.text ? {
148
145
  text: props === null || props === void 0 ? void 0 : props.text
149
146
  } : undefined));
150
147
  };
@@ -1,6 +1,4 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- 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; }
3
- 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; }
4
2
  import { extractSmartLinkProvider } from '@atlaskit/link-extractors';
5
3
  import { fg } from '@atlaskit/platform-feature-flags';
6
4
  import { InternalActionName, SmartLinkStatus } from '../../constants';
@@ -35,18 +33,17 @@ export var getContextByStatus = function getContextByStatus(params) {
35
33
  case SmartLinkStatus.Errored:
36
34
  case SmartLinkStatus.Fallback:
37
35
  default:
38
- return _objectSpread({
36
+ return {
39
37
  url: url,
40
38
  linkIcon: extractErrorIcon(response, status),
41
39
  linkTitle: extractLinkTitle(status, url, response, onClick),
42
40
  preview: extractSmartLinkPreviewImage(response),
43
41
  provider: extractSmartLinkProviderIcon(response),
44
- actions: _defineProperty({}, InternalActionName.UnresolvedAction, getRetryOptions(url, status, response, params.onAuthorize))
45
- }, fg('bandicoots-smart-card-teamwork-context') ? {
42
+ actions: _defineProperty({}, InternalActionName.UnresolvedAction, getRetryOptions(url, status, response, params.onAuthorize)),
46
43
  meta: {
47
44
  accessType: response === null || response === void 0 || (_response$meta = response.meta) === null || _response$meta === void 0 || (_response$meta = _response$meta.requestAccess) === null || _response$meta === void 0 ? void 0 : _response$meta.accessType
48
45
  }
49
- } : undefined);
46
+ };
50
47
  }
51
48
  };
52
49
  var getForbiddenMessageKey = function getForbiddenMessageKey(meta) {
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
12
12
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
13
13
  var PACKAGE_DATA = {
14
14
  packageName: "@atlaskit/smart-card",
15
- packageVersion: "40.5.3",
15
+ packageVersion: "40.5.4",
16
16
  componentName: 'linkUrl'
17
17
  };
18
18
  var Anchor = withLinkClickedEvent('a');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "40.5.4",
3
+ "version": "40.5.5",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -17,7 +17,7 @@
17
17
  ],
18
18
  "atlaskit:src": "src/index.ts",
19
19
  "atlassian": {
20
- "team": "Linking Platform",
20
+ "team": "Navigation Experiences - Linking Platform",
21
21
  "website": {
22
22
  "name": "Smart Card"
23
23
  }
@@ -175,9 +175,6 @@
175
175
  "platform-component-visual-refresh": {
176
176
  "type": "boolean"
177
177
  },
178
- "bandicoots-smart-card-teamwork-context": {
179
- "type": "boolean"
180
- },
181
178
  "platform_bandicoots-smartlink-unresolved-error-key": {
182
179
  "type": "boolean"
183
180
  },