@atlaskit/smart-card 43.4.3 → 43.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 43.4.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`6b95bfd7b3619`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6b95bfd7b3619) -
8
+ NAVX-1995 cleaning up navx-1895-a11y-close-button-in-preview-modal
9
+ - Updated dependencies
10
+
3
11
  ## 43.4.3
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: "43.4.2"
14
+ packageVersion: "43.4.3"
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -14,13 +14,11 @@ var _reactIntlNext = require("react-intl-next");
14
14
  var _heading = _interopRequireDefault(require("@atlaskit/heading"));
15
15
  var _download = _interopRequireDefault(require("@atlaskit/icon/core/download"));
16
16
  var _fullscreenExit = _interopRequireDefault(require("@atlaskit/icon/core/fullscreen-exit"));
17
- var _cross = _interopRequireDefault(require("@atlaskit/icon/core/migration/cross"));
18
17
  var _fullscreenEnterVidFullScreenOn = _interopRequireDefault(require("@atlaskit/icon/core/migration/fullscreen-enter--vid-full-screen-on"));
19
18
  var _linkExternalShortcut = _interopRequireDefault(require("@atlaskit/icon/core/migration/link-external--shortcut"));
20
19
  var _download2 = _interopRequireDefault(require("@atlaskit/icon/glyph/download"));
21
20
  var _vidFullScreenOff = _interopRequireDefault(require("@atlaskit/icon/glyph/vid-full-screen-off"));
22
21
  var _modalDialog = require("@atlaskit/modal-dialog");
23
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
24
22
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
25
23
  var _messages = require("../../../../messages");
26
24
  var _Icon = require("../../../common/Icon");
@@ -131,7 +129,7 @@ var LinkInfo = function LinkInfo(_ref) {
131
129
  "aria-hidden": true
132
130
  })), /*#__PURE__*/_react.default.createElement("div", {
133
131
  className: (0, _runtime.ax)(["_16jlidpf _1o9zidpf _i0dl1wug _zulp1b66 _1e0c1txw _3kllglyw"])
134
- }, downloadButton, urlButton, sizeButton, (0, _platformFeatureFlags.fg)('navx-1895-a11y-close-button-in-preview-modal') ? /*#__PURE__*/_react.default.createElement(_tooltip.default, {
132
+ }, downloadButton, urlButton, sizeButton, /*#__PURE__*/_react.default.createElement(_tooltip.default, {
135
133
  content: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.preview_close),
136
134
  hideTooltipOnClick: true,
137
135
  tag: "span",
@@ -139,19 +137,7 @@ var LinkInfo = function LinkInfo(_ref) {
139
137
  }, /*#__PURE__*/_react.default.createElement(_modalDialog.CloseButton, {
140
138
  onClick: onClose,
141
139
  label: formatMessage(_messages.messages.preview_close),
142
- testId: "".concat(testId, "-close-button")
143
- })) : /*#__PURE__*/_react.default.createElement(_linkInfoButton.default, {
144
- content: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.preview_close),
145
- icon: function icon() {
146
- return /*#__PURE__*/_react.default.createElement(_cross.default, {
147
- label: _messages.messages.preview_close.defaultMessage,
148
- color: "currentColor",
149
- spacing: "spacious"
150
- });
151
- },
152
- label: _messages.messages.preview_close,
153
- onClick: onClose,
154
- testId: "".concat(testId, "-close")
155
- })));
140
+ testId: testId
141
+ }))));
156
142
  };
157
143
  var _default = exports.default = LinkInfo;
@@ -22,7 +22,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
22
22
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
23
23
  var PACKAGE_DATA = {
24
24
  packageName: "@atlaskit/smart-card",
25
- packageVersion: "43.4.2",
25
+ packageVersion: "43.4.3",
26
26
  componentName: 'linkUrl'
27
27
  };
28
28
  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: "43.4.2"
5
+ packageVersion: "43.4.3"
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -6,13 +6,11 @@ import { FormattedMessage, useIntl } from 'react-intl-next';
6
6
  import Heading from '@atlaskit/heading';
7
7
  import DownloadIcon from '@atlaskit/icon/core/download';
8
8
  import FullscreenExitIcon from '@atlaskit/icon/core/fullscreen-exit';
9
- import CrossIcon from '@atlaskit/icon/core/migration/cross';
10
9
  import VidFullScreenOnIcon from '@atlaskit/icon/core/migration/fullscreen-enter--vid-full-screen-on';
11
10
  import ShortcutIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
12
11
  import DownloadIconLegacy from '@atlaskit/icon/glyph/download';
13
12
  import VidFullScreenOffIcon from '@atlaskit/icon/glyph/vid-full-screen-off';
14
13
  import { CloseButton, useModal } from '@atlaskit/modal-dialog';
15
- import { fg } from '@atlaskit/platform-feature-flags';
16
14
  import Tooltip from '@atlaskit/tooltip';
17
15
  import { messages } from '../../../../messages';
18
16
  import { Icon } from '../../../common/Icon';
@@ -119,7 +117,7 @@ const LinkInfo = ({
119
117
  "aria-hidden": true
120
118
  })), /*#__PURE__*/React.createElement("div", {
121
119
  className: ax(["_16jlidpf _1o9zidpf _i0dl1wug _zulp1b66 _1e0c1txw _3kllglyw"])
122
- }, downloadButton, urlButton, sizeButton, fg('navx-1895-a11y-close-button-in-preview-modal') ? /*#__PURE__*/React.createElement(Tooltip, {
120
+ }, downloadButton, urlButton, sizeButton, /*#__PURE__*/React.createElement(Tooltip, {
123
121
  content: /*#__PURE__*/React.createElement(FormattedMessage, messages.preview_close),
124
122
  hideTooltipOnClick: true,
125
123
  tag: "span",
@@ -127,17 +125,7 @@ const LinkInfo = ({
127
125
  }, /*#__PURE__*/React.createElement(CloseButton, {
128
126
  onClick: onClose,
129
127
  label: formatMessage(messages.preview_close),
130
- testId: `${testId}-close-button`
131
- })) : /*#__PURE__*/React.createElement(LinkInfoButton, {
132
- content: /*#__PURE__*/React.createElement(FormattedMessage, messages.preview_close),
133
- icon: () => /*#__PURE__*/React.createElement(CrossIcon, {
134
- label: messages.preview_close.defaultMessage,
135
- color: "currentColor",
136
- spacing: "spacious"
137
- }),
138
- label: messages.preview_close,
139
- onClick: onClose,
140
- testId: `${testId}-close`
141
- })));
128
+ testId: testId
129
+ }))));
142
130
  };
143
131
  export default LinkInfo;
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
12
12
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
13
13
  const PACKAGE_DATA = {
14
14
  packageName: "@atlaskit/smart-card",
15
- packageVersion: "43.4.2",
15
+ packageVersion: "43.4.3",
16
16
  componentName: 'linkUrl'
17
17
  };
18
18
  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: "43.4.2"
7
+ packageVersion: "43.4.3"
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -6,13 +6,11 @@ import { FormattedMessage, useIntl } from 'react-intl-next';
6
6
  import Heading from '@atlaskit/heading';
7
7
  import DownloadIcon from '@atlaskit/icon/core/download';
8
8
  import FullscreenExitIcon from '@atlaskit/icon/core/fullscreen-exit';
9
- import CrossIcon from '@atlaskit/icon/core/migration/cross';
10
9
  import VidFullScreenOnIcon from '@atlaskit/icon/core/migration/fullscreen-enter--vid-full-screen-on';
11
10
  import ShortcutIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
12
11
  import DownloadIconLegacy from '@atlaskit/icon/glyph/download';
13
12
  import VidFullScreenOffIcon from '@atlaskit/icon/glyph/vid-full-screen-off';
14
13
  import { CloseButton, useModal } from '@atlaskit/modal-dialog';
15
- import { fg } from '@atlaskit/platform-feature-flags';
16
14
  import Tooltip from '@atlaskit/tooltip';
17
15
  import { messages } from '../../../../messages';
18
16
  import { Icon } from '../../../common/Icon';
@@ -122,7 +120,7 @@ var LinkInfo = function LinkInfo(_ref) {
122
120
  "aria-hidden": true
123
121
  })), /*#__PURE__*/React.createElement("div", {
124
122
  className: ax(["_16jlidpf _1o9zidpf _i0dl1wug _zulp1b66 _1e0c1txw _3kllglyw"])
125
- }, downloadButton, urlButton, sizeButton, fg('navx-1895-a11y-close-button-in-preview-modal') ? /*#__PURE__*/React.createElement(Tooltip, {
123
+ }, downloadButton, urlButton, sizeButton, /*#__PURE__*/React.createElement(Tooltip, {
126
124
  content: /*#__PURE__*/React.createElement(FormattedMessage, messages.preview_close),
127
125
  hideTooltipOnClick: true,
128
126
  tag: "span",
@@ -130,19 +128,7 @@ var LinkInfo = function LinkInfo(_ref) {
130
128
  }, /*#__PURE__*/React.createElement(CloseButton, {
131
129
  onClick: onClose,
132
130
  label: formatMessage(messages.preview_close),
133
- testId: "".concat(testId, "-close-button")
134
- })) : /*#__PURE__*/React.createElement(LinkInfoButton, {
135
- content: /*#__PURE__*/React.createElement(FormattedMessage, messages.preview_close),
136
- icon: function icon() {
137
- return /*#__PURE__*/React.createElement(CrossIcon, {
138
- label: messages.preview_close.defaultMessage,
139
- color: "currentColor",
140
- spacing: "spacious"
141
- });
142
- },
143
- label: messages.preview_close,
144
- onClick: onClose,
145
- testId: "".concat(testId, "-close")
146
- })));
131
+ testId: testId
132
+ }))));
147
133
  };
148
134
  export default LinkInfo;
@@ -15,7 +15,7 @@ import LinkWarningModal from './LinkWarningModal';
15
15
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
16
16
  var PACKAGE_DATA = {
17
17
  packageName: "@atlaskit/smart-card",
18
- packageVersion: "43.4.2",
18
+ packageVersion: "43.4.3",
19
19
  componentName: 'linkUrl'
20
20
  };
21
21
  var Anchor = withLinkClickedEvent('a');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "43.4.3",
3
+ "version": "43.4.4",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/heading": "^5.2.0",
44
44
  "@atlaskit/icon": "^28.5.0",
45
45
  "@atlaskit/icon-file-type": "^7.0.0",
46
- "@atlaskit/icon-lab": "^5.10.0",
46
+ "@atlaskit/icon-lab": "^5.11.0",
47
47
  "@atlaskit/icon-object": "^7.3.0",
48
48
  "@atlaskit/icon-priority": "^6.3.0",
49
49
  "@atlaskit/image": "^3.0.0",
@@ -214,9 +214,6 @@
214
214
  "hover-card-on-visibility-change-callback": {
215
215
  "type": "boolean"
216
216
  },
217
- "navx-1895-a11y-close-button-in-preview-modal": {
218
- "type": "boolean"
219
- },
220
217
  "navx-1895-new-logo-design": {
221
218
  "type": "boolean"
222
219
  },