@atlaskit/link-datasource 6.1.6 → 6.1.7

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,15 @@
1
1
  # @atlaskit/link-datasource
2
2
 
3
+ ## 6.1.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`332865f80eb91`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/332865f80eb91) -
8
+ Migrate deprecated Lozenge appearance values to the new semantic appearances, and migrate
9
+ deprecated `SimpleTag`/`RemovableTag` to the default `Tag` export (SimpleTag with
10
+ `isRemovable={false}`).
11
+ - Updated dependencies
12
+
3
13
  ## 6.1.6
4
14
 
5
15
  ### Patch Changes
@@ -39,7 +39,7 @@ var InitialStateView = exports.InitialStateView = function InitialStateView(_ref
39
39
  }, showBeta && /*#__PURE__*/React.createElement("div", {
40
40
  className: (0, _runtime.ax)(["_1e0c1txw"])
41
41
  }, /*#__PURE__*/React.createElement(_lozenge.default, {
42
- appearance: "new"
42
+ appearance: "discovery"
43
43
  }, /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, _messages.initialStateViewMessages.beta))), formatMessage(title)), /*#__PURE__*/React.createElement("div", {
44
44
  className: (0, _runtime.ax)(["_syazazsu"])
45
45
  }, formatMessage(description)), learnMoreLink ? /*#__PURE__*/React.createElement(_link.default, {
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = exports.TAG_TYPE_TEST_ID = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
- var _tag = require("@atlaskit/tag");
9
+ var _tag = _interopRequireDefault(require("@atlaskit/tag"));
10
10
  var TAG_TYPE_TEST_ID = exports.TAG_TYPE_TEST_ID = 'link-datasource-render-type--tag';
11
11
  var TagRenderType = function TagRenderType(_ref) {
12
12
  var _tag$color;
@@ -17,12 +17,13 @@ var TagRenderType = function TagRenderType(_ref) {
17
17
  if (!(text && typeof text === 'string')) {
18
18
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
19
19
  }
20
- return /*#__PURE__*/_react.default.createElement(_tag.SimpleTag, {
20
+ return /*#__PURE__*/_react.default.createElement(_tag.default, {
21
21
  text: text,
22
22
  testId: testId,
23
23
  appearance: 'default',
24
24
  color: (_tag$color = tag === null || tag === void 0 ? void 0 : tag.color) !== null && _tag$color !== void 0 ? _tag$color : 'standard',
25
- href: tag === null || tag === void 0 ? void 0 : tag.url
25
+ href: tag === null || tag === void 0 ? void 0 : tag.url,
26
+ isRemovable: false
26
27
  });
27
28
  };
28
29
  var _default = exports.default = TagRenderType;
@@ -31,7 +31,7 @@ export const InitialStateView = ({
31
31
  }, showBeta && /*#__PURE__*/React.createElement("div", {
32
32
  className: ax(["_1e0c1txw"])
33
33
  }, /*#__PURE__*/React.createElement(Lozenge, {
34
- appearance: "new"
34
+ appearance: "discovery"
35
35
  }, /*#__PURE__*/React.createElement(FormattedMessage, initialStateViewMessages.beta))), formatMessage(title)), /*#__PURE__*/React.createElement("div", {
36
36
  className: ax(["_syazazsu"])
37
37
  }, formatMessage(description)), learnMoreLink ? /*#__PURE__*/React.createElement(Link, {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SimpleTag as Tag } from '@atlaskit/tag';
2
+ import Tag from '@atlaskit/tag';
3
3
  export const TAG_TYPE_TEST_ID = 'link-datasource-render-type--tag';
4
4
  const TagRenderType = ({
5
5
  tag,
@@ -15,7 +15,8 @@ const TagRenderType = ({
15
15
  testId: testId,
16
16
  appearance: 'default',
17
17
  color: (_tag$color = tag === null || tag === void 0 ? void 0 : tag.color) !== null && _tag$color !== void 0 ? _tag$color : 'standard',
18
- href: tag === null || tag === void 0 ? void 0 : tag.url
18
+ href: tag === null || tag === void 0 ? void 0 : tag.url,
19
+ isRemovable: false
19
20
  });
20
21
  };
21
22
  export default TagRenderType;
@@ -30,7 +30,7 @@ export var InitialStateView = function InitialStateView(_ref) {
30
30
  }, showBeta && /*#__PURE__*/React.createElement("div", {
31
31
  className: ax(["_1e0c1txw"])
32
32
  }, /*#__PURE__*/React.createElement(Lozenge, {
33
- appearance: "new"
33
+ appearance: "discovery"
34
34
  }, /*#__PURE__*/React.createElement(FormattedMessage, initialStateViewMessages.beta))), formatMessage(title)), /*#__PURE__*/React.createElement("div", {
35
35
  className: ax(["_syazazsu"])
36
36
  }, formatMessage(description)), learnMoreLink ? /*#__PURE__*/React.createElement(Link, {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SimpleTag as Tag } from '@atlaskit/tag';
2
+ import Tag from '@atlaskit/tag';
3
3
  export var TAG_TYPE_TEST_ID = 'link-datasource-render-type--tag';
4
4
  var TagRenderType = function TagRenderType(_ref) {
5
5
  var _tag$color;
@@ -15,7 +15,8 @@ var TagRenderType = function TagRenderType(_ref) {
15
15
  testId: testId,
16
16
  appearance: 'default',
17
17
  color: (_tag$color = tag === null || tag === void 0 ? void 0 : tag.color) !== null && _tag$color !== void 0 ? _tag$color : 'standard',
18
- href: tag === null || tag === void 0 ? void 0 : tag.url
18
+ href: tag === null || tag === void 0 ? void 0 : tag.url,
19
+ isRemovable: false
19
20
  });
20
21
  };
21
22
  export default TagRenderType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "6.1.6",
3
+ "version": "6.1.7",
4
4
  "description": "UI Components to support linking platform dataset feature",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -83,7 +83,7 @@
83
83
  "@atlaskit/smart-card": "^45.9.0",
84
84
  "@atlaskit/smart-user-picker": "^11.0.0",
85
85
  "@atlaskit/spinner": "^20.1.0",
86
- "@atlaskit/tag": "^15.2.0",
86
+ "@atlaskit/tag": "^15.3.0",
87
87
  "@atlaskit/textfield": "^9.1.0",
88
88
  "@atlaskit/theme": "^26.1.0",
89
89
  "@atlaskit/tokens": "^15.8.0",