@atlaskit/jql-editor 5.14.4 → 6.1.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 (93) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/cjs/analytics/util.js +1 -1
  3. package/dist/cjs/common/messages.js +2 -2
  4. package/dist/cjs/plugins/autocomplete/components/autocomplete-dropdown/index.js +10 -1
  5. package/dist/cjs/plugins/autocomplete/components/autocomplete-option/messages.js +2 -2
  6. package/dist/cjs/plugins/autocomplete/messages.js +2 -2
  7. package/dist/cjs/plugins/jql-ast/messages.js +2 -2
  8. package/dist/cjs/plugins/rich-inline-nodes/nodes/project/messages.js +2 -2
  9. package/dist/cjs/plugins/rich-inline-nodes/nodes/project/project-node.js +2 -2
  10. package/dist/cjs/state/index.js +2 -2
  11. package/dist/cjs/ui/intl-provider/index.js +2 -2
  12. package/dist/cjs/ui/jql-editor/index.js +2 -2
  13. package/dist/cjs/ui/jql-editor-controls-content/expand-toggle/messages.js +2 -2
  14. package/dist/cjs/ui/jql-editor-controls-content/search/messages.js +2 -2
  15. package/dist/cjs/ui/jql-editor-controls-content/syntax-help/messages.js +2 -2
  16. package/dist/cjs/ui/jql-editor-footer-content/jql-editor-help/messages.js +2 -2
  17. package/dist/cjs/ui/jql-editor-footer-content/jql-messages/errors/messages.js +2 -2
  18. package/dist/cjs/ui/jql-editor-footer-content/jql-messages/warnings/messages.js +2 -2
  19. package/dist/cjs/ui/jql-editor-layout/index.js +2 -2
  20. package/dist/cjs/ui/messages.js +2 -2
  21. package/dist/es2019/analytics/util.js +1 -1
  22. package/dist/es2019/common/messages.js +1 -1
  23. package/dist/es2019/plugins/autocomplete/components/autocomplete-dropdown/index.js +8 -1
  24. package/dist/es2019/plugins/autocomplete/components/autocomplete-option/messages.js +1 -1
  25. package/dist/es2019/plugins/autocomplete/messages.js +1 -1
  26. package/dist/es2019/plugins/jql-ast/messages.js +1 -1
  27. package/dist/es2019/plugins/rich-inline-nodes/nodes/project/messages.js +1 -1
  28. package/dist/es2019/plugins/rich-inline-nodes/nodes/project/project-node.js +1 -1
  29. package/dist/es2019/state/index.js +1 -1
  30. package/dist/es2019/ui/intl-provider/index.js +1 -1
  31. package/dist/es2019/ui/jql-editor/index.js +1 -1
  32. package/dist/es2019/ui/jql-editor-controls-content/expand-toggle/messages.js +1 -1
  33. package/dist/es2019/ui/jql-editor-controls-content/search/messages.js +1 -1
  34. package/dist/es2019/ui/jql-editor-controls-content/syntax-help/messages.js +1 -1
  35. package/dist/es2019/ui/jql-editor-footer-content/jql-editor-help/messages.js +1 -1
  36. package/dist/es2019/ui/jql-editor-footer-content/jql-messages/errors/messages.js +1 -1
  37. package/dist/es2019/ui/jql-editor-footer-content/jql-messages/warnings/messages.js +1 -1
  38. package/dist/es2019/ui/jql-editor-layout/index.js +1 -1
  39. package/dist/es2019/ui/messages.js +1 -1
  40. package/dist/esm/analytics/util.js +1 -1
  41. package/dist/esm/common/messages.js +1 -1
  42. package/dist/esm/plugins/autocomplete/components/autocomplete-dropdown/index.js +10 -1
  43. package/dist/esm/plugins/autocomplete/components/autocomplete-option/messages.js +1 -1
  44. package/dist/esm/plugins/autocomplete/messages.js +1 -1
  45. package/dist/esm/plugins/jql-ast/messages.js +1 -1
  46. package/dist/esm/plugins/rich-inline-nodes/nodes/project/messages.js +1 -1
  47. package/dist/esm/plugins/rich-inline-nodes/nodes/project/project-node.js +1 -1
  48. package/dist/esm/state/index.js +1 -1
  49. package/dist/esm/ui/intl-provider/index.js +1 -1
  50. package/dist/esm/ui/jql-editor/index.js +1 -1
  51. package/dist/esm/ui/jql-editor-controls-content/expand-toggle/messages.js +1 -1
  52. package/dist/esm/ui/jql-editor-controls-content/search/messages.js +1 -1
  53. package/dist/esm/ui/jql-editor-controls-content/syntax-help/messages.js +1 -1
  54. package/dist/esm/ui/jql-editor-footer-content/jql-editor-help/messages.js +1 -1
  55. package/dist/esm/ui/jql-editor-footer-content/jql-messages/errors/messages.js +1 -1
  56. package/dist/esm/ui/jql-editor-footer-content/jql-messages/warnings/messages.js +1 -1
  57. package/dist/esm/ui/jql-editor-layout/index.js +1 -1
  58. package/dist/esm/ui/messages.js +1 -1
  59. package/dist/types/index.d.ts +1 -1
  60. package/dist/types/plugins/jql-ast/JQLEditorErrorStrategy.d.ts +1 -1
  61. package/dist/types/plugins/jql-ast/error-handlers/CustomFieldRuleErrorHandler.d.ts +1 -1
  62. package/dist/types/plugins/jql-ast/error-handlers/ExpectedTokensErrorHandler.d.ts +1 -1
  63. package/dist/types/plugins/jql-ast/error-handlers/FieldPropertyIdErrorHandler.d.ts +1 -1
  64. package/dist/types/plugins/jql-ast/error-handlers/FieldRuleErrorHandler.d.ts +1 -1
  65. package/dist/types/plugins/jql-ast/error-handlers/FunctionArgumentRuleErrorHandler.d.ts +1 -1
  66. package/dist/types/plugins/jql-ast/error-handlers/OperandRuleErrorHandler.d.ts +1 -1
  67. package/dist/types/plugins/jql-ast/error-handlers/OperatorRuleErrorHandler.d.ts +1 -1
  68. package/dist/types/plugins/jql-ast/index.d.ts +1 -1
  69. package/dist/types/schema/index.d.ts +1 -1
  70. package/dist/types/state/index.d.ts +1 -1
  71. package/dist/types/state/types.d.ts +1 -1
  72. package/dist/types/types.d.ts +1 -1
  73. package/dist/types/ui/jql-editor/index.d.ts +2 -2
  74. package/dist/types/ui/jql-editor/types.d.ts +7 -1
  75. package/dist/types/ui/types.d.ts +1 -1
  76. package/dist/types-ts4.5/index.d.ts +1 -1
  77. package/dist/types-ts4.5/plugins/jql-ast/JQLEditorErrorStrategy.d.ts +1 -1
  78. package/dist/types-ts4.5/plugins/jql-ast/error-handlers/CustomFieldRuleErrorHandler.d.ts +1 -1
  79. package/dist/types-ts4.5/plugins/jql-ast/error-handlers/ExpectedTokensErrorHandler.d.ts +1 -1
  80. package/dist/types-ts4.5/plugins/jql-ast/error-handlers/FieldPropertyIdErrorHandler.d.ts +1 -1
  81. package/dist/types-ts4.5/plugins/jql-ast/error-handlers/FieldRuleErrorHandler.d.ts +1 -1
  82. package/dist/types-ts4.5/plugins/jql-ast/error-handlers/FunctionArgumentRuleErrorHandler.d.ts +1 -1
  83. package/dist/types-ts4.5/plugins/jql-ast/error-handlers/OperandRuleErrorHandler.d.ts +1 -1
  84. package/dist/types-ts4.5/plugins/jql-ast/error-handlers/OperatorRuleErrorHandler.d.ts +1 -1
  85. package/dist/types-ts4.5/plugins/jql-ast/index.d.ts +1 -1
  86. package/dist/types-ts4.5/schema/index.d.ts +1 -1
  87. package/dist/types-ts4.5/state/index.d.ts +1 -1
  88. package/dist/types-ts4.5/state/types.d.ts +1 -1
  89. package/dist/types-ts4.5/types.d.ts +1 -1
  90. package/dist/types-ts4.5/ui/jql-editor/index.d.ts +2 -2
  91. package/dist/types-ts4.5/ui/jql-editor/types.d.ts +7 -1
  92. package/dist/types-ts4.5/ui/types.d.ts +1 -1
  93. package/package.json +7 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # @atlaskit/jql-editor
2
2
 
3
+ ## 6.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`354bbafb6a1e9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/354bbafb6a1e9) -
8
+ Add HydratedGoal type
9
+
10
+ ## 6.0.0
11
+
12
+ ### Major Changes
13
+
14
+ - [`4b920b03625a1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4b920b03625a1) -
15
+ Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
16
+
17
+ What changed: The `react-intl-next` npm alias (which resolved to `react-intl@^5`) has been
18
+ removed. All imports now reference `react-intl` directly, and `peerDependencies` have been updated
19
+ to `"^5.25.1 || ^6.0.0 || ^7.0.0"`.
20
+
21
+ How consumer should update their code: Ensure `react-intl` is installed at a version satisfying
22
+ `^5.25.1 || ^6.0.0 || ^7.0.0`. If your application was using `react-intl-next` as an npm alias, it
23
+ can be safely removed. Replace any remaining `react-intl-next` imports with `react-intl`.
24
+
25
+ ### Patch Changes
26
+
27
+ - [`7f43a9c7d5dec`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7f43a9c7d5dec) -
28
+ [ux] fixed up the scroll issue in JQL autocomplete if the option name is too long
29
+
30
+ ## 5.14.5
31
+
32
+ ### Patch Changes
33
+
34
+ - Updated dependencies
35
+
3
36
  ## 5.14.4
4
37
 
5
38
  ### Patch Changes
@@ -6,5 +6,5 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.useJqlEditorAnalytics = void 0;
7
7
  var _jqlEditorCommon = require("@atlaskit/jql-editor-common");
8
8
  var useJqlEditorAnalytics = exports.useJqlEditorAnalytics = function useJqlEditorAnalytics(analyticsSource) {
9
- return (0, _jqlEditorCommon.useJqlPackageAnalytics)(analyticsSource, "@atlaskit/jql-editor", "5.14.3", _jqlEditorCommon.ANALYTICS_CHANNEL);
9
+ return (0, _jqlEditorCommon.useJqlPackageAnalytics)(analyticsSource, "@atlaskit/jql-editor", "6.0.0", _jqlEditorCommon.ANALYTICS_CHANNEL);
10
10
  };
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.commonMessages = void 0;
7
- var _reactIntlNext = require("react-intl-next");
8
- var commonMessages = exports.commonMessages = (0, _reactIntlNext.defineMessages)({
7
+ var _reactIntl = require("react-intl");
8
+ var commonMessages = exports.commonMessages = (0, _reactIntl.defineMessages)({
9
9
  unknownError: {
10
10
  id: 'jql-editor.common.validation.unknown-error',
11
11
  defaultMessage: 'Unable to parse the query.',
@@ -6,9 +6,11 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = void 0;
9
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
11
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
12
  var _react = _interopRequireWildcard(require("react"));
13
+ var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
12
14
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
15
  var _popper = require("@atlaskit/popper");
14
16
  var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
@@ -20,6 +22,8 @@ var _messages = require("../../messages");
20
22
  var _autocompleteOption = _interopRequireDefault(require("../autocomplete-option"));
21
23
  var _styled = require("./styled");
22
24
  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); }
25
+ 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; }
26
+ 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; }
23
27
  var getPreviousOptionId = function getPreviousOptionId(options, selectedOptionId) {
24
28
  if (!selectedOptionId) {
25
29
  var _options;
@@ -103,6 +107,7 @@ var AutocompleteDropdown = function AutocompleteDropdown(_ref) {
103
107
  _useScopedId2 = (0, _slicedToArray2.default)(_useScopedId, 1),
104
108
  autocompleteId = _useScopedId2[0];
105
109
  var isPopperPositioningEnabled = (0, _platformFeatureFlags.fg)('jql_editor_autocomplete_use_popper');
110
+ var isScrollUIFixEnabled = _featureGateJsClient.default.getExperimentValue('anip-1289-scroll-issues-in-jql-autocomplete', 'isEnabled', false);
106
111
 
107
112
  // Create virtual reference element positioned at cursor location (for popper implementation)
108
113
  var virtualReferenceElement = (0, _react.useMemo)(function () {
@@ -336,7 +341,11 @@ var AutocompleteDropdown = function AutocompleteDropdown(_ref) {
336
341
  ref: ref
337
342
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Popper requires dynamic positioning via style prop
338
343
  ,
339
- style: style,
344
+ style: isScrollUIFixEnabled ? _objectSpread(_objectSpread({}, style), {}, {
345
+ // Popper's maxSize modifier can produce a maxWidth larger than our design cap on small
346
+ // viewports; clamp it here so the panel never overflows off-screen.
347
+ maxWidth: 'min(400px, calc(100vw - 16px))'
348
+ }) : style,
340
349
  isOpen: isAutocompleteOpen,
341
350
  usePopper: true,
342
351
  onBlur: onEditorViewBlur,
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.messages = void 0;
7
- var _reactIntlNext = require("react-intl-next");
8
- var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
7
+ var _reactIntl = require("react-intl");
8
+ var messages = exports.messages = (0, _reactIntl.defineMessages)({
9
9
  deprecatedFieldTooltipDefaultMessage: {
10
10
  id: 'jql-editor.plugins.autocomplete.autocomplete-option.deprecated-tooltip.default',
11
11
  defaultMessage: 'This field has been deprecated and may stop working in the future.',
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.messages = void 0;
7
- var _reactIntlNext = require("react-intl-next");
8
- var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
7
+ var _reactIntl = require("react-intl");
8
+ var messages = exports.messages = (0, _reactIntl.defineMessages)({
9
9
  optionsFound: {
10
10
  id: 'jql-editor.plugins.autocomplete.options-found',
11
11
  defaultMessage: 'Choose from the suggested list of options below.',
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.errorMessages = void 0;
7
- var _reactIntlNext = require("react-intl-next");
8
- var errorMessages = exports.errorMessages = (0, _reactIntlNext.defineMessages)({
7
+ var _reactIntl = require("react-intl");
8
+ var errorMessages = exports.errorMessages = (0, _reactIntl.defineMessages)({
9
9
  expectingOperatorButReceived: {
10
10
  id: 'jql-editor.plugins.jql-ast.error-messages.expectingOperatorButReceived',
11
11
  defaultMessage: "Expecting an operator but got ''{received}''. The valid operators are '=', '!=', '<', '>', '<=', '>=', '~', '!~', 'IN', 'NOT IN', 'IS' and 'IS NOT'.",
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.messages = void 0;
7
- var _reactIntlNext = require("react-intl-next");
8
- var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
7
+ var _reactIntl = require("react-intl");
8
+ var messages = exports.messages = (0, _reactIntl.defineMessages)({
9
9
  restrictedProject: {
10
10
  id: 'jql-editor.plugins.rich-inline-nodes.project.restrictedProject',
11
11
  defaultMessage: 'Restricted project',
@@ -13,7 +13,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
13
13
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
14
14
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
15
15
  var _react = _interopRequireDefault(require("react"));
16
- var _reactIntlNext = require("react-intl-next");
16
+ var _reactIntl = require("react-intl");
17
17
  var _emoji = require("@atlaskit/emoji");
18
18
  var _project = _interopRequireDefault(require("@atlaskit/icon/core/project"));
19
19
  var _compiled = require("@atlaskit/primitives/compiled");
@@ -47,7 +47,7 @@ var ProjectNode = exports.ProjectNode = function ProjectNode(props) {
47
47
  name = props.name,
48
48
  privateProject = props.privateProject,
49
49
  rest = (0, _objectWithoutProperties2.default)(props, _excluded);
50
- var _useIntl = (0, _reactIntlNext.useIntl)(),
50
+ var _useIntl = (0, _reactIntl.useIntl)(),
51
51
  formatMessage = _useIntl.formatMessage;
52
52
  var _useHydratedProject = (0, _state.useHydratedProject)({
53
53
  id: id,
@@ -10,7 +10,7 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
10
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
11
  var _clamp = _interopRequireDefault(require("lodash/clamp"));
12
12
  var _groupBy = _interopRequireDefault(require("lodash/groupBy"));
13
- var _reactIntlNext = require("react-intl-next");
13
+ var _reactIntl = require("react-intl");
14
14
  var _reactSweetState = require("react-sweet-state");
15
15
  var _merge = require("rxjs/observable/merge");
16
16
  var _tap = require("rxjs/operators/tap");
@@ -33,7 +33,7 @@ var _util = require("./hydration/util");
33
33
  var _util2 = require("./util");
34
34
  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; }
35
35
  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/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
36
- var initialIntl = (0, _reactIntlNext.createIntl)({
36
+ var initialIntl = (0, _reactIntl.createIntl)({
37
37
  locale: 'en'
38
38
  });
39
39
  var defaultAutocompleteOptions = {
@@ -7,14 +7,14 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.withIntlProvider = void 0;
8
8
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
9
9
  var _react = _interopRequireDefault(require("react"));
10
- var _reactIntlNext = require("react-intl-next");
10
+ var _reactIntl = require("react-intl");
11
11
  var _excluded = ["locale"];
12
12
  var withIntlProvider = exports.withIntlProvider = function withIntlProvider(WrappedComponent) {
13
13
  return function (props) {
14
14
  var locale = props.locale,
15
15
  rest = (0, _objectWithoutProperties2.default)(props, _excluded);
16
16
  if (locale) {
17
- return /*#__PURE__*/_react.default.createElement(_reactIntlNext.IntlProvider, {
17
+ return /*#__PURE__*/_react.default.createElement(_reactIntl.IntlProvider, {
18
18
  locale: locale
19
19
  }, /*#__PURE__*/_react.default.createElement(WrappedComponent, rest));
20
20
  }
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.default = void 0;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
- var _reactIntlNext = require("react-intl-next");
10
+ var _reactIntl = require("react-intl");
11
11
  var _reactMagneticDi = require("react-magnetic-di");
12
12
  var _analytics = require("../../analytics");
13
13
  var _useEditorTheme = require("../../hooks/use-editor-theme");
@@ -76,4 +76,4 @@ var JQLEditorInner = function JQLEditorInner(_ref) {
76
76
  inputRef: inputRef
77
77
  }))));
78
78
  };
79
- var _default = exports.default = (0, _reactIntlNext.injectIntl)(JQLEditorInner);
79
+ var _default = exports.default = (0, _reactIntl.injectIntl)(JQLEditorInner);
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.messages = void 0;
7
- var _reactIntlNext = require("react-intl-next");
8
- var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
7
+ var _reactIntl = require("react-intl");
8
+ var messages = exports.messages = (0, _reactIntl.defineMessages)({
9
9
  buttonLabel: {
10
10
  id: 'jql-editor.ui.jql-editor-controls-content.expand-toggle.button-label',
11
11
  defaultMessage: 'Editor',
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.messages = void 0;
7
- var _reactIntlNext = require("react-intl-next");
8
- var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
7
+ var _reactIntl = require("react-intl");
8
+ var messages = exports.messages = (0, _reactIntl.defineMessages)({
9
9
  searchLabel: {
10
10
  id: 'jql-editor.ui.jql-editor-controls-content.search.label',
11
11
  defaultMessage: 'Search',
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.messages = void 0;
7
- var _reactIntlNext = require("react-intl-next");
8
- var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
7
+ var _reactIntl = require("react-intl");
8
+ var messages = exports.messages = (0, _reactIntl.defineMessages)({
9
9
  syntaxHelpDescription: {
10
10
  id: 'jql-editor.ui.jql-editor-footer-content.jql-editor-help.syntax-help.description',
11
11
  defaultMessage: 'Open JQL syntax help in a new tab.',
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.messages = void 0;
7
- var _reactIntlNext = require("react-intl-next");
8
- var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
7
+ var _reactIntl = require("react-intl");
8
+ var messages = exports.messages = (0, _reactIntl.defineMessages)({
9
9
  searchCommand: {
10
10
  id: 'jql-editor.ui.jql-editor-help.search-command',
11
11
  defaultMessage: '<b>Enter</b> to search',
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.messages = void 0;
7
- var _reactIntlNext = require("react-intl-next");
8
- var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
7
+ var _reactIntl = require("react-intl");
8
+ var messages = exports.messages = (0, _reactIntl.defineMessages)({
9
9
  jqlErrorPosition: {
10
10
  id: 'jql-editor.ui.jql-validation-message.jql-error-position',
11
11
  defaultMessage: '(line {lineNumber}, character {charPosition})',
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.messages = void 0;
7
- var _reactIntlNext = require("react-intl-next");
8
- var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
7
+ var _reactIntl = require("react-intl");
8
+ var messages = exports.messages = (0, _reactIntl.defineMessages)({
9
9
  deprecatedParentReplacementMessage: {
10
10
  id: 'jql-editor.ui.jql-warning-message.deprecated-epic-link-or-parent-link-field',
11
11
  defaultMessage: '{deprecatedField} will soon be replaced with {parentReplacement}. <link>Update to {parentReplacement}</link> to prepare for these changes.',
@@ -8,7 +8,7 @@ exports.default = exports.JQLEditorReadOnly = void 0;
8
8
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
10
  var _react = _interopRequireDefault(require("react"));
11
- var _reactIntlNext = require("react-intl-next");
11
+ var _reactIntl = require("react-intl");
12
12
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
13
  var _compiled = require("@atlaskit/primitives/compiled");
14
14
  var _constants = require("../../common/constants");
@@ -82,7 +82,7 @@ var JQLEditorReadOnlyWithoutTheme = function JQLEditorReadOnlyWithoutTheme(_ref)
82
82
  defaultRows = _useEditorThemeContex2.defaultRows;
83
83
  var blocks = (0, _splitTextByNewLine.splitTextByNewLine)(query);
84
84
  var lineNumbersVisible = blocks.length > 1;
85
- var _useIntl = (0, _reactIntlNext.useIntl)(),
85
+ var _useIntl = (0, _reactIntl.useIntl)(),
86
86
  formatMessage = _useIntl.formatMessage;
87
87
  return /*#__PURE__*/_react.default.createElement(_styled.EditorMain, null, /*#__PURE__*/_react.default.createElement(_styled.ReadOnlyEditorViewContainer, null, /*#__PURE__*/_react.default.createElement(_styled.LineNumberToolbar, {
88
88
  lineNumbersVisible: lineNumbersVisible
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.messages = void 0;
7
- var _reactIntlNext = require("react-intl-next");
8
- var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
7
+ var _reactIntl = require("react-intl");
8
+ var messages = exports.messages = (0, _reactIntl.defineMessages)({
9
9
  inputLabel: {
10
10
  id: 'jql-editor.ui.input-label',
11
11
  defaultMessage: 'JQL query',
@@ -1,4 +1,4 @@
1
1
  import { ANALYTICS_CHANNEL, useJqlPackageAnalytics } from '@atlaskit/jql-editor-common';
2
2
  export const useJqlEditorAnalytics = analyticsSource => {
3
- return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "5.14.3", ANALYTICS_CHANNEL);
3
+ return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "6.0.0", ANALYTICS_CHANNEL);
4
4
  };
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export const commonMessages = defineMessages({
3
3
  unknownError: {
4
4
  id: 'jql-editor.common.validation.unknown-error',
@@ -1,5 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
3
+ import FeatureGates from '@atlaskit/feature-gate-js-client';
3
4
  import { fg } from '@atlaskit/platform-feature-flags';
4
5
  import { Popper } from '@atlaskit/popper';
5
6
  import Spinner from '@atlaskit/spinner';
@@ -75,6 +76,7 @@ const AutocompleteDropdown = ({
75
76
  const [areRichInlineNodesEnabled] = useRichInlineNodesEnabled();
76
77
  const [autocompleteId] = useScopedId(JQL_EDITOR_AUTOCOMPLETE_ID);
77
78
  const isPopperPositioningEnabled = fg('jql_editor_autocomplete_use_popper');
79
+ const isScrollUIFixEnabled = FeatureGates.getExperimentValue('anip-1289-scroll-issues-in-jql-autocomplete', 'isEnabled', false);
78
80
 
79
81
  // Create virtual reference element positioned at cursor location (for popper implementation)
80
82
  const virtualReferenceElement = useMemo(() => {
@@ -296,7 +298,12 @@ const AutocompleteDropdown = ({
296
298
  ref: ref
297
299
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Popper requires dynamic positioning via style prop
298
300
  ,
299
- style: style,
301
+ style: isScrollUIFixEnabled ? {
302
+ ...style,
303
+ // Popper's maxSize modifier can produce a maxWidth larger than our design cap on small
304
+ // viewports; clamp it here so the panel never overflows off-screen.
305
+ maxWidth: 'min(400px, calc(100vw - 16px))'
306
+ } : style,
300
307
  isOpen: isAutocompleteOpen,
301
308
  usePopper: true,
302
309
  onBlur: onEditorViewBlur,
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export const messages = defineMessages({
3
3
  deprecatedFieldTooltipDefaultMessage: {
4
4
  id: 'jql-editor.plugins.autocomplete.autocomplete-option.deprecated-tooltip.default',
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export const messages = defineMessages({
3
3
  optionsFound: {
4
4
  id: 'jql-editor.plugins.autocomplete.options-found',
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export const errorMessages = defineMessages({
3
3
  expectingOperatorButReceived: {
4
4
  id: 'jql-editor.plugins.jql-ast.error-messages.expectingOperatorButReceived',
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export const messages = defineMessages({
3
3
  restrictedProject: {
4
4
  id: 'jql-editor.plugins.rich-inline-nodes.project.restrictedProject',
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./project-node.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import React from 'react';
6
- import { useIntl } from 'react-intl-next';
6
+ import { useIntl } from 'react-intl';
7
7
  import { ResourcedEmoji } from '@atlaskit/emoji';
8
8
  import ProjectIcon from '@atlaskit/icon/core/project';
9
9
  import { Box } from '@atlaskit/primitives/compiled';
@@ -1,6 +1,6 @@
1
1
  import clamp from 'lodash/clamp';
2
2
  import groupBy from 'lodash/groupBy';
3
- import { createIntl } from 'react-intl-next';
3
+ import { createIntl } from 'react-intl';
4
4
  import { createContainer, createHook, createSelector, createStore } from 'react-sweet-state';
5
5
  import { merge } from 'rxjs/observable/merge';
6
6
  import { tap } from 'rxjs/operators/tap';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { IntlProvider } from 'react-intl-next';
2
+ import { IntlProvider } from 'react-intl';
3
3
  export const withIntlProvider = WrappedComponent => {
4
4
  return props => {
5
5
  const {
@@ -1,5 +1,5 @@
1
1
  import React, { useEffect, useRef } from 'react';
2
- import { injectIntl } from 'react-intl-next';
2
+ import { injectIntl } from 'react-intl';
3
3
  import { di } from 'react-magnetic-di';
4
4
  import { useJqlEditorAnalytics } from '../../analytics';
5
5
  import { EditorThemeContext, useEditorTheme } from '../../hooks/use-editor-theme';
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export const messages = defineMessages({
3
3
  buttonLabel: {
4
4
  id: 'jql-editor.ui.jql-editor-controls-content.expand-toggle.button-label',
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export const messages = defineMessages({
3
3
  searchLabel: {
4
4
  id: 'jql-editor.ui.jql-editor-controls-content.search.label',
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export const messages = defineMessages({
3
3
  syntaxHelpDescription: {
4
4
  id: 'jql-editor.ui.jql-editor-footer-content.jql-editor-help.syntax-help.description',
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export const messages = defineMessages({
3
3
  searchCommand: {
4
4
  id: 'jql-editor.ui.jql-editor-help.search-command',
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export const messages = defineMessages({
3
3
  jqlErrorPosition: {
4
4
  id: 'jql-editor.ui.jql-validation-message.jql-error-position',
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export const messages = defineMessages({
3
3
  deprecatedParentReplacementMessage: {
4
4
  id: 'jql-editor.ui.jql-warning-message.deprecated-epic-link-or-parent-link-field',
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
- import { useIntl } from 'react-intl-next';
3
+ import { useIntl } from 'react-intl';
4
4
  import { fg } from '@atlaskit/platform-feature-flags';
5
5
  import { Box } from '@atlaskit/primitives/compiled';
6
6
  import { JQL_EDITOR_MAIN_ID } from '../../common/constants';
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export const messages = defineMessages({
3
3
  inputLabel: {
4
4
  id: 'jql-editor.ui.input-label',
@@ -1,4 +1,4 @@
1
1
  import { ANALYTICS_CHANNEL, useJqlPackageAnalytics } from '@atlaskit/jql-editor-common';
2
2
  export var useJqlEditorAnalytics = function useJqlEditorAnalytics(analyticsSource) {
3
- return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "5.14.3", ANALYTICS_CHANNEL);
3
+ return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "6.0.0", ANALYTICS_CHANNEL);
4
4
  };
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export var commonMessages = defineMessages({
3
3
  unknownError: {
4
4
  id: 'jql-editor.common.validation.unknown-error',
@@ -1,6 +1,10 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
1
2
  import _extends from "@babel/runtime/helpers/extends";
2
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
+ 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; }
5
+ 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; }
3
6
  import React, { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
7
+ import FeatureGates from '@atlaskit/feature-gate-js-client';
4
8
  import { fg } from '@atlaskit/platform-feature-flags';
5
9
  import { Popper } from '@atlaskit/popper';
6
10
  import Spinner from '@atlaskit/spinner';
@@ -94,6 +98,7 @@ var AutocompleteDropdown = function AutocompleteDropdown(_ref) {
94
98
  _useScopedId2 = _slicedToArray(_useScopedId, 1),
95
99
  autocompleteId = _useScopedId2[0];
96
100
  var isPopperPositioningEnabled = fg('jql_editor_autocomplete_use_popper');
101
+ var isScrollUIFixEnabled = FeatureGates.getExperimentValue('anip-1289-scroll-issues-in-jql-autocomplete', 'isEnabled', false);
97
102
 
98
103
  // Create virtual reference element positioned at cursor location (for popper implementation)
99
104
  var virtualReferenceElement = useMemo(function () {
@@ -327,7 +332,11 @@ var AutocompleteDropdown = function AutocompleteDropdown(_ref) {
327
332
  ref: ref
328
333
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Popper requires dynamic positioning via style prop
329
334
  ,
330
- style: style,
335
+ style: isScrollUIFixEnabled ? _objectSpread(_objectSpread({}, style), {}, {
336
+ // Popper's maxSize modifier can produce a maxWidth larger than our design cap on small
337
+ // viewports; clamp it here so the panel never overflows off-screen.
338
+ maxWidth: 'min(400px, calc(100vw - 16px))'
339
+ }) : style,
331
340
  isOpen: isAutocompleteOpen,
332
341
  usePopper: true,
333
342
  onBlur: onEditorViewBlur,
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export var messages = defineMessages({
3
3
  deprecatedFieldTooltipDefaultMessage: {
4
4
  id: 'jql-editor.plugins.autocomplete.autocomplete-option.deprecated-tooltip.default',
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export var messages = defineMessages({
3
3
  optionsFound: {
4
4
  id: 'jql-editor.plugins.autocomplete.options-found',
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export var errorMessages = defineMessages({
3
3
  expectingOperatorButReceived: {
4
4
  id: 'jql-editor.plugins.jql-ast.error-messages.expectingOperatorButReceived',
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export var messages = defineMessages({
3
3
  restrictedProject: {
4
4
  id: 'jql-editor.plugins.rich-inline-nodes.project.restrictedProject',
@@ -6,7 +6,7 @@ var _excluded = ["id", "fieldName", "name", "privateProject"];
6
6
  import "./project-node.compiled.css";
7
7
  import { ax, ix } from "@compiled/react/runtime";
8
8
  import React from 'react';
9
- import { useIntl } from 'react-intl-next';
9
+ import { useIntl } from 'react-intl';
10
10
  import { ResourcedEmoji } from '@atlaskit/emoji';
11
11
  import ProjectIcon from '@atlaskit/icon/core/project';
12
12
  import { Box } from '@atlaskit/primitives/compiled';
@@ -5,7 +5,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
5
5
  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; }
6
6
  import clamp from 'lodash/clamp';
7
7
  import groupBy from 'lodash/groupBy';
8
- import { createIntl } from 'react-intl-next';
8
+ import { createIntl } from 'react-intl';
9
9
  import { createContainer, createHook, createSelector, createStore } from 'react-sweet-state';
10
10
  import { merge } from 'rxjs/observable/merge';
11
11
  import { tap } from 'rxjs/operators/tap';
@@ -1,7 +1,7 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
2
2
  var _excluded = ["locale"];
3
3
  import React from 'react';
4
- import { IntlProvider } from 'react-intl-next';
4
+ import { IntlProvider } from 'react-intl';
5
5
  export var withIntlProvider = function withIntlProvider(WrappedComponent) {
6
6
  return function (props) {
7
7
  var locale = props.locale,
@@ -1,5 +1,5 @@
1
1
  import React, { useEffect, useRef } from 'react';
2
- import { injectIntl } from 'react-intl-next';
2
+ import { injectIntl } from 'react-intl';
3
3
  import { di } from 'react-magnetic-di';
4
4
  import { useJqlEditorAnalytics } from '../../analytics';
5
5
  import { EditorThemeContext, useEditorTheme } from '../../hooks/use-editor-theme';
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export var messages = defineMessages({
3
3
  buttonLabel: {
4
4
  id: 'jql-editor.ui.jql-editor-controls-content.expand-toggle.button-label',
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export var messages = defineMessages({
3
3
  searchLabel: {
4
4
  id: 'jql-editor.ui.jql-editor-controls-content.search.label',
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export var messages = defineMessages({
3
3
  syntaxHelpDescription: {
4
4
  id: 'jql-editor.ui.jql-editor-footer-content.jql-editor-help.syntax-help.description',
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export var messages = defineMessages({
3
3
  searchCommand: {
4
4
  id: 'jql-editor.ui.jql-editor-help.search-command',
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export var messages = defineMessages({
3
3
  jqlErrorPosition: {
4
4
  id: 'jql-editor.ui.jql-validation-message.jql-error-position',
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export var messages = defineMessages({
3
3
  deprecatedParentReplacementMessage: {
4
4
  id: 'jql-editor.ui.jql-warning-message.deprecated-epic-link-or-parent-link-field',
@@ -2,7 +2,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  var _excluded = ["isSearch", "isCompact", "defaultRows"];
4
4
  import React from 'react';
5
- import { useIntl } from 'react-intl-next';
5
+ import { useIntl } from 'react-intl';
6
6
  import { fg } from '@atlaskit/platform-feature-flags';
7
7
  import { Box } from '@atlaskit/primitives/compiled';
8
8
  import { JQL_EDITOR_MAIN_ID } from '../../common/constants';
@@ -1,4 +1,4 @@
1
- import { defineMessages } from 'react-intl-next';
1
+ import { defineMessages } from 'react-intl';
2
2
  export var messages = defineMessages({
3
3
  inputLabel: {
4
4
  id: 'jql-editor.ui.input-label',
@@ -2,4 +2,4 @@ export { default as JQLEditor } from './ui';
2
2
  export { JQLEditorAsync, preloadJQLEditor } from './async';
3
3
  export { JQLEditorReadOnly } from './ui/jql-editor-layout';
4
4
  export { JQLEditorAnalyticsListener, ANALYTICS_CHANNEL, useJqlPackageAnalytics, EventType, } from './analytics';
5
- export type { ListenerProps, JqlAnalyticsEvent, JQLEditorUIProps, JQLEditorProps, HydratedValue, HydratedValues, HydratedUser, HydratedTeam, HydratedProject, AutocompleteOption, AutocompleteValueType, AutocompleteOptions, AutocompleteProvider, JQLClause, ExternalMessage, ExternalError, ExternalWarning, ExternalInfo, CustomComponents, } from './types';
5
+ export type { ListenerProps, JqlAnalyticsEvent, JQLEditorUIProps, JQLEditorProps, HydratedValue, HydratedValues, HydratedUser, HydratedTeam, HydratedProject, HydratedGoal, AutocompleteOption, AutocompleteValueType, AutocompleteOptions, AutocompleteProvider, JQLClause, ExternalMessage, ExternalError, ExternalWarning, ExternalInfo, CustomComponents, } from './types';
@@ -1,7 +1,7 @@
1
1
  import { type MutableRefObject } from 'react';
2
2
  import { DefaultErrorStrategy, type FailedPredicateException, type InputMismatchException, type Parser } from 'antlr4ts';
3
3
  import { type NoViableAltException } from 'antlr4ts/NoViableAltException';
4
- import { type IntlShape } from 'react-intl-next';
4
+ import { type IntlShape } from 'react-intl';
5
5
  import { JQLParser } from '@atlaskit/jql-parser';
6
6
  export declare const getPrintableChar: (char: string) => string;
7
7
  export declare const getJavaCodeFromChar: (char: string) => string;
@@ -1,4 +1,4 @@
1
- import { type IntlShape } from 'react-intl-next';
1
+ import { type IntlShape } from 'react-intl';
2
2
  /**
3
3
  * Show the appropriate error message when parsing JQL fails and a custom field rule was expected.
4
4
  */
@@ -1,6 +1,6 @@
1
1
  import { type Token } from 'antlr4ts';
2
2
  import { type RecognitionException } from 'antlr4ts/RecognitionException';
3
- import { type IntlShape } from 'react-intl-next';
3
+ import { type IntlShape } from 'react-intl';
4
4
  import { type JQLParser } from '@atlaskit/jql-parser';
5
5
  /**
6
6
  * Show the appropriate error message when parsing JQL fails and 0 or more tokens were expected.
@@ -1,5 +1,5 @@
1
1
  import { type Token } from 'antlr4ts';
2
- import { type IntlShape } from 'react-intl-next';
2
+ import { type IntlShape } from 'react-intl';
3
3
  /**
4
4
  * Show the appropriate error message when parsing JQL fails and a field property ID rule was expected.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import { type Token } from 'antlr4ts';
2
- import { type IntlShape } from 'react-intl-next';
2
+ import { type IntlShape } from 'react-intl';
3
3
  /**
4
4
  * Show the appropriate error message when parsing JQL fails and a field rule was expected.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import { type Token } from 'antlr4ts';
2
- import { type IntlShape } from 'react-intl-next';
2
+ import { type IntlShape } from 'react-intl';
3
3
  /**
4
4
  * Show the appropriate error message when parsing JQL fails and a function argument rule was expected.
5
5
  */
@@ -1,6 +1,6 @@
1
1
  import { type Token } from 'antlr4ts';
2
2
  import { type RecognitionException } from 'antlr4ts/RecognitionException';
3
- import { type IntlShape } from 'react-intl-next';
3
+ import { type IntlShape } from 'react-intl';
4
4
  import { type JQLRuleSuggestions } from '@atlaskit/jql-autocomplete';
5
5
  import { type JQLParser } from '@atlaskit/jql-parser';
6
6
  /**
@@ -1,5 +1,5 @@
1
1
  import { type Token } from 'antlr4ts';
2
- import { type IntlShape } from 'react-intl-next';
2
+ import { type IntlShape } from 'react-intl';
3
3
  /**
4
4
  * Show the appropriate error message when parsing JQL fails and an operator rule was expected.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import { type MutableRefObject } from 'react';
2
- import { type IntlShape } from 'react-intl-next';
2
+ import { type IntlShape } from 'react-intl';
3
3
  import { type EditorState, Plugin } from '@atlaskit/editor-prosemirror/state';
4
4
  import { type Jast } from '@atlaskit/jql-ast';
5
5
  export declare const getJastFromState: (state: EditorState) => Jast;
@@ -1,5 +1,5 @@
1
1
  import { type MutableRefObject } from 'react';
2
- import { type IntlShape } from 'react-intl-next';
2
+ import { type IntlShape } from 'react-intl';
3
3
  import { type ResolvedPos, Schema, type Slice } from '@atlaskit/editor-prosemirror/model';
4
4
  import { EditorState, type Transaction } from '@atlaskit/editor-prosemirror/state';
5
5
  import { type EditorView } from '@atlaskit/editor-prosemirror/view';
@@ -1,5 +1,5 @@
1
1
  import { type FocusEvent, type MouseEvent } from 'react';
2
- import { type IntlShape } from 'react-intl-next';
2
+ import { type IntlShape } from 'react-intl';
3
3
  import { type Action } from 'react-sweet-state';
4
4
  import { type Observable } from 'rxjs/Observable';
5
5
  import { type EditorState, type Transaction } from '@atlaskit/editor-prosemirror/state';
@@ -1,5 +1,5 @@
1
1
  import { type FocusEvent, type MouseEvent, type MutableRefObject, type PropsWithChildren, type ReactNode } from 'react';
2
- import { type IntlShape } from 'react-intl-next';
2
+ import { type IntlShape } from 'react-intl';
3
3
  import { type Subscription } from 'rxjs/Subscription';
4
4
  import { type EditorState } from '@atlaskit/editor-prosemirror/state';
5
5
  import { type EditorView } from '@atlaskit/editor-prosemirror/view';
@@ -1,5 +1,5 @@
1
1
  export type { JQLClause } from '@atlaskit/jql-autocomplete';
2
- export type { JQLEditorUIProps, JQLEditorProps, HydratedValues, HydratedValue, HydratedUser, HydratedTeam, HydratedProject, } from './ui/types';
2
+ export type { JQLEditorUIProps, JQLEditorProps, HydratedValues, HydratedValue, HydratedUser, HydratedTeam, HydratedProject, HydratedGoal, } from './ui/types';
3
3
  export type { ExternalMessage, ExternalError, ExternalWarning, ExternalInfo, CustomComponents, } from './state/types';
4
4
  export type { AutocompleteProvider, AutocompleteOptions, AutocompleteOption, AutocompleteValueType, } from './plugins/types';
5
5
  export type { ListenerProps, JqlAnalyticsEvent } from './analytics';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type IntlShape } from 'react-intl-next';
2
+ import { type IntlShape } from 'react-intl';
3
3
  import { type JQLEditorUIProps } from './types';
4
4
  export type JQLEditorInnerProps = JQLEditorUIProps & {
5
5
  /**
@@ -7,7 +7,7 @@ export type JQLEditorInnerProps = JQLEditorUIProps & {
7
7
  */
8
8
  intl: IntlShape;
9
9
  };
10
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<JQLEditorInnerProps>> & {
10
+ declare const _default: React.FC<import("react-intl").WithIntlProps<JQLEditorInnerProps>> & {
11
11
  WrappedComponent: React.ComponentType<JQLEditorInnerProps>;
12
12
  };
13
13
  export default _default;
@@ -22,6 +22,12 @@ export type HydratedProject = {
22
22
  privateProject?: boolean;
23
23
  type: 'project';
24
24
  };
25
+ export type HydratedGoal = {
26
+ id: string;
27
+ name: string;
28
+ status?: string | null | undefined;
29
+ type: 'goal';
30
+ };
25
31
  export type HydratedDeprecatedField = {
26
32
  deprecatedSearcherKey: string;
27
33
  /**
@@ -30,7 +36,7 @@ export type HydratedDeprecatedField = {
30
36
  id: string;
31
37
  type: 'deprecated-field';
32
38
  };
33
- export type HydratedValue = HydratedUser | HydratedTeam | HydratedProject | HydratedDeprecatedField;
39
+ export type HydratedValue = HydratedUser | HydratedTeam | HydratedProject | HydratedGoal | HydratedDeprecatedField;
34
40
  export type HydratedValues = {
35
41
  [fieldName: string]: HydratedValue[];
36
42
  };
@@ -1,5 +1,5 @@
1
1
  import { type JQLEditorUIProps } from './jql-editor/types';
2
- export type { JQLEditorUIProps, HydratedValue, HydratedValues, HydratedUser, HydratedTeam, HydratedProject, } from './jql-editor/types';
2
+ export type { JQLEditorUIProps, HydratedValue, HydratedValues, HydratedUser, HydratedTeam, HydratedProject, HydratedGoal, } from './jql-editor/types';
3
3
  export type JQLEditorProps = JQLEditorUIProps & {
4
4
  /**
5
5
  * React-intl locale. This should be set to "en" if alternate message sets are not being loaded higher in the React
@@ -2,4 +2,4 @@ export { default as JQLEditor } from './ui';
2
2
  export { JQLEditorAsync, preloadJQLEditor } from './async';
3
3
  export { JQLEditorReadOnly } from './ui/jql-editor-layout';
4
4
  export { JQLEditorAnalyticsListener, ANALYTICS_CHANNEL, useJqlPackageAnalytics, EventType, } from './analytics';
5
- export type { ListenerProps, JqlAnalyticsEvent, JQLEditorUIProps, JQLEditorProps, HydratedValue, HydratedValues, HydratedUser, HydratedTeam, HydratedProject, AutocompleteOption, AutocompleteValueType, AutocompleteOptions, AutocompleteProvider, JQLClause, ExternalMessage, ExternalError, ExternalWarning, ExternalInfo, CustomComponents, } from './types';
5
+ export type { ListenerProps, JqlAnalyticsEvent, JQLEditorUIProps, JQLEditorProps, HydratedValue, HydratedValues, HydratedUser, HydratedTeam, HydratedProject, HydratedGoal, AutocompleteOption, AutocompleteValueType, AutocompleteOptions, AutocompleteProvider, JQLClause, ExternalMessage, ExternalError, ExternalWarning, ExternalInfo, CustomComponents, } from './types';
@@ -1,7 +1,7 @@
1
1
  import { type MutableRefObject } from 'react';
2
2
  import { DefaultErrorStrategy, type FailedPredicateException, type InputMismatchException, type Parser } from 'antlr4ts';
3
3
  import { type NoViableAltException } from 'antlr4ts/NoViableAltException';
4
- import { type IntlShape } from 'react-intl-next';
4
+ import { type IntlShape } from 'react-intl';
5
5
  import { JQLParser } from '@atlaskit/jql-parser';
6
6
  export declare const getPrintableChar: (char: string) => string;
7
7
  export declare const getJavaCodeFromChar: (char: string) => string;
@@ -1,4 +1,4 @@
1
- import { type IntlShape } from 'react-intl-next';
1
+ import { type IntlShape } from 'react-intl';
2
2
  /**
3
3
  * Show the appropriate error message when parsing JQL fails and a custom field rule was expected.
4
4
  */
@@ -1,6 +1,6 @@
1
1
  import { type Token } from 'antlr4ts';
2
2
  import { type RecognitionException } from 'antlr4ts/RecognitionException';
3
- import { type IntlShape } from 'react-intl-next';
3
+ import { type IntlShape } from 'react-intl';
4
4
  import { type JQLParser } from '@atlaskit/jql-parser';
5
5
  /**
6
6
  * Show the appropriate error message when parsing JQL fails and 0 or more tokens were expected.
@@ -1,5 +1,5 @@
1
1
  import { type Token } from 'antlr4ts';
2
- import { type IntlShape } from 'react-intl-next';
2
+ import { type IntlShape } from 'react-intl';
3
3
  /**
4
4
  * Show the appropriate error message when parsing JQL fails and a field property ID rule was expected.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import { type Token } from 'antlr4ts';
2
- import { type IntlShape } from 'react-intl-next';
2
+ import { type IntlShape } from 'react-intl';
3
3
  /**
4
4
  * Show the appropriate error message when parsing JQL fails and a field rule was expected.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import { type Token } from 'antlr4ts';
2
- import { type IntlShape } from 'react-intl-next';
2
+ import { type IntlShape } from 'react-intl';
3
3
  /**
4
4
  * Show the appropriate error message when parsing JQL fails and a function argument rule was expected.
5
5
  */
@@ -1,6 +1,6 @@
1
1
  import { type Token } from 'antlr4ts';
2
2
  import { type RecognitionException } from 'antlr4ts/RecognitionException';
3
- import { type IntlShape } from 'react-intl-next';
3
+ import { type IntlShape } from 'react-intl';
4
4
  import { type JQLRuleSuggestions } from '@atlaskit/jql-autocomplete';
5
5
  import { type JQLParser } from '@atlaskit/jql-parser';
6
6
  /**
@@ -1,5 +1,5 @@
1
1
  import { type Token } from 'antlr4ts';
2
- import { type IntlShape } from 'react-intl-next';
2
+ import { type IntlShape } from 'react-intl';
3
3
  /**
4
4
  * Show the appropriate error message when parsing JQL fails and an operator rule was expected.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import { type MutableRefObject } from 'react';
2
- import { type IntlShape } from 'react-intl-next';
2
+ import { type IntlShape } from 'react-intl';
3
3
  import { type EditorState, Plugin } from '@atlaskit/editor-prosemirror/state';
4
4
  import { type Jast } from '@atlaskit/jql-ast';
5
5
  export declare const getJastFromState: (state: EditorState) => Jast;
@@ -1,5 +1,5 @@
1
1
  import { type MutableRefObject } from 'react';
2
- import { type IntlShape } from 'react-intl-next';
2
+ import { type IntlShape } from 'react-intl';
3
3
  import { type ResolvedPos, Schema, type Slice } from '@atlaskit/editor-prosemirror/model';
4
4
  import { EditorState, type Transaction } from '@atlaskit/editor-prosemirror/state';
5
5
  import { type EditorView } from '@atlaskit/editor-prosemirror/view';
@@ -1,5 +1,5 @@
1
1
  import { type FocusEvent, type MouseEvent } from 'react';
2
- import { type IntlShape } from 'react-intl-next';
2
+ import { type IntlShape } from 'react-intl';
3
3
  import { type Action } from 'react-sweet-state';
4
4
  import { type Observable } from 'rxjs/Observable';
5
5
  import { type EditorState, type Transaction } from '@atlaskit/editor-prosemirror/state';
@@ -1,5 +1,5 @@
1
1
  import { type FocusEvent, type MouseEvent, type MutableRefObject, type PropsWithChildren, type ReactNode } from 'react';
2
- import { type IntlShape } from 'react-intl-next';
2
+ import { type IntlShape } from 'react-intl';
3
3
  import { type Subscription } from 'rxjs/Subscription';
4
4
  import { type EditorState } from '@atlaskit/editor-prosemirror/state';
5
5
  import { type EditorView } from '@atlaskit/editor-prosemirror/view';
@@ -1,5 +1,5 @@
1
1
  export type { JQLClause } from '@atlaskit/jql-autocomplete';
2
- export type { JQLEditorUIProps, JQLEditorProps, HydratedValues, HydratedValue, HydratedUser, HydratedTeam, HydratedProject, } from './ui/types';
2
+ export type { JQLEditorUIProps, JQLEditorProps, HydratedValues, HydratedValue, HydratedUser, HydratedTeam, HydratedProject, HydratedGoal, } from './ui/types';
3
3
  export type { ExternalMessage, ExternalError, ExternalWarning, ExternalInfo, CustomComponents, } from './state/types';
4
4
  export type { AutocompleteProvider, AutocompleteOptions, AutocompleteOption, AutocompleteValueType, } from './plugins/types';
5
5
  export type { ListenerProps, JqlAnalyticsEvent } from './analytics';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type IntlShape } from 'react-intl-next';
2
+ import { type IntlShape } from 'react-intl';
3
3
  import { type JQLEditorUIProps } from './types';
4
4
  export type JQLEditorInnerProps = JQLEditorUIProps & {
5
5
  /**
@@ -7,7 +7,7 @@ export type JQLEditorInnerProps = JQLEditorUIProps & {
7
7
  */
8
8
  intl: IntlShape;
9
9
  };
10
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<JQLEditorInnerProps>> & {
10
+ declare const _default: React.FC<import("react-intl").WithIntlProps<JQLEditorInnerProps>> & {
11
11
  WrappedComponent: React.ComponentType<JQLEditorInnerProps>;
12
12
  };
13
13
  export default _default;
@@ -22,6 +22,12 @@ export type HydratedProject = {
22
22
  privateProject?: boolean;
23
23
  type: 'project';
24
24
  };
25
+ export type HydratedGoal = {
26
+ id: string;
27
+ name: string;
28
+ status?: string | null | undefined;
29
+ type: 'goal';
30
+ };
25
31
  export type HydratedDeprecatedField = {
26
32
  deprecatedSearcherKey: string;
27
33
  /**
@@ -30,7 +36,7 @@ export type HydratedDeprecatedField = {
30
36
  id: string;
31
37
  type: 'deprecated-field';
32
38
  };
33
- export type HydratedValue = HydratedUser | HydratedTeam | HydratedProject | HydratedDeprecatedField;
39
+ export type HydratedValue = HydratedUser | HydratedTeam | HydratedProject | HydratedGoal | HydratedDeprecatedField;
34
40
  export type HydratedValues = {
35
41
  [fieldName: string]: HydratedValue[];
36
42
  };
@@ -1,5 +1,5 @@
1
1
  import { type JQLEditorUIProps } from './jql-editor/types';
2
- export type { JQLEditorUIProps, HydratedValue, HydratedValues, HydratedUser, HydratedTeam, HydratedProject, } from './jql-editor/types';
2
+ export type { JQLEditorUIProps, HydratedValue, HydratedValues, HydratedUser, HydratedTeam, HydratedProject, HydratedGoal, } from './jql-editor/types';
3
3
  export type JQLEditorProps = JQLEditorUIProps & {
4
4
  /**
5
5
  * React-intl locale. This should be set to "en" if alternate message sets are not being loaded higher in the React
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/jql-editor",
3
- "version": "5.14.4",
3
+ "version": "6.1.0",
4
4
  "description": "This package allows consumers to render an advanced JQL editor component to enable autocomplete-assisted authoring and validation of JQL queries.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -51,12 +51,12 @@
51
51
  "@atlaskit/link": "^3.4.0",
52
52
  "@atlaskit/platform-feature-flags": "^1.1.0",
53
53
  "@atlaskit/popper": "^7.1.0",
54
- "@atlaskit/primitives": "^18.1.0",
54
+ "@atlaskit/primitives": "^19.0.0",
55
55
  "@atlaskit/prosemirror-history": "^0.2.0",
56
56
  "@atlaskit/spinner": "^19.1.0",
57
57
  "@atlaskit/teams-avatar": "^2.4.0",
58
58
  "@atlaskit/theme": "^23.0.0",
59
- "@atlaskit/tokens": "^12.0.0",
59
+ "@atlaskit/tokens": "^13.0.0",
60
60
  "@atlaskit/tooltip": "^21.1.0",
61
61
  "@atlaskit/townsquare-emoji-provider": "^1.0.0",
62
62
  "@babel/runtime": "^7.0.0",
@@ -66,7 +66,6 @@
66
66
  "antlr4ts": "0.5.0-alpha.4",
67
67
  "assert": "^2.0.0",
68
68
  "lodash": "^4.17.21",
69
- "react-intl-next": "npm:react-intl@^5.18.1",
70
69
  "react-loosely-lazy": "^1.0.0",
71
70
  "react-magnetic-di": "^3.1.4",
72
71
  "react-sweet-state": "^2.6.5",
@@ -76,18 +75,20 @@
76
75
  },
77
76
  "peerDependencies": {
78
77
  "react": "^18.2.0",
79
- "react-dom": "^18.2.0"
78
+ "react-dom": "^18.2.0",
79
+ "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
80
80
  },
81
81
  "devDependencies": {
82
82
  "@af/integration-testing": "workspace:^",
83
83
  "@af/visual-regression": "workspace:^",
84
- "@atlaskit/docs": "^11.7.0",
84
+ "@atlaskit/docs": "^11.8.0",
85
85
  "@atlaskit/jql-editor-autocomplete-rest": "^3.1.0",
86
86
  "@atlassian/feature-flags-storybook-utils": "^0.3.0",
87
87
  "@atlassian/feature-flags-test-utils": "^1.0.0",
88
88
  "@storybook/addon-actions": "^8.6.14",
89
89
  "@testing-library/jest-dom": "^6.4.5",
90
90
  "@testing-library/react": "^16.3.0",
91
+ "react-intl": "^6.6.2",
91
92
  "wait-for-expect": "^1.2.0"
92
93
  },
93
94
  "techstack": {