@atlaskit/editor-plugin-type-ahead 6.5.17 → 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
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
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
|
+
|
|
3
10
|
## 6.5.17
|
|
4
11
|
|
|
5
12
|
### 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
|
});
|
|
@@ -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
|
});
|
|
@@ -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
|
});
|
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",
|
|
@@ -104,9 +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
107
|
}
|
|
111
108
|
}
|
|
112
109
|
}
|