@atlaskit/link-picker 1.37.1 → 1.37.3

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 (109) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/compass.yml +0 -1
  3. package/dist/cjs/common/generic-error-svg/index.js +4 -1
  4. package/dist/cjs/common/generic-error-svg/styled.js +4 -0
  5. package/dist/cjs/common/ui/empty-state/index.js +3 -1
  6. package/dist/cjs/common/ui/min-height-container/index.js +4 -1
  7. package/dist/cjs/common/ui/min-height-container/styled.js +3 -0
  8. package/dist/cjs/ui/error-boundary/error-boundary-fallback/index.js +17 -11
  9. package/dist/cjs/ui/error-boundary/error-boundary-fallback/styled.js +3 -0
  10. package/dist/cjs/ui/index.js +5 -3
  11. package/dist/cjs/ui/link-picker/form-footer/feature-discovery/index.js +9 -4
  12. package/dist/cjs/ui/link-picker/form-footer/feature-discovery/styled.js +4 -0
  13. package/dist/cjs/ui/link-picker/form-footer/index.js +30 -24
  14. package/dist/cjs/ui/link-picker/form-footer/styled.js +5 -0
  15. package/dist/cjs/ui/link-picker/index.js +7 -3
  16. package/dist/cjs/ui/link-picker/search-results/index.js +7 -3
  17. package/dist/cjs/ui/link-picker/search-results/link-search-error/index.js +1 -0
  18. package/dist/cjs/ui/link-picker/search-results/link-search-list/index.js +21 -10
  19. package/dist/cjs/ui/link-picker/search-results/link-search-list/link-search-no-results/index.js +15 -11
  20. package/dist/cjs/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.js +2 -0
  21. package/dist/cjs/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/styled.js +4 -0
  22. package/dist/cjs/ui/link-picker/search-results/link-search-list/link-search-no-results/styled.js +6 -0
  23. package/dist/cjs/ui/link-picker/search-results/link-search-list/list-item/index.js +34 -17
  24. package/dist/cjs/ui/link-picker/search-results/link-search-list/list-item/styled.js +29 -3
  25. package/dist/cjs/ui/link-picker/search-results/link-search-list/styled.js +9 -0
  26. package/dist/cjs/ui/link-picker/search-results/scrolling-tabs/index.js +38 -33
  27. package/dist/cjs/ui/link-picker/search-results/scrolling-tabs/styles.js +20 -4
  28. package/dist/cjs/ui/link-picker/search-results/search-results-container/index.js +3 -0
  29. package/dist/cjs/ui/link-picker/search-results/search-results-container/styled.js +3 -0
  30. package/dist/cjs/ui/link-picker/search-results/styled.js +7 -0
  31. package/dist/cjs/ui/link-picker/styled.js +4 -2
  32. package/dist/cjs/ui/link-picker/text-input/index.js +34 -23
  33. package/dist/cjs/ui/link-picker/text-input/styled.js +5 -10
  34. package/dist/cjs/ui/loader-fallback/index.js +4 -1
  35. package/dist/cjs/ui/loader-fallback/styled.js +3 -0
  36. package/dist/cjs/ui/styled.js +3 -0
  37. package/dist/es2019/common/generic-error-svg/index.js +4 -1
  38. package/dist/es2019/common/generic-error-svg/styled.js +3 -0
  39. package/dist/es2019/common/ui/empty-state/index.js +3 -1
  40. package/dist/es2019/common/ui/min-height-container/index.js +5 -1
  41. package/dist/es2019/common/ui/min-height-container/styled.js +3 -0
  42. package/dist/es2019/ui/error-boundary/error-boundary-fallback/index.js +15 -9
  43. package/dist/es2019/ui/error-boundary/error-boundary-fallback/styled.js +3 -0
  44. package/dist/es2019/ui/index.js +7 -2
  45. package/dist/es2019/ui/link-picker/form-footer/feature-discovery/index.js +9 -4
  46. package/dist/es2019/ui/link-picker/form-footer/feature-discovery/styled.js +3 -0
  47. package/dist/es2019/ui/link-picker/form-footer/index.js +31 -24
  48. package/dist/es2019/ui/link-picker/form-footer/styled.js +5 -0
  49. package/dist/es2019/ui/link-picker/index.js +8 -2
  50. package/dist/es2019/ui/link-picker/search-results/index.js +8 -2
  51. package/dist/es2019/ui/link-picker/search-results/link-search-error/index.js +1 -0
  52. package/dist/es2019/ui/link-picker/search-results/link-search-list/index.js +22 -9
  53. package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/index.js +13 -9
  54. package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.js +2 -0
  55. package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/styled.js +3 -0
  56. package/dist/es2019/ui/link-picker/search-results/link-search-list/link-search-no-results/styled.js +5 -0
  57. package/dist/es2019/ui/link-picker/search-results/link-search-list/list-item/index.js +34 -17
  58. package/dist/es2019/ui/link-picker/search-results/link-search-list/list-item/styled.js +28 -3
  59. package/dist/es2019/ui/link-picker/search-results/link-search-list/styled.js +8 -0
  60. package/dist/es2019/ui/link-picker/search-results/scrolling-tabs/index.js +35 -28
  61. package/dist/es2019/ui/link-picker/search-results/scrolling-tabs/styles.js +19 -4
  62. package/dist/es2019/ui/link-picker/search-results/search-results-container/index.js +4 -0
  63. package/dist/es2019/ui/link-picker/search-results/search-results-container/styled.js +3 -0
  64. package/dist/es2019/ui/link-picker/search-results/styled.js +6 -0
  65. package/dist/es2019/ui/link-picker/styled.js +4 -1
  66. package/dist/es2019/ui/link-picker/text-input/index.js +37 -25
  67. package/dist/es2019/ui/link-picker/text-input/styled.js +4 -10
  68. package/dist/es2019/ui/loader-fallback/index.js +4 -1
  69. package/dist/es2019/ui/loader-fallback/styled.js +3 -0
  70. package/dist/es2019/ui/styled.js +3 -0
  71. package/dist/esm/common/generic-error-svg/index.js +4 -1
  72. package/dist/esm/common/generic-error-svg/styled.js +3 -0
  73. package/dist/esm/common/ui/empty-state/index.js +3 -1
  74. package/dist/esm/common/ui/min-height-container/index.js +5 -1
  75. package/dist/esm/common/ui/min-height-container/styled.js +3 -0
  76. package/dist/esm/ui/error-boundary/error-boundary-fallback/index.js +17 -11
  77. package/dist/esm/ui/error-boundary/error-boundary-fallback/styled.js +3 -0
  78. package/dist/esm/ui/index.js +6 -2
  79. package/dist/esm/ui/link-picker/form-footer/feature-discovery/index.js +9 -4
  80. package/dist/esm/ui/link-picker/form-footer/feature-discovery/styled.js +3 -0
  81. package/dist/esm/ui/link-picker/form-footer/index.js +31 -24
  82. package/dist/esm/ui/link-picker/form-footer/styled.js +5 -0
  83. package/dist/esm/ui/link-picker/index.js +8 -2
  84. package/dist/esm/ui/link-picker/search-results/index.js +8 -2
  85. package/dist/esm/ui/link-picker/search-results/link-search-error/index.js +1 -0
  86. package/dist/esm/ui/link-picker/search-results/link-search-list/index.js +22 -9
  87. package/dist/esm/ui/link-picker/search-results/link-search-list/link-search-no-results/index.js +15 -11
  88. package/dist/esm/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/index.js +2 -0
  89. package/dist/esm/ui/link-picker/search-results/link-search-list/link-search-no-results/no-results-svg/styled.js +3 -0
  90. package/dist/esm/ui/link-picker/search-results/link-search-list/link-search-no-results/styled.js +5 -0
  91. package/dist/esm/ui/link-picker/search-results/link-search-list/list-item/index.js +34 -17
  92. package/dist/esm/ui/link-picker/search-results/link-search-list/list-item/styled.js +28 -3
  93. package/dist/esm/ui/link-picker/search-results/link-search-list/styled.js +8 -0
  94. package/dist/esm/ui/link-picker/search-results/scrolling-tabs/index.js +39 -32
  95. package/dist/esm/ui/link-picker/search-results/scrolling-tabs/styles.js +19 -4
  96. package/dist/esm/ui/link-picker/search-results/search-results-container/index.js +4 -0
  97. package/dist/esm/ui/link-picker/search-results/search-results-container/styled.js +3 -0
  98. package/dist/esm/ui/link-picker/search-results/styled.js +6 -0
  99. package/dist/esm/ui/link-picker/styled.js +4 -1
  100. package/dist/esm/ui/link-picker/text-input/index.js +36 -24
  101. package/dist/esm/ui/link-picker/text-input/styled.js +4 -10
  102. package/dist/esm/ui/loader-fallback/index.js +4 -1
  103. package/dist/esm/ui/loader-fallback/styled.js +3 -0
  104. package/dist/esm/ui/styled.js +3 -0
  105. package/dist/types/ui/error-boundary/error-boundary-base/index.d.ts +3 -3
  106. package/dist/types/ui/link-picker/text-input/styled.d.ts +0 -1
  107. package/dist/types-ts4.5/ui/error-boundary/error-boundary-base/index.d.ts +3 -3
  108. package/dist/types-ts4.5/ui/link-picker/text-input/styled.d.ts +0 -1
  109. package/package.json +147 -147
@@ -1,10 +1,13 @@
1
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
1
2
  import { css } from '@emotion/react';
2
3
  import { N0, N30 } from '@atlaskit/theme/colors';
4
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
3
5
  export var scrollingContainerStyles = css({
4
6
  overflowX: 'auto',
5
7
  scrollBehavior: 'smooth',
6
8
  scrollPadding: '0 24px',
7
9
  scrollbarWidth: 'none',
10
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
8
11
  '&::-webkit-scrollbar': {
9
12
  display: 'none'
10
13
  },
@@ -21,19 +24,27 @@ export var scrollingContainerStyles = css({
21
24
  backgroundColor: "var(--ds-border, ".concat(N30, ")")
22
25
  }
23
26
  });
27
+
28
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
24
29
  export var containerStyles = css({
25
30
  position: 'relative',
31
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
26
32
  '[role="tablist"]': {
27
33
  '&::before': {
28
34
  display: 'none'
29
35
  }
30
36
  },
31
37
  // Overrides Atlaskit tabs styles to stop overflowing with ellipsis
38
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
32
39
  '[role="tab"]': {
40
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
33
41
  overflow: 'unset !important',
42
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
34
43
  textOverflow: 'unset !important'
35
44
  }
36
45
  });
46
+
47
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
37
48
  export var buttonContainerStyles = css({
38
49
  position: 'absolute',
39
50
  top: "var(--ds-space-050, 4px)",
@@ -41,12 +52,16 @@ export var buttonContainerStyles = css({
41
52
  backgroundColor: "var(--ds-surface, ".concat(N0, ")")
42
53
  });
43
54
 
44
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-array-arguments -- Ignored via go/DSP-18766
45
- export var backButtonStyles = css([buttonContainerStyles, {
55
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-array-arguments, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
56
+ export var backButtonStyles = css([
57
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
58
+ buttonContainerStyles, {
46
59
  left: 0
47
60
  }]);
48
61
 
49
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-array-arguments -- Ignored via go/DSP-18766
50
- export var nextButtonStyles = css([buttonContainerStyles, {
62
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-array-arguments, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
63
+ export var nextButtonStyles = css([
64
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
65
+ buttonContainerStyles, {
51
66
  right: 0
52
67
  }]);
@@ -3,6 +3,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  var _excluded = ["hasTabs"];
4
4
  /** @jsx jsx */
5
5
  import { forwardRef } from 'react';
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
8
  import { jsx } from '@emotion/react';
7
9
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
8
10
  import { MinHeightContainer } from '../../../../common/ui/min-height-container';
@@ -12,6 +14,8 @@ export var SearchResultsContainer = /*#__PURE__*/forwardRef(function (_ref, ref)
12
14
  props = _objectWithoutProperties(_ref, _excluded);
13
15
  var minHeight = hasTabs ? '347px' : '302px';
14
16
  var ffMinHeight = getBooleanFF('platform.linking-platform.link-picker.fixed-height-search-results') ? minHeight : 'auto';
17
+
18
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
15
19
  return jsx(MinHeightContainer, _extends({
16
20
  ref: ref,
17
21
  minHeight: ffMinHeight,
@@ -1,4 +1,7 @@
1
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
1
2
  import { css } from '@emotion/react';
3
+
4
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
2
5
  export var flexColumn = css({
3
6
  display: 'flex',
4
7
  flexDirection: 'column',
@@ -1,7 +1,11 @@
1
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
1
2
  import { css } from '@emotion/react';
3
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
2
4
  export var tabsWrapperStyles = css({
3
5
  marginTop: "var(--ds-space-150, 12px)"
4
6
  });
7
+
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
5
9
  export var spinnerContainerStyles = css({
6
10
  minHeight: '80px',
7
11
  display: 'flex',
@@ -10,6 +14,8 @@ export var spinnerContainerStyles = css({
10
14
  alignSelf: 'center',
11
15
  flexGrow: 1
12
16
  });
17
+
18
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
13
19
  export var flexColumnStyles = css({
14
20
  display: 'flex',
15
21
  flexDirection: 'column'
@@ -1,9 +1,12 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
2
  var _templateObject;
3
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
4
  import { css } from '@emotion/react';
4
5
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
5
- // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
6
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
6
7
  export var rootContainerStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\twidth: ", ";\n\tpadding-left: var(--link-picker-padding-left);\n\tpadding-right: var(--link-picker-padding-right);\n\tpadding-top: var(--link-picker-padding-top);\n\tpadding-bottom: var(--link-picker-padding-bottom);\n\tbox-sizing: border-box;\n\tline-height: initial;\n\tdisplay: block !important;\n"])), getBooleanFF('platform.linking-platform.link-picker.fixed-height-search-results') ? undefined : 'var(--link-picker-width)');
8
+
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
7
10
  export var formFooterMargin = css({
8
11
  marginTop: "var(--ds-space-200, 16px)"
9
12
  });
@@ -3,18 +3,27 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  var _excluded = ["name", "label", "autoFocus", "onRedo", "onUndo", "onKeyDown", "onClear", "clearLabel", "error", "spotlightTargetName"];
4
4
  /** @jsx jsx */
5
5
  import { Fragment, useCallback, useRef } from 'react';
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
8
  import { jsx } from '@emotion/react';
7
9
  import { ErrorMessage, Field } from '@atlaskit/form';
8
10
  import Selectclear from '@atlaskit/icon/glyph/select-clear';
11
+ import { Pressable, xcss } from '@atlaskit/primitives';
9
12
  import Textfield from '@atlaskit/textfield';
10
13
  import Tooltip from '@atlaskit/tooltip';
11
14
  import { ConditionalSpotlightTargetWrapper } from './conditional-spotlight-target-wrapper';
12
- import { clearTextButtonStyles, fieldStyles } from './styled';
15
+ import { fieldStyles } from './styled';
13
16
  import { isRedoEvent, isUndoEvent } from './utils';
14
17
  export var testIds = {
15
18
  urlError: 'link-error',
16
19
  clearUrlButton: 'clear-text'
17
20
  };
21
+ var clearTextButtonStyles = xcss({
22
+ padding: 'space.0',
23
+ marginRight: 'space.050',
24
+ backgroundColor: 'color.background.neutral.subtle',
25
+ border: 'none'
26
+ });
18
27
  export var TextInput = function TextInput(_ref) {
19
28
  var name = _ref.name,
20
29
  label = _ref.label,
@@ -60,31 +69,34 @@ export var TextInput = function TextInput(_ref) {
60
69
  }, [name, onClear]);
61
70
  var clearText = restProps.value !== '' && jsx(Tooltip, {
62
71
  content: clearLabel
63
- }, jsx("button", {
64
- type: "button",
65
- css: clearTextButtonStyles,
72
+ }, jsx(Pressable, {
73
+ xcss: clearTextButtonStyles,
66
74
  onClick: handleClear,
67
- "data-testid": testIds.clearUrlButton
75
+ testId: testIds.clearUrlButton
68
76
  }, jsx(Selectclear, {
69
77
  size: "medium",
70
- label: clearLabel || ''
78
+ label: clearLabel || '',
79
+ primaryColor: "var(--ds-icon-subtle, #626F86)"
71
80
  })));
72
- return jsx("div", {
73
- css: fieldStyles
74
- }, jsx(Field, {
75
- label: label,
76
- name: name
77
- }, function (_ref2) {
78
- var fieldProps = _ref2.fieldProps;
79
- return jsx(ConditionalSpotlightTargetWrapper, {
80
- spotlightTargetName: spotlightTargetName
81
- }, jsx(Fragment, null, jsx(Textfield, _extends({}, fieldProps, restProps, {
82
- onKeyDown: handleKeydown,
83
- ref: handleRef,
84
- elemAfterInput: clearText,
85
- isInvalid: !!error
86
- })), error && jsx(ErrorMessage, {
87
- testId: testIds.urlError
88
- }, error)));
89
- }));
81
+ return (
82
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
83
+ jsx("div", {
84
+ css: fieldStyles
85
+ }, jsx(Field, {
86
+ label: label,
87
+ name: name
88
+ }, function (_ref2) {
89
+ var fieldProps = _ref2.fieldProps;
90
+ return jsx(ConditionalSpotlightTargetWrapper, {
91
+ spotlightTargetName: spotlightTargetName
92
+ }, jsx(Fragment, null, jsx(Textfield, _extends({}, fieldProps, restProps, {
93
+ onKeyDown: handleKeydown,
94
+ ref: handleRef,
95
+ elemAfterInput: clearText,
96
+ isInvalid: !!error
97
+ })), error && jsx(ErrorMessage, {
98
+ testId: testIds.urlError
99
+ }, error)));
100
+ }))
101
+ );
90
102
  };
@@ -1,22 +1,16 @@
1
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
1
2
  import { css } from '@emotion/react';
2
- import { N500 } from '@atlaskit/theme/colors';
3
- export var clearTextButtonStyles = css({
4
- padding: 0,
5
- marginRight: "var(--ds-space-050, 4px)",
6
- color: "var(--ds-icon-subtle, ".concat(N500, ")"),
7
- background: 'transparent',
8
- border: 'none',
9
- cursor: 'pointer'
10
- });
11
-
12
3
  /**
13
4
  * Overidding text input margin top which design system provides as a default spacer
14
5
  * but it gets in the way of our layout
15
6
  */
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
16
8
  export var fieldStyles = css({
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
17
10
  '> div': {
18
11
  marginTop: 0
19
12
  },
13
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
20
14
  '& + &': {
21
15
  marginTop: "var(--ds-space-200, 16px)"
22
16
  }
@@ -1,4 +1,5 @@
1
1
  /** @jsx jsx */
2
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
3
  import { jsx } from '@emotion/react';
3
4
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
4
5
  import Spinner from '@atlaskit/spinner';
@@ -37,7 +38,9 @@ export var LoaderFallback = function LoaderFallback(props) {
37
38
  var minHeight = getEstimatedMinHeight(props);
38
39
  return jsx(MinHeightContainer, {
39
40
  minHeight: minHeight,
40
- "data-testid": "link-picker-root-loader-boundary-ui",
41
+ "data-testid": "link-picker-root-loader-boundary-ui"
42
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
43
+ ,
41
44
  css: styles
42
45
  }, jsx(Spinner, {
43
46
  testId: "link-picker.component-loading-indicator",
@@ -1,4 +1,7 @@
1
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
1
2
  import { css } from '@emotion/react';
3
+
4
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
2
5
  export var styles = css({
3
6
  alignItems: 'center'
4
7
  });
@@ -1,4 +1,7 @@
1
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
1
2
  import { css } from '@emotion/react';
3
+
4
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
2
5
  export var fixedWidthContainerStyles = css({
3
6
  width: 'var(--link-picker-width)'
4
7
  });
@@ -1,4 +1,4 @@
1
- import React, { Component, type ReactNode } from 'react';
1
+ import React, { Component, type ErrorInfo, type ReactNode } from 'react';
2
2
  export type ErrorBoundaryErrorInfo = {
3
3
  componentStack: string;
4
4
  };
@@ -8,11 +8,11 @@ type BaseErrorBoundaryState = {
8
8
  interface BaseErrorBoundaryProps {
9
9
  children: ReactNode;
10
10
  ErrorComponent?: React.ComponentType;
11
- onError?: (error: Error, info?: ErrorBoundaryErrorInfo) => void;
11
+ onError?: (error: Error, info?: ErrorInfo) => void;
12
12
  }
13
13
  export declare class BaseErrorBoundary extends Component<BaseErrorBoundaryProps, BaseErrorBoundaryState> {
14
14
  constructor(props: BaseErrorBoundaryProps);
15
- componentDidCatch(error: Error, info?: ErrorBoundaryErrorInfo): void;
15
+ componentDidCatch(error: Error, info?: ErrorInfo): void;
16
16
  render(): React.ReactNode;
17
17
  }
18
18
  export {};
@@ -1,4 +1,3 @@
1
- export declare const clearTextButtonStyles: import("@emotion/react").SerializedStyles;
2
1
  /**
3
2
  * Overidding text input margin top which design system provides as a default spacer
4
3
  * but it gets in the way of our layout
@@ -1,4 +1,4 @@
1
- import React, { Component, type ReactNode } from 'react';
1
+ import React, { Component, type ErrorInfo, type ReactNode } from 'react';
2
2
  export type ErrorBoundaryErrorInfo = {
3
3
  componentStack: string;
4
4
  };
@@ -8,11 +8,11 @@ type BaseErrorBoundaryState = {
8
8
  interface BaseErrorBoundaryProps {
9
9
  children: ReactNode;
10
10
  ErrorComponent?: React.ComponentType;
11
- onError?: (error: Error, info?: ErrorBoundaryErrorInfo) => void;
11
+ onError?: (error: Error, info?: ErrorInfo) => void;
12
12
  }
13
13
  export declare class BaseErrorBoundary extends Component<BaseErrorBoundaryProps, BaseErrorBoundaryState> {
14
14
  constructor(props: BaseErrorBoundaryProps);
15
- componentDidCatch(error: Error, info?: ErrorBoundaryErrorInfo): void;
15
+ componentDidCatch(error: Error, info?: ErrorInfo): void;
16
16
  render(): React.ReactNode;
17
17
  }
18
18
  export {};
@@ -1,4 +1,3 @@
1
- export declare const clearTextButtonStyles: import("@emotion/react").SerializedStyles;
2
1
  /**
3
2
  * Overidding text input margin top which design system provides as a default spacer
4
3
  * but it gets in the way of our layout
package/package.json CHANGED
@@ -1,148 +1,148 @@
1
1
  {
2
- "name": "@atlaskit/link-picker",
3
- "version": "1.37.1",
4
- "description": "Standalone link picker",
5
- "author": "Atlassian Pty Ltd",
6
- "publishConfig": {
7
- "registry": "https://registry.npmjs.org/"
8
- },
9
- "license": "Apache-2.0",
10
- "atlassian": {
11
- "team": "Linking Platform",
12
- "inPublicMirror": false,
13
- "releaseModel": "continuous",
14
- "i18n": true,
15
- "productPushConsumption": [
16
- "jira"
17
- ],
18
- "website": {
19
- "name": "Link Picker"
20
- }
21
- },
22
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
23
- "main": "dist/cjs/index.js",
24
- "module": "dist/esm/index.js",
25
- "module:es2019": "dist/es2019/index.js",
26
- "types": "dist/types/index.d.ts",
27
- "typesVersions": {
28
- ">=4.5 <4.9": {
29
- "*": [
30
- "dist/types-ts4.5/*",
31
- "dist/types-ts4.5/index.d.ts"
32
- ]
33
- }
34
- },
35
- "sideEffects": false,
36
- "atlaskit:src": "src/index.ts",
37
- "af:exports": {
38
- ".": "./src/index.ts"
39
- },
40
- "platform-feature-flags": {
41
- "platform.linking-platform.link-picker.enable-empty-state": {
42
- "type": "boolean"
43
- },
44
- "platform.linking-platform.link-picker.fixed-height-search-results": {
45
- "type": "boolean"
46
- },
47
- "platform.linking-platform.link-picker.enable-jira-create": {
48
- "type": "boolean"
49
- },
50
- "platform.linking-platform.link-picker.remove-dst-empty-state": {
51
- "type": "boolean"
52
- },
53
- "platform.linking-platform.link-picker.translations-map": {
54
- "type": "boolean"
55
- }
56
- },
57
- "scripts": {
58
- "codegen-analytics": "yarn run ts-analytics-codegen --command='yarn workspace @atlaskit/link-picker run codegen-analytics'"
59
- },
60
- "dependencies": {
61
- "@atlaskit/analytics-next": "^9.3.0",
62
- "@atlaskit/button": "^17.17.0",
63
- "@atlaskit/empty-state": "^7.8.0",
64
- "@atlaskit/form": "^10.3.0",
65
- "@atlaskit/frontend-utilities": "^2.7.0",
66
- "@atlaskit/heading": "^2.3.0",
67
- "@atlaskit/icon": "^22.3.0",
68
- "@atlaskit/intl-messages-provider": "^1.0.2",
69
- "@atlaskit/linking-common": "^5.7.0",
70
- "@atlaskit/onboarding": "^11.5.0",
71
- "@atlaskit/platform-feature-flags": "^0.2.1",
72
- "@atlaskit/primitives": "^7.0.0",
73
- "@atlaskit/spinner": "^16.1.0",
74
- "@atlaskit/tabs": "^16.1.0",
75
- "@atlaskit/textfield": "^6.3.0",
76
- "@atlaskit/theme": "^12.9.0",
77
- "@atlaskit/tokens": "^1.49.0",
78
- "@atlaskit/tooltip": "^18.4.0",
79
- "@atlaskit/ufo": "^0.2.0",
80
- "@atlaskit/visually-hidden": "^1.3.0",
81
- "@babel/runtime": "^7.0.0",
82
- "@emotion/react": "^11.7.1",
83
- "@react-loosely-lazy/manifest": "^1.0.0",
84
- "date-fns": "^2.17.0",
85
- "react-loosely-lazy": "^1.0.0",
86
- "use-debounce": "^3.4.0",
87
- "uuid": "^3.1.0"
88
- },
89
- "peerDependencies": {
90
- "react": "^16.8.0",
91
- "react-intl-next": "npm:react-intl@^5.18.1"
92
- },
93
- "devDependencies": {
94
- "@af/analytics-codegen": "^0.1.0",
95
- "@af/integration-testing": "*",
96
- "@af/visual-regression": "*",
97
- "@atlaskit/dropdown-menu": "^12.11.0",
98
- "@atlaskit/link-provider": "^1.10.0",
99
- "@atlaskit/link-test-helpers": "^7.0.0",
100
- "@atlaskit/visual-regression": "*",
101
- "@atlassian/feature-flags-test-utils": "*",
102
- "@testing-library/dom": "^8.17.1",
103
- "@testing-library/jest-dom": "^6.4.5",
104
- "@testing-library/react": "^12.1.5",
105
- "@testing-library/react-hooks": "^8.0.1",
106
- "@testing-library/user-event": "^14.4.3",
107
- "fetch-mock": "^8.0.0",
108
- "jest-extended": "^0.11.2",
109
- "lodash": "^4.17.21",
110
- "mockdate": "^3.0.5",
111
- "node-fetch": "^2.6.7",
112
- "prettier": "^3.2.5",
113
- "react-dom": "^16.8.0",
114
- "sinon": "^2.2.0",
115
- "typescript": "~5.4.2"
116
- },
117
- "techstack": {
118
- "@atlassian/frontend": {
119
- "code-structure": [
120
- "tangerine-next"
121
- ],
122
- "import-structure": [
123
- "atlassian-conventions"
124
- ],
125
- "circular-dependencies": [
126
- "file-and-folder-level"
127
- ]
128
- },
129
- "@repo/internal": {
130
- "dom-events": "use-bind-event-listener",
131
- "analytics": [
132
- "analytics-next"
133
- ],
134
- "design-tokens": [
135
- "color",
136
- "spacing"
137
- ],
138
- "imports": [
139
- "import-no-extraneous-disable-for-examples-and-docs"
140
- ]
141
- }
142
- },
143
- "techstackIgnore": {
144
- "stricter": [
145
- "@atlassian/tangerine/project-structure"
146
- ]
147
- }
148
- }
2
+ "name": "@atlaskit/link-picker",
3
+ "version": "1.37.3",
4
+ "description": "Standalone link picker",
5
+ "author": "Atlassian Pty Ltd",
6
+ "publishConfig": {
7
+ "registry": "https://registry.npmjs.org/"
8
+ },
9
+ "license": "Apache-2.0",
10
+ "atlassian": {
11
+ "team": "Linking Platform",
12
+ "inPublicMirror": false,
13
+ "releaseModel": "continuous",
14
+ "i18n": true,
15
+ "productPushConsumption": [
16
+ "jira"
17
+ ],
18
+ "website": {
19
+ "name": "Link Picker"
20
+ }
21
+ },
22
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
23
+ "main": "dist/cjs/index.js",
24
+ "module": "dist/esm/index.js",
25
+ "module:es2019": "dist/es2019/index.js",
26
+ "types": "dist/types/index.d.ts",
27
+ "typesVersions": {
28
+ ">=4.5 <4.9": {
29
+ "*": [
30
+ "dist/types-ts4.5/*",
31
+ "dist/types-ts4.5/index.d.ts"
32
+ ]
33
+ }
34
+ },
35
+ "sideEffects": false,
36
+ "atlaskit:src": "src/index.ts",
37
+ "af:exports": {
38
+ ".": "./src/index.ts"
39
+ },
40
+ "platform-feature-flags": {
41
+ "platform.linking-platform.link-picker.enable-empty-state": {
42
+ "type": "boolean"
43
+ },
44
+ "platform.linking-platform.link-picker.fixed-height-search-results": {
45
+ "type": "boolean"
46
+ },
47
+ "platform.linking-platform.link-picker.enable-jira-create": {
48
+ "type": "boolean"
49
+ },
50
+ "platform.linking-platform.link-picker.remove-dst-empty-state": {
51
+ "type": "boolean"
52
+ },
53
+ "platform.linking-platform.link-picker.translations-map": {
54
+ "type": "boolean"
55
+ }
56
+ },
57
+ "scripts": {
58
+ "codegen-analytics": "yarn run ts-analytics-codegen --command='yarn workspace @atlaskit/link-picker run codegen-analytics'"
59
+ },
60
+ "dependencies": {
61
+ "@atlaskit/analytics-next": "^9.3.0",
62
+ "@atlaskit/button": "^17.23.0",
63
+ "@atlaskit/empty-state": "^7.9.0",
64
+ "@atlaskit/form": "^10.4.0",
65
+ "@atlaskit/frontend-utilities": "^2.7.0",
66
+ "@atlaskit/heading": "^2.4.0",
67
+ "@atlaskit/icon": "^22.4.0",
68
+ "@atlaskit/intl-messages-provider": "^1.0.2",
69
+ "@atlaskit/linking-common": "^5.7.0",
70
+ "@atlaskit/onboarding": "^11.7.0",
71
+ "@atlaskit/platform-feature-flags": "^0.2.1",
72
+ "@atlaskit/primitives": "^8.0.0",
73
+ "@atlaskit/spinner": "^16.2.0",
74
+ "@atlaskit/tabs": "^16.2.0",
75
+ "@atlaskit/textfield": "^6.4.0",
76
+ "@atlaskit/theme": "^12.11.0",
77
+ "@atlaskit/tokens": "^1.51.0",
78
+ "@atlaskit/tooltip": "^18.5.0",
79
+ "@atlaskit/ufo": "^0.2.0",
80
+ "@atlaskit/visually-hidden": "^1.4.0",
81
+ "@babel/runtime": "^7.0.0",
82
+ "@emotion/react": "^11.7.1",
83
+ "@react-loosely-lazy/manifest": "^1.0.0",
84
+ "date-fns": "^2.17.0",
85
+ "react-loosely-lazy": "^1.0.0",
86
+ "use-debounce": "^3.4.0",
87
+ "uuid": "^3.1.0"
88
+ },
89
+ "peerDependencies": {
90
+ "react": "^16.8.0",
91
+ "react-intl-next": "npm:react-intl@^5.18.1"
92
+ },
93
+ "devDependencies": {
94
+ "@af/analytics-codegen": "^0.1.0",
95
+ "@af/integration-testing": "*",
96
+ "@af/visual-regression": "*",
97
+ "@atlaskit/dropdown-menu": "^12.13.0",
98
+ "@atlaskit/link-provider": "^1.11.0",
99
+ "@atlaskit/link-test-helpers": "^7.0.0",
100
+ "@atlaskit/visual-regression": "*",
101
+ "@atlassian/feature-flags-test-utils": "*",
102
+ "@testing-library/dom": "^8.17.1",
103
+ "@testing-library/jest-dom": "^6.4.5",
104
+ "@testing-library/react": "^12.1.5",
105
+ "@testing-library/react-hooks": "^8.0.1",
106
+ "@testing-library/user-event": "^14.4.3",
107
+ "fetch-mock": "^8.0.0",
108
+ "jest-extended": "^0.11.2",
109
+ "lodash": "^4.17.21",
110
+ "mockdate": "^3.0.5",
111
+ "node-fetch": "^2.6.7",
112
+ "prettier": "^3.2.5",
113
+ "react-dom": "^16.8.0",
114
+ "sinon": "^2.2.0",
115
+ "typescript": "~5.4.2"
116
+ },
117
+ "techstack": {
118
+ "@atlassian/frontend": {
119
+ "code-structure": [
120
+ "tangerine-next"
121
+ ],
122
+ "import-structure": [
123
+ "atlassian-conventions"
124
+ ],
125
+ "circular-dependencies": [
126
+ "file-and-folder-level"
127
+ ]
128
+ },
129
+ "@repo/internal": {
130
+ "dom-events": "use-bind-event-listener",
131
+ "analytics": [
132
+ "analytics-next"
133
+ ],
134
+ "design-tokens": [
135
+ "color",
136
+ "spacing"
137
+ ],
138
+ "imports": [
139
+ "import-no-extraneous-disable-for-examples-and-docs"
140
+ ]
141
+ }
142
+ },
143
+ "techstackIgnore": {
144
+ "stricter": [
145
+ "@atlassian/tangerine/project-structure"
146
+ ]
147
+ }
148
+ }