@atlaskit/link-picker 1.34.5 → 1.34.7
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 +12 -0
- package/dist/cjs/ui/index.js +1 -1
- package/dist/cjs/ui/link-picker/index.js +2 -3
- package/dist/cjs/ui/link-picker/search-results/index.js +1 -1
- package/dist/es2019/ui/index.js +1 -1
- package/dist/es2019/ui/link-picker/index.js +2 -3
- package/dist/es2019/ui/link-picker/search-results/index.js +1 -1
- package/dist/esm/ui/index.js +1 -1
- package/dist/esm/ui/link-picker/index.js +2 -3
- package/dist/esm/ui/link-picker/search-results/index.js +1 -1
- package/package.json +9 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/link-picker
|
|
2
2
|
|
|
3
|
+
## 1.34.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#87202](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87202) [`fe89dc2c3c0a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fe89dc2c3c0a) - EDM-9608 Cleanup onSubmitCapture feature flag in link picker
|
|
8
|
+
|
|
9
|
+
## 1.34.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#83188](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83188) [`cd5d06cd3329`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cd5d06cd3329) - Minor adjustments to improve compatibility with React 18
|
|
14
|
+
|
|
3
15
|
## 1.34.5
|
|
4
16
|
|
|
5
17
|
### 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.34.
|
|
29
|
+
packageVersion: "1.34.7" || '',
|
|
30
30
|
componentName: _constants.COMPONENT_NAME,
|
|
31
31
|
source: _constants.COMPONENT_NAME
|
|
32
32
|
};
|
|
@@ -315,10 +315,9 @@ var LinkPicker = exports.LinkPicker = (0, _analytics.withLinkPickerAnalyticsCont
|
|
|
315
315
|
return (0, _react2.jsx)("form", {
|
|
316
316
|
"data-testid": testIds.linkPicker,
|
|
317
317
|
css: _styled.rootContainerStyles
|
|
318
|
-
// Use onSubmitCapture instead of onSubmit
|
|
318
|
+
// Use onSubmitCapture instead of onSubmit so that any possible parent form isn't submitted
|
|
319
319
|
,
|
|
320
|
-
|
|
321
|
-
onSubmitCapture: (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-picker.use-onsubmitcapture') ? handleSubmit : undefined
|
|
320
|
+
onSubmitCapture: handleSubmit
|
|
322
321
|
}, (0, _react2.jsx)(_trackMount.TrackMount, null), isActivePlugin && screenReaderText && (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(_announcer.Announcer, {
|
|
323
322
|
ariaLive: "assertive",
|
|
324
323
|
text: screenReaderText,
|
|
@@ -87,5 +87,5 @@ var SearchResults = exports.SearchResults = function SearchResults(_ref) {
|
|
|
87
87
|
onKeyDown: handleKeyDown,
|
|
88
88
|
hasSearchTerm: !!(queryState !== null && queryState !== void 0 && queryState.query.length),
|
|
89
89
|
activePlugin: activePlugin
|
|
90
|
-
}), error
|
|
90
|
+
}), error ? (_activePlugin$errorFa = activePlugin === null || activePlugin === void 0 || (_activePlugin$errorFa2 = activePlugin.errorFallback) === null || _activePlugin$errorFa2 === void 0 ? void 0 : _activePlugin$errorFa2.call(activePlugin, error, retry)) !== null && _activePlugin$errorFa !== void 0 ? _activePlugin$errorFa : (0, _react2.jsx)(_linkSearchError.LinkSearchError, null) : null));
|
|
91
91
|
};
|
package/dist/es2019/ui/index.js
CHANGED
|
@@ -315,10 +315,9 @@ export const LinkPicker = withLinkPickerAnalyticsContext( /*#__PURE__*/memo(({
|
|
|
315
315
|
return jsx("form", {
|
|
316
316
|
"data-testid": testIds.linkPicker,
|
|
317
317
|
css: rootContainerStyles
|
|
318
|
-
// Use onSubmitCapture instead of onSubmit
|
|
318
|
+
// Use onSubmitCapture instead of onSubmit so that any possible parent form isn't submitted
|
|
319
319
|
,
|
|
320
|
-
|
|
321
|
-
onSubmitCapture: getBooleanFF('platform.linking-platform.link-picker.use-onsubmitcapture') ? handleSubmit : undefined
|
|
320
|
+
onSubmitCapture: handleSubmit
|
|
322
321
|
}, jsx(TrackMount, null), isActivePlugin && screenReaderText && jsx(Fragment, null, jsx(Announcer, {
|
|
323
322
|
ariaLive: "assertive",
|
|
324
323
|
text: screenReaderText,
|
|
@@ -76,5 +76,5 @@ export const SearchResults = ({
|
|
|
76
76
|
onKeyDown: handleKeyDown,
|
|
77
77
|
hasSearchTerm: !!(queryState !== null && queryState !== void 0 && queryState.query.length),
|
|
78
78
|
activePlugin: activePlugin
|
|
79
|
-
}), error
|
|
79
|
+
}), error ? (_activePlugin$errorFa = activePlugin === null || activePlugin === void 0 ? void 0 : (_activePlugin$errorFa2 = activePlugin.errorFallback) === null || _activePlugin$errorFa2 === void 0 ? void 0 : _activePlugin$errorFa2.call(activePlugin, error, retry)) !== null && _activePlugin$errorFa !== void 0 ? _activePlugin$errorFa : jsx(LinkSearchError, null) : null));
|
|
80
80
|
};
|
package/dist/esm/ui/index.js
CHANGED
|
@@ -309,10 +309,9 @@ export var LinkPicker = withLinkPickerAnalyticsContext( /*#__PURE__*/memo(functi
|
|
|
309
309
|
return jsx("form", {
|
|
310
310
|
"data-testid": testIds.linkPicker,
|
|
311
311
|
css: rootContainerStyles
|
|
312
|
-
// Use onSubmitCapture instead of onSubmit
|
|
312
|
+
// Use onSubmitCapture instead of onSubmit so that any possible parent form isn't submitted
|
|
313
313
|
,
|
|
314
|
-
|
|
315
|
-
onSubmitCapture: getBooleanFF('platform.linking-platform.link-picker.use-onsubmitcapture') ? handleSubmit : undefined
|
|
314
|
+
onSubmitCapture: handleSubmit
|
|
316
315
|
}, jsx(TrackMount, null), isActivePlugin && screenReaderText && jsx(Fragment, null, jsx(Announcer, {
|
|
317
316
|
ariaLive: "assertive",
|
|
318
317
|
text: screenReaderText,
|
|
@@ -78,5 +78,5 @@ export var SearchResults = function SearchResults(_ref) {
|
|
|
78
78
|
onKeyDown: handleKeyDown,
|
|
79
79
|
hasSearchTerm: !!(queryState !== null && queryState !== void 0 && queryState.query.length),
|
|
80
80
|
activePlugin: activePlugin
|
|
81
|
-
}), error
|
|
81
|
+
}), error ? (_activePlugin$errorFa = activePlugin === null || activePlugin === void 0 || (_activePlugin$errorFa2 = activePlugin.errorFallback) === null || _activePlugin$errorFa2 === void 0 ? void 0 : _activePlugin$errorFa2.call(activePlugin, error, retry)) !== null && _activePlugin$errorFa !== void 0 ? _activePlugin$errorFa : jsx(LinkSearchError, null) : null));
|
|
82
82
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-picker",
|
|
3
|
-
"version": "1.34.
|
|
3
|
+
"version": "1.34.7",
|
|
4
4
|
"description": "Standalone link picker",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"publishConfig": {
|
|
@@ -47,35 +47,31 @@
|
|
|
47
47
|
"platform.linking-platform.link-picker.enable-jira-create": {
|
|
48
48
|
"type": "boolean"
|
|
49
49
|
},
|
|
50
|
-
"platform.linking-platform.link-picker.use-onsubmitcapture": {
|
|
51
|
-
"type": "boolean"
|
|
52
|
-
},
|
|
53
50
|
"platform.linking-platform.link-picker.remove-dst-empty-state": {
|
|
54
51
|
"type": "boolean"
|
|
55
52
|
}
|
|
56
53
|
},
|
|
57
54
|
"scripts": {
|
|
58
|
-
"ak-postbuild": "ls -d dist/* | grep -v dist/types | xargs -n 1 copyfiles -u 1 -V src/**/*.svg",
|
|
59
55
|
"codegen-analytics": "yarn run ts-analytics-codegen --command='yarn workspace @atlaskit/link-picker run codegen-analytics'"
|
|
60
56
|
},
|
|
61
57
|
"dependencies": {
|
|
62
58
|
"@atlaskit/analytics-next": "^9.2.0",
|
|
63
|
-
"@atlaskit/button": "^17.
|
|
59
|
+
"@atlaskit/button": "^17.8.0",
|
|
64
60
|
"@atlaskit/empty-state": "^7.7.0",
|
|
65
|
-
"@atlaskit/form": "^9.0
|
|
61
|
+
"@atlaskit/form": "^9.1.0",
|
|
66
62
|
"@atlaskit/frontend-utilities": "^2.7.0",
|
|
67
63
|
"@atlaskit/heading": "^2.1.0",
|
|
68
64
|
"@atlaskit/icon": "^22.1.0",
|
|
69
65
|
"@atlaskit/intl-messages-provider": "^1.0.2",
|
|
70
|
-
"@atlaskit/linking-common": "^5.
|
|
66
|
+
"@atlaskit/linking-common": "^5.6.0",
|
|
71
67
|
"@atlaskit/onboarding": "^11.2.0",
|
|
72
68
|
"@atlaskit/platform-feature-flags": "^0.2.1",
|
|
73
|
-
"@atlaskit/primitives": "^5.
|
|
69
|
+
"@atlaskit/primitives": "^5.5.0",
|
|
74
70
|
"@atlaskit/spinner": "^16.0.0",
|
|
75
71
|
"@atlaskit/tabs": "^14.0.0",
|
|
76
72
|
"@atlaskit/textfield": "^6.1.0",
|
|
77
|
-
"@atlaskit/theme": "^12.
|
|
78
|
-
"@atlaskit/tokens": "^1.
|
|
73
|
+
"@atlaskit/theme": "^12.7.0",
|
|
74
|
+
"@atlaskit/tokens": "^1.43.0",
|
|
79
75
|
"@atlaskit/tooltip": "^18.1.0",
|
|
80
76
|
"@atlaskit/ufo": "^0.2.0",
|
|
81
77
|
"@atlaskit/visually-hidden": "^1.2.0",
|
|
@@ -96,8 +92,8 @@
|
|
|
96
92
|
"@af/integration-testing": "*",
|
|
97
93
|
"@af/visual-regression": "*",
|
|
98
94
|
"@atlaskit/dropdown-menu": "^12.8.0",
|
|
99
|
-
"@atlaskit/link-provider": "^1.
|
|
100
|
-
"@atlaskit/link-test-helpers": "^
|
|
95
|
+
"@atlaskit/link-provider": "^1.9.0",
|
|
96
|
+
"@atlaskit/link-test-helpers": "^7.0.0",
|
|
101
97
|
"@atlaskit/visual-regression": "*",
|
|
102
98
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
103
99
|
"@atlassian/feature-flags-test-utils": "*",
|