@atlaskit/link-picker 3.6.3 → 3.8.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.
Files changed (70) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/compass.yml +5 -5
  3. package/dist/cjs/common/generic-error-svg/index.compiled.css +2 -1
  4. package/dist/cjs/common/generic-error-svg/index.js +27 -40
  5. package/dist/cjs/common/ui/empty-state/index.compiled.css +0 -2
  6. package/dist/cjs/common/ui/empty-state/index.js +4 -25
  7. package/dist/cjs/ui/error-boundary/error-boundary-fallback/index.js +1 -5
  8. package/dist/cjs/ui/link-picker/form-footer/index.js +4 -20
  9. package/dist/cjs/ui/link-picker/form-footer/link-picker-submit-button/index.js +1 -4
  10. package/dist/cjs/ui/link-picker/index.js +1 -1
  11. package/dist/cjs/ui/link-picker/search-results/index.js +1 -2
  12. package/dist/cjs/ui/link-picker/search-results/link-search-error/index.js +3 -15
  13. package/dist/cjs/ui/link-picker/search-results/link-search-list/link-search-no-results/index.js +1 -5
  14. package/dist/cjs/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.compiled.css +2 -1
  15. package/dist/cjs/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.js +22 -43
  16. package/dist/cjs/ui/link-picker/search-results/link-search-list/list-item/index.js +2 -3
  17. package/dist/cjs/ui/link-picker/search-results/search-results-container/index.js +1 -2
  18. package/dist/cjs/ui/loader-fallback/index.js +6 -6
  19. package/dist/cjs/ui/main.js +1 -1
  20. package/dist/es2019/common/generic-error-svg/index.compiled.css +2 -1
  21. package/dist/es2019/common/generic-error-svg/index.js +26 -39
  22. package/dist/es2019/common/ui/empty-state/index.compiled.css +0 -2
  23. package/dist/es2019/common/ui/empty-state/index.js +4 -25
  24. package/dist/es2019/ui/error-boundary/error-boundary-fallback/index.js +1 -3
  25. package/dist/es2019/ui/link-picker/form-footer/index.js +5 -21
  26. package/dist/es2019/ui/link-picker/form-footer/link-picker-submit-button/index.js +1 -4
  27. package/dist/es2019/ui/link-picker/index.js +1 -1
  28. package/dist/es2019/ui/link-picker/search-results/index.js +1 -2
  29. package/dist/es2019/ui/link-picker/search-results/link-search-error/index.js +4 -14
  30. package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/index.js +1 -3
  31. package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.compiled.css +2 -1
  32. package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.js +21 -42
  33. package/dist/es2019/ui/link-picker/search-results/link-search-list/list-item/index.js +2 -3
  34. package/dist/es2019/ui/link-picker/search-results/search-results-container/index.js +1 -2
  35. package/dist/es2019/ui/loader-fallback/index.js +6 -6
  36. package/dist/es2019/ui/main.js +1 -1
  37. package/dist/esm/common/generic-error-svg/index.compiled.css +2 -1
  38. package/dist/esm/common/generic-error-svg/index.js +27 -40
  39. package/dist/esm/common/ui/empty-state/index.compiled.css +0 -2
  40. package/dist/esm/common/ui/empty-state/index.js +4 -25
  41. package/dist/esm/ui/error-boundary/error-boundary-fallback/index.js +1 -5
  42. package/dist/esm/ui/link-picker/form-footer/index.js +5 -21
  43. package/dist/esm/ui/link-picker/form-footer/link-picker-submit-button/index.js +1 -4
  44. package/dist/esm/ui/link-picker/index.js +1 -1
  45. package/dist/esm/ui/link-picker/search-results/index.js +1 -2
  46. package/dist/esm/ui/link-picker/search-results/link-search-error/index.js +4 -16
  47. package/dist/esm/ui/link-picker/search-results/link-search-list/link-search-no-results/index.js +1 -5
  48. package/dist/esm/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.compiled.css +2 -1
  49. package/dist/esm/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.js +22 -43
  50. package/dist/esm/ui/link-picker/search-results/link-search-list/list-item/index.js +2 -3
  51. package/dist/esm/ui/link-picker/search-results/search-results-container/index.js +1 -2
  52. package/dist/esm/ui/loader-fallback/index.js +6 -6
  53. package/dist/esm/ui/main.js +1 -1
  54. package/package.json +7 -13
  55. package/dist/cjs/common/generic-error-svg-v2/index.compiled.css +0 -3
  56. package/dist/cjs/common/generic-error-svg-v2/index.js +0 -53
  57. package/dist/cjs/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg-v2/index.compiled.css +0 -3
  58. package/dist/cjs/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg-v2/index.js +0 -49
  59. package/dist/es2019/common/generic-error-svg-v2/index.compiled.css +0 -3
  60. package/dist/es2019/common/generic-error-svg-v2/index.js +0 -41
  61. package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg-v2/index.compiled.css +0 -3
  62. package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg-v2/index.js +0 -38
  63. package/dist/esm/common/generic-error-svg-v2/index.compiled.css +0 -3
  64. package/dist/esm/common/generic-error-svg-v2/index.js +0 -44
  65. package/dist/esm/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg-v2/index.compiled.css +0 -3
  66. package/dist/esm/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg-v2/index.js +0 -41
  67. package/dist/types/common/generic-error-svg-v2/index.d.ts +0 -2
  68. package/dist/types/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg-v2/index.d.ts +0 -2
  69. package/dist/types-ts4.5/common/generic-error-svg-v2/index.d.ts +0 -2
  70. package/dist/types-ts4.5/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg-v2/index.d.ts +0 -2
@@ -3,55 +3,42 @@ import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./index.compiled.css";
4
4
  import * as React from 'react';
5
5
  import { ax, ix } from "@compiled/react/runtime";
6
- var HEIGHT = 90;
6
+ var SIZE = 96;
7
7
  var genericErrorStyles = null;
8
8
  export var GenericErrorSVG = function GenericErrorSVG(props) {
9
- var id = 'link-picker-ui-generic-error-svg';
10
9
  return /*#__PURE__*/React.createElement("svg", _extends({
11
- height: "90",
12
- viewBox: "0 0 164 212",
10
+ viewBox: "0 0 96 96",
13
11
  fill: "none",
14
12
  xmlns: "http://www.w3.org/2000/svg"
15
13
  }, props, {
16
- className: ax(["_4t3i1rxo _1e0c1ule"]),
14
+ className: ax(["_1bsbwdok _4t3iwdok _1e0c1ule"]),
17
15
  style: {
18
- "--_1fywwk4": ix("".concat(HEIGHT, "px"))
16
+ "--_cjikvn": ix("".concat(SIZE, "px"))
19
17
  }
20
18
  }), /*#__PURE__*/React.createElement("path", {
21
- 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",
22
- fill: "url(#".concat(id, ")")
19
+ fill: "#fff",
20
+ d: "M64.861 32.06a27.753 27.753 0 0 0-2.667-4.133 28.187 28.187 0 0 0-3.376-3.669c-6.985-6.311-15.57-6.89-23.609-2.53a30.226 30.226 0 0 0-4.056 2.656 30.624 30.624 0 0 0-3.735 3.4c-6.225 6.717-7.82 15.154-3.505 23.462a28.108 28.108 0 0 0 2.698 4.193 27.67 27.67 0 0 0 3.33 3.62c6.94 6.266 15.518 6.85 23.596 2.507a30.492 30.492 0 0 0 4.23-2.758 30.07 30.07 0 0 0 3.593-3.257c6.252-6.692 7.847-15.161 3.494-23.49h.007Z"
23
21
  }), /*#__PURE__*/React.createElement("path", {
24
- opacity: ".6",
25
- d: "M93.35 27.17 85.94.45c-.17-.62-1.07-.58-1.19.05l-4.66 25.1-5.8-1.08a.612.612 0 0 0-.7.76L81 52c.17.62 1.07.58 1.19-.05l4.66-25.1 5.8 1.08c.45.08.82-.33.7-.76ZM66.77 41.81 55.9 33.26c-.22-.18-.53.07-.41.33l5.53 11.43-2.66 1.29c-.18.09-.2.33-.05.45l10.87 8.55c.22.18.53-.07.41-.33l-5.53-11.43 2.66-1.29c.17-.08.2-.33.05-.45Z",
26
- fill: "#C1C7D0"
22
+ fill: "#DDDEE1",
23
+ d: "M43.092 66.774c-5.306 0-10.382-1.997-14.75-5.938a30.405 30.405 0 0 1-3.62-3.93 30.243 30.243 0 0 1-2.928-4.553c-4.657-8.961-3.247-18.509 3.871-26.192a33.271 33.271 0 0 1 4.025-3.67 32.834 32.834 0 0 1 4.378-2.869c9.209-4.995 18.816-3.951 26.353 2.86a30.945 30.945 0 0 1 3.665 3.98 30.303 30.303 0 0 1 2.898 4.488c4.705 9.003 3.295 18.565-3.868 26.231a32.148 32.148 0 0 1-3.879 3.515 33.415 33.415 0 0 1-4.562 2.975c-3.858 2.073-7.782 3.1-11.583 3.1v.003Zm2.53-45.486c-3.019 0-6.147.84-9.275 2.54a28.433 28.433 0 0 0-3.735 2.448 28.059 28.059 0 0 0-3.442 3.135c-5.746 6.203-6.86 13.566-3.135 20.736a25.395 25.395 0 0 0 2.472 3.83 25.304 25.304 0 0 0 3.044 3.309c5.99 5.41 13.398 6.182 20.862 2.175a28.02 28.02 0 0 0 3.899-2.545 28.03 28.03 0 0 0 3.31-2.999c5.777-6.182 6.883-13.552 3.124-20.75a25.553 25.553 0 0 0-2.44-3.777 25.848 25.848 0 0 0-3.087-3.358c-3.49-3.153-7.442-4.744-11.59-4.744h-.006Z"
27
24
  }), /*#__PURE__*/React.createElement("path", {
28
- opacity: ".6",
29
- d: "M102.78 56.75a.993.993 0 0 1-.92-1.38c-.24-.77-2.29-2.85-3.54-4.11-2.97-3.01-4.93-5-3.84-6.49 1.09-1.48 3.58-.22 7.35 1.7 1.32.67 3.35 1.7 4.45 2.03-.64-.95-2.24-2.58-3.28-3.63-2.97-3.01-4.93-5-3.84-6.49 1.08-1.48 3.58-.22 7.34 1.7 1.32.67 3.34 1.7 4.45 2.03-.64-.95-2.24-2.57-3.28-3.62-2.97-3.01-4.93-5-3.84-6.49 1.08-1.48 3.57-.22 7.34 1.7 1.58.8 4.18 2.13 4.98 2.13a1.005 1.005 0 0 1 1.46 1.36c-1.09 1.48-3.57.22-7.34-1.7-1.32-.67-3.34-1.7-4.44-2.03.64.95 2.24 2.57 3.28 3.62 2.97 3.01 4.93 5 3.84 6.49-1.08 1.48-3.57.22-7.34-1.7-1.32-.67-3.35-1.7-4.45-2.03.64.95 2.24 2.57 3.28 3.63 2.97 3.01 4.93 5 3.84 6.49-1.09 1.48-3.58.22-7.35-1.7-1.32-.67-3.35-1.71-4.45-2.03.64.95 2.24 2.58 3.28 3.63 2.97 3.01 4.93 5 3.84 6.49-.21.26-.51.4-.82.4Zm5.56 14.32c-.35 0-.69-.19-.88-.52-1.04-1.88-2.22-4.02-.91-5.21 1.31-1.2 3.34.18 5.49 1.63.87.59 2.26 1.53 2.93 1.71-.12-.68-.93-2.15-1.45-3.07-1.26-2.27-2.45-4.41-1.14-5.61 1.31-1.2 3.34.18 5.49 1.63.96.65 2.54 1.72 3.1 1.74a1 1 0 0 1 1.27 1.54c-1.31 1.2-3.34-.17-5.49-1.63-.87-.59-2.26-1.53-2.93-1.71.12.68.93 2.15 1.45 3.07 1.26 2.27 2.45 4.41 1.14 5.61-1.31 1.2-3.34-.18-5.49-1.63-.87-.59-2.26-1.53-2.93-1.71.12.68.93 2.14 1.22 2.67.27.48.09 1.09-.39 1.36-.15.09-.32.13-.48.13Zm-54.32-2.89c-.22 0-.44-.04-.67-.14-1.64-.69-1.24-3.11-.81-5.67.17-1.04.45-2.7.33-3.38-.57.39-1.56 1.75-2.18 2.6-1.53 2.09-2.99 4.07-4.62 3.38a.991.991 0 0 1-.53-1.31c.2-.48.73-.72 1.21-.57.52-.21 1.65-1.75 2.34-2.68 1.53-2.09 2.98-4.08 4.62-3.38 1.64.69 1.24 3.11.81 5.67-.17 1.04-.45 2.7-.33 3.38.57-.39 1.56-1.75 2.18-2.6 1.53-2.09 2.98-4.08 4.62-3.38 1.63.69 1.24 3.09.89 5.21-.09.54-.6.91-1.15.83-.54-.09-.92-.6-.83-1.15.1-.59.37-2.24.26-2.92-.57.39-1.56 1.75-2.18 2.6-1.33 1.79-2.59 3.51-3.96 3.51Z",
30
- fill: "#B3BAC5"
31
- }), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
32
- id: id,
33
- x1: "26.169",
34
- y1: "228.621",
35
- x2: "138.408",
36
- y2: "116.382",
37
- gradientUnits: "userSpaceOnUse"
38
- }, /*#__PURE__*/React.createElement("stop", {
39
- stopColor: "#C1C7D0"
40
- }), /*#__PURE__*/React.createElement("stop", {
41
- offset: ".297",
42
- stopColor: "#C6CBD4",
43
- stopOpacity: ".881"
44
- }), /*#__PURE__*/React.createElement("stop", {
45
- offset: ".63",
46
- stopColor: "#D3D7DE",
47
- stopOpacity: ".748"
48
- }), /*#__PURE__*/React.createElement("stop", {
49
- offset: ".98",
50
- stopColor: "#E9EBEF",
51
- stopOpacity: ".608"
52
- }), /*#__PURE__*/React.createElement("stop", {
53
- offset: "1",
54
- stopColor: "#EBECF0",
55
- stopOpacity: ".6"
56
- }))));
25
+ fill: "#DDDEE1",
26
+ d: "M62.822 59.694c-1.235-1.72-2.562-1.71-3.857-.708-1.215.939-1.54 2.21-.244 3.882l1.48 1.913 4.102-3.174-1.48-1.913Z"
27
+ }), /*#__PURE__*/React.createElement("path", {
28
+ fill: "#DDDEE1",
29
+ d: "m65.334 60.811-6.159 4.762L70.748 80.54l6.16-4.761L65.333 60.81Z"
30
+ }), /*#__PURE__*/React.createElement("path", {
31
+ fill: "#B7B9BE",
32
+ d: "m64.344 61.577-4.178 3.23 3.925 5.076 4.178-3.23-3.925-5.076Z"
33
+ }), /*#__PURE__*/React.createElement("path", {
34
+ fill: "#DDDEE1",
35
+ fillRule: "evenodd",
36
+ d: "M55.057 33.452 36.213 52.296l-2.468-2.469 18.844-18.844 2.468 2.469Z",
37
+ clipRule: "evenodd"
38
+ }), /*#__PURE__*/React.createElement("path", {
39
+ fill: "#DDDEE1",
40
+ fillRule: "evenodd",
41
+ d: "M52.589 52.296 33.745 33.452l2.468-2.469 18.844 18.844-2.468 2.469Z",
42
+ clipRule: "evenodd"
43
+ }));
57
44
  };
@@ -1,6 +1,4 @@
1
1
  ._19bvoahv{padding-left:var(--ds-space-600,3pc)}
2
- ._1pfhoahv{margin-block-start:var(--ds-space-600,3pc)}
3
- ._6rthoahv{margin-block-end:var(--ds-space-600,3pc)}
4
2
  ._ca0q1ejb{padding-top:var(--ds-space-300,24px)}
5
3
  ._n3td1jfw{padding-bottom:var(--ds-space-500,40px)}
6
4
  ._u5f3oahv{padding-right:var(--ds-space-600,3pc)}
@@ -3,10 +3,8 @@ import "./index.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import Heading from '@atlaskit/heading';
6
- import { fg } from '@atlaskit/platform-feature-flags';
7
6
  import { Flex, Text } from '@atlaskit/primitives/compiled';
8
7
  var styles = {
9
- container: "_1pfhoahv _6rthoahv _y3gn1h6o",
10
8
  containerV2: "_ca0q1ejb _u5f3oahv _19bvoahv _n3td1jfw _y3gn1h6o"
11
9
  };
12
10
  export var EmptyState = function EmptyState(_ref) {
@@ -15,36 +13,17 @@ export var EmptyState = function EmptyState(_ref) {
15
13
  description = _ref.description,
16
14
  action = _ref.action,
17
15
  renderImage = _ref.renderImage;
18
- if (fg('platform-linking-visual-refresh-link-picker')) {
19
- return /*#__PURE__*/React.createElement(Flex, {
20
- xcss: styles.containerV2,
21
- testId: testId,
22
- direction: "column",
23
- alignItems: "center",
24
- gap: "space.200"
25
- }, renderImage === null || renderImage === void 0 ? void 0 : renderImage(), /*#__PURE__*/React.createElement(Heading, {
26
- size: "small",
27
- as: "h2"
28
- }, header), description && /*#__PURE__*/React.createElement(Text, {
29
- as: "p",
30
- color: "color.text"
31
- }, description), action && action);
32
- }
33
16
  return /*#__PURE__*/React.createElement(Flex, {
34
- xcss: styles.container,
17
+ xcss: styles.containerV2,
35
18
  testId: testId,
36
- direction: "column",
37
- alignItems: "center",
38
- gap: "space.300"
39
- }, renderImage === null || renderImage === void 0 ? void 0 : renderImage(), /*#__PURE__*/React.createElement(Flex, {
40
19
  direction: "column",
41
20
  alignItems: "center",
42
21
  gap: "space.200"
43
- }, /*#__PURE__*/React.createElement(Heading, {
44
- size: "medium",
22
+ }, renderImage === null || renderImage === void 0 ? void 0 : renderImage(), /*#__PURE__*/React.createElement(Heading, {
23
+ size: "small",
45
24
  as: "h2"
46
25
  }, header), description && /*#__PURE__*/React.createElement(Text, {
47
26
  as: "p",
48
27
  color: "color.text"
49
- }, description)));
28
+ }, description), action && action);
50
29
  };
@@ -3,10 +3,8 @@ import "./index.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import { defineMessages, useIntl } from 'react-intl-next';
6
- import { fg } from '@atlaskit/platform-feature-flags';
7
6
  import { LINK_PICKER_MIN_HEIGHT_IN_PX_FALLBACK } from '../../../common/constants';
8
7
  import { GenericErrorSVG } from '../../../common/generic-error-svg';
9
- import { GenericErrorSVGV2 } from '../../../common/generic-error-svg-v2';
10
8
  import { EmptyState } from '../../../common/ui/empty-state';
11
9
  import { MinHeightContainer } from '../../../common/ui/min-height-container';
12
10
  var errorBoundaryFallbackStyles = null;
@@ -32,9 +30,7 @@ export var ErrorBoundaryFallback = function ErrorBoundaryFallback() {
32
30
  className: ax(["_11c81vhk"])
33
31
  }, /*#__PURE__*/React.createElement(EmptyState, {
34
32
  header: header,
35
- renderImage: fg('platform-linking-visual-refresh-link-picker') ? function () {
36
- return /*#__PURE__*/React.createElement(GenericErrorSVGV2, null);
37
- } : function () {
33
+ renderImage: function renderImage() {
38
34
  return /*#__PURE__*/React.createElement(GenericErrorSVG, null);
39
35
  },
40
36
  description: description
@@ -7,16 +7,14 @@ import * as React from 'react';
7
7
  import { ax, ix } from "@compiled/react/runtime";
8
8
  import { memo } from 'react';
9
9
  import { defineMessages, useIntl } from 'react-intl-next';
10
- import Button, { ButtonGroup } from '@atlaskit/button';
11
- import NewButton from '@atlaskit/button/new';
10
+ import { ButtonGroup } from '@atlaskit/button';
11
+ import Button from '@atlaskit/button/new';
12
12
  import EditorAddIcon from '@atlaskit/icon/core/add';
13
13
  import EditorAddIconLegacy from '@atlaskit/icon/glyph/editor/add';
14
- import { fg } from '@atlaskit/platform-feature-flags';
15
14
  import VisuallyHidden from '@atlaskit/visually-hidden';
16
15
  import { UnauthenticatedError } from '../../../common/utils/errors';
17
16
  import { LinkPickerSubmitButton } from './link-picker-submit-button';
18
17
  var formFooterStyles = null;
19
- var formFooterV2Styles = null;
20
18
  var formFooterActionStyles = null;
21
19
  export var messages = defineMessages({
22
20
  cancelButton: {
@@ -57,7 +55,7 @@ export var FormFooter = /*#__PURE__*/memo(function (_ref) {
57
55
  return null;
58
56
  }
59
57
  var createButton = function createButton(pluginAction) {
60
- return fg('platform-link-picker-remove-legacy-button') ? /*#__PURE__*/React.createElement(NewButton, {
58
+ return /*#__PURE__*/React.createElement(Button, {
61
59
  testId: testIds.actionButton,
62
60
  onClick: pluginAction.callback,
63
61
  appearance: "default",
@@ -72,32 +70,18 @@ export var FormFooter = /*#__PURE__*/memo(function (_ref) {
72
70
  },
73
71
  isDisabled: isSubmitting,
74
72
  "aria-labelledby": isSubmitting ? submitMessageId : undefined
75
- }, typeof pluginAction.label === 'string' ? pluginAction.label : intl.formatMessage(pluginAction.label)) : /*#__PURE__*/React.createElement(Button, {
76
- testId: testIds.actionButton,
77
- onClick: pluginAction.callback,
78
- appearance: "default",
79
- iconBefore: /*#__PURE__*/React.createElement(EditorAddIcon, {
80
- label: "",
81
- LEGACY_size: "medium",
82
- LEGACY_fallbackIcon: EditorAddIconLegacy,
83
- color: "currentColor",
84
- size: "small"
85
- }),
86
- isDisabled: isSubmitting,
87
- "aria-labelledby": isSubmitting ? submitMessageId : undefined
88
73
  }, typeof pluginAction.label === 'string' ? pluginAction.label : intl.formatMessage(pluginAction.label));
89
74
  };
90
- var ButtonComponent = fg('platform-link-picker-remove-legacy-button') ? NewButton : Button;
91
75
  return /*#__PURE__*/React.createElement("footer", _extends({
92
76
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
93
- className: ax([fg('platform-linking-visual-refresh-link-picker') ? "_1e0c1txw _1bahesu3 _ca0qpxbi" : "_1e0c1txw _1bahesu3", className])
77
+ className: ax(["_1e0c1txw _1bahesu3 _ca0qpxbi", className])
94
78
  }, restProps), isSubmitting && /*#__PURE__*/React.createElement(VisuallyHidden, {
95
79
  role: "status",
96
80
  id: submitMessageId,
97
81
  testId: testIds.submitStatusA11yIndicator
98
82
  }, intl.formatMessage(messages.submittingStatusMessage)), action && /*#__PURE__*/React.createElement("div", {
99
83
  className: ax(["_2hwx1wug"])
100
- }, createButton(action)), /*#__PURE__*/React.createElement(ButtonGroup, null, onCancel && /*#__PURE__*/React.createElement(ButtonComponent, {
84
+ }, createButton(action)), /*#__PURE__*/React.createElement(ButtonGroup, null, onCancel && /*#__PURE__*/React.createElement(Button, {
101
85
  appearance: "subtle",
102
86
  onClick: onCancel,
103
87
  testId: testIds.cancelButton,
@@ -1,8 +1,6 @@
1
1
  import React from 'react';
2
2
  import { defineMessages, useIntl } from 'react-intl-next';
3
- import LoadingButton from '@atlaskit/button/loading-button';
4
3
  import Button from '@atlaskit/button/new';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
4
  import { checkSubmitDisabled } from './utils';
7
5
  export var messages = defineMessages({
8
6
  saveButton: {
@@ -30,8 +28,7 @@ export var LinkPickerSubmitButton = function LinkPickerSubmitButton(_ref) {
30
28
  var intl = useIntl();
31
29
  var insertButtonMsg = isEditing ? messages.saveButton : messages.insertButton;
32
30
  var isSubmitDisabled = checkSubmitDisabled(isLoading, isSubmitting, error, url, queryState, items);
33
- var ButtonComponent = fg('platform-link-picker-remove-legacy-button') ? Button : LoadingButton;
34
- return /*#__PURE__*/React.createElement(ButtonComponent, {
31
+ return /*#__PURE__*/React.createElement(Button, {
35
32
  type: "submit",
36
33
  appearance: "primary",
37
34
  testId: testId,
@@ -447,7 +447,7 @@ export var LinkPicker = withLinkPickerAnalyticsContext( /*#__PURE__*/memo(functi
447
447
  readOnly: isSubmitting,
448
448
  onClear: handleClear,
449
449
  onChange: handleChangeText
450
- }), fg('platform-linking-visual-refresh-link-picker') && /*#__PURE__*/React.createElement(HelperMessage, {
450
+ }), /*#__PURE__*/React.createElement(HelperMessage, {
451
451
  testId: testIds.linkHelperText
452
452
  }, customMessages !== null && customMessages !== void 0 && customMessages.linkHelperTextLabel ? intl.formatMessage(customMessages === null || customMessages === void 0 ? void 0 : customMessages.linkHelperTextLabel) : intl.formatMessage(linkTextMessages.linkHelperTextLabel))), moveSubmitButton && /*#__PURE__*/React.createElement(Box, {
453
453
  xcss: styles.fullWidthSubmitButton
@@ -6,7 +6,6 @@ import { ax, ix } from "@compiled/react/runtime";
6
6
  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; }
7
7
  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) { _defineProperty(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; }
8
8
  import { Fragment } from 'react';
9
- import { fg } from '@atlaskit/platform-feature-flags';
10
9
  import { Box } from '@atlaskit/primitives/compiled';
11
10
  import Spinner from '@atlaskit/spinner/spinner';
12
11
  import Tabs, { Tab, TabList } from '@atlaskit/tabs';
@@ -87,6 +86,6 @@ export var SearchResults = function SearchResults(_ref) {
87
86
  adaptiveHeight: adaptiveHeight,
88
87
  tabPanelId: "".concat(testIds.tabList, "-").concat(activeTab, "-tab")
89
88
  }), 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 : /*#__PURE__*/React.createElement(LinkSearchError, {
90
- onRetry: fg('platform-linking-visual-refresh-link-picker') ? retry : undefined
89
+ onRetry: retry
91
90
  }) : null));
92
91
  };
@@ -2,12 +2,9 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
3
  import { defineMessages, FormattedMessage, useIntl } from 'react-intl-next';
4
4
  import { isFedRamp } from '@atlaskit/atlassian-context';
5
- import Button from '@atlaskit/button';
6
- import NewButton from '@atlaskit/button/new';
5
+ import Button from '@atlaskit/button/new';
7
6
  import Link from '@atlaskit/link';
8
- import { fg } from '@atlaskit/platform-feature-flags';
9
7
  import { GenericErrorSVG } from '../../../../common/generic-error-svg';
10
- import { GenericErrorSVGV2 } from '../../../../common/generic-error-svg-v2';
11
8
  import { EmptyState } from '../../../../common/ui/empty-state';
12
9
  export var CONTACT_SUPPORT_LINK = 'https://support.atlassian.com/contact/';
13
10
  export var CONTACT_SUPPORT_LINK_FEDRAMP = 'https://gcs.atlassian-us-gov-mod.net/servicedesk/customer/portals';
@@ -34,20 +31,13 @@ export var testIds = {
34
31
  export var LinkSearchError = function LinkSearchError(_ref) {
35
32
  var onRetry = _ref.onRetry;
36
33
  var intl = useIntl();
37
- var ButtonComponent = fg('platform-link-picker-remove-legacy-button') ? NewButton : Button;
38
34
  return /*#__PURE__*/React.createElement(EmptyState, {
39
35
  testId: testIds.searchError,
40
36
  header: intl.formatMessage(messages.searchErrorHeader),
41
37
  description: /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.searchErrorDescription, {
42
38
  values: {
43
39
  a: function a(label) {
44
- return fg('platform-link-picker-remove-legacy-button') ? /*#__PURE__*/React.createElement(Link, {
45
- href: isFedRamp() ? CONTACT_SUPPORT_LINK_FEDRAMP : CONTACT_SUPPORT_LINK,
46
- target: "_blank",
47
- rel: "noopener noreferrer"
48
- }, label) : /*#__PURE__*/React.createElement(Button, {
49
- appearance: "link",
50
- spacing: "none",
40
+ return /*#__PURE__*/React.createElement(Link, {
51
41
  href: isFedRamp() ? CONTACT_SUPPORT_LINK_FEDRAMP : CONTACT_SUPPORT_LINK,
52
42
  target: "_blank",
53
43
  rel: "noopener noreferrer"
@@ -55,13 +45,11 @@ export var LinkSearchError = function LinkSearchError(_ref) {
55
45
  }
56
46
  }
57
47
  })),
58
- action: onRetry && fg('platform-linking-visual-refresh-link-picker') ? /*#__PURE__*/React.createElement(ButtonComponent, {
48
+ action: onRetry ? /*#__PURE__*/React.createElement(Button, {
59
49
  appearance: "primary",
60
50
  onClick: onRetry
61
51
  }, /*#__PURE__*/React.createElement(FormattedMessage, messages.searchErrorAction)) : null,
62
- renderImage: fg('platform-linking-visual-refresh-link-picker') ? function () {
63
- return /*#__PURE__*/React.createElement(GenericErrorSVGV2, null);
64
- } : function () {
52
+ renderImage: function renderImage() {
65
53
  return /*#__PURE__*/React.createElement(GenericErrorSVG, null);
66
54
  }
67
55
  });
@@ -1,9 +1,7 @@
1
1
  import React from 'react';
2
2
  import { defineMessages, useIntl } from 'react-intl-next';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
3
  import { EmptyState } from '../../../../../common/ui/empty-state';
5
4
  import { NoResultsSVG } from './no-results-svg';
6
- import { NoResultsV2SVG } from './no-results-svg-v2';
7
5
  export var messages = defineMessages({
8
6
  noResults: {
9
7
  id: 'fabric.linkPicker.search.noResults.heading',
@@ -25,9 +23,7 @@ export var NoResults = function NoResults() {
25
23
  testId: testIds.emptyResultPage,
26
24
  header: intl.formatMessage(messages.noResults),
27
25
  description: intl.formatMessage(messages.noResultsDescription),
28
- renderImage: fg('platform-linking-visual-refresh-link-picker') ? function () {
29
- return /*#__PURE__*/React.createElement(NoResultsV2SVG, null);
30
- } : function () {
26
+ renderImage: function renderImage() {
31
27
  return /*#__PURE__*/React.createElement(NoResultsSVG, null);
32
28
  }
33
29
  });
@@ -1,2 +1,3 @@
1
+ ._1bsbwdok{width:var(--_cjikvn)}
1
2
  ._1e0c1ule{display:block}
2
- ._4t3i1rxo{height:var(--_1fywwk4)}
3
+ ._4t3iwdok{height:var(--_cjikvn)}
@@ -2,61 +2,40 @@
2
2
  import "./index.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
- var HEIGHT = 120;
5
+ var SIZE = 96;
6
6
  var noResultsSVGStyles = null;
7
7
  export var NoResultsSVG = function NoResultsSVG() {
8
- var id = 'link-picker-ui-no-results-svg';
9
8
  return /*#__PURE__*/React.createElement("svg", {
10
- height: "120",
11
- viewBox: "0 0 208 191",
9
+ viewBox: "0 0 96 96",
12
10
  fill: "none",
13
11
  xmlns: "http://www.w3.org/2000/svg",
14
12
  "aria-hidden": "true",
15
- className: ax(["_4t3i1rxo _1e0c1ule"]),
13
+ className: ax(["_1bsbwdok _4t3iwdok _1e0c1ule"]),
16
14
  style: {
17
- "--_1fywwk4": ix("".concat(HEIGHT, "px"))
15
+ "--_cjikvn": ix("".concat(SIZE, "px"))
18
16
  }
19
- }, /*#__PURE__*/React.createElement("g", {
20
- clipPath: "url(#".concat(id, "-a)")
21
17
  }, /*#__PURE__*/React.createElement("path", {
22
- opacity: ".3",
23
- d: "M105.28 190.44c-.93.03-1.86.05-2.79.06-1.3.01-2.36-1.04-2.36-2.34-.01-1.27 1-2.32 2.27-2.36h.07c5.93-.03 11.95-.67 17.74-1.9a2.352 2.352 0 0 1 .98 4.6 94.236 94.236 0 0 1-15.91 1.94ZM89.77 189.649c-.13 0-.27 0-.41-.02a91.17 91.17 0 0 1-18.27-4.49 2.353 2.353 0 1 1 1.59-4.43 85.94 85.94 0 0 0 17.32 4.25c1.29.18 2.19 1.36 2.01 2.65-.15 1.16-1.12 2-2.24 2.04ZM133.08 184.98c-.99.03-1.93-.56-2.29-1.54-.45-1.22.17-2.57 1.39-3.02a87.114 87.114 0 0 0 16.01-7.87 2.35 2.35 0 1 1 2.5 3.98c-5.32 3.33-11 6.13-16.87 8.3-.25.1-.49.14-.74.15ZM60.25 180.089c-.4.01-.81-.07-1.18-.27a92.004 92.004 0 0 1-15.61-10.48 2.35 2.35 0 0 1-.31-3.31c.83-1 2.31-1.14 3.31-.31a87.13 87.13 0 0 0 14.81 9.94c1.15.61 1.58 2.03.97 3.18a2.31 2.31 0 0 1-1.99 1.25ZM35.79 161.01c-.67.02-1.35-.24-1.83-.77a91.583 91.583 0 0 1-11.11-15.17 2.353 2.353 0 1 1 4.06-2.38c3 5.13 6.55 9.97 10.54 14.39.87.96.8 2.45-.17 3.32-.43.39-.96.59-1.49.61ZM179.7 145.469c-.42.01-.86-.08-1.25-.31a2.346 2.346 0 0 1-.87-3.21 86.618 86.618 0 0 0 7.22-16.31c.4-1.24 1.73-1.91 2.96-1.51 1.24.4 1.91 1.73 1.51 2.96a91.279 91.279 0 0 1-7.62 17.19c-.41.74-1.16 1.16-1.95 1.19ZM19.3 134.749c-.96.03-1.88-.53-2.26-1.47a90.64 90.64 0 0 1-5.23-18.06 2.35 2.35 0 0 1 1.9-2.73c1.28-.23 2.5.62 2.73 1.9a87.04 87.04 0 0 0 4.96 17.13c.49 1.2-.09 2.58-1.3 3.06-.26.1-.53.16-.8.17ZM190.19 116.26a2.346 2.346 0 0 1-2.4-2.74c1-5.84 1.39-11.83 1.18-17.8l-.01-.2c-.05-1.3.97-2.39 2.27-2.43 1.3-.05 2.39.97 2.43 2.27l.01.2c.22 6.29-.2 12.6-1.25 18.76a2.345 2.345 0 0 1-2.23 1.94ZM12.82 104.36c-1.3.05-2.39-.92-2.43-2.22v-.1c-.22-6.26.19-12.54 1.23-18.66a2.36 2.36 0 0 1 2.71-1.93 2.36 2.36 0 0 1 1.93 2.71 87.974 87.974 0 0 0-1.17 17.7c.05 1.31-.97 2.45-2.27 2.5ZM190 85.05a2.35 2.35 0 0 1-2.39-1.93A86.803 86.803 0 0 0 182.63 66a2.36 2.36 0 0 1 1.29-3.07c1.2-.49 2.58.09 3.07 1.29 2.36 5.8 4.13 11.88 5.25 18.06.23 1.28-.61 2.5-1.89 2.74l-.35.03ZM17.07 73.668c-.27.01-.54-.03-.81-.11a2.347 2.347 0 0 1-1.51-2.96 91.288 91.288 0 0 1 7.6-17.2 2.355 2.355 0 0 1 3.21-.88c1.13.64 1.52 2.08.88 3.21a87.027 87.027 0 0 0-7.21 16.32c-.32.96-1.2 1.59-2.16 1.62ZM179.22 55.98a2.34 2.34 0 0 1-2.11-1.16 87.748 87.748 0 0 0-10.56-14.38c-.87-.96-.8-2.45.17-3.32.96-.87 2.45-.8 3.32.17 4.22 4.66 7.96 9.75 11.13 15.15.66 1.12.28 2.56-.84 3.22-.35.2-.73.3-1.11.32ZM31.61 46.26c-.53.02-1.07-.14-1.53-.5a2.354 2.354 0 0 1-.41-3.3 92.27 92.27 0 0 1 13.01-13.57 2.36 2.36 0 0 1 3.32.27c.84.99.72 2.47-.27 3.32a87.993 87.993 0 0 0-12.35 12.88c-.44.57-1.1.88-1.77.9ZM159.12 32.35c-.56.02-1.12-.16-1.58-.54-4.59-3.8-9.57-7.14-14.83-9.93a2.35 2.35 0 0 1-.98-3.18 2.359 2.359 0 0 1 3.18-.98 91.78 91.78 0 0 1 15.62 10.46c1 .83 1.14 2.31.31 3.31-.44.54-1.08.83-1.72.86ZM54.62 25.45c-.81.03-1.61-.36-2.08-1.1a2.35 2.35 0 0 1 .74-3.24 91.806 91.806 0 0 1 16.87-8.32c1.22-.45 2.57.17 3.02 1.39.45 1.22-.17 2.57-1.39 3.02a86.792 86.792 0 0 0-16 7.89c-.36.23-.76.35-1.16.36ZM132.16 16.979c-.29.01-.59-.03-.87-.14-5.6-2-11.43-3.42-17.33-4.23a2.353 2.353 0 0 1 .64-4.66c6.22.85 12.36 2.35 18.27 4.46 1.22.44 1.86 1.78 1.42 3.01-.33.93-1.2 1.53-2.13 1.56ZM83.36 13.78a2.352 2.352 0 0 1-.57-4.65 93.98 93.98 0 0 1 18.69-2.03 2.356 2.356 0 0 1 .1 4.71h-.07c-5.93.03-11.95.69-17.74 1.92-.14.03-.28.04-.41.05Z",
24
- fill: "#B3BAC5"
18
+ fill: "#fff",
19
+ d: "M64.861 32.06a27.747 27.747 0 0 0-2.667-4.133 28.188 28.188 0 0 0-3.376-3.669c-6.985-6.311-15.57-6.89-23.609-2.53a30.246 30.246 0 0 0-4.056 2.656 30.624 30.624 0 0 0-3.735 3.4c-6.225 6.717-7.82 15.154-3.505 23.463a28.103 28.103 0 0 0 2.698 4.192 27.67 27.67 0 0 0 3.33 3.62c6.94 6.267 15.518 6.85 23.596 2.507a30.502 30.502 0 0 0 4.23-2.758 30.071 30.071 0 0 0 3.593-3.257c6.252-6.692 7.847-15.161 3.494-23.49h.007Z"
25
20
  }), /*#__PURE__*/React.createElement("path", {
26
- opacity: ".3",
27
- d: "M190.8 34.81a.522.522 0 0 1-.39-.56l.06-.45c.05-.29.11-.6.19-.92.3-1.15.85-2.18 1.64-3.09.79-.91 1.93-1.67 3.4-2.26l2.48-1.01c1.48-.59 2.39-1.57 2.75-2.92.13-.49.17-.99.12-1.51a3.44 3.44 0 0 0-.47-1.46c-.27-.45-.64-.86-1.13-1.22-.49-.36-1.09-.63-1.81-.82-.78-.2-1.47-.23-2.09-.09-.62.14-1.17.39-1.65.74s-.88.8-1.2 1.34c-.33.54-.57 1.12-.73 1.72-.05.18-.09.36-.12.52-.09.47-.56.75-1.02.61L187 22.26c-.36-.11-.61-.46-.57-.83.01-.12.03-.24.05-.36.06-.34.13-.66.21-.98.3-1.15.81-2.22 1.53-3.21.72-.99 1.61-1.8 2.67-2.43 1.06-.63 2.26-1.04 3.62-1.24 1.36-.2 2.84-.08 4.45.34 1.67.44 3.07 1.07 4.2 1.89 1.14.82 2.03 1.74 2.68 2.75.65 1.02 1.06 2.1 1.22 3.25.16 1.15.1 2.27-.19 3.36-.45 1.72-1.23 3.09-2.32 4.11-1.1 1.02-2.41 1.82-3.95 2.39l-2.09.79c-.59.19-1.47.58-2.2 1.38-.07.08-.37.41-.67.92-.22.38-.38.75-.49 1.07-.09.26-.37.4-.63.33l-3.72-.98Zm-3.06 5.87c.25-.95.79-1.67 1.63-2.17.84-.5 1.73-.63 2.68-.38.95.25 1.67.8 2.17 1.65.5.85.62 1.75.37 2.7-.25.95-.8 1.66-1.65 2.15-.85.48-1.75.6-2.69.35-.95-.25-1.67-.79-2.15-1.62-.49-.84-.61-1.73-.36-2.68ZM18.51 21.94a.518.518 0 0 1-.35-.58l.09-.45c.07-.29.15-.59.26-.9.38-1.13.99-2.12 1.85-2.97.85-.86 2.03-1.53 3.55-2.03l2.54-.84c1.51-.49 2.49-1.4 2.94-2.73.16-.48.24-.98.22-1.5-.01-.52-.14-1.02-.37-1.49-.23-.47-.58-.9-1.05-1.29-.46-.39-1.05-.7-1.75-.94-.76-.26-1.46-.33-2.08-.23-.63.1-1.19.31-1.69.63s-.93.74-1.29 1.26a6.16 6.16 0 0 0-.86 1.67c-.06.18-.11.35-.15.51-.12.46-.61.71-1.06.54l-3.74-1.42a.803.803 0 0 1-.51-.87c.02-.12.05-.24.08-.36.08-.33.17-.65.28-.96.38-1.13.96-2.16 1.75-3.1s1.73-1.69 2.82-2.25c1.1-.56 2.33-.89 3.69-.99 1.37-.1 2.84.11 4.41.64 1.63.55 2.99 1.27 4.07 2.17 1.08.9 1.91 1.87 2.49 2.93.58 1.06.92 2.16 1 3.32a8.52 8.52 0 0 1-.42 3.34c-.57 1.69-1.43 3-2.6 3.94-1.16.94-2.53 1.65-4.1 2.12l-2.14.64c-.6.15-1.51.48-2.29 1.23-.08.08-.4.39-.73.87-.25.37-.43.72-.56 1.03a.52.52 0 0 1-.65.29l-3.65-1.23Zm-3.45 5.65c.31-.93.9-1.62 1.77-2.06.87-.44 1.77-.51 2.7-.2.93.31 1.61.91 2.05 1.79.44.88.5 1.79.19 2.72-.31.93-.91 1.61-1.79 2.03-.88.42-1.78.48-2.71.17-.93-.31-1.61-.9-2.04-1.77-.42-.85-.48-1.75-.17-2.68ZM12.39 180.998c-.24.09-.52 0-.64-.23-.07-.13-.14-.27-.21-.41-.13-.27-.25-.56-.37-.86a7.553 7.553 0 0 1-.43-3.47c.13-1.2.62-2.47 1.49-3.81l1.45-2.25c.87-1.33 1.06-2.66.57-3.97a4.47 4.47 0 0 0-.77-1.31c-.34-.4-.74-.71-1.22-.93-.48-.22-1.02-.33-1.63-.35-.61-.01-1.26.11-1.95.37-.75.28-1.34.65-1.77 1.13-.43.47-.73.99-.92 1.55-.19.56-.26 1.16-.22 1.79.04.63.17 1.24.39 1.83.07.18.13.34.2.49a.8.8 0 0 1-.48 1.09l-3.8 1.24a.788.788 0 0 1-.94-.36c-.06-.11-.11-.22-.17-.33-.15-.31-.28-.62-.39-.92a9.594 9.594 0 0 1-.59-3.51c.02-1.23.28-2.4.79-3.52.5-1.12 1.25-2.15 2.25-3.09s2.28-1.7 3.84-2.27c1.62-.6 3.12-.89 4.52-.87 1.4.02 2.66.26 3.78.71 1.12.46 2.07 1.11 2.86 1.96.79.85 1.38 1.8 1.77 2.86.62 1.67.77 3.24.46 4.7s-.93 2.87-1.86 4.23l-1.26 1.85c-.37.5-.87 1.32-1.01 2.39-.01.11-.07.55-.02 1.13.04.44.12.83.22 1.15a.53.53 0 0 1-.33.64l-3.61 1.35Zm.87 6.56c-.34-.92-.31-1.82.09-2.72.4-.89 1.06-1.51 1.98-1.85.92-.34 1.83-.3 2.72.11.9.41 1.52 1.08 1.86 2 .34.92.3 1.82-.12 2.7-.42.88-1.09 1.49-2 1.83-.92.34-1.82.31-2.7-.09-.88-.4-1.49-1.06-1.83-1.98Z",
28
- fill: "#C1C7D0"
21
+ fill: "#DDDEE1",
22
+ d: "M43.092 66.774c-5.306 0-10.382-1.997-14.75-5.938a30.405 30.405 0 0 1-3.62-3.93 30.222 30.222 0 0 1-2.928-4.553c-4.657-8.96-3.247-18.509 3.871-26.192a33.27 33.27 0 0 1 4.025-3.669 32.825 32.825 0 0 1 4.378-2.87c9.209-4.995 18.816-3.951 26.353 2.86a30.96 30.96 0 0 1 3.665 3.98 30.302 30.302 0 0 1 2.898 4.489c4.706 9.003 3.295 18.564-3.868 26.23a32.157 32.157 0 0 1-3.879 3.516 33.436 33.436 0 0 1-4.562 2.974c-3.858 2.073-7.781 3.1-11.583 3.1v.003Zm2.53-45.486c-3.019 0-6.147.841-9.274 2.541a28.43 28.43 0 0 0-3.736 2.447 28.058 28.058 0 0 0-3.442 3.135c-5.746 6.203-6.86 13.566-3.135 20.736a25.4 25.4 0 0 0 2.472 3.83 25.297 25.297 0 0 0 3.044 3.309c5.99 5.41 13.398 6.182 20.862 2.175a28.01 28.01 0 0 0 3.9-2.545 28.04 28.04 0 0 0 3.308-2.999c5.778-6.182 6.885-13.552 3.125-20.75a25.545 25.545 0 0 0-2.44-3.777 25.854 25.854 0 0 0-3.086-3.358c-3.491-3.152-7.443-4.744-11.59-4.744h-.007Z"
29
23
  }), /*#__PURE__*/React.createElement("path", {
30
- d: "m149.36 134.209-7.15-6.93-9.63 9.95 7.15 6.93c1.83 1.77 3.11 4.02 3.71 6.49.6 2.47 1.89 4.72 3.71 6.49l29.03 28.1c4.4 4.26 11.41 4.14 15.67-.25 4.26-4.4 4.14-11.41-.25-15.67l-29.03-28.1a13.457 13.457 0 0 0-6.61-3.5 13.65 13.65 0 0 1-6.6-3.51Z",
31
- fill: "#CFD4DB"
24
+ fill: "#DDDEE1",
25
+ d: "M62.822 59.695c-1.235-1.721-2.562-1.71-3.857-.709-1.215.939-1.54 2.21-.244 3.882l1.48 1.913 4.102-3.173-1.48-1.913Z"
32
26
  }), /*#__PURE__*/React.createElement("path", {
33
- d: "M155.68 137.628c-2.37-.55-4.56-1.73-6.31-3.43l-2.18-2.11a6.92 6.92 0 0 0-9.79.16 6.92 6.92 0 0 0 .16 9.79l2.18 2.11c1.75 1.7 3 3.84 3.63 6.19 2.35-1.78 4.57-3.75 6.66-5.91 2.07-2.13 3.95-4.41 5.65-6.8Z",
34
- fill: "#B3BAC5"
27
+ fill: "#DDDEE1",
28
+ d: "m65.334 60.811-6.158 4.762 11.573 14.969 6.159-4.762L65.334 60.81Z"
35
29
  }), /*#__PURE__*/React.createElement("path", {
36
- d: "M101.95 156.619c-15.47.25-30.11-5.54-41.22-16.3-22.95-22.21-23.54-58.95-1.33-81.9 10.76-11.11 25.21-17.37 40.67-17.63 15.47-.25 30.11 5.54 41.22 16.3 11.12 10.76 17.37 25.21 17.63 40.67.25 15.47-5.54 30.11-16.3 41.22-10.75 11.13-25.2 17.39-40.67 17.64Zm-1.65-102c-11.78.19-22.77 4.96-30.97 13.42-16.91 17.47-16.46 45.44 1.01 62.35 8.46 8.19 19.61 12.6 31.39 12.41 11.78-.19 22.77-4.96 30.97-13.42 8.19-8.46 12.6-19.61 12.41-31.39-.19-11.78-4.96-22.77-13.42-30.97-8.47-8.18-19.61-12.59-31.39-12.4Z",
37
- fill: "url(#".concat(id, "-b)")
30
+ fill: "#B7B9BE",
31
+ d: "m64.344 61.577-4.178 3.23 3.925 5.076 4.178-3.23-3.925-5.076Z"
38
32
  }), /*#__PURE__*/React.createElement("path", {
39
- d: "m118.92 85.84-5.34-5.25c-.79-.77-2.05-.76-2.83.03l-9.79 9.97-9.97-9.79c-.79-.77-2.05-.76-2.83.03l-5.25 5.34c-.77.79-.76 2.05.03 2.83l9.97 9.79-9.79 9.97c-.77.79-.76 2.05.03 2.83l5.34 5.25c.79.77 2.05.76 2.83-.03l9.79-9.97 9.97 9.79c.79.77 2.05.76 2.83-.03l5.25-5.34c.77-.79.76-2.05-.03-2.83l-9.97-9.79 9.79-9.97c.77-.79.76-2.06-.03-2.83Z",
40
- fill: "#C1C7D0"
41
- })), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
42
- id: "".concat(id, "-b"),
43
- x1: "60.062",
44
- y1: "139.664",
45
- x2: "141.969",
46
- y2: "57.757",
47
- gradientUnits: "userSpaceOnUse"
48
- }, /*#__PURE__*/React.createElement("stop", {
49
- offset: ".557",
50
- stopColor: "#C1C7D0"
51
- }), /*#__PURE__*/React.createElement("stop", {
52
- offset: ".966",
53
- stopColor: "#E9EBEF",
54
- stopOpacity: ".5"
55
- })), /*#__PURE__*/React.createElement("clipPath", {
56
- id: "".concat(id, "-a")
57
- }, /*#__PURE__*/React.createElement("path", {
58
- fill: "#fff",
59
- transform: "translate(0 .62)",
60
- d: "M0 0h207.16v189.87H0z"
61
- }))));
33
+ fill: "#DDDEE1",
34
+ d: "M46.496 47.476h-3.492v-.221c-.119-2.484 1.29-5.174 3.295-6.274l.038-.02c.054-.028.107-.061.157-.095 1.094-.705 1.717-1.92 1.678-3.257-.038-1.326-.722-2.49-1.829-3.117a4.596 4.596 0 0 0-2.256-.605c-2.365 0-4.289 1.938-4.289 4.319h-3.492c0-4.32 3.49-7.835 7.78-7.835 1.375 0 2.747.365 3.967 1.055 2.186 1.237 3.536 3.51 3.61 6.082.074 2.583-1.15 4.943-3.272 6.312-.143.093-.289.18-.433.256-.832.468-1.529 1.907-1.465 3.033l.003.367Z"
35
+ }), /*#__PURE__*/React.createElement("path", {
36
+ fill: "#DDDEE1",
37
+ fillRule: "evenodd",
38
+ d: "M44.413 49.492a3.465 3.465 0 0 1 1.119-.003c1.138.187 2.064.985 2.289 2.229l.002.009.001.01a3.419 3.419 0 0 1-.001 1.126v.004c-.22 1.256-1.161 2.052-2.295 2.236a3.5 3.5 0 0 1-1.108-.003h-.001c-1.14-.184-2.07-.981-2.296-2.224l-.002-.01-.001-.01a3.37 3.37 0 0 1 0-1.12l.001-.01.002-.01c.227-1.249 1.161-2.034 2.288-2.223h.002Z",
39
+ clipRule: "evenodd"
40
+ }));
62
41
  };
@@ -5,7 +5,6 @@ import * as React from 'react';
5
5
  import { ax, ix } from "@compiled/react/runtime";
6
6
  import { forwardRef, Fragment } from 'react';
7
7
  import { useIntl } from 'react-intl-next';
8
- import { fg } from '@atlaskit/platform-feature-flags';
9
8
  import { Text } from '@atlaskit/primitives/compiled';
10
9
  import { B100, B400, B50, N20, N300, N400, N40A } from '@atlaskit/theme/colors';
11
10
  /* eslint-disable-next-line @atlassian/tangerine/import/no-parent-imports */
@@ -77,12 +76,12 @@ var ListItemSubtitle = function ListItemSubtitle(_ref) {
77
76
  style: {
78
77
  "--_1pseksa": ix("var(--ds-text-subtle, ".concat(N400, ")"))
79
78
  }
80
- }, fg('platform-linking-visual-refresh-link-picker') ? /*#__PURE__*/React.createElement("span", {
79
+ }, /*#__PURE__*/React.createElement("span", {
81
80
  className: ax(["_syaz1svm"]),
82
81
  style: {
83
82
  "--_1trgtlr": ix("var(--ds-border, ".concat(N40A, ")"))
84
83
  }
85
- }, /*#__PURE__*/React.createElement(Fragment, null, "\xA0 \u2022\xA0 ")) : /*#__PURE__*/React.createElement(Fragment, null, "\xA0 \u2022\xA0 "), /*#__PURE__*/React.createElement(Fragment, null, secondItem)));
84
+ }, /*#__PURE__*/React.createElement(Fragment, null, "\xA0 \u2022\xA0 ")), /*#__PURE__*/React.createElement(Fragment, null, secondItem)));
86
85
  };
87
86
  var getDefaultSubtitleItems = function getDefaultSubtitleItems(item, intl) {
88
87
  var container = item.container;
@@ -3,7 +3,6 @@ import "./index.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import { useLayoutEffect, useRef } from 'react';
6
- import { fg } from '@atlaskit/platform-feature-flags';
7
6
  import { MinHeightContainer } from '../../../../common/ui/min-height-container';
8
7
  var flexColumn = null;
9
8
  export var SearchResultsContainer = function SearchResultsContainer(_ref) {
@@ -13,7 +12,7 @@ export var SearchResultsContainer = function SearchResultsContainer(_ref) {
13
12
  children = _ref.children;
14
13
  var ref = useRef(null);
15
14
  var currentHeight = useRef(null);
16
- var fixedMinHeight = fg('platform-linking-visual-refresh-link-picker') ? hasTabs ? '296px' : '251px' : hasTabs ? '347px' : '302px';
15
+ var fixedMinHeight = hasTabs ? '296px' : '251px';
17
16
  var adaptiveMinHeight = isLoadingResults && !!currentHeight.current ? "".concat(currentHeight.current, "px") : 'auto';
18
17
  var minheight = adaptiveHeight ? adaptiveMinHeight : fixedMinHeight;
19
18
  useLayoutEffect(function () {
@@ -5,12 +5,12 @@ import { ax, ix } from "@compiled/react/runtime";
5
5
  import Spinner from '@atlaskit/spinner';
6
6
  import { MinHeightContainer } from '../../common/ui/min-height-container';
7
7
  var styles = null;
8
- var LINK_PICKER_MIN_HEIGHT_IN_PX_WITH_TABS_WITHOUT_DISPLAYTEXT = '472px';
9
- var LINK_PICKER_MIN_HEIGHT_IN_PX_WITH_TABS_WITH_DISPLAYTEXT = '550px';
10
- var LINK_PICKER_MIN_HEIGHT_IN_PX_WITHOUT_TABS_WITH_PLUGIN_WITH_DISPLAYTEXT = '505px';
11
- var LINK_PICKER_MIN_HEIGHT_IN_PX_WITHOUT_TABS_WITH_PLUGIN_WITHOUT_DISPLAYTEXT = '429px';
12
- var LINK_PICKER_MIN_HEIGHT_IN_PX_WITHOUT_TABS_WITH_DISPLAYTEXT = '218px';
13
- var LINK_PICKER_MIN_HEIGHT_IN_PX_WITHOUT_TABS_WITHOUT_DISPLAYTEXT = '141px';
8
+ var LINK_PICKER_MIN_HEIGHT_IN_PX_WITH_TABS_WITHOUT_DISPLAYTEXT = '495px';
9
+ var LINK_PICKER_MIN_HEIGHT_IN_PX_WITH_TABS_WITH_DISPLAYTEXT = '590px';
10
+ var LINK_PICKER_MIN_HEIGHT_IN_PX_WITHOUT_TABS_WITH_PLUGIN_WITH_DISPLAYTEXT = '545px';
11
+ var LINK_PICKER_MIN_HEIGHT_IN_PX_WITHOUT_TABS_WITH_PLUGIN_WITHOUT_DISPLAYTEXT = '450px';
12
+ var LINK_PICKER_MIN_HEIGHT_IN_PX_WITHOUT_TABS_WITH_DISPLAYTEXT = '252px';
13
+ var LINK_PICKER_MIN_HEIGHT_IN_PX_WITHOUT_TABS_WITHOUT_DISPLAYTEXT = '155px';
14
14
  var getEstimatedMinHeight = function getEstimatedMinHeight(_ref) {
15
15
  var hideDisplayText = _ref.hideDisplayText,
16
16
  isLoadingPlugins = _ref.isLoadingPlugins,
@@ -16,7 +16,7 @@ export var testIds = {
16
16
  };
17
17
  export var PACKAGE_DATA = {
18
18
  packageName: "@atlaskit/link-picker" || '',
19
- packageVersion: "3.6.2" || '',
19
+ packageVersion: "3.7.0" || '',
20
20
  componentName: COMPONENT_NAME,
21
21
  source: COMPONENT_NAME
22
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-picker",
3
- "version": "3.6.3",
3
+ "version": "3.8.0",
4
4
  "description": "Standalone link picker",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "publishConfig": {
@@ -39,9 +39,6 @@
39
39
  "platform-linking-link-picker-previewable-only": {
40
40
  "type": "boolean"
41
41
  },
42
- "platform-linking-visual-refresh-link-picker": {
43
- "type": "boolean"
44
- },
45
42
  "icon-object-migration": {
46
43
  "type": "boolean"
47
44
  },
@@ -51,9 +48,6 @@
51
48
  "platform_support_live_doc_icons_in_link_picker": {
52
49
  "type": "boolean"
53
50
  },
54
- "platform-link-picker-remove-legacy-button": {
55
- "type": "boolean"
56
- },
57
51
  "jsc_inline_editing_field_refactor": {
58
52
  "type": "boolean"
59
53
  },
@@ -75,20 +69,20 @@
75
69
  "@atlaskit/form": "^12.0.0",
76
70
  "@atlaskit/frontend-utilities": "^3.1.0",
77
71
  "@atlaskit/heading": "^5.2.0",
78
- "@atlaskit/icon": "^27.3.0",
72
+ "@atlaskit/icon": "^27.5.0",
79
73
  "@atlaskit/intl-messages-provider": "^2.0.0",
80
74
  "@atlaskit/link": "^3.2.0",
81
75
  "@atlaskit/link-provider": "^3.4.0",
82
- "@atlaskit/linking-common": "^9.1.0",
83
- "@atlaskit/onboarding": "^14.2.0",
76
+ "@atlaskit/linking-common": "^9.2.0",
77
+ "@atlaskit/onboarding": "^14.3.0",
84
78
  "@atlaskit/platform-feature-flags": "^1.1.0",
85
79
  "@atlaskit/primitives": "^14.10.0",
86
- "@atlaskit/smart-card": "^40.0.0",
80
+ "@atlaskit/smart-card": "^40.4.0",
87
81
  "@atlaskit/spinner": "^18.0.0",
88
82
  "@atlaskit/tabs": "^18.1.0",
89
83
  "@atlaskit/textfield": "^8.0.0",
90
84
  "@atlaskit/theme": "^19.0.0",
91
- "@atlaskit/tokens": "^5.5.0",
85
+ "@atlaskit/tokens": "^5.6.0",
92
86
  "@atlaskit/tooltip": "^20.3.0",
93
87
  "@atlaskit/ufo": "^0.4.0",
94
88
  "@atlaskit/visually-hidden": "^3.0.0",
@@ -109,7 +103,7 @@
109
103
  "@af/analytics-codegen": "workspace:^",
110
104
  "@af/integration-testing": "workspace:^",
111
105
  "@af/visual-regression": "workspace:^",
112
- "@atlaskit/dropdown-menu": "^16.1.0",
106
+ "@atlaskit/dropdown-menu": "^16.2.0",
113
107
  "@atlaskit/link-test-helpers": "^8.2.0",
114
108
  "@atlaskit/visual-regression": "workspace:^",
115
109
  "@atlassian/feature-flags-test-utils": "^0.3.0",
@@ -1,3 +0,0 @@
1
- ._1bsbwdok{width:var(--_cjikvn)}
2
- ._1e0c1ule{display:block}
3
- ._4t3iwdok{height:var(--_cjikvn)}