@atlaskit/link-datasource 4.3.0 → 4.4.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 (49) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/ui/assets-modal/search-container/object-schema-select/index.js +27 -2
  3. package/dist/cjs/ui/common/error-state/loading-error.compiled.css +3 -1
  4. package/dist/cjs/ui/common/error-state/loading-error.js +40 -7
  5. package/dist/cjs/ui/common/error-state/messages.js +17 -2
  6. package/dist/cjs/ui/common/modal/display-view-dropdown/display-view-drop-down.compiled.css +3 -1
  7. package/dist/cjs/ui/common/modal/display-view-dropdown/display-view-drop-down.js +35 -8
  8. package/dist/cjs/ui/common/modal/display-view-dropdown/messages.js +10 -0
  9. package/dist/cjs/ui/common/modal/popup-select/control.js +5 -2
  10. package/dist/cjs/ui/common/modal/site-selector/index.compiled.css +2 -4
  11. package/dist/cjs/ui/common/modal/site-selector/index.js +51 -15
  12. package/dist/cjs/ui/common/modal/site-selector/messages.js +5 -0
  13. package/dist/cjs/ui/datasource-table-view/datasourceTableView.js +7 -3
  14. package/dist/cjs/ui/issue-like-table/column-picker/index.js +1 -1
  15. package/dist/es2019/ui/assets-modal/search-container/object-schema-select/index.js +25 -2
  16. package/dist/es2019/ui/common/error-state/loading-error.compiled.css +3 -1
  17. package/dist/es2019/ui/common/error-state/loading-error.js +35 -8
  18. package/dist/es2019/ui/common/error-state/messages.js +17 -2
  19. package/dist/es2019/ui/common/modal/display-view-dropdown/display-view-drop-down.compiled.css +3 -1
  20. package/dist/es2019/ui/common/modal/display-view-dropdown/display-view-drop-down.js +35 -8
  21. package/dist/es2019/ui/common/modal/display-view-dropdown/messages.js +10 -0
  22. package/dist/es2019/ui/common/modal/popup-select/control.js +5 -2
  23. package/dist/es2019/ui/common/modal/site-selector/index.compiled.css +2 -4
  24. package/dist/es2019/ui/common/modal/site-selector/index.js +40 -7
  25. package/dist/es2019/ui/common/modal/site-selector/messages.js +5 -0
  26. package/dist/es2019/ui/datasource-table-view/datasourceTableView.js +7 -3
  27. package/dist/es2019/ui/issue-like-table/column-picker/index.js +2 -2
  28. package/dist/esm/ui/assets-modal/search-container/object-schema-select/index.js +28 -3
  29. package/dist/esm/ui/common/error-state/loading-error.compiled.css +3 -1
  30. package/dist/esm/ui/common/error-state/loading-error.js +41 -8
  31. package/dist/esm/ui/common/error-state/messages.js +17 -2
  32. package/dist/esm/ui/common/modal/display-view-dropdown/display-view-drop-down.compiled.css +3 -1
  33. package/dist/esm/ui/common/modal/display-view-dropdown/display-view-drop-down.js +35 -8
  34. package/dist/esm/ui/common/modal/display-view-dropdown/messages.js +10 -0
  35. package/dist/esm/ui/common/modal/popup-select/control.js +5 -2
  36. package/dist/esm/ui/common/modal/site-selector/index.compiled.css +2 -4
  37. package/dist/esm/ui/common/modal/site-selector/index.js +51 -15
  38. package/dist/esm/ui/common/modal/site-selector/messages.js +5 -0
  39. package/dist/esm/ui/datasource-table-view/datasourceTableView.js +7 -3
  40. package/dist/esm/ui/issue-like-table/column-picker/index.js +2 -2
  41. package/dist/types/ui/common/error-state/loading-error.d.ts +2 -1
  42. package/dist/types/ui/common/error-state/messages.d.ts +16 -1
  43. package/dist/types/ui/common/modal/display-view-dropdown/messages.d.ts +10 -0
  44. package/dist/types/ui/common/modal/site-selector/messages.d.ts +5 -0
  45. package/dist/types-ts4.5/ui/common/error-state/loading-error.d.ts +2 -1
  46. package/dist/types-ts4.5/ui/common/error-state/messages.d.ts +16 -1
  47. package/dist/types-ts4.5/ui/common/modal/display-view-dropdown/messages.d.ts +10 -0
  48. package/dist/types-ts4.5/ui/common/modal/site-selector/messages.d.ts +5 -0
  49. package/package.json +9 -8
@@ -2,14 +2,17 @@
2
2
  import "./display-view-drop-down.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
5
+ import { cx } from '@compiled/react';
5
6
  import { FormattedMessage, useIntl } from 'react-intl-next';
6
7
  import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
8
+ import { fg } from '@atlaskit/platform-feature-flags';
7
9
  import { Box } from '@atlaskit/primitives/compiled';
8
10
  import { displayViewDropDownMessages } from './messages';
9
11
  var styles = {
10
- dropDownItemGroupStyles: "_2rkoglpi _1bsbnklw _4t3i11ux _ca0q1b66 _n3td1b66"
12
+ dropDownItemGroupStylesOld: "_2rkoglpi _1bsbnklw _4t3i11ux _ca0q1b66 _n3td1b66",
13
+ dropDownItemGroupStyles: "_2rkoglpi _1bsb1pna _4t3i7iqz"
11
14
  };
12
- var InlineIcon = /*#__PURE__*/React.createElement("svg", {
15
+ var InlineIconOld = /*#__PURE__*/React.createElement("svg", {
13
16
  xmlns: "http://www.w3.org/2000/svg",
14
17
  width: "24",
15
18
  height: "24",
@@ -21,7 +24,19 @@ var InlineIcon = /*#__PURE__*/React.createElement("svg", {
21
24
  d: "M4 9C2.89543 9 2 9.67155 2 10.5V13.5C2 14.3285 2.89543 15 4 15H20C21.1046 15 22 14.3285 22 13.5V10.5C22 9.67155 21.1046 9 20 9H4ZM4.22222 11.25C4.22222 10.5 4.22222 10.5 5 10.5H7C7.55556 10.5 7.55556 10.5 7.55556 11.25V13C7.55556 13.5 7.55556 13.5 7 13.5H5C4.22222 13.5 4.22222 13.5 4.22222 13V11.25ZM9 12C9 11.7929 9.2239 11.625 9.5 11.625H19.5C19.7761 11.625 20 11.7929 20 12C20 12.2071 19.7761 12.375 19.5 12.375H9.5C9.2239 12.375 9 12.2071 9 12Z",
22
25
  fill: 'currentColor'
23
26
  }));
24
- var ListIcon = /*#__PURE__*/React.createElement("svg", {
27
+ var InlineIcon = /*#__PURE__*/React.createElement("svg", {
28
+ xmlns: "http://www.w3.org/2000/svg",
29
+ width: "24",
30
+ height: "24",
31
+ fill: "none",
32
+ viewBox: "0 0 24 24"
33
+ }, /*#__PURE__*/React.createElement("path", {
34
+ fill: "currentColor",
35
+ fillRule: "evenodd",
36
+ d: "M6 10.5a.5.5 0 0 0-.5.5v2a.5.5 0 0 0 .5.5h2.5v-3H6Zm4 0v3h8a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5h-8ZM4 11a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-2Z",
37
+ clipRule: "evenodd"
38
+ }));
39
+ var ListIconOld = /*#__PURE__*/React.createElement("svg", {
25
40
  xmlns: "http://www.w3.org/2000/svg",
26
41
  width: "24",
27
42
  height: "24",
@@ -33,6 +48,18 @@ var ListIcon = /*#__PURE__*/React.createElement("svg", {
33
48
  d: "M0 2C0 0.89543 0.895431 0 2 0H13C14.1046 0 15 0.895431 15 2V13C15 14.1046 14.1046 15 13 15H2C0.89543 15 0 14.1046 0 13V2ZM5 6C5 5.44772 5.44772 5 6 5L12 5C12.5523 5 13 5.44772 13 6C13 6.55229 12.5523 7 12 7L6 7C5.44772 7 5 6.55228 5 6ZM6 8C5.44772 8 5 8.44771 5 9C5 9.55228 5.44772 10 6 10L12 10C12.5523 10 13 9.55229 13 9C13 8.44772 12.5523 8 12 8L6 8ZM5 12C5 11.4477 5.44772 11 6 11L12 11C12.5523 11 13 11.4477 13 12C13 12.5523 12.5523 13 12 13L6 13C5.44772 13 5 12.5523 5 12ZM3 7C3.55228 7 4 6.55228 4 6C4 5.44772 3.55228 5 3 5C2.44772 5 2 5.44772 2 6C2 6.55228 2.44772 7 3 7ZM5 3C5 2.44772 5.44772 2 6 2L12 2C12.5523 2 13 2.44772 13 3C13 3.55229 12.5523 4 12 4L6 4C5.44772 4 5 3.55228 5 3ZM3 4C3.55228 4 4 3.55228 4 3C4 2.44772 3.55228 2 3 2C2.44772 2 2 2.44772 2 3C2 3.55228 2.44772 4 3 4ZM4 9C4 9.55229 3.55228 10 3 10C2.44772 10 2 9.55229 2 9C2 8.44771 2.44772 8 3 8C3.55228 8 4 8.44771 4 9ZM3 13C3.55228 13 4 12.5523 4 12C4 11.4477 3.55228 11 3 11C2.44772 11 2 11.4477 2 12C2 12.5523 2.44772 13 3 13Z",
34
49
  fill: 'currentColor'
35
50
  }));
51
+ var ListIcon = /*#__PURE__*/React.createElement("svg", {
52
+ xmlns: "http://www.w3.org/2000/svg",
53
+ width: "24",
54
+ height: "24",
55
+ fill: "none",
56
+ viewBox: "0 0 24 24"
57
+ }, /*#__PURE__*/React.createElement("path", {
58
+ fill: "currentColor",
59
+ fillRule: "evenodd",
60
+ d: "M5 7a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V7Zm2-.5a.5.5 0 0 0-.5.5v10a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V7a.5.5 0 0 0-.5-.5H7Zm2.5 3H8V8h1.5v1.5Zm6.5 0h-5V8h5v1.5Zm-6.5 3.25H8v-1.5h1.5v1.5Zm6.5 0h-5v-1.5h5v1.5ZM9.5 16H8v-1.5h1.5V16Zm6.5 0h-5v-1.5h5V16Z",
61
+ clipRule: "evenodd"
62
+ }));
36
63
  export var DisplayViewDropDown = function DisplayViewDropDown(_ref) {
37
64
  var onViewModeChange = _ref.onViewModeChange,
38
65
  viewMode = _ref.viewMode;
@@ -44,22 +71,22 @@ export var DisplayViewDropDown = function DisplayViewDropDown(_ref) {
44
71
  trigger: triggerText,
45
72
  testId: "datasource-modal--view-drop-down"
46
73
  }, /*#__PURE__*/React.createElement(Box, {
47
- xcss: styles.dropDownItemGroupStyles
74
+ xcss: cx(fg('platform-linking-visual-refresh-sllv') ? styles.dropDownItemGroupStyles : styles.dropDownItemGroupStylesOld)
48
75
  }, /*#__PURE__*/React.createElement(DropdownItemGroup, null, /*#__PURE__*/React.createElement(DropdownItem, {
49
76
  testId: "dropdown-item-table",
50
77
  onClick: function onClick() {
51
78
  return onViewModeChange('table');
52
79
  },
53
80
  isSelected: isTable,
54
- description: formatMessage(displayViewDropDownMessages.viewModeListDescription),
55
- elemBefore: ListIcon
81
+ description: formatMessage(fg('platform-linking-visual-refresh-sllv') ? displayViewDropDownMessages.viewModeListDescription : displayViewDropDownMessages.viewModeListDescriptionOld),
82
+ elemBefore: fg('platform-linking-visual-refresh-sllv') ? ListIcon : ListIconOld
56
83
  }, /*#__PURE__*/React.createElement(FormattedMessage, displayViewDropDownMessages.viewModeListLabel)), /*#__PURE__*/React.createElement(DropdownItem, {
57
84
  testId: "dropdown-item-inline-link",
58
85
  onClick: function onClick() {
59
86
  return onViewModeChange('inline');
60
87
  },
61
88
  isSelected: !isTable,
62
- description: formatMessage(displayViewDropDownMessages.viewModeInlineLinkDescription),
63
- elemBefore: InlineIcon
89
+ description: formatMessage(fg('platform-linking-visual-refresh-sllv') ? displayViewDropDownMessages.viewModeInlineLinkDescription : displayViewDropDownMessages.viewModeInlineLinkDescriptionOld),
90
+ elemBefore: fg('platform-linking-visual-refresh-sllv') ? InlineIcon : InlineIconOld
64
91
  }, /*#__PURE__*/React.createElement(FormattedMessage, displayViewDropDownMessages.viewModeInlineLinkLabel)))));
65
92
  };
@@ -8,6 +8,11 @@ export var displayViewDropDownMessages = defineMessages({
8
8
  viewModeListDescription: {
9
9
  id: 'linkDataSource.jira-issues.configmodal.viewModeListDescription',
10
10
  description: 'Description for list view mode',
11
+ defaultMessage: 'Display the number of search results as a list'
12
+ },
13
+ viewModeListDescriptionOld: {
14
+ id: 'linkDataSource.jira-issues.configmodal.viewModeListDescriptionOld',
15
+ description: 'Description for list view mode',
11
16
  defaultMessage: 'Display search results as a list'
12
17
  },
13
18
  viewModeInlineLinkLabel: {
@@ -18,6 +23,11 @@ export var displayViewDropDownMessages = defineMessages({
18
23
  viewModeInlineLinkDescription: {
19
24
  id: 'linkDataSource.jira-issues.configmodal.viewModeInlineLinkDescription',
20
25
  description: 'Description for inline link view mode',
26
+ defaultMessage: 'Display the number of search results or as an inline Smart Link'
27
+ },
28
+ viewModeInlineLinkDescriptionOld: {
29
+ id: 'linkDataSource.jira-issues.configmodal.viewModeInlineLinkDescriptionOld',
30
+ description: 'Description for inline link view mode',
21
31
  defaultMessage: 'Display the number of search results as an inline Smart Link'
22
32
  }
23
33
  });
@@ -8,14 +8,17 @@ var popupCustomControlStyles = function popupCustomControlStyles() {
8
8
  return {
9
9
  display: 'flex',
10
10
  padding: "var(--ds-space-050, 4px)",
11
- borderBottom: "solid 1px ".concat("var(--ds-border, ".concat(N40, ")"))
11
+ border: 'none',
12
+ borderBottom: "solid 1px ".concat("var(--ds-border, ".concat(N40, ")")),
13
+ minHeight: 'auto'
12
14
  };
13
15
  };
14
16
  export var CustomControl = function CustomControl(_ref) {
15
17
  var children = _ref.children,
16
18
  innerProps = _objectWithoutProperties(_ref, _excluded);
17
19
  return /*#__PURE__*/React.createElement(components.Control, _extends({}, innerProps, {
18
- getStyles: popupCustomControlStyles
20
+ getStyles: popupCustomControlStyles,
21
+ appearance: "none"
19
22
  }), children);
20
23
  };
21
24
  export default CustomControl;
@@ -1,6 +1,4 @@
1
- ._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
- ._zulpu2gc{gap:var(--ds-space-100,8px)}
3
- ._1e0c1txw{display:flex}
4
- ._1pbyibnn{z-index:11}
1
+
2
+ ._zulpu2gc{gap:var(--ds-space-100,8px)}._1e0c1txw{display:flex}
5
3
  ._1tke1ylp{min-height:40px}
6
4
  ._4cvr1h6o{align-items:center}
@@ -1,8 +1,10 @@
1
1
  /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
+ import _extends from "@babel/runtime/helpers/extends";
3
4
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
- var _excluded = ["width"],
5
- _excluded2 = ["width"];
5
+ var _excluded = ["isOpen"],
6
+ _excluded2 = ["width"],
7
+ _excluded3 = ["width"];
6
8
  import "./index.compiled.css";
7
9
  import * as React from 'react';
8
10
  import { ax, ix } from "@compiled/react/runtime";
@@ -10,13 +12,16 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
10
12
  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; }
11
13
  import { useMemo } from 'react';
12
14
  import { useIntl } from 'react-intl-next';
15
+ import Button from '@atlaskit/button/new';
16
+ import Heading from '@atlaskit/heading';
17
+ import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down';
18
+ import { fg } from '@atlaskit/platform-feature-flags';
13
19
  import { Box } from '@atlaskit/primitives/compiled';
14
- import Select from '@atlaskit/select';
20
+ import Select, { PopupSelect } from '@atlaskit/select';
15
21
  import { siteSelectorMessages } from './messages';
16
22
  var styles = {
17
23
  dropdownContainerStyles: "_zulpu2gc _1e0c1txw _4cvr1h6o _1tke1ylp"
18
24
  };
19
- var selectStyles = null;
20
25
  export var SiteSelector = function SiteSelector(props) {
21
26
  var availableSites = props.availableSites,
22
27
  onSiteSelection = props.onSiteSelection,
@@ -47,20 +52,52 @@ export var SiteSelector = function SiteSelector(props) {
47
52
  };
48
53
  return /*#__PURE__*/React.createElement(Box, {
49
54
  xcss: styles.dropdownContainerStyles
50
- }, formatMessage(label), availableSites && availableSites.length > 1 && /*#__PURE__*/React.createElement("span", {
55
+ }, fg('platform-linking-visual-refresh-sllv') ? /*#__PURE__*/React.createElement(Heading, {
56
+ size: "medium",
57
+ as: "h1"
58
+ }, formatMessage(label)) : formatMessage(label), availableSites && availableSites.length > 1 && /*#__PURE__*/React.createElement("span", {
51
59
  "data-testid": "".concat(testId, "--trigger")
52
- }, /*#__PURE__*/React.createElement(Select, {
53
- classNamePrefix: testId,
60
+ }, fg('platform-linking-visual-refresh-sllv') ? /*#__PURE__*/React.createElement(PopupSelect, {
61
+ searchThreshold: 10,
62
+ maxMenuWidth: 300,
63
+ minMenuWidth: 300,
54
64
  isLoading: !availableSites,
65
+ testId: testId,
55
66
  onChange: onChange,
67
+ value: selectedSiteOption,
68
+ label: formatMessage(siteSelectorMessages.chooseSite),
56
69
  options: availableSitesOptions,
57
70
  placeholder: formatMessage(siteSelectorMessages.chooseSite),
71
+ target: function target(_ref) {
72
+ var isOpen = _ref.isOpen,
73
+ triggerProps = _objectWithoutProperties(_ref, _excluded);
74
+ return /*#__PURE__*/React.createElement(Button, _extends({}, triggerProps, {
75
+ isSelected: isOpen,
76
+ iconAfter: ChevronDownIcon,
77
+ testId: "".concat(testId, "__control")
78
+ }), (selectedSiteOption === null || selectedSiteOption === void 0 ? void 0 : selectedSiteOption.label) || formatMessage(siteSelectorMessages.chooseSite));
79
+ }
80
+ }) : /*#__PURE__*/React.createElement(Select, {
81
+ classNamePrefix: testId,
82
+ isLoading: !availableSites,
83
+ onChange: onChange,
84
+ options: availableSitesOptions,
85
+ placeholder: formatMessage(siteSelectorMessages.chooseSiteOld)
86
+ // eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
87
+ ,
58
88
  styles: {
89
+ container: function container(css) {
90
+ return _objectSpread(_objectSpread({}, css), {}, {
91
+ font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
92
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
93
+ zIndex: 11
94
+ });
95
+ },
59
96
  // prevents the popup menu with available sites from being too narrow
60
97
  // if the selected site is much shorter than the other options
61
- menu: function menu(_ref) {
62
- var width = _ref.width,
63
- css = _objectWithoutProperties(_ref, _excluded);
98
+ menu: function menu(_ref2) {
99
+ var width = _ref2.width,
100
+ css = _objectWithoutProperties(_ref2, _excluded2);
64
101
  return _objectSpread(_objectSpread({}, css), {}, {
65
102
  minWidth: '100%',
66
103
  width: 'max-content',
@@ -68,9 +105,9 @@ export var SiteSelector = function SiteSelector(props) {
68
105
  fontWeight: "var(--ds-font-weight-medium, 500)"
69
106
  });
70
107
  },
71
- valueContainer: function valueContainer(_ref2) {
72
- var width = _ref2.width,
73
- css = _objectWithoutProperties(_ref2, _excluded2);
108
+ valueContainer: function valueContainer(_ref3) {
109
+ var width = _ref3.width,
110
+ css = _objectWithoutProperties(_ref3, _excluded3);
74
111
  return _objectSpread(_objectSpread({}, css), {}, {
75
112
  // font-weight has to be overridden here so that it gets applied after the font styles in teh css element above
76
113
  fontWeight: "var(--ds-font-weight-medium, 500)"
@@ -79,7 +116,6 @@ export var SiteSelector = function SiteSelector(props) {
79
116
  },
80
117
  testId: testId,
81
118
  value: selectedSiteOption,
82
- label: formatMessage(siteSelectorMessages.chooseSite),
83
- className: ax(["_11c82smr _1pbyibnn"])
119
+ label: formatMessage(siteSelectorMessages.chooseSiteOld)
84
120
  })));
85
121
  };
@@ -9,6 +9,11 @@ export var siteSelectorMessages = defineMessages({
9
9
  chooseSite: {
10
10
  id: 'linkDataSource.jira-issues.configmodal.chooseSite',
11
11
  description: 'Label for input letting user know they have to choose a site',
12
+ defaultMessage: 'Select a site'
13
+ },
14
+ chooseSiteOld: {
15
+ id: 'linkDataSource.jira-issues.configmodal.chooseSiteOld',
16
+ description: 'Label for input letting user know they have to choose a site',
12
17
  defaultMessage: 'Choose site'
13
18
  }
14
19
  });
@@ -1,10 +1,12 @@
1
1
  /* datasourceTableView.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import _extends from "@babel/runtime/helpers/extends";
2
3
  import "./datasourceTableView.compiled.css";
3
4
  import * as React from 'react';
4
5
  import { ax, ix } from "@compiled/react/runtime";
5
6
  import { useCallback, useEffect, useRef } from 'react';
6
7
  import { withAnalyticsContext } from '@atlaskit/analytics-next';
7
8
  import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
9
+ import { fg } from '@atlaskit/platform-feature-flags';
8
10
  import { useDatasourceAnalyticsEvents } from '../../analytics';
9
11
  import { componentMetadata } from '../../analytics/constants';
10
12
  import { startUfoExperience } from '../../analytics/ufoExperiences';
@@ -125,7 +127,7 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
125
127
  });
126
128
  }, [reset]);
127
129
  if (status === 'resolved' && !responseItems.length || status === 'forbidden') {
128
- return /*#__PURE__*/React.createElement(NoResults, {
130
+ return /*#__PURE__*/React.createElement(NoResults, !fg('platform-linking-visual-refresh-sllv') && {
129
131
  onRefresh: handleErrorRefresh
130
132
  });
131
133
  }
@@ -142,9 +144,11 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
142
144
  });
143
145
  }
144
146
  if (status === 'rejected') {
145
- return /*#__PURE__*/React.createElement(LoadingError, {
147
+ return /*#__PURE__*/React.createElement(LoadingError, _extends({
146
148
  onRefresh: handleErrorRefresh
147
- });
149
+ }, fg('platform-linking-visual-refresh-sllv') && {
150
+ url: url
151
+ }));
148
152
  }
149
153
  return /*#__PURE__*/React.createElement(IntlMessagesProvider, {
150
154
  defaultMessages: i18nEN,
@@ -13,7 +13,7 @@ import CustomizeIcon from '@atlaskit/icon/core/customize';
13
13
  import BoardIcon from '@atlaskit/icon/core/migration/board';
14
14
  import ChevronDownIcon from '@atlaskit/icon/utility/chevron-down';
15
15
  import ChevronDownIconOld from '@atlaskit/icon/utility/migration/chevron-down';
16
- import { fg } from "@atlaskit/platform-feature-flags";
16
+ import { fg } from '@atlaskit/platform-feature-flags';
17
17
  import { Box } from '@atlaskit/primitives/compiled';
18
18
  import { CheckboxOption, createFilter, PopupSelect } from '@atlaskit/select';
19
19
  import Tooltip from '@atlaskit/tooltip';
@@ -152,7 +152,7 @@ export var ColumnPicker = function ColumnPicker(_ref) {
152
152
  return /*#__PURE__*/React.createElement(Button, _extends({}, tooltipProps, triggerProps, {
153
153
  isSelected: isOpen,
154
154
  spacing: "compact",
155
- appearance: fg('platform-linking-visual-refresh-sllv') ? "default" : "subtle",
155
+ appearance: fg('platform-linking-visual-refresh-sllv') ? 'default' : 'subtle',
156
156
  testId: "column-picker-trigger-button",
157
157
  iconBefore: function iconBefore() {
158
158
  return /*#__PURE__*/React.createElement(Box, {
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  interface LoadingErrorProps {
3
3
  onRefresh?: () => void;
4
+ url?: string;
4
5
  }
5
- export declare const LoadingError: ({ onRefresh }: LoadingErrorProps) => JSX.Element;
6
+ export declare const LoadingError: ({ onRefresh, url }: LoadingErrorProps) => JSX.Element;
6
7
  export {};
@@ -34,6 +34,16 @@ export declare const loadingErrorMessages: {
34
34
  description: string;
35
35
  defaultMessage: string;
36
36
  };
37
+ checkConnectionConfluence: {
38
+ id: string;
39
+ description: string;
40
+ defaultMessage: string;
41
+ };
42
+ checkConnectionJira: {
43
+ id: string;
44
+ description: string;
45
+ defaultMessage: string;
46
+ };
37
47
  checkConnection: {
38
48
  id: string;
39
49
  description: string;
@@ -64,7 +74,7 @@ export declare const loadingErrorMessages: {
64
74
  description: string;
65
75
  defaultMessage: string;
66
76
  };
67
- unableToLoadItems: {
77
+ unableToLoadItemsOld: {
68
78
  id: string;
69
79
  description: string;
70
80
  defaultMessage: string;
@@ -79,6 +89,11 @@ export declare const loadingErrorMessages: {
79
89
  description: string;
80
90
  defaultMessage: string;
81
91
  };
92
+ unableToLoadResultsVisualRefreshSllv: {
93
+ id: string;
94
+ description: string;
95
+ defaultMessage: string;
96
+ };
82
97
  noAccessToJiraSitesTitle: {
83
98
  id: string;
84
99
  description: string;
@@ -9,6 +9,11 @@ export declare const displayViewDropDownMessages: {
9
9
  description: string;
10
10
  defaultMessage: string;
11
11
  };
12
+ viewModeListDescriptionOld: {
13
+ id: string;
14
+ description: string;
15
+ defaultMessage: string;
16
+ };
12
17
  viewModeInlineLinkLabel: {
13
18
  id: string;
14
19
  description: string;
@@ -19,4 +24,9 @@ export declare const displayViewDropDownMessages: {
19
24
  description: string;
20
25
  defaultMessage: string;
21
26
  };
27
+ viewModeInlineLinkDescriptionOld: {
28
+ id: string;
29
+ description: string;
30
+ defaultMessage: string;
31
+ };
22
32
  };
@@ -9,4 +9,9 @@ export declare const siteSelectorMessages: {
9
9
  description: string;
10
10
  defaultMessage: string;
11
11
  };
12
+ chooseSiteOld: {
13
+ id: string;
14
+ description: string;
15
+ defaultMessage: string;
16
+ };
12
17
  };
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  interface LoadingErrorProps {
3
3
  onRefresh?: () => void;
4
+ url?: string;
4
5
  }
5
- export declare const LoadingError: ({ onRefresh }: LoadingErrorProps) => JSX.Element;
6
+ export declare const LoadingError: ({ onRefresh, url }: LoadingErrorProps) => JSX.Element;
6
7
  export {};
@@ -34,6 +34,16 @@ export declare const loadingErrorMessages: {
34
34
  description: string;
35
35
  defaultMessage: string;
36
36
  };
37
+ checkConnectionConfluence: {
38
+ id: string;
39
+ description: string;
40
+ defaultMessage: string;
41
+ };
42
+ checkConnectionJira: {
43
+ id: string;
44
+ description: string;
45
+ defaultMessage: string;
46
+ };
37
47
  checkConnection: {
38
48
  id: string;
39
49
  description: string;
@@ -64,7 +74,7 @@ export declare const loadingErrorMessages: {
64
74
  description: string;
65
75
  defaultMessage: string;
66
76
  };
67
- unableToLoadItems: {
77
+ unableToLoadItemsOld: {
68
78
  id: string;
69
79
  description: string;
70
80
  defaultMessage: string;
@@ -79,6 +89,11 @@ export declare const loadingErrorMessages: {
79
89
  description: string;
80
90
  defaultMessage: string;
81
91
  };
92
+ unableToLoadResultsVisualRefreshSllv: {
93
+ id: string;
94
+ description: string;
95
+ defaultMessage: string;
96
+ };
82
97
  noAccessToJiraSitesTitle: {
83
98
  id: string;
84
99
  description: string;
@@ -9,6 +9,11 @@ export declare const displayViewDropDownMessages: {
9
9
  description: string;
10
10
  defaultMessage: string;
11
11
  };
12
+ viewModeListDescriptionOld: {
13
+ id: string;
14
+ description: string;
15
+ defaultMessage: string;
16
+ };
12
17
  viewModeInlineLinkLabel: {
13
18
  id: string;
14
19
  description: string;
@@ -19,4 +24,9 @@ export declare const displayViewDropDownMessages: {
19
24
  description: string;
20
25
  defaultMessage: string;
21
26
  };
27
+ viewModeInlineLinkDescriptionOld: {
28
+ id: string;
29
+ description: string;
30
+ defaultMessage: string;
31
+ };
22
32
  };
@@ -9,4 +9,9 @@ export declare const siteSelectorMessages: {
9
9
  description: string;
10
10
  defaultMessage: string;
11
11
  };
12
+ chooseSiteOld: {
13
+ id: string;
14
+ description: string;
15
+ defaultMessage: string;
16
+ };
12
17
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "4.3.0",
3
+ "version": "4.4.0",
4
4
  "description": "UI Components to support linking platform dataset feature",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -52,8 +52,8 @@
52
52
  "@atlaskit/flag": "^17.1.0",
53
53
  "@atlaskit/form": "^12.0.0",
54
54
  "@atlaskit/heading": "^5.2.0",
55
- "@atlaskit/icon": "^25.5.0",
56
- "@atlaskit/icon-object": "^7.0.0",
55
+ "@atlaskit/icon": "^25.6.0",
56
+ "@atlaskit/icon-object": "^7.1.0",
57
57
  "@atlaskit/image": "^3.0.0",
58
58
  "@atlaskit/inline-edit": "^15.1.0",
59
59
  "@atlaskit/intl-messages-provider": "^2.0.0",
@@ -61,30 +61,31 @@
61
61
  "@atlaskit/jql-editor": "^5.2.0",
62
62
  "@atlaskit/jql-editor-autocomplete-rest": "^3.0.0",
63
63
  "@atlaskit/layering": "^2.1.0",
64
+ "@atlaskit/link": "^3.1.0",
64
65
  "@atlaskit/link-client-extension": "^4.0.0",
65
66
  "@atlaskit/linking-common": "^8.0.0",
66
- "@atlaskit/linking-types": "^9.8.0",
67
+ "@atlaskit/linking-types": "^9.9.0",
67
68
  "@atlaskit/logo": "^16.0.0",
68
69
  "@atlaskit/lozenge": "^12.2.0",
69
70
  "@atlaskit/modal-dialog": "^14.1.0",
70
71
  "@atlaskit/outbound-auth-flow-client": "^3.4.0",
71
72
  "@atlaskit/platform-feature-flags": "^1.1.0",
72
- "@atlaskit/popup": "^4.0.0",
73
+ "@atlaskit/popup": "^4.1.0",
73
74
  "@atlaskit/pragmatic-drag-and-drop": "^1.5.0",
74
75
  "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.0",
75
76
  "@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^2.0.0",
76
77
  "@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.1.0",
77
78
  "@atlaskit/primitives": "^14.4.0",
78
- "@atlaskit/react-select": "^2.3.0",
79
+ "@atlaskit/react-select": "^2.4.0",
79
80
  "@atlaskit/select": "^20.3.0",
80
- "@atlaskit/smart-card": "^36.6.0",
81
+ "@atlaskit/smart-card": "^36.8.0",
81
82
  "@atlaskit/smart-user-picker": "^8.0.0",
82
83
  "@atlaskit/spinner": "^18.0.0",
83
84
  "@atlaskit/tag": "^14.0.0",
84
85
  "@atlaskit/temp-nav-app-icons": "^0.7.0",
85
86
  "@atlaskit/textfield": "^8.0.0",
86
87
  "@atlaskit/theme": "^18.0.0",
87
- "@atlaskit/tokens": "^4.7.0",
88
+ "@atlaskit/tokens": "^4.8.0",
88
89
  "@atlaskit/tooltip": "^20.0.0",
89
90
  "@atlaskit/ufo": "^0.4.0",
90
91
  "@atlaskit/width-detector": "^5.0.0",