@atlaskit/link-picker 1.32.0 → 1.32.1
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/index.js +5 -2
- package/dist/es2019/ui/index.js +1 -1
- package/dist/es2019/ui/link-picker/index.js +5 -2
- package/dist/esm/ui/index.js +1 -1
- package/dist/esm/ui/link-picker/index.js +5 -2
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/link-picker
|
|
2
2
|
|
|
3
|
+
## 1.32.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#66404](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66404) [`61ac6afc1d89`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/61ac6afc1d89) - EDM-9025 Add onSubmitCapture behind feature flag
|
|
8
|
+
|
|
3
9
|
## 1.32.0
|
|
4
10
|
|
|
5
11
|
### Minor 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.32.
|
|
29
|
+
packageVersion: "1.32.1" || '',
|
|
30
30
|
componentName: _constants.COMPONENT_NAME,
|
|
31
31
|
source: _constants.COMPONENT_NAME
|
|
32
32
|
};
|
|
@@ -305,8 +305,11 @@ var LinkPicker = exports.LinkPicker = (0, _analytics.withLinkPickerAnalyticsCont
|
|
|
305
305
|
var screenReaderText = (0, _userAgent.browser)().safari && (0, _utils.getScreenReaderText)(items !== null && items !== void 0 ? items : [], selectedIndex, intl);
|
|
306
306
|
return (0, _react2.jsx)("form", {
|
|
307
307
|
"data-testid": testIds.linkPicker,
|
|
308
|
-
css: _styled.rootContainerStyles
|
|
309
|
-
onSubmit
|
|
308
|
+
css: _styled.rootContainerStyles
|
|
309
|
+
// Use onSubmitCapture instead of onSubmit when FF enabled so that any possible parent form isn't submitted
|
|
310
|
+
,
|
|
311
|
+
onSubmit: (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-picker.use-onsubmitcapture') ? undefined : handleSubmit,
|
|
312
|
+
onSubmitCapture: (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-picker.use-onsubmitcapture') ? handleSubmit : undefined
|
|
310
313
|
}, (0, _react2.jsx)(_trackMount.TrackMount, null), screenReaderText && (0, _react2.jsx)(_announcer.Announcer, {
|
|
311
314
|
ariaLive: "assertive",
|
|
312
315
|
text: screenReaderText,
|
package/dist/es2019/ui/index.js
CHANGED
|
@@ -305,8 +305,11 @@ export const LinkPicker = withLinkPickerAnalyticsContext( /*#__PURE__*/memo(({
|
|
|
305
305
|
const screenReaderText = browser().safari && getScreenReaderText(items !== null && items !== void 0 ? items : [], selectedIndex, intl);
|
|
306
306
|
return jsx("form", {
|
|
307
307
|
"data-testid": testIds.linkPicker,
|
|
308
|
-
css: rootContainerStyles
|
|
309
|
-
onSubmit
|
|
308
|
+
css: rootContainerStyles
|
|
309
|
+
// Use onSubmitCapture instead of onSubmit when FF enabled so that any possible parent form isn't submitted
|
|
310
|
+
,
|
|
311
|
+
onSubmit: getBooleanFF('platform.linking-platform.link-picker.use-onsubmitcapture') ? undefined : handleSubmit,
|
|
312
|
+
onSubmitCapture: getBooleanFF('platform.linking-platform.link-picker.use-onsubmitcapture') ? handleSubmit : undefined
|
|
310
313
|
}, jsx(TrackMount, null), screenReaderText && jsx(Announcer, {
|
|
311
314
|
ariaLive: "assertive",
|
|
312
315
|
text: screenReaderText,
|
package/dist/esm/ui/index.js
CHANGED
|
@@ -299,8 +299,11 @@ export var LinkPicker = withLinkPickerAnalyticsContext( /*#__PURE__*/memo(functi
|
|
|
299
299
|
var screenReaderText = browser().safari && getScreenReaderText(items !== null && items !== void 0 ? items : [], selectedIndex, intl);
|
|
300
300
|
return jsx("form", {
|
|
301
301
|
"data-testid": testIds.linkPicker,
|
|
302
|
-
css: rootContainerStyles
|
|
303
|
-
onSubmit
|
|
302
|
+
css: rootContainerStyles
|
|
303
|
+
// Use onSubmitCapture instead of onSubmit when FF enabled so that any possible parent form isn't submitted
|
|
304
|
+
,
|
|
305
|
+
onSubmit: getBooleanFF('platform.linking-platform.link-picker.use-onsubmitcapture') ? undefined : handleSubmit,
|
|
306
|
+
onSubmitCapture: getBooleanFF('platform.linking-platform.link-picker.use-onsubmitcapture') ? handleSubmit : undefined
|
|
304
307
|
}, jsx(TrackMount, null), screenReaderText && jsx(Announcer, {
|
|
305
308
|
ariaLive: "assertive",
|
|
306
309
|
text: screenReaderText,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-picker",
|
|
3
|
-
"version": "1.32.
|
|
3
|
+
"version": "1.32.1",
|
|
4
4
|
"description": "Standalone link picker",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"publishConfig": {
|
|
@@ -49,6 +49,9 @@
|
|
|
49
49
|
},
|
|
50
50
|
"platform.linking-platform.link-picker.enable-jira-create": {
|
|
51
51
|
"type": "boolean"
|
|
52
|
+
},
|
|
53
|
+
"platform.linking-platform.link-picker.use-onsubmitcapture": {
|
|
54
|
+
"type": "boolean"
|
|
52
55
|
}
|
|
53
56
|
},
|
|
54
57
|
"scripts": {
|
|
@@ -93,7 +96,7 @@
|
|
|
93
96
|
"@atlaskit/dropdown-menu": "^12.1.0",
|
|
94
97
|
"@atlaskit/link-provider": "^1.6.0",
|
|
95
98
|
"@atlaskit/link-test-helpers": "^6.2.0",
|
|
96
|
-
"@atlaskit/primitives": "^1.
|
|
99
|
+
"@atlaskit/primitives": "^1.17.0",
|
|
97
100
|
"@atlaskit/visual-regression": "*",
|
|
98
101
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
99
102
|
"@atlassian/feature-flags-test-utils": "*",
|