@atlaskit/link-datasource 3.15.0 → 3.15.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/services/cmdbService.utils.js +6 -8
  3. package/dist/cjs/ui/issue-like-table/render-type/date-time/index.js +4 -11
  4. package/dist/cjs/ui/issue-like-table/render-type/link/index.js +7 -8
  5. package/dist/cjs/ui/issue-like-table/render-type/text/index.js +3 -12
  6. package/dist/cjs/ui/issue-like-table/render-type/user/index.js +1 -3
  7. package/dist/cjs/ui/issue-like-table/styled.js +20 -23
  8. package/dist/cjs/ui/jira-issues-modal/basic-filters/utils/extractValuesFromNonComplexJQL.js +6 -9
  9. package/dist/cjs/ui/jira-issues-modal/basic-filters/utils/isQueryTooComplex.js +12 -16
  10. package/dist/es2019/ui/issue-like-table/render-type/date-time/index.js +3 -12
  11. package/dist/es2019/ui/issue-like-table/render-type/link/index.js +5 -6
  12. package/dist/es2019/ui/issue-like-table/render-type/text/index.js +3 -12
  13. package/dist/es2019/ui/issue-like-table/render-type/user/index.js +1 -3
  14. package/dist/es2019/ui/issue-like-table/styled.js +2 -6
  15. package/dist/esm/services/cmdbService.utils.js +6 -8
  16. package/dist/esm/ui/issue-like-table/render-type/date-time/index.js +3 -12
  17. package/dist/esm/ui/issue-like-table/render-type/link/index.js +7 -8
  18. package/dist/esm/ui/issue-like-table/render-type/text/index.js +3 -12
  19. package/dist/esm/ui/issue-like-table/render-type/user/index.js +1 -3
  20. package/dist/esm/ui/issue-like-table/styled.js +17 -22
  21. package/dist/esm/ui/jira-issues-modal/basic-filters/utils/extractValuesFromNonComplexJQL.js +6 -9
  22. package/dist/esm/ui/jira-issues-modal/basic-filters/utils/isQueryTooComplex.js +12 -16
  23. package/dist/types/ui/confluence-search-modal/basic-filters/filters/date-range-picker/PopupComponent.d.ts +1 -1
  24. package/dist/types/ui/issue-like-table/styled.d.ts +0 -1
  25. package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/filters/date-range-picker/PopupComponent.d.ts +1 -1
  26. package/dist/types-ts4.5/ui/issue-like-table/styled.d.ts +0 -1
  27. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/link-datasource
2
2
 
3
+ ## 3.15.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 3.15.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#177441](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/177441)
14
+ [`ad9c80eb0aa1f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ad9c80eb0aa1f) -
15
+ Internal changes to typography styles. There may be some minor visual changes to align with
16
+ modernized typography styles.
17
+ - Updated dependencies
18
+
3
19
  ## 3.15.0
4
20
 
5
21
  ### Minor Changes
@@ -7,11 +7,11 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.mapFetchErrors = exports.getStatusCodeGroup = exports.PermissionError = exports.FetchError = void 0;
8
8
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
9
9
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
10
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
11
10
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
12
11
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
12
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
13
13
  var _wrapNativeSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/wrapNativeSuper"));
14
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
14
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
15
15
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
16
16
  var mapFetchErrors = exports.mapFetchErrors = function mapFetchErrors(error) {
17
17
  if (error instanceof Response && !error.ok) {
@@ -38,27 +38,25 @@ var getStatusCodeGroup = exports.getStatusCodeGroup = function getStatusCodeGrou
38
38
  return 'unknown';
39
39
  };
40
40
  var PermissionError = exports.PermissionError = /*#__PURE__*/function (_Error) {
41
- (0, _inherits2.default)(PermissionError, _Error);
42
- var _super = _createSuper(PermissionError);
43
41
  function PermissionError(message) {
44
42
  var _this;
45
43
  (0, _classCallCheck2.default)(this, PermissionError);
46
- _this = _super.call(this, message);
44
+ _this = _callSuper(this, PermissionError, [message]);
47
45
  _this.name = 'PermissionError';
48
46
  return _this;
49
47
  }
48
+ (0, _inherits2.default)(PermissionError, _Error);
50
49
  return (0, _createClass2.default)(PermissionError);
51
50
  }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
52
51
  var FetchError = exports.FetchError = /*#__PURE__*/function (_Error2) {
53
- (0, _inherits2.default)(FetchError, _Error2);
54
- var _super2 = _createSuper(FetchError);
55
52
  function FetchError(statusCode, message) {
56
53
  var _this2;
57
54
  (0, _classCallCheck2.default)(this, FetchError);
58
- _this2 = _super2.call(this, message || "Fetch call failed with status code: ".concat(statusCode));
55
+ _this2 = _callSuper(this, FetchError, [message || "Fetch call failed with status code: ".concat(statusCode)]);
59
56
  _this2.name = 'FetchError';
60
57
  _this2.statusCode = statusCode;
61
58
  return _this2;
62
59
  }
60
+ (0, _inherits2.default)(FetchError, _Error2);
63
61
  return (0, _createClass2.default)(FetchError);
64
62
  }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
@@ -8,11 +8,10 @@ exports.default = exports.DATETIME_TYPE_TEST_ID = void 0;
8
8
  exports.getFormattedDate = getFormattedDate;
9
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
10
  var _react = _interopRequireDefault(require("react"));
11
- var _styled = _interopRequireDefault(require("@emotion/styled"));
12
11
  var _reactIntlNext = require("react-intl-next");
13
- var _styled2 = require("../../styled");
12
+ var _compiled = require("@atlaskit/primitives/compiled");
14
13
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
15
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
14
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
16
15
  var DATETIME_TYPE_TEST_ID = exports.DATETIME_TYPE_TEST_ID = 'link-datasource-render-type--datetime';
17
16
  var dateOptions = {
18
17
  month: 'short',
@@ -24,12 +23,6 @@ var timeOptions = {
24
23
  hour: '2-digit',
25
24
  minute: '2-digit'
26
25
  };
27
-
28
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
29
- var DateTimeWrapper = _styled.default.span({
30
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
31
- fontSize: _styled2.fieldTextFontSize
32
- });
33
26
  function getFormattedDate(value) {
34
27
  var display = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'datetime';
35
28
  var formatDate = arguments.length > 2 ? arguments[2] : undefined;
@@ -61,8 +54,8 @@ var DateTimeRenderType = function DateTimeRenderType(_ref) {
61
54
  if (formattedString === '') {
62
55
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
63
56
  }
64
- return /*#__PURE__*/_react.default.createElement(DateTimeWrapper, {
65
- "data-testid": testId
57
+ return /*#__PURE__*/_react.default.createElement(_compiled.Text, {
58
+ testId: testId
66
59
  }, formattedString);
67
60
  };
68
61
  var _default = exports.default = DateTimeRenderType;
@@ -12,17 +12,16 @@ var _smartCard = require("@atlaskit/smart-card");
12
12
  var _hoverCard = require("@atlaskit/smart-card/hover-card");
13
13
  var _linkUrl = _interopRequireDefault(require("@atlaskit/smart-card/link-url"));
14
14
  var _colors = require("@atlaskit/theme/colors");
15
- var _typography = require("@atlaskit/theme/typography");
16
- var _styled = require("../../styled");
17
15
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
18
16
  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 && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
19
17
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
20
18
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
21
19
  var linkStyles = {
22
- key: _objectSpread(_objectSpread({}, (0, _typography.h300)()), {}, {
20
+ key: {
21
+ fontWeight: "var(--ds-font-weight-semibold, 600)",
23
22
  color: "var(--ds-text-subtlest, ".concat(_colors.N300, ")"),
24
- fontWeight: 600
25
- }),
23
+ marginTop: "var(--ds-space-250, 20px)"
24
+ },
26
25
  default: {}
27
26
  };
28
27
  var LINK_TYPE_TEST_ID = exports.LINK_TYPE_TEST_ID = 'link-datasource-render-type--link';
@@ -40,11 +39,11 @@ var LinkRenderType = function LinkRenderType(_ref) {
40
39
  url: url
41
40
  }, /*#__PURE__*/_react.default.createElement(_linkUrl.default, {
42
41
  href: url
42
+ // NOTE: This will no longer apply styles to `@atlaskit/link` when platform_editor_hyperlink_underline is enabled.
43
+ // Wrap `@atlaskit/link` in a Text component to provide font styles to Link
43
44
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
44
45
  ,
45
- style: _objectSpread(_objectSpread({}, linkStyle), {}, {
46
- fontSize: _styled.fieldTextFontSize
47
- }),
46
+ style: _objectSpread({}, linkStyle),
48
47
  "data-testid": testId,
49
48
  target: "_blank"
50
49
  }, text || url));
@@ -6,17 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = exports.TEXT_TYPE_TEST_ID = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
- var _styled = _interopRequireDefault(require("@emotion/styled"));
10
- var _styled2 = require("../../styled");
11
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
-
9
+ var _primitives = require("@atlaskit/primitives");
13
10
  var TEXT_TYPE_TEST_ID = exports.TEXT_TYPE_TEST_ID = 'link-datasource-render-type--text';
14
-
15
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
16
- var TextWrapper = _styled.default.span({
17
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
18
- fontSize: _styled2.fieldTextFontSize
19
- });
20
11
  var TextRenderType = function TextRenderType(_ref) {
21
12
  var text = _ref.text,
22
13
  _ref$testId = _ref.testId,
@@ -24,8 +15,8 @@ var TextRenderType = function TextRenderType(_ref) {
24
15
  if (!(text && typeof text === 'string')) {
25
16
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
26
17
  }
27
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(TextWrapper, {
28
- "data-testid": testId
18
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_primitives.Text, {
19
+ testId: testId
29
20
  }, text), /*#__PURE__*/_react.default.createElement("br", null));
30
21
  };
31
22
  var _default = exports.default = TextRenderType;
@@ -16,7 +16,6 @@ var _avatarGroup = _interopRequireDefault(require("@atlaskit/avatar-group"));
16
16
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
17
  var _primitives = require("@atlaskit/primitives");
18
18
  var _widthDetector = require("@atlaskit/width-detector");
19
- var _styled2 = require("../../styled");
20
19
  var _messages = require("./messages");
21
20
  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); }
22
21
  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 && {}.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; }
@@ -32,8 +31,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
32
31
  var userWrapperStyles = (0, _primitives.xcss)({
33
32
  display: 'flex',
34
33
  alignItems: 'center',
35
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
36
- fontSize: "".concat(_styled2.fieldTextFontSize, "px")
34
+ font: 'font.body'
37
35
  });
38
36
  var avatarWrapperStyles = (0, _primitives.xcss)({
39
37
  marginRight: 'space.100'
@@ -4,14 +4,13 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.withTablePluginPrefix = exports.withTablePluginHeaderPrefix = exports.withTablePluginBodyPrefix = exports.fieldTextFontSize = exports.TableHeading = exports.TableCell = exports.Table = exports.ScrollableContainerHeight = exports.InlineEditableTableCell = void 0;
7
+ exports.withTablePluginPrefix = exports.withTablePluginHeaderPrefix = exports.withTablePluginBodyPrefix = exports.TableHeading = exports.TableCell = exports.Table = exports.ScrollableContainerHeight = exports.InlineEditableTableCell = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _styled = _interopRequireDefault(require("@emotion/styled"));
10
10
  var _colors = require("@atlaskit/theme/colors");
11
- var _typography = require("@atlaskit/theme/typography");
12
- var _styled$th, _styled$td, _styled$td2; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
+
13
13
  var ScrollableContainerHeight = exports.ScrollableContainerHeight = 590;
14
- var fieldTextFontSize = exports.fieldTextFontSize = "var(--ds-font-body, ".concat(_typography.fontFallback.body.medium, ")");
15
14
 
16
15
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
17
16
  var Table = exports.Table = _styled.default.table({
@@ -34,7 +33,7 @@ var withTablePluginHeaderPrefix = exports.withTablePluginHeaderPrefix = withTabl
34
33
  var withTablePluginBodyPrefix = exports.withTablePluginBodyPrefix = withTablePluginPrefix.bind(null, 'tbody');
35
34
 
36
35
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
37
- var TableHeading = exports.TableHeading = _styled.default.th((_styled$th = {}, (0, _defineProperty2.default)(_styled$th, "".concat(withTablePluginHeaderPrefix()), {
36
+ var TableHeading = exports.TableHeading = _styled.default.th((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(withTablePluginHeaderPrefix()), {
38
37
  border: 0,
39
38
  position: 'relative',
40
39
  /* This makes resizing work with out jumping due to padding + changes overall width for same default values. */
@@ -53,13 +52,13 @@ var TableHeading = exports.TableHeading = _styled.default.th((_styled$th = {}, (
53
52
  height: "calc(".concat(lineHeight, " * 2 + ").concat(verticalPadding, " * 4 + 2px)"),
54
53
  verticalAlign: 'bottom',
55
54
  backgroundColor: "var(--ds-elevation-surface-current, #FFF)"
56
- }), (0, _defineProperty2.default)(_styled$th, "".concat(withTablePluginPrefix('', 'thead.has-column-picker &:nth-last-of-type(2)')), {
55
+ }), "".concat(withTablePluginPrefix('', 'thead.has-column-picker &:nth-last-of-type(2)')), {
57
56
  borderRight: 0
58
- }), (0, _defineProperty2.default)(_styled$th, "".concat(withTablePluginHeaderPrefix('&:first-child')), {
57
+ }), "".concat(withTablePluginHeaderPrefix('&:first-child')), {
59
58
  paddingLeft: "var(--ds-space-050, 4px)"
60
- }), (0, _defineProperty2.default)(_styled$th, "".concat(withTablePluginHeaderPrefix('&:last-child')), {
59
+ }), "".concat(withTablePluginHeaderPrefix('&:last-child')), {
61
60
  borderRight: 0
62
- }), (0, _defineProperty2.default)(_styled$th, "& [data-testid='datasource-header-content--container']", {
61
+ }), "& [data-testid='datasource-header-content--container']", {
63
62
  width: '100%',
64
63
  /* With Button now being a parent for this component it adds its lineHeight value and spoils
65
64
  `height` calculation above. */
@@ -71,13 +70,12 @@ var TableHeading = exports.TableHeading = _styled.default.th((_styled$th = {}, (
71
70
  whiteSpace: 'normal',
72
71
  overflow: 'hidden',
73
72
  wordWrap: 'break-word'
74
- }), _styled$th));
73
+ }));
75
74
 
76
75
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
77
- var TableCell = exports.TableCell = _styled.default.td((_styled$td = {}, (0, _defineProperty2.default)(_styled$td, "".concat(withTablePluginBodyPrefix()), {
76
+ var TableCell = exports.TableCell = _styled.default.td((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(withTablePluginBodyPrefix()), {
78
77
  /* First section here is to override things editor table plugin css defines */
79
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
80
- font: fieldTextFontSize,
78
+ font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
81
79
  padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-100, 8px)"),
82
80
  border: 0,
83
81
  minWidth: 'auto',
@@ -88,20 +86,19 @@ var TableCell = exports.TableCell = _styled.default.td((_styled$td = {}, (0, _de
88
86
  borderRight: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, ".concat(_colors.N40, ")")),
89
87
  borderBottom: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, ".concat(_colors.N40, ")")),
90
88
  overflow: 'hidden'
91
- }), (0, _defineProperty2.default)(_styled$td, "".concat(withTablePluginBodyPrefix('&:first-child')), {
89
+ }), "".concat(withTablePluginBodyPrefix('&:first-child')), {
92
90
  paddingLeft: "var(--ds-space-100, 8px)"
93
- }), (0, _defineProperty2.default)(_styled$td, "".concat(withTablePluginBodyPrefix('&:last-child')), {
91
+ }), "".concat(withTablePluginBodyPrefix('&:last-child')), {
94
92
  borderRight: 0,
95
93
  paddingRight: "var(--ds-space-100, 8px)"
96
- }), (0, _defineProperty2.default)(_styled$td, "& [data-testid='inline-card-icon-and-title'], " + "& [data-testid='button-connect-account'] > span", {
94
+ }), "& [data-testid='inline-card-icon-and-title'], " + "& [data-testid='button-connect-account'] > span", {
97
95
  whiteSpace: 'unset'
98
- }), _styled$td));
96
+ }));
99
97
 
100
98
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- To migrate as part of go/ui-styling-standard
101
- var InlineEditableTableCell = exports.InlineEditableTableCell = _styled.default.td((_styled$td2 = {}, (0, _defineProperty2.default)(_styled$td2, "".concat(withTablePluginBodyPrefix()), {
99
+ var InlineEditableTableCell = exports.InlineEditableTableCell = _styled.default.td((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(withTablePluginBodyPrefix()), {
102
100
  /* First section here is to override things editor table plugin css defines */
103
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
104
- font: fieldTextFontSize,
101
+ font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
105
102
  padding: "var(--ds-space-0, 0)".concat(" ", "var(--ds-space-0, 0)"),
106
103
  border: 0,
107
104
  minWidth: 'auto',
@@ -110,8 +107,8 @@ var InlineEditableTableCell = exports.InlineEditableTableCell = _styled.default.
110
107
  boxSizing: 'content-box',
111
108
  borderRight: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, ".concat(_colors.N40, ")")),
112
109
  borderBottom: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, ".concat(_colors.N40, ")"))
113
- }), (0, _defineProperty2.default)(_styled$td2, "".concat(withTablePluginBodyPrefix('&:last-child')), {
110
+ }), "".concat(withTablePluginBodyPrefix('&:last-child')), {
114
111
  borderRight: 0
115
- }), (0, _defineProperty2.default)(_styled$td2, "& [data-testid='inline-card-icon-and-title'], " + "& [data-testid='button-connect-account'] > span", {
112
+ }), "& [data-testid='inline-card-icon-and-title'], " + "& [data-testid='button-connect-account'] > span", {
116
113
  whiteSpace: 'unset'
117
- }), _styled$td2));
114
+ }));
@@ -7,15 +7,14 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.extractValuesFromNonComplexJQL = void 0;
8
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
- var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
11
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
12
10
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
13
11
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
12
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
14
13
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
15
14
  var _mergeWith = _interopRequireDefault(require("lodash/mergeWith"));
16
15
  var _jqlAst = require("@atlaskit/jql-ast");
17
16
  var _isQueryTooComplex = require("./isQueryTooComplex");
18
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
17
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
19
18
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
20
19
  // Map of field keys to their respective clauses in the Jast
21
20
 
@@ -49,13 +48,11 @@ var getFieldValues = function getFieldValues(operand) {
49
48
  * class and implement visitField to walk through each field and value.
50
49
  * */
51
50
  var JqlClauseCollectingVisitor = /*#__PURE__*/function (_AbstractJastVisitor) {
52
- (0, _inherits2.default)(JqlClauseCollectingVisitor, _AbstractJastVisitor);
53
- var _super = _createSuper(JqlClauseCollectingVisitor);
54
51
  function JqlClauseCollectingVisitor() {
55
52
  var _this;
56
53
  (0, _classCallCheck2.default)(this, JqlClauseCollectingVisitor);
57
- _this = _super.call(this);
58
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "visitField", function (field) {
54
+ _this = _callSuper(this, JqlClauseCollectingVisitor);
55
+ (0, _defineProperty2.default)(_this, "visitField", function (field) {
59
56
  var _field$value;
60
57
  var fieldName = (_field$value = field.value) === null || _field$value === void 0 ? void 0 : _field$value.toLowerCase();
61
58
  var fieldParent = field.parent;
@@ -74,7 +71,8 @@ var JqlClauseCollectingVisitor = /*#__PURE__*/function (_AbstractJastVisitor) {
74
71
  });
75
72
  return _this;
76
73
  }
77
- (0, _createClass2.default)(JqlClauseCollectingVisitor, [{
74
+ (0, _inherits2.default)(JqlClauseCollectingVisitor, _AbstractJastVisitor);
75
+ return (0, _createClass2.default)(JqlClauseCollectingVisitor, [{
78
76
  key: "aggregateResult",
79
77
  value: function aggregateResult(aggregate, nextResult) {
80
78
  return (0, _mergeWith.default)(aggregate, nextResult, function (destValue, srcValue) {
@@ -87,7 +85,6 @@ var JqlClauseCollectingVisitor = /*#__PURE__*/function (_AbstractJastVisitor) {
87
85
  return {};
88
86
  }
89
87
  }]);
90
- return JqlClauseCollectingVisitor;
91
88
  }(_jqlAst.AbstractJastVisitor);
92
89
  var extractValuesFromNonComplexJQL = exports.extractValuesFromNonComplexJQL = function extractValuesFromNonComplexJQL(jql) {
93
90
  if ((0, _isQueryTooComplex.isQueryTooComplex)(jql)) {
@@ -6,20 +6,19 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.isQueryTooComplex = void 0;
8
8
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
9
- var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
10
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
10
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
12
11
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
13
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
14
12
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
15
13
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
14
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
16
15
  var _wrapNativeSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/wrapNativeSuper"));
17
16
  var _mergeWith = _interopRequireDefault(require("lodash/mergeWith"));
18
17
  var _jqlAst = require("@atlaskit/jql-ast");
19
18
  var _jiraSearchContainer = require("../../jira-search-container");
20
19
  var _isClauseTooComplex = require("./isClauseTooComplex");
21
20
  var _index = require("./index");
22
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
21
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
23
22
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
24
23
  // Map of field keys to their respective clauses in the Jast
25
24
 
@@ -39,12 +38,11 @@ var fieldSpecificOperators = {
39
38
  assignee: [_jqlAst.OPERATOR_IN, _jqlAst.OPERATOR_EQUALS]
40
39
  };
41
40
  var JqlClauseCollectingVisitorError = /*#__PURE__*/function (_Error) {
42
- (0, _inherits2.default)(JqlClauseCollectingVisitorError, _Error);
43
- var _super = _createSuper(JqlClauseCollectingVisitorError);
44
41
  function JqlClauseCollectingVisitorError() {
45
42
  (0, _classCallCheck2.default)(this, JqlClauseCollectingVisitorError);
46
- return _super.apply(this, arguments);
43
+ return _callSuper(this, JqlClauseCollectingVisitorError, arguments);
47
44
  }
45
+ (0, _inherits2.default)(JqlClauseCollectingVisitorError, _Error);
48
46
  return (0, _createClass2.default)(JqlClauseCollectingVisitorError);
49
47
  }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
50
48
  /**
@@ -54,16 +52,14 @@ var JqlClauseCollectingVisitorError = /*#__PURE__*/function (_Error) {
54
52
  * more info - https://atlaskit.atlassian.com/packages/jql/jql-ast/docs/traversing-the-ast
55
53
  * */
56
54
  var JqlClauseCollectingVisitor = /*#__PURE__*/function (_AbstractJastVisitor) {
57
- (0, _inherits2.default)(JqlClauseCollectingVisitor, _AbstractJastVisitor);
58
- var _super2 = _createSuper(JqlClauseCollectingVisitor);
59
55
  function JqlClauseCollectingVisitor() {
60
56
  var _this;
61
57
  (0, _classCallCheck2.default)(this, JqlClauseCollectingVisitor);
62
- _this = _super2.call(this);
63
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "visitNotClause", function () {
58
+ _this = _callSuper(this, JqlClauseCollectingVisitor);
59
+ (0, _defineProperty2.default)(_this, "visitNotClause", function () {
64
60
  throw new JqlClauseCollectingVisitorError('Visited an unsupported node while traversing the AST');
65
61
  });
66
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "visitOrderByField", function (orderByField) {
62
+ (0, _defineProperty2.default)(_this, "visitOrderByField", function (orderByField) {
67
63
  var _orderByField$field$v;
68
64
  var fieldValue = (_orderByField$field$v = orderByField.field.value) === null || _orderByField$field$v === void 0 ? void 0 : _orderByField$field$v.toLowerCase();
69
65
  if (fieldValue && !_jiraSearchContainer.ALLOWED_ORDER_BY_KEYS.includes(fieldValue)) {
@@ -71,12 +67,12 @@ var JqlClauseCollectingVisitor = /*#__PURE__*/function (_AbstractJastVisitor) {
71
67
  }
72
68
  return {};
73
69
  });
74
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "visitCompoundClause", function (compoundClause) {
70
+ (0, _defineProperty2.default)(_this, "visitCompoundClause", function (compoundClause) {
75
71
  var clauseMap = {};
76
72
  var operator = compoundClause.operator.value;
77
73
  if (operator === _jqlAst.COMPOUND_OPERATOR_AND) {
78
74
  return compoundClause.clauses.reduce(function (result, clause) {
79
- return _this.aggregateResult(clause.accept((0, _assertThisInitialized2.default)(_this)), result);
75
+ return _this.aggregateResult(clause.accept(_this), result);
80
76
  }, clauseMap);
81
77
  }
82
78
  if (operator === _jqlAst.COMPOUND_OPERATOR_OR) {
@@ -87,7 +83,7 @@ var JqlClauseCollectingVisitor = /*#__PURE__*/function (_AbstractJastVisitor) {
87
83
  }
88
84
  throw new JqlClauseCollectingVisitorError("Compound clauses using the operator '".concat(operator, "' is not supported"));
89
85
  });
90
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "visitTerminalClause", function (terminalClause) {
86
+ (0, _defineProperty2.default)(_this, "visitTerminalClause", function (terminalClause) {
91
87
  var _terminalClause$opera;
92
88
  var fieldName = terminalClause.field.value.toLowerCase();
93
89
  if (!allowedFields.includes(fieldName)) {
@@ -102,7 +98,8 @@ var JqlClauseCollectingVisitor = /*#__PURE__*/function (_AbstractJastVisitor) {
102
98
  });
103
99
  return _this;
104
100
  }
105
- (0, _createClass2.default)(JqlClauseCollectingVisitor, [{
101
+ (0, _inherits2.default)(JqlClauseCollectingVisitor, _AbstractJastVisitor);
102
+ return (0, _createClass2.default)(JqlClauseCollectingVisitor, [{
106
103
  key: "aggregateResult",
107
104
  value: function aggregateResult(aggregate, nextResult) {
108
105
  return (0, _mergeWith.default)(aggregate, nextResult, function (destValue, srcValue) {
@@ -115,7 +112,6 @@ var JqlClauseCollectingVisitor = /*#__PURE__*/function (_AbstractJastVisitor) {
115
112
  return {};
116
113
  }
117
114
  }]);
118
- return JqlClauseCollectingVisitor;
119
115
  }(_jqlAst.AbstractJastVisitor);
120
116
  var isQueryTooComplex = exports.isQueryTooComplex = function isQueryTooComplex(jql) {
121
117
  if (!jql) {
@@ -1,9 +1,6 @@
1
1
  import React from 'react';
2
-
3
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
- import styled from '@emotion/styled';
5
2
  import { useIntl } from 'react-intl-next';
6
- import { fieldTextFontSize } from '../../styled';
3
+ import { Text } from '@atlaskit/primitives/compiled';
7
4
  export const DATETIME_TYPE_TEST_ID = 'link-datasource-render-type--datetime';
8
5
  const dateOptions = {
9
6
  month: 'short',
@@ -15,12 +12,6 @@ const timeOptions = {
15
12
  hour: '2-digit',
16
13
  minute: '2-digit'
17
14
  };
18
-
19
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
20
- const DateTimeWrapper = styled.span({
21
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
22
- fontSize: fieldTextFontSize
23
- });
24
15
  export function getFormattedDate(value, display = 'datetime', formatDate) {
25
16
  /* In some cases we get a value of `2023-12-20` which when parsed by JS assumes meantime timezone, causing the date
26
17
  to be one day off in some timezones. We want it to display the date without converting timezones and a solution
@@ -52,8 +43,8 @@ const DateTimeRenderType = ({
52
43
  if (formattedString === '') {
53
44
  return /*#__PURE__*/React.createElement(React.Fragment, null);
54
45
  }
55
- return /*#__PURE__*/React.createElement(DateTimeWrapper, {
56
- "data-testid": testId
46
+ return /*#__PURE__*/React.createElement(Text, {
47
+ testId: testId
57
48
  }, formattedString);
58
49
  };
59
50
  export default DateTimeRenderType;
@@ -3,13 +3,11 @@ import { Card } from '@atlaskit/smart-card';
3
3
  import { HoverCard } from '@atlaskit/smart-card/hover-card';
4
4
  import LinkUrl from '@atlaskit/smart-card/link-url';
5
5
  import { N300 } from '@atlaskit/theme/colors';
6
- import { h300 } from '@atlaskit/theme/typography';
7
- import { fieldTextFontSize } from '../../styled';
8
6
  const linkStyles = {
9
7
  key: {
10
- ...h300(),
8
+ fontWeight: "var(--ds-font-weight-semibold, 600)",
11
9
  color: `var(--ds-text-subtlest, ${N300})`,
12
- fontWeight: 600
10
+ marginTop: "var(--ds-space-250, 20px)"
13
11
  },
14
12
  default: {}
15
13
  };
@@ -27,11 +25,12 @@ const LinkRenderType = ({
27
25
  url: url
28
26
  }, /*#__PURE__*/React.createElement(LinkUrl, {
29
27
  href: url
28
+ // NOTE: This will no longer apply styles to `@atlaskit/link` when platform_editor_hyperlink_underline is enabled.
29
+ // Wrap `@atlaskit/link` in a Text component to provide font styles to Link
30
30
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
31
31
  ,
32
32
  style: {
33
- ...linkStyle,
34
- fontSize: fieldTextFontSize
33
+ ...linkStyle
35
34
  },
36
35
  "data-testid": testId,
37
36
  target: "_blank"
@@ -1,15 +1,6 @@
1
1
  import React from 'react';
2
-
3
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
- import styled from '@emotion/styled';
5
- import { fieldTextFontSize } from '../../styled';
2
+ import { Text } from '@atlaskit/primitives';
6
3
  export const TEXT_TYPE_TEST_ID = 'link-datasource-render-type--text';
7
-
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
9
- const TextWrapper = styled.span({
10
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
11
- fontSize: fieldTextFontSize
12
- });
13
4
  const TextRenderType = ({
14
5
  text,
15
6
  testId = TEXT_TYPE_TEST_ID
@@ -17,8 +8,8 @@ const TextRenderType = ({
17
8
  if (!(text && typeof text === 'string')) {
18
9
  return /*#__PURE__*/React.createElement(React.Fragment, null);
19
10
  }
20
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TextWrapper, {
21
- "data-testid": testId
11
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Text, {
12
+ testId: testId
22
13
  }, text), /*#__PURE__*/React.createElement("br", null));
23
14
  };
24
15
  export default TextRenderType;
@@ -14,13 +14,11 @@ import AvatarGroup from '@atlaskit/avatar-group';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import { Box, xcss } from '@atlaskit/primitives';
16
16
  import { WidthObserver } from '@atlaskit/width-detector';
17
- import { fieldTextFontSize } from '../../styled';
18
17
  import { userTypeMessages } from './messages';
19
18
  const userWrapperStyles = xcss({
20
19
  display: 'flex',
21
20
  alignItems: 'center',
22
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
23
- fontSize: `${fieldTextFontSize}px`
21
+ font: 'font.body'
24
22
  });
25
23
  const avatarWrapperStyles = xcss({
26
24
  marginRight: 'space.100'
@@ -1,9 +1,7 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import styled from '@emotion/styled';
3
3
  import { N40 } from '@atlaskit/theme/colors';
4
- import { fontFallback } from '@atlaskit/theme/typography';
5
4
  export const ScrollableContainerHeight = 590;
6
- export const fieldTextFontSize = `var(--ds-font-body, ${fontFallback.body.medium})`;
7
5
 
8
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
9
7
  export const Table = styled.table({
@@ -82,8 +80,7 @@ export const TableCell = styled.td({
82
80
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
83
81
  [`${withTablePluginBodyPrefix()}`]: {
84
82
  /* First section here is to override things editor table plugin css defines */
85
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
86
- font: fieldTextFontSize,
83
+ font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
87
84
  padding: `${"var(--ds-space-050, 4px)"} ${"var(--ds-space-100, 8px)"}`,
88
85
  border: 0,
89
86
  minWidth: 'auto',
@@ -117,8 +114,7 @@ export const InlineEditableTableCell = styled.td({
117
114
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
118
115
  [`${withTablePluginBodyPrefix()}`]: {
119
116
  /* First section here is to override things editor table plugin css defines */
120
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
121
- font: fieldTextFontSize,
117
+ font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
122
118
  padding: `${"var(--ds-space-0, 0)"} ${"var(--ds-space-0, 0)"}`,
123
119
  border: 0,
124
120
  minWidth: 'auto',
@@ -1,10 +1,10 @@
1
1
  import _createClass from "@babel/runtime/helpers/createClass";
2
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
- import _inherits from "@babel/runtime/helpers/inherits";
4
3
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
4
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
5
+ import _inherits from "@babel/runtime/helpers/inherits";
6
6
  import _wrapNativeSuper from "@babel/runtime/helpers/wrapNativeSuper";
7
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
7
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
8
8
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
9
9
  export var mapFetchErrors = function mapFetchErrors(error) {
10
10
  if (error instanceof Response && !error.ok) {
@@ -31,27 +31,25 @@ export var getStatusCodeGroup = function getStatusCodeGroup(error) {
31
31
  return 'unknown';
32
32
  };
33
33
  export var PermissionError = /*#__PURE__*/function (_Error) {
34
- _inherits(PermissionError, _Error);
35
- var _super = _createSuper(PermissionError);
36
34
  function PermissionError(message) {
37
35
  var _this;
38
36
  _classCallCheck(this, PermissionError);
39
- _this = _super.call(this, message);
37
+ _this = _callSuper(this, PermissionError, [message]);
40
38
  _this.name = 'PermissionError';
41
39
  return _this;
42
40
  }
41
+ _inherits(PermissionError, _Error);
43
42
  return _createClass(PermissionError);
44
43
  }( /*#__PURE__*/_wrapNativeSuper(Error));
45
44
  export var FetchError = /*#__PURE__*/function (_Error2) {
46
- _inherits(FetchError, _Error2);
47
- var _super2 = _createSuper(FetchError);
48
45
  function FetchError(statusCode, message) {
49
46
  var _this2;
50
47
  _classCallCheck(this, FetchError);
51
- _this2 = _super2.call(this, message || "Fetch call failed with status code: ".concat(statusCode));
48
+ _this2 = _callSuper(this, FetchError, [message || "Fetch call failed with status code: ".concat(statusCode)]);
52
49
  _this2.name = 'FetchError';
53
50
  _this2.statusCode = statusCode;
54
51
  return _this2;
55
52
  }
53
+ _inherits(FetchError, _Error2);
56
54
  return _createClass(FetchError);
57
55
  }( /*#__PURE__*/_wrapNativeSuper(Error));
@@ -2,11 +2,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  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; }
4
4
  import React from 'react';
5
-
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
- import styled from '@emotion/styled';
8
5
  import { useIntl } from 'react-intl-next';
9
- import { fieldTextFontSize } from '../../styled';
6
+ import { Text } from '@atlaskit/primitives/compiled';
10
7
  export var DATETIME_TYPE_TEST_ID = 'link-datasource-render-type--datetime';
11
8
  var dateOptions = {
12
9
  month: 'short',
@@ -18,12 +15,6 @@ var timeOptions = {
18
15
  hour: '2-digit',
19
16
  minute: '2-digit'
20
17
  };
21
-
22
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
23
- var DateTimeWrapper = styled.span({
24
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
25
- fontSize: fieldTextFontSize
26
- });
27
18
  export function getFormattedDate(value) {
28
19
  var display = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'datetime';
29
20
  var formatDate = arguments.length > 2 ? arguments[2] : undefined;
@@ -55,8 +46,8 @@ var DateTimeRenderType = function DateTimeRenderType(_ref) {
55
46
  if (formattedString === '') {
56
47
  return /*#__PURE__*/React.createElement(React.Fragment, null);
57
48
  }
58
- return /*#__PURE__*/React.createElement(DateTimeWrapper, {
59
- "data-testid": testId
49
+ return /*#__PURE__*/React.createElement(Text, {
50
+ testId: testId
60
51
  }, formattedString);
61
52
  };
62
53
  export default DateTimeRenderType;
@@ -6,13 +6,12 @@ import { Card } from '@atlaskit/smart-card';
6
6
  import { HoverCard } from '@atlaskit/smart-card/hover-card';
7
7
  import LinkUrl from '@atlaskit/smart-card/link-url';
8
8
  import { N300 } from '@atlaskit/theme/colors';
9
- import { h300 } from '@atlaskit/theme/typography';
10
- import { fieldTextFontSize } from '../../styled';
11
9
  var linkStyles = {
12
- key: _objectSpread(_objectSpread({}, h300()), {}, {
10
+ key: {
11
+ fontWeight: "var(--ds-font-weight-semibold, 600)",
13
12
  color: "var(--ds-text-subtlest, ".concat(N300, ")"),
14
- fontWeight: 600
15
- }),
13
+ marginTop: "var(--ds-space-250, 20px)"
14
+ },
16
15
  default: {}
17
16
  };
18
17
  export var LINK_TYPE_TEST_ID = 'link-datasource-render-type--link';
@@ -30,11 +29,11 @@ var LinkRenderType = function LinkRenderType(_ref) {
30
29
  url: url
31
30
  }, /*#__PURE__*/React.createElement(LinkUrl, {
32
31
  href: url
32
+ // NOTE: This will no longer apply styles to `@atlaskit/link` when platform_editor_hyperlink_underline is enabled.
33
+ // Wrap `@atlaskit/link` in a Text component to provide font styles to Link
33
34
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
34
35
  ,
35
- style: _objectSpread(_objectSpread({}, linkStyle), {}, {
36
- fontSize: fieldTextFontSize
37
- }),
36
+ style: _objectSpread({}, linkStyle),
38
37
  "data-testid": testId,
39
38
  target: "_blank"
40
39
  }, text || url));
@@ -1,15 +1,6 @@
1
1
  import React from 'react';
2
-
3
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
- import styled from '@emotion/styled';
5
- import { fieldTextFontSize } from '../../styled';
2
+ import { Text } from '@atlaskit/primitives';
6
3
  export var TEXT_TYPE_TEST_ID = 'link-datasource-render-type--text';
7
-
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
9
- var TextWrapper = styled.span({
10
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
11
- fontSize: fieldTextFontSize
12
- });
13
4
  var TextRenderType = function TextRenderType(_ref) {
14
5
  var text = _ref.text,
15
6
  _ref$testId = _ref.testId,
@@ -17,8 +8,8 @@ var TextRenderType = function TextRenderType(_ref) {
17
8
  if (!(text && typeof text === 'string')) {
18
9
  return /*#__PURE__*/React.createElement(React.Fragment, null);
19
10
  }
20
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TextWrapper, {
21
- "data-testid": testId
11
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Text, {
12
+ testId: testId
22
13
  }, text), /*#__PURE__*/React.createElement("br", null));
23
14
  };
24
15
  export default TextRenderType;
@@ -15,13 +15,11 @@ import AvatarGroup from '@atlaskit/avatar-group';
15
15
  import { fg } from '@atlaskit/platform-feature-flags';
16
16
  import { Box, xcss } from '@atlaskit/primitives';
17
17
  import { WidthObserver } from '@atlaskit/width-detector';
18
- import { fieldTextFontSize } from '../../styled';
19
18
  import { userTypeMessages } from './messages';
20
19
  var userWrapperStyles = xcss({
21
20
  display: 'flex',
22
21
  alignItems: 'center',
23
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
24
- fontSize: "".concat(fieldTextFontSize, "px")
22
+ font: 'font.body'
25
23
  });
26
24
  var avatarWrapperStyles = xcss({
27
25
  marginRight: 'space.100'
@@ -1,11 +1,8 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- var _styled$th, _styled$td, _styled$td2;
3
2
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
3
  import styled from '@emotion/styled';
5
4
  import { N40 } from '@atlaskit/theme/colors';
6
- import { fontFallback } from '@atlaskit/theme/typography';
7
5
  export var ScrollableContainerHeight = 590;
8
- export var fieldTextFontSize = "var(--ds-font-body, ".concat(fontFallback.body.medium, ")");
9
6
 
10
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
11
8
  export var Table = styled.table({
@@ -28,7 +25,7 @@ export var withTablePluginHeaderPrefix = withTablePluginPrefix.bind(null, 'thead
28
25
  export var withTablePluginBodyPrefix = withTablePluginPrefix.bind(null, 'tbody');
29
26
 
30
27
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
31
- export var TableHeading = styled.th((_styled$th = {}, _defineProperty(_styled$th, "".concat(withTablePluginHeaderPrefix()), {
28
+ export var TableHeading = styled.th(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(withTablePluginHeaderPrefix()), {
32
29
  border: 0,
33
30
  position: 'relative',
34
31
  /* This makes resizing work with out jumping due to padding + changes overall width for same default values. */
@@ -47,13 +44,13 @@ export var TableHeading = styled.th((_styled$th = {}, _defineProperty(_styled$th
47
44
  height: "calc(".concat(lineHeight, " * 2 + ").concat(verticalPadding, " * 4 + 2px)"),
48
45
  verticalAlign: 'bottom',
49
46
  backgroundColor: "var(--ds-elevation-surface-current, #FFF)"
50
- }), _defineProperty(_styled$th, "".concat(withTablePluginPrefix('', 'thead.has-column-picker &:nth-last-of-type(2)')), {
47
+ }), "".concat(withTablePluginPrefix('', 'thead.has-column-picker &:nth-last-of-type(2)')), {
51
48
  borderRight: 0
52
- }), _defineProperty(_styled$th, "".concat(withTablePluginHeaderPrefix('&:first-child')), {
49
+ }), "".concat(withTablePluginHeaderPrefix('&:first-child')), {
53
50
  paddingLeft: "var(--ds-space-050, 4px)"
54
- }), _defineProperty(_styled$th, "".concat(withTablePluginHeaderPrefix('&:last-child')), {
51
+ }), "".concat(withTablePluginHeaderPrefix('&:last-child')), {
55
52
  borderRight: 0
56
- }), _defineProperty(_styled$th, "& [data-testid='datasource-header-content--container']", {
53
+ }), "& [data-testid='datasource-header-content--container']", {
57
54
  width: '100%',
58
55
  /* With Button now being a parent for this component it adds its lineHeight value and spoils
59
56
  `height` calculation above. */
@@ -65,13 +62,12 @@ export var TableHeading = styled.th((_styled$th = {}, _defineProperty(_styled$th
65
62
  whiteSpace: 'normal',
66
63
  overflow: 'hidden',
67
64
  wordWrap: 'break-word'
68
- }), _styled$th));
65
+ }));
69
66
 
70
67
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
71
- export var TableCell = styled.td((_styled$td = {}, _defineProperty(_styled$td, "".concat(withTablePluginBodyPrefix()), {
68
+ export var TableCell = styled.td(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(withTablePluginBodyPrefix()), {
72
69
  /* First section here is to override things editor table plugin css defines */
73
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
74
- font: fieldTextFontSize,
70
+ font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
75
71
  padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-100, 8px)"),
76
72
  border: 0,
77
73
  minWidth: 'auto',
@@ -82,20 +78,19 @@ export var TableCell = styled.td((_styled$td = {}, _defineProperty(_styled$td, "
82
78
  borderRight: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, ".concat(N40, ")")),
83
79
  borderBottom: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, ".concat(N40, ")")),
84
80
  overflow: 'hidden'
85
- }), _defineProperty(_styled$td, "".concat(withTablePluginBodyPrefix('&:first-child')), {
81
+ }), "".concat(withTablePluginBodyPrefix('&:first-child')), {
86
82
  paddingLeft: "var(--ds-space-100, 8px)"
87
- }), _defineProperty(_styled$td, "".concat(withTablePluginBodyPrefix('&:last-child')), {
83
+ }), "".concat(withTablePluginBodyPrefix('&:last-child')), {
88
84
  borderRight: 0,
89
85
  paddingRight: "var(--ds-space-100, 8px)"
90
- }), _defineProperty(_styled$td, "& [data-testid='inline-card-icon-and-title'], " + "& [data-testid='button-connect-account'] > span", {
86
+ }), "& [data-testid='inline-card-icon-and-title'], " + "& [data-testid='button-connect-account'] > span", {
91
87
  whiteSpace: 'unset'
92
- }), _styled$td));
88
+ }));
93
89
 
94
90
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- To migrate as part of go/ui-styling-standard
95
- export var InlineEditableTableCell = styled.td((_styled$td2 = {}, _defineProperty(_styled$td2, "".concat(withTablePluginBodyPrefix()), {
91
+ export var InlineEditableTableCell = styled.td(_defineProperty(_defineProperty(_defineProperty({}, "".concat(withTablePluginBodyPrefix()), {
96
92
  /* First section here is to override things editor table plugin css defines */
97
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
98
- font: fieldTextFontSize,
93
+ font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
99
94
  padding: "var(--ds-space-0, 0)".concat(" ", "var(--ds-space-0, 0)"),
100
95
  border: 0,
101
96
  minWidth: 'auto',
@@ -104,8 +99,8 @@ export var InlineEditableTableCell = styled.td((_styled$td2 = {}, _definePropert
104
99
  boxSizing: 'content-box',
105
100
  borderRight: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, ".concat(N40, ")")),
106
101
  borderBottom: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, ".concat(N40, ")"))
107
- }), _defineProperty(_styled$td2, "".concat(withTablePluginBodyPrefix('&:last-child')), {
102
+ }), "".concat(withTablePluginBodyPrefix('&:last-child')), {
108
103
  borderRight: 0
109
- }), _defineProperty(_styled$td2, "& [data-testid='inline-card-icon-and-title'], " + "& [data-testid='button-connect-account'] > span", {
104
+ }), "& [data-testid='inline-card-icon-and-title'], " + "& [data-testid='button-connect-account'] > span", {
110
105
  whiteSpace: 'unset'
111
- }), _styled$td2));
106
+ }));
@@ -1,11 +1,10 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/createClass";
3
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
4
- import _inherits from "@babel/runtime/helpers/inherits";
5
3
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6
4
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
5
+ import _inherits from "@babel/runtime/helpers/inherits";
7
6
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
7
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
9
8
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
9
  import mergeWith from 'lodash/mergeWith';
11
10
  import { AbstractJastVisitor, JastBuilder, NODE_TYPE_ORDER_BY, OPERAND_EMPTY, OPERAND_TYPE_KEYWORD, OPERAND_TYPE_LIST, OPERAND_TYPE_VALUE } from '@atlaskit/jql-ast';
@@ -43,13 +42,11 @@ var getFieldValues = function getFieldValues(operand) {
43
42
  * class and implement visitField to walk through each field and value.
44
43
  * */
45
44
  var JqlClauseCollectingVisitor = /*#__PURE__*/function (_AbstractJastVisitor) {
46
- _inherits(JqlClauseCollectingVisitor, _AbstractJastVisitor);
47
- var _super = _createSuper(JqlClauseCollectingVisitor);
48
45
  function JqlClauseCollectingVisitor() {
49
46
  var _this;
50
47
  _classCallCheck(this, JqlClauseCollectingVisitor);
51
- _this = _super.call(this);
52
- _defineProperty(_assertThisInitialized(_this), "visitField", function (field) {
48
+ _this = _callSuper(this, JqlClauseCollectingVisitor);
49
+ _defineProperty(_this, "visitField", function (field) {
53
50
  var _field$value;
54
51
  var fieldName = (_field$value = field.value) === null || _field$value === void 0 ? void 0 : _field$value.toLowerCase();
55
52
  var fieldParent = field.parent;
@@ -68,7 +65,8 @@ var JqlClauseCollectingVisitor = /*#__PURE__*/function (_AbstractJastVisitor) {
68
65
  });
69
66
  return _this;
70
67
  }
71
- _createClass(JqlClauseCollectingVisitor, [{
68
+ _inherits(JqlClauseCollectingVisitor, _AbstractJastVisitor);
69
+ return _createClass(JqlClauseCollectingVisitor, [{
72
70
  key: "aggregateResult",
73
71
  value: function aggregateResult(aggregate, nextResult) {
74
72
  return mergeWith(aggregate, nextResult, function (destValue, srcValue) {
@@ -81,7 +79,6 @@ var JqlClauseCollectingVisitor = /*#__PURE__*/function (_AbstractJastVisitor) {
81
79
  return {};
82
80
  }
83
81
  }]);
84
- return JqlClauseCollectingVisitor;
85
82
  }(AbstractJastVisitor);
86
83
  export var extractValuesFromNonComplexJQL = function extractValuesFromNonComplexJQL(jql) {
87
84
  if (isQueryTooComplex(jql)) {
@@ -1,13 +1,12 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
3
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
3
  import _createClass from "@babel/runtime/helpers/createClass";
5
4
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
6
- import _inherits from "@babel/runtime/helpers/inherits";
7
5
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
8
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
+ import _inherits from "@babel/runtime/helpers/inherits";
9
8
  import _wrapNativeSuper from "@babel/runtime/helpers/wrapNativeSuper";
10
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
9
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
11
10
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
12
11
  import mergeWith from 'lodash/mergeWith';
13
12
  import { AbstractJastVisitor, COMPOUND_OPERATOR_AND, COMPOUND_OPERATOR_OR, JastBuilder, OPERATOR_EQUALS, OPERATOR_IN, OPERATOR_LIKE } from '@atlaskit/jql-ast';
@@ -33,12 +32,11 @@ var fieldSpecificOperators = {
33
32
  assignee: [OPERATOR_IN, OPERATOR_EQUALS]
34
33
  };
35
34
  var JqlClauseCollectingVisitorError = /*#__PURE__*/function (_Error) {
36
- _inherits(JqlClauseCollectingVisitorError, _Error);
37
- var _super = _createSuper(JqlClauseCollectingVisitorError);
38
35
  function JqlClauseCollectingVisitorError() {
39
36
  _classCallCheck(this, JqlClauseCollectingVisitorError);
40
- return _super.apply(this, arguments);
37
+ return _callSuper(this, JqlClauseCollectingVisitorError, arguments);
41
38
  }
39
+ _inherits(JqlClauseCollectingVisitorError, _Error);
42
40
  return _createClass(JqlClauseCollectingVisitorError);
43
41
  }( /*#__PURE__*/_wrapNativeSuper(Error));
44
42
  /**
@@ -48,16 +46,14 @@ var JqlClauseCollectingVisitorError = /*#__PURE__*/function (_Error) {
48
46
  * more info - https://atlaskit.atlassian.com/packages/jql/jql-ast/docs/traversing-the-ast
49
47
  * */
50
48
  var JqlClauseCollectingVisitor = /*#__PURE__*/function (_AbstractJastVisitor) {
51
- _inherits(JqlClauseCollectingVisitor, _AbstractJastVisitor);
52
- var _super2 = _createSuper(JqlClauseCollectingVisitor);
53
49
  function JqlClauseCollectingVisitor() {
54
50
  var _this;
55
51
  _classCallCheck(this, JqlClauseCollectingVisitor);
56
- _this = _super2.call(this);
57
- _defineProperty(_assertThisInitialized(_this), "visitNotClause", function () {
52
+ _this = _callSuper(this, JqlClauseCollectingVisitor);
53
+ _defineProperty(_this, "visitNotClause", function () {
58
54
  throw new JqlClauseCollectingVisitorError('Visited an unsupported node while traversing the AST');
59
55
  });
60
- _defineProperty(_assertThisInitialized(_this), "visitOrderByField", function (orderByField) {
56
+ _defineProperty(_this, "visitOrderByField", function (orderByField) {
61
57
  var _orderByField$field$v;
62
58
  var fieldValue = (_orderByField$field$v = orderByField.field.value) === null || _orderByField$field$v === void 0 ? void 0 : _orderByField$field$v.toLowerCase();
63
59
  if (fieldValue && !ALLOWED_ORDER_BY_KEYS.includes(fieldValue)) {
@@ -65,12 +61,12 @@ var JqlClauseCollectingVisitor = /*#__PURE__*/function (_AbstractJastVisitor) {
65
61
  }
66
62
  return {};
67
63
  });
68
- _defineProperty(_assertThisInitialized(_this), "visitCompoundClause", function (compoundClause) {
64
+ _defineProperty(_this, "visitCompoundClause", function (compoundClause) {
69
65
  var clauseMap = {};
70
66
  var operator = compoundClause.operator.value;
71
67
  if (operator === COMPOUND_OPERATOR_AND) {
72
68
  return compoundClause.clauses.reduce(function (result, clause) {
73
- return _this.aggregateResult(clause.accept(_assertThisInitialized(_this)), result);
69
+ return _this.aggregateResult(clause.accept(_this), result);
74
70
  }, clauseMap);
75
71
  }
76
72
  if (operator === COMPOUND_OPERATOR_OR) {
@@ -81,7 +77,7 @@ var JqlClauseCollectingVisitor = /*#__PURE__*/function (_AbstractJastVisitor) {
81
77
  }
82
78
  throw new JqlClauseCollectingVisitorError("Compound clauses using the operator '".concat(operator, "' is not supported"));
83
79
  });
84
- _defineProperty(_assertThisInitialized(_this), "visitTerminalClause", function (terminalClause) {
80
+ _defineProperty(_this, "visitTerminalClause", function (terminalClause) {
85
81
  var _terminalClause$opera;
86
82
  var fieldName = terminalClause.field.value.toLowerCase();
87
83
  if (!allowedFields.includes(fieldName)) {
@@ -96,7 +92,8 @@ var JqlClauseCollectingVisitor = /*#__PURE__*/function (_AbstractJastVisitor) {
96
92
  });
97
93
  return _this;
98
94
  }
99
- _createClass(JqlClauseCollectingVisitor, [{
95
+ _inherits(JqlClauseCollectingVisitor, _AbstractJastVisitor);
96
+ return _createClass(JqlClauseCollectingVisitor, [{
100
97
  key: "aggregateResult",
101
98
  value: function aggregateResult(aggregate, nextResult) {
102
99
  return mergeWith(aggregate, nextResult, function (destValue, srcValue) {
@@ -109,7 +106,6 @@ var JqlClauseCollectingVisitor = /*#__PURE__*/function (_AbstractJastVisitor) {
109
106
  return {};
110
107
  }
111
108
  }]);
112
- return JqlClauseCollectingVisitor;
113
109
  }(AbstractJastVisitor);
114
110
  export var isQueryTooComplex = function isQueryTooComplex(jql) {
115
111
  if (!jql) {
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import type { PopupComponentProps } from '@atlaskit/popup';
3
- export declare const PopupComponent: React.ForwardRefExoticComponent<Pick<PopupComponentProps, "id" | "children" | "style" | "appearance" | "data-testid" | "tabIndex" | "role" | "xcss" | "shouldFitContainer" | "shouldRenderToParent" | "data-placement"> & React.RefAttributes<HTMLDivElement>>;
3
+ export declare const PopupComponent: React.ForwardRefExoticComponent<Pick<PopupComponentProps, "id" | "children" | "style" | "xcss" | "data-testid" | "role" | "appearance" | "tabIndex" | "shouldFitContainer" | "shouldRenderToParent" | "data-placement"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  export declare const ScrollableContainerHeight = 590;
3
- export declare const fieldTextFontSize: "var(--ds-font-body)";
4
3
  export declare const Table: import("@emotion/styled").StyledComponent<{
5
4
  theme?: import("@emotion/react").Theme | undefined;
6
5
  as?: import("react").ElementType<any> | undefined;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import type { PopupComponentProps } from '@atlaskit/popup';
3
- export declare const PopupComponent: React.ForwardRefExoticComponent<Pick<PopupComponentProps, "id" | "children" | "style" | "appearance" | "data-testid" | "tabIndex" | "role" | "xcss" | "shouldFitContainer" | "shouldRenderToParent" | "data-placement"> & React.RefAttributes<HTMLDivElement>>;
3
+ export declare const PopupComponent: React.ForwardRefExoticComponent<Pick<PopupComponentProps, "id" | "children" | "style" | "xcss" | "data-testid" | "role" | "appearance" | "tabIndex" | "shouldFitContainer" | "shouldRenderToParent" | "data-placement"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  export declare const ScrollableContainerHeight = 590;
3
- export declare const fieldTextFontSize: "var(--ds-font-body)";
4
3
  export declare const Table: import("@emotion/styled").StyledComponent<{
5
4
  theme?: import("@emotion/react").Theme | undefined;
6
5
  as?: import("react").ElementType<any> | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "3.15.0",
3
+ "version": "3.15.2",
4
4
  "description": "UI Components to support linking platform dataset feature",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -51,7 +51,7 @@
51
51
  "@atlaskit/icon": "^23.1.0",
52
52
  "@atlaskit/icon-object": "^6.9.0",
53
53
  "@atlaskit/image": "^1.3.0",
54
- "@atlaskit/inline-edit": "^13.7.0",
54
+ "@atlaskit/inline-edit": "^14.0.0",
55
55
  "@atlaskit/intl-messages-provider": "^1.0.0",
56
56
  "@atlaskit/jql-ast": "^3.3.0",
57
57
  "@atlaskit/jql-editor": "^4.12.0",
@@ -80,7 +80,7 @@
80
80
  "@atlaskit/textfield": "6.7.0",
81
81
  "@atlaskit/theme": "^14.0.0",
82
82
  "@atlaskit/tokens": "^2.4.0",
83
- "@atlaskit/tooltip": "^18.9.0",
83
+ "@atlaskit/tooltip": "^19.0.0",
84
84
  "@atlaskit/ufo": "^0.3.0",
85
85
  "@atlaskit/width-detector": "^4.3.0",
86
86
  "@babel/runtime": "^7.0.0",