@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 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
@@ -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.32.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,
@@ -16,7 +16,7 @@ export const testIds = {
16
16
  };
17
17
  export const PACKAGE_DATA = {
18
18
  packageName: "@atlaskit/link-picker" || '',
19
- packageVersion: "1.32.1" || '',
19
+ packageVersion: "1.33.0" || '',
20
20
  componentName: COMPONENT_NAME,
21
21
  source: COMPONENT_NAME
22
22
  };
@@ -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,
@@ -17,7 +17,7 @@ export var testIds = {
17
17
  };
18
18
  export var PACKAGE_DATA = {
19
19
  packageName: "@atlaskit/link-picker" || '',
20
- packageVersion: "1.32.1" || '',
20
+ packageVersion: "1.33.0" || '',
21
21
  componentName: COMPONENT_NAME,
22
22
  source: COMPONENT_NAME
23
23
  };
@@ -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
- /** Callback to fire when the cancel button is clicked. */
55
- onCancel: () => void;
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
- /** Callback to fire when the cancel button is clicked. */
55
- onCancel: () => void;
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.32.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.33.0",
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.1.0",
97
- "@atlaskit/link-provider": "^1.6.0",
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": "^1.17.0",
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": "*",