@atlaskit/editor-plugin-type-ahead 13.0.16 → 13.1.1
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 +18 -0
- package/dist/cjs/ui/TypeAheadList.js +24 -1
- package/dist/es2019/ui/TypeAheadList.js +24 -1
- package/dist/esm/ui/TypeAheadList.js +24 -1
- package/package.json +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-type-ahead
|
|
2
2
|
|
|
3
|
+
## 13.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 13.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`eb6534b29cb7a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/eb6534b29cb7a) -
|
|
14
|
+
[ux] Fix alignment of NameSectionStyle with AvatarStyle and Add spacing between mention typeahead
|
|
15
|
+
sections
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 13.0.16
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -18,6 +18,7 @@ var _messages = require("@atlaskit/editor-common/messages");
|
|
|
18
18
|
var _typeAhead = require("@atlaskit/editor-common/type-ahead");
|
|
19
19
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
20
20
|
var _menu = require("@atlaskit/menu");
|
|
21
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
21
22
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
22
23
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
23
24
|
var _closeTypeAhead = require("../pm-plugins/commands/close-type-ahead");
|
|
@@ -420,7 +421,29 @@ var TypeAheadListComponent = /*#__PURE__*/_react.default.memo(function (_ref4) {
|
|
|
420
421
|
onMouseMove: function onMouseMove(e) {
|
|
421
422
|
return _onMouseMove(e, currentRow);
|
|
422
423
|
}
|
|
423
|
-
}, currentRow.type === 'section' ? (0, _react2.jsx)(_compiled.Box, {
|
|
424
|
+
}, currentRow.type === 'section' ? (0, _expValEquals.expValEquals)('platform_editor_agent_mentions', 'isEnabled', true) && (0, _fg.fg)('platform_editor_agent_mentions_drop_one_fixes') ? sectionLozenge ? (0, _react2.jsx)(_compiled.Box, {
|
|
425
|
+
paddingInline: "space.150",
|
|
426
|
+
paddingBlockStart: "space.150",
|
|
427
|
+
paddingBlockEnd: "space.050"
|
|
428
|
+
}, (0, _react2.jsx)(_compiled.Inline, {
|
|
429
|
+
as: "span",
|
|
430
|
+
space: "space.075",
|
|
431
|
+
alignBlock: "center"
|
|
432
|
+
}, (0, _react2.jsx)(_compiled.Text, {
|
|
433
|
+
as: "span",
|
|
434
|
+
size: "small",
|
|
435
|
+
color: "color.text.subtle",
|
|
436
|
+
weight: "medium"
|
|
437
|
+
}, currentRow.section.title), sectionLozenge)) : (0, _react2.jsx)(_compiled.Box, {
|
|
438
|
+
paddingInline: "space.150",
|
|
439
|
+
paddingBlockStart: "space.100",
|
|
440
|
+
paddingBlockEnd: "space.050"
|
|
441
|
+
}, (0, _react2.jsx)(_compiled.Text, {
|
|
442
|
+
as: "span",
|
|
443
|
+
size: "small",
|
|
444
|
+
color: "color.text.subtle",
|
|
445
|
+
weight: "medium"
|
|
446
|
+
}, currentRow.section.title)) : (0, _react2.jsx)(_compiled.Box, {
|
|
424
447
|
paddingInline: "space.150",
|
|
425
448
|
paddingBlock: "space.050"
|
|
426
449
|
}, sectionLozenge ? (0, _react2.jsx)(_compiled.Inline, {
|
|
@@ -15,6 +15,7 @@ import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/
|
|
|
15
15
|
import { SelectItemMode, typeAheadListMessages } from '@atlaskit/editor-common/type-ahead';
|
|
16
16
|
import { AssistiveText } from '@atlaskit/editor-common/ui';
|
|
17
17
|
import { MenuGroup } from '@atlaskit/menu';
|
|
18
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
18
19
|
import { Box, Inline, Text } from '@atlaskit/primitives/compiled';
|
|
19
20
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
20
21
|
import { closeTypeAhead } from '../pm-plugins/commands/close-type-ahead';
|
|
@@ -393,7 +394,29 @@ const TypeAheadListComponent = /*#__PURE__*/React.memo(({
|
|
|
393
394
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
394
395
|
,
|
|
395
396
|
onMouseMove: e => onMouseMove(e, currentRow)
|
|
396
|
-
}, currentRow.type === 'section' ? jsx(Box, {
|
|
397
|
+
}, currentRow.type === 'section' ? expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') ? sectionLozenge ? jsx(Box, {
|
|
398
|
+
paddingInline: "space.150",
|
|
399
|
+
paddingBlockStart: "space.150",
|
|
400
|
+
paddingBlockEnd: "space.050"
|
|
401
|
+
}, jsx(Inline, {
|
|
402
|
+
as: "span",
|
|
403
|
+
space: "space.075",
|
|
404
|
+
alignBlock: "center"
|
|
405
|
+
}, jsx(Text, {
|
|
406
|
+
as: "span",
|
|
407
|
+
size: "small",
|
|
408
|
+
color: "color.text.subtle",
|
|
409
|
+
weight: "medium"
|
|
410
|
+
}, currentRow.section.title), sectionLozenge)) : jsx(Box, {
|
|
411
|
+
paddingInline: "space.150",
|
|
412
|
+
paddingBlockStart: "space.100",
|
|
413
|
+
paddingBlockEnd: "space.050"
|
|
414
|
+
}, jsx(Text, {
|
|
415
|
+
as: "span",
|
|
416
|
+
size: "small",
|
|
417
|
+
color: "color.text.subtle",
|
|
418
|
+
weight: "medium"
|
|
419
|
+
}, currentRow.section.title)) : jsx(Box, {
|
|
397
420
|
paddingInline: "space.150",
|
|
398
421
|
paddingBlock: "space.050"
|
|
399
422
|
}, sectionLozenge ? jsx(Inline, {
|
|
@@ -17,6 +17,7 @@ import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/
|
|
|
17
17
|
import { SelectItemMode, typeAheadListMessages } from '@atlaskit/editor-common/type-ahead';
|
|
18
18
|
import { AssistiveText } from '@atlaskit/editor-common/ui';
|
|
19
19
|
import { MenuGroup } from '@atlaskit/menu';
|
|
20
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
20
21
|
import { Box, Inline, Text } from '@atlaskit/primitives/compiled';
|
|
21
22
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
22
23
|
import { closeTypeAhead } from '../pm-plugins/commands/close-type-ahead';
|
|
@@ -411,7 +412,29 @@ var TypeAheadListComponent = /*#__PURE__*/React.memo(function (_ref4) {
|
|
|
411
412
|
onMouseMove: function onMouseMove(e) {
|
|
412
413
|
return _onMouseMove(e, currentRow);
|
|
413
414
|
}
|
|
414
|
-
}, currentRow.type === 'section' ? jsx(Box, {
|
|
415
|
+
}, currentRow.type === 'section' ? expValEquals('platform_editor_agent_mentions', 'isEnabled', true) && fg('platform_editor_agent_mentions_drop_one_fixes') ? sectionLozenge ? jsx(Box, {
|
|
416
|
+
paddingInline: "space.150",
|
|
417
|
+
paddingBlockStart: "space.150",
|
|
418
|
+
paddingBlockEnd: "space.050"
|
|
419
|
+
}, jsx(Inline, {
|
|
420
|
+
as: "span",
|
|
421
|
+
space: "space.075",
|
|
422
|
+
alignBlock: "center"
|
|
423
|
+
}, jsx(Text, {
|
|
424
|
+
as: "span",
|
|
425
|
+
size: "small",
|
|
426
|
+
color: "color.text.subtle",
|
|
427
|
+
weight: "medium"
|
|
428
|
+
}, currentRow.section.title), sectionLozenge)) : jsx(Box, {
|
|
429
|
+
paddingInline: "space.150",
|
|
430
|
+
paddingBlockStart: "space.100",
|
|
431
|
+
paddingBlockEnd: "space.050"
|
|
432
|
+
}, jsx(Text, {
|
|
433
|
+
as: "span",
|
|
434
|
+
size: "small",
|
|
435
|
+
color: "color.text.subtle",
|
|
436
|
+
weight: "medium"
|
|
437
|
+
}, currentRow.section.title)) : jsx(Box, {
|
|
415
438
|
paddingInline: "space.150",
|
|
416
439
|
paddingBlock: "space.050"
|
|
417
440
|
}, sectionLozenge ? jsx(Inline, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-type-ahead",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.1.1",
|
|
4
4
|
"description": "Type-ahead plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
30
30
|
"@atlaskit/editor-shared-styles": "^4.0.0",
|
|
31
31
|
"@atlaskit/feature-gate-js-client": "^6.0.0",
|
|
32
|
-
"@atlaskit/heading": "^
|
|
32
|
+
"@atlaskit/heading": "^7.0.0",
|
|
33
33
|
"@atlaskit/insm": "^1.1.0",
|
|
34
34
|
"@atlaskit/menu": "^9.2.0",
|
|
35
35
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
36
36
|
"@atlaskit/primitives": "^22.2.0",
|
|
37
37
|
"@atlaskit/prosemirror-history": "^1.0.0",
|
|
38
38
|
"@atlaskit/prosemirror-input-rules": "^4.0.0",
|
|
39
|
-
"@atlaskit/tmp-editor-statsig": "^135.
|
|
39
|
+
"@atlaskit/tmp-editor-statsig": "^135.6.0",
|
|
40
40
|
"@atlaskit/tokens": "^16.3.0",
|
|
41
41
|
"@atlaskit/visually-hidden": "^4.2.0",
|
|
42
42
|
"@babel/runtime": "^7.0.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"w3c-keyname": "^2.1.8"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@atlaskit/editor-common": "^116.
|
|
51
|
+
"@atlaskit/editor-common": "^116.44.0",
|
|
52
52
|
"react": "^18.2.0",
|
|
53
53
|
"react-dom": "^18.2.0",
|
|
54
54
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
@@ -89,6 +89,9 @@
|
|
|
89
89
|
},
|
|
90
90
|
"platform_editor_ease_of_use_metrics": {
|
|
91
91
|
"type": "boolean"
|
|
92
|
+
},
|
|
93
|
+
"platform_editor_agent_mentions_drop_one_fixes": {
|
|
94
|
+
"type": "boolean"
|
|
92
95
|
}
|
|
93
96
|
}
|
|
94
97
|
}
|