@atlaskit/editor-plugin-type-ahead 6.2.0 → 6.4.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.
- package/CHANGELOG.md +19 -0
- package/dist/cjs/pm-plugins/commands/insert-type-ahead-item.js +5 -5
- package/dist/cjs/pm-plugins/decorations.js +2 -2
- package/dist/cjs/ui/ListRow.js +5 -8
- package/dist/cjs/ui/TypeAheadList.js +1 -3
- package/dist/cjs/ui/TypeAheadPopup.js +1 -1
- package/dist/cjs/ui/modern/TypeAheadPopup.js +1 -1
- package/dist/es2019/pm-plugins/commands/insert-type-ahead-item.js +1 -1
- package/dist/es2019/pm-plugins/decorations.js +1 -1
- package/dist/es2019/ui/ListRow.js +6 -9
- package/dist/es2019/ui/TypeAheadList.js +1 -3
- package/dist/es2019/ui/TypeAheadPopup.js +1 -1
- package/dist/es2019/ui/modern/TypeAheadPopup.js +1 -1
- package/dist/esm/pm-plugins/commands/insert-type-ahead-item.js +1 -1
- package/dist/esm/pm-plugins/decorations.js +1 -1
- package/dist/esm/ui/ListRow.js +5 -8
- package/dist/esm/ui/TypeAheadList.js +1 -3
- package/dist/esm/ui/TypeAheadPopup.js +1 -1
- package/dist/esm/ui/modern/TypeAheadPopup.js +1 -1
- package/dist/types/ui/ListRow.d.ts +5 -8
- package/dist/types-ts4.5/ui/ListRow.d.ts +5 -8
- package/package.json +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-type-ahead
|
|
2
2
|
|
|
3
|
+
## 6.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`0ac75e0d28c72`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0ac75e0d28c72) -
|
|
8
|
+
Migrate @atlaskit/editor-prosemirror/history to @atlaskit/prosemirror-history package
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 6.3.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- [`2cfe444a49320`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2cfe444a49320) -
|
|
19
|
+
[https://product-fabric.atlassian.net/browse/ED-29474](ED-29474) - bump react-virtualized version
|
|
20
|
+
to 9.22.6
|
|
21
|
+
|
|
3
22
|
## 6.2.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
|
@@ -8,8 +8,8 @@ exports.insertTypeAheadItem = void 0;
|
|
|
8
8
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
9
|
var _steps = require("@atlaskit/adf-schema/steps");
|
|
10
10
|
var _typeAhead = require("@atlaskit/editor-common/type-ahead");
|
|
11
|
-
var _history = require("@atlaskit/editor-prosemirror/history");
|
|
12
11
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
12
|
+
var _prosemirrorHistory = require("@atlaskit/prosemirror-history");
|
|
13
13
|
var _actions = require("../actions");
|
|
14
14
|
var _key = require("../key");
|
|
15
15
|
var _statsModifier = require("../stats-modifier");
|
|
@@ -72,7 +72,7 @@ var createInsertCallback = function createInsertCallback(_ref2) {
|
|
|
72
72
|
position: position,
|
|
73
73
|
selectInlineNode: Boolean(opts.selectInlineNode)
|
|
74
74
|
});
|
|
75
|
-
(0,
|
|
75
|
+
(0, _prosemirrorHistory.closeHistory)(tr);
|
|
76
76
|
if (wasInsertedBySpace) {
|
|
77
77
|
return tr;
|
|
78
78
|
}
|
|
@@ -95,7 +95,7 @@ var createDeleteRawTextCallback = function createDeleteRawTextCallback(_ref3) {
|
|
|
95
95
|
insertItem = _ref3.insertItem;
|
|
96
96
|
return function (newState) {
|
|
97
97
|
var tr = newState.tr;
|
|
98
|
-
(0,
|
|
98
|
+
(0, _prosemirrorHistory.closeHistory)(tr);
|
|
99
99
|
if (!wasInsertedBySpace) {
|
|
100
100
|
tr.delete(position.start, position.end);
|
|
101
101
|
var config = {
|
|
@@ -167,7 +167,7 @@ var insertTypeAheadItem = exports.insertTypeAheadItem = function insertTypeAhead
|
|
|
167
167
|
var insertCallbackProxy = new Proxy(insertCallback, proxyHandler);
|
|
168
168
|
var nextTr = handler.selectItem(newEditorSate, item, insertCallbackProxy, meta);
|
|
169
169
|
if (!wasInsertCallbackCalled && nextTr) {
|
|
170
|
-
(0,
|
|
170
|
+
(0, _prosemirrorHistory.closeHistory)(nextTr);
|
|
171
171
|
|
|
172
172
|
// In some cases we need to re-open the typeahead
|
|
173
173
|
// e.g.: addign mentions from the quick insert
|
|
@@ -198,7 +198,7 @@ var insertTypeAheadItem = exports.insertTypeAheadItem = function insertTypeAhead
|
|
|
198
198
|
})
|
|
199
199
|
});
|
|
200
200
|
tr.insertText(text);
|
|
201
|
-
(0,
|
|
201
|
+
(0, _prosemirrorHistory.closeHistory)(tr);
|
|
202
202
|
view.dispatch(tr);
|
|
203
203
|
view.focus();
|
|
204
204
|
};
|
|
@@ -9,10 +9,10 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _reactIntlNext = require("react-intl-next");
|
|
10
10
|
var _uuid = _interopRequireDefault(require("uuid"));
|
|
11
11
|
var _w3cKeyname = require("w3c-keyname");
|
|
12
|
-
var _history = require("@atlaskit/editor-prosemirror/history");
|
|
13
12
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
14
13
|
var _view = require("@atlaskit/editor-prosemirror/view");
|
|
15
14
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
|
+
var _prosemirrorHistory = require("@atlaskit/prosemirror-history");
|
|
16
16
|
var _colors = require("@atlaskit/theme/colors");
|
|
17
17
|
var _WrapperTypeAhead = require("../ui/WrapperTypeAhead");
|
|
18
18
|
var _closeTypeAhead = require("./commands/close-type-ahead");
|
|
@@ -70,7 +70,7 @@ var factoryDecorations = exports.factoryDecorations = function factoryDecoration
|
|
|
70
70
|
var hasReopenQuery = typeof reopenQuery === 'string' && reopenQuery.trim().length > 0;
|
|
71
71
|
var currentQuery = (0, _utils.getTypeAheadQuery)(editorView.state);
|
|
72
72
|
if (hasReopenQuery || (currentQuery === null || currentQuery === void 0 ? void 0 : currentQuery.length) === 0) {
|
|
73
|
-
var command = inputType === 'historyUndo' ?
|
|
73
|
+
var command = inputType === 'historyUndo' ? _prosemirrorHistory.undo : _prosemirrorHistory.redo;
|
|
74
74
|
var _tr = editorView.state.tr;
|
|
75
75
|
var fakeDispatch = function fakeDispatch(customTr) {
|
|
76
76
|
_tr = customTr;
|
package/dist/cjs/ui/ListRow.js
CHANGED
|
@@ -4,7 +4,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.ListRow =
|
|
7
|
+
exports.ListRow = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
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); }
|
|
10
10
|
/**
|
|
@@ -20,9 +20,9 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
20
20
|
* @param root0.onMouseMove
|
|
21
21
|
* @example
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
// The `CellMeasurer` component from react-virtualized expects that his children is a `forwardRef` component.
|
|
24
|
+
var ListRow = exports.ListRow = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
24
25
|
var children = _ref.children,
|
|
25
|
-
registerChild = _ref.registerChild,
|
|
26
26
|
measure = _ref.measure,
|
|
27
27
|
index = _ref.index,
|
|
28
28
|
style = _ref.style,
|
|
@@ -30,9 +30,6 @@ function ListRow(_ref) {
|
|
|
30
30
|
isScrolling = _ref.isScrolling,
|
|
31
31
|
onMouseMove = _ref.onMouseMove;
|
|
32
32
|
var childElementRef = (0, _react.useRef)(null);
|
|
33
|
-
var setListElementRef = function setListElementRef(element) {
|
|
34
|
-
registerChild === null || registerChild === void 0 || registerChild(element !== null && element !== void 0 ? element : undefined);
|
|
35
|
-
};
|
|
36
33
|
(0, _react.useEffect)(function () {
|
|
37
34
|
// Do not measure if the row is not visible or is scrolling for performance reasons.
|
|
38
35
|
if (!childElementRef.current || !isVisible || isScrolling) {
|
|
@@ -50,7 +47,7 @@ function ListRow(_ref) {
|
|
|
50
47
|
/*#__PURE__*/
|
|
51
48
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
52
49
|
_react.default.createElement("div", {
|
|
53
|
-
ref:
|
|
50
|
+
ref: ref,
|
|
54
51
|
style: style,
|
|
55
52
|
"data-index": index
|
|
56
53
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -59,4 +56,4 @@ function ListRow(_ref) {
|
|
|
59
56
|
onMouseMove: onMouseMove
|
|
60
57
|
}, children))
|
|
61
58
|
);
|
|
62
|
-
}
|
|
59
|
+
});
|
|
@@ -297,10 +297,8 @@ var TypeAheadListComponent = /*#__PURE__*/_react.default.memo(function (_ref2) {
|
|
|
297
297
|
columnIndex: 0,
|
|
298
298
|
rowIndex: index
|
|
299
299
|
}, function (_ref6) {
|
|
300
|
-
var measure = _ref6.measure
|
|
301
|
-
registerChild = _ref6.registerChild;
|
|
300
|
+
var measure = _ref6.measure;
|
|
302
301
|
return (0, _react2.jsx)(_ListRow.ListRow, {
|
|
303
|
-
registerChild: registerChild,
|
|
304
302
|
measure: measure,
|
|
305
303
|
index: index
|
|
306
304
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
@@ -337,7 +337,7 @@ var TypeAheadPopup = exports.TypeAheadPopup = /*#__PURE__*/_react.default.memo(f
|
|
|
337
337
|
}
|
|
338
338
|
}, (0, _react2.jsx)("div", {
|
|
339
339
|
css: [typeAheadContent, moreElementsInQuickInsertViewEnabled && typeAheadContentOverride, showMoreOptionsButton && typeAheadWrapperWithViewMoreOverride]
|
|
340
|
-
// eslint-disable-next-line
|
|
340
|
+
// eslint-disable-next-line @atlassian/a11y/no-noninteractive-tabindex
|
|
341
341
|
,
|
|
342
342
|
tabIndex: 0
|
|
343
343
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -311,7 +311,7 @@ var TypeAheadPopup = exports.TypeAheadPopup = /*#__PURE__*/_react.default.memo(f
|
|
|
311
311
|
preventOverflow: true
|
|
312
312
|
}, (0, _react2.jsx)("div", {
|
|
313
313
|
css: [typeAheadContent]
|
|
314
|
-
// eslint-disable-next-line
|
|
314
|
+
// eslint-disable-next-line @atlassian/a11y/no-noninteractive-tabindex
|
|
315
315
|
,
|
|
316
316
|
tabIndex: 0
|
|
317
317
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InsertTypeAheadStages, InsertTypeAheadStep } from '@atlaskit/adf-schema/steps';
|
|
2
2
|
import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
3
|
-
import { closeHistory } from '@atlaskit/editor-prosemirror/history';
|
|
4
3
|
import { Fragment, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
+
import { closeHistory } from '@atlaskit/prosemirror-history';
|
|
5
5
|
import { ACTIONS } from '../actions';
|
|
6
6
|
import { pluginKey } from '../key';
|
|
7
7
|
import { StatsModifier } from '../stats-modifier';
|
|
@@ -2,10 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import { IntlProvider } from 'react-intl-next';
|
|
3
3
|
import uuid from 'uuid';
|
|
4
4
|
import { keyName as keyNameNormalized } from 'w3c-keyname';
|
|
5
|
-
import { redo, undo } from '@atlaskit/editor-prosemirror/history';
|
|
6
5
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
7
6
|
import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
8
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
+
import { redo, undo } from '@atlaskit/prosemirror-history';
|
|
9
9
|
import { B400 } from '@atlaskit/theme/colors';
|
|
10
10
|
import { WrapperTypeAhead } from '../ui/WrapperTypeAhead';
|
|
11
11
|
import { closeTypeAhead } from './commands/close-type-ahead';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useEffect, useRef } from 'react';
|
|
1
|
+
import React, { useEffect, useRef, forwardRef } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
4
|
* @param root0
|
|
@@ -12,20 +12,17 @@ import React, { useEffect, useRef } from 'react';
|
|
|
12
12
|
* @param root0.onMouseMove
|
|
13
13
|
* @example
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
// The `CellMeasurer` component from react-virtualized expects that his children is a `forwardRef` component.
|
|
16
|
+
export const ListRow = /*#__PURE__*/forwardRef(({
|
|
16
17
|
children,
|
|
17
|
-
registerChild,
|
|
18
18
|
measure,
|
|
19
19
|
index,
|
|
20
20
|
style,
|
|
21
21
|
isVisible,
|
|
22
22
|
isScrolling,
|
|
23
23
|
onMouseMove
|
|
24
|
-
}) {
|
|
24
|
+
}, ref) => {
|
|
25
25
|
const childElementRef = useRef(null);
|
|
26
|
-
const setListElementRef = element => {
|
|
27
|
-
registerChild === null || registerChild === void 0 ? void 0 : registerChild(element !== null && element !== void 0 ? element : undefined);
|
|
28
|
-
};
|
|
29
26
|
useEffect(() => {
|
|
30
27
|
// Do not measure if the row is not visible or is scrolling for performance reasons.
|
|
31
28
|
if (!childElementRef.current || !isVisible || isScrolling) {
|
|
@@ -39,7 +36,7 @@ export function ListRow({
|
|
|
39
36
|
/*#__PURE__*/
|
|
40
37
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
41
38
|
React.createElement("div", {
|
|
42
|
-
ref:
|
|
39
|
+
ref: ref,
|
|
43
40
|
style: style,
|
|
44
41
|
"data-index": index
|
|
45
42
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -48,4 +45,4 @@ export function ListRow({
|
|
|
48
45
|
onMouseMove: onMouseMove
|
|
49
46
|
}, children))
|
|
50
47
|
);
|
|
51
|
-
}
|
|
48
|
+
});
|
|
@@ -280,10 +280,8 @@ const TypeAheadListComponent = /*#__PURE__*/React.memo(({
|
|
|
280
280
|
columnIndex: 0,
|
|
281
281
|
rowIndex: index
|
|
282
282
|
}, ({
|
|
283
|
-
measure
|
|
284
|
-
registerChild
|
|
283
|
+
measure
|
|
285
284
|
}) => jsx(ListRow, {
|
|
286
|
-
registerChild: registerChild,
|
|
287
285
|
measure: measure,
|
|
288
286
|
index: index
|
|
289
287
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
@@ -333,7 +333,7 @@ export const TypeAheadPopup = /*#__PURE__*/React.memo(props => {
|
|
|
333
333
|
}
|
|
334
334
|
}, jsx("div", {
|
|
335
335
|
css: [typeAheadContent, moreElementsInQuickInsertViewEnabled && typeAheadContentOverride, showMoreOptionsButton && typeAheadWrapperWithViewMoreOverride]
|
|
336
|
-
// eslint-disable-next-line
|
|
336
|
+
// eslint-disable-next-line @atlassian/a11y/no-noninteractive-tabindex
|
|
337
337
|
,
|
|
338
338
|
tabIndex: 0
|
|
339
339
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -305,7 +305,7 @@ export const TypeAheadPopup = /*#__PURE__*/React.memo(props => {
|
|
|
305
305
|
preventOverflow: true
|
|
306
306
|
}, jsx("div", {
|
|
307
307
|
css: [typeAheadContent]
|
|
308
|
-
// eslint-disable-next-line
|
|
308
|
+
// eslint-disable-next-line @atlassian/a11y/no-noninteractive-tabindex
|
|
309
309
|
,
|
|
310
310
|
tabIndex: 0
|
|
311
311
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import { InsertTypeAheadStages, InsertTypeAheadStep } from '@atlaskit/adf-schema/steps';
|
|
3
3
|
import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
4
|
-
import { closeHistory } from '@atlaskit/editor-prosemirror/history';
|
|
5
4
|
import { Fragment, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
+
import { closeHistory } from '@atlaskit/prosemirror-history';
|
|
6
6
|
import { ACTIONS } from '../actions';
|
|
7
7
|
import { pluginKey } from '../key';
|
|
8
8
|
import { StatsModifier } from '../stats-modifier';
|
|
@@ -2,10 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import { IntlProvider } from 'react-intl-next';
|
|
3
3
|
import uuid from 'uuid';
|
|
4
4
|
import { keyName as keyNameNormalized } from 'w3c-keyname';
|
|
5
|
-
import { redo, undo } from '@atlaskit/editor-prosemirror/history';
|
|
6
5
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
7
6
|
import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
8
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
+
import { redo, undo } from '@atlaskit/prosemirror-history';
|
|
9
9
|
import { B400 } from '@atlaskit/theme/colors';
|
|
10
10
|
import { WrapperTypeAhead } from '../ui/WrapperTypeAhead';
|
|
11
11
|
import { closeTypeAhead } from './commands/close-type-ahead';
|
package/dist/esm/ui/ListRow.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useEffect, useRef } from 'react';
|
|
1
|
+
import React, { useEffect, useRef, forwardRef } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
4
|
* @param root0
|
|
@@ -12,9 +12,9 @@ import React, { useEffect, useRef } from 'react';
|
|
|
12
12
|
* @param root0.onMouseMove
|
|
13
13
|
* @example
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
// The `CellMeasurer` component from react-virtualized expects that his children is a `forwardRef` component.
|
|
16
|
+
export var ListRow = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
16
17
|
var children = _ref.children,
|
|
17
|
-
registerChild = _ref.registerChild,
|
|
18
18
|
measure = _ref.measure,
|
|
19
19
|
index = _ref.index,
|
|
20
20
|
style = _ref.style,
|
|
@@ -22,9 +22,6 @@ export function ListRow(_ref) {
|
|
|
22
22
|
isScrolling = _ref.isScrolling,
|
|
23
23
|
onMouseMove = _ref.onMouseMove;
|
|
24
24
|
var childElementRef = useRef(null);
|
|
25
|
-
var setListElementRef = function setListElementRef(element) {
|
|
26
|
-
registerChild === null || registerChild === void 0 || registerChild(element !== null && element !== void 0 ? element : undefined);
|
|
27
|
-
};
|
|
28
25
|
useEffect(function () {
|
|
29
26
|
// Do not measure if the row is not visible or is scrolling for performance reasons.
|
|
30
27
|
if (!childElementRef.current || !isVisible || isScrolling) {
|
|
@@ -42,7 +39,7 @@ export function ListRow(_ref) {
|
|
|
42
39
|
/*#__PURE__*/
|
|
43
40
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
44
41
|
React.createElement("div", {
|
|
45
|
-
ref:
|
|
42
|
+
ref: ref,
|
|
46
43
|
style: style,
|
|
47
44
|
"data-index": index
|
|
48
45
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -51,4 +48,4 @@ export function ListRow(_ref) {
|
|
|
51
48
|
onMouseMove: onMouseMove
|
|
52
49
|
}, children))
|
|
53
50
|
);
|
|
54
|
-
}
|
|
51
|
+
});
|
|
@@ -288,10 +288,8 @@ var TypeAheadListComponent = /*#__PURE__*/React.memo(function (_ref2) {
|
|
|
288
288
|
columnIndex: 0,
|
|
289
289
|
rowIndex: index
|
|
290
290
|
}, function (_ref6) {
|
|
291
|
-
var measure = _ref6.measure
|
|
292
|
-
registerChild = _ref6.registerChild;
|
|
291
|
+
var measure = _ref6.measure;
|
|
293
292
|
return jsx(ListRow, {
|
|
294
|
-
registerChild: registerChild,
|
|
295
293
|
measure: measure,
|
|
296
294
|
index: index
|
|
297
295
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
@@ -327,7 +327,7 @@ export var TypeAheadPopup = /*#__PURE__*/React.memo(function (props) {
|
|
|
327
327
|
}
|
|
328
328
|
}, jsx("div", {
|
|
329
329
|
css: [typeAheadContent, moreElementsInQuickInsertViewEnabled && typeAheadContentOverride, showMoreOptionsButton && typeAheadWrapperWithViewMoreOverride]
|
|
330
|
-
// eslint-disable-next-line
|
|
330
|
+
// eslint-disable-next-line @atlassian/a11y/no-noninteractive-tabindex
|
|
331
331
|
,
|
|
332
332
|
tabIndex: 0
|
|
333
333
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -302,7 +302,7 @@ export var TypeAheadPopup = /*#__PURE__*/React.memo(function (props) {
|
|
|
302
302
|
preventOverflow: true
|
|
303
303
|
}, jsx("div", {
|
|
304
304
|
css: [typeAheadContent]
|
|
305
|
-
// eslint-disable-next-line
|
|
305
|
+
// eslint-disable-next-line @atlassian/a11y/no-noninteractive-tabindex
|
|
306
306
|
,
|
|
307
307
|
tabIndex: 0
|
|
308
308
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import React, { type ReactNode, type MouseEventHandler } from 'react';
|
|
2
2
|
import { type ListRowProps } from 'react-virtualized';
|
|
3
|
-
type Props = {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
measure: () => void;
|
|
6
|
-
onMouseMove: MouseEventHandler<HTMLDivElement>;
|
|
7
|
-
registerChild?: (element?: Element) => void;
|
|
8
|
-
} & Pick<ListRowProps, 'index' | 'style' | 'isScrolling' | 'isVisible'>;
|
|
9
3
|
/**
|
|
10
4
|
*
|
|
11
5
|
* @param root0
|
|
@@ -19,5 +13,8 @@ type Props = {
|
|
|
19
13
|
* @param root0.onMouseMove
|
|
20
14
|
* @example
|
|
21
15
|
*/
|
|
22
|
-
export declare
|
|
23
|
-
|
|
16
|
+
export declare const ListRow: React.ForwardRefExoticComponent<{
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
measure: () => void;
|
|
19
|
+
onMouseMove: MouseEventHandler<HTMLDivElement>;
|
|
20
|
+
} & Pick<ListRowProps, "index" | "style" | "isScrolling" | "isVisible"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import React, { type ReactNode, type MouseEventHandler } from 'react';
|
|
2
2
|
import { type ListRowProps } from 'react-virtualized';
|
|
3
|
-
type Props = {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
measure: () => void;
|
|
6
|
-
onMouseMove: MouseEventHandler<HTMLDivElement>;
|
|
7
|
-
registerChild?: (element?: Element) => void;
|
|
8
|
-
} & Pick<ListRowProps, 'index' | 'style' | 'isScrolling' | 'isVisible'>;
|
|
9
3
|
/**
|
|
10
4
|
*
|
|
11
5
|
* @param root0
|
|
@@ -19,5 +13,8 @@ type Props = {
|
|
|
19
13
|
* @param root0.onMouseMove
|
|
20
14
|
* @example
|
|
21
15
|
*/
|
|
22
|
-
export declare
|
|
23
|
-
|
|
16
|
+
export declare const ListRow: React.ForwardRefExoticComponent<{
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
measure: () => void;
|
|
19
|
+
onMouseMove: MouseEventHandler<HTMLDivElement>;
|
|
20
|
+
} & Pick<ListRowProps, "index" | "style" | "isScrolling" | "isVisible"> & React.RefAttributes<HTMLDivElement>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-type-ahead",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0",
|
|
4
4
|
"description": "Type-ahead plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -38,25 +38,26 @@
|
|
|
38
38
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
39
39
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
40
40
|
"@atlaskit/heading": "^5.2.0",
|
|
41
|
-
"@atlaskit/icon": "^28.
|
|
41
|
+
"@atlaskit/icon": "^28.5.0",
|
|
42
42
|
"@atlaskit/insm": "^0.1.0",
|
|
43
43
|
"@atlaskit/menu": "^8.4.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
45
|
"@atlaskit/primitives": "^14.15.0",
|
|
46
|
-
"@atlaskit/prosemirror-
|
|
46
|
+
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
47
|
+
"@atlaskit/prosemirror-input-rules": "^3.5.0",
|
|
47
48
|
"@atlaskit/theme": "^21.0.0",
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
49
|
+
"@atlaskit/tmp-editor-statsig": "^13.6.0",
|
|
49
50
|
"@atlaskit/tokens": "^6.4.0",
|
|
50
51
|
"@babel/runtime": "^7.0.0",
|
|
51
52
|
"@emotion/react": "^11.7.1",
|
|
52
53
|
"lodash": "^4.17.21",
|
|
53
54
|
"raf-schd": "^4.0.3",
|
|
54
|
-
"react-virtualized": "^9.
|
|
55
|
+
"react-virtualized": "^9.22.6",
|
|
55
56
|
"uuid": "^3.1.0",
|
|
56
57
|
"w3c-keyname": "^2.1.8"
|
|
57
58
|
},
|
|
58
59
|
"peerDependencies": {
|
|
59
|
-
"@atlaskit/editor-common": "^110.
|
|
60
|
+
"@atlaskit/editor-common": "^110.10.0",
|
|
60
61
|
"react": "^18.2.0",
|
|
61
62
|
"react-dom": "^18.2.0",
|
|
62
63
|
"react-intl-next": "npm:react-intl@^5.18.1"
|