@atlaskit/smart-card 38.10.0 → 38.10.2

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 (28) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/cjs/utils/analytics/analytics.js +1 -1
  3. package/dist/cjs/utils/flexible.js +3 -6
  4. package/dist/cjs/view/CardWithUrl/component.js +2 -3
  5. package/dist/cjs/view/CardWithUrl/loader.js +1 -2
  6. package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +1 -1
  7. package/dist/cjs/view/FlexibleCard/components/container/index.js +4 -8
  8. package/dist/cjs/view/FlexibleCard/external.js +5 -5
  9. package/dist/cjs/view/LinkUrl/index.js +1 -1
  10. package/dist/es2019/utils/analytics/analytics.js +1 -1
  11. package/dist/es2019/utils/flexible.js +3 -6
  12. package/dist/es2019/view/CardWithUrl/component.js +2 -3
  13. package/dist/es2019/view/CardWithUrl/loader.js +1 -2
  14. package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +1 -1
  15. package/dist/es2019/view/FlexibleCard/components/container/index.js +4 -8
  16. package/dist/es2019/view/FlexibleCard/external.js +6 -5
  17. package/dist/es2019/view/LinkUrl/index.js +1 -1
  18. package/dist/esm/utils/analytics/analytics.js +1 -1
  19. package/dist/esm/utils/flexible.js +3 -6
  20. package/dist/esm/view/CardWithUrl/component.js +2 -3
  21. package/dist/esm/view/CardWithUrl/loader.js +1 -2
  22. package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +1 -1
  23. package/dist/esm/view/FlexibleCard/components/container/index.js +4 -8
  24. package/dist/esm/view/FlexibleCard/external.js +6 -5
  25. package/dist/esm/view/LinkUrl/index.js +1 -1
  26. package/dist/types/view/FlexibleCard/external.d.ts +20 -19
  27. package/dist/types-ts4.5/view/FlexibleCard/external.d.ts +20 -19
  28. package/package.json +8 -11
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 38.10.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#172989](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/172989)
8
+ [`41bb7602f58e3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/41bb7602f58e3) -
9
+ Refactor and clean up types for external elements
10
+ - Updated dependencies
11
+
12
+ ## 38.10.1
13
+
14
+ ### Patch Changes
15
+
16
+ - [#172494](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/172494)
17
+ [`03472aefbbb00`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/03472aefbbb00) -
18
+ Feature gate cleanup for platform-linking-flexible-card-openness, surfacing the feaure for
19
+ ui.removeBlockRestriction
20
+ - Updated dependencies
21
+
3
22
  ## 38.10.0
4
23
 
5
24
  ### Minor 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: "38.9.3"
14
+ packageVersion: "38.10.1"
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -7,17 +7,14 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.isStyleCacheProvider = exports.isFlexibleUiTitleBlock = exports.isFlexibleUiPreviewBlock = exports.isFlexibleUiFooterBlock = exports.isFlexibleUiElement = exports.isFlexibleUiCard = exports.isFlexibleUiBlock = void 0;
9
9
  var _react = _interopRequireDefault(require("react"));
10
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
10
  var _blocks = _interopRequireWildcard(require("../view/FlexibleCard/components/blocks"));
12
11
  var Blocks = _blocks;
13
12
  var Elements = _interopRequireWildcard(require("../view/FlexibleCard/components/elements"));
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 isFlexibleUiCard = exports.isFlexibleUiCard = function isFlexibleUiCard(children, ui) {
16
- if ((0, _platformFeatureFlags.fg)('platform-linking-flexible-card-openness')) {
17
- if (ui !== null && ui !== void 0 && ui.removeBlockRestriction) {
18
- var _React$Children$toArr;
19
- return children && ((_React$Children$toArr = _react.default.Children.toArray(children)) === null || _React$Children$toArr === void 0 ? void 0 : _React$Children$toArr.length) > 0 ? true : false;
20
- }
15
+ if (ui !== null && ui !== void 0 && ui.removeBlockRestriction) {
16
+ var _React$Children$toArr;
17
+ return children && ((_React$Children$toArr = _react.default.Children.toArray(children)) === null || _React$Children$toArr === void 0 ? void 0 : _React$Children$toArr.length) > 0 ? true : false;
21
18
  }
22
19
  if (children && _react.default.Children.toArray(children).some(function (child) {
23
20
  return _isFlexibleUiTitleBlock(child);
@@ -8,7 +8,6 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.CardWithUrlContent = void 0;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
10
  var _analyticsNext = require("@atlaskit/analytics-next");
11
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
11
  var _useAnalyticsEvents2 = require("../../common/analytics/generated/use-analytics-events");
13
12
  var _constants = require("../../constants");
14
13
  var _state = require("../../state");
@@ -73,7 +72,7 @@ function Component(_ref) {
73
72
  var resourceType = (0, _helpers.getResourceType)(state.details);
74
73
  var services = (0, _helpers.getServices)(state.details);
75
74
  var isFlexibleUi = (0, _react.useMemo)(function () {
76
- return (0, _flexible.isFlexibleUiCard)(children, (0, _platformFeatureFlags.fg)('platform-linking-flexible-card-openness') ? ui : undefined);
75
+ return (0, _flexible.isFlexibleUiCard)(children, ui);
77
76
  }, [children, ui]);
78
77
  var actionOptions = (0, _combineActionOptions.combineActionOptions)({
79
78
  actionOptions: actionOptionsProp,
@@ -300,7 +299,7 @@ function Component(_ref) {
300
299
  }
301
300
  }
302
301
  var CardWithUrlContent = exports.CardWithUrlContent = function CardWithUrlContent(props) {
303
- var display = (0, _flexible.isFlexibleUiCard)(props.children, (0, _platformFeatureFlags.fg)('platform-linking-flexible-card-openness') ? props === null || props === void 0 ? void 0 : props.ui : undefined) ? _constants.CardDisplay.Flexible : props.appearance;
302
+ var display = (0, _flexible.isFlexibleUiCard)(props.children, props === null || props === void 0 ? void 0 : props.ui) ? _constants.CardDisplay.Flexible : props.appearance;
304
303
  return /*#__PURE__*/_react.default.createElement(_modal.SmartLinkModalProvider, null, /*#__PURE__*/_react.default.createElement(_SmartLinkAnalyticsContext.SmartLinkAnalyticsContext, {
305
304
  url: props.url,
306
305
  id: props.id,
@@ -13,7 +13,6 @@ var _react = _interopRequireWildcard(require("react"));
13
13
  var _reactErrorBoundary = require("react-error-boundary");
14
14
  var _reactMagneticDi = require("react-magnetic-di");
15
15
  var _uuid = _interopRequireDefault(require("uuid"));
16
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
16
  var _useAnalyticsEvents2 = require("../../common/analytics/generated/use-analytics-events");
18
17
  var _analytics = require("../../state/analytics");
19
18
  var _utils = require("../../utils");
@@ -72,7 +71,7 @@ function CardWithURLRenderer(props) {
72
71
  resolvingPlaceholder = props.resolvingPlaceholder,
73
72
  truncateInline = props.truncateInline,
74
73
  CompetitorPrompt = props.CompetitorPrompt;
75
- var isFlexibleUi = (0, _flexible.isFlexibleUiCard)(children, (0, _platformFeatureFlags.fg)('platform-linking-flexible-card-openness') ? ui : undefined);
74
+ var isFlexibleUi = (0, _flexible.isFlexibleUiCard)(children, ui);
76
75
  var analyticsContext = (0, _SmartLinkAnalyticsContext.useSmartLinkAnalyticsContext)({
77
76
  display: isFlexibleUi ? 'flexible' : appearance,
78
77
  id: id,
@@ -203,7 +203,7 @@ var ActionButtonNew = function ActionButtonNew(_ref2) {
203
203
  };
204
204
  var ActionButtonHideLegacyButton = function ActionButtonHideLegacyButton(props) {
205
205
  var ui = (0, _flexibleUiContext.useFlexibleUiOptionContext)();
206
- if (ui !== null && ui !== void 0 && ui.hideLegacyButton || ui !== null && ui !== void 0 && ui.removeBlockRestriction && (0, _platformFeatureFlags.fg)('platform-linking-flexible-card-openness')) {
206
+ if (ui !== null && ui !== void 0 && ui.hideLegacyButton || ui !== null && ui !== void 0 && ui.removeBlockRestriction) {
207
207
  return /*#__PURE__*/_react.default.createElement(ActionButtonRefreshNewWithOverrideCss, props);
208
208
  }
209
209
  return /*#__PURE__*/_react.default.createElement(ActionButtonNew, props);
@@ -46,10 +46,8 @@ var getChildrenOptions = exports.getChildrenOptions = function getChildrenOption
46
46
  return options;
47
47
  };
48
48
  var filterChildren = function filterChildren(children, removeBlockRestriction) {
49
- if ((0, _platformFeatureFlags.fg)('platform-linking-flexible-card-openness')) {
50
- if (removeBlockRestriction) {
51
- return children;
52
- }
49
+ if (removeBlockRestriction) {
50
+ return children;
53
51
  }
54
52
  return _react.default.Children.map(children, function (child) {
55
53
  return /*#__PURE__*/_react.default.isValidElement(child) && (0, _flexible.isFlexibleUiBlock)(child) ? child : undefined;
@@ -93,10 +91,8 @@ var renderChildren = function renderChildren(children, containerSize, containerT
93
91
  status: status
94
92
  });
95
93
  }
96
- if ((0, _platformFeatureFlags.fg)('platform-linking-flexible-card-openness')) {
97
- if (removeBlockRestriction) {
98
- return child;
99
- }
94
+ if (removeBlockRestriction) {
95
+ return child;
100
96
  }
101
97
  });
102
98
  };
@@ -20,7 +20,7 @@ var _elements = require("./components/elements");
20
20
  * DO NOT add a new prop to these components until we are ready to support it externally.
21
21
  */
22
22
 
23
- // ---- EXPORTED METADATA COMPONENT ---- //
23
+ // ---- EXPORTED METADATA COMPONENTS ---- //
24
24
  var AssignedToElement = exports.AssignedToElement = function AssignedToElement() {
25
25
  return /*#__PURE__*/_react.default.createElement(_elements.AssignedTo, null);
26
26
  };
@@ -128,8 +128,8 @@ var SentOnElement = exports.SentOnElement = function SentOnElement() {
128
128
  };
129
129
  var SnippetElement = exports.SnippetElement = function SnippetElement(props) {
130
130
  return /*#__PURE__*/_react.default.createElement(_elements.Snippet, {
131
- maxLines: props.maxLines,
132
- content: props.text
131
+ maxLines: props === null || props === void 0 ? void 0 : props.maxLines,
132
+ content: props === null || props === void 0 ? void 0 : props.text
133
133
  });
134
134
  };
135
135
  var SourceBranchElement = exports.SourceBranchElement = function SourceBranchElement() {
@@ -180,8 +180,8 @@ var CopyLinkAction = exports.CopyLinkAction = function CopyLinkAction(props) {
180
180
  };
181
181
  var CustomAction = exports.CustomAction = function CustomAction(props) {
182
182
  return /*#__PURE__*/_react.default.createElement(_actions.CustomAction, (0, _extends2.default)({}, toActionProps(props), {
183
- content: props === null || props === void 0 ? void 0 : props.children,
184
- onClick: props === null || props === void 0 ? void 0 : props.onClick
183
+ content: props.children,
184
+ onClick: props.onClick
185
185
  }));
186
186
  };
187
187
  var DownloadAction = exports.DownloadAction = function DownloadAction(props) {
@@ -20,7 +20,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
20
20
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
21
21
  var PACKAGE_DATA = {
22
22
  packageName: "@atlaskit/smart-card",
23
- packageVersion: "38.9.3",
23
+ packageVersion: "38.10.1",
24
24
  componentName: 'linkUrl'
25
25
  };
26
26
  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: "38.9.3"
5
+ packageVersion: "38.10.1"
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -1,14 +1,11 @@
1
1
  import React from 'react';
2
- import { fg } from '@atlaskit/platform-feature-flags';
3
2
  import * as Blocks from '../view/FlexibleCard/components/blocks';
4
3
  import { FooterBlock, PreviewBlock, TitleBlock } from '../view/FlexibleCard/components/blocks';
5
4
  import * as Elements from '../view/FlexibleCard/components/elements';
6
5
  export const isFlexibleUiCard = (children, ui) => {
7
- if (fg('platform-linking-flexible-card-openness')) {
8
- if (ui !== null && ui !== void 0 && ui.removeBlockRestriction) {
9
- var _React$Children$toArr;
10
- return children && ((_React$Children$toArr = React.Children.toArray(children)) === null || _React$Children$toArr === void 0 ? void 0 : _React$Children$toArr.length) > 0 ? true : false;
11
- }
6
+ if (ui !== null && ui !== void 0 && ui.removeBlockRestriction) {
7
+ var _React$Children$toArr;
8
+ return children && ((_React$Children$toArr = React.Children.toArray(children)) === null || _React$Children$toArr === void 0 ? void 0 : _React$Children$toArr.length) > 0 ? true : false;
12
9
  }
13
10
  if (children && React.Children.toArray(children).some(child => isFlexibleUiTitleBlock(child))) {
14
11
  return true;
@@ -1,6 +1,5 @@
1
1
  import React, { useCallback, useEffect, useMemo } from 'react';
2
2
  import { useAnalyticsEvents as useAnalyticsEventsNext } from '@atlaskit/analytics-next';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
3
  import { useAnalyticsEvents } from '../../common/analytics/generated/use-analytics-events';
5
4
  import { CardDisplay } from '../../constants';
6
5
  import { useSmartLink } from '../../state';
@@ -67,7 +66,7 @@ function Component({
67
66
  const extensionKey = getExtensionKey(state.details);
68
67
  const resourceType = getResourceType(state.details);
69
68
  const services = getServices(state.details);
70
- let isFlexibleUi = useMemo(() => isFlexibleUiCard(children, fg('platform-linking-flexible-card-openness') ? ui : undefined), [children, ui]);
69
+ let isFlexibleUi = useMemo(() => isFlexibleUiCard(children, ui), [children, ui]);
71
70
  const actionOptions = combineActionOptions({
72
71
  actionOptions: actionOptionsProp,
73
72
  platform
@@ -289,7 +288,7 @@ function Component({
289
288
  }
290
289
  }
291
290
  export const CardWithUrlContent = props => {
292
- const display = isFlexibleUiCard(props.children, fg('platform-linking-flexible-card-openness') ? props === null || props === void 0 ? void 0 : props.ui : undefined) ? CardDisplay.Flexible : props.appearance;
291
+ const display = isFlexibleUiCard(props.children, props === null || props === void 0 ? void 0 : props.ui) ? CardDisplay.Flexible : props.appearance;
293
292
  return /*#__PURE__*/React.createElement(SmartLinkModalProvider, null, /*#__PURE__*/React.createElement(SmartLinkAnalyticsContext, {
294
293
  url: props.url,
295
294
  id: props.id,
@@ -2,7 +2,6 @@ import React, { lazy, Suspense, useCallback, useEffect, useState } from 'react';
2
2
  import { ErrorBoundary } from 'react-error-boundary';
3
3
  import { di } from 'react-magnetic-di';
4
4
  import uuid from 'uuid';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { useAnalyticsEvents } from '../../common/analytics/generated/use-analytics-events';
7
6
  import { failUfoExperience, startUfoExperience } from '../../state/analytics';
8
7
  import { importWithRetry } from '../../utils';
@@ -51,7 +50,7 @@ export function CardWithURLRenderer(props) {
51
50
  truncateInline,
52
51
  CompetitorPrompt
53
52
  } = props;
54
- const isFlexibleUi = isFlexibleUiCard(children, fg('platform-linking-flexible-card-openness') ? ui : undefined);
53
+ const isFlexibleUi = isFlexibleUiCard(children, ui);
55
54
  const analyticsContext = useSmartLinkAnalyticsContext({
56
55
  display: isFlexibleUi ? 'flexible' : appearance,
57
56
  id,
@@ -184,7 +184,7 @@ const ActionButtonNew = ({
184
184
  };
185
185
  const ActionButtonHideLegacyButton = props => {
186
186
  const ui = useFlexibleUiOptionContext();
187
- if (ui !== null && ui !== void 0 && ui.hideLegacyButton || ui !== null && ui !== void 0 && ui.removeBlockRestriction && fg('platform-linking-flexible-card-openness')) {
187
+ if (ui !== null && ui !== void 0 && ui.hideLegacyButton || ui !== null && ui !== void 0 && ui.removeBlockRestriction) {
188
188
  return /*#__PURE__*/React.createElement(ActionButtonRefreshNewWithOverrideCss, props);
189
189
  }
190
190
  return /*#__PURE__*/React.createElement(ActionButtonNew, props);
@@ -36,10 +36,8 @@ export const getChildrenOptions = (children, context) => {
36
36
  return options;
37
37
  };
38
38
  const filterChildren = (children, removeBlockRestriction) => {
39
- if (fg('platform-linking-flexible-card-openness')) {
40
- if (removeBlockRestriction) {
41
- return children;
42
- }
39
+ if (removeBlockRestriction) {
40
+ return children;
43
41
  }
44
42
  return React.Children.map(children, child => /*#__PURE__*/React.isValidElement(child) && isFlexibleUiBlock(child) ? child : undefined);
45
43
  };
@@ -86,10 +84,8 @@ const renderChildren = (children, containerSize, containerTheme, status, retry,
86
84
  status
87
85
  });
88
86
  }
89
- if (fg('platform-linking-flexible-card-openness')) {
90
- if (removeBlockRestriction) {
91
- return child;
92
- }
87
+ if (removeBlockRestriction) {
88
+ return child;
93
89
  }
94
90
  });
95
91
  };
@@ -12,7 +12,8 @@ import { fg } from '@atlaskit/platform-feature-flags';
12
12
  import { SmartLinkSize } from '../../constants';
13
13
  import { CopyLinkAction as CopyLinkActionComponent, CustomAction as CustomActionComponent, DownloadAction as DownloadActionComponent, FollowAction as FollowActionComponent, PreviewAction as PreviewActionComponent, UnresolvedAction as UnresolvedActionComponent } from './components/actions';
14
14
  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';
15
- // ---- EXPORTED METADATA COMPONENT ---- //
15
+
16
+ // ---- EXPORTED METADATA COMPONENTS ---- //
16
17
  export const AssignedToElement = () => /*#__PURE__*/React.createElement(AssignedTo, null);
17
18
  export const AssignedToGroupElement = () => /*#__PURE__*/React.createElement(AssignedToGroup, null);
18
19
  export const AttachmentCountElement = () => /*#__PURE__*/React.createElement(AttachmentCount, null);
@@ -83,8 +84,8 @@ export const ReactCountElement = props => {
83
84
  export const ReadTimeElement = () => /*#__PURE__*/React.createElement(ReadTime, null);
84
85
  export const SentOnElement = () => /*#__PURE__*/React.createElement(SentOn, null);
85
86
  export const SnippetElement = props => /*#__PURE__*/React.createElement(Snippet, {
86
- maxLines: props.maxLines,
87
- content: props.text
87
+ maxLines: props === null || props === void 0 ? void 0 : props.maxLines,
88
+ content: props === null || props === void 0 ? void 0 : props.text
88
89
  });
89
90
  export const SourceBranchElement = () => /*#__PURE__*/React.createElement(SourceBranch, null);
90
91
  export const StateElement = () => /*#__PURE__*/React.createElement(State, null);
@@ -113,8 +114,8 @@ export const toActionProps = props => {
113
114
  };
114
115
  export const CopyLinkAction = props => /*#__PURE__*/React.createElement(CopyLinkActionComponent, toActionProps(props));
115
116
  export const CustomAction = props => /*#__PURE__*/React.createElement(CustomActionComponent, _extends({}, toActionProps(props), {
116
- content: props === null || props === void 0 ? void 0 : props.children,
117
- onClick: props === null || props === void 0 ? void 0 : props.onClick
117
+ content: props.children,
118
+ onClick: props.onClick
118
119
  }));
119
120
  export const DownloadAction = props => /*#__PURE__*/React.createElement(DownloadActionComponent, toActionProps(props));
120
121
  export const FollowAction = props => /*#__PURE__*/React.createElement(FollowActionComponent, toActionProps(props));
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
10
10
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
11
11
  const PACKAGE_DATA = {
12
12
  packageName: "@atlaskit/smart-card",
13
- packageVersion: "38.9.3",
13
+ packageVersion: "38.10.1",
14
14
  componentName: 'linkUrl'
15
15
  };
16
16
  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: "38.9.3"
7
+ packageVersion: "38.10.1"
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -1,14 +1,11 @@
1
1
  import React from 'react';
2
- import { fg } from '@atlaskit/platform-feature-flags';
3
2
  import * as Blocks from '../view/FlexibleCard/components/blocks';
4
3
  import { FooterBlock, PreviewBlock, TitleBlock } from '../view/FlexibleCard/components/blocks';
5
4
  import * as Elements from '../view/FlexibleCard/components/elements';
6
5
  export var isFlexibleUiCard = function isFlexibleUiCard(children, ui) {
7
- if (fg('platform-linking-flexible-card-openness')) {
8
- if (ui !== null && ui !== void 0 && ui.removeBlockRestriction) {
9
- var _React$Children$toArr;
10
- return children && ((_React$Children$toArr = React.Children.toArray(children)) === null || _React$Children$toArr === void 0 ? void 0 : _React$Children$toArr.length) > 0 ? true : false;
11
- }
6
+ if (ui !== null && ui !== void 0 && ui.removeBlockRestriction) {
7
+ var _React$Children$toArr;
8
+ return children && ((_React$Children$toArr = React.Children.toArray(children)) === null || _React$Children$toArr === void 0 ? void 0 : _React$Children$toArr.length) > 0 ? true : false;
12
9
  }
13
10
  if (children && React.Children.toArray(children).some(function (child) {
14
11
  return _isFlexibleUiTitleBlock(child);
@@ -1,6 +1,5 @@
1
1
  import React, { useCallback, useEffect, useMemo } from 'react';
2
2
  import { useAnalyticsEvents as useAnalyticsEventsNext } from '@atlaskit/analytics-next';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
3
  import { useAnalyticsEvents } from '../../common/analytics/generated/use-analytics-events';
5
4
  import { CardDisplay } from '../../constants';
6
5
  import { useSmartLink } from '../../state';
@@ -64,7 +63,7 @@ function Component(_ref) {
64
63
  var resourceType = getResourceType(state.details);
65
64
  var services = getServices(state.details);
66
65
  var isFlexibleUi = useMemo(function () {
67
- return isFlexibleUiCard(children, fg('platform-linking-flexible-card-openness') ? ui : undefined);
66
+ return isFlexibleUiCard(children, ui);
68
67
  }, [children, ui]);
69
68
  var actionOptions = combineActionOptions({
70
69
  actionOptions: actionOptionsProp,
@@ -291,7 +290,7 @@ function Component(_ref) {
291
290
  }
292
291
  }
293
292
  export var CardWithUrlContent = function CardWithUrlContent(props) {
294
- var display = isFlexibleUiCard(props.children, fg('platform-linking-flexible-card-openness') ? props === null || props === void 0 ? void 0 : props.ui : undefined) ? CardDisplay.Flexible : props.appearance;
293
+ var display = isFlexibleUiCard(props.children, props === null || props === void 0 ? void 0 : props.ui) ? CardDisplay.Flexible : props.appearance;
295
294
  return /*#__PURE__*/React.createElement(SmartLinkModalProvider, null, /*#__PURE__*/React.createElement(SmartLinkAnalyticsContext, {
296
295
  url: props.url,
297
296
  id: props.id,
@@ -6,7 +6,6 @@ import React, { lazy, Suspense, useCallback, useEffect, useState } from 'react';
6
6
  import { ErrorBoundary } from 'react-error-boundary';
7
7
  import { di } from 'react-magnetic-di';
8
8
  import uuid from 'uuid';
9
- import { fg } from '@atlaskit/platform-feature-flags';
10
9
  import { useAnalyticsEvents } from '../../common/analytics/generated/use-analytics-events';
11
10
  import { failUfoExperience, startUfoExperience } from '../../state/analytics';
12
11
  import { importWithRetry } from '../../utils';
@@ -60,7 +59,7 @@ export function CardWithURLRenderer(props) {
60
59
  resolvingPlaceholder = props.resolvingPlaceholder,
61
60
  truncateInline = props.truncateInline,
62
61
  CompetitorPrompt = props.CompetitorPrompt;
63
- var isFlexibleUi = isFlexibleUiCard(children, fg('platform-linking-flexible-card-openness') ? ui : undefined);
62
+ var isFlexibleUi = isFlexibleUiCard(children, ui);
64
63
  var analyticsContext = useSmartLinkAnalyticsContext({
65
64
  display: isFlexibleUi ? 'flexible' : appearance,
66
65
  id: id,
@@ -194,7 +194,7 @@ var ActionButtonNew = function ActionButtonNew(_ref2) {
194
194
  };
195
195
  var ActionButtonHideLegacyButton = function ActionButtonHideLegacyButton(props) {
196
196
  var ui = useFlexibleUiOptionContext();
197
- if (ui !== null && ui !== void 0 && ui.hideLegacyButton || ui !== null && ui !== void 0 && ui.removeBlockRestriction && fg('platform-linking-flexible-card-openness')) {
197
+ if (ui !== null && ui !== void 0 && ui.hideLegacyButton || ui !== null && ui !== void 0 && ui.removeBlockRestriction) {
198
198
  return /*#__PURE__*/React.createElement(ActionButtonRefreshNewWithOverrideCss, props);
199
199
  }
200
200
  return /*#__PURE__*/React.createElement(ActionButtonNew, props);
@@ -40,10 +40,8 @@ export var getChildrenOptions = function getChildrenOptions(children, context) {
40
40
  return options;
41
41
  };
42
42
  var filterChildren = function filterChildren(children, removeBlockRestriction) {
43
- if (fg('platform-linking-flexible-card-openness')) {
44
- if (removeBlockRestriction) {
45
- return children;
46
- }
43
+ if (removeBlockRestriction) {
44
+ return children;
47
45
  }
48
46
  return React.Children.map(children, function (child) {
49
47
  return /*#__PURE__*/React.isValidElement(child) && isFlexibleUiBlock(child) ? child : undefined;
@@ -87,10 +85,8 @@ var renderChildren = function renderChildren(children, containerSize, containerT
87
85
  status: status
88
86
  });
89
87
  }
90
- if (fg('platform-linking-flexible-card-openness')) {
91
- if (removeBlockRestriction) {
92
- return child;
93
- }
88
+ if (removeBlockRestriction) {
89
+ return child;
94
90
  }
95
91
  });
96
92
  };
@@ -12,7 +12,8 @@ import { fg } from '@atlaskit/platform-feature-flags';
12
12
  import { SmartLinkSize } from '../../constants';
13
13
  import { CopyLinkAction as CopyLinkActionComponent, CustomAction as CustomActionComponent, DownloadAction as DownloadActionComponent, FollowAction as FollowActionComponent, PreviewAction as PreviewActionComponent, UnresolvedAction as UnresolvedActionComponent } from './components/actions';
14
14
  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';
15
- // ---- EXPORTED METADATA COMPONENT ---- //
15
+
16
+ // ---- EXPORTED METADATA COMPONENTS ---- //
16
17
  export var AssignedToElement = function AssignedToElement() {
17
18
  return /*#__PURE__*/React.createElement(AssignedTo, null);
18
19
  };
@@ -120,8 +121,8 @@ export var SentOnElement = function SentOnElement() {
120
121
  };
121
122
  export var SnippetElement = function SnippetElement(props) {
122
123
  return /*#__PURE__*/React.createElement(Snippet, {
123
- maxLines: props.maxLines,
124
- content: props.text
124
+ maxLines: props === null || props === void 0 ? void 0 : props.maxLines,
125
+ content: props === null || props === void 0 ? void 0 : props.text
125
126
  });
126
127
  };
127
128
  export var SourceBranchElement = function SourceBranchElement() {
@@ -172,8 +173,8 @@ export var CopyLinkAction = function CopyLinkAction(props) {
172
173
  };
173
174
  export var CustomAction = function CustomAction(props) {
174
175
  return /*#__PURE__*/React.createElement(CustomActionComponent, _extends({}, toActionProps(props), {
175
- content: props === null || props === void 0 ? void 0 : props.children,
176
- onClick: props === null || props === void 0 ? void 0 : props.onClick
176
+ content: props.children,
177
+ onClick: props.onClick
177
178
  }));
178
179
  };
179
180
  export var DownloadAction = function DownloadAction(props) {
@@ -13,7 +13,7 @@ import LinkWarningModal from './LinkWarningModal';
13
13
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
14
14
  var PACKAGE_DATA = {
15
15
  packageName: "@atlaskit/smart-card",
16
- packageVersion: "38.9.3",
16
+ packageVersion: "38.10.1",
17
17
  componentName: 'linkUrl'
18
18
  };
19
19
  var Anchor = withLinkClickedEvent('a');
@@ -7,53 +7,54 @@
7
7
  * DO NOT add a new prop to these components until we are ready to support it externally.
8
8
  */
9
9
  import React from 'react';
10
- import type { BaseBadgeElementProps, BaseDateTimeElementProps, BaseIconElementProps, BaseLinkElementProps, BaseTextElementProps } from './components/elements/common';
11
- import type { PreviewElementProps } from './components/elements/preview-element';
10
+ import { Prettify } from '@atlaskit/linking-common';
11
+ import { CommentCount, LinkIcon, ModifiedOn, OwnedBy, Preview, ReactCount, Snippet, Title } from './components/elements';
12
12
  export declare const AssignedToElement: () => React.JSX.Element;
13
13
  export declare const AssignedToGroupElement: () => React.JSX.Element;
14
14
  export declare const AttachmentCountElement: () => React.JSX.Element;
15
15
  export declare const AuthorGroupElement: () => React.JSX.Element;
16
16
  export declare const ChecklistProgressElement: () => React.JSX.Element;
17
17
  export declare const CollaboratorGroupElement: () => React.JSX.Element;
18
- type CommentCountElementProps = Pick<BaseBadgeElementProps, 'color'>;
18
+ type CommentCountElementProps = Pick<React.ComponentProps<typeof CommentCount>, 'color'>;
19
19
  export declare const CommentCountElement: (props?: CommentCountElementProps) => React.JSX.Element;
20
20
  export declare const CreatedOnElement: () => React.JSX.Element;
21
21
  export declare const CreatedByElement: () => React.JSX.Element;
22
22
  export declare const DueOnElement: () => React.JSX.Element;
23
23
  export declare const LatestCommitElement: () => React.JSX.Element;
24
- type LinkIconElementProps = Pick<BaseIconElementProps, 'render'> & {
24
+ type LinkIconElementProps = Prettify<Pick<React.ComponentProps<typeof LinkIcon>, 'render'> & {
25
25
  iconTileSize?: 16 | 24;
26
- };
26
+ }>;
27
27
  export declare const LinkIconElement: (props?: LinkIconElementProps) => React.JSX.Element;
28
28
  export declare const LocationElement: () => React.JSX.Element;
29
29
  export declare const ModifiedByElement: () => React.JSX.Element;
30
- type ModifiedOnElementProps = Pick<BaseDateTimeElementProps, 'hideDatePrefix' | 'color'>;
30
+ type ModifiedOnElementProps = Pick<React.ComponentProps<typeof ModifiedOn>, 'hideDatePrefix' | 'color'>;
31
31
  export declare const ModifiedOnElement: (props?: ModifiedOnElementProps) => React.JSX.Element;
32
- type OwnedByElementProps = Pick<BaseTextElementProps, 'hideFormat' | 'color'>;
32
+ type OwnedByElementProps = Pick<React.ComponentProps<typeof OwnedBy>, 'hideFormat' | 'color'>;
33
33
  export declare const OwnedByElement: (props?: OwnedByElementProps) => React.JSX.Element;
34
34
  export declare const OwnedByGroupElement: () => React.JSX.Element;
35
- export declare const PreviewElement: (props: Omit<PreviewElementProps, 'overrideUrl'> & {
36
- url?: PreviewElementProps['overrideUrl'];
37
- }) => React.JSX.Element;
35
+ type PreviewElementProps = {
36
+ url?: React.ComponentProps<typeof Preview>['overrideUrl'];
37
+ };
38
+ export declare const PreviewElement: (props?: PreviewElementProps) => React.JSX.Element;
38
39
  export declare const PriorityElement: () => React.JSX.Element;
39
40
  export declare const ProgrammingLanguageElement: () => React.JSX.Element;
40
41
  export declare const ProviderElement: () => React.JSX.Element;
41
- type ReactCountElementProps = Pick<BaseBadgeElementProps, 'color'>;
42
+ type ReactCountElementProps = Pick<React.ComponentProps<typeof ReactCount>, 'color'>;
42
43
  export declare const ReactCountElement: (props?: ReactCountElementProps) => React.JSX.Element;
43
44
  export declare const ReadTimeElement: () => React.JSX.Element;
44
45
  export declare const SentOnElement: () => React.JSX.Element;
45
- export type SnippetElementProps = Pick<BaseTextElementProps, 'maxLines'> & {
46
- text?: BaseTextElementProps['content'];
47
- };
48
- export declare const SnippetElement: (props: SnippetElementProps) => React.JSX.Element;
46
+ export type SnippetElementProps = Prettify<Pick<React.ComponentProps<typeof Snippet>, 'maxLines'> & {
47
+ text?: React.ComponentProps<typeof Snippet>['content'];
48
+ }>;
49
+ export declare const SnippetElement: (props?: SnippetElementProps) => React.JSX.Element;
49
50
  export declare const SourceBranchElement: () => React.JSX.Element;
50
51
  export declare const StateElement: () => React.JSX.Element;
51
52
  export declare const StoryPointsElement: () => React.JSX.Element;
52
53
  export declare const SubscriberCountElement: () => React.JSX.Element;
53
54
  export declare const SubTasksProgressElement: () => React.JSX.Element;
54
55
  export declare const TargetBranchElement: () => React.JSX.Element;
55
- export type TitleElementProps = Pick<BaseLinkElementProps, 'hideTooltip' | 'maxLines' | 'target' | 'text'>;
56
- export declare const TitleElement: (props: TitleElementProps) => React.JSX.Element;
56
+ export type TitleElementProps = Pick<React.ComponentProps<typeof Title>, 'hideTooltip' | 'maxLines' | 'target' | 'text'>;
57
+ export declare const TitleElement: (props?: TitleElementProps) => React.JSX.Element;
57
58
  export declare const ViewCountElement: () => React.JSX.Element;
58
59
  export declare const VoteCountElement: () => React.JSX.Element;
59
60
  type BaseActionProps = {
@@ -65,10 +66,10 @@ export declare const toActionProps: (props?: BaseActionProps) => {
65
66
  };
66
67
  export type CopyLinkActionProps = BaseActionProps;
67
68
  export declare const CopyLinkAction: (props: CopyLinkActionProps) => React.JSX.Element;
68
- export type CustomActionProps = BaseActionProps & {
69
+ export type CustomActionProps = Prettify<BaseActionProps & {
69
70
  children: React.ReactNode;
70
71
  onClick: () => void;
71
- };
72
+ }>;
72
73
  export declare const CustomAction: (props: CustomActionProps) => React.JSX.Element;
73
74
  export type DownloadActionProps = BaseActionProps;
74
75
  export declare const DownloadAction: (props: DownloadActionProps) => React.JSX.Element;
@@ -7,53 +7,54 @@
7
7
  * DO NOT add a new prop to these components until we are ready to support it externally.
8
8
  */
9
9
  import React from 'react';
10
- import type { BaseBadgeElementProps, BaseDateTimeElementProps, BaseIconElementProps, BaseLinkElementProps, BaseTextElementProps } from './components/elements/common';
11
- import type { PreviewElementProps } from './components/elements/preview-element';
10
+ import { Prettify } from '@atlaskit/linking-common';
11
+ import { CommentCount, LinkIcon, ModifiedOn, OwnedBy, Preview, ReactCount, Snippet, Title } from './components/elements';
12
12
  export declare const AssignedToElement: () => React.JSX.Element;
13
13
  export declare const AssignedToGroupElement: () => React.JSX.Element;
14
14
  export declare const AttachmentCountElement: () => React.JSX.Element;
15
15
  export declare const AuthorGroupElement: () => React.JSX.Element;
16
16
  export declare const ChecklistProgressElement: () => React.JSX.Element;
17
17
  export declare const CollaboratorGroupElement: () => React.JSX.Element;
18
- type CommentCountElementProps = Pick<BaseBadgeElementProps, 'color'>;
18
+ type CommentCountElementProps = Pick<React.ComponentProps<typeof CommentCount>, 'color'>;
19
19
  export declare const CommentCountElement: (props?: CommentCountElementProps) => React.JSX.Element;
20
20
  export declare const CreatedOnElement: () => React.JSX.Element;
21
21
  export declare const CreatedByElement: () => React.JSX.Element;
22
22
  export declare const DueOnElement: () => React.JSX.Element;
23
23
  export declare const LatestCommitElement: () => React.JSX.Element;
24
- type LinkIconElementProps = Pick<BaseIconElementProps, 'render'> & {
24
+ type LinkIconElementProps = Prettify<Pick<React.ComponentProps<typeof LinkIcon>, 'render'> & {
25
25
  iconTileSize?: 16 | 24;
26
- };
26
+ }>;
27
27
  export declare const LinkIconElement: (props?: LinkIconElementProps) => React.JSX.Element;
28
28
  export declare const LocationElement: () => React.JSX.Element;
29
29
  export declare const ModifiedByElement: () => React.JSX.Element;
30
- type ModifiedOnElementProps = Pick<BaseDateTimeElementProps, 'hideDatePrefix' | 'color'>;
30
+ type ModifiedOnElementProps = Pick<React.ComponentProps<typeof ModifiedOn>, 'hideDatePrefix' | 'color'>;
31
31
  export declare const ModifiedOnElement: (props?: ModifiedOnElementProps) => React.JSX.Element;
32
- type OwnedByElementProps = Pick<BaseTextElementProps, 'hideFormat' | 'color'>;
32
+ type OwnedByElementProps = Pick<React.ComponentProps<typeof OwnedBy>, 'hideFormat' | 'color'>;
33
33
  export declare const OwnedByElement: (props?: OwnedByElementProps) => React.JSX.Element;
34
34
  export declare const OwnedByGroupElement: () => React.JSX.Element;
35
- export declare const PreviewElement: (props: Omit<PreviewElementProps, 'overrideUrl'> & {
36
- url?: PreviewElementProps['overrideUrl'];
37
- }) => React.JSX.Element;
35
+ type PreviewElementProps = {
36
+ url?: React.ComponentProps<typeof Preview>['overrideUrl'];
37
+ };
38
+ export declare const PreviewElement: (props?: PreviewElementProps) => React.JSX.Element;
38
39
  export declare const PriorityElement: () => React.JSX.Element;
39
40
  export declare const ProgrammingLanguageElement: () => React.JSX.Element;
40
41
  export declare const ProviderElement: () => React.JSX.Element;
41
- type ReactCountElementProps = Pick<BaseBadgeElementProps, 'color'>;
42
+ type ReactCountElementProps = Pick<React.ComponentProps<typeof ReactCount>, 'color'>;
42
43
  export declare const ReactCountElement: (props?: ReactCountElementProps) => React.JSX.Element;
43
44
  export declare const ReadTimeElement: () => React.JSX.Element;
44
45
  export declare const SentOnElement: () => React.JSX.Element;
45
- export type SnippetElementProps = Pick<BaseTextElementProps, 'maxLines'> & {
46
- text?: BaseTextElementProps['content'];
47
- };
48
- export declare const SnippetElement: (props: SnippetElementProps) => React.JSX.Element;
46
+ export type SnippetElementProps = Prettify<Pick<React.ComponentProps<typeof Snippet>, 'maxLines'> & {
47
+ text?: React.ComponentProps<typeof Snippet>['content'];
48
+ }>;
49
+ export declare const SnippetElement: (props?: SnippetElementProps) => React.JSX.Element;
49
50
  export declare const SourceBranchElement: () => React.JSX.Element;
50
51
  export declare const StateElement: () => React.JSX.Element;
51
52
  export declare const StoryPointsElement: () => React.JSX.Element;
52
53
  export declare const SubscriberCountElement: () => React.JSX.Element;
53
54
  export declare const SubTasksProgressElement: () => React.JSX.Element;
54
55
  export declare const TargetBranchElement: () => React.JSX.Element;
55
- export type TitleElementProps = Pick<BaseLinkElementProps, 'hideTooltip' | 'maxLines' | 'target' | 'text'>;
56
- export declare const TitleElement: (props: TitleElementProps) => React.JSX.Element;
56
+ export type TitleElementProps = Pick<React.ComponentProps<typeof Title>, 'hideTooltip' | 'maxLines' | 'target' | 'text'>;
57
+ export declare const TitleElement: (props?: TitleElementProps) => React.JSX.Element;
57
58
  export declare const ViewCountElement: () => React.JSX.Element;
58
59
  export declare const VoteCountElement: () => React.JSX.Element;
59
60
  type BaseActionProps = {
@@ -65,10 +66,10 @@ export declare const toActionProps: (props?: BaseActionProps) => {
65
66
  };
66
67
  export type CopyLinkActionProps = BaseActionProps;
67
68
  export declare const CopyLinkAction: (props: CopyLinkActionProps) => React.JSX.Element;
68
- export type CustomActionProps = BaseActionProps & {
69
+ export type CustomActionProps = Prettify<BaseActionProps & {
69
70
  children: React.ReactNode;
70
71
  onClick: () => void;
71
- };
72
+ }>;
72
73
  export declare const CustomAction: (props: CustomActionProps) => React.JSX.Element;
73
74
  export type DownloadActionProps = BaseActionProps;
74
75
  export declare const DownloadAction: (props: DownloadActionProps) => React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "38.10.0",
3
+ "version": "38.10.2",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -34,8 +34,8 @@
34
34
  "@atlaskit/badge": "^18.1.0",
35
35
  "@atlaskit/button": "^23.2.0",
36
36
  "@atlaskit/checkbox": "^17.1.0",
37
- "@atlaskit/css": "^0.10.0",
38
- "@atlaskit/dropdown-menu": "^16.0.0",
37
+ "@atlaskit/css": "^0.11.0",
38
+ "@atlaskit/dropdown-menu": "^16.1.0",
39
39
  "@atlaskit/form": "^12.0.0",
40
40
  "@atlaskit/frontend-utilities": "^3.0.0",
41
41
  "@atlaskit/heading": "^5.2.0",
@@ -51,7 +51,7 @@
51
51
  "@atlaskit/link-analytics": "^10.0.0",
52
52
  "@atlaskit/link-client-extension": "^5.0.0",
53
53
  "@atlaskit/link-extractors": "^2.3.0",
54
- "@atlaskit/linking-common": "^9.0.0",
54
+ "@atlaskit/linking-common": "^9.1.0",
55
55
  "@atlaskit/linking-types": "^12.0.0",
56
56
  "@atlaskit/logo": "^19.1.0",
57
57
  "@atlaskit/lozenge": "^13.0.0",
@@ -60,14 +60,14 @@
60
60
  "@atlaskit/outbound-auth-flow-client": "^3.4.0",
61
61
  "@atlaskit/platform-feature-flags": "^1.1.0",
62
62
  "@atlaskit/popup": "^4.3.0",
63
- "@atlaskit/primitives": "^14.8.0",
63
+ "@atlaskit/primitives": "^14.9.0",
64
64
  "@atlaskit/section-message": "^8.2.0",
65
65
  "@atlaskit/select": "^20.7.0",
66
66
  "@atlaskit/spinner": "^18.0.0",
67
67
  "@atlaskit/textarea": "^8.0.0",
68
68
  "@atlaskit/textfield": "^8.0.0",
69
69
  "@atlaskit/theme": "^18.0.0",
70
- "@atlaskit/tokens": "^5.2.0",
70
+ "@atlaskit/tokens": "^5.3.0",
71
71
  "@atlaskit/tooltip": "^20.3.0",
72
72
  "@atlaskit/ufo": "^0.4.0",
73
73
  "@babel/runtime": "^7.0.0",
@@ -96,13 +96,13 @@
96
96
  "@atlaskit/analytics-listeners": "^9.0.0",
97
97
  "@atlaskit/css-reset": "^7.3.0",
98
98
  "@atlaskit/link-test-helpers": "^8.0.0",
99
- "@atlaskit/media-test-helpers": "^36.1.0",
99
+ "@atlaskit/media-test-helpers": "^37.0.0",
100
100
  "@atlaskit/react-ufo": "^3.13.0",
101
101
  "@atlaskit/ssr": "workspace:^",
102
102
  "@atlaskit/visual-regression": "workspace:^",
103
103
  "@atlassian/analytics-tooling": "^0.5.0",
104
104
  "@atlassian/feature-flags-test-utils": "^0.3.0",
105
- "@atlassian/gemini": "^1.18.0",
105
+ "@atlassian/gemini": "^1.19.0",
106
106
  "@testing-library/dom": "^10.1.0",
107
107
  "@testing-library/jest-dom": "^6.4.5",
108
108
  "@testing-library/react": "^13.4.0",
@@ -224,9 +224,6 @@
224
224
  "platform-linking-visual-refresh-inline-lozenge": {
225
225
  "type": "boolean"
226
226
  },
227
- "platform-linking-flexible-card-openness": {
228
- "type": "boolean"
229
- },
230
227
  "platform-linking-flexible-card-unresolved-action": {
231
228
  "type": "boolean"
232
229
  },