@atlaskit/link-datasource 1.10.2 → 1.10.3
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 +6 -0
- package/dist/cjs/analytics/constants.js +1 -1
- package/dist/cjs/ui/assets-modal/modal/index.js +1 -1
- package/dist/cjs/ui/issue-like-table/render-type/link/index.js +5 -0
- package/dist/es2019/analytics/constants.js +1 -1
- package/dist/es2019/ui/assets-modal/modal/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/render-type/link/index.js +13 -6
- package/dist/esm/analytics/constants.js +1 -1
- package/dist/esm/ui/assets-modal/modal/index.js +1 -1
- package/dist/esm/ui/issue-like-table/render-type/link/index.js +5 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 1.10.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#42390](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42390) [`d1aa333bfce`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d1aa333bfce) - [ux] Enabled count view smart link preview in jira config modal to open in new tab on click
|
|
8
|
+
|
|
3
9
|
## 1.10.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -240,7 +240,7 @@ var analyticsContextAttributes = {
|
|
|
240
240
|
};
|
|
241
241
|
var analyticsContextData = {
|
|
242
242
|
packageName: "@atlaskit/link-datasource",
|
|
243
|
-
packageVersion: "1.10.
|
|
243
|
+
packageVersion: "1.10.3",
|
|
244
244
|
source: 'datasourceConfigModal'
|
|
245
245
|
};
|
|
246
246
|
var contextData = _objectSpread(_objectSpread({}, analyticsContextData), {}, {
|
|
@@ -49,8 +49,13 @@ var LinkRenderType = function LinkRenderType(_ref) {
|
|
|
49
49
|
}, text || url));
|
|
50
50
|
}, [linkStyle, url, text, testId]);
|
|
51
51
|
var SmartCard = function SmartCard() {
|
|
52
|
+
var handleClick = function handleClick(e) {
|
|
53
|
+
e.preventDefault();
|
|
54
|
+
window.open(url, '_blank', 'noopener, noreferrer');
|
|
55
|
+
};
|
|
52
56
|
return /*#__PURE__*/_react.default.createElement(_smartCard.Card, {
|
|
53
57
|
appearance: "inline",
|
|
58
|
+
onClick: handleClick,
|
|
54
59
|
url: url,
|
|
55
60
|
testId: testId,
|
|
56
61
|
fallbackComponent: function fallbackComponent() {
|
|
@@ -200,7 +200,7 @@ const analyticsContextAttributes = {
|
|
|
200
200
|
};
|
|
201
201
|
const analyticsContextData = {
|
|
202
202
|
packageName: "@atlaskit/link-datasource",
|
|
203
|
-
packageVersion: "1.10.
|
|
203
|
+
packageVersion: "1.10.3",
|
|
204
204
|
source: 'datasourceConfigModal'
|
|
205
205
|
};
|
|
206
206
|
const contextData = {
|
|
@@ -35,12 +35,19 @@ const LinkRenderType = ({
|
|
|
35
35
|
"data-testid": testId,
|
|
36
36
|
target: "_blank"
|
|
37
37
|
}, text || url)), [linkStyle, url, text, testId]);
|
|
38
|
-
const SmartCard = () =>
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
const SmartCard = () => {
|
|
39
|
+
const handleClick = e => {
|
|
40
|
+
e.preventDefault();
|
|
41
|
+
window.open(url, '_blank', 'noopener, noreferrer');
|
|
42
|
+
};
|
|
43
|
+
return /*#__PURE__*/React.createElement(Card, {
|
|
44
|
+
appearance: "inline",
|
|
45
|
+
onClick: handleClick,
|
|
46
|
+
url: url,
|
|
47
|
+
testId: testId,
|
|
48
|
+
fallbackComponent: () => anchor
|
|
49
|
+
});
|
|
50
|
+
};
|
|
44
51
|
|
|
45
52
|
// url can be undefined before data is fetched whilst adding new link column to display
|
|
46
53
|
if (!url) {
|
|
@@ -231,7 +231,7 @@ var analyticsContextAttributes = {
|
|
|
231
231
|
};
|
|
232
232
|
var analyticsContextData = {
|
|
233
233
|
packageName: "@atlaskit/link-datasource",
|
|
234
|
-
packageVersion: "1.10.
|
|
234
|
+
packageVersion: "1.10.3",
|
|
235
235
|
source: 'datasourceConfigModal'
|
|
236
236
|
};
|
|
237
237
|
var contextData = _objectSpread(_objectSpread({}, analyticsContextData), {}, {
|
|
@@ -39,8 +39,13 @@ var LinkRenderType = function LinkRenderType(_ref) {
|
|
|
39
39
|
}, text || url));
|
|
40
40
|
}, [linkStyle, url, text, testId]);
|
|
41
41
|
var SmartCard = function SmartCard() {
|
|
42
|
+
var handleClick = function handleClick(e) {
|
|
43
|
+
e.preventDefault();
|
|
44
|
+
window.open(url, '_blank', 'noopener, noreferrer');
|
|
45
|
+
};
|
|
42
46
|
return /*#__PURE__*/React.createElement(Card, {
|
|
43
47
|
appearance: "inline",
|
|
48
|
+
onClick: handleClick,
|
|
44
49
|
url: url,
|
|
45
50
|
testId: testId,
|
|
46
51
|
fallbackComponent: function fallbackComponent() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.3",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@atlaskit/jql-ast": "^3.0.0",
|
|
46
46
|
"@atlaskit/jql-editor-autocomplete-rest": "^2.0.0",
|
|
47
47
|
"@atlaskit/link-client-extension": "^1.8.0",
|
|
48
|
-
"@atlaskit/linking-common": "^4.
|
|
48
|
+
"@atlaskit/linking-common": "^4.13.0",
|
|
49
49
|
"@atlaskit/linking-types": "^8.4.0",
|
|
50
50
|
"@atlaskit/lozenge": "^11.4.0",
|
|
51
51
|
"@atlaskit/modal-dialog": "^12.8.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@atlaskit/pragmatic-drag-and-drop-react-indicator": "^0.16.0",
|
|
57
57
|
"@atlaskit/primitives": "^1.8.0",
|
|
58
58
|
"@atlaskit/select": "^16.7.0",
|
|
59
|
-
"@atlaskit/smart-card": "^26.
|
|
59
|
+
"@atlaskit/smart-card": "^26.41.0",
|
|
60
60
|
"@atlaskit/spinner": "^15.6.0",
|
|
61
61
|
"@atlaskit/tag": "^11.6.0",
|
|
62
62
|
"@atlaskit/textfield": "5.6.8",
|