@atlaskit/smart-card 38.9.3 → 38.10.0

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
+ ## 38.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#172142](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/172142)
8
+ [`8073537f9214d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8073537f9214d) -
9
+ Clearing `expandable_smart_links_for_scorecards_v2` feature-gate after release
10
+
3
11
  ## 38.9.3
4
12
 
5
13
  ### Patch Changes
@@ -63,25 +63,17 @@ var getSimulatedBetterMetadata = exports.getSimulatedBetterMetadata = function g
63
63
  bottomMetadata: defaultBottomMetadata
64
64
  };
65
65
  case 'dragonfruit-object-provider':
66
- if ((0, _platformFeatureFlags.fg)('expandable_smart_links_for_scorecards_v2')) {
67
- return {
68
- titleMetadata: defaultTitleMetadata,
69
- topMetadata: (0, _utils.extractOwnedBy)(data) ? [{
70
- name: _constants.ElementName.OwnedByGroup
71
- }, {
72
- name: _constants.ElementName.OwnedBy
73
- }].concat(baseTopMetadata) : defaultTopMetadata,
74
- bottomMetadata: [{
75
- name: _constants.ElementName.AppliedToComponentsCount
76
- }].concat(baseBottomMetaData)
77
- };
78
- } else {
79
- return {
80
- titleMetadata: defaultTitleMetadata,
81
- topMetadata: defaultTopMetadata,
82
- bottomMetadata: defaultBottomMetadata
83
- };
84
- }
66
+ return {
67
+ titleMetadata: defaultTitleMetadata,
68
+ topMetadata: (0, _utils.extractOwnedBy)(data) ? [{
69
+ name: _constants.ElementName.OwnedByGroup
70
+ }, {
71
+ name: _constants.ElementName.OwnedBy
72
+ }].concat(baseTopMetadata) : defaultTopMetadata,
73
+ bottomMetadata: [{
74
+ name: _constants.ElementName.AppliedToComponentsCount
75
+ }].concat(baseBottomMetaData)
76
+ };
85
77
  case 'confluence-object-provider':
86
78
  return {
87
79
  titleMetadata: defaultTitleMetadata,
@@ -57,25 +57,17 @@ export const getSimulatedBetterMetadata = cardDetails => {
57
57
  bottomMetadata: defaultBottomMetadata
58
58
  };
59
59
  case 'dragonfruit-object-provider':
60
- if (fg('expandable_smart_links_for_scorecards_v2')) {
61
- return {
62
- titleMetadata: defaultTitleMetadata,
63
- topMetadata: extractOwnedBy(data) ? [{
64
- name: ElementName.OwnedByGroup
65
- }, {
66
- name: ElementName.OwnedBy
67
- }, ...baseTopMetadata] : defaultTopMetadata,
68
- bottomMetadata: [{
69
- name: ElementName.AppliedToComponentsCount
70
- }, ...baseBottomMetaData]
71
- };
72
- } else {
73
- return {
74
- titleMetadata: defaultTitleMetadata,
75
- topMetadata: defaultTopMetadata,
76
- bottomMetadata: defaultBottomMetadata
77
- };
78
- }
60
+ return {
61
+ titleMetadata: defaultTitleMetadata,
62
+ topMetadata: extractOwnedBy(data) ? [{
63
+ name: ElementName.OwnedByGroup
64
+ }, {
65
+ name: ElementName.OwnedBy
66
+ }, ...baseTopMetadata] : defaultTopMetadata,
67
+ bottomMetadata: [{
68
+ name: ElementName.AppliedToComponentsCount
69
+ }, ...baseBottomMetaData]
70
+ };
79
71
  case 'confluence-object-provider':
80
72
  return {
81
73
  titleMetadata: defaultTitleMetadata,
@@ -57,25 +57,17 @@ export var getSimulatedBetterMetadata = function getSimulatedBetterMetadata(card
57
57
  bottomMetadata: defaultBottomMetadata
58
58
  };
59
59
  case 'dragonfruit-object-provider':
60
- if (fg('expandable_smart_links_for_scorecards_v2')) {
61
- return {
62
- titleMetadata: defaultTitleMetadata,
63
- topMetadata: extractOwnedBy(data) ? [{
64
- name: ElementName.OwnedByGroup
65
- }, {
66
- name: ElementName.OwnedBy
67
- }].concat(baseTopMetadata) : defaultTopMetadata,
68
- bottomMetadata: [{
69
- name: ElementName.AppliedToComponentsCount
70
- }].concat(baseBottomMetaData)
71
- };
72
- } else {
73
- return {
74
- titleMetadata: defaultTitleMetadata,
75
- topMetadata: defaultTopMetadata,
76
- bottomMetadata: defaultBottomMetadata
77
- };
78
- }
60
+ return {
61
+ titleMetadata: defaultTitleMetadata,
62
+ topMetadata: extractOwnedBy(data) ? [{
63
+ name: ElementName.OwnedByGroup
64
+ }, {
65
+ name: ElementName.OwnedBy
66
+ }].concat(baseTopMetadata) : defaultTopMetadata,
67
+ bottomMetadata: [{
68
+ name: ElementName.AppliedToComponentsCount
69
+ }].concat(baseBottomMetaData)
70
+ };
79
71
  case 'confluence-object-provider':
80
72
  return {
81
73
  titleMetadata: defaultTitleMetadata,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "38.9.3",
3
+ "version": "38.10.0",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -187,9 +187,6 @@
187
187
  "smart_links_for_plans_platform": {
188
188
  "type": "boolean"
189
189
  },
190
- "expandable_smart_links_for_scorecards_v2": {
191
- "type": "boolean"
192
- },
193
190
  "platform_bandicoots-smartlink-unresolved-error-key": {
194
191
  "type": "boolean"
195
192
  },