@atlaskit/link-picker 1.37.0 → 1.37.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/.eslintrc.js +22 -22
- package/CHANGELOG.md +12 -0
- package/LICENSE.md +6 -8
- package/compass.yml +0 -1
- package/dist/cjs/common/generic-error-svg/index.js +4 -1
- package/dist/cjs/common/generic-error-svg/styled.js +4 -0
- package/dist/cjs/common/ui/empty-state/index.js +3 -1
- package/dist/cjs/common/ui/min-height-container/index.js +4 -1
- package/dist/cjs/common/ui/min-height-container/styled.js +3 -0
- package/dist/cjs/ui/error-boundary/error-boundary-fallback/index.js +17 -11
- package/dist/cjs/ui/error-boundary/error-boundary-fallback/styled.js +3 -0
- package/dist/cjs/ui/index.js +5 -3
- package/dist/cjs/ui/link-picker/form-footer/feature-discovery/index.js +9 -4
- package/dist/cjs/ui/link-picker/form-footer/feature-discovery/styled.js +4 -0
- package/dist/cjs/ui/link-picker/form-footer/index.js +30 -24
- package/dist/cjs/ui/link-picker/form-footer/styled.js +5 -0
- package/dist/cjs/ui/link-picker/index.js +8 -4
- package/dist/cjs/ui/link-picker/search-results/index.js +7 -3
- package/dist/cjs/ui/link-picker/search-results/link-search-error/index.js +1 -0
- package/dist/cjs/ui/link-picker/search-results/link-search-list/index.js +21 -10
- package/dist/cjs/ui/link-picker/search-results/link-search-list/link-search-no-results/index.js +15 -11
- package/dist/cjs/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.js +2 -0
- package/dist/cjs/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/styled.js +4 -0
- package/dist/cjs/ui/link-picker/search-results/link-search-list/link-search-no-results/styled.js +6 -0
- package/dist/cjs/ui/link-picker/search-results/link-search-list/list-item/index.js +34 -17
- package/dist/cjs/ui/link-picker/search-results/link-search-list/list-item/styled.js +29 -3
- package/dist/cjs/ui/link-picker/search-results/link-search-list/styled.js +9 -0
- package/dist/cjs/ui/link-picker/search-results/scrolling-tabs/index.js +38 -33
- package/dist/cjs/ui/link-picker/search-results/scrolling-tabs/styles.js +20 -4
- package/dist/cjs/ui/link-picker/search-results/search-results-container/index.js +3 -0
- package/dist/cjs/ui/link-picker/search-results/search-results-container/styled.js +3 -0
- package/dist/cjs/ui/link-picker/search-results/styled.js +7 -0
- package/dist/cjs/ui/link-picker/styled.js +5 -3
- package/dist/cjs/ui/link-picker/text-input/index.js +25 -19
- package/dist/cjs/ui/link-picker/text-input/styled.js +6 -0
- package/dist/cjs/ui/loader-fallback/index.js +4 -1
- package/dist/cjs/ui/loader-fallback/styled.js +3 -0
- package/dist/cjs/ui/styled.js +3 -0
- package/dist/es2019/common/generic-error-svg/index.js +4 -1
- package/dist/es2019/common/generic-error-svg/styled.js +3 -0
- package/dist/es2019/common/ui/empty-state/index.js +3 -1
- package/dist/es2019/common/ui/min-height-container/index.js +5 -1
- package/dist/es2019/common/ui/min-height-container/styled.js +3 -0
- package/dist/es2019/ui/error-boundary/error-boundary-fallback/index.js +15 -9
- package/dist/es2019/ui/error-boundary/error-boundary-fallback/styled.js +3 -0
- package/dist/es2019/ui/index.js +7 -2
- package/dist/es2019/ui/link-picker/form-footer/feature-discovery/index.js +9 -4
- package/dist/es2019/ui/link-picker/form-footer/feature-discovery/styled.js +3 -0
- package/dist/es2019/ui/link-picker/form-footer/index.js +31 -24
- package/dist/es2019/ui/link-picker/form-footer/styled.js +5 -0
- package/dist/es2019/ui/link-picker/index.js +9 -3
- package/dist/es2019/ui/link-picker/search-results/index.js +8 -2
- package/dist/es2019/ui/link-picker/search-results/link-search-error/index.js +1 -0
- package/dist/es2019/ui/link-picker/search-results/link-search-list/index.js +22 -9
- package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/index.js +13 -9
- package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.js +2 -0
- package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/styled.js +3 -0
- package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/styled.js +5 -0
- package/dist/es2019/ui/link-picker/search-results/link-search-list/list-item/index.js +34 -17
- package/dist/es2019/ui/link-picker/search-results/link-search-list/list-item/styled.js +28 -3
- package/dist/es2019/ui/link-picker/search-results/link-search-list/styled.js +8 -0
- package/dist/es2019/ui/link-picker/search-results/scrolling-tabs/index.js +35 -28
- package/dist/es2019/ui/link-picker/search-results/scrolling-tabs/styles.js +19 -4
- package/dist/es2019/ui/link-picker/search-results/search-results-container/index.js +4 -0
- package/dist/es2019/ui/link-picker/search-results/search-results-container/styled.js +3 -0
- package/dist/es2019/ui/link-picker/search-results/styled.js +6 -0
- package/dist/es2019/ui/link-picker/styled.js +12 -9
- package/dist/es2019/ui/link-picker/text-input/index.js +27 -20
- package/dist/es2019/ui/link-picker/text-input/styled.js +5 -0
- package/dist/es2019/ui/loader-fallback/index.js +4 -1
- package/dist/es2019/ui/loader-fallback/styled.js +3 -0
- package/dist/es2019/ui/styled.js +3 -0
- package/dist/esm/common/generic-error-svg/index.js +4 -1
- package/dist/esm/common/generic-error-svg/styled.js +3 -0
- package/dist/esm/common/ui/empty-state/index.js +3 -1
- package/dist/esm/common/ui/min-height-container/index.js +5 -1
- package/dist/esm/common/ui/min-height-container/styled.js +3 -0
- package/dist/esm/ui/error-boundary/error-boundary-fallback/index.js +17 -11
- package/dist/esm/ui/error-boundary/error-boundary-fallback/styled.js +3 -0
- package/dist/esm/ui/index.js +6 -2
- package/dist/esm/ui/link-picker/form-footer/feature-discovery/index.js +9 -4
- package/dist/esm/ui/link-picker/form-footer/feature-discovery/styled.js +3 -0
- package/dist/esm/ui/link-picker/form-footer/index.js +31 -24
- package/dist/esm/ui/link-picker/form-footer/styled.js +5 -0
- package/dist/esm/ui/link-picker/index.js +9 -3
- package/dist/esm/ui/link-picker/search-results/index.js +8 -2
- package/dist/esm/ui/link-picker/search-results/link-search-error/index.js +1 -0
- package/dist/esm/ui/link-picker/search-results/link-search-list/index.js +22 -9
- package/dist/esm/ui/link-picker/search-results/link-search-list/link-search-no-results/index.js +15 -11
- package/dist/esm/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.js +2 -0
- package/dist/esm/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/styled.js +3 -0
- package/dist/esm/ui/link-picker/search-results/link-search-list/link-search-no-results/styled.js +5 -0
- package/dist/esm/ui/link-picker/search-results/link-search-list/list-item/index.js +34 -17
- package/dist/esm/ui/link-picker/search-results/link-search-list/list-item/styled.js +28 -3
- package/dist/esm/ui/link-picker/search-results/link-search-list/styled.js +8 -0
- package/dist/esm/ui/link-picker/search-results/scrolling-tabs/index.js +39 -32
- package/dist/esm/ui/link-picker/search-results/scrolling-tabs/styles.js +19 -4
- package/dist/esm/ui/link-picker/search-results/search-results-container/index.js +4 -0
- package/dist/esm/ui/link-picker/search-results/search-results-container/styled.js +3 -0
- package/dist/esm/ui/link-picker/search-results/styled.js +6 -0
- package/dist/esm/ui/link-picker/styled.js +5 -2
- package/dist/esm/ui/link-picker/text-input/index.js +26 -19
- package/dist/esm/ui/link-picker/text-input/styled.js +5 -0
- package/dist/esm/ui/loader-fallback/index.js +4 -1
- package/dist/esm/ui/loader-fallback/styled.js +3 -0
- package/dist/esm/ui/styled.js +3 -0
- package/dist/types/common/analytics/index.d.ts +1 -1
- package/dist/types/common/ui/empty-state/index.d.ts +1 -1
- package/dist/types/controllers/session-provider/index.d.ts +1 -1
- package/dist/types/ui/error-boundary/error-boundary-base/index.d.ts +3 -3
- package/dist/types/ui/link-picker/search-results/track-tab-viewed/index.d.ts +1 -1
- package/dist/types/ui/messages-provider/lazy-messages-provider/index.d.ts +1 -1
- package/dist/types-ts4.5/common/analytics/index.d.ts +1 -1
- package/dist/types-ts4.5/common/ui/empty-state/index.d.ts +1 -1
- package/dist/types-ts4.5/controllers/session-provider/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/error-boundary/error-boundary-base/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/link-picker/search-results/track-tab-viewed/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/messages-provider/lazy-messages-provider/index.d.ts +1 -1
- package/package.json +147 -147
- package/report.api.md +75 -82
package/.eslintrc.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
2
|
+
rules: {
|
|
3
|
+
'import/no-default-export': ['warn'],
|
|
4
|
+
},
|
|
5
|
+
overrides: [
|
|
6
|
+
{
|
|
7
|
+
files: [
|
|
8
|
+
'**/__tests__/**/*.{js,ts,tsx}',
|
|
9
|
+
'examples/**/*.{js,ts,tsx}',
|
|
10
|
+
'docs/**/*.{js,ts,tsx}',
|
|
11
|
+
'src/i18n/**/*.{js,ts,tsx}',
|
|
12
|
+
],
|
|
13
|
+
rules: {
|
|
14
|
+
'import/no-default-export': ['off'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
files: ['src/**/*.vr.{js,ts,tsx}'],
|
|
19
|
+
rules: {
|
|
20
|
+
'@atlassian/tangerine/import/no-parent-imports': ['off'],
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
24
|
};
|
package/CHANGELOG.md
CHANGED
package/LICENSE.md
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
Copyright 2022 Atlassian Pty Ltd
|
|
2
2
|
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
|
|
5
|
-
You may obtain a copy of the License at
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
|
|
4
|
+
compliance with the License. You may obtain a copy of the License at
|
|
6
5
|
|
|
7
6
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
7
|
|
|
9
|
-
Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
distributed
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
limitations under the License.
|
|
8
|
+
Unless required by applicable law or agreed to in writing, software distributed under the License is
|
|
9
|
+
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
10
|
+
implied. See the License for the specific language governing permissions and limitations under the
|
|
11
|
+
License.
|
package/compass.yml
CHANGED
|
@@ -10,6 +10,7 @@ var _react = require("@emotion/react");
|
|
|
10
10
|
var _styled = require("./styled");
|
|
11
11
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
12
12
|
/** @jsx jsx */
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
14
|
|
|
14
15
|
var GenericErrorSVG = exports.GenericErrorSVG = function GenericErrorSVG(props) {
|
|
15
16
|
var id = 'link-picker-ui-generic-error-svg';
|
|
@@ -17,7 +18,9 @@ var GenericErrorSVG = exports.GenericErrorSVG = function GenericErrorSVG(props)
|
|
|
17
18
|
height: "90",
|
|
18
19
|
viewBox: "0 0 164 212",
|
|
19
20
|
fill: "none",
|
|
20
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
21
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
22
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
23
|
+
,
|
|
21
24
|
css: _styled.genericErrorStyles
|
|
22
25
|
}, props), (0, _react.jsx)("path", {
|
|
23
26
|
d: "m95.43 74.16 66.44 115.08c5.84 10.12-1.46 22.76-13.14 22.76H15.85c-11.68 0-18.98-12.65-13.14-22.76L69.15 74.16c5.84-10.12 20.44-10.12 26.28 0Zm-7.56 83.55 2.88-44.35c.34-5.29-3.86-9.78-9.16-9.78-5.31 0-9.51 4.48-9.16 9.78l2.88 44.35a6.3 6.3 0 0 0 6.28 5.89c3.31 0 6.06-2.58 6.28-5.89Zm-15.84 23.54c0 5.66 4.76 10.1 10.39 9.58 4.85-.45 8.73-4.5 8.83-9.37.11-5.45-4.31-9.94-9.73-9.94-5.23-.01-9.49 4.37-9.49 9.73Z",
|
|
@@ -5,7 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.genericErrorStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
|
+
|
|
8
10
|
var HEIGHT = 90;
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
9
13
|
var genericErrorStyles = exports.genericErrorStyles = (0, _react.css)({
|
|
10
14
|
height: "".concat(HEIGHT, "px"),
|
|
11
15
|
margin: "0 auto ".concat("var(--ds-space-300, 24px)"),
|
|
@@ -13,7 +13,9 @@ var EmptyState = exports.EmptyState = function EmptyState(_ref) {
|
|
|
13
13
|
header = _ref.header,
|
|
14
14
|
description = _ref.description,
|
|
15
15
|
renderImage = _ref.renderImage;
|
|
16
|
-
return /*#__PURE__*/_react.default.createElement(_primitives.Flex
|
|
16
|
+
return /*#__PURE__*/_react.default.createElement(_primitives.Flex
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
18
|
+
, {
|
|
17
19
|
xcss: (0, _primitives.xcss)({
|
|
18
20
|
marginBlockStart: 'space.600',
|
|
19
21
|
marginBlockEnd: 'space.600',
|
|
@@ -14,13 +14,16 @@ var _react2 = require("@emotion/react");
|
|
|
14
14
|
var _styled = require("./styled");
|
|
15
15
|
var _excluded = ["minHeight"];
|
|
16
16
|
/** @jsx jsx */
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
17
18
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
18
19
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
20
|
var MinHeightContainer = exports.MinHeightContainer = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
20
21
|
var minHeight = _ref.minHeight,
|
|
21
22
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
22
23
|
return (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
23
|
-
ref: ref
|
|
24
|
+
ref: ref
|
|
25
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
26
|
+
,
|
|
24
27
|
css: _styled.minHeightComponentStyles
|
|
25
28
|
}, props, {
|
|
26
29
|
style: (0, _defineProperty2.default)({}, '--link-picker-min-height', minHeight)
|
|
@@ -5,6 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.minHeightComponentStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
8
11
|
var minHeightComponentStyles = exports.minHeightComponentStyles = (0, _react.css)({
|
|
9
12
|
display: 'flex',
|
|
10
13
|
alignItems: 'stretch',
|
|
@@ -16,6 +16,7 @@ var _minHeightContainer = require("../../../common/ui/min-height-container");
|
|
|
16
16
|
var _styled = require("../../link-picker/styled");
|
|
17
17
|
var _styled2 = require("./styled");
|
|
18
18
|
/** @jsx jsx */
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
19
20
|
|
|
20
21
|
// eslint-disable-next-line @atlassian/tangerine/import/no-parent-imports
|
|
21
22
|
|
|
@@ -37,7 +38,9 @@ var ErrorBoundaryFallback = exports.ErrorBoundaryFallback = function ErrorBounda
|
|
|
37
38
|
var description = intl.formatMessage(messages.description);
|
|
38
39
|
var EmptyStateComponent = (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-picker.remove-dst-empty-state') ? _emptyState2.EmptyState : _emptyState.default;
|
|
39
40
|
if ((0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-picker.fixed-height-search-results')) {
|
|
40
|
-
return (0, _react.jsx)(_minHeightContainer.MinHeightContainer
|
|
41
|
+
return (0, _react.jsx)(_minHeightContainer.MinHeightContainer
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
43
|
+
, {
|
|
41
44
|
css: _styled2.errorBoundaryFallbackStyles,
|
|
42
45
|
minHeight: _constants.LINK_PICKER_MIN_HEIGHT_IN_PX_FALLBACK,
|
|
43
46
|
"data-testid": "link-picker-root-error-boundary-ui"
|
|
@@ -49,14 +52,17 @@ var ErrorBoundaryFallback = exports.ErrorBoundaryFallback = function ErrorBounda
|
|
|
49
52
|
description: description
|
|
50
53
|
}));
|
|
51
54
|
}
|
|
52
|
-
return (
|
|
53
|
-
css
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
55
|
+
return (
|
|
56
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
57
|
+
(0, _react.jsx)("div", {
|
|
58
|
+
css: _styled.rootContainerStyles,
|
|
59
|
+
"data-testid": "link-picker-root-error-boundary-ui"
|
|
60
|
+
}, (0, _react.jsx)(EmptyStateComponent, {
|
|
61
|
+
header: header,
|
|
62
|
+
renderImage: function renderImage() {
|
|
63
|
+
return (0, _react.jsx)(_genericErrorSvg.GenericErrorSVG, null);
|
|
64
|
+
},
|
|
65
|
+
description: description
|
|
66
|
+
}))
|
|
67
|
+
);
|
|
62
68
|
};
|
|
@@ -5,6 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.errorBoundaryFallbackStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
8
11
|
var errorBoundaryFallbackStyles = exports.errorBoundaryFallbackStyles = (0, _react.css)({
|
|
9
12
|
lineHeight: 'initial'
|
|
10
13
|
});
|
package/dist/cjs/ui/index.js
CHANGED
|
@@ -20,13 +20,13 @@ var _loaderFallback = require("./loader-fallback");
|
|
|
20
20
|
var _messagesProvider = require("./messages-provider");
|
|
21
21
|
var _styled = require("./styled");
|
|
22
22
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != (0, _typeof2.default)(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } /** @jsx jsx */
|
|
23
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != (0, _typeof2.default)(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
24
24
|
var testIds = exports.testIds = {
|
|
25
25
|
linkPickerRoot: 'link-picker-root'
|
|
26
26
|
};
|
|
27
27
|
var PACKAGE_DATA = exports.PACKAGE_DATA = {
|
|
28
28
|
packageName: "@atlaskit/link-picker" || '',
|
|
29
|
-
packageVersion: "1.37.
|
|
29
|
+
packageVersion: "1.37.2" || '',
|
|
30
30
|
componentName: _constants.COMPONENT_NAME,
|
|
31
31
|
source: _constants.COMPONENT_NAME
|
|
32
32
|
};
|
|
@@ -48,6 +48,7 @@ var DefaultRootComponent = function DefaultRootComponent(_ref2) {
|
|
|
48
48
|
}, children);
|
|
49
49
|
};
|
|
50
50
|
var FixedWidthContainer = function FixedWidthContainer(props) {
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
51
52
|
return (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
52
53
|
css: _styled.fixedWidthContainerStyles
|
|
53
54
|
}, props));
|
|
@@ -67,7 +68,8 @@ var ComposedLinkPicker = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
67
68
|
return (0, _react2.jsx)(_analyticsNext.AnalyticsContext, {
|
|
68
69
|
data: PACKAGE_DATA
|
|
69
70
|
}, (0, _react2.jsx)(_sessionProvider.LinkPickerSessionProvider, null, (0, _react2.jsx)(_messagesProvider.MessagesProvider, null, (0, _react2.jsx)("div", {
|
|
70
|
-
style: (_ref3 = {}, (0, _defineProperty2.default)(_ref3, '--link-picker-width', props.disableWidth ? '100%' :
|
|
71
|
+
style: (_ref3 = {}, (0, _defineProperty2.default)(_ref3, '--link-picker-width', props.disableWidth ? '100%' : // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
72
|
+
"".concat(_constants.LINK_PICKER_WIDTH_IN_PX, "px")), (0, _defineProperty2.default)(_ref3, '--link-picker-padding-left', (_props$paddingLeft = props.paddingLeft) !== null && _props$paddingLeft !== void 0 ? _props$paddingLeft : "var(--ds-space-200, 16px)"), (0, _defineProperty2.default)(_ref3, '--link-picker-padding-right', (_props$paddingRight = props.paddingRight) !== null && _props$paddingRight !== void 0 ? _props$paddingRight : "var(--ds-space-200, 16px)"), (0, _defineProperty2.default)(_ref3, '--link-picker-padding-top', (_props$paddingTop = props.paddingTop) !== null && _props$paddingTop !== void 0 ? _props$paddingTop : "var(--ds-space-200, 16px)"), (0, _defineProperty2.default)(_ref3, '--link-picker-padding-bottom', (_props$paddingBottom = props.paddingBottom) !== null && _props$paddingBottom !== void 0 ? _props$paddingBottom : "var(--ds-space-200, 16px)"), _ref3)
|
|
71
73
|
}, (0, _react2.jsx)(RootFixedWidthContainer, null, (0, _react2.jsx)(_errorBoundary.ErrorBoundary, null, (0, _react2.jsx)(_reactLooselyLazy.LazySuspense, {
|
|
72
74
|
fallback: (0, _react2.jsx)(LoaderFallbackContainer, null, (0, _react2.jsx)(_loaderFallback.LoaderFallback, {
|
|
73
75
|
hideDisplayText: props.hideDisplayText,
|
|
@@ -10,6 +10,8 @@ var _storageClient = require("@atlaskit/frontend-utilities/storage-client");
|
|
|
10
10
|
var _styled = require("./styled");
|
|
11
11
|
/** @jsx jsx */
|
|
12
12
|
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
|
+
|
|
13
15
|
var LOCAL_STORAGE_CLIENT_KEY = '@atlaskit/link-picker';
|
|
14
16
|
var LOCAL_STORAGE_DISCOVERY_KEY = 'action-discovery-jira-create';
|
|
15
17
|
var LOCAL_STORAGE_DISCOVERY_VALUE = 'discovered';
|
|
@@ -43,9 +45,12 @@ var FeatureDiscovery = function FeatureDiscovery(_ref) {
|
|
|
43
45
|
if (discovered) {
|
|
44
46
|
return children;
|
|
45
47
|
}
|
|
46
|
-
return (
|
|
47
|
-
css
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
return (
|
|
49
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
50
|
+
(0, _react2.jsx)("span", {
|
|
51
|
+
css: _styled.pulseStyles,
|
|
52
|
+
"data-testid": "".concat(testId, "-discovery")
|
|
53
|
+
}, children)
|
|
54
|
+
);
|
|
50
55
|
};
|
|
51
56
|
var _default = exports.default = FeatureDiscovery;
|
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.pulseStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
|
+
|
|
8
10
|
var pulseKeyframes = (0, _react.keyframes)({
|
|
9
11
|
to: {
|
|
10
12
|
boxShadow: '0 0 0 7px rgba(0, 0, 0, 0)'
|
|
@@ -13,6 +15,8 @@ var pulseKeyframes = (0, _react.keyframes)({
|
|
|
13
15
|
|
|
14
16
|
// Styling from atlassian-frontend/packages/design-system/onboarding/src/styled/target.tsx
|
|
15
17
|
var pulseColor = 'rgb(101, 84, 192)';
|
|
18
|
+
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-keyframes, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
16
20
|
var pulseStyles = exports.pulseStyles = (0, _react.css)({
|
|
17
21
|
display: 'inline-flex',
|
|
18
22
|
borderRadius: '3px',
|
|
@@ -22,6 +22,7 @@ var _styled = require("./styled");
|
|
|
22
22
|
var _utils = require("./utils");
|
|
23
23
|
var _excluded = ["isLoading", "isSubmitting", "error", "url", "queryState", "items", "isEditing", "onCancel", "action", "createFeatureDiscovery", "customSubmitButtonLabel"];
|
|
24
24
|
/** @jsx jsx */
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
26
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
26
27
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
27
28
|
var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
@@ -91,28 +92,33 @@ var FormFooter = exports.FormFooter = /*#__PURE__*/(0, _react.memo)(function (_r
|
|
|
91
92
|
"aria-labelledby": isSubmitting ? submitMessageId : undefined
|
|
92
93
|
}, typeof pluginAction.label === 'string' ? pluginAction.label : intl.formatMessage(pluginAction.label));
|
|
93
94
|
};
|
|
94
|
-
return (
|
|
95
|
-
css
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
95
|
+
return (
|
|
96
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
97
|
+
(0, _react2.jsx)("footer", (0, _extends2.default)({
|
|
98
|
+
css: _styled.formFooterStyles
|
|
99
|
+
}, restProps), isSubmitting && (0, _react2.jsx)(_visuallyHidden.default, {
|
|
100
|
+
role: "status",
|
|
101
|
+
id: submitMessageId,
|
|
102
|
+
testId: testIds.submitStatusA11yIndicator
|
|
103
|
+
}, intl.formatMessage(messages.submittingStatusMessage)), action &&
|
|
104
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
105
|
+
(0, _react2.jsx)("div", {
|
|
106
|
+
css: _styled.formFooterActionStyles
|
|
107
|
+
}, createFeatureDiscovery ? (0, _react2.jsx)(_featureDiscovery.default, {
|
|
108
|
+
testId: testIds.actionButtonDiscovery
|
|
109
|
+
}, createButton(action)) : createButton(action)), (0, _react2.jsx)(_button.ButtonGroup, null, onCancel && (0, _react2.jsx)(_button.default, {
|
|
110
|
+
appearance: "subtle",
|
|
111
|
+
onClick: onCancel,
|
|
112
|
+
testId: testIds.cancelButton,
|
|
113
|
+
isDisabled: isSubmitting,
|
|
114
|
+
"aria-labelledby": isSubmitting ? submitMessageId : undefined
|
|
115
|
+
}, intl.formatMessage(messages.cancelButton)), (0, _react2.jsx)(_loadingButton.default, {
|
|
116
|
+
type: "submit",
|
|
117
|
+
appearance: "primary",
|
|
118
|
+
testId: testIds.insertButton,
|
|
119
|
+
isDisabled: isSubmitDisabled,
|
|
120
|
+
"aria-labelledby": isSubmitting ? submitMessageId : undefined,
|
|
121
|
+
isLoading: isSubmitting
|
|
122
|
+
}, customSubmitButtonLabel ? intl.formatMessage(customSubmitButtonLabel) : intl.formatMessage(insertButtonMsg))))
|
|
123
|
+
);
|
|
118
124
|
});
|
|
@@ -5,10 +5,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.formFooterStyles = exports.formFooterActionStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
8
11
|
var formFooterStyles = exports.formFooterStyles = (0, _react.css)({
|
|
9
12
|
display: 'flex',
|
|
10
13
|
justifyContent: 'flex-end'
|
|
11
14
|
});
|
|
15
|
+
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
12
17
|
var formFooterActionStyles = exports.formFooterActionStyles = (0, _react.css)({
|
|
13
18
|
marginRight: 'auto'
|
|
14
19
|
});
|
|
@@ -31,7 +31,7 @@ var _textInput = require("./text-input");
|
|
|
31
31
|
var _trackMount = require("./track-mount");
|
|
32
32
|
var _utils = require("./utils");
|
|
33
33
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
34
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /** @jsx jsx */
|
|
34
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
35
35
|
var testIds = exports.testIds = _objectSpread(_objectSpread(_objectSpread({
|
|
36
36
|
linkPickerRoot: 'link-picker-root',
|
|
37
37
|
linkPicker: 'link-picker',
|
|
@@ -314,7 +314,9 @@ var LinkPicker = exports.LinkPicker = (0, _analytics.withLinkPickerAnalyticsCont
|
|
|
314
314
|
// for details: https://a11y-internal.atlassian.net/browse/AK-740
|
|
315
315
|
var screenReaderText = (0, _userAgent.browser)().safari && (0, _utils.getScreenReaderText)(items !== null && items !== void 0 ? items : [], selectedIndex, intl);
|
|
316
316
|
return (0, _react2.jsx)("form", {
|
|
317
|
-
"data-testid": testIds.linkPicker
|
|
317
|
+
"data-testid": testIds.linkPicker
|
|
318
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
319
|
+
,
|
|
318
320
|
css: _styled.rootContainerStyles
|
|
319
321
|
// Use onSubmitCapture instead of onSubmit so that any possible parent form isn't submitted
|
|
320
322
|
,
|
|
@@ -382,10 +384,12 @@ var LinkPicker = exports.LinkPicker = (0, _analytics.withLinkPickerAnalyticsCont
|
|
|
382
384
|
url: url,
|
|
383
385
|
isEditing: isEditing,
|
|
384
386
|
onCancel: onCancel,
|
|
385
|
-
action: pluginAction
|
|
387
|
+
action: pluginAction
|
|
388
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
389
|
+
,
|
|
386
390
|
css: !queryState || !(plugins !== null && plugins !== void 0 && plugins.length) ? _styled.formFooterMargin : undefined
|
|
387
391
|
/* Show the feature discovery pulse when we're on the Jira tab, we haven't started typing a url and
|
|
388
|
-
|
|
392
|
+
the feature flag is enabled */,
|
|
389
393
|
createFeatureDiscovery: (activePlugin === null || activePlugin === void 0 ? void 0 : activePlugin.tabKey) === 'jira' && allowCreateFeatureDiscovery && (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-picker.enable-jira-create'),
|
|
390
394
|
customSubmitButtonLabel: customMessages !== null && customMessages !== void 0 && customMessages.submitButtonLabel ? customMessages.submitButtonLabel : undefined
|
|
391
395
|
}));
|
|
@@ -22,7 +22,7 @@ var _trackTabViewed = require("./track-tab-viewed");
|
|
|
22
22
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
23
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
24
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
25
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /** @jsx jsx */
|
|
25
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var testIds = exports.testIds = _objectSpread(_objectSpread(_objectSpread({}, _linkSearchError.testIds), _linkSearchList.testIds), {}, {
|
|
27
27
|
tabsLoadingIndicator: 'link-picker.tabs-loading-indicator',
|
|
28
28
|
tabList: 'link-picker-tabs',
|
|
@@ -60,12 +60,16 @@ var SearchResults = exports.SearchResults = function SearchResults(_ref) {
|
|
|
60
60
|
}));
|
|
61
61
|
return (0, _react2.jsx)(_searchResultsContainer.SearchResultsContainer, (0, _extends2.default)({
|
|
62
62
|
hasTabs: !!tabs.length || isLoadingPlugins
|
|
63
|
-
}, fixListHeightProps), isLoadingPlugins && !!queryState &&
|
|
63
|
+
}, fixListHeightProps), isLoadingPlugins && !!queryState &&
|
|
64
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
65
|
+
(0, _react2.jsx)("div", {
|
|
64
66
|
css: _styled.spinnerContainerStyles
|
|
65
67
|
}, (0, _react2.jsx)(_spinner.default, {
|
|
66
68
|
testId: testIds.tabsLoadingIndicator,
|
|
67
69
|
size: "medium"
|
|
68
|
-
})), !isLoadingPlugins && isActivePlugin && !!queryState && (0, _react2.jsx)(_react.Fragment, null, tabs.length > 0 &&
|
|
70
|
+
})), !isLoadingPlugins && isActivePlugin && !!queryState && (0, _react2.jsx)(_react.Fragment, null, tabs.length > 0 &&
|
|
71
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
72
|
+
(0, _react2.jsx)("div", {
|
|
69
73
|
css: _styled.tabsWrapperStyles
|
|
70
74
|
}, (0, _react2.jsx)(_tabs.default, {
|
|
71
75
|
id: testIds.tabList,
|
|
@@ -14,6 +14,7 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
|
14
14
|
var _genericErrorSvg = require("../../../../common/generic-error-svg");
|
|
15
15
|
var _emptyState2 = require("../../../../common/ui/empty-state");
|
|
16
16
|
/** @jsx jsx */
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
17
18
|
|
|
18
19
|
var CONTACT_SUPPORT_LINK = exports.CONTACT_SUPPORT_LINK = 'https://support.atlassian.com/contact/';
|
|
19
20
|
var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
@@ -23,7 +23,7 @@ var _styled2 = require("./styled");
|
|
|
23
23
|
var _useTrackResultsShown = require("./use-track-results-shown");
|
|
24
24
|
var _excluded = ["onChange", "onSelect", "onKeyDown", "items", "activeIndex", "selectedIndex", "isLoading", "ariaControls", "ariaLabelledBy", "ariaReadOnly", "role", "id", "hasSearchTerm", "activePlugin"];
|
|
25
25
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
26
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /** @jsx jsx */
|
|
26
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
27
27
|
var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
28
28
|
titleRecentlyViewed: {
|
|
29
29
|
id: 'fabric.linkPicker.listTitle.recentlyViewed',
|
|
@@ -106,9 +106,12 @@ var LinkSearchList = exports.LinkSearchList = /*#__PURE__*/(0, _react.forwardRef
|
|
|
106
106
|
if (hasSearchTerm) {
|
|
107
107
|
return (0, _react2.jsx)(_linkSearchNoResults.NoResults, null);
|
|
108
108
|
} else {
|
|
109
|
-
return (
|
|
110
|
-
css
|
|
111
|
-
|
|
109
|
+
return (
|
|
110
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
111
|
+
(0, _react2.jsx)("div", {
|
|
112
|
+
css: _styled.emptyStateNoResultsWrapper
|
|
113
|
+
}, activePlugin !== null && activePlugin !== void 0 && activePlugin.emptyStateNoResults ? activePlugin.emptyStateNoResults() : null)
|
|
114
|
+
);
|
|
112
115
|
}
|
|
113
116
|
} else {
|
|
114
117
|
return (0, _react2.jsx)(_linkSearchNoResults.NoResults, null);
|
|
@@ -116,6 +119,7 @@ var LinkSearchList = exports.LinkSearchList = /*#__PURE__*/(0, _react.forwardRef
|
|
|
116
119
|
}
|
|
117
120
|
if (items && items.length > 0) {
|
|
118
121
|
itemsContent = (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)("div", {
|
|
122
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
119
123
|
css: _styled2.listTitleStyles,
|
|
120
124
|
id: testIds.resultListTitle,
|
|
121
125
|
"data-testid": testIds.resultListTitle
|
|
@@ -129,7 +133,9 @@ var LinkSearchList = exports.LinkSearchList = /*#__PURE__*/(0, _react.forwardRef
|
|
|
129
133
|
"aria-atomic": "true"
|
|
130
134
|
}))), (0, _react2.jsx)("ul", {
|
|
131
135
|
id: id,
|
|
132
|
-
role: role
|
|
136
|
+
role: role
|
|
137
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
138
|
+
,
|
|
133
139
|
css: _styled2.listStyles,
|
|
134
140
|
"aria-controls": "fabric.smartcard.linkpicker.suggested.results",
|
|
135
141
|
"aria-labelledby": testIds.resultListTitle,
|
|
@@ -157,15 +163,20 @@ var LinkSearchList = exports.LinkSearchList = /*#__PURE__*/(0, _react.forwardRef
|
|
|
157
163
|
}
|
|
158
164
|
if (isLoading) {
|
|
159
165
|
loadingContent = (0, _react2.jsx)(_minHeightContainer.MinHeightContainer, {
|
|
160
|
-
minHeight: (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-picker.fixed-height-search-results') ? '50px' : '80px'
|
|
166
|
+
minHeight: (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-picker.fixed-height-search-results') ? '50px' : '80px'
|
|
167
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
168
|
+
,
|
|
161
169
|
css: _styled2.spinnerContainerStyles
|
|
162
170
|
}, (0, _react2.jsx)(_spinner.default, {
|
|
163
171
|
testId: testIds.searchResultLoadingIndicator,
|
|
164
172
|
size: "medium"
|
|
165
173
|
}));
|
|
166
174
|
}
|
|
167
|
-
return (
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
175
|
+
return (
|
|
176
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
177
|
+
(0, _react2.jsx)("div", (0, _extends2.default)({
|
|
178
|
+
ref: ref,
|
|
179
|
+
css: _styled2.listContainerStyles
|
|
180
|
+
}, restProps), itemsContent, loadingContent)
|
|
181
|
+
);
|
|
171
182
|
});
|
package/dist/cjs/ui/link-picker/search-results/link-search-list/link-search-no-results/index.js
CHANGED
|
@@ -13,6 +13,7 @@ var _emptyState2 = require("../../../../../common/ui/empty-state");
|
|
|
13
13
|
var _noResultsSvg = require("./no-results-svg");
|
|
14
14
|
var _styled = require("./styled");
|
|
15
15
|
/** @jsx jsx */
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
17
|
|
|
17
18
|
var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
18
19
|
noResults: {
|
|
@@ -32,15 +33,18 @@ var testIds = exports.testIds = {
|
|
|
32
33
|
var NoResults = exports.NoResults = function NoResults() {
|
|
33
34
|
var intl = (0, _reactIntlNext.useIntl)();
|
|
34
35
|
var Component = (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-picker.remove-dst-empty-state') ? _emptyState2.EmptyState : _emptyState.default;
|
|
35
|
-
return (
|
|
36
|
-
css
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
36
|
+
return (
|
|
37
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
38
|
+
(0, _react.jsx)("div", {
|
|
39
|
+
css: _styled.emptyStateWrapperStyles
|
|
40
|
+
}, (0, _react.jsx)(Component, {
|
|
41
|
+
testId: testIds.emptyResultPage,
|
|
42
|
+
header: intl.formatMessage(messages.noResults),
|
|
43
|
+
headingLevel: (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-picker.remove-dst-empty-state') ? undefined : 3,
|
|
44
|
+
description: intl.formatMessage(messages.noResultsDescription),
|
|
45
|
+
renderImage: function renderImage() {
|
|
46
|
+
return (0, _react.jsx)(_noResultsSvg.NoResultsSVG, null);
|
|
47
|
+
}
|
|
48
|
+
}))
|
|
49
|
+
);
|
|
46
50
|
};
|
|
@@ -8,10 +8,12 @@ var _react = require("@emotion/react");
|
|
|
8
8
|
var _styled = require("./styled");
|
|
9
9
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
10
10
|
/** @jsx jsx */
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
12
|
|
|
12
13
|
var NoResultsSVG = exports.NoResultsSVG = function NoResultsSVG() {
|
|
13
14
|
var id = 'link-picker-ui-no-results-svg';
|
|
14
15
|
return (0, _react.jsx)("svg", {
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
15
17
|
css: _styled.noResultsSVGStyles,
|
|
16
18
|
height: "120",
|
|
17
19
|
viewBox: "0 0 208 191",
|
|
@@ -5,7 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.noResultsSVGStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
|
+
|
|
8
10
|
var HEIGHT = 120;
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
9
13
|
var noResultsSVGStyles = exports.noResultsSVGStyles = (0, _react.css)({
|
|
10
14
|
height: "".concat(HEIGHT, "px"),
|
|
11
15
|
margin: "0 auto ".concat("var(--ds-space-300, 24px)"),
|