@atlaskit/editor-plugin-type-ahead 2.5.1 → 2.5.3
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,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-type-ahead
|
|
2
2
|
|
|
3
|
+
## 2.5.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 2.5.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#142191](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/142191)
|
|
14
|
+
[`8a39e59bec14f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8a39e59bec14f) -
|
|
15
|
+
A11Y-9980: Update view more button aria label to be more descriptive.
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 2.5.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -448,10 +448,10 @@ var InputQuery = exports.InputQuery = /*#__PURE__*/_react.default.memo(function
|
|
|
448
448
|
var intl = (0, _reactIntlNext.useIntl)();
|
|
449
449
|
|
|
450
450
|
/**
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
451
|
+
When we migrated to emotion from styled component, we started getting this error.
|
|
452
|
+
jsx-a11y/interactive-supports-focus
|
|
453
|
+
Task added in https://product-fabric.atlassian.net/wiki/spaces/E/pages/3182068181/Potential+improvements#Moderate-changes.
|
|
454
|
+
*/
|
|
455
455
|
return (0, _react2.jsx)(_react.Fragment, null, triggerQueryPrefix, (0, _react2.jsx)("span", {
|
|
456
456
|
css: [querySpanStyles, isSearchPlaceholderEnabled && queryWithoutPlaceholderStyles, showPlaceholder && placeholderStyles],
|
|
457
457
|
contentEditable: true,
|
package/dist/cjs/ui/ViewMore.js
CHANGED
|
@@ -11,6 +11,7 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
11
11
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
12
12
|
var _showMoreHorizontalEditorMore = _interopRequireDefault(require("@atlaskit/icon/core/migration/show-more-horizontal--editor-more"));
|
|
13
13
|
var _menu = require("@atlaskit/menu");
|
|
14
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
15
|
var _colors = require("@atlaskit/theme/colors");
|
|
15
16
|
/**
|
|
16
17
|
* @jsxRuntime classic
|
|
@@ -78,7 +79,8 @@ var ViewMore = exports.ViewMore = function ViewMore(_ref) {
|
|
|
78
79
|
iconBefore: (0, _react2.jsx)(_showMoreHorizontalEditorMore.default, {
|
|
79
80
|
label: ""
|
|
80
81
|
}),
|
|
81
|
-
"aria-describedby": formatMessage(_messages.toolbarInsertBlockMessages.viewMore),
|
|
82
|
+
"aria-describedby": (0, _platformFeatureFlags.fg)('platform_editor_refactor_view_more') ? undefined : formatMessage(_messages.toolbarInsertBlockMessages.viewMore),
|
|
83
|
+
"aria-label": (0, _platformFeatureFlags.fg)('platform_editor_refactor_view_more') ? formatMessage(_messages.toolbarInsertBlockMessages.viewMoreAriaLabel) : undefined,
|
|
82
84
|
"data-testid": "quick-insert-view-more-elements-item"
|
|
83
85
|
}, formatMessage(_messages.toolbarInsertBlockMessages.viewMore))));
|
|
84
86
|
};
|
|
@@ -440,10 +440,10 @@ export const InputQuery = /*#__PURE__*/React.memo(({
|
|
|
440
440
|
const intl = useIntl();
|
|
441
441
|
|
|
442
442
|
/**
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
443
|
+
When we migrated to emotion from styled component, we started getting this error.
|
|
444
|
+
jsx-a11y/interactive-supports-focus
|
|
445
|
+
Task added in https://product-fabric.atlassian.net/wiki/spaces/E/pages/3182068181/Potential+improvements#Moderate-changes.
|
|
446
|
+
*/
|
|
447
447
|
return jsx(Fragment, null, triggerQueryPrefix, jsx("span", {
|
|
448
448
|
css: [querySpanStyles, isSearchPlaceholderEnabled && queryWithoutPlaceholderStyles, showPlaceholder && placeholderStyles],
|
|
449
449
|
contentEditable: true,
|
|
@@ -10,6 +10,7 @@ import { useIntl } from 'react-intl-next';
|
|
|
10
10
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
11
11
|
import ShowMoreHorizontalIcon from '@atlaskit/icon/core/migration/show-more-horizontal--editor-more';
|
|
12
12
|
import { ButtonItem, Section } from '@atlaskit/menu';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
14
|
import { N30 } from '@atlaskit/theme/colors';
|
|
14
15
|
const buttonStyles = css({
|
|
15
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
@@ -74,7 +75,8 @@ export const ViewMore = ({
|
|
|
74
75
|
iconBefore: jsx(ShowMoreHorizontalIcon, {
|
|
75
76
|
label: ""
|
|
76
77
|
}),
|
|
77
|
-
"aria-describedby": formatMessage(messages.viewMore),
|
|
78
|
+
"aria-describedby": fg('platform_editor_refactor_view_more') ? undefined : formatMessage(messages.viewMore),
|
|
79
|
+
"aria-label": fg('platform_editor_refactor_view_more') ? formatMessage(messages.viewMoreAriaLabel) : undefined,
|
|
78
80
|
"data-testid": "quick-insert-view-more-elements-item"
|
|
79
81
|
}, formatMessage(messages.viewMore))));
|
|
80
82
|
};
|
|
@@ -437,10 +437,10 @@ export var InputQuery = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
437
437
|
var intl = useIntl();
|
|
438
438
|
|
|
439
439
|
/**
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
440
|
+
When we migrated to emotion from styled component, we started getting this error.
|
|
441
|
+
jsx-a11y/interactive-supports-focus
|
|
442
|
+
Task added in https://product-fabric.atlassian.net/wiki/spaces/E/pages/3182068181/Potential+improvements#Moderate-changes.
|
|
443
|
+
*/
|
|
444
444
|
return jsx(Fragment, null, triggerQueryPrefix, jsx("span", {
|
|
445
445
|
css: [querySpanStyles, isSearchPlaceholderEnabled && queryWithoutPlaceholderStyles, showPlaceholder && placeholderStyles],
|
|
446
446
|
contentEditable: true,
|
package/dist/esm/ui/ViewMore.js
CHANGED
|
@@ -10,6 +10,7 @@ import { useIntl } from 'react-intl-next';
|
|
|
10
10
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
11
11
|
import ShowMoreHorizontalIcon from '@atlaskit/icon/core/migration/show-more-horizontal--editor-more';
|
|
12
12
|
import { ButtonItem, Section } from '@atlaskit/menu';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
14
|
import { N30 } from '@atlaskit/theme/colors';
|
|
14
15
|
var buttonStyles = css({
|
|
15
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
@@ -70,7 +71,8 @@ export var ViewMore = function ViewMore(_ref) {
|
|
|
70
71
|
iconBefore: jsx(ShowMoreHorizontalIcon, {
|
|
71
72
|
label: ""
|
|
72
73
|
}),
|
|
73
|
-
"aria-describedby": formatMessage(messages.viewMore),
|
|
74
|
+
"aria-describedby": fg('platform_editor_refactor_view_more') ? undefined : formatMessage(messages.viewMore),
|
|
75
|
+
"aria-label": fg('platform_editor_refactor_view_more') ? formatMessage(messages.viewMoreAriaLabel) : undefined,
|
|
74
76
|
"data-testid": "quick-insert-view-more-elements-item"
|
|
75
77
|
}, formatMessage(messages.viewMore))));
|
|
76
78
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-type-ahead",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.3",
|
|
4
4
|
"description": "Type-ahead plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
37
|
-
"@atlaskit/editor-common": "^103.
|
|
37
|
+
"@atlaskit/editor-common": "^103.19.0",
|
|
38
38
|
"@atlaskit/editor-element-browser": "^0.1.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^2.2.0",
|
|
40
40
|
"@atlaskit/editor-plugin-connectivity": "^2.0.0",
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
45
45
|
"@atlaskit/heading": "^5.2.0",
|
|
46
46
|
"@atlaskit/icon": "^25.6.0",
|
|
47
|
-
"@atlaskit/menu": "^
|
|
47
|
+
"@atlaskit/menu": "^4.0.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
49
49
|
"@atlaskit/primitives": "^14.4.0",
|
|
50
50
|
"@atlaskit/prosemirror-input-rules": "^3.3.0",
|
|
51
51
|
"@atlaskit/theme": "^18.0.0",
|
|
52
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
52
|
+
"@atlaskit/tmp-editor-statsig": "^4.15.0",
|
|
53
53
|
"@atlaskit/tokens": "^4.8.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
55
55
|
"@emotion/react": "^11.7.1",
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@af/visual-regression": "
|
|
69
|
-
"@atlaskit/ssr": "
|
|
70
|
-
"@atlaskit/visual-regression": "
|
|
68
|
+
"@af/visual-regression": "workspace:^",
|
|
69
|
+
"@atlaskit/ssr": "workspace:^",
|
|
70
|
+
"@atlaskit/visual-regression": "workspace:^",
|
|
71
71
|
"@testing-library/react": "^13.4.0",
|
|
72
72
|
"@types/react-virtualized": "^9.18.12",
|
|
73
73
|
"typescript": "~5.4.2",
|
|
@@ -116,6 +116,9 @@
|
|
|
116
116
|
},
|
|
117
117
|
"platform_editor_ease_of_use_metrics": {
|
|
118
118
|
"type": "boolean"
|
|
119
|
+
},
|
|
120
|
+
"platform_editor_refactor_view_more": {
|
|
121
|
+
"type": "boolean"
|
|
119
122
|
}
|
|
120
123
|
}
|
|
121
124
|
}
|