@atlaskit/editor-plugin-type-ahead 6.5.16 → 6.5.18
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 +17 -0
- package/dist/cjs/ui/TypeAheadListItem.js +2 -8
- package/dist/cjs/ui/TypeAheadPopup.js +1 -3
- package/dist/es2019/ui/TypeAheadListItem.js +3 -9
- package/dist/es2019/ui/TypeAheadPopup.js +1 -3
- package/dist/esm/ui/TypeAheadListItem.js +3 -9
- package/dist/esm/ui/TypeAheadPopup.js +1 -3
- package/package.json +5 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-type-ahead
|
|
2
2
|
|
|
3
|
+
## 6.5.18
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`5f9e0f5b96e75`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5f9e0f5b96e75) -
|
|
8
|
+
[ux] Cleans up FG platform_editor_typeahead_description_text_colour
|
|
9
|
+
|
|
10
|
+
## 6.5.17
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`a05464ea42678`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a05464ea42678) -
|
|
15
|
+
EDITOR-2791 bump adf-schema
|
|
16
|
+
- [`42a664a17cbff`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/42a664a17cbff) -
|
|
17
|
+
Tidy platform_editor_a11y_fix_typeahead_tabindex
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 6.5.16
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -16,7 +16,6 @@ var _typeAhead = require("@atlaskit/editor-common/type-ahead");
|
|
|
16
16
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
17
17
|
var _shortcut = require("@atlaskit/editor-shared-styles/shortcut");
|
|
18
18
|
var _menu = require("@atlaskit/menu");
|
|
19
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
19
|
var _colors = require("@atlaskit/theme/colors");
|
|
21
20
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
22
21
|
var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"));
|
|
@@ -71,14 +70,9 @@ var itemTitleOverride = (0, _react2.css)({
|
|
|
71
70
|
var itemDescription = (0, _react2.css)({
|
|
72
71
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography
|
|
73
72
|
fontSize: "".concat((0, _editorSharedStyles.relativeFontSizeToBase16)(12), ";"),
|
|
74
|
-
color: "
|
|
73
|
+
color: "var(--ds-text-subtle, #505258)".concat(";"),
|
|
75
74
|
marginTop: "var(--ds-space-050, 4px)".concat(";")
|
|
76
75
|
});
|
|
77
|
-
// when cleaning up FG `platform_editor_typeahead_description_text_colour`
|
|
78
|
-
// replace above color with this and delete itemDescriptionColor
|
|
79
|
-
var itemDescriptionColor = (0, _react2.css)({
|
|
80
|
-
color: "var(--ds-text-subtle, #505258)".concat(";")
|
|
81
|
-
});
|
|
82
76
|
var itemDescriptionOverride = (0, _react2.css)({
|
|
83
77
|
font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
84
78
|
marginTop: 0
|
|
@@ -284,7 +278,7 @@ var TypeAheadListItem = exports.TypeAheadListItem = /*#__PURE__*/_react.default.
|
|
|
284
278
|
}, item.keyshortcut && (0, _react2.jsx)("div", {
|
|
285
279
|
css: _shortcut.shortcutStyle
|
|
286
280
|
}, item.keyshortcut))), (0, _react2.jsx)("div", {
|
|
287
|
-
css: [itemDescription,
|
|
281
|
+
css: [itemDescription, moreElementsInQuickInsertViewEnabled && itemDescriptionOverride, itemIsDisabled && disabledStyle]
|
|
288
282
|
}, item.description)))))
|
|
289
283
|
);
|
|
290
284
|
});
|
|
@@ -15,7 +15,6 @@ var _hooks = require("@atlaskit/editor-common/hooks");
|
|
|
15
15
|
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
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
18
|
var _colors = require("@atlaskit/theme/colors");
|
|
20
19
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
21
20
|
var _analytics2 = require("../pm-plugins/analytics");
|
|
@@ -330,8 +329,7 @@ var TypeAheadPopup = exports.TypeAheadPopup = /*#__PURE__*/_react.default.memo(f
|
|
|
330
329
|
}
|
|
331
330
|
}
|
|
332
331
|
}, (0, _react2.jsx)("div", {
|
|
333
|
-
css: [typeAheadContent, moreElementsInQuickInsertViewEnabled && typeAheadContentOverride, showMoreOptionsButton && typeAheadWrapperWithViewMoreOverride]
|
|
334
|
-
tabIndex: (0, _platformFeatureFlags.fg)('platform_editor_a11y_fix_typeahead_tabindex') ? undefined : 0
|
|
332
|
+
css: [typeAheadContent, moreElementsInQuickInsertViewEnabled && typeAheadContentOverride, showMoreOptionsButton && typeAheadWrapperWithViewMoreOverride]
|
|
335
333
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
336
334
|
,
|
|
337
335
|
className: _constants.TYPE_AHEAD_POPUP_CONTENT_CLASS,
|
|
@@ -13,8 +13,7 @@ import { SelectItemMode, typeAheadListMessages } from '@atlaskit/editor-common/t
|
|
|
13
13
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
14
14
|
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
15
15
|
import { ButtonItem } from '@atlaskit/menu';
|
|
16
|
-
import {
|
|
17
|
-
import { B400, N200, N30, N800 } from '@atlaskit/theme/colors';
|
|
16
|
+
import { B400, N30, N800 } from '@atlaskit/theme/colors';
|
|
18
17
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
19
18
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
20
19
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
@@ -66,14 +65,9 @@ const itemTitleOverride = css({
|
|
|
66
65
|
const itemDescription = css({
|
|
67
66
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography
|
|
68
67
|
fontSize: `${relativeFontSizeToBase16(12)};`,
|
|
69
|
-
color: `${
|
|
68
|
+
color: `${"var(--ds-text-subtle, #505258)"};`,
|
|
70
69
|
marginTop: `${"var(--ds-space-050, 4px)"};`
|
|
71
70
|
});
|
|
72
|
-
// when cleaning up FG `platform_editor_typeahead_description_text_colour`
|
|
73
|
-
// replace above color with this and delete itemDescriptionColor
|
|
74
|
-
const itemDescriptionColor = css({
|
|
75
|
-
color: `${"var(--ds-text-subtle, #505258)"};`
|
|
76
|
-
});
|
|
77
71
|
const itemDescriptionOverride = css({
|
|
78
72
|
font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
79
73
|
marginTop: 0
|
|
@@ -298,7 +292,7 @@ export const TypeAheadListItem = /*#__PURE__*/React.memo(({
|
|
|
298
292
|
}, item.keyshortcut && jsx("div", {
|
|
299
293
|
css: shortcutStyle
|
|
300
294
|
}, item.keyshortcut))), jsx("div", {
|
|
301
|
-
css: [itemDescription,
|
|
295
|
+
css: [itemDescription, moreElementsInQuickInsertViewEnabled && itemDescriptionOverride, itemIsDisabled && disabledStyle]
|
|
302
296
|
}, item.description)))))
|
|
303
297
|
);
|
|
304
298
|
});
|
|
@@ -12,7 +12,6 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
12
12
|
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
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
15
|
import { N0, N50A, N60A } from '@atlaskit/theme/colors';
|
|
17
16
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
18
17
|
import { fireTypeAheadClosedAnalyticsEvent } from '../pm-plugins/analytics';
|
|
@@ -326,8 +325,7 @@ export const TypeAheadPopup = /*#__PURE__*/React.memo(props => {
|
|
|
326
325
|
}
|
|
327
326
|
}
|
|
328
327
|
}, jsx("div", {
|
|
329
|
-
css: [typeAheadContent, moreElementsInQuickInsertViewEnabled && typeAheadContentOverride, showMoreOptionsButton && typeAheadWrapperWithViewMoreOverride]
|
|
330
|
-
tabIndex: fg('platform_editor_a11y_fix_typeahead_tabindex') ? undefined : 0
|
|
328
|
+
css: [typeAheadContent, moreElementsInQuickInsertViewEnabled && typeAheadContentOverride, showMoreOptionsButton && typeAheadWrapperWithViewMoreOverride]
|
|
331
329
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
332
330
|
,
|
|
333
331
|
className: TYPE_AHEAD_POPUP_CONTENT_CLASS,
|
|
@@ -15,8 +15,7 @@ import { SelectItemMode, typeAheadListMessages } from '@atlaskit/editor-common/t
|
|
|
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 {
|
|
19
|
-
import { B400, N200, N30, N800 } from '@atlaskit/theme/colors';
|
|
18
|
+
import { B400, N30, N800 } from '@atlaskit/theme/colors';
|
|
20
19
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
21
20
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
22
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
@@ -63,14 +62,9 @@ var itemTitleOverride = css({
|
|
|
63
62
|
var itemDescription = css({
|
|
64
63
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography
|
|
65
64
|
fontSize: "".concat(relativeFontSizeToBase16(12), ";"),
|
|
66
|
-
color: "
|
|
65
|
+
color: "var(--ds-text-subtle, #505258)".concat(";"),
|
|
67
66
|
marginTop: "var(--ds-space-050, 4px)".concat(";")
|
|
68
67
|
});
|
|
69
|
-
// when cleaning up FG `platform_editor_typeahead_description_text_colour`
|
|
70
|
-
// replace above color with this and delete itemDescriptionColor
|
|
71
|
-
var itemDescriptionColor = css({
|
|
72
|
-
color: "var(--ds-text-subtle, #505258)".concat(";")
|
|
73
|
-
});
|
|
74
68
|
var itemDescriptionOverride = css({
|
|
75
69
|
font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
76
70
|
marginTop: 0
|
|
@@ -276,7 +270,7 @@ export var TypeAheadListItem = /*#__PURE__*/React.memo(function (_ref2) {
|
|
|
276
270
|
}, item.keyshortcut && jsx("div", {
|
|
277
271
|
css: shortcutStyle
|
|
278
272
|
}, item.keyshortcut))), jsx("div", {
|
|
279
|
-
css: [itemDescription,
|
|
273
|
+
css: [itemDescription, moreElementsInQuickInsertViewEnabled && itemDescriptionOverride, itemIsDisabled && disabledStyle]
|
|
280
274
|
}, item.description)))))
|
|
281
275
|
);
|
|
282
276
|
});
|
|
@@ -13,7 +13,6 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
13
13
|
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
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
16
|
import { N0, N50A, N60A } from '@atlaskit/theme/colors';
|
|
18
17
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
19
18
|
import { fireTypeAheadClosedAnalyticsEvent } from '../pm-plugins/analytics';
|
|
@@ -320,8 +319,7 @@ export var TypeAheadPopup = /*#__PURE__*/React.memo(function (props) {
|
|
|
320
319
|
}
|
|
321
320
|
}
|
|
322
321
|
}, jsx("div", {
|
|
323
|
-
css: [typeAheadContent, moreElementsInQuickInsertViewEnabled && typeAheadContentOverride, showMoreOptionsButton && typeAheadWrapperWithViewMoreOverride]
|
|
324
|
-
tabIndex: fg('platform_editor_a11y_fix_typeahead_tabindex') ? undefined : 0
|
|
322
|
+
css: [typeAheadContent, moreElementsInQuickInsertViewEnabled && typeAheadContentOverride, showMoreOptionsButton && typeAheadWrapperWithViewMoreOverride]
|
|
325
323
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
326
324
|
,
|
|
327
325
|
className: TYPE_AHEAD_POPUP_CONTENT_CLASS,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-type-ahead",
|
|
3
|
-
"version": "6.5.
|
|
3
|
+
"version": "6.5.18",
|
|
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
|
],
|
|
30
30
|
"atlaskit:src": "src/index.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@atlaskit/adf-schema": "^51.
|
|
32
|
+
"@atlaskit/adf-schema": "^51.4.0",
|
|
33
33
|
"@atlaskit/editor-element-browser": "^4.0.0",
|
|
34
34
|
"@atlaskit/editor-plugin-analytics": "^6.2.0",
|
|
35
35
|
"@atlaskit/editor-plugin-connectivity": "^6.0.0",
|
|
36
36
|
"@atlaskit/editor-plugin-context-panel": "^8.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-metrics": "^7.1.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
39
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
39
|
+
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
40
40
|
"@atlaskit/heading": "^5.2.0",
|
|
41
41
|
"@atlaskit/icon": "^29.0.0",
|
|
42
42
|
"@atlaskit/insm": "^0.2.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
47
47
|
"@atlaskit/prosemirror-input-rules": "^3.6.0",
|
|
48
48
|
"@atlaskit/theme": "^21.0.0",
|
|
49
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
49
|
+
"@atlaskit/tmp-editor-statsig": "^13.38.0",
|
|
50
50
|
"@atlaskit/tokens": "^8.0.0",
|
|
51
51
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"w3c-keyname": "^2.1.8"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@atlaskit/editor-common": "^110.
|
|
61
|
+
"@atlaskit/editor-common": "^110.32.0",
|
|
62
62
|
"react": "^18.2.0",
|
|
63
63
|
"react-dom": "^18.2.0",
|
|
64
64
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -104,12 +104,6 @@
|
|
|
104
104
|
},
|
|
105
105
|
"platform_editor_refactor_view_more": {
|
|
106
106
|
"type": "boolean"
|
|
107
|
-
},
|
|
108
|
-
"platform_editor_typeahead_description_text_colour": {
|
|
109
|
-
"type": "boolean"
|
|
110
|
-
},
|
|
111
|
-
"platform_editor_a11y_fix_typeahead_tabindex": {
|
|
112
|
-
"type": "boolean"
|
|
113
107
|
}
|
|
114
108
|
}
|
|
115
109
|
}
|