@atlaskit/smart-card 46.8.0 → 46.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 46.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c42a7e002d68c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c42a7e002d68c) -
8
+ Remove the released billplat_a11y_icon_label_fix gate and always give Confluence and Jira
9
+ decorative icons an empty label.
10
+
3
11
  ## 46.8.0
4
12
 
5
13
  ### Minor Changes
@@ -25,7 +25,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
25
25
  var context = exports.context = {
26
26
  componentName: 'smart-cards',
27
27
  packageName: "@atlaskit/smart-card" || '',
28
- packageVersion: "46.7.8" || ''
28
+ packageVersion: "46.8.0" || ''
29
29
  };
30
30
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
31
31
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -148,23 +148,19 @@ var AtlaskitIcon = function AtlaskitIcon(_ref) {
148
148
  }
149
149
  switch (icon) {
150
150
  case _constants.IconType.Confluence:
151
- return /*#__PURE__*/_react.default.createElement(_confluenceIcon.ConfluenceIcon, (0, _extends2.default)({
151
+ return /*#__PURE__*/_react.default.createElement(_confluenceIcon.ConfluenceIcon, {
152
152
  appearance: "brand",
153
- testId: testId
154
- }, (0, _fg.fg)('billplat_a11y_icon_label_fix') ? {
155
- label: ''
156
- } : undefined, {
153
+ testId: testId,
154
+ label: "",
157
155
  size: size === _constants.SmartLinkSize.Large || size === _constants.SmartLinkSize.XLarge ? 'small' : 'xxsmall'
158
- }));
156
+ });
159
157
  case _constants.IconType.Jira:
160
- return /*#__PURE__*/_react.default.createElement(_jiraIcon.JiraIcon, (0, _extends2.default)({
158
+ return /*#__PURE__*/_react.default.createElement(_jiraIcon.JiraIcon, {
161
159
  appearance: "brand",
162
- testId: testId
163
- }, (0, _fg.fg)('billplat_a11y_icon_label_fix') ? {
164
- label: ''
165
- } : undefined, {
160
+ testId: testId,
161
+ label: "",
166
162
  size: size === _constants.SmartLinkSize.Large || size === _constants.SmartLinkSize.XLarge ? 'small' : 'xxsmall'
167
- }));
163
+ });
168
164
  case _constants.IconType.Error:
169
165
  case _constants.IconType.Forbidden:
170
166
  return /*#__PURE__*/_react.default.createElement(ImportedIcon, {
@@ -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: "46.7.8",
22
+ packageVersion: "46.8.0",
23
23
  componentName: 'linkUrl'
24
24
  };
25
25
  var LinkUrl = function LinkUrl(_ref) {
@@ -4,7 +4,7 @@ export const ANALYTICS_CHANNEL = 'media';
4
4
  export const context = {
5
5
  componentName: 'smart-cards',
6
6
  packageName: "@atlaskit/smart-card" || '',
7
- packageVersion: "46.7.8" || ''
7
+ packageVersion: "46.8.0" || ''
8
8
  };
9
9
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -127,23 +127,19 @@ const AtlaskitIcon = ({
127
127
  }
128
128
  switch (icon) {
129
129
  case IconType.Confluence:
130
- return /*#__PURE__*/React.createElement(ConfluenceIcon, _extends({
130
+ return /*#__PURE__*/React.createElement(ConfluenceIcon, {
131
131
  appearance: "brand",
132
- testId: testId
133
- }, fg('billplat_a11y_icon_label_fix') ? {
134
- label: ''
135
- } : undefined, {
132
+ testId: testId,
133
+ label: "",
136
134
  size: size === SmartLinkSize.Large || size === SmartLinkSize.XLarge ? 'small' : 'xxsmall'
137
- }));
135
+ });
138
136
  case IconType.Jira:
139
- return /*#__PURE__*/React.createElement(JiraIcon, _extends({
137
+ return /*#__PURE__*/React.createElement(JiraIcon, {
140
138
  appearance: "brand",
141
- testId: testId
142
- }, fg('billplat_a11y_icon_label_fix') ? {
143
- label: ''
144
- } : undefined, {
139
+ testId: testId,
140
+ label: "",
145
141
  size: size === SmartLinkSize.Large || size === SmartLinkSize.XLarge ? 'small' : 'xxsmall'
146
- }));
142
+ });
147
143
  case IconType.Error:
148
144
  case IconType.Forbidden:
149
145
  return /*#__PURE__*/React.createElement(ImportedIcon, {
@@ -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: "46.7.8",
12
+ packageVersion: "46.8.0",
13
13
  componentName: 'linkUrl'
14
14
  };
15
15
  const LinkUrl = ({
@@ -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: "46.7.8" || ''
7
+ packageVersion: "46.8.0" || ''
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -141,23 +141,19 @@ var AtlaskitIcon = function AtlaskitIcon(_ref) {
141
141
  }
142
142
  switch (icon) {
143
143
  case IconType.Confluence:
144
- return /*#__PURE__*/React.createElement(ConfluenceIcon, _extends({
144
+ return /*#__PURE__*/React.createElement(ConfluenceIcon, {
145
145
  appearance: "brand",
146
- testId: testId
147
- }, fg('billplat_a11y_icon_label_fix') ? {
148
- label: ''
149
- } : undefined, {
146
+ testId: testId,
147
+ label: "",
150
148
  size: size === SmartLinkSize.Large || size === SmartLinkSize.XLarge ? 'small' : 'xxsmall'
151
- }));
149
+ });
152
150
  case IconType.Jira:
153
- return /*#__PURE__*/React.createElement(JiraIcon, _extends({
151
+ return /*#__PURE__*/React.createElement(JiraIcon, {
154
152
  appearance: "brand",
155
- testId: testId
156
- }, fg('billplat_a11y_icon_label_fix') ? {
157
- label: ''
158
- } : undefined, {
153
+ testId: testId,
154
+ label: "",
159
155
  size: size === SmartLinkSize.Large || size === SmartLinkSize.XLarge ? 'small' : 'xxsmall'
160
- }));
156
+ });
161
157
  case IconType.Error:
162
158
  case IconType.Forbidden:
163
159
  return /*#__PURE__*/React.createElement(ImportedIcon, {
@@ -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: "46.7.8",
15
+ packageVersion: "46.8.0",
16
16
  componentName: 'linkUrl'
17
17
  };
18
18
  var LinkUrl = function LinkUrl(_ref) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "46.8.0",
3
+ "version": "46.8.1",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -220,10 +220,6 @@
220
220
  "platform_lp_non_bold_large_sl_icon": {
221
221
  "type": "boolean"
222
222
  },
223
- "billplat_a11y_icon_label_fix": {
224
- "type": "boolean",
225
- "referenceOnly": true
226
- },
227
223
  "platform-dst-lozenge-tag-badge-visual-uplifts": {
228
224
  "type": "boolean"
229
225
  },