@atlaskit/link-datasource 6.1.5 → 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 +25 -0
- package/dist/cjs/hooks/useDatasourceTableState.js +2 -2
- package/dist/cjs/ui/common/initial-state-view/index.js +1 -1
- package/dist/cjs/ui/issue-like-table/render-type/tag/index.js +4 -3
- package/dist/es2019/hooks/useDatasourceTableState.js +1 -1
- package/dist/es2019/ui/common/initial-state-view/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/render-type/tag/index.js +3 -2
- package/dist/esm/hooks/useDatasourceTableState.js +1 -1
- package/dist/esm/ui/common/initial-state-view/index.js +1 -1
- package/dist/esm/ui/issue-like-table/render-type/tag/index.js +3 -2
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
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
|
+
|
|
13
|
+
## 6.1.6
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [`b1cf9e336f0f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b1cf9e336f0f0) -
|
|
18
|
+
Migrate consumers of @atlaskit/atlassian-context from barrel imports to direct subpath imports,
|
|
19
|
+
and remove the deprecated `./domain-lookup`, `./generalized-domain-lookup`, and `./perimeter`
|
|
20
|
+
entry-point exports (all symbols remain available via their per-export subpaths).
|
|
21
|
+
|
|
22
|
+
Also extends the `no-restricted-fedramp-imports` ESLint rule to cover the new
|
|
23
|
+
`@atlaskit/atlassian-context/is-fedramp` and `@atlaskit/atlassian-context/is-isolated-cloud`
|
|
24
|
+
subpaths, so the FedRamp/IsolatedCloud deprecation guardrail keeps firing after the migration.
|
|
25
|
+
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
|
|
3
28
|
## 6.1.5
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
@@ -11,7 +11,7 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
11
11
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
12
|
var _react = require("react");
|
|
13
13
|
var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
|
|
14
|
-
var
|
|
14
|
+
var _isFedramp = require("@atlaskit/atlassian-context/is-fedramp");
|
|
15
15
|
var _linkClientExtension = require("@atlaskit/link-client-extension");
|
|
16
16
|
var _analytics = require("../analytics");
|
|
17
17
|
var _state = require("../state");
|
|
@@ -328,7 +328,7 @@ var useDatasourceTableState = exports.useDatasourceTableState = function useData
|
|
|
328
328
|
setResponseItemIds(function (currentIds) {
|
|
329
329
|
return [].concat((0, _toConsumableArray2.default)(currentIds), (0, _toConsumableArray2.default)(newIds));
|
|
330
330
|
});
|
|
331
|
-
if (!(0,
|
|
331
|
+
if (!(0, _isFedramp.isFedRamp)()) {
|
|
332
332
|
if (typeof integrationKey === 'string') {
|
|
333
333
|
aris = items.reduce(function (acc, item) {
|
|
334
334
|
var _item$ari;
|
|
@@ -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: "
|
|
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.
|
|
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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
2
2
|
import isEqual from 'lodash/isEqual';
|
|
3
|
-
import { isFedRamp } from '@atlaskit/atlassian-context';
|
|
3
|
+
import { isFedRamp } from '@atlaskit/atlassian-context/is-fedramp';
|
|
4
4
|
import { DEFAULT_GET_DATASOURCE_DATA_PAGE_SIZE, useDatasourceClientExtension } from '@atlaskit/link-client-extension';
|
|
5
5
|
import { useDatasourceAnalyticsEvents } from '../analytics';
|
|
6
6
|
import { useDatasourceActions } from '../state';
|
|
@@ -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: "
|
|
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
|
|
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;
|
|
@@ -4,7 +4,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
4
4
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
5
5
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
6
6
|
import isEqual from 'lodash/isEqual';
|
|
7
|
-
import { isFedRamp } from '@atlaskit/atlassian-context';
|
|
7
|
+
import { isFedRamp } from '@atlaskit/atlassian-context/is-fedramp';
|
|
8
8
|
import { DEFAULT_GET_DATASOURCE_DATA_PAGE_SIZE, useDatasourceClientExtension } from '@atlaskit/link-client-extension';
|
|
9
9
|
import { useDatasourceAnalyticsEvents } from '../analytics';
|
|
10
10
|
import { useDatasourceActions } from '../state';
|
|
@@ -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: "
|
|
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
|
|
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.
|
|
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",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@atlaskit/adf-schema": "^56.1.0",
|
|
39
39
|
"@atlaskit/afm-i18n-platform-linking-platform-link-datasource": "2.7.0",
|
|
40
|
-
"@atlaskit/analytics-next": "^12.
|
|
41
|
-
"@atlaskit/atlassian-context": "^1.
|
|
40
|
+
"@atlaskit/analytics-next": "^12.3.0",
|
|
41
|
+
"@atlaskit/atlassian-context": "^1.1.0",
|
|
42
42
|
"@atlaskit/avatar": "^26.1.0",
|
|
43
43
|
"@atlaskit/avatar-group": "^13.1.0",
|
|
44
44
|
"@atlaskit/badge": "^19.1.0",
|
|
@@ -53,14 +53,14 @@
|
|
|
53
53
|
"@atlaskit/form": "^16.1.0",
|
|
54
54
|
"@atlaskit/heading": "^6.2.0",
|
|
55
55
|
"@atlaskit/icon": "^37.0.0",
|
|
56
|
-
"@atlaskit/image": "^4.
|
|
56
|
+
"@atlaskit/image": "^4.2.0",
|
|
57
57
|
"@atlaskit/inline-edit": "^16.2.0",
|
|
58
58
|
"@atlaskit/intl-messages-provider": "^4.1.0",
|
|
59
59
|
"@atlaskit/jql-ast": "^4.0.0",
|
|
60
|
-
"@atlaskit/jql-editor": "^7.
|
|
60
|
+
"@atlaskit/jql-editor": "^7.3.0",
|
|
61
61
|
"@atlaskit/jql-editor-autocomplete-rest": "^4.2.0",
|
|
62
62
|
"@atlaskit/layering": "^4.1.0",
|
|
63
|
-
"@atlaskit/link": "^4.
|
|
63
|
+
"@atlaskit/link": "^4.3.0",
|
|
64
64
|
"@atlaskit/link-client-extension": "^7.1.0",
|
|
65
65
|
"@atlaskit/link-provider": "^5.2.0",
|
|
66
66
|
"@atlaskit/linking-common": "^11.0.0",
|
|
@@ -69,24 +69,24 @@
|
|
|
69
69
|
"@atlaskit/lozenge": "^14.1.0",
|
|
70
70
|
"@atlaskit/modal-dialog": "^16.1.0",
|
|
71
71
|
"@atlaskit/object": "^2.2.0",
|
|
72
|
-
"@atlaskit/outbound-auth-flow-client": "^4.
|
|
72
|
+
"@atlaskit/outbound-auth-flow-client": "^4.1.0",
|
|
73
73
|
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
74
74
|
"@atlaskit/popup": "^5.1.0",
|
|
75
75
|
"@atlaskit/pragmatic-drag-and-drop": "^2.0.0",
|
|
76
76
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^2.0.0",
|
|
77
77
|
"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^3.0.0",
|
|
78
78
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^4.1.0",
|
|
79
|
-
"@atlaskit/primitives": "^20.
|
|
79
|
+
"@atlaskit/primitives": "^20.6.0",
|
|
80
80
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
81
81
|
"@atlaskit/react-select": "^4.5.0",
|
|
82
82
|
"@atlaskit/select": "^22.5.0",
|
|
83
|
-
"@atlaskit/smart-card": "^45.
|
|
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.
|
|
86
|
+
"@atlaskit/tag": "^15.3.0",
|
|
87
87
|
"@atlaskit/textfield": "^9.1.0",
|
|
88
88
|
"@atlaskit/theme": "^26.1.0",
|
|
89
|
-
"@atlaskit/tokens": "^15.
|
|
89
|
+
"@atlaskit/tokens": "^15.8.0",
|
|
90
90
|
"@atlaskit/tooltip": "^23.1.0",
|
|
91
91
|
"@atlaskit/ufo": "^1.0.0",
|
|
92
92
|
"@atlaskit/visually-hidden": "^4.1.0",
|