@atlaskit/link-datasource 4.32.4 → 4.33.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 (80) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/cjs/ui/assets-modal/modal/render-assets-content/initial-state-view/index.compiled.css +1 -1
  3. package/dist/cjs/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +1 -1
  4. package/dist/cjs/ui/common/error-state/access-required.compiled.css +1 -1
  5. package/dist/cjs/ui/common/error-state/access-required.js +1 -1
  6. package/dist/cjs/ui/common/error-state/no-instances.compiled.css +1 -1
  7. package/dist/cjs/ui/common/error-state/no-instances.js +1 -1
  8. package/dist/cjs/ui/common/initial-state-view/index.compiled.css +1 -1
  9. package/dist/cjs/ui/common/initial-state-view/index.js +1 -1
  10. package/dist/cjs/ui/common/modal/insert-button/index.js +11 -3
  11. package/dist/cjs/ui/common/modal/mode-switcher/index.compiled.css +1 -1
  12. package/dist/cjs/ui/common/modal/mode-switcher/index.js +1 -1
  13. package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.compiled.css +1 -1
  14. package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +1 -1
  15. package/dist/cjs/ui/confluence-search-modal/modal/index.js +1 -1
  16. package/dist/cjs/ui/issue-like-table/index.compiled.css +3 -3
  17. package/dist/cjs/ui/issue-like-table/index.js +1 -1
  18. package/dist/cjs/ui/issue-like-table/render-type/user/index.compiled.css +1 -1
  19. package/dist/cjs/ui/issue-like-table/render-type/user/index.js +1 -1
  20. package/dist/cjs/ui/issue-like-table/shared-components/avatar/index.compiled.css +1 -1
  21. package/dist/cjs/ui/issue-like-table/shared-components/avatar/index.js +1 -1
  22. package/dist/cjs/ui/jira-issues-modal/jira-search-container/index.js +8 -3
  23. package/dist/cjs/ui/jira-issues-modal/modal/index.js +24 -11
  24. package/dist/cjs/ui/table-footer/index.compiled.css +1 -1
  25. package/dist/cjs/ui/table-footer/index.js +1 -1
  26. package/dist/es2019/ui/assets-modal/modal/render-assets-content/initial-state-view/index.compiled.css +1 -1
  27. package/dist/es2019/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +1 -1
  28. package/dist/es2019/ui/common/error-state/access-required.compiled.css +1 -1
  29. package/dist/es2019/ui/common/error-state/access-required.js +1 -1
  30. package/dist/es2019/ui/common/error-state/no-instances.compiled.css +1 -1
  31. package/dist/es2019/ui/common/error-state/no-instances.js +1 -1
  32. package/dist/es2019/ui/common/initial-state-view/index.compiled.css +1 -1
  33. package/dist/es2019/ui/common/initial-state-view/index.js +1 -1
  34. package/dist/es2019/ui/common/modal/insert-button/index.js +11 -3
  35. package/dist/es2019/ui/common/modal/mode-switcher/index.compiled.css +1 -1
  36. package/dist/es2019/ui/common/modal/mode-switcher/index.js +1 -1
  37. package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.compiled.css +1 -1
  38. package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +1 -1
  39. package/dist/es2019/ui/confluence-search-modal/modal/index.js +1 -1
  40. package/dist/es2019/ui/issue-like-table/index.compiled.css +3 -3
  41. package/dist/es2019/ui/issue-like-table/index.js +1 -1
  42. package/dist/es2019/ui/issue-like-table/render-type/user/index.compiled.css +1 -1
  43. package/dist/es2019/ui/issue-like-table/render-type/user/index.js +1 -1
  44. package/dist/es2019/ui/issue-like-table/shared-components/avatar/index.compiled.css +1 -1
  45. package/dist/es2019/ui/issue-like-table/shared-components/avatar/index.js +1 -1
  46. package/dist/es2019/ui/jira-issues-modal/jira-search-container/index.js +8 -3
  47. package/dist/es2019/ui/jira-issues-modal/modal/index.js +13 -3
  48. package/dist/es2019/ui/table-footer/index.compiled.css +1 -1
  49. package/dist/es2019/ui/table-footer/index.js +1 -1
  50. package/dist/esm/ui/assets-modal/modal/render-assets-content/initial-state-view/index.compiled.css +1 -1
  51. package/dist/esm/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +1 -1
  52. package/dist/esm/ui/common/error-state/access-required.compiled.css +1 -1
  53. package/dist/esm/ui/common/error-state/access-required.js +1 -1
  54. package/dist/esm/ui/common/error-state/no-instances.compiled.css +1 -1
  55. package/dist/esm/ui/common/error-state/no-instances.js +1 -1
  56. package/dist/esm/ui/common/initial-state-view/index.compiled.css +1 -1
  57. package/dist/esm/ui/common/initial-state-view/index.js +1 -1
  58. package/dist/esm/ui/common/modal/insert-button/index.js +11 -3
  59. package/dist/esm/ui/common/modal/mode-switcher/index.compiled.css +1 -1
  60. package/dist/esm/ui/common/modal/mode-switcher/index.js +1 -1
  61. package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.compiled.css +1 -1
  62. package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +1 -1
  63. package/dist/esm/ui/confluence-search-modal/modal/index.js +1 -1
  64. package/dist/esm/ui/issue-like-table/index.compiled.css +3 -3
  65. package/dist/esm/ui/issue-like-table/index.js +1 -1
  66. package/dist/esm/ui/issue-like-table/render-type/user/index.compiled.css +1 -1
  67. package/dist/esm/ui/issue-like-table/render-type/user/index.js +1 -1
  68. package/dist/esm/ui/issue-like-table/shared-components/avatar/index.compiled.css +1 -1
  69. package/dist/esm/ui/issue-like-table/shared-components/avatar/index.js +1 -1
  70. package/dist/esm/ui/jira-issues-modal/jira-search-container/index.js +8 -3
  71. package/dist/esm/ui/jira-issues-modal/modal/index.js +24 -11
  72. package/dist/esm/ui/table-footer/index.compiled.css +1 -1
  73. package/dist/esm/ui/table-footer/index.js +1 -1
  74. package/dist/types/ui/common/modal/insert-button/index.d.ts +4 -2
  75. package/dist/types/ui/jira-issues-modal/jira-search-container/index.d.ts +1 -0
  76. package/dist/types/ui/jira-issues-modal/jql-editor/index.d.ts +2 -1
  77. package/dist/types-ts4.5/ui/common/modal/insert-button/index.d.ts +4 -2
  78. package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/index.d.ts +1 -0
  79. package/dist/types-ts4.5/ui/jira-issues-modal/jql-editor/index.d.ts +2 -1
  80. package/package.json +9 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @atlaskit/link-datasource
2
2
 
3
+ ## 4.33.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`52e8d22762662`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/52e8d22762662) -
8
+ Adding functionality to update JQL search with latest JQL query input (if valid) before inserting
9
+ using Jira Work Items Modal in confluence - Insert button remains disabled until search input is
10
+ valid/well-formed. Gated behind navx-1345-issues-modal-jql-submit-fix
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
16
+ ## 4.32.5
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+
3
22
  ## 4.32.4
4
23
 
5
24
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- ._11c8lodh{font:var(--ds-font-heading-medium,normal 500 20px/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
1
+ ._11c81af2{font:var(--ds-font-heading-medium,normal 653 20px/24px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._19bvoahv{padding-left:var(--ds-space-600,3pc)}
3
3
  ._1bah1h6o{justify-content:center}
4
4
  ._1e0c1txw{display:flex}
@@ -32,7 +32,7 @@ var InitialStateView = exports.InitialStateView = function InitialStateView() {
32
32
  size: "xlarge",
33
33
  alt: formatMessage(_messages.initialStateViewMessages.searchTitle)
34
34
  }), /*#__PURE__*/React.createElement("div", {
35
- className: (0, _runtime.ax)(["_11c8lodh _syazi7uo _ca0q1ejb _n3tdpxbi"])
35
+ className: (0, _runtime.ax)(["_11c81af2 _syazi7uo _ca0q1ejb _n3tdpxbi"])
36
36
  }, formatMessage(_messages.initialStateViewMessages.searchTitle)), /*#__PURE__*/React.createElement("div", {
37
37
  className: (0, _runtime.ax)(["_syaz1gjq"])
38
38
  }, formatMessage(_messages.initialStateViewMessages.searchDescription)), /*#__PURE__*/React.createElement(_link.default, {
@@ -1,4 +1,4 @@
1
- ._11c8lodh{font:var(--ds-font-heading-medium,normal 500 20px/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
1
+ ._11c81af2{font:var(--ds-font-heading-medium,normal 653 20px/24px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._zulppxbi{gap:var(--ds-space-200,1pc)}
3
3
  ._19pkmgjw{margin-top:var(--ds-space-negative-200,-1pc)}
4
4
  ._1e0c1txw{display:flex}
@@ -21,7 +21,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
21
21
  var styles = {
22
22
  iconContainerStyles: "_otyrpxbi",
23
23
  descriptionMessageStyles: "_zulppxbi _1e0c1txw _2lx21bp4",
24
- urlStyles: "_11c8lodh _syazi7uo _19pkmgjw"
24
+ urlStyles: "_11c81af2 _syazi7uo _19pkmgjw"
25
25
  };
26
26
  var Description = function Description(_ref) {
27
27
  var message = _ref.message,
@@ -1,4 +1,4 @@
1
- ._11c8nbxd{font:var(--ds-font-heading-small,normal 600 1pc/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
1
+ ._11c81e3o{font:var(--ds-font-heading-small,normal 653 1pc/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._19pkpxbi{margin-top:var(--ds-space-200,1pc)}
3
3
  ._19pku2gc{margin-top:var(--ds-space-100,8px)}
4
4
  ._19pkxncg{margin-top:var(--ds-space-800,4pc)}
@@ -14,7 +14,7 @@ var _compiled = require("@atlaskit/primitives/compiled");
14
14
  var _noInstancesSvg = require("./no-instances-svg");
15
15
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
16
16
  var styles = {
17
- titleStyles: "_11c8nbxd _19pkpxbi",
17
+ titleStyles: "_11c81e3o _19pkpxbi",
18
18
  descriptionStyles: "_19pku2gc",
19
19
  containerStyles: "_19pkxncg"
20
20
  };
@@ -1,4 +1,4 @@
1
- ._11c8lodh{font:var(--ds-font-heading-medium,normal 500 20px/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
1
+ ._11c81af2{font:var(--ds-font-heading-medium,normal 653 20px/24px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._zulpu2gc{gap:var(--ds-space-100,8px)}
3
3
  ._1bah1h6o{justify-content:center}
4
4
  ._1e0c1txw{display:flex}
@@ -35,7 +35,7 @@ var InitialStateView = exports.InitialStateView = function InitialStateView(_ref
35
35
  }, /*#__PURE__*/React.createElement("div", {
36
36
  className: (0, _runtime.ax)(["_y3gn1h6o _1wpz1h6o _ca0qoahv _n3tdoahv"])
37
37
  }, icon, /*#__PURE__*/React.createElement("div", {
38
- className: (0, _runtime.ax)(["_11c8lodh _zulpu2gc _syazi7uo _ca0q1ejb _n3tdpxbi _1e0c1txw _1bah1h6o _4cvr1h6o"])
38
+ className: (0, _runtime.ax)(["_11c81af2 _zulpu2gc _syazi7uo _ca0q1ejb _n3tdpxbi _1e0c1txw _1bah1h6o _4cvr1h6o"])
39
39
  }, showBeta && /*#__PURE__*/React.createElement("div", {
40
40
  className: (0, _runtime.ax)(["_1e0c1txw"])
41
41
  }, /*#__PURE__*/React.createElement(_lozenge.default, {
@@ -9,6 +9,7 @@ exports.InsertButton = void 0;
9
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
  var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
12
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
13
  var _analytics = require("../../../../analytics");
13
14
  var _types = require("../../../../analytics/types");
14
15
  var _schemaUtils = require("../../../../common/utils/schema-utils");
@@ -22,7 +23,9 @@ var InsertButton = exports.InsertButton = function InsertButton(_ref) {
22
23
  var testId = _ref.testId,
23
24
  url = _ref.url,
24
25
  getAnalyticsPayload = _ref.getAnalyticsPayload,
25
- children = _ref.children;
26
+ children = _ref.children,
27
+ onBeforeInsert = _ref.onBeforeInsert,
28
+ hasErrors = _ref.hasErrors;
26
29
  var _useDatasourceContext = (0, _datasourceContext.useDatasourceContext)(),
27
30
  datasourceId = _useDatasourceContext.datasourceId,
28
31
  parameters = _useDatasourceContext.parameters,
@@ -38,12 +41,17 @@ var InsertButton = exports.InsertButton = function InsertButton(_ref) {
38
41
  var userInteractions = (0, _userInteractions.useUserInteractions)();
39
42
  var _useViewModeContext = (0, _useViewModeContext2.useViewModeContext)(),
40
43
  currentViewMode = _useViewModeContext.currentViewMode;
41
- var isInsertDisabled = !isValidParameters(parameters) || status === 'rejected' || status === 'unauthorized' || status === 'loading';
44
+ var isJqlSubmitFixEnabled = (0, _platformFeatureFlags.fg)('navx-1345-issues-modal-jql-submit-fix');
45
+ var isInsertDisabled = (isJqlSubmitFixEnabled ? hasErrors : false) || !isValidParameters(parameters) || status === 'rejected' || status === 'unauthorized' || status === 'loading';
42
46
  var onInsertPressed = (0, _react.useCallback)(function (_e, analyticsEvent) {
43
47
  var _insertButtonClickedE;
44
48
  if (!parameters || !isValidParameters(parameters) || !url) {
45
49
  return;
46
50
  }
51
+ if (isJqlSubmitFixEnabled) {
52
+ onBeforeInsert === null || onBeforeInsert === void 0 || onBeforeInsert(parameters);
53
+ }
54
+ ;
47
55
  var insertButtonClickedEvent = analyticsEvent.update({
48
56
  actionSubjectId: 'insert',
49
57
  attributes: _objectSpread({
@@ -86,7 +94,7 @@ var InsertButton = exports.InsertButton = function InsertButton(_ref) {
86
94
  }]
87
95
  }, url), consumerEvent);
88
96
  }
89
- }, [columnCustomSizes, currentViewMode, datasourceId, getAnalyticsPayload, isValidParameters, onInsert, parameters, totalCount, url, userInteractions, visibleColumnCount, visibleColumnKeys, wrappedColumnKeys]);
97
+ }, [columnCustomSizes, currentViewMode, datasourceId, getAnalyticsPayload, isValidParameters, onInsert, parameters, totalCount, url, userInteractions, visibleColumnCount, visibleColumnKeys, wrappedColumnKeys, isJqlSubmitFixEnabled, onBeforeInsert]);
90
98
  return /*#__PURE__*/_react.default.createElement(_standardButton.default, {
91
99
  appearance: "primary",
92
100
  onClick: onInsertPressed,
@@ -1,4 +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)}
1
+ ._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._2rko1b66{border-radius:var(--ds-space-050,4px)}
3
3
  ._zulpv77o{gap:var(--ds-space-025,2px)}
4
4
  ._189ee4h9{border-width:var(--ds-border-width,1px)}
@@ -52,7 +52,7 @@ var ModeSwitcher = exports.ModeSwitcher = function ModeSwitcher(props) {
52
52
  return /*#__PURE__*/_react.default.createElement("label", (0, _extends2.default)({}, tooltipProps, {
53
53
  key: value,
54
54
  "data-testid": "mode-toggle-".concat(value),
55
- className: (0, _runtime.ax)(["_11c82smr _2rko1b66 _1h6d1j28 _189ee4h9 _1dqonqa1 _syaziwyp _vchhusvi _k48p1wq8 _u5f3utpp _19bvutpp _1tke1tcg _1e0c1txw _4cvr1h6o _1bah1h6o _d0altlke _irr3u7au", isCompact && "_ca0qv77o _u5f31b66 _n3tdv77o _19bv1b66", isSelected && "_2rko1b66 _1h6dq98m _bfhk15s3 _syaz6x5g _d0altlke _irr315s3", isDisabled && "_irr31j28 _d0al13gf", isOptionDisabled && "_syaz111d", isOptionDisabled && "_irr31j28 _d0al13gf"]),
55
+ className: (0, _runtime.ax)(["_11c8fhey _2rko1b66 _1h6d1j28 _189ee4h9 _1dqonqa1 _syaziwyp _vchhusvi _k48p1wq8 _u5f3utpp _19bvutpp _1tke1tcg _1e0c1txw _4cvr1h6o _1bah1h6o _d0altlke _irr3u7au", isCompact && "_ca0qv77o _u5f31b66 _n3tdv77o _19bv1b66", isSelected && "_2rko1b66 _1h6dq98m _bfhk15s3 _syaz6x5g _d0altlke _irr315s3", isDisabled && "_irr31j28 _d0al13gf", isOptionDisabled && "_syaz111d", isOptionDisabled && "_irr31j28 _d0al13gf"]),
56
56
  style: {
57
57
  "--_k4gmmg": (0, _runtime.ix)("var(--ds-text-subtlest, ".concat(_colors.N700, ")")),
58
58
  "--_15egq0b": (0, _runtime.ix)("var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N30A, ")")),
@@ -1,5 +1,5 @@
1
1
  ._11c81kw7{font:inherit}
2
- ._11c8dcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
+ ._11c8rymc{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
3
3
  ._19itglyw{border:none}
4
4
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
5
5
  ._zulpv77o{gap:var(--ds-space-025,2px)}
@@ -43,7 +43,7 @@ var DateRangeErrorMessage = (0, _react.forwardRef)(function (_ref, __cmplr) {
43
43
  return /*#__PURE__*/_react.default.createElement(C, (0, _extends2.default)({}, __cmplp, {
44
44
  style: __cmpls,
45
45
  ref: __cmplr,
46
- className: (0, _runtime.ax)(["_zulpv77o _11c8dcr7 _1e0c1txw _19pk57x3 _bozgv77o _syaz1ick _4cvr1h6o", __cmplp.className])
46
+ className: (0, _runtime.ax)(["_zulpv77o _11c8rymc _1e0c1txw _19pk57x3 _bozgv77o _syaz1ick _4cvr1h6o", __cmplp.className])
47
47
  }));
48
48
  });
49
49
 
@@ -378,7 +378,7 @@ var PlainConfluenceSearchConfigModal = exports.PlainConfluenceSearchConfigModal
378
378
  testId: "confluence-search-datasource-modal-total-results-count",
379
379
  styles: {
380
380
  color: "var(--ds-text, #292A2E)",
381
- font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
381
+ font: "var(--ds-font-heading-xxsmall, normal 653 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
382
382
  }
383
383
  }), /*#__PURE__*/_react.default.createElement(_cancelButton.CancelButton, {
384
384
  onCancel: onCancel,
@@ -1,14 +1,14 @@
1
1
 
2
2
  .ProseMirror .pm-table-wrapper>table tbody ._1i5zidpf{border:0}
3
- .ProseMirror .pm-table-wrapper>table tbody ._1otx2smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
3
+ .ProseMirror .pm-table-wrapper>table tbody ._1otxfhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
4
4
  .ProseMirror .pm-table-wrapper>table thead ._19xw13hi:last-of-type{background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,var(--ds-elevation-surface-current,#fff) 10%)}
5
5
  .ProseMirror .pm-table-wrapper>table thead ._2eacidpf:last-of-type{border:0}
6
6
  .ProseMirror .pm-table-wrapper>table thead ._aks5idpf{border:0}
7
- ._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
7
+ ._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
8
8
  ._13xs13hi:last-of-type{background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,var(--ds-elevation-surface-current,#fff) 10%)}
9
9
  ._19itidpf{border:0}
10
10
  ._1bqmidpf:last-of-type{border:0}
11
- .pm-table-wrapper>table tbody ._1wi12smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
11
+ .pm-table-wrapper>table tbody ._1wi1fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
12
12
  .pm-table-wrapper>table tbody ._aifmidpf{border:0}
13
13
  .pm-table-wrapper>table thead ._1rmlidpf:last-of-type{border:0}
14
14
  .pm-table-wrapper>table thead ._1u3bidpf{border:0}
@@ -113,7 +113,7 @@ var InlineEditableTableCell = (0, _react.forwardRef)(function (_ref4, __cmplr) {
113
113
  return /*#__PURE__*/React.createElement(C, (0, _extends2.default)({}, __cmplp, {
114
114
  style: __cmpls,
115
115
  ref: __cmplr,
116
- className: (0, _runtime.ax)(["_11c82smr _1otx2smr _1wi12smr _19itidpf _1i5zidpf _aifmidpf _1s7z1x13 _1xqp1x13 _mxou1x13 _n7zl1x13 _15lr1x13 _itmm1x13 _ca0qze3t _7jflze3t _1ikkze3t _u5f3ze3t _1cngze3t _1h12ze3t _n3tdze3t _v6nkze3t _jivqze3t _19bvze3t _krvdze3t _1w1yze3t _1ul91wug _1lkc1wug _1jcm1wug _4t3i1ylp _1ugg1ylp _lt6w1ylp _s7n41kw7 _11nx1kw7 _18a21kw7 _vchh1ntv _16601ntv _1qd91ntv _1ls2idpf _1ho1idpf _1y4pidpf _1cimn7od _124in7od", __cmplp.className])
116
+ className: (0, _runtime.ax)(["_11c8fhey _1otxfhey _1wi1fhey _19itidpf _1i5zidpf _aifmidpf _1s7z1x13 _1xqp1x13 _mxou1x13 _n7zl1x13 _15lr1x13 _itmm1x13 _ca0qze3t _7jflze3t _1ikkze3t _u5f3ze3t _1cngze3t _1h12ze3t _n3tdze3t _v6nkze3t _jivqze3t _19bvze3t _krvdze3t _1w1yze3t _1ul91wug _1lkc1wug _1jcm1wug _4t3i1ylp _1ugg1ylp _lt6w1ylp _s7n41kw7 _11nx1kw7 _18a21kw7 _vchh1ntv _16601ntv _1qd91ntv _1ls2idpf _1ho1idpf _1y4pidpf _1cimn7od _124in7od", __cmplp.className])
117
117
  }));
118
118
  });
119
119
 
@@ -1,4 +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)}
1
+ ._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._18m915vq{overflow-y:hidden}
3
3
  ._1bto1l2s{text-overflow:ellipsis}
4
4
  ._1e0c1txw{display:flex}
@@ -22,7 +22,7 @@ var _messages = require("./messages");
22
22
  var _excluded = ["as", "style"];
23
23
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
24
24
  var styles = {
25
- userWrapperStyles: "_11c82smr _1e0c1txw _4cvr1h6o",
25
+ userWrapperStyles: "_11c8fhey _1e0c1txw _4cvr1h6o",
26
26
  avatarWrapperStyles: "_2hwxu2gc",
27
27
  widthObserverWrapperStyles: "_kqswh2mm"
28
28
  };
@@ -1,4 +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)}
1
+ ._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._18zru2gc{padding-inline:var(--ds-space-100,8px)}
3
3
  ._1rjc1b66{padding-block:var(--ds-space-050,4px)}
4
4
  ._1e0c1txw{display:flex}
@@ -17,7 +17,7 @@ var _user = require("../../render-type/user");
17
17
  var _messages = require("../../render-type/user/messages");
18
18
  var styles = {
19
19
  avatarWrapperStyles: "_2hwxu2gc",
20
- emptyAvatarWrapperStyles: "_11c82smr _1rjc1b66 _18zru2gc _1e0c1txw _4cvr1h6o _tzy4idpf _16l4kb7n"
20
+ emptyAvatarWrapperStyles: "_11c8fhey _1rjc1b66 _18zru2gc _1e0c1txw _4cvr1h6o _tzy4idpf _16l4kb7n"
21
21
  };
22
22
  var EmptyAvatar = exports.EmptyAvatar = function EmptyAvatar() {
23
23
  var intl = (0, _reactIntlNext.useIntl)();
@@ -15,6 +15,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
15
15
  var _react = _interopRequireWildcard(require("react"));
16
16
  var _reactIntlNext = require("react-intl-next");
17
17
  var _useDebounce = require("use-debounce");
18
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
19
  var _compiled = require("@atlaskit/primitives/compiled");
19
20
  var _analytics = require("../../../analytics");
20
21
  var _basicSearchInput = require("../../common/modal/basic-search-input");
@@ -48,7 +49,8 @@ var JiraSearchContainer = exports.JiraSearchContainer = function JiraSearchConta
48
49
  setSearchBarJql = props.setSearchBarJql,
49
50
  _props$searchBarJql = props.searchBarJql,
50
51
  searchBarJql = _props$searchBarJql === void 0 ? DEFAULT_JQL_QUERY : _props$searchBarJql,
51
- site = props.site;
52
+ site = props.site,
53
+ setHasJqlSyntaxErrors = props.setHasJqlSyntaxErrors;
52
54
  var _ref = parameters || {},
53
55
  currentCloudId = _ref.cloudId;
54
56
  var _useIntl = (0, _reactIntlNext.useIntl)(),
@@ -118,8 +120,11 @@ var JiraSearchContainer = exports.JiraSearchContainer = function JiraSearchConta
118
120
  orderKey: orderKey
119
121
  }));
120
122
  }, [setSearchBarJql, filterSelections, orderDirection, orderKey]);
121
- var onQueryChange = (0, _react.useCallback)(function (query) {
123
+ var onQueryChange = (0, _react.useCallback)(function (query, jast) {
122
124
  var _query$split$map$filt, _fragments$at, _fragments$at2, _fragments$at3;
125
+ if ((0, _platformFeatureFlags.fg)('navx-1345-issues-modal-jql-submit-fix')) {
126
+ setHasJqlSyntaxErrors === null || setHasJqlSyntaxErrors === void 0 || setHasJqlSyntaxErrors(jast.errors.length > 0);
127
+ }
123
128
  // determine if order keys have been set so they can be saved and persisted when changes occur in basic search
124
129
  var fragments = (_query$split$map$filt = query === null || query === void 0 ? void 0 : query.split(/(^| )(order by)( |$)/i).map(function (item) {
125
130
  return item.trim();
@@ -134,7 +139,7 @@ var JiraSearchContainer = exports.JiraSearchContainer = function JiraSearchConta
134
139
  setOrderDirection(order);
135
140
  }
136
141
  setSearchBarJql(query);
137
- }, [setSearchBarJql]);
142
+ }, [setSearchBarJql, setHasJqlSyntaxErrors]);
138
143
  var handleSearch = (0, _react.useCallback)(function () {
139
144
  var isCurrentQueryComplex = (0, _isQueryTooComplex.isQueryTooComplex)(searchBarJql);
140
145
  onSearch({
@@ -100,24 +100,30 @@ var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(props) {
100
100
  var _useState = (0, _react.useState)(jql),
101
101
  _useState2 = (0, _slicedToArray2.default)(_useState, 1),
102
102
  initialJql = _useState2[0];
103
+ var isJqlSubmitFixEnabled = (0, _platformFeatureFlags.fg)('navx-1345-issues-modal-jql-submit-fix');
104
+ var _useState3 = (0, _react.useState)(false),
105
+ _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
106
+ hasJqlSyntaxErrors = _useState4[0],
107
+ setHasJqlSyntaxErrors = _useState4[1]; // Tracks if current jql input has syntax errors
108
+
103
109
  var _useViewModeContext = (0, _useViewModeContext2.useViewModeContext)(),
104
110
  currentViewMode = _useViewModeContext.currentViewMode;
105
111
  var _useAvailableSites = (0, _useAvailableSites2.useAvailableSites)('jira', cloudId),
106
112
  availableSites = _useAvailableSites.availableSites,
107
113
  selectedJiraSite = _useAvailableSites.selectedSite;
108
- var _useState3 = (0, _react.useState)(jql),
109
- _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
110
- searchBarJql = _useState4[0],
111
- setSearchBarJql = _useState4[1];
114
+ var _useState5 = (0, _react.useState)(jql),
115
+ _useState6 = (0, _slicedToArray2.default)(_useState5, 2),
116
+ searchBarJql = _useState6[0],
117
+ setSearchBarJql = _useState6[1];
112
118
 
113
119
  // analytics related parameters
114
120
  var searchCount = (0, _react.useRef)(0);
115
121
  var userInteractions = (0, _userInteractions.useUserInteractions)();
116
122
  var initialSearchMethod = !(0, _isQueryTooComplex.isQueryTooComplex)(initialJql || '') ? 'basic' : 'jql';
117
- var _useState5 = (0, _react.useState)(initialSearchMethod),
118
- _useState6 = (0, _slicedToArray2.default)(_useState5, 2),
119
- currentSearchMethod = _useState6[0],
120
- setCurrentSearchMethod = _useState6[1];
123
+ var _useState7 = (0, _react.useState)(initialSearchMethod),
124
+ _useState8 = (0, _slicedToArray2.default)(_useState7, 2),
125
+ currentSearchMethod = _useState8[0],
126
+ setCurrentSearchMethod = _useState8[1];
121
127
  var searchMethodSearchedWith = (0, _react.useRef)(null);
122
128
  var basicFilterSelectionsSearchedWith = (0, _react.useRef)({});
123
129
  var isSearchedWithComplexQuery = (0, _react.useRef)(false);
@@ -374,6 +380,9 @@ var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(props) {
374
380
  var upToDateJqlUrl = "".concat(selectedJiraSite.url, "/issues/?jql=").concat(encodeURIComponent(jql));
375
381
  return currentViewMode === 'inline' && responseItems.length === 1 ? retrieveUrlForSmartCardRender() : upToDateJqlUrl;
376
382
  }, [currentViewMode, parameters === null || parameters === void 0 ? void 0 : parameters.jql, responseItems, retrieveUrlForSmartCardRender, selectedJiraSite === null || selectedJiraSite === void 0 ? void 0 : selectedJiraSite.url]);
383
+ var updateParametersJql = (0, _react.useCallback)(function (parameters) {
384
+ parameters.jql = searchBarJql;
385
+ }, [searchBarJql]);
377
386
  return /*#__PURE__*/_react.default.createElement(_intlMessagesProvider.IntlMessagesProvider, {
378
387
  defaultMessages: _en.default,
379
388
  loaderFn: _fetchMessagesForLocale.fetchMessagesForLocale
@@ -402,6 +411,7 @@ var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(props) {
402
411
  }))))), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalBody, null, !hasNoJiraSites ? /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_jiraSearchContainer.JiraSearchContainer, {
403
412
  setSearchBarJql: setSearchBarJql,
404
413
  searchBarJql: searchBarJql,
414
+ setHasJqlSyntaxErrors: isJqlSubmitFixEnabled ? setHasJqlSyntaxErrors : undefined,
405
415
  isSearching: status === 'loading',
406
416
  parameters: parameters,
407
417
  onSearch: onSearch,
@@ -419,17 +429,20 @@ var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(props) {
419
429
  testId: "jira-datasource-modal-total-issues-count",
420
430
  styles: {
421
431
  color: "var(--ds-text, #292A2E)",
422
- font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
432
+ font: "var(--ds-font-heading-xxsmall, normal 653 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
423
433
  }
424
434
  }), /*#__PURE__*/_react.default.createElement(_cancelButton.CancelButton, {
425
435
  onCancel: onCancel,
426
436
  getAnalyticsPayload: getCancelButtonAnalyticsPayload,
427
437
  testId: "jira-datasource-modal--cancel-button"
428
- }), !hasNoJiraSites && /*#__PURE__*/_react.default.createElement(_insertButton.InsertButton, {
438
+ }), !hasNoJiraSites && /*#__PURE__*/_react.default.createElement(_insertButton.InsertButton, (0, _extends2.default)({
429
439
  testId: "jira-datasource-modal--insert-button",
430
440
  url: urlToInsert,
431
441
  getAnalyticsPayload: getInsertButtonAnalyticsPayload
432
- }, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages3.modalMessages.insertIssuesButtonTextIssueTermSllv))))));
442
+ }, isJqlSubmitFixEnabled ? {
443
+ onBeforeInsert: updateParametersJql,
444
+ hasErrors: hasJqlSyntaxErrors
445
+ } : {}), /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages3.modalMessages.insertIssuesButtonTextIssueTermSllv))))));
433
446
  };
434
447
  var ConnectedJiraIssueConfigModal = (0, _createDatasourceModal.createDatasourceModal)({
435
448
  isValidParameters: isValidParameters,
@@ -1,4 +1,4 @@
1
- ._11c81o8v{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
1
+ ._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._2rko1kw7{border-radius:inherit}
3
3
  ._x3doia51{border-top:var(--ds-border-width,1px) solid var(--ds-border,#0b120e24)}
4
4
  ._13liidpf{border-top-left-radius:0}
@@ -24,7 +24,7 @@ var _providerLink = require("./provider-link");
24
24
  var _syncInfo = require("./sync-info");
25
25
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
26
26
  var styles = {
27
- footer: "_11c81o8v _2rko1kw7 _x3doia51 _syaz1rpy _ca0qu2gc _u5f3pxbi _n3tdu2gc _19bvpxbi _vchhusvi _13liidpf _qrwqidpf _bfhkhp5a",
27
+ footer: "_11c8wadc _2rko1kw7 _x3doia51 _syaz1rpy _ca0qu2gc _u5f3pxbi _n3tdu2gc _19bvpxbi _vchhusvi _13liidpf _qrwqidpf _bfhkhp5a",
28
28
  separator: "_syaz1l7x"
29
29
  };
30
30
  var TableFooter = exports.TableFooter = function TableFooter(_ref) {
@@ -1,4 +1,4 @@
1
- ._11c8lodh{font:var(--ds-font-heading-medium,normal 500 20px/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
1
+ ._11c81af2{font:var(--ds-font-heading-medium,normal 653 20px/24px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._19bvoahv{padding-left:var(--ds-space-600,3pc)}
3
3
  ._1bah1h6o{justify-content:center}
4
4
  ._1e0c1txw{display:flex}
@@ -24,7 +24,7 @@ export const InitialStateView = () => {
24
24
  size: "xlarge",
25
25
  alt: formatMessage(initialStateViewMessages.searchTitle)
26
26
  }), /*#__PURE__*/React.createElement("div", {
27
- className: ax(["_11c8lodh _syazi7uo _ca0q1ejb _n3tdpxbi"])
27
+ className: ax(["_11c81af2 _syazi7uo _ca0q1ejb _n3tdpxbi"])
28
28
  }, formatMessage(initialStateViewMessages.searchTitle)), /*#__PURE__*/React.createElement("div", {
29
29
  className: ax(["_syaz1gjq"])
30
30
  }, formatMessage(initialStateViewMessages.searchDescription)), /*#__PURE__*/React.createElement(Link, {
@@ -1,4 +1,4 @@
1
- ._11c8lodh{font:var(--ds-font-heading-medium,normal 500 20px/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
1
+ ._11c81af2{font:var(--ds-font-heading-medium,normal 653 20px/24px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._zulppxbi{gap:var(--ds-space-200,1pc)}
3
3
  ._19pkmgjw{margin-top:var(--ds-space-negative-200,-1pc)}
4
4
  ._1e0c1txw{display:flex}
@@ -12,7 +12,7 @@ import { loadingErrorMessages } from './messages';
12
12
  const styles = {
13
13
  iconContainerStyles: "_otyrpxbi",
14
14
  descriptionMessageStyles: "_zulppxbi _1e0c1txw _2lx21bp4",
15
- urlStyles: "_11c8lodh _syazi7uo _19pkmgjw"
15
+ urlStyles: "_11c81af2 _syazi7uo _19pkmgjw"
16
16
  };
17
17
  const Description = ({
18
18
  message,
@@ -1,4 +1,4 @@
1
- ._11c8nbxd{font:var(--ds-font-heading-small,normal 600 1pc/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
1
+ ._11c81e3o{font:var(--ds-font-heading-small,normal 653 1pc/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._19pkpxbi{margin-top:var(--ds-space-200,1pc)}
3
3
  ._19pku2gc{margin-top:var(--ds-space-100,8px)}
4
4
  ._19pkxncg{margin-top:var(--ds-space-800,4pc)}
@@ -6,7 +6,7 @@ import { useIntl } from 'react-intl-next';
6
6
  import { Flex, Inline } from '@atlaskit/primitives/compiled';
7
7
  import { NoInstancesSvg } from './no-instances-svg';
8
8
  const styles = {
9
- titleStyles: "_11c8nbxd _19pkpxbi",
9
+ titleStyles: "_11c81e3o _19pkpxbi",
10
10
  descriptionStyles: "_19pku2gc",
11
11
  containerStyles: "_19pkxncg"
12
12
  };
@@ -1,4 +1,4 @@
1
- ._11c8lodh{font:var(--ds-font-heading-medium,normal 500 20px/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
1
+ ._11c81af2{font:var(--ds-font-heading-medium,normal 653 20px/24px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._zulpu2gc{gap:var(--ds-space-100,8px)}
3
3
  ._1bah1h6o{justify-content:center}
4
4
  ._1e0c1txw{display:flex}
@@ -27,7 +27,7 @@ export const InitialStateView = ({
27
27
  }, /*#__PURE__*/React.createElement("div", {
28
28
  className: ax(["_y3gn1h6o _1wpz1h6o _ca0qoahv _n3tdoahv"])
29
29
  }, icon, /*#__PURE__*/React.createElement("div", {
30
- className: ax(["_11c8lodh _zulpu2gc _syazi7uo _ca0q1ejb _n3tdpxbi _1e0c1txw _1bah1h6o _4cvr1h6o"])
30
+ className: ax(["_11c81af2 _zulpu2gc _syazi7uo _ca0q1ejb _n3tdpxbi _1e0c1txw _1bah1h6o _4cvr1h6o"])
31
31
  }, showBeta && /*#__PURE__*/React.createElement("div", {
32
32
  className: ax(["_1e0c1txw"])
33
33
  }, /*#__PURE__*/React.createElement(Lozenge, {
@@ -1,5 +1,6 @@
1
1
  import React, { useCallback } from 'react';
2
2
  import Button from '@atlaskit/button/standard-button';
3
+ import { fg } from '@atlaskit/platform-feature-flags';
3
4
  import { EVENT_CHANNEL } from '../../../../analytics';
4
5
  import { DatasourceDisplay, DatasourceSearchMethod } from '../../../../analytics/types';
5
6
  import { buildDatasourceAdf } from '../../../../common/utils/schema-utils';
@@ -10,7 +11,9 @@ export const InsertButton = ({
10
11
  testId,
11
12
  url,
12
13
  getAnalyticsPayload,
13
- children
14
+ children,
15
+ onBeforeInsert,
16
+ hasErrors
14
17
  }) => {
15
18
  const {
16
19
  datasourceId,
@@ -30,12 +33,17 @@ export const InsertButton = ({
30
33
  const {
31
34
  currentViewMode
32
35
  } = useViewModeContext();
33
- const isInsertDisabled = !isValidParameters(parameters) || status === 'rejected' || status === 'unauthorized' || status === 'loading';
36
+ const isJqlSubmitFixEnabled = fg('navx-1345-issues-modal-jql-submit-fix');
37
+ const isInsertDisabled = (isJqlSubmitFixEnabled ? hasErrors : false) || !isValidParameters(parameters) || status === 'rejected' || status === 'unauthorized' || status === 'loading';
34
38
  const onInsertPressed = useCallback((_e, analyticsEvent) => {
35
39
  var _insertButtonClickedE;
36
40
  if (!parameters || !isValidParameters(parameters) || !url) {
37
41
  return;
38
42
  }
43
+ if (isJqlSubmitFixEnabled) {
44
+ onBeforeInsert === null || onBeforeInsert === void 0 ? void 0 : onBeforeInsert(parameters);
45
+ }
46
+ ;
39
47
  const insertButtonClickedEvent = analyticsEvent.update({
40
48
  actionSubjectId: 'insert',
41
49
  attributes: {
@@ -81,7 +89,7 @@ export const InsertButton = ({
81
89
  }]
82
90
  }, url), consumerEvent);
83
91
  }
84
- }, [columnCustomSizes, currentViewMode, datasourceId, getAnalyticsPayload, isValidParameters, onInsert, parameters, totalCount, url, userInteractions, visibleColumnCount, visibleColumnKeys, wrappedColumnKeys]);
92
+ }, [columnCustomSizes, currentViewMode, datasourceId, getAnalyticsPayload, isValidParameters, onInsert, parameters, totalCount, url, userInteractions, visibleColumnCount, visibleColumnKeys, wrappedColumnKeys, isJqlSubmitFixEnabled, onBeforeInsert]);
85
93
  return /*#__PURE__*/React.createElement(Button, {
86
94
  appearance: "primary",
87
95
  onClick: onInsertPressed,
@@ -1,4 +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)}
1
+ ._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._2rko1b66{border-radius:var(--ds-space-050,4px)}
3
3
  ._zulpv77o{gap:var(--ds-space-025,2px)}
4
4
  ._189ee4h9{border-width:var(--ds-border-width,1px)}
@@ -46,7 +46,7 @@ export const ModeSwitcher = props => {
46
46
  }, tooltipProps => /*#__PURE__*/React.createElement("label", _extends({}, tooltipProps, {
47
47
  key: value,
48
48
  "data-testid": `mode-toggle-${value}`,
49
- className: ax(["_11c82smr _2rko1b66 _1h6d1j28 _189ee4h9 _1dqonqa1 _syaz1be1 _vchhusvi _k48p1wq8 _u5f3utpp _19bvutpp _1tke1tcg _1e0c1txw _4cvr1h6o _1bah1h6o _d0altlke _irr3g4tq", isCompact && "_ca0qv77o _u5f31b66 _n3tdv77o _19bv1b66", isSelected && "_2rko1b66 _1h6dq98m _bfhk15s3 _syaz6x5g _d0altlke _irr315s3", isDisabled && "_irr31j28 _d0al13gf", isOptionDisabled && "_syaz8q0r", isOptionDisabled && "_irr31j28 _d0al13gf"])
49
+ className: ax(["_11c8fhey _2rko1b66 _1h6d1j28 _189ee4h9 _1dqonqa1 _syaz1be1 _vchhusvi _k48p1wq8 _u5f3utpp _19bvutpp _1tke1tcg _1e0c1txw _4cvr1h6o _1bah1h6o _d0altlke _irr3g4tq", isCompact && "_ca0qv77o _u5f31b66 _n3tdv77o _19bv1b66", isSelected && "_2rko1b66 _1h6dq98m _bfhk15s3 _syaz6x5g _d0altlke _irr315s3", isDisabled && "_irr31j28 _d0al13gf", isOptionDisabled && "_syaz8q0r", isOptionDisabled && "_irr31j28 _d0al13gf"])
50
50
  }), label, /*#__PURE__*/React.createElement("input", {
51
51
  "aria-checked": isSelected,
52
52
  "aria-disabled": isOptionDisabled,
@@ -1,5 +1,5 @@
1
1
  ._11c81kw7{font:inherit}
2
- ._11c8dcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
+ ._11c8rymc{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
3
3
  ._19itglyw{border:none}
4
4
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
5
5
  ._zulpv77o{gap:var(--ds-space-025,2px)}
@@ -26,7 +26,7 @@ const DateRangeErrorMessage = forwardRef(({
26
26
  return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
27
27
  style: __cmpls,
28
28
  ref: __cmplr,
29
- className: ax(["_zulpv77o _11c8dcr7 _1e0c1txw _19pk57x3 _bozgv77o _syaz1ick _4cvr1h6o", __cmplp.className])
29
+ className: ax(["_zulpv77o _11c8rymc _1e0c1txw _19pk57x3 _bozgv77o _syaz1ick _4cvr1h6o", __cmplp.className])
30
30
  }));
31
31
  });
32
32
 
@@ -361,7 +361,7 @@ export const PlainConfluenceSearchConfigModal = props => {
361
361
  testId: "confluence-search-datasource-modal-total-results-count",
362
362
  styles: {
363
363
  color: "var(--ds-text, #292A2E)",
364
- font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
364
+ font: "var(--ds-font-heading-xxsmall, normal 653 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
365
365
  }
366
366
  }), /*#__PURE__*/React.createElement(CancelButton, {
367
367
  onCancel: onCancel,
@@ -1,15 +1,15 @@
1
1
 
2
2
  .ProseMirror .pm-table-wrapper>table tbody ._1i5zidpf{border:0}
3
- .ProseMirror .pm-table-wrapper>table tbody ._1otx2smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
3
+ .ProseMirror .pm-table-wrapper>table tbody ._1otxfhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
4
4
  .ProseMirror .pm-table-wrapper>table thead ._19xw13hi:last-of-type{background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,var(--ds-elevation-surface-current,#fff) 10%)}
5
5
  .ProseMirror .pm-table-wrapper>table thead ._2eacidpf:last-of-type{border:0}
6
6
  .ProseMirror .pm-table-wrapper>table thead ._aks5idpf{border:0}
7
- ._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
8
7
  ._11c8dcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
8
+ ._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
9
9
  ._13xs13hi:last-of-type{background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,var(--ds-elevation-surface-current,#fff) 10%)}
10
10
  ._19itidpf{border:0}
11
11
  ._1bqmidpf:last-of-type{border:0}
12
- .pm-table-wrapper>table tbody ._1wi12smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
12
+ .pm-table-wrapper>table tbody ._1wi1fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
13
13
  .pm-table-wrapper>table tbody ._aifmidpf{border:0}
14
14
  .pm-table-wrapper>table thead ._1rmlidpf:last-of-type{border:0}
15
15
  .pm-table-wrapper>table thead ._1u3bidpf{border:0}
@@ -94,7 +94,7 @@ const InlineEditableTableCell = forwardRef(({
94
94
  return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
95
95
  style: __cmpls,
96
96
  ref: __cmplr,
97
- className: ax(["_11c82smr _1otx2smr _1wi12smr _19itidpf _1i5zidpf _aifmidpf _1s7z1x13 _1xqp1x13 _mxou1x13 _n7zl1x13 _15lr1x13 _itmm1x13 _ca0qze3t _7jflze3t _1ikkze3t _u5f3ze3t _1cngze3t _1h12ze3t _n3tdze3t _v6nkze3t _jivqze3t _19bvze3t _krvdze3t _1w1yze3t _1ul91wug _1lkc1wug _1jcm1wug _4t3i1ylp _1ugg1ylp _lt6w1ylp _s7n41kw7 _11nx1kw7 _18a21kw7 _vchh1ntv _16601ntv _1qd91ntv _1ls2idpf _1ho1idpf _1y4pidpf _1cimn7od _124in7od", __cmplp.className])
97
+ className: ax(["_11c8fhey _1otxfhey _1wi1fhey _19itidpf _1i5zidpf _aifmidpf _1s7z1x13 _1xqp1x13 _mxou1x13 _n7zl1x13 _15lr1x13 _itmm1x13 _ca0qze3t _7jflze3t _1ikkze3t _u5f3ze3t _1cngze3t _1h12ze3t _n3tdze3t _v6nkze3t _jivqze3t _19bvze3t _krvdze3t _1w1yze3t _1ul91wug _1lkc1wug _1jcm1wug _4t3i1ylp _1ugg1ylp _lt6w1ylp _s7n41kw7 _11nx1kw7 _18a21kw7 _vchh1ntv _16601ntv _1qd91ntv _1ls2idpf _1ho1idpf _1y4pidpf _1cimn7od _124in7od", __cmplp.className])
98
98
  }));
99
99
  });
100
100
 
@@ -1,4 +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)}
1
+ ._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._18m915vq{overflow-y:hidden}
3
3
  ._1bto1l2s{text-overflow:ellipsis}
4
4
  ._1e0c1txw{display:flex}