@atlaskit/jql-editor 6.4.1 → 6.4.3
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.
- package/CHANGELOG.md +14 -0
- package/dist/cjs/analytics/util.js +1 -1
- package/dist/cjs/plugins/autocomplete/components/autocomplete-dropdown/index.js +4 -7
- package/dist/es2019/analytics/util.js +1 -1
- package/dist/es2019/plugins/autocomplete/components/autocomplete-dropdown/index.js +5 -7
- package/dist/esm/analytics/util.js +1 -1
- package/dist/esm/plugins/autocomplete/components/autocomplete-dropdown/index.js +4 -7
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/jql-editor
|
|
2
2
|
|
|
3
|
+
## 6.4.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 6.4.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`4f13d0c596cb7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4f13d0c596cb7) -
|
|
14
|
+
Cleanup experiment gate `anip-1289-scroll-issues-in-jql-autocomplete`. The scroll fix (maxWidth
|
|
15
|
+
clamping on the autocomplete Popper panel) is now permanently enabled.
|
|
16
|
+
|
|
3
17
|
## 6.4.1
|
|
4
18
|
|
|
5
19
|
### 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", "
|
|
9
|
+
return (0, _jqlEditorCommon.useJqlPackageAnalytics)(analyticsSource, "@atlaskit/jql-editor", "6.4.2", _jqlEditorCommon.ANALYTICS_CHANNEL);
|
|
10
10
|
};
|
|
@@ -10,7 +10,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
-
var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
|
|
14
13
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
14
|
var _popper = require("@atlaskit/popper");
|
|
16
15
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
@@ -107,7 +106,6 @@ var AutocompleteDropdown = function AutocompleteDropdown(_ref) {
|
|
|
107
106
|
_useScopedId2 = (0, _slicedToArray2.default)(_useScopedId, 1),
|
|
108
107
|
autocompleteId = _useScopedId2[0];
|
|
109
108
|
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);
|
|
111
109
|
|
|
112
110
|
// Create virtual reference element positioned at cursor location (for popper implementation)
|
|
113
111
|
var virtualReferenceElement = (0, _react.useMemo)(function () {
|
|
@@ -338,14 +336,13 @@ var AutocompleteDropdown = function AutocompleteDropdown(_ref) {
|
|
|
338
336
|
return /*#__PURE__*/_react.default.createElement(_styled.AutocompleteContainer, {
|
|
339
337
|
"data-testid": "jql-editor-autocomplete",
|
|
340
338
|
tabIndex: -1,
|
|
341
|
-
ref: ref
|
|
342
|
-
|
|
343
|
-
,
|
|
344
|
-
style: isScrollUIFixEnabled ? _objectSpread(_objectSpread({}, style), {}, {
|
|
339
|
+
ref: ref,
|
|
340
|
+
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
345
341
|
// Popper's maxSize modifier can produce a maxWidth larger than our design cap on small
|
|
346
342
|
// viewports; clamp it here so the panel never overflows off-screen.
|
|
343
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- inline style needed to override Popper shouldFitViewport
|
|
347
344
|
maxWidth: 'min(400px, calc(100vw - 16px))'
|
|
348
|
-
})
|
|
345
|
+
}),
|
|
349
346
|
isOpen: isAutocompleteOpen,
|
|
350
347
|
usePopper: true,
|
|
351
348
|
onBlur: onEditorViewBlur,
|
|
@@ -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", "
|
|
3
|
+
return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "6.4.2", ANALYTICS_CHANNEL);
|
|
4
4
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
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';
|
|
4
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
4
|
import { Popper } from '@atlaskit/popper';
|
|
6
5
|
import Spinner from '@atlaskit/spinner';
|
|
@@ -76,7 +75,6 @@ const AutocompleteDropdown = ({
|
|
|
76
75
|
const [areRichInlineNodesEnabled] = useRichInlineNodesEnabled();
|
|
77
76
|
const [autocompleteId] = useScopedId(JQL_EDITOR_AUTOCOMPLETE_ID);
|
|
78
77
|
const isPopperPositioningEnabled = fg('jql_editor_autocomplete_use_popper');
|
|
79
|
-
const isScrollUIFixEnabled = FeatureGates.getExperimentValue('anip-1289-scroll-issues-in-jql-autocomplete', 'isEnabled', false);
|
|
80
78
|
|
|
81
79
|
// Create virtual reference element positioned at cursor location (for popper implementation)
|
|
82
80
|
const virtualReferenceElement = useMemo(() => {
|
|
@@ -295,15 +293,15 @@ const AutocompleteDropdown = ({
|
|
|
295
293
|
}) => /*#__PURE__*/React.createElement(AutocompleteContainer, {
|
|
296
294
|
"data-testid": "jql-editor-autocomplete",
|
|
297
295
|
tabIndex: -1,
|
|
298
|
-
ref: ref
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
style: isScrollUIFixEnabled ? {
|
|
296
|
+
ref: ref,
|
|
297
|
+
style: {
|
|
298
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
302
299
|
...style,
|
|
303
300
|
// Popper's maxSize modifier can produce a maxWidth larger than our design cap on small
|
|
304
301
|
// viewports; clamp it here so the panel never overflows off-screen.
|
|
302
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- inline style needed to override Popper shouldFitViewport
|
|
305
303
|
maxWidth: 'min(400px, calc(100vw - 16px))'
|
|
306
|
-
}
|
|
304
|
+
},
|
|
307
305
|
isOpen: isAutocompleteOpen,
|
|
308
306
|
usePopper: true,
|
|
309
307
|
onBlur: onEditorViewBlur,
|
|
@@ -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", "
|
|
3
|
+
return useJqlPackageAnalytics(analyticsSource, "@atlaskit/jql-editor", "6.4.2", ANALYTICS_CHANNEL);
|
|
4
4
|
};
|
|
@@ -4,7 +4,6 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
4
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
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 React, { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
|
|
7
|
-
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
8
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { Popper } from '@atlaskit/popper';
|
|
10
9
|
import Spinner from '@atlaskit/spinner';
|
|
@@ -98,7 +97,6 @@ var AutocompleteDropdown = function AutocompleteDropdown(_ref) {
|
|
|
98
97
|
_useScopedId2 = _slicedToArray(_useScopedId, 1),
|
|
99
98
|
autocompleteId = _useScopedId2[0];
|
|
100
99
|
var isPopperPositioningEnabled = fg('jql_editor_autocomplete_use_popper');
|
|
101
|
-
var isScrollUIFixEnabled = FeatureGates.getExperimentValue('anip-1289-scroll-issues-in-jql-autocomplete', 'isEnabled', false);
|
|
102
100
|
|
|
103
101
|
// Create virtual reference element positioned at cursor location (for popper implementation)
|
|
104
102
|
var virtualReferenceElement = useMemo(function () {
|
|
@@ -329,14 +327,13 @@ var AutocompleteDropdown = function AutocompleteDropdown(_ref) {
|
|
|
329
327
|
return /*#__PURE__*/React.createElement(AutocompleteContainer, {
|
|
330
328
|
"data-testid": "jql-editor-autocomplete",
|
|
331
329
|
tabIndex: -1,
|
|
332
|
-
ref: ref
|
|
333
|
-
|
|
334
|
-
,
|
|
335
|
-
style: isScrollUIFixEnabled ? _objectSpread(_objectSpread({}, style), {}, {
|
|
330
|
+
ref: ref,
|
|
331
|
+
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
336
332
|
// Popper's maxSize modifier can produce a maxWidth larger than our design cap on small
|
|
337
333
|
// viewports; clamp it here so the panel never overflows off-screen.
|
|
334
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- inline style needed to override Popper shouldFitViewport
|
|
338
335
|
maxWidth: 'min(400px, calc(100vw - 16px))'
|
|
339
|
-
})
|
|
336
|
+
}),
|
|
340
337
|
isOpen: isAutocompleteOpen,
|
|
341
338
|
usePopper: true,
|
|
342
339
|
onBlur: onEditorViewBlur,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/jql-editor",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.3",
|
|
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",
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"@atlaskit/button": "^23.11.0",
|
|
47
47
|
"@atlaskit/css": "^0.19.0",
|
|
48
48
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
49
|
-
"@atlaskit/emoji": "^70.
|
|
50
|
-
"@atlaskit/feature-gate-js-client": "^5.
|
|
49
|
+
"@atlaskit/emoji": "^70.9.0",
|
|
50
|
+
"@atlaskit/feature-gate-js-client": "^5.7.0",
|
|
51
51
|
"@atlaskit/form": "^15.5.0",
|
|
52
|
-
"@atlaskit/icon": "^
|
|
52
|
+
"@atlaskit/icon": "^35.0.0",
|
|
53
53
|
"@atlaskit/icon-lab": "^6.9.0",
|
|
54
54
|
"@atlaskit/jql-ast": "^3.4.0",
|
|
55
55
|
"@atlaskit/jql-autocomplete": "^2.1.0",
|