@atlaskit/editor-plugin-type-ahead 3.1.0 → 3.1.2
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,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-type-ahead
|
|
2
2
|
|
|
3
|
+
## 3.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`f62a413f74677`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f62a413f74677) -
|
|
8
|
+
ENGHEALTH-32249 A11y violation detected for rule "aria-valid-attr-value" for
|
|
9
|
+
"@atlaskit/editor-core" from "Editor"
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 3.1.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#191913](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/191913)
|
|
17
|
+
[`6d1e56695e91d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6d1e56695e91d) -
|
|
18
|
+
EDITOR-1131 Bump adf-schema package to 50.0.0
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 3.1.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -17,6 +17,7 @@ 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
19
|
var _colors = require("@atlaskit/theme/colors");
|
|
20
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
20
21
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
21
22
|
/**
|
|
22
23
|
* @jsxRuntime classic
|
|
@@ -137,7 +138,7 @@ var CustomItemComponentWrapper = /*#__PURE__*/_react.default.memo(function (prop
|
|
|
137
138
|
role: "option",
|
|
138
139
|
"aria-label": ariaLabel,
|
|
139
140
|
"aria-setsize": itemsLength,
|
|
140
|
-
"aria-posinset": itemIndex,
|
|
141
|
+
"aria-posinset": (0, _expValEquals.expValEquals)('platform_editor_fix_a11y_aria_posinset_0', 'isEnabled', true) ? itemIndex + 1 : itemIndex,
|
|
141
142
|
tabIndex: 0
|
|
142
143
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
143
144
|
,
|
|
@@ -272,7 +273,7 @@ var TypeAheadListItem = exports.TypeAheadListItem = /*#__PURE__*/_react.default.
|
|
|
272
273
|
,
|
|
273
274
|
"aria-description": "".concat(descriptionText, " ").concat(shortcutText),
|
|
274
275
|
"aria-setsize": itemsLength,
|
|
275
|
-
"aria-posinset": itemIndex,
|
|
276
|
+
"aria-posinset": (0, _expValEquals.expValEquals)('platform_editor_fix_a11y_aria_posinset_0', 'isEnabled', true) ? itemIndex + 1 : itemIndex,
|
|
276
277
|
role: "option",
|
|
277
278
|
ref: buttonItemRef,
|
|
278
279
|
isDisabled: itemIsDisabled
|
|
@@ -14,6 +14,7 @@ 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
16
|
import { B400, N200, N30, N800 } from '@atlaskit/theme/colors';
|
|
17
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
18
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
18
19
|
export const itemIcon = css({
|
|
19
20
|
width: "var(--ds-space-500, 40px)",
|
|
@@ -147,7 +148,7 @@ const CustomItemComponentWrapper = /*#__PURE__*/React.memo(props => {
|
|
|
147
148
|
role: "option",
|
|
148
149
|
"aria-label": ariaLabel,
|
|
149
150
|
"aria-setsize": itemsLength,
|
|
150
|
-
"aria-posinset": itemIndex,
|
|
151
|
+
"aria-posinset": expValEquals('platform_editor_fix_a11y_aria_posinset_0', 'isEnabled', true) ? itemIndex + 1 : itemIndex,
|
|
151
152
|
tabIndex: 0
|
|
152
153
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
153
154
|
,
|
|
@@ -288,7 +289,7 @@ export const TypeAheadListItem = /*#__PURE__*/React.memo(({
|
|
|
288
289
|
,
|
|
289
290
|
"aria-description": `${descriptionText} ${shortcutText}`,
|
|
290
291
|
"aria-setsize": itemsLength,
|
|
291
|
-
"aria-posinset": itemIndex,
|
|
292
|
+
"aria-posinset": expValEquals('platform_editor_fix_a11y_aria_posinset_0', 'isEnabled', true) ? itemIndex + 1 : itemIndex,
|
|
292
293
|
role: "option",
|
|
293
294
|
ref: buttonItemRef,
|
|
294
295
|
isDisabled: itemIsDisabled
|
|
@@ -16,6 +16,7 @@ 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
18
|
import { B400, N200, N30, N800 } from '@atlaskit/theme/colors';
|
|
19
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
19
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
20
21
|
export var itemIcon = css({
|
|
21
22
|
width: "var(--ds-space-500, 40px)",
|
|
@@ -129,7 +130,7 @@ var CustomItemComponentWrapper = /*#__PURE__*/React.memo(function (props) {
|
|
|
129
130
|
role: "option",
|
|
130
131
|
"aria-label": ariaLabel,
|
|
131
132
|
"aria-setsize": itemsLength,
|
|
132
|
-
"aria-posinset": itemIndex,
|
|
133
|
+
"aria-posinset": expValEquals('platform_editor_fix_a11y_aria_posinset_0', 'isEnabled', true) ? itemIndex + 1 : itemIndex,
|
|
133
134
|
tabIndex: 0
|
|
134
135
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
135
136
|
,
|
|
@@ -264,7 +265,7 @@ export var TypeAheadListItem = /*#__PURE__*/React.memo(function (_ref2) {
|
|
|
264
265
|
,
|
|
265
266
|
"aria-description": "".concat(descriptionText, " ").concat(shortcutText),
|
|
266
267
|
"aria-setsize": itemsLength,
|
|
267
|
-
"aria-posinset": itemIndex,
|
|
268
|
+
"aria-posinset": expValEquals('platform_editor_fix_a11y_aria_posinset_0', 'isEnabled', true) ? itemIndex + 1 : itemIndex,
|
|
268
269
|
role: "option",
|
|
269
270
|
ref: buttonItemRef,
|
|
270
271
|
isDisabled: itemIsDisabled
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-type-ahead",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"description": "Type-ahead plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
".": "./src/index.ts"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@atlaskit/adf-schema": "^
|
|
35
|
+
"@atlaskit/adf-schema": "^50.0.1",
|
|
36
36
|
"@atlaskit/editor-element-browser": "^1.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^3.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-connectivity": "^3.1.0",
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
42
42
|
"@atlaskit/editor-shared-styles": "^3.5.0",
|
|
43
43
|
"@atlaskit/heading": "^5.2.0",
|
|
44
|
-
"@atlaskit/icon": "^27.
|
|
45
|
-
"@atlaskit/menu": "^8.
|
|
44
|
+
"@atlaskit/icon": "^27.9.0",
|
|
45
|
+
"@atlaskit/menu": "^8.1.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
|
-
"@atlaskit/primitives": "^14.
|
|
47
|
+
"@atlaskit/primitives": "^14.11.0",
|
|
48
48
|
"@atlaskit/prosemirror-input-rules": "^3.3.0",
|
|
49
49
|
"@atlaskit/theme": "^19.0.0",
|
|
50
|
-
"@atlaskit/tmp-editor-statsig": "^9.
|
|
51
|
-
"@atlaskit/tokens": "^
|
|
50
|
+
"@atlaskit/tmp-editor-statsig": "^9.22.0",
|
|
51
|
+
"@atlaskit/tokens": "^6.0.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
53
53
|
"@emotion/react": "^11.7.1",
|
|
54
54
|
"lodash": "^4.17.21",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"w3c-keyname": "^2.1.8"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@atlaskit/editor-common": "^107.
|
|
61
|
+
"@atlaskit/editor-common": "^107.16.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"
|