@atlaskit/editor-plugin-type-ahead 8.0.11 → 8.0.12
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 +6 -0
- package/dist/cjs/ui/ContentComponent.js +1 -1
- package/dist/cjs/ui/TypeAheadErrorFallback/index.js +1 -1
- package/dist/cjs/ui/TypeAheadList.js +3 -3
- package/dist/cjs/ui/TypeAheadPopup.js +2 -2
- package/dist/es2019/ui/ContentComponent.js +1 -1
- package/dist/es2019/ui/TypeAheadErrorFallback/index.js +1 -1
- package/dist/es2019/ui/TypeAheadList.js +3 -3
- package/dist/es2019/ui/TypeAheadPopup.js +2 -2
- package/dist/esm/ui/ContentComponent.js +1 -1
- package/dist/esm/ui/TypeAheadErrorFallback/index.js +1 -1
- package/dist/esm/ui/TypeAheadList.js +3 -3
- package/dist/esm/ui/TypeAheadPopup.js +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -37,7 +37,7 @@ function ContentComponent(_ref) {
|
|
|
37
37
|
return /*#__PURE__*/_react.default.createElement(_TypeAheadMenu.TypeAheadMenu, {
|
|
38
38
|
editorView: editorView,
|
|
39
39
|
popupMountRef: popupMountRef
|
|
40
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
40
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
41
41
|
,
|
|
42
42
|
typeAheadState: {
|
|
43
43
|
triggerHandler: triggerHandler,
|
|
@@ -30,7 +30,7 @@ var TypeAheadErrorFallback = exports.TypeAheadErrorFallback = function TypeAhead
|
|
|
30
30
|
css: minHeightComponentStyles
|
|
31
31
|
}, (0, _react.jsx)(_EmptyState.EmptyState, {
|
|
32
32
|
header: header
|
|
33
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
33
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
34
34
|
,
|
|
35
35
|
renderImage: function renderImage() {
|
|
36
36
|
return (0, _react.jsx)(_GenericErrorSVG.GenericErrorSVG, null);
|
|
@@ -327,7 +327,7 @@ var TypeAheadListComponent = /*#__PURE__*/_react.default.memo(function (_ref2) {
|
|
|
327
327
|
style: style,
|
|
328
328
|
isVisible: isVisible,
|
|
329
329
|
isScrolling: isScrolling
|
|
330
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
330
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
331
331
|
,
|
|
332
332
|
onMouseMove: function onMouseMove(e) {
|
|
333
333
|
return _onMouseMove(e, index);
|
|
@@ -339,7 +339,7 @@ var TypeAheadListComponent = /*#__PURE__*/_react.default.memo(function (_ref2) {
|
|
|
339
339
|
itemsLength: itemsLength,
|
|
340
340
|
itemIndex: index,
|
|
341
341
|
selectedIndex: selectedIndex
|
|
342
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
342
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
343
343
|
,
|
|
344
344
|
onItemClick: function onItemClick(mode, index) {
|
|
345
345
|
actions.onItemClick(mode, index, _analytics.INPUT_METHOD.MOUSE);
|
|
@@ -385,7 +385,7 @@ var TypeAheadListComponent = /*#__PURE__*/_react.default.memo(function (_ref2) {
|
|
|
385
385
|
"aria-label": (0, _utils.getTypeAheadListAriaLabels)(undefined, intl).popupAriaLabel,
|
|
386
386
|
containerRole: "presentation",
|
|
387
387
|
role: "listbox"
|
|
388
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
388
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
389
389
|
,
|
|
390
390
|
css: [
|
|
391
391
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -319,7 +319,7 @@ var TypeAheadPopup = exports.TypeAheadPopup = /*#__PURE__*/_react.default.memo(f
|
|
|
319
319
|
offset: OFFSET,
|
|
320
320
|
ariaLabel: null,
|
|
321
321
|
preventOverflow: true
|
|
322
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
322
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
323
323
|
,
|
|
324
324
|
onUnmount: function onUnmount() {
|
|
325
325
|
if (selectedIndex > -1 && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')) {
|
|
@@ -347,7 +347,7 @@ var TypeAheadPopup = exports.TypeAheadPopup = /*#__PURE__*/_react.default.memo(f
|
|
|
347
347
|
}), (0, _react2.jsx)(_TypeAheadList.TypeAheadList, {
|
|
348
348
|
items: items,
|
|
349
349
|
selectedIndex: selectedIndex
|
|
350
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
350
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
351
351
|
,
|
|
352
352
|
onItemClick: function onItemClick(mode, index, inputMethod) {
|
|
353
353
|
if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')) {
|
|
@@ -32,7 +32,7 @@ export function ContentComponent({
|
|
|
32
32
|
return /*#__PURE__*/React.createElement(TypeAheadMenu, {
|
|
33
33
|
editorView: editorView,
|
|
34
34
|
popupMountRef: popupMountRef
|
|
35
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
35
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
36
36
|
,
|
|
37
37
|
typeAheadState: {
|
|
38
38
|
triggerHandler,
|
|
@@ -23,7 +23,7 @@ export const TypeAheadErrorFallback = () => {
|
|
|
23
23
|
css: minHeightComponentStyles
|
|
24
24
|
}, jsx(EmptyState, {
|
|
25
25
|
header: header
|
|
26
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
26
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
27
27
|
,
|
|
28
28
|
renderImage: () => jsx(GenericErrorSVG, null),
|
|
29
29
|
description: description
|
|
@@ -310,7 +310,7 @@ const TypeAheadListComponent = /*#__PURE__*/React.memo(({
|
|
|
310
310
|
style: style,
|
|
311
311
|
isVisible: isVisible,
|
|
312
312
|
isScrolling: isScrolling
|
|
313
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
313
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
314
314
|
,
|
|
315
315
|
onMouseMove: e => onMouseMove(e, index)
|
|
316
316
|
}, jsx(TypeAheadListItem, {
|
|
@@ -320,7 +320,7 @@ const TypeAheadListComponent = /*#__PURE__*/React.memo(({
|
|
|
320
320
|
itemsLength: itemsLength,
|
|
321
321
|
itemIndex: index,
|
|
322
322
|
selectedIndex: selectedIndex
|
|
323
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
323
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
324
324
|
,
|
|
325
325
|
onItemClick: (mode, index) => {
|
|
326
326
|
actions.onItemClick(mode, index, INPUT_METHOD.MOUSE);
|
|
@@ -365,7 +365,7 @@ const TypeAheadListComponent = /*#__PURE__*/React.memo(({
|
|
|
365
365
|
"aria-label": getTypeAheadListAriaLabels(undefined, intl).popupAriaLabel,
|
|
366
366
|
containerRole: "presentation",
|
|
367
367
|
role: "listbox"
|
|
368
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
368
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
369
369
|
,
|
|
370
370
|
css: [
|
|
371
371
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -315,7 +315,7 @@ export const TypeAheadPopup = /*#__PURE__*/React.memo(props => {
|
|
|
315
315
|
offset: OFFSET,
|
|
316
316
|
ariaLabel: null,
|
|
317
317
|
preventOverflow: true
|
|
318
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
318
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
319
319
|
,
|
|
320
320
|
onUnmount: () => {
|
|
321
321
|
if (selectedIndex > -1 && editorExperiment('platform_editor_controls', 'variant1')) {
|
|
@@ -343,7 +343,7 @@ export const TypeAheadPopup = /*#__PURE__*/React.memo(props => {
|
|
|
343
343
|
}), jsx(TypeAheadList, {
|
|
344
344
|
items: items,
|
|
345
345
|
selectedIndex: selectedIndex
|
|
346
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
346
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
347
347
|
,
|
|
348
348
|
onItemClick: (mode, index, inputMethod) => {
|
|
349
349
|
if (editorExperiment('platform_editor_controls', 'variant1')) {
|
|
@@ -30,7 +30,7 @@ export function ContentComponent(_ref) {
|
|
|
30
30
|
return /*#__PURE__*/React.createElement(TypeAheadMenu, {
|
|
31
31
|
editorView: editorView,
|
|
32
32
|
popupMountRef: popupMountRef
|
|
33
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
33
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
34
34
|
,
|
|
35
35
|
typeAheadState: {
|
|
36
36
|
triggerHandler: triggerHandler,
|
|
@@ -23,7 +23,7 @@ export var TypeAheadErrorFallback = function TypeAheadErrorFallback() {
|
|
|
23
23
|
css: minHeightComponentStyles
|
|
24
24
|
}, jsx(EmptyState, {
|
|
25
25
|
header: header
|
|
26
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
26
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
27
27
|
,
|
|
28
28
|
renderImage: function renderImage() {
|
|
29
29
|
return jsx(GenericErrorSVG, null);
|
|
@@ -318,7 +318,7 @@ var TypeAheadListComponent = /*#__PURE__*/React.memo(function (_ref2) {
|
|
|
318
318
|
style: style,
|
|
319
319
|
isVisible: isVisible,
|
|
320
320
|
isScrolling: isScrolling
|
|
321
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
321
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
322
322
|
,
|
|
323
323
|
onMouseMove: function onMouseMove(e) {
|
|
324
324
|
return _onMouseMove(e, index);
|
|
@@ -330,7 +330,7 @@ var TypeAheadListComponent = /*#__PURE__*/React.memo(function (_ref2) {
|
|
|
330
330
|
itemsLength: itemsLength,
|
|
331
331
|
itemIndex: index,
|
|
332
332
|
selectedIndex: selectedIndex
|
|
333
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
333
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
334
334
|
,
|
|
335
335
|
onItemClick: function onItemClick(mode, index) {
|
|
336
336
|
actions.onItemClick(mode, index, INPUT_METHOD.MOUSE);
|
|
@@ -376,7 +376,7 @@ var TypeAheadListComponent = /*#__PURE__*/React.memo(function (_ref2) {
|
|
|
376
376
|
"aria-label": getTypeAheadListAriaLabels(undefined, intl).popupAriaLabel,
|
|
377
377
|
containerRole: "presentation",
|
|
378
378
|
role: "listbox"
|
|
379
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
379
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
380
380
|
,
|
|
381
381
|
css: [
|
|
382
382
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -309,7 +309,7 @@ export var TypeAheadPopup = /*#__PURE__*/React.memo(function (props) {
|
|
|
309
309
|
offset: OFFSET,
|
|
310
310
|
ariaLabel: null,
|
|
311
311
|
preventOverflow: true
|
|
312
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
312
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
313
313
|
,
|
|
314
314
|
onUnmount: function onUnmount() {
|
|
315
315
|
if (selectedIndex > -1 && editorExperiment('platform_editor_controls', 'variant1')) {
|
|
@@ -337,7 +337,7 @@ export var TypeAheadPopup = /*#__PURE__*/React.memo(function (props) {
|
|
|
337
337
|
}), jsx(TypeAheadList, {
|
|
338
338
|
items: items,
|
|
339
339
|
selectedIndex: selectedIndex
|
|
340
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
340
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
341
341
|
,
|
|
342
342
|
onItemClick: function onItemClick(mode, index, inputMethod) {
|
|
343
343
|
if (editorExperiment('platform_editor_controls', 'variant1')) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-type-ahead",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.12",
|
|
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": "^18.0.0",
|
|
45
45
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
46
46
|
"@atlaskit/prosemirror-input-rules": "^3.6.0",
|
|
47
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
47
|
+
"@atlaskit/tmp-editor-statsig": "^45.0.0",
|
|
48
48
|
"@atlaskit/tokens": "^11.1.0",
|
|
49
49
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"w3c-keyname": "^2.1.8"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@atlaskit/editor-common": "^112.
|
|
59
|
+
"@atlaskit/editor-common": "^112.8.0",
|
|
60
60
|
"react": "^18.2.0",
|
|
61
61
|
"react-dom": "^18.2.0",
|
|
62
62
|
"react-intl-next": "npm:react-intl@^5.18.1"
|