@atlaskit/link-datasource 1.28.1 → 1.28.2
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,12 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 1.28.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426) [`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) - Bump adf-schema to 35.9.2 to support table alignment options
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 1.28.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -50,15 +50,15 @@ var PopupTrigger = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
50
50
|
firstOption = _ref3[0];
|
|
51
51
|
var hasOptions = selectedOptions && selectedOptions.length > 0;
|
|
52
52
|
var showButtonLoading = !isDisabled && isLoading;
|
|
53
|
-
var
|
|
53
|
+
var triggerButtonTestId = "".concat(testId, "-trigger");
|
|
54
54
|
var LoadingButton = (0, _react.useCallback)(function () {
|
|
55
55
|
return /*#__PURE__*/_react.default.createElement(LoadingStateAnimationWrapper, null, /*#__PURE__*/_react.default.createElement(_standardButton.default, {
|
|
56
56
|
iconAfter: /*#__PURE__*/_react.default.createElement(_spinner.default, {
|
|
57
57
|
size: 'xsmall'
|
|
58
58
|
}),
|
|
59
|
-
testId: "".concat(
|
|
59
|
+
testId: "".concat(triggerButtonTestId, "--loading-button")
|
|
60
60
|
}, label));
|
|
61
|
-
}, [label,
|
|
61
|
+
}, [label, triggerButtonTestId]);
|
|
62
62
|
var DefaultButton = (0, _react.useCallback)(function () {
|
|
63
63
|
return /*#__PURE__*/_react.default.createElement(_standardButton.default, {
|
|
64
64
|
appearance: "default",
|
|
@@ -67,7 +67,7 @@ var PopupTrigger = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
67
67
|
iconAfter: /*#__PURE__*/_react.default.createElement(_chevronDown.default, {
|
|
68
68
|
label: ""
|
|
69
69
|
}),
|
|
70
|
-
testId: "".concat(
|
|
70
|
+
testId: "".concat(triggerButtonTestId, "--button")
|
|
71
71
|
}, /*#__PURE__*/_react.default.createElement(_primitives.Flex, null, /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
72
72
|
xcss: triggerButtonLabelStyles
|
|
73
73
|
}, label, firstOption && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, ": ", firstOption.label)), selectedOptions && selectedOptions.length > 1 && /*#__PURE__*/_react.default.createElement(_primitives.Flex, {
|
|
@@ -76,7 +76,7 @@ var PopupTrigger = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
76
76
|
}, /*#__PURE__*/_react.default.createElement(_badge.default, {
|
|
77
77
|
appearance: "primary"
|
|
78
78
|
}, "+", selectedOptions.length - 1))));
|
|
79
|
-
}, [firstOption, hasOptions, isDisabled, isSelected, label, selectedOptions,
|
|
79
|
+
}, [firstOption, hasOptions, isDisabled, isSelected, label, selectedOptions, triggerButtonTestId]);
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
82
|
* We had an issue with the popup component referencing a stale DOM ref for the trigger button.
|
|
@@ -84,7 +84,7 @@ var PopupTrigger = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
84
84
|
*/
|
|
85
85
|
return /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
86
86
|
ref: ref,
|
|
87
|
-
testId:
|
|
87
|
+
testId: triggerButtonTestId
|
|
88
88
|
}, showButtonLoading ? /*#__PURE__*/_react.default.createElement(LoadingButton, null) : /*#__PURE__*/_react.default.createElement(DefaultButton, null));
|
|
89
89
|
});
|
|
90
90
|
var _default = exports.default = PopupTrigger;
|
|
@@ -38,13 +38,13 @@ const PopupTrigger = /*#__PURE__*/forwardRef(({
|
|
|
38
38
|
const [firstOption] = selectedOptions || [];
|
|
39
39
|
const hasOptions = selectedOptions && selectedOptions.length > 0;
|
|
40
40
|
const showButtonLoading = !isDisabled && isLoading;
|
|
41
|
-
const
|
|
41
|
+
const triggerButtonTestId = `${testId}-trigger`;
|
|
42
42
|
const LoadingButton = useCallback(() => /*#__PURE__*/React.createElement(LoadingStateAnimationWrapper, null, /*#__PURE__*/React.createElement(Button, {
|
|
43
43
|
iconAfter: /*#__PURE__*/React.createElement(Spinner, {
|
|
44
44
|
size: 'xsmall'
|
|
45
45
|
}),
|
|
46
|
-
testId: `${
|
|
47
|
-
}, label)), [label,
|
|
46
|
+
testId: `${triggerButtonTestId}--loading-button`
|
|
47
|
+
}, label)), [label, triggerButtonTestId]);
|
|
48
48
|
const DefaultButton = useCallback(() => /*#__PURE__*/React.createElement(Button, {
|
|
49
49
|
appearance: "default",
|
|
50
50
|
isSelected: isSelected || hasOptions,
|
|
@@ -52,7 +52,7 @@ const PopupTrigger = /*#__PURE__*/forwardRef(({
|
|
|
52
52
|
iconAfter: /*#__PURE__*/React.createElement(ChevronDownIcon, {
|
|
53
53
|
label: ""
|
|
54
54
|
}),
|
|
55
|
-
testId: `${
|
|
55
|
+
testId: `${triggerButtonTestId}--button`
|
|
56
56
|
}, /*#__PURE__*/React.createElement(Flex, null, /*#__PURE__*/React.createElement(Box, {
|
|
57
57
|
xcss: triggerButtonLabelStyles
|
|
58
58
|
}, label, firstOption && /*#__PURE__*/React.createElement(React.Fragment, null, ": ", firstOption.label)), selectedOptions && selectedOptions.length > 1 && /*#__PURE__*/React.createElement(Flex, {
|
|
@@ -60,7 +60,7 @@ const PopupTrigger = /*#__PURE__*/forwardRef(({
|
|
|
60
60
|
alignItems: "center"
|
|
61
61
|
}, /*#__PURE__*/React.createElement(Badge, {
|
|
62
62
|
appearance: "primary"
|
|
63
|
-
}, "+", selectedOptions.length - 1)))), [firstOption, hasOptions, isDisabled, isSelected, label, selectedOptions,
|
|
63
|
+
}, "+", selectedOptions.length - 1)))), [firstOption, hasOptions, isDisabled, isSelected, label, selectedOptions, triggerButtonTestId]);
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
66
|
* We had an issue with the popup component referencing a stale DOM ref for the trigger button.
|
|
@@ -68,7 +68,7 @@ const PopupTrigger = /*#__PURE__*/forwardRef(({
|
|
|
68
68
|
*/
|
|
69
69
|
return /*#__PURE__*/React.createElement(Box, {
|
|
70
70
|
ref: ref,
|
|
71
|
-
testId:
|
|
71
|
+
testId: triggerButtonTestId
|
|
72
72
|
}, showButtonLoading ? /*#__PURE__*/React.createElement(LoadingButton, null) : /*#__PURE__*/React.createElement(DefaultButton, null));
|
|
73
73
|
});
|
|
74
74
|
export default PopupTrigger;
|
|
@@ -40,15 +40,15 @@ var PopupTrigger = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
40
40
|
firstOption = _ref3[0];
|
|
41
41
|
var hasOptions = selectedOptions && selectedOptions.length > 0;
|
|
42
42
|
var showButtonLoading = !isDisabled && isLoading;
|
|
43
|
-
var
|
|
43
|
+
var triggerButtonTestId = "".concat(testId, "-trigger");
|
|
44
44
|
var LoadingButton = useCallback(function () {
|
|
45
45
|
return /*#__PURE__*/React.createElement(LoadingStateAnimationWrapper, null, /*#__PURE__*/React.createElement(Button, {
|
|
46
46
|
iconAfter: /*#__PURE__*/React.createElement(Spinner, {
|
|
47
47
|
size: 'xsmall'
|
|
48
48
|
}),
|
|
49
|
-
testId: "".concat(
|
|
49
|
+
testId: "".concat(triggerButtonTestId, "--loading-button")
|
|
50
50
|
}, label));
|
|
51
|
-
}, [label,
|
|
51
|
+
}, [label, triggerButtonTestId]);
|
|
52
52
|
var DefaultButton = useCallback(function () {
|
|
53
53
|
return /*#__PURE__*/React.createElement(Button, {
|
|
54
54
|
appearance: "default",
|
|
@@ -57,7 +57,7 @@ var PopupTrigger = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
57
57
|
iconAfter: /*#__PURE__*/React.createElement(ChevronDownIcon, {
|
|
58
58
|
label: ""
|
|
59
59
|
}),
|
|
60
|
-
testId: "".concat(
|
|
60
|
+
testId: "".concat(triggerButtonTestId, "--button")
|
|
61
61
|
}, /*#__PURE__*/React.createElement(Flex, null, /*#__PURE__*/React.createElement(Box, {
|
|
62
62
|
xcss: triggerButtonLabelStyles
|
|
63
63
|
}, label, firstOption && /*#__PURE__*/React.createElement(React.Fragment, null, ": ", firstOption.label)), selectedOptions && selectedOptions.length > 1 && /*#__PURE__*/React.createElement(Flex, {
|
|
@@ -66,7 +66,7 @@ var PopupTrigger = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
66
66
|
}, /*#__PURE__*/React.createElement(Badge, {
|
|
67
67
|
appearance: "primary"
|
|
68
68
|
}, "+", selectedOptions.length - 1))));
|
|
69
|
-
}, [firstOption, hasOptions, isDisabled, isSelected, label, selectedOptions,
|
|
69
|
+
}, [firstOption, hasOptions, isDisabled, isSelected, label, selectedOptions, triggerButtonTestId]);
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* We had an issue with the popup component referencing a stale DOM ref for the trigger button.
|
|
@@ -74,7 +74,7 @@ var PopupTrigger = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
74
74
|
*/
|
|
75
75
|
return /*#__PURE__*/React.createElement(Box, {
|
|
76
76
|
ref: ref,
|
|
77
|
-
testId:
|
|
77
|
+
testId: triggerButtonTestId
|
|
78
78
|
}, showButtonLoading ? /*#__PURE__*/React.createElement(LoadingButton, null) : /*#__PURE__*/React.createElement(DefaultButton, null));
|
|
79
79
|
});
|
|
80
80
|
export default PopupTrigger;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "1.28.
|
|
3
|
+
"version": "1.28.2",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
"analytics:codegen": "yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource --output ./src/analytics/generated"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@atlaskit/adf-schema": "^35.9.
|
|
34
|
+
"@atlaskit/adf-schema": "^35.9.2",
|
|
35
35
|
"@atlaskit/analytics-next": "^9.2.0",
|
|
36
36
|
"@atlaskit/avatar": "^21.5.0",
|
|
37
37
|
"@atlaskit/avatar-group": "^9.5.0",
|
|
38
38
|
"@atlaskit/badge": "^16.0.0",
|
|
39
|
-
"@atlaskit/button": "^17.
|
|
39
|
+
"@atlaskit/button": "^17.13.0",
|
|
40
40
|
"@atlaskit/dropdown-menu": "^12.9.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "3.0.0",
|
|
42
42
|
"@atlaskit/empty-state": "^7.8.0",
|
|
43
|
-
"@atlaskit/form": "^9.
|
|
43
|
+
"@atlaskit/form": "^9.3.0",
|
|
44
44
|
"@atlaskit/heading": "^2.2.0",
|
|
45
45
|
"@atlaskit/icon": "^22.1.0",
|
|
46
46
|
"@atlaskit/icon-object": "^6.3.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^1.1.0",
|
|
65
65
|
"@atlaskit/primitives": "^5.5.0",
|
|
66
66
|
"@atlaskit/select": "^17.6.0",
|
|
67
|
-
"@atlaskit/smart-card": "^26.
|
|
67
|
+
"@atlaskit/smart-card": "^26.57.0",
|
|
68
68
|
"@atlaskit/smart-user-picker": "6.9.2",
|
|
69
69
|
"@atlaskit/spinner": "^16.0.0",
|
|
70
70
|
"@atlaskit/tag": "^12.0.0",
|