@atlaskit/link-datasource 1.0.8 → 1.0.9

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,11 @@
1
1
  # @atlaskit/link-datasource
2
2
 
3
+ ## 1.0.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ee9ef928b39`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ee9ef928b39) - [ux] Link render types will now render on a new line
8
+
3
9
  ## 1.0.8
4
10
 
5
11
  ### Patch Changes
@@ -48,6 +48,7 @@ var fallbackRenderType = function fallbackRenderType(item) {
48
48
  return /*#__PURE__*/_react.default.createElement(_status.default, item.value);
49
49
  case 'string':
50
50
  return /*#__PURE__*/_react.default.createElement(_text.default, {
51
+ key: item.value,
51
52
  text: item.value
52
53
  });
53
54
  case 'tag':
@@ -60,7 +60,7 @@ var LinkRenderType = function LinkRenderType(_ref) {
60
60
  if (!url) {
61
61
  return null;
62
62
  }
63
- return text ? anchor : /*#__PURE__*/_react.default.createElement(SmartCard, null);
63
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, text ? anchor : /*#__PURE__*/_react.default.createElement(SmartCard, null), /*#__PURE__*/_react.default.createElement("br", null));
64
64
  };
65
65
  var _default = /*#__PURE__*/_react.default.memo(LinkRenderType);
66
66
  exports.default = _default;
@@ -344,7 +344,7 @@ var analyticsContextAttributes = {
344
344
  };
345
345
  var analyticsContextData = {
346
346
  packageName: "@atlaskit/link-datasource",
347
- packageVersion: "1.0.8",
347
+ packageVersion: "1.0.9",
348
348
  source: 'datasourceConfigModal'
349
349
  };
350
350
  var contextData = _objectSpread(_objectSpread({}, analyticsContextData), {}, {
@@ -41,6 +41,7 @@ export const fallbackRenderType = item => {
41
41
  return /*#__PURE__*/React.createElement(StatusRenderType, item.value);
42
42
  case 'string':
43
43
  return /*#__PURE__*/React.createElement(StringRenderType, {
44
+ key: item.value,
44
45
  text: item.value
45
46
  });
46
47
  case 'tag':
@@ -42,6 +42,6 @@ const LinkRenderType = ({
42
42
  if (!url) {
43
43
  return null;
44
44
  }
45
- return text ? anchor : /*#__PURE__*/React.createElement(SmartCard, null);
45
+ return /*#__PURE__*/React.createElement(React.Fragment, null, text ? anchor : /*#__PURE__*/React.createElement(SmartCard, null), /*#__PURE__*/React.createElement("br", null));
46
46
  };
47
47
  export default /*#__PURE__*/React.memo(LinkRenderType);
@@ -290,7 +290,7 @@ const analyticsContextAttributes = {
290
290
  };
291
291
  const analyticsContextData = {
292
292
  packageName: "@atlaskit/link-datasource",
293
- packageVersion: "1.0.8",
293
+ packageVersion: "1.0.9",
294
294
  source: 'datasourceConfigModal'
295
295
  };
296
296
  const contextData = {
@@ -41,6 +41,7 @@ export var fallbackRenderType = function fallbackRenderType(item) {
41
41
  return /*#__PURE__*/React.createElement(StatusRenderType, item.value);
42
42
  case 'string':
43
43
  return /*#__PURE__*/React.createElement(StringRenderType, {
44
+ key: item.value,
44
45
  text: item.value
45
46
  });
46
47
  case 'tag':
@@ -49,6 +49,6 @@ var LinkRenderType = function LinkRenderType(_ref) {
49
49
  if (!url) {
50
50
  return null;
51
51
  }
52
- return text ? anchor : /*#__PURE__*/React.createElement(SmartCard, null);
52
+ return /*#__PURE__*/React.createElement(React.Fragment, null, text ? anchor : /*#__PURE__*/React.createElement(SmartCard, null), /*#__PURE__*/React.createElement("br", null));
53
53
  };
54
54
  export default /*#__PURE__*/React.memo(LinkRenderType);
@@ -334,7 +334,7 @@ var analyticsContextAttributes = {
334
334
  };
335
335
  var analyticsContextData = {
336
336
  packageName: "@atlaskit/link-datasource",
337
- packageVersion: "1.0.8",
337
+ packageVersion: "1.0.9",
338
338
  source: 'datasourceConfigModal'
339
339
  };
340
340
  var contextData = _objectSpread(_objectSpread({}, analyticsContextData), {}, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "UI Components to support linking platform dataset feature",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"