@atlaskit/link-picker 1.42.2 → 1.42.4

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 (57) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/ui/error-boundary/error-boundary-fallback/index.js +6 -6
  3. package/dist/cjs/ui/link-picker/form-footer/index.js +31 -30
  4. package/dist/cjs/ui/link-picker/index.js +1 -1
  5. package/dist/cjs/ui/link-picker/search-results/index.js +16 -9
  6. package/dist/cjs/ui/link-picker/search-results/link-search-list/index.js +2 -2
  7. package/dist/cjs/ui/link-picker/search-results/search-results-container/index.js +8 -3
  8. package/dist/cjs/ui/link-picker/styled.js +1 -1
  9. package/dist/cjs/ui/link-picker/text-input/index.js +2 -1
  10. package/dist/cjs/ui/loader-fallback/index.js +1 -3
  11. package/dist/cjs/ui/main.js +5 -4
  12. package/dist/es2019/ui/error-boundary/error-boundary-fallback/index.js +7 -7
  13. package/dist/es2019/ui/link-picker/form-footer/index.js +32 -31
  14. package/dist/es2019/ui/link-picker/index.js +1 -1
  15. package/dist/es2019/ui/link-picker/search-results/index.js +16 -9
  16. package/dist/es2019/ui/link-picker/search-results/link-search-list/index.js +3 -3
  17. package/dist/es2019/ui/link-picker/search-results/search-results-container/index.js +9 -4
  18. package/dist/es2019/ui/link-picker/styled.js +2 -2
  19. package/dist/es2019/ui/link-picker/text-input/index.js +2 -1
  20. package/dist/es2019/ui/loader-fallback/index.js +1 -3
  21. package/dist/es2019/ui/main.js +5 -4
  22. package/dist/esm/ui/error-boundary/error-boundary-fallback/index.js +7 -7
  23. package/dist/esm/ui/link-picker/form-footer/index.js +32 -31
  24. package/dist/esm/ui/link-picker/index.js +1 -1
  25. package/dist/esm/ui/link-picker/search-results/index.js +16 -9
  26. package/dist/esm/ui/link-picker/search-results/link-search-list/index.js +3 -3
  27. package/dist/esm/ui/link-picker/search-results/search-results-container/index.js +9 -4
  28. package/dist/esm/ui/link-picker/styled.js +2 -2
  29. package/dist/esm/ui/link-picker/text-input/index.js +2 -1
  30. package/dist/esm/ui/loader-fallback/index.js +1 -3
  31. package/dist/esm/ui/main.js +5 -4
  32. package/package.json +4 -3
  33. package/dist/cjs/ui/error-boundary/error-boundary-fallback/styled.js +0 -13
  34. package/dist/cjs/ui/link-picker/form-footer/styled.js +0 -19
  35. package/dist/cjs/ui/link-picker/search-results/search-results-container/styled.js +0 -16
  36. package/dist/cjs/ui/link-picker/search-results/styled.js +0 -29
  37. package/dist/cjs/ui/styled.js +0 -13
  38. package/dist/es2019/ui/error-boundary/error-boundary-fallback/styled.js +0 -7
  39. package/dist/es2019/ui/link-picker/form-footer/styled.js +0 -13
  40. package/dist/es2019/ui/link-picker/search-results/search-results-container/styled.js +0 -10
  41. package/dist/es2019/ui/link-picker/search-results/styled.js +0 -22
  42. package/dist/es2019/ui/styled.js +0 -7
  43. package/dist/esm/ui/error-boundary/error-boundary-fallback/styled.js +0 -7
  44. package/dist/esm/ui/link-picker/form-footer/styled.js +0 -13
  45. package/dist/esm/ui/link-picker/search-results/search-results-container/styled.js +0 -10
  46. package/dist/esm/ui/link-picker/search-results/styled.js +0 -22
  47. package/dist/esm/ui/styled.js +0 -7
  48. package/dist/types/ui/error-boundary/error-boundary-fallback/styled.d.ts +0 -1
  49. package/dist/types/ui/link-picker/form-footer/styled.d.ts +0 -2
  50. package/dist/types/ui/link-picker/search-results/search-results-container/styled.d.ts +0 -1
  51. package/dist/types/ui/link-picker/search-results/styled.d.ts +0 -3
  52. package/dist/types/ui/styled.d.ts +0 -1
  53. package/dist/types-ts4.5/ui/error-boundary/error-boundary-fallback/styled.d.ts +0 -1
  54. package/dist/types-ts4.5/ui/link-picker/form-footer/styled.d.ts +0 -2
  55. package/dist/types-ts4.5/ui/link-picker/search-results/search-results-container/styled.d.ts +0 -1
  56. package/dist/types-ts4.5/ui/link-picker/search-results/styled.d.ts +0 -3
  57. package/dist/types-ts4.5/ui/styled.d.ts +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/link-picker
2
2
 
3
+ ## 1.42.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#128698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/128698)
8
+ [`0a846f1404337`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0a846f1404337) -
9
+ Small css refactor. No expected observable changes.
10
+ - Updated dependencies
11
+
12
+ ## 1.42.3
13
+
14
+ ### Patch Changes
15
+
16
+ - [#131099](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/131099)
17
+ [`9df8c5e6d9886`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9df8c5e6d9886) -
18
+ Accessibility and minor UI bug fixes
19
+
3
20
  ## 1.42.2
4
21
 
5
22
  ### Patch Changes
@@ -12,7 +12,6 @@ var _genericErrorSvg = require("../../../common/generic-error-svg");
12
12
  var _emptyState = require("../../../common/ui/empty-state");
13
13
  var _minHeightContainer = require("../../../common/ui/min-height-container");
14
14
  var _styled = require("../../link-picker/styled");
15
- var _styled2 = require("./styled");
16
15
  /**
17
16
  * @jsxRuntime classic
18
17
  * @jsx jsx
@@ -21,6 +20,9 @@ var _styled2 = require("./styled");
21
20
 
22
21
  // eslint-disable-next-line @atlassian/tangerine/import/no-parent-imports
23
22
 
23
+ var errorBoundaryFallbackStyles = (0, _react.css)({
24
+ lineHeight: 'initial'
25
+ });
24
26
  var messages = (0, _reactIntlNext.defineMessages)({
25
27
  heading: {
26
28
  defaultMessage: 'Something went wrong!',
@@ -37,11 +39,9 @@ var ErrorBoundaryFallback = exports.ErrorBoundaryFallback = function ErrorBounda
37
39
  var intl = (0, _reactIntlNext.useIntl)();
38
40
  var header = intl.formatMessage(messages.heading);
39
41
  var description = intl.formatMessage(messages.description);
40
- if ((0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-picker.fixed-height-search-results')) {
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
- , {
44
- css: _styled2.errorBoundaryFallbackStyles,
42
+ if ((0, _platformFeatureFlags.fg)('platform.linking-platform.link-picker.fixed-height-search-results')) {
43
+ return (0, _react.jsx)(_minHeightContainer.MinHeightContainer, {
44
+ css: errorBoundaryFallbackStyles,
45
45
  minHeight: _constants.LINK_PICKER_MIN_HEIGHT_IN_PX_FALLBACK,
46
46
  "data-testid": "link-picker-root-error-boundary-ui"
47
47
  }, (0, _react.jsx)(_emptyState.EmptyState, {
@@ -19,7 +19,6 @@ var _add2 = _interopRequireDefault(require("@atlaskit/icon/utility/add"));
19
19
  var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"));
20
20
  var _errors = require("../../../common/utils/errors");
21
21
  var _featureDiscovery = _interopRequireDefault(require("./feature-discovery"));
22
- var _styled = require("./styled");
23
22
  var _utils = require("./utils");
24
23
  var _excluded = ["isLoading", "isSubmitting", "error", "url", "queryState", "items", "isEditing", "onCancel", "action", "createFeatureDiscovery", "customSubmitButtonLabel"];
25
24
  /**
@@ -29,6 +28,13 @@ var _excluded = ["isLoading", "isSubmitting", "error", "url", "queryState", "ite
29
28
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
30
29
  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); }
31
30
  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; }
31
+ var formFooterStyles = (0, _react2.css)({
32
+ display: 'flex',
33
+ justifyContent: 'flex-end'
34
+ });
35
+ var formFooterActionStyles = (0, _react2.css)({
36
+ marginRight: 'auto'
37
+ });
32
38
  var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
33
39
  cancelButton: {
34
40
  id: 'fabric.linkPicker.button.cancel',
@@ -98,33 +104,28 @@ var FormFooter = exports.FormFooter = /*#__PURE__*/(0, _react.memo)(function (_r
98
104
  "aria-labelledby": isSubmitting ? submitMessageId : undefined
99
105
  }, typeof pluginAction.label === 'string' ? pluginAction.label : intl.formatMessage(pluginAction.label));
100
106
  };
101
- return (
102
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
103
- (0, _react2.jsx)("footer", (0, _extends2.default)({
104
- css: _styled.formFooterStyles
105
- }, restProps), isSubmitting && (0, _react2.jsx)(_visuallyHidden.default, {
106
- role: "status",
107
- id: submitMessageId,
108
- testId: testIds.submitStatusA11yIndicator
109
- }, intl.formatMessage(messages.submittingStatusMessage)), action &&
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.formFooterActionStyles
113
- }, createFeatureDiscovery ? (0, _react2.jsx)(_featureDiscovery.default, {
114
- testId: testIds.actionButtonDiscovery
115
- }, createButton(action)) : createButton(action)), (0, _react2.jsx)(_button.ButtonGroup, null, onCancel && (0, _react2.jsx)(_button.default, {
116
- appearance: "subtle",
117
- onClick: onCancel,
118
- testId: testIds.cancelButton,
119
- isDisabled: isSubmitting,
120
- "aria-labelledby": isSubmitting ? submitMessageId : undefined
121
- }, intl.formatMessage(messages.cancelButton)), (0, _react2.jsx)(_loadingButton.default, {
122
- type: "submit",
123
- appearance: "primary",
124
- testId: testIds.insertButton,
125
- isDisabled: isSubmitDisabled,
126
- "aria-labelledby": isSubmitting ? submitMessageId : undefined,
127
- isLoading: isSubmitting
128
- }, customSubmitButtonLabel ? intl.formatMessage(customSubmitButtonLabel) : intl.formatMessage(insertButtonMsg))))
129
- );
107
+ return (0, _react2.jsx)("footer", (0, _extends2.default)({
108
+ css: formFooterStyles
109
+ }, restProps), isSubmitting && (0, _react2.jsx)(_visuallyHidden.default, {
110
+ role: "status",
111
+ id: submitMessageId,
112
+ testId: testIds.submitStatusA11yIndicator
113
+ }, intl.formatMessage(messages.submittingStatusMessage)), action && (0, _react2.jsx)("div", {
114
+ css: formFooterActionStyles
115
+ }, createFeatureDiscovery ? (0, _react2.jsx)(_featureDiscovery.default, {
116
+ testId: testIds.actionButtonDiscovery
117
+ }, createButton(action)) : createButton(action)), (0, _react2.jsx)(_button.ButtonGroup, null, onCancel && (0, _react2.jsx)(_button.default, {
118
+ appearance: "subtle",
119
+ onClick: onCancel,
120
+ testId: testIds.cancelButton,
121
+ isDisabled: isSubmitting,
122
+ "aria-labelledby": isSubmitting ? submitMessageId : undefined
123
+ }, intl.formatMessage(messages.cancelButton)), (0, _react2.jsx)(_loadingButton.default, {
124
+ type: "submit",
125
+ appearance: "primary",
126
+ testId: testIds.insertButton,
127
+ isDisabled: isSubmitDisabled,
128
+ "aria-labelledby": isSubmitting ? submitMessageId : undefined,
129
+ isLoading: isSubmitting
130
+ }, customSubmitButtonLabel ? intl.formatMessage(customSubmitButtonLabel) : intl.formatMessage(insertButtonMsg))));
130
131
  });
@@ -324,7 +324,7 @@ var LinkPicker = exports.LinkPicker = (0, _analytics.withLinkPickerAnalyticsCont
324
324
  // Use onSubmitCapture instead of onSubmit so that any possible parent form isn't submitted
325
325
  ,
326
326
  onSubmitCapture: handleSubmit
327
- }, (0, _react2.jsx)(_trackMount.TrackMount, null), isActivePlugin && screenReaderText && (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(_announcer.Announcer, {
327
+ }, (0, _react2.jsx)(_trackMount.TrackMount, null), isActivePlugin && (0, _react2.jsx)(_react.Fragment, null, screenReaderText && (0, _react2.jsx)(_announcer.Announcer, {
328
328
  ariaLive: "assertive",
329
329
  text: screenReaderText,
330
330
  ariaRelevant: "additions",
@@ -10,6 +10,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
10
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
11
  var _react = require("react");
12
12
  var _react2 = require("@emotion/react");
13
+ var _primitives = require("@atlaskit/primitives");
13
14
  var _spinner = _interopRequireDefault(require("@atlaskit/spinner/spinner"));
14
15
  var _tabs = _interopRequireWildcard(require("@atlaskit/tabs"));
15
16
  var _useFixHeight = require("../../../controllers/use-fix-height");
@@ -17,7 +18,6 @@ var _linkSearchError = require("./link-search-error");
17
18
  var _linkSearchList = require("./link-search-list");
18
19
  var _scrollingTabs = require("./scrolling-tabs");
19
20
  var _searchResultsContainer = require("./search-results-container");
20
- var _styled = require("./styled");
21
21
  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; }
@@ -26,6 +26,17 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
26
26
  * @jsxRuntime classic
27
27
  * @jsx jsx
28
28
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
29
+ var tabsWrapperStyles = (0, _primitives.xcss)({
30
+ marginTop: 'space.150'
31
+ });
32
+ var spinnerContainerStyles = (0, _react2.css)({
33
+ minHeight: '80px',
34
+ display: 'flex',
35
+ alignItems: 'center',
36
+ justifyContent: 'center',
37
+ alignSelf: 'center',
38
+ flexGrow: 1
39
+ });
29
40
  var testIds = exports.testIds = _objectSpread(_objectSpread(_objectSpread({}, _linkSearchError.testIds), _linkSearchList.testIds), {}, {
30
41
  tabsLoadingIndicator: 'link-picker.tabs-loading-indicator',
31
42
  tabList: 'link-picker-tabs',
@@ -63,17 +74,13 @@ var SearchResults = exports.SearchResults = function SearchResults(_ref) {
63
74
  }));
64
75
  return (0, _react2.jsx)(_searchResultsContainer.SearchResultsContainer, (0, _extends2.default)({
65
76
  hasTabs: !!tabs.length || isLoadingPlugins
66
- }, fixListHeightProps), isLoadingPlugins && !!queryState &&
67
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
68
- (0, _react2.jsx)("div", {
69
- css: _styled.spinnerContainerStyles
77
+ }, fixListHeightProps), isLoadingPlugins && !!queryState && (0, _react2.jsx)("div", {
78
+ css: spinnerContainerStyles
70
79
  }, (0, _react2.jsx)(_spinner.default, {
71
80
  testId: testIds.tabsLoadingIndicator,
72
81
  size: "medium"
73
- })), !isLoadingPlugins && isActivePlugin && !!queryState && (0, _react2.jsx)(_react.Fragment, null, tabs.length > 0 &&
74
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
75
- (0, _react2.jsx)("div", {
76
- css: _styled.tabsWrapperStyles
82
+ })), !isLoadingPlugins && isActivePlugin && !!queryState && (0, _react2.jsx)(_react.Fragment, null, tabs.length > 0 && (0, _react2.jsx)(_primitives.Box, {
83
+ xcss: tabsWrapperStyles
77
84
  }, (0, _react2.jsx)(_tabs.default, {
78
85
  id: testIds.tabList,
79
86
  testId: testIds.tabList,
@@ -107,7 +107,7 @@ var LinkSearchList = exports.LinkSearchList = /*#__PURE__*/(0, _react.forwardRef
107
107
  }
108
108
  }, [activeIndex, items, onKeyDown]);
109
109
  if ((items === null || items === void 0 ? void 0 : items.length) === 0) {
110
- if ((0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-picker.enable-empty-state')) {
110
+ if ((0, _platformFeatureFlags.fg)('platform.linking-platform.link-picker.enable-empty-state')) {
111
111
  if (hasSearchTerm) {
112
112
  return (0, _react2.jsx)(_linkSearchNoResults.NoResults, null);
113
113
  } else {
@@ -168,7 +168,7 @@ var LinkSearchList = exports.LinkSearchList = /*#__PURE__*/(0, _react.forwardRef
168
168
  }
169
169
  if (isLoading) {
170
170
  loadingContent = (0, _react2.jsx)(_minHeightContainer.MinHeightContainer, {
171
- minHeight: (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-picker.fixed-height-search-results') ? '50px' : '80px'
171
+ minHeight: (0, _platformFeatureFlags.fg)('platform.linking-platform.link-picker.fixed-height-search-results') ? '50px' : '80px'
172
172
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
173
173
  ,
174
174
  css: _styled.spinnerContainerStyles
@@ -11,23 +11,28 @@ var _react = require("react");
11
11
  var _react2 = require("@emotion/react");
12
12
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
13
  var _minHeightContainer = require("../../../../common/ui/min-height-container");
14
- var _styled = require("./styled");
15
14
  var _excluded = ["hasTabs"];
16
15
  /**
17
16
  * @jsxRuntime classic
18
17
  * @jsx jsx
19
18
  */
20
19
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
20
+ var flexColumn = (0, _react2.css)({
21
+ display: 'flex',
22
+ flexDirection: 'column',
23
+ justifyContent: 'flex-start',
24
+ width: '100%'
25
+ });
21
26
  var SearchResultsContainer = exports.SearchResultsContainer = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
22
27
  var hasTabs = _ref.hasTabs,
23
28
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
24
29
  var minHeight = hasTabs ? '347px' : '302px';
25
- var ffMinHeight = (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-picker.fixed-height-search-results') ? minHeight : 'auto';
30
+ var ffMinHeight = (0, _platformFeatureFlags.fg)('platform.linking-platform.link-picker.fixed-height-search-results') ? minHeight : 'auto';
26
31
 
27
32
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
28
33
  return (0, _react2.jsx)(_minHeightContainer.MinHeightContainer, (0, _extends2.default)({
29
34
  ref: ref,
30
35
  minHeight: ffMinHeight,
31
- css: _styled.flexColumn
36
+ css: flexColumn
32
37
  }, props));
33
38
  });
@@ -10,7 +10,7 @@ var _react = require("@emotion/react");
10
10
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
11
  var _templateObject; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
12
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
13
- var rootContainerStyles = exports.rootContainerStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\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"])), (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-picker.fixed-height-search-results') ? undefined : 'var(--link-picker-width)');
13
+ var rootContainerStyles = exports.rootContainerStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\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"])), (0, _platformFeatureFlags.fg)('platform.linking-platform.link-picker.fixed-height-search-results') ? undefined : 'var(--link-picker-width)');
14
14
 
15
15
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
16
16
  var formFooterMargin = exports.formFooterMargin = (0, _react.css)({
@@ -45,7 +45,8 @@ var clearTextButtonStyles = (0, _primitives.xcss)({
45
45
  padding: 'space.0',
46
46
  marginRight: 'space.050',
47
47
  backgroundColor: 'color.background.neutral.subtle',
48
- border: 'none'
48
+ border: 'none',
49
+ verticalAlign: 'middle'
49
50
  });
50
51
  var TextInput = exports.TextInput = function TextInput(_ref) {
51
52
  var name = _ref.name,
@@ -64,9 +64,7 @@ var LoaderFallback = exports.LoaderFallback = function LoaderFallback(props) {
64
64
  var minHeight = getEstimatedMinHeight(props);
65
65
  return (0, _react.jsx)(_minHeightContainer.MinHeightContainer, {
66
66
  minHeight: minHeight,
67
- "data-testid": "link-picker-root-loader-boundary-ui"
68
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
69
- ,
67
+ "data-testid": "link-picker-root-loader-boundary-ui",
70
68
  css: styles
71
69
  }, (0, _react.jsx)(_spinner.default, {
72
70
  testId: "link-picker.component-loading-indicator",
@@ -18,7 +18,6 @@ var _sessionProvider = require("../controllers/session-provider");
18
18
  var _errorBoundary = require("./error-boundary");
19
19
  var _loaderFallback = require("./loader-fallback");
20
20
  var _messagesProvider = require("./messages-provider");
21
- var _styled = require("./styled");
22
21
  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
22
  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
23
  /**
@@ -33,7 +32,7 @@ var testIds = exports.testIds = {
33
32
  };
34
33
  var PACKAGE_DATA = exports.PACKAGE_DATA = {
35
34
  packageName: "@atlaskit/link-picker" || '',
36
- packageVersion: "1.42.2" || '',
35
+ packageVersion: "1.42.4" || '',
37
36
  componentName: _constants.COMPONENT_NAME,
38
37
  source: _constants.COMPONENT_NAME
39
38
  };
@@ -43,10 +42,12 @@ var DefaultRootComponent = function DefaultRootComponent(_ref) {
43
42
  "data-testid": testIds.linkPickerRoot
44
43
  }, children);
45
44
  };
45
+ var fixedWidthContainerStyles = (0, _react2.css)({
46
+ width: 'var(--link-picker-width)'
47
+ });
46
48
  var FixedWidthContainer = function FixedWidthContainer(props) {
47
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
48
49
  return (0, _react2.jsx)("div", (0, _extends2.default)({
49
- css: _styled.fixedWidthContainerStyles
50
+ css: fixedWidthContainerStyles
50
51
  }, props));
51
52
  };
52
53
  var composeLinkPicker = exports.composeLinkPicker = function composeLinkPicker(Component) {
@@ -3,16 +3,18 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
- import { jsx } from '@emotion/react';
6
+ import { css, jsx } from '@emotion/react';
7
7
  import { defineMessages, useIntl } from 'react-intl-next';
8
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
8
+ import { fg } from '@atlaskit/platform-feature-flags';
9
9
  import { LINK_PICKER_MIN_HEIGHT_IN_PX_FALLBACK } from '../../../common/constants';
10
10
  import { GenericErrorSVG } from '../../../common/generic-error-svg';
11
11
  import { EmptyState } from '../../../common/ui/empty-state';
12
12
  import { MinHeightContainer } from '../../../common/ui/min-height-container';
13
13
  // eslint-disable-next-line @atlassian/tangerine/import/no-parent-imports
14
14
  import { rootContainerStyles } from '../../link-picker/styled';
15
- import { errorBoundaryFallbackStyles } from './styled';
15
+ const errorBoundaryFallbackStyles = css({
16
+ lineHeight: 'initial'
17
+ });
16
18
  const messages = defineMessages({
17
19
  heading: {
18
20
  defaultMessage: 'Something went wrong!',
@@ -29,10 +31,8 @@ export const ErrorBoundaryFallback = () => {
29
31
  const intl = useIntl();
30
32
  const header = intl.formatMessage(messages.heading);
31
33
  const description = intl.formatMessage(messages.description);
32
- if (getBooleanFF('platform.linking-platform.link-picker.fixed-height-search-results')) {
33
- return jsx(MinHeightContainer
34
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
35
- , {
34
+ if (fg('platform.linking-platform.link-picker.fixed-height-search-results')) {
35
+ return jsx(MinHeightContainer, {
36
36
  css: errorBoundaryFallbackStyles,
37
37
  minHeight: LINK_PICKER_MIN_HEIGHT_IN_PX_FALLBACK,
38
38
  "data-testid": "link-picker-root-error-boundary-ui"
@@ -6,7 +6,7 @@ import _extends from "@babel/runtime/helpers/extends";
6
6
  import { memo, useMemo } from 'react';
7
7
 
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
- import { jsx } from '@emotion/react';
9
+ import { css, jsx } from '@emotion/react';
10
10
  import { defineMessages, useIntl } from 'react-intl-next';
11
11
  import uuid from 'uuid';
12
12
  import Button, { ButtonGroup } from '@atlaskit/button';
@@ -16,8 +16,14 @@ import EditorAddIcon from '@atlaskit/icon/utility/add';
16
16
  import VisuallyHidden from '@atlaskit/visually-hidden';
17
17
  import { UnauthenticatedError } from '../../../common/utils/errors';
18
18
  import FeatureDiscovery from './feature-discovery';
19
- import { formFooterActionStyles, formFooterStyles } from './styled';
20
19
  import { checkSubmitDisabled } from './utils';
20
+ const formFooterStyles = css({
21
+ display: 'flex',
22
+ justifyContent: 'flex-end'
23
+ });
24
+ const formFooterActionStyles = css({
25
+ marginRight: 'auto'
26
+ });
21
27
  export const messages = defineMessages({
22
28
  cancelButton: {
23
29
  id: 'fabric.linkPicker.button.cancel',
@@ -82,33 +88,28 @@ export const FormFooter = /*#__PURE__*/memo(({
82
88
  isDisabled: isSubmitting,
83
89
  "aria-labelledby": isSubmitting ? submitMessageId : undefined
84
90
  }, typeof pluginAction.label === 'string' ? pluginAction.label : intl.formatMessage(pluginAction.label));
85
- return (
86
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
87
- jsx("footer", _extends({
88
- css: formFooterStyles
89
- }, restProps), isSubmitting && jsx(VisuallyHidden, {
90
- role: "status",
91
- id: submitMessageId,
92
- testId: testIds.submitStatusA11yIndicator
93
- }, intl.formatMessage(messages.submittingStatusMessage)), action &&
94
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
95
- jsx("div", {
96
- css: formFooterActionStyles
97
- }, createFeatureDiscovery ? jsx(FeatureDiscovery, {
98
- testId: testIds.actionButtonDiscovery
99
- }, createButton(action)) : createButton(action)), jsx(ButtonGroup, null, onCancel && jsx(Button, {
100
- appearance: "subtle",
101
- onClick: onCancel,
102
- testId: testIds.cancelButton,
103
- isDisabled: isSubmitting,
104
- "aria-labelledby": isSubmitting ? submitMessageId : undefined
105
- }, intl.formatMessage(messages.cancelButton)), jsx(LoadingButton, {
106
- type: "submit",
107
- appearance: "primary",
108
- testId: testIds.insertButton,
109
- isDisabled: isSubmitDisabled,
110
- "aria-labelledby": isSubmitting ? submitMessageId : undefined,
111
- isLoading: isSubmitting
112
- }, customSubmitButtonLabel ? intl.formatMessage(customSubmitButtonLabel) : intl.formatMessage(insertButtonMsg))))
113
- );
91
+ return jsx("footer", _extends({
92
+ css: formFooterStyles
93
+ }, restProps), isSubmitting && jsx(VisuallyHidden, {
94
+ role: "status",
95
+ id: submitMessageId,
96
+ testId: testIds.submitStatusA11yIndicator
97
+ }, intl.formatMessage(messages.submittingStatusMessage)), action && jsx("div", {
98
+ css: formFooterActionStyles
99
+ }, createFeatureDiscovery ? jsx(FeatureDiscovery, {
100
+ testId: testIds.actionButtonDiscovery
101
+ }, createButton(action)) : createButton(action)), jsx(ButtonGroup, null, onCancel && jsx(Button, {
102
+ appearance: "subtle",
103
+ onClick: onCancel,
104
+ testId: testIds.cancelButton,
105
+ isDisabled: isSubmitting,
106
+ "aria-labelledby": isSubmitting ? submitMessageId : undefined
107
+ }, intl.formatMessage(messages.cancelButton)), jsx(LoadingButton, {
108
+ type: "submit",
109
+ appearance: "primary",
110
+ testId: testIds.insertButton,
111
+ isDisabled: isSubmitDisabled,
112
+ "aria-labelledby": isSubmitting ? submitMessageId : undefined,
113
+ isLoading: isSubmitting
114
+ }, customSubmitButtonLabel ? intl.formatMessage(customSubmitButtonLabel) : intl.formatMessage(insertButtonMsg))));
114
115
  });
@@ -328,7 +328,7 @@ export const LinkPicker = withLinkPickerAnalyticsContext( /*#__PURE__*/memo(({
328
328
  // Use onSubmitCapture instead of onSubmit so that any possible parent form isn't submitted
329
329
  ,
330
330
  onSubmitCapture: handleSubmit
331
- }, jsx(TrackMount, null), isActivePlugin && screenReaderText && jsx(Fragment, null, jsx(Announcer, {
331
+ }, jsx(TrackMount, null), isActivePlugin && jsx(Fragment, null, screenReaderText && jsx(Announcer, {
332
332
  ariaLive: "assertive",
333
333
  text: screenReaderText,
334
334
  ariaRelevant: "additions",
@@ -6,7 +6,8 @@ import _extends from "@babel/runtime/helpers/extends";
6
6
  import { Fragment } from 'react';
7
7
 
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
- import { jsx } from '@emotion/react';
9
+ import { css, jsx } from '@emotion/react';
10
+ import { Box, xcss } from '@atlaskit/primitives';
10
11
  import Spinner from '@atlaskit/spinner/spinner';
11
12
  import Tabs, { Tab, TabList } from '@atlaskit/tabs';
12
13
  import { useFixHeight } from '../../../controllers/use-fix-height';
@@ -14,8 +15,18 @@ import { LinkSearchError, testIds as searchErrorTestIds } from './link-search-er
14
15
  import { LinkSearchList, testIds as listTestIds } from './link-search-list';
15
16
  import { ScrollingTabList } from './scrolling-tabs';
16
17
  import { SearchResultsContainer } from './search-results-container';
17
- import { spinnerContainerStyles, tabsWrapperStyles } from './styled';
18
18
  import { TrackTabViewed } from './track-tab-viewed';
19
+ const tabsWrapperStyles = xcss({
20
+ marginTop: 'space.150'
21
+ });
22
+ const spinnerContainerStyles = css({
23
+ minHeight: '80px',
24
+ display: 'flex',
25
+ alignItems: 'center',
26
+ justifyContent: 'center',
27
+ alignSelf: 'center',
28
+ flexGrow: 1
29
+ });
19
30
  export const testIds = {
20
31
  ...searchErrorTestIds,
21
32
  ...listTestIds,
@@ -54,17 +65,13 @@ export const SearchResults = ({
54
65
  }, tab.tabTitle)));
55
66
  return jsx(SearchResultsContainer, _extends({
56
67
  hasTabs: !!tabs.length || isLoadingPlugins
57
- }, fixListHeightProps), isLoadingPlugins && !!queryState &&
58
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
59
- jsx("div", {
68
+ }, fixListHeightProps), isLoadingPlugins && !!queryState && jsx("div", {
60
69
  css: spinnerContainerStyles
61
70
  }, jsx(Spinner, {
62
71
  testId: testIds.tabsLoadingIndicator,
63
72
  size: "medium"
64
- })), !isLoadingPlugins && isActivePlugin && !!queryState && jsx(Fragment, null, tabs.length > 0 &&
65
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
66
- jsx("div", {
67
- css: tabsWrapperStyles
73
+ })), !isLoadingPlugins && isActivePlugin && !!queryState && jsx(Fragment, null, tabs.length > 0 && jsx(Box, {
74
+ xcss: tabsWrapperStyles
68
75
  }, jsx(Tabs, {
69
76
  id: testIds.tabList,
70
77
  testId: testIds.tabList,
@@ -8,7 +8,7 @@ import { forwardRef, Fragment, useCallback, useRef } from 'react';
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
9
  import { css, jsx } from '@emotion/react';
10
10
  import { defineMessages, FormattedMessage } from 'react-intl-next';
11
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
11
+ import { fg } from '@atlaskit/platform-feature-flags';
12
12
  import Spinner from '@atlaskit/spinner';
13
13
  import VisuallyHidden from '@atlaskit/visually-hidden';
14
14
  import { MinHeightContainer } from '../../../../common/ui/min-height-container';
@@ -101,7 +101,7 @@ export const LinkSearchList = /*#__PURE__*/forwardRef(({
101
101
  }
102
102
  }, [activeIndex, items, onKeyDown]);
103
103
  if ((items === null || items === void 0 ? void 0 : items.length) === 0) {
104
- if (getBooleanFF('platform.linking-platform.link-picker.enable-empty-state')) {
104
+ if (fg('platform.linking-platform.link-picker.enable-empty-state')) {
105
105
  if (hasSearchTerm) {
106
106
  return jsx(NoResults, null);
107
107
  } else {
@@ -156,7 +156,7 @@ export const LinkSearchList = /*#__PURE__*/forwardRef(({
156
156
  }
157
157
  if (isLoading) {
158
158
  loadingContent = jsx(MinHeightContainer, {
159
- minHeight: getBooleanFF('platform.linking-platform.link-picker.fixed-height-search-results') ? '50px' : '80px'
159
+ minHeight: fg('platform.linking-platform.link-picker.fixed-height-search-results') ? '50px' : '80px'
160
160
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
161
161
  ,
162
162
  css: spinnerContainerStyles
@@ -6,16 +6,21 @@ import _extends from "@babel/runtime/helpers/extends";
6
6
  import { forwardRef } from 'react';
7
7
 
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
- import { jsx } from '@emotion/react';
10
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
9
+ import { css, jsx } from '@emotion/react';
10
+ import { fg } from '@atlaskit/platform-feature-flags';
11
11
  import { MinHeightContainer } from '../../../../common/ui/min-height-container';
12
- import { flexColumn } from './styled';
12
+ const flexColumn = css({
13
+ display: 'flex',
14
+ flexDirection: 'column',
15
+ justifyContent: 'flex-start',
16
+ width: '100%'
17
+ });
13
18
  export const SearchResultsContainer = /*#__PURE__*/forwardRef(({
14
19
  hasTabs,
15
20
  ...props
16
21
  }, ref) => {
17
22
  const minHeight = hasTabs ? '347px' : '302px';
18
- const ffMinHeight = getBooleanFF('platform.linking-platform.link-picker.fixed-height-search-results') ? minHeight : 'auto';
23
+ const ffMinHeight = fg('platform.linking-platform.link-picker.fixed-height-search-results') ? minHeight : 'auto';
19
24
 
20
25
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
21
26
  return jsx(MinHeightContainer, _extends({
@@ -1,9 +1,9 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import { css } from '@emotion/react';
3
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
3
+ import { fg } from '@atlaskit/platform-feature-flags';
4
4
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
5
5
  export const rootContainerStyles = css`
6
- width: ${getBooleanFF('platform.linking-platform.link-picker.fixed-height-search-results') ? undefined : 'var(--link-picker-width)'};
6
+ width: ${fg('platform.linking-platform.link-picker.fixed-height-search-results') ? undefined : 'var(--link-picker-width)'};
7
7
  padding-left: var(--link-picker-padding-left);
8
8
  padding-right: var(--link-picker-padding-right);
9
9
  padding-top: var(--link-picker-padding-top);
@@ -38,7 +38,8 @@ const clearTextButtonStyles = xcss({
38
38
  padding: 'space.0',
39
39
  marginRight: 'space.050',
40
40
  backgroundColor: 'color.background.neutral.subtle',
41
- border: 'none'
41
+ border: 'none',
42
+ verticalAlign: 'middle'
42
43
  });
43
44
  export const TextInput = ({
44
45
  name,
@@ -57,9 +57,7 @@ export const LoaderFallback = props => {
57
57
  const minHeight = getEstimatedMinHeight(props);
58
58
  return jsx(MinHeightContainer, {
59
59
  minHeight: minHeight,
60
- "data-testid": "link-picker-root-loader-boundary-ui"
61
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
62
- ,
60
+ "data-testid": "link-picker-root-loader-boundary-ui",
63
61
  css: styles
64
62
  }, jsx(Spinner, {
65
63
  testId: "link-picker.component-loading-indicator",