@atlaskit/link-datasource 4.24.2 → 4.25.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 +21 -0
- package/dist/cjs/services/getAvailableSites.js +1 -1
- package/dist/cjs/ui/common/modal/site-selector/index.js +3 -1
- package/dist/es2019/services/getAvailableSites.js +1 -1
- package/dist/es2019/ui/common/modal/site-selector/index.js +3 -1
- package/dist/esm/services/getAvailableSites.js +1 -1
- package/dist/esm/ui/common/modal/site-selector/index.js +3 -1
- package/package.json +11 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 4.25.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`687c1b8fa7801`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/687c1b8fa7801) -
|
|
8
|
+
EDITOR-1566 bump adf-schema + update validator
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- [`e6be88cf8f62d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e6be88cf8f62d) -
|
|
13
|
+
NAVX-1819 fixing site selector return types to match prod and updating mocks
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 4.24.3
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [`ebdf115a0cdfa`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ebdf115a0cdfa) -
|
|
21
|
+
[ux] NAVX-1845 Focus set onto the first interactive element of the modal dialog
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 4.24.2
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -93,7 +93,7 @@ var getAccessibleProducts = exports.getAccessibleProducts = /*#__PURE__*/functio
|
|
|
93
93
|
return response.json();
|
|
94
94
|
case 7:
|
|
95
95
|
res = _context2.sent;
|
|
96
|
-
return _context2.abrupt("return", (0, _hooks.mapAccessibleProductsToAvailableSites)(res));
|
|
96
|
+
return _context2.abrupt("return", (0, _hooks.mapAccessibleProductsToAvailableSites)(res.data));
|
|
97
97
|
case 9:
|
|
98
98
|
_context2.t0 = Error;
|
|
99
99
|
_context2.next = 12;
|
|
@@ -17,6 +17,7 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
17
17
|
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
18
18
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
19
19
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/chevron-down"));
|
|
20
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
21
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
21
22
|
var _select = require("@atlaskit/select");
|
|
22
23
|
var _messages = require("./messages");
|
|
@@ -83,7 +84,8 @@ var SiteSelector = exports.SiteSelector = function SiteSelector(props) {
|
|
|
83
84
|
size: "small"
|
|
84
85
|
});
|
|
85
86
|
},
|
|
86
|
-
testId: "".concat(testId, "__control")
|
|
87
|
+
testId: "".concat(testId, "__control"),
|
|
88
|
+
autoFocus: (0, _platformFeatureFlags.fg)('navx-1845-sllv-autofocus-first-interactive-element')
|
|
87
89
|
}), (selectedSiteOption === null || selectedSiteOption === void 0 ? void 0 : selectedSiteOption.label) || formatMessage(_messages.siteSelectorMessages.chooseSite));
|
|
88
90
|
}
|
|
89
91
|
})));
|
|
@@ -35,7 +35,7 @@ export const getAccessibleProducts = async product => {
|
|
|
35
35
|
const response = await fetch(`/gateway/api/v2/accessible-products`, requestConfig);
|
|
36
36
|
if (response.ok) {
|
|
37
37
|
const res = await response.json();
|
|
38
|
-
return mapAccessibleProductsToAvailableSites(res);
|
|
38
|
+
return mapAccessibleProductsToAvailableSites(res.data);
|
|
39
39
|
}
|
|
40
40
|
throw new Error((await response.text()) || 'Something went wrong');
|
|
41
41
|
};
|
|
@@ -8,6 +8,7 @@ import { useIntl } from 'react-intl-next';
|
|
|
8
8
|
import Button from '@atlaskit/button/new';
|
|
9
9
|
import Heading from '@atlaskit/heading';
|
|
10
10
|
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
12
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
12
13
|
import { PopupSelect } from '@atlaskit/select';
|
|
13
14
|
import { siteSelectorMessages } from './messages';
|
|
@@ -67,7 +68,8 @@ export const SiteSelector = props => {
|
|
|
67
68
|
color: "currentColor",
|
|
68
69
|
size: "small"
|
|
69
70
|
}),
|
|
70
|
-
testId: `${testId}__control
|
|
71
|
+
testId: `${testId}__control`,
|
|
72
|
+
autoFocus: fg('navx-1845-sllv-autofocus-first-interactive-element')
|
|
71
73
|
}), (selectedSiteOption === null || selectedSiteOption === void 0 ? void 0 : selectedSiteOption.label) || formatMessage(siteSelectorMessages.chooseSite))
|
|
72
74
|
})));
|
|
73
75
|
};
|
|
@@ -86,7 +86,7 @@ export var getAccessibleProducts = /*#__PURE__*/function () {
|
|
|
86
86
|
return response.json();
|
|
87
87
|
case 7:
|
|
88
88
|
res = _context2.sent;
|
|
89
|
-
return _context2.abrupt("return", mapAccessibleProductsToAvailableSites(res));
|
|
89
|
+
return _context2.abrupt("return", mapAccessibleProductsToAvailableSites(res.data));
|
|
90
90
|
case 9:
|
|
91
91
|
_context2.t0 = Error;
|
|
92
92
|
_context2.next = 12;
|
|
@@ -10,6 +10,7 @@ import { useIntl } from 'react-intl-next';
|
|
|
10
10
|
import Button from '@atlaskit/button/new';
|
|
11
11
|
import Heading from '@atlaskit/heading';
|
|
12
12
|
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
14
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
14
15
|
import { PopupSelect } from '@atlaskit/select';
|
|
15
16
|
import { siteSelectorMessages } from './messages';
|
|
@@ -74,7 +75,8 @@ export var SiteSelector = function SiteSelector(props) {
|
|
|
74
75
|
size: "small"
|
|
75
76
|
});
|
|
76
77
|
},
|
|
77
|
-
testId: "".concat(testId, "__control")
|
|
78
|
+
testId: "".concat(testId, "__control"),
|
|
79
|
+
autoFocus: fg('navx-1845-sllv-autofocus-first-interactive-element')
|
|
78
80
|
}), (selectedSiteOption === null || selectedSiteOption === void 0 ? void 0 : selectedSiteOption.label) || formatMessage(siteSelectorMessages.chooseSite));
|
|
79
81
|
}
|
|
80
82
|
})));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.25.0",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"ak-postbuild": "ls -d dist/* | xargs -n 1 copyfiles -u 1 -V src/**/*.{svg,png}"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@atlaskit/adf-schema": "^51.
|
|
39
|
+
"@atlaskit/adf-schema": "^51.2.0",
|
|
40
40
|
"@atlaskit/afm-i18n-platform-linking-platform-link-datasource": "2.7.0",
|
|
41
41
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
42
42
|
"@atlaskit/atlassian-context": "^0.6.0",
|
|
43
|
-
"@atlaskit/avatar": "^25.
|
|
43
|
+
"@atlaskit/avatar": "^25.2.0",
|
|
44
44
|
"@atlaskit/avatar-group": "^12.2.0",
|
|
45
45
|
"@atlaskit/badge": "^18.1.0",
|
|
46
46
|
"@atlaskit/button": "^23.4.0",
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"@atlaskit/empty-state": "^10.1.0",
|
|
52
52
|
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
53
53
|
"@atlaskit/flag": "^17.4.0",
|
|
54
|
-
"@atlaskit/form": "^14.
|
|
54
|
+
"@atlaskit/form": "^14.1.0",
|
|
55
55
|
"@atlaskit/heading": "^5.2.0",
|
|
56
|
-
"@atlaskit/icon": "^28.
|
|
56
|
+
"@atlaskit/icon": "^28.3.0",
|
|
57
57
|
"@atlaskit/icon-object": "^7.2.0",
|
|
58
58
|
"@atlaskit/image": "^3.0.0",
|
|
59
59
|
"@atlaskit/inline-edit": "^15.3.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@atlaskit/linking-types": "^14.0.0",
|
|
69
69
|
"@atlaskit/logo": "^19.7.0",
|
|
70
70
|
"@atlaskit/lozenge": "^13.0.0",
|
|
71
|
-
"@atlaskit/modal-dialog": "^14.
|
|
71
|
+
"@atlaskit/modal-dialog": "^14.4.0",
|
|
72
72
|
"@atlaskit/outbound-auth-flow-client": "^3.4.0",
|
|
73
73
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
74
74
|
"@atlaskit/popup": "^4.4.0",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"@atlaskit/primitives": "^14.15.0",
|
|
80
80
|
"@atlaskit/react-select": "^3.6.0",
|
|
81
81
|
"@atlaskit/select": "^21.3.0",
|
|
82
|
-
"@atlaskit/smart-card": "^42.
|
|
83
|
-
"@atlaskit/smart-user-picker": "^8.
|
|
82
|
+
"@atlaskit/smart-card": "^42.2.0",
|
|
83
|
+
"@atlaskit/smart-user-picker": "^8.3.0",
|
|
84
84
|
"@atlaskit/spinner": "^19.0.0",
|
|
85
85
|
"@atlaskit/tag": "^14.1.0",
|
|
86
86
|
"@atlaskit/textfield": "^8.0.0",
|
|
@@ -190,6 +190,9 @@
|
|
|
190
190
|
},
|
|
191
191
|
"navx-1819-link-create-confluence-site-migration": {
|
|
192
192
|
"type": "boolean"
|
|
193
|
+
},
|
|
194
|
+
"navx-1845-sllv-autofocus-first-interactive-element": {
|
|
195
|
+
"type": "boolean"
|
|
193
196
|
}
|
|
194
197
|
},
|
|
195
198
|
"compassUnitTestMetricSourceId": "ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/9c893299-a527-4457-9b46-f3bc4c828766"
|