@atlaskit/link-picker 1.32.1 → 1.33.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 +6 -0
- package/dist/cjs/ui/index.js +1 -1
- package/dist/cjs/ui/link-picker/form-footer/index.js +1 -1
- package/dist/es2019/ui/index.js +1 -1
- package/dist/es2019/ui/link-picker/form-footer/index.js +1 -1
- package/dist/esm/ui/index.js +1 -1
- package/dist/esm/ui/link-picker/form-footer/index.js +1 -1
- package/dist/types/ui/link-picker/index.d.ts +5 -2
- package/dist/types-ts4.5/ui/link-picker/index.d.ts +5 -2
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/link-picker
|
|
2
2
|
|
|
3
|
+
## 1.33.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#69577](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69577) [`fcd935281ee6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fcd935281ee6) - Updates onCancel prop to be optional. When not provided, cancel button is not displayed.
|
|
8
|
+
|
|
3
9
|
## 1.32.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/cjs/ui/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var testIds = exports.testIds = {
|
|
|
26
26
|
};
|
|
27
27
|
var PACKAGE_DATA = exports.PACKAGE_DATA = {
|
|
28
28
|
packageName: "@atlaskit/link-picker" || '',
|
|
29
|
-
packageVersion: "1.
|
|
29
|
+
packageVersion: "1.33.0" || '',
|
|
30
30
|
componentName: _constants.COMPONENT_NAME,
|
|
31
31
|
source: _constants.COMPONENT_NAME
|
|
32
32
|
};
|
|
@@ -101,7 +101,7 @@ var FormFooter = exports.FormFooter = /*#__PURE__*/(0, _react.memo)(function (_r
|
|
|
101
101
|
css: _styled.formFooterActionStyles
|
|
102
102
|
}, createFeatureDiscovery ? (0, _react2.jsx)(_featureDiscovery.default, {
|
|
103
103
|
testId: testIds.actionButtonDiscovery
|
|
104
|
-
}, createButton(action)) : createButton(action)), (0, _react2.jsx)(_button.ButtonGroup, null, (0, _react2.jsx)(_button.default, {
|
|
104
|
+
}, createButton(action)) : createButton(action)), (0, _react2.jsx)(_button.ButtonGroup, null, onCancel && (0, _react2.jsx)(_button.default, {
|
|
105
105
|
appearance: "subtle",
|
|
106
106
|
onClick: onCancel,
|
|
107
107
|
testId: testIds.cancelButton,
|
package/dist/es2019/ui/index.js
CHANGED
|
@@ -84,7 +84,7 @@ export const FormFooter = /*#__PURE__*/memo(({
|
|
|
84
84
|
css: formFooterActionStyles
|
|
85
85
|
}, createFeatureDiscovery ? jsx(FeatureDiscovery, {
|
|
86
86
|
testId: testIds.actionButtonDiscovery
|
|
87
|
-
}, createButton(action)) : createButton(action)), jsx(ButtonGroup, null, jsx(Button, {
|
|
87
|
+
}, createButton(action)) : createButton(action)), jsx(ButtonGroup, null, onCancel && jsx(Button, {
|
|
88
88
|
appearance: "subtle",
|
|
89
89
|
onClick: onCancel,
|
|
90
90
|
testId: testIds.cancelButton,
|
package/dist/esm/ui/index.js
CHANGED
|
@@ -91,7 +91,7 @@ export var FormFooter = /*#__PURE__*/memo(function (_ref) {
|
|
|
91
91
|
css: formFooterActionStyles
|
|
92
92
|
}, createFeatureDiscovery ? jsx(FeatureDiscovery, {
|
|
93
93
|
testId: testIds.actionButtonDiscovery
|
|
94
|
-
}, createButton(action)) : createButton(action)), jsx(ButtonGroup, null, jsx(Button, {
|
|
94
|
+
}, createButton(action)) : createButton(action)), jsx(ButtonGroup, null, onCancel && jsx(Button, {
|
|
95
95
|
appearance: "subtle",
|
|
96
96
|
onClick: onCancel,
|
|
97
97
|
testId: testIds.cancelButton,
|
|
@@ -51,8 +51,11 @@ export interface LinkPickerProps {
|
|
|
51
51
|
* Callback to fire on form submission.
|
|
52
52
|
*/
|
|
53
53
|
onSubmit: (arg: OnSubmitParameter, analytic?: UIAnalyticsEvent | null) => void;
|
|
54
|
-
/**
|
|
55
|
-
|
|
54
|
+
/**
|
|
55
|
+
* Callback to fire when the cancel button is clicked.
|
|
56
|
+
* If not provided, cancel button is not displayed.
|
|
57
|
+
*/
|
|
58
|
+
onCancel?: () => void;
|
|
56
59
|
/** Callback to fire when content is changed inside the link picker e.g. items, when loading, tabs */
|
|
57
60
|
onContentResize?: () => void;
|
|
58
61
|
/** The url of the linked resource for editing. */
|
|
@@ -51,8 +51,11 @@ export interface LinkPickerProps {
|
|
|
51
51
|
* Callback to fire on form submission.
|
|
52
52
|
*/
|
|
53
53
|
onSubmit: (arg: OnSubmitParameter, analytic?: UIAnalyticsEvent | null) => void;
|
|
54
|
-
/**
|
|
55
|
-
|
|
54
|
+
/**
|
|
55
|
+
* Callback to fire when the cancel button is clicked.
|
|
56
|
+
* If not provided, cancel button is not displayed.
|
|
57
|
+
*/
|
|
58
|
+
onCancel?: () => void;
|
|
56
59
|
/** Callback to fire when content is changed inside the link picker e.g. items, when loading, tabs */
|
|
57
60
|
onContentResize?: () => void;
|
|
58
61
|
/** The url of the linked resource for editing. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-picker",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.33.0",
|
|
4
4
|
"description": "Standalone link picker",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"publishConfig": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"name": "Link Picker"
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
|
-
"repository": "https://bitbucket.org/atlassian/atlassian-frontend",
|
|
22
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
23
23
|
"main": "dist/cjs/index.js",
|
|
24
24
|
"module": "dist/esm/index.js",
|
|
25
25
|
"module:es2019": "dist/es2019/index.js",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@atlaskit/tabs": "^14.0.0",
|
|
74
74
|
"@atlaskit/textfield": "^6.0.0",
|
|
75
75
|
"@atlaskit/theme": "^12.6.0",
|
|
76
|
-
"@atlaskit/tokens": "^1.
|
|
76
|
+
"@atlaskit/tokens": "^1.35.0",
|
|
77
77
|
"@atlaskit/tooltip": "^18.1.0",
|
|
78
78
|
"@atlaskit/ufo": "^0.2.0",
|
|
79
79
|
"@atlaskit/visually-hidden": "^1.2.0",
|
|
@@ -93,10 +93,10 @@
|
|
|
93
93
|
"@af/analytics-codegen": "^0.1.0",
|
|
94
94
|
"@af/integration-testing": "*",
|
|
95
95
|
"@af/visual-regression": "*",
|
|
96
|
-
"@atlaskit/dropdown-menu": "^12.
|
|
97
|
-
"@atlaskit/link-provider": "^1.
|
|
96
|
+
"@atlaskit/dropdown-menu": "^12.2.0",
|
|
97
|
+
"@atlaskit/link-provider": "^1.7.0",
|
|
98
98
|
"@atlaskit/link-test-helpers": "^6.2.0",
|
|
99
|
-
"@atlaskit/primitives": "^
|
|
99
|
+
"@atlaskit/primitives": "^2.0.0",
|
|
100
100
|
"@atlaskit/visual-regression": "*",
|
|
101
101
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
102
102
|
"@atlassian/feature-flags-test-utils": "*",
|