@atlaskit/editor-plugin-type-ahead 11.1.3 → 11.1.5
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 +16 -0
- package/dist/cjs/ui/MoreOptions.js +2 -3
- package/dist/cjs/ui/TypeAheadListItem.js +2 -3
- package/dist/cjs/ui/TypeAheadPopup.js +5 -1
- package/dist/es2019/ui/MoreOptions.js +2 -3
- package/dist/es2019/ui/TypeAheadListItem.js +2 -3
- package/dist/es2019/ui/TypeAheadPopup.js +5 -1
- package/dist/esm/ui/MoreOptions.js +2 -3
- package/dist/esm/ui/TypeAheadListItem.js +2 -3
- package/dist/esm/ui/TypeAheadPopup.js +5 -1
- package/dist/types/ui/TypeAheadPopup.d.ts +1 -1
- package/dist/types-ts4.5/ui/TypeAheadPopup.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-type-ahead
|
|
2
2
|
|
|
3
|
+
## 11.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 11.1.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`2b3602c6e9f97`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2b3602c6e9f97) -
|
|
14
|
+
Clean up feature flag 'platform_safari_cursor_typeahead_fix'
|
|
15
|
+
- [`458baedee68e8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/458baedee68e8) -
|
|
16
|
+
[ux] Set Border radius px to 8px to align with figma designs
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 11.1.3
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -9,7 +9,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
var _react2 = require("@emotion/react");
|
|
10
10
|
var _browser = require("@atlaskit/editor-common/browser");
|
|
11
11
|
var _menu = require("@atlaskit/menu");
|
|
12
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
13
12
|
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); }
|
|
14
13
|
/**
|
|
15
14
|
* @jsxRuntime classic
|
|
@@ -39,7 +38,7 @@ var MoreOptions = exports.MoreOptions = function MoreOptions(_ref) {
|
|
|
39
38
|
var isSafari = (0, _browser.getBrowserInfo)().safari;
|
|
40
39
|
(0, _react.useEffect)(function () {
|
|
41
40
|
if (isFocused && ref.current) {
|
|
42
|
-
var skipFocusOnSafariHover = isSafari && (lastInputMethodRef === null || lastInputMethodRef === void 0 ? void 0 : lastInputMethodRef.current) === 'mouse'
|
|
41
|
+
var skipFocusOnSafariHover = isSafari && (lastInputMethodRef === null || lastInputMethodRef === void 0 ? void 0 : lastInputMethodRef.current) === 'mouse';
|
|
43
42
|
if (!skipFocusOnSafariHover) {
|
|
44
43
|
ref.current.focus();
|
|
45
44
|
}
|
|
@@ -75,7 +74,7 @@ var MoreOptions = exports.MoreOptions = function MoreOptions(_ref) {
|
|
|
75
74
|
ref: ref
|
|
76
75
|
/* eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed) */,
|
|
77
76
|
onMouseDown: function onMouseDown(e) {
|
|
78
|
-
if (isSafari
|
|
77
|
+
if (isSafari) {
|
|
79
78
|
e.preventDefault();
|
|
80
79
|
}
|
|
81
80
|
},
|
|
@@ -18,7 +18,6 @@ var _editorPluginConnectivity = require("@atlaskit/editor-plugin-connectivity");
|
|
|
18
18
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
19
19
|
var _shortcut = require("@atlaskit/editor-shared-styles/shortcut");
|
|
20
20
|
var _menu = require("@atlaskit/menu");
|
|
21
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
22
21
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
23
22
|
var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"));
|
|
24
23
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
@@ -226,7 +225,7 @@ var TypeAheadListItem = exports.TypeAheadListItem = /*#__PURE__*/_react.default.
|
|
|
226
225
|
}, [isSelected, itemIsDisabled]);
|
|
227
226
|
(0, _react.useLayoutEffect)(function () {
|
|
228
227
|
if (shouldUpdateFocus) {
|
|
229
|
-
var skipFocusOnSafariHover = isSafari && (lastInputMethodRef === null || lastInputMethodRef === void 0 ? void 0 : lastInputMethodRef.current) === 'mouse'
|
|
228
|
+
var skipFocusOnSafariHover = isSafari && (lastInputMethodRef === null || lastInputMethodRef === void 0 ? void 0 : lastInputMethodRef.current) === 'mouse';
|
|
230
229
|
if (!skipFocusOnSafariHover) {
|
|
231
230
|
var _customItemRef$curren;
|
|
232
231
|
customItemRef === null || customItemRef === void 0 || (_customItemRef$curren = customItemRef.current) === null || _customItemRef$curren === void 0 || _customItemRef$curren.focus();
|
|
@@ -235,7 +234,7 @@ var TypeAheadListItem = exports.TypeAheadListItem = /*#__PURE__*/_react.default.
|
|
|
235
234
|
}, [customItemRef, shouldUpdateFocus, lastInputMethodRef, isSafari]);
|
|
236
235
|
(0, _react.useLayoutEffect)(function () {
|
|
237
236
|
if (shouldUpdateFocus) {
|
|
238
|
-
var skipFocusOnSafariHover = isSafari && (lastInputMethodRef === null || lastInputMethodRef === void 0 ? void 0 : lastInputMethodRef.current) === 'mouse'
|
|
237
|
+
var skipFocusOnSafariHover = isSafari && (lastInputMethodRef === null || lastInputMethodRef === void 0 ? void 0 : lastInputMethodRef.current) === 'mouse';
|
|
239
238
|
if (!skipFocusOnSafariHover) {
|
|
240
239
|
var _buttonItemRef$curren;
|
|
241
240
|
buttonItemRef === null || buttonItemRef === void 0 || (_buttonItemRef$curren = buttonItemRef.current) === null || _buttonItemRef$curren === void 0 || _buttonItemRef$curren.focus();
|
|
@@ -16,6 +16,7 @@ var _typeAhead = require("@atlaskit/editor-common/type-ahead");
|
|
|
16
16
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
17
17
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
18
18
|
var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
|
|
19
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
19
20
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
20
21
|
var _analytics2 = require("../pm-plugins/analytics");
|
|
21
22
|
var _constants = require("../pm-plugins/constants");
|
|
@@ -52,6 +53,9 @@ var typeAheadWrapperWithViewMoreOverride = (0, _react2.css)({
|
|
|
52
53
|
display: 'flex',
|
|
53
54
|
flexDirection: 'column'
|
|
54
55
|
});
|
|
56
|
+
var typeAheadContentOverrideBorder = (0, _react2.css)({
|
|
57
|
+
borderRadius: "var(--ds-radius-large, 8px)"
|
|
58
|
+
});
|
|
55
59
|
var Highlight = function Highlight(_ref) {
|
|
56
60
|
var state = _ref.state,
|
|
57
61
|
triggerHandler = _ref.triggerHandler;
|
|
@@ -337,7 +341,7 @@ var TypeAheadPopup = exports.TypeAheadPopup = /*#__PURE__*/_react.default.memo(f
|
|
|
337
341
|
}
|
|
338
342
|
}
|
|
339
343
|
}, (0, _react2.jsx)("div", {
|
|
340
|
-
css: [typeAheadContent, moreElementsInQuickInsertViewEnabled && typeAheadContentOverride, showMoreOptionsButton && typeAheadWrapperWithViewMoreOverride]
|
|
344
|
+
css: [typeAheadContent, moreElementsInQuickInsertViewEnabled && typeAheadContentOverride, showMoreOptionsButton && typeAheadWrapperWithViewMoreOverride, (0, _expValEquals.expValEquals)('cc-markdown-mode', 'isEnabled', true) && typeAheadContentOverrideBorder]
|
|
341
345
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
342
346
|
,
|
|
343
347
|
className: _constants.TYPE_AHEAD_POPUP_CONTENT_CLASS,
|
|
@@ -8,7 +8,6 @@ import React, { useEffect, useRef } from 'react';
|
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
10
10
|
import { ButtonItem, Section } from '@atlaskit/menu';
|
|
11
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
12
11
|
const buttonStyles = css({
|
|
13
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
14
13
|
'& > button:hover': {
|
|
@@ -31,7 +30,7 @@ export const MoreOptions = ({
|
|
|
31
30
|
const isSafari = getBrowserInfo().safari;
|
|
32
31
|
useEffect(() => {
|
|
33
32
|
if (isFocused && ref.current) {
|
|
34
|
-
const skipFocusOnSafariHover = isSafari && (lastInputMethodRef === null || lastInputMethodRef === void 0 ? void 0 : lastInputMethodRef.current) === 'mouse'
|
|
33
|
+
const skipFocusOnSafariHover = isSafari && (lastInputMethodRef === null || lastInputMethodRef === void 0 ? void 0 : lastInputMethodRef.current) === 'mouse';
|
|
35
34
|
if (!skipFocusOnSafariHover) {
|
|
36
35
|
ref.current.focus();
|
|
37
36
|
}
|
|
@@ -69,7 +68,7 @@ export const MoreOptions = ({
|
|
|
69
68
|
ref: ref
|
|
70
69
|
/* eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed) */,
|
|
71
70
|
onMouseDown: e => {
|
|
72
|
-
if (isSafari
|
|
71
|
+
if (isSafari) {
|
|
73
72
|
e.preventDefault();
|
|
74
73
|
}
|
|
75
74
|
},
|
|
@@ -15,7 +15,6 @@ import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
|
|
|
15
15
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
16
16
|
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
17
17
|
import { ButtonItem } from '@atlaskit/menu';
|
|
18
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
19
18
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
20
19
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
21
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
@@ -239,7 +238,7 @@ export const TypeAheadListItem = /*#__PURE__*/React.memo(({
|
|
|
239
238
|
}, [isSelected, itemIsDisabled]);
|
|
240
239
|
useLayoutEffect(() => {
|
|
241
240
|
if (shouldUpdateFocus) {
|
|
242
|
-
const skipFocusOnSafariHover = isSafari && (lastInputMethodRef === null || lastInputMethodRef === void 0 ? void 0 : lastInputMethodRef.current) === 'mouse'
|
|
241
|
+
const skipFocusOnSafariHover = isSafari && (lastInputMethodRef === null || lastInputMethodRef === void 0 ? void 0 : lastInputMethodRef.current) === 'mouse';
|
|
243
242
|
if (!skipFocusOnSafariHover) {
|
|
244
243
|
var _customItemRef$curren;
|
|
245
244
|
customItemRef === null || customItemRef === void 0 ? void 0 : (_customItemRef$curren = customItemRef.current) === null || _customItemRef$curren === void 0 ? void 0 : _customItemRef$curren.focus();
|
|
@@ -248,7 +247,7 @@ export const TypeAheadListItem = /*#__PURE__*/React.memo(({
|
|
|
248
247
|
}, [customItemRef, shouldUpdateFocus, lastInputMethodRef, isSafari]);
|
|
249
248
|
useLayoutEffect(() => {
|
|
250
249
|
if (shouldUpdateFocus) {
|
|
251
|
-
const skipFocusOnSafariHover = isSafari && (lastInputMethodRef === null || lastInputMethodRef === void 0 ? void 0 : lastInputMethodRef.current) === 'mouse'
|
|
250
|
+
const skipFocusOnSafariHover = isSafari && (lastInputMethodRef === null || lastInputMethodRef === void 0 ? void 0 : lastInputMethodRef.current) === 'mouse';
|
|
252
251
|
if (!skipFocusOnSafariHover) {
|
|
253
252
|
var _buttonItemRef$curren;
|
|
254
253
|
buttonItemRef === null || buttonItemRef === void 0 ? void 0 : (_buttonItemRef$curren = buttonItemRef.current) === null || _buttonItemRef$curren === void 0 ? void 0 : _buttonItemRef$curren.focus();
|
|
@@ -13,6 +13,7 @@ import { TypeAheadAvailableNodes } from '@atlaskit/editor-common/type-ahead';
|
|
|
13
13
|
import { findOverflowScrollParent, Popup } from '@atlaskit/editor-common/ui';
|
|
14
14
|
import { akEditorFloatingDialogZIndex } from '@atlaskit/editor-shared-styles';
|
|
15
15
|
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
16
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
17
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
17
18
|
import { fireTypeAheadClosedAnalyticsEvent } from '../pm-plugins/analytics';
|
|
18
19
|
import { CloseSelectionOptions, TYPE_AHEAD_DECORATION_DATA_ATTRIBUTE, TYPE_AHEAD_POPUP_CONTENT_CLASS } from '../pm-plugins/constants';
|
|
@@ -41,6 +42,9 @@ const typeAheadWrapperWithViewMoreOverride = css({
|
|
|
41
42
|
display: 'flex',
|
|
42
43
|
flexDirection: 'column'
|
|
43
44
|
});
|
|
45
|
+
const typeAheadContentOverrideBorder = css({
|
|
46
|
+
borderRadius: "var(--ds-radius-large, 8px)"
|
|
47
|
+
});
|
|
44
48
|
const Highlight = ({
|
|
45
49
|
state,
|
|
46
50
|
triggerHandler
|
|
@@ -332,7 +336,7 @@ export const TypeAheadPopup = /*#__PURE__*/React.memo(props => {
|
|
|
332
336
|
}
|
|
333
337
|
}
|
|
334
338
|
}, jsx("div", {
|
|
335
|
-
css: [typeAheadContent, moreElementsInQuickInsertViewEnabled && typeAheadContentOverride, showMoreOptionsButton && typeAheadWrapperWithViewMoreOverride]
|
|
339
|
+
css: [typeAheadContent, moreElementsInQuickInsertViewEnabled && typeAheadContentOverride, showMoreOptionsButton && typeAheadWrapperWithViewMoreOverride, expValEquals('cc-markdown-mode', 'isEnabled', true) && typeAheadContentOverrideBorder]
|
|
336
340
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
337
341
|
,
|
|
338
342
|
className: TYPE_AHEAD_POPUP_CONTENT_CLASS,
|
|
@@ -8,7 +8,6 @@ import React, { useEffect, useRef } from 'react';
|
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
10
10
|
import { ButtonItem, Section } from '@atlaskit/menu';
|
|
11
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
12
11
|
var buttonStyles = css({
|
|
13
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
14
13
|
'& > button:hover': {
|
|
@@ -30,7 +29,7 @@ export var MoreOptions = function MoreOptions(_ref) {
|
|
|
30
29
|
var isSafari = getBrowserInfo().safari;
|
|
31
30
|
useEffect(function () {
|
|
32
31
|
if (isFocused && ref.current) {
|
|
33
|
-
var skipFocusOnSafariHover = isSafari && (lastInputMethodRef === null || lastInputMethodRef === void 0 ? void 0 : lastInputMethodRef.current) === 'mouse'
|
|
32
|
+
var skipFocusOnSafariHover = isSafari && (lastInputMethodRef === null || lastInputMethodRef === void 0 ? void 0 : lastInputMethodRef.current) === 'mouse';
|
|
34
33
|
if (!skipFocusOnSafariHover) {
|
|
35
34
|
ref.current.focus();
|
|
36
35
|
}
|
|
@@ -66,7 +65,7 @@ export var MoreOptions = function MoreOptions(_ref) {
|
|
|
66
65
|
ref: ref
|
|
67
66
|
/* eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed) */,
|
|
68
67
|
onMouseDown: function onMouseDown(e) {
|
|
69
|
-
if (isSafari
|
|
68
|
+
if (isSafari) {
|
|
70
69
|
e.preventDefault();
|
|
71
70
|
}
|
|
72
71
|
},
|
|
@@ -17,7 +17,6 @@ import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
|
|
|
17
17
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
18
18
|
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
19
19
|
import { ButtonItem } from '@atlaskit/menu';
|
|
20
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
21
20
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
22
21
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
23
22
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
@@ -218,7 +217,7 @@ export var TypeAheadListItem = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
218
217
|
}, [isSelected, itemIsDisabled]);
|
|
219
218
|
useLayoutEffect(function () {
|
|
220
219
|
if (shouldUpdateFocus) {
|
|
221
|
-
var skipFocusOnSafariHover = isSafari && (lastInputMethodRef === null || lastInputMethodRef === void 0 ? void 0 : lastInputMethodRef.current) === 'mouse'
|
|
220
|
+
var skipFocusOnSafariHover = isSafari && (lastInputMethodRef === null || lastInputMethodRef === void 0 ? void 0 : lastInputMethodRef.current) === 'mouse';
|
|
222
221
|
if (!skipFocusOnSafariHover) {
|
|
223
222
|
var _customItemRef$curren;
|
|
224
223
|
customItemRef === null || customItemRef === void 0 || (_customItemRef$curren = customItemRef.current) === null || _customItemRef$curren === void 0 || _customItemRef$curren.focus();
|
|
@@ -227,7 +226,7 @@ export var TypeAheadListItem = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
227
226
|
}, [customItemRef, shouldUpdateFocus, lastInputMethodRef, isSafari]);
|
|
228
227
|
useLayoutEffect(function () {
|
|
229
228
|
if (shouldUpdateFocus) {
|
|
230
|
-
var skipFocusOnSafariHover = isSafari && (lastInputMethodRef === null || lastInputMethodRef === void 0 ? void 0 : lastInputMethodRef.current) === 'mouse'
|
|
229
|
+
var skipFocusOnSafariHover = isSafari && (lastInputMethodRef === null || lastInputMethodRef === void 0 ? void 0 : lastInputMethodRef.current) === 'mouse';
|
|
231
230
|
if (!skipFocusOnSafariHover) {
|
|
232
231
|
var _buttonItemRef$curren;
|
|
233
232
|
buttonItemRef === null || buttonItemRef === void 0 || (_buttonItemRef$curren = buttonItemRef.current) === null || _buttonItemRef$curren === void 0 || _buttonItemRef$curren.focus();
|
|
@@ -14,6 +14,7 @@ import { TypeAheadAvailableNodes } from '@atlaskit/editor-common/type-ahead';
|
|
|
14
14
|
import { findOverflowScrollParent, Popup } from '@atlaskit/editor-common/ui';
|
|
15
15
|
import { akEditorFloatingDialogZIndex } from '@atlaskit/editor-shared-styles';
|
|
16
16
|
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
17
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
18
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
18
19
|
import { fireTypeAheadClosedAnalyticsEvent } from '../pm-plugins/analytics';
|
|
19
20
|
import { CloseSelectionOptions, TYPE_AHEAD_DECORATION_DATA_ATTRIBUTE, TYPE_AHEAD_POPUP_CONTENT_CLASS } from '../pm-plugins/constants';
|
|
@@ -42,6 +43,9 @@ var typeAheadWrapperWithViewMoreOverride = css({
|
|
|
42
43
|
display: 'flex',
|
|
43
44
|
flexDirection: 'column'
|
|
44
45
|
});
|
|
46
|
+
var typeAheadContentOverrideBorder = css({
|
|
47
|
+
borderRadius: "var(--ds-radius-large, 8px)"
|
|
48
|
+
});
|
|
45
49
|
var Highlight = function Highlight(_ref) {
|
|
46
50
|
var state = _ref.state,
|
|
47
51
|
triggerHandler = _ref.triggerHandler;
|
|
@@ -327,7 +331,7 @@ export var TypeAheadPopup = /*#__PURE__*/React.memo(function (props) {
|
|
|
327
331
|
}
|
|
328
332
|
}
|
|
329
333
|
}, jsx("div", {
|
|
330
|
-
css: [typeAheadContent, moreElementsInQuickInsertViewEnabled && typeAheadContentOverride, showMoreOptionsButton && typeAheadWrapperWithViewMoreOverride]
|
|
334
|
+
css: [typeAheadContent, moreElementsInQuickInsertViewEnabled && typeAheadContentOverride, showMoreOptionsButton && typeAheadWrapperWithViewMoreOverride, expValEquals('cc-markdown-mode', 'isEnabled', true) && typeAheadContentOverrideBorder]
|
|
331
335
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
332
336
|
,
|
|
333
337
|
className: TYPE_AHEAD_POPUP_CONTENT_CLASS,
|
|
@@ -24,11 +24,11 @@ type TypeAheadPopupProps = {
|
|
|
24
24
|
errorInfo: TypeAheadErrorInfo;
|
|
25
25
|
isEmptyQuery: boolean;
|
|
26
26
|
items: Array<TypeAheadItem>;
|
|
27
|
-
sections?: Array<TypeAheadResolvedSection>;
|
|
28
27
|
onItemInsert: (mode: SelectItemMode, index: number) => void;
|
|
29
28
|
popupsBoundariesElement?: HTMLElement;
|
|
30
29
|
popupsMountPoint?: HTMLElement;
|
|
31
30
|
popupsScrollableElement?: HTMLElement;
|
|
31
|
+
sections?: Array<TypeAheadResolvedSection>;
|
|
32
32
|
selectedIndex: number;
|
|
33
33
|
setSelectedItem: OnSelectItem;
|
|
34
34
|
showMoreOptionsButton?: boolean;
|
|
@@ -24,11 +24,11 @@ type TypeAheadPopupProps = {
|
|
|
24
24
|
errorInfo: TypeAheadErrorInfo;
|
|
25
25
|
isEmptyQuery: boolean;
|
|
26
26
|
items: Array<TypeAheadItem>;
|
|
27
|
-
sections?: Array<TypeAheadResolvedSection>;
|
|
28
27
|
onItemInsert: (mode: SelectItemMode, index: number) => void;
|
|
29
28
|
popupsBoundariesElement?: HTMLElement;
|
|
30
29
|
popupsMountPoint?: HTMLElement;
|
|
31
30
|
popupsScrollableElement?: HTMLElement;
|
|
31
|
+
sections?: Array<TypeAheadResolvedSection>;
|
|
32
32
|
selectedIndex: number;
|
|
33
33
|
setSelectedItem: OnSelectItem;
|
|
34
34
|
showMoreOptionsButton?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-type-ahead",
|
|
3
|
-
"version": "11.1.
|
|
3
|
+
"version": "11.1.5",
|
|
4
4
|
"description": "Type-ahead plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/primitives": "^19.0.0",
|
|
45
45
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
46
46
|
"@atlaskit/prosemirror-input-rules": "^3.7.0",
|
|
47
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
47
|
+
"@atlaskit/tmp-editor-statsig": "^93.0.0",
|
|
48
48
|
"@atlaskit/tokens": "^13.3.0",
|
|
49
49
|
"@atlaskit/visually-hidden": "^3.1.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|