@atlaskit/editor-plugin-expand 31.0.3 → 31.0.5
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 +15 -0
- package/dist/cjs/legacyExpand/nodeviews/index.js +4 -4
- package/dist/cjs/singlePlayerExpand/node-views/index.js +2 -1
- package/dist/cjs/singlePlayerExpand/ui/NodeView.js +3 -3
- package/dist/es2019/legacyExpand/nodeviews/index.js +4 -4
- package/dist/es2019/singlePlayerExpand/node-views/index.js +2 -1
- package/dist/es2019/singlePlayerExpand/ui/NodeView.js +3 -3
- package/dist/esm/legacyExpand/nodeviews/index.js +4 -4
- package/dist/esm/singlePlayerExpand/node-views/index.js +2 -1
- package/dist/esm/singlePlayerExpand/ui/NodeView.js +3 -3
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-expand
|
|
2
2
|
|
|
3
|
+
## 31.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`4786b18933680`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4786b18933680) -
|
|
8
|
+
Enable accessible Expand body sections for non-Confluence products behind
|
|
9
|
+
`platform_editor_expand_content_a11y_other_apps`.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 31.0.4
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 31.0.3
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -76,15 +76,15 @@ var toDOM = function toDOM(node, __livePage, intl, titleReadOnly, contentEditabl
|
|
|
76
76
|
placeholder: intl && intl.formatMessage(_uiExpand.messages.expandPlaceholderText) || _uiExpand.messages.expandPlaceholderText.defaultMessage,
|
|
77
77
|
type: 'text',
|
|
78
78
|
readonly: titleReadOnly ? 'true' : undefined
|
|
79
|
-
}]]], [(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_expand_content_a11y_2') ? 'section' : 'div', _objectSpread(_objectSpread({
|
|
79
|
+
}]]], [(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_expand_content_a11y_2') || (0, _fg.fg)('platform_editor_expand_content_a11y_other_apps') ? 'section' : 'div', _objectSpread(_objectSpread({
|
|
80
80
|
// prettier-ignore
|
|
81
81
|
class: "".concat(_expand.expandClassNames.content, " ").concat((__livePage ? !node.attrs.__expanded : node.attrs.__expanded) ? '' : _expand.expandClassNames.contentCollapsed),
|
|
82
82
|
contenteditable: contentEditable !== undefined ? contentEditable ? 'true' : 'false' : undefined
|
|
83
|
-
}, !(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_expand_content_a11y_2') && {
|
|
83
|
+
}, !((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_expand_content_a11y_2') || (0, _fg.fg)('platform_editor_expand_content_a11y_other_apps')) && {
|
|
84
84
|
role: 'textbox',
|
|
85
85
|
'aria-multiline': 'true',
|
|
86
86
|
'aria-label': intl && intl.formatMessage(_uiExpand.messages.expandBodyAriaLabelOriginal) || _uiExpand.messages.expandBodyAriaLabelOriginal.defaultMessage
|
|
87
|
-
}), (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_expand_content_a11y_2') && {
|
|
87
|
+
}), ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_expand_content_a11y_2') || (0, _fg.fg)('platform_editor_expand_content_a11y_other_apps')) && {
|
|
88
88
|
'aria-label': getExpandBodyAriaLabel((_node$attrs$title = node.attrs.title) !== null && _node$attrs$title !== void 0 ? _node$attrs$title : '', intl),
|
|
89
89
|
'aria-description': (intl === null || intl === void 0 ? void 0 : intl.formatMessage(_uiExpand.messages.expandBodyAriaDescription)) || _uiExpand.messages.expandBodyAriaDescription.defaultMessage,
|
|
90
90
|
'aria-roledescription': (_intl$formatMessage = intl === null || intl === void 0 ? void 0 : intl.formatMessage(_uiExpand.messages.expandBodyRoleDescription)) !== null && _intl$formatMessage !== void 0 ? _intl$formatMessage : _uiExpand.messages.expandBodyRoleDescription.defaultMessage
|
|
@@ -729,7 +729,7 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
|
|
|
729
729
|
_this4.input.value = _this4.node.attrs.title;
|
|
730
730
|
}
|
|
731
731
|
});
|
|
732
|
-
if ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_expand_content_a11y_2')) {
|
|
732
|
+
if ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_expand_content_a11y_2') || (0, _fg.fg)('platform_editor_expand_content_a11y_other_apps')) {
|
|
733
733
|
if (this.node.attrs.title !== node.attrs.title && this.content) {
|
|
734
734
|
var _node$attrs$title2;
|
|
735
735
|
this.content.setAttribute('aria-label', getExpandBodyAriaLabel((_node$attrs$title2 = node.attrs.title) !== null && _node$attrs$title2 !== void 0 ? _node$attrs$title2 : '', this.intl));
|
|
@@ -24,6 +24,7 @@ var _dom2 = require("@atlaskit/editor-common/utils/dom");
|
|
|
24
24
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
25
25
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
26
26
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
27
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
27
28
|
var _redo = require("@atlaskit/prosemirror-history/redo");
|
|
28
29
|
var _undo = require("@atlaskit/prosemirror-history/undo");
|
|
29
30
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
@@ -626,7 +627,7 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
|
|
|
626
627
|
});
|
|
627
628
|
|
|
628
629
|
// Sync up the aria-label with the current expand title.
|
|
629
|
-
if ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_expand_content_a11y_2') && this.node.attrs.title !== node.attrs.title && this.content) {
|
|
630
|
+
if (((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_expand_content_a11y_2') || (0, _fg.fg)('platform_editor_expand_content_a11y_other_apps')) && this.node.attrs.title !== node.attrs.title && this.content) {
|
|
630
631
|
var _node$attrs$title;
|
|
631
632
|
this.content.setAttribute('aria-label', (0, _NodeView.getExpandBodyAriaLabel)((_node$attrs$title = node.attrs.title) !== null && _node$attrs$title !== void 0 ? _node$attrs$title : '', this.intl));
|
|
632
633
|
}
|
|
@@ -55,15 +55,15 @@ var toDOM = exports.toDOM = function toDOM(node, __livePage, intl, titleReadOnly
|
|
|
55
55
|
placeholder: intl && typeof intl.formatMessage === 'function' && intl.formatMessage(_uiExpand.messages.expandPlaceholderText) || _uiExpand.messages.expandPlaceholderText.defaultMessage,
|
|
56
56
|
type: 'text',
|
|
57
57
|
readonly: titleReadOnly ? 'true' : undefined
|
|
58
|
-
}]]], [(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_expand_content_a11y_2') ? 'section' : 'div', _objectSpread(_objectSpread({
|
|
58
|
+
}]]], [(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_expand_content_a11y_2') || (0, _fg.fg)('platform_editor_expand_content_a11y_other_apps') ? 'section' : 'div', _objectSpread(_objectSpread({
|
|
59
59
|
// prettier-ignore
|
|
60
60
|
class: "".concat(_expand2.expandClassNames.content, " ").concat(_expand.expandedState.get(node) ? '' : _expand2.expandClassNames.contentCollapsed),
|
|
61
61
|
contenteditable: contentEditable !== undefined ? contentEditable ? 'true' : 'false' : undefined
|
|
62
|
-
}, !(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_expand_content_a11y_2') && {
|
|
62
|
+
}, !((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_expand_content_a11y_2') || (0, _fg.fg)('platform_editor_expand_content_a11y_other_apps')) && {
|
|
63
63
|
role: 'textbox',
|
|
64
64
|
'aria-multiline': 'true',
|
|
65
65
|
'aria-label': intl && intl.formatMessage(_uiExpand.messages.expandBodyAriaLabelOriginal) || _uiExpand.messages.expandBodyAriaLabelOriginal.defaultMessage
|
|
66
|
-
}), (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_expand_content_a11y_2') && {
|
|
66
|
+
}), ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_expand_content_a11y_2') || (0, _fg.fg)('platform_editor_expand_content_a11y_other_apps')) && {
|
|
67
67
|
'aria-label': getExpandBodyAriaLabel((_node$attrs$title = node.attrs.title) !== null && _node$attrs$title !== void 0 ? _node$attrs$title : '', intl),
|
|
68
68
|
'aria-description': (intl === null || intl === void 0 ? void 0 : intl.formatMessage(_uiExpand.messages.expandBodyAriaDescription)) || _uiExpand.messages.expandBodyAriaDescription.defaultMessage,
|
|
69
69
|
'aria-roledescription': (_intl$formatMessage = intl === null || intl === void 0 ? void 0 : intl.formatMessage(_uiExpand.messages.expandBodyRoleDescription)) !== null && _intl$formatMessage !== void 0 ? _intl$formatMessage : _uiExpand.messages.expandBodyRoleDescription.defaultMessage
|
|
@@ -65,16 +65,16 @@ const toDOM = (node, __livePage, intl, titleReadOnly, contentEditable) => {
|
|
|
65
65
|
placeholder: intl && intl.formatMessage(expandMessages.expandPlaceholderText) || expandMessages.expandPlaceholderText.defaultMessage,
|
|
66
66
|
type: 'text',
|
|
67
67
|
readonly: titleReadOnly ? 'true' : undefined
|
|
68
|
-
}]]], [isExperimentEnabled('platform_editor_expand_content_a11y_2') ? 'section' : 'div', {
|
|
68
|
+
}]]], [isExperimentEnabled('platform_editor_expand_content_a11y_2') || fg('platform_editor_expand_content_a11y_other_apps') ? 'section' : 'div', {
|
|
69
69
|
// prettier-ignore
|
|
70
70
|
class: `${expandClassNames.content} ${(__livePage ? !node.attrs.__expanded : node.attrs.__expanded) ? '' : expandClassNames.contentCollapsed}`,
|
|
71
71
|
contenteditable: contentEditable !== undefined ? contentEditable ? 'true' : 'false' : undefined,
|
|
72
|
-
...(!isExperimentEnabled('platform_editor_expand_content_a11y_2') && {
|
|
72
|
+
...(!(isExperimentEnabled('platform_editor_expand_content_a11y_2') || fg('platform_editor_expand_content_a11y_other_apps')) && {
|
|
73
73
|
role: 'textbox',
|
|
74
74
|
'aria-multiline': 'true',
|
|
75
75
|
'aria-label': intl && intl.formatMessage(expandMessages.expandBodyAriaLabelOriginal) || expandMessages.expandBodyAriaLabelOriginal.defaultMessage
|
|
76
76
|
}),
|
|
77
|
-
...(isExperimentEnabled('platform_editor_expand_content_a11y_2') && {
|
|
77
|
+
...((isExperimentEnabled('platform_editor_expand_content_a11y_2') || fg('platform_editor_expand_content_a11y_other_apps')) && {
|
|
78
78
|
'aria-label': getExpandBodyAriaLabel((_node$attrs$title = node.attrs.title) !== null && _node$attrs$title !== void 0 ? _node$attrs$title : '', intl),
|
|
79
79
|
'aria-description': (intl === null || intl === void 0 ? void 0 : intl.formatMessage(expandMessages.expandBodyAriaDescription)) || expandMessages.expandBodyAriaDescription.defaultMessage,
|
|
80
80
|
'aria-roledescription': (_intl$formatMessage = intl === null || intl === void 0 ? void 0 : intl.formatMessage(expandMessages.expandBodyRoleDescription)) !== null && _intl$formatMessage !== void 0 ? _intl$formatMessage : expandMessages.expandBodyRoleDescription.defaultMessage
|
|
@@ -715,7 +715,7 @@ export class ExpandNodeView {
|
|
|
715
715
|
this.input.value = this.node.attrs.title;
|
|
716
716
|
}
|
|
717
717
|
});
|
|
718
|
-
if (isExperimentEnabled('platform_editor_expand_content_a11y_2')) {
|
|
718
|
+
if (isExperimentEnabled('platform_editor_expand_content_a11y_2') || fg('platform_editor_expand_content_a11y_other_apps')) {
|
|
719
719
|
if (this.node.attrs.title !== node.attrs.title && this.content) {
|
|
720
720
|
var _node$attrs$title2;
|
|
721
721
|
this.content.setAttribute('aria-label', getExpandBodyAriaLabel((_node$attrs$title2 = node.attrs.title) !== null && _node$attrs$title2 !== void 0 ? _node$attrs$title2 : '', this.intl));
|
|
@@ -15,6 +15,7 @@ import { closestElement } from '@atlaskit/editor-common/utils/dom';
|
|
|
15
15
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
16
16
|
import { NodeSelection, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
17
17
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
18
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
18
19
|
import { redo } from '@atlaskit/prosemirror-history/redo';
|
|
19
20
|
import { undo } from '@atlaskit/prosemirror-history/undo';
|
|
20
21
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -620,7 +621,7 @@ export class ExpandNodeView {
|
|
|
620
621
|
});
|
|
621
622
|
|
|
622
623
|
// Sync up the aria-label with the current expand title.
|
|
623
|
-
if (isExperimentEnabled('platform_editor_expand_content_a11y_2') && this.node.attrs.title !== node.attrs.title && this.content) {
|
|
624
|
+
if ((isExperimentEnabled('platform_editor_expand_content_a11y_2') || fg('platform_editor_expand_content_a11y_other_apps')) && this.node.attrs.title !== node.attrs.title && this.content) {
|
|
624
625
|
var _node$attrs$title;
|
|
625
626
|
this.content.setAttribute('aria-label', getExpandBodyAriaLabel((_node$attrs$title = node.attrs.title) !== null && _node$attrs$title !== void 0 ? _node$attrs$title : '', this.intl));
|
|
626
627
|
}
|
|
@@ -46,16 +46,16 @@ export const toDOM = (node, __livePage, intl, titleReadOnly, contentEditable) =>
|
|
|
46
46
|
placeholder: intl && typeof intl.formatMessage === 'function' && intl.formatMessage(expandMessages.expandPlaceholderText) || expandMessages.expandPlaceholderText.defaultMessage,
|
|
47
47
|
type: 'text',
|
|
48
48
|
readonly: titleReadOnly ? 'true' : undefined
|
|
49
|
-
}]]], [isExperimentEnabled('platform_editor_expand_content_a11y_2') ? 'section' : 'div', {
|
|
49
|
+
}]]], [isExperimentEnabled('platform_editor_expand_content_a11y_2') || fg('platform_editor_expand_content_a11y_other_apps') ? 'section' : 'div', {
|
|
50
50
|
// prettier-ignore
|
|
51
51
|
class: `${expandClassNames.content} ${expandedState.get(node) ? '' : expandClassNames.contentCollapsed}`,
|
|
52
52
|
contenteditable: contentEditable !== undefined ? contentEditable ? 'true' : 'false' : undefined,
|
|
53
|
-
...(!isExperimentEnabled('platform_editor_expand_content_a11y_2') && {
|
|
53
|
+
...(!(isExperimentEnabled('platform_editor_expand_content_a11y_2') || fg('platform_editor_expand_content_a11y_other_apps')) && {
|
|
54
54
|
role: 'textbox',
|
|
55
55
|
'aria-multiline': 'true',
|
|
56
56
|
'aria-label': intl && intl.formatMessage(expandMessages.expandBodyAriaLabelOriginal) || expandMessages.expandBodyAriaLabelOriginal.defaultMessage
|
|
57
57
|
}),
|
|
58
|
-
...(isExperimentEnabled('platform_editor_expand_content_a11y_2') && {
|
|
58
|
+
...((isExperimentEnabled('platform_editor_expand_content_a11y_2') || fg('platform_editor_expand_content_a11y_other_apps')) && {
|
|
59
59
|
'aria-label': getExpandBodyAriaLabel((_node$attrs$title = node.attrs.title) !== null && _node$attrs$title !== void 0 ? _node$attrs$title : '', intl),
|
|
60
60
|
'aria-description': (intl === null || intl === void 0 ? void 0 : intl.formatMessage(expandMessages.expandBodyAriaDescription)) || expandMessages.expandBodyAriaDescription.defaultMessage,
|
|
61
61
|
'aria-roledescription': (_intl$formatMessage = intl === null || intl === void 0 ? void 0 : intl.formatMessage(expandMessages.expandBodyRoleDescription)) !== null && _intl$formatMessage !== void 0 ? _intl$formatMessage : expandMessages.expandBodyRoleDescription.defaultMessage
|
|
@@ -68,15 +68,15 @@ var toDOM = function toDOM(node, __livePage, intl, titleReadOnly, contentEditabl
|
|
|
68
68
|
placeholder: intl && intl.formatMessage(expandMessages.expandPlaceholderText) || expandMessages.expandPlaceholderText.defaultMessage,
|
|
69
69
|
type: 'text',
|
|
70
70
|
readonly: titleReadOnly ? 'true' : undefined
|
|
71
|
-
}]]], [isExperimentEnabled('platform_editor_expand_content_a11y_2') ? 'section' : 'div', _objectSpread(_objectSpread({
|
|
71
|
+
}]]], [isExperimentEnabled('platform_editor_expand_content_a11y_2') || fg('platform_editor_expand_content_a11y_other_apps') ? 'section' : 'div', _objectSpread(_objectSpread({
|
|
72
72
|
// prettier-ignore
|
|
73
73
|
class: "".concat(expandClassNames.content, " ").concat((__livePage ? !node.attrs.__expanded : node.attrs.__expanded) ? '' : expandClassNames.contentCollapsed),
|
|
74
74
|
contenteditable: contentEditable !== undefined ? contentEditable ? 'true' : 'false' : undefined
|
|
75
|
-
}, !isExperimentEnabled('platform_editor_expand_content_a11y_2') && {
|
|
75
|
+
}, !(isExperimentEnabled('platform_editor_expand_content_a11y_2') || fg('platform_editor_expand_content_a11y_other_apps')) && {
|
|
76
76
|
role: 'textbox',
|
|
77
77
|
'aria-multiline': 'true',
|
|
78
78
|
'aria-label': intl && intl.formatMessage(expandMessages.expandBodyAriaLabelOriginal) || expandMessages.expandBodyAriaLabelOriginal.defaultMessage
|
|
79
|
-
}), isExperimentEnabled('platform_editor_expand_content_a11y_2') && {
|
|
79
|
+
}), (isExperimentEnabled('platform_editor_expand_content_a11y_2') || fg('platform_editor_expand_content_a11y_other_apps')) && {
|
|
80
80
|
'aria-label': getExpandBodyAriaLabel((_node$attrs$title = node.attrs.title) !== null && _node$attrs$title !== void 0 ? _node$attrs$title : '', intl),
|
|
81
81
|
'aria-description': (intl === null || intl === void 0 ? void 0 : intl.formatMessage(expandMessages.expandBodyAriaDescription)) || expandMessages.expandBodyAriaDescription.defaultMessage,
|
|
82
82
|
'aria-roledescription': (_intl$formatMessage = intl === null || intl === void 0 ? void 0 : intl.formatMessage(expandMessages.expandBodyRoleDescription)) !== null && _intl$formatMessage !== void 0 ? _intl$formatMessage : expandMessages.expandBodyRoleDescription.defaultMessage
|
|
@@ -721,7 +721,7 @@ export var ExpandNodeView = /*#__PURE__*/function () {
|
|
|
721
721
|
_this4.input.value = _this4.node.attrs.title;
|
|
722
722
|
}
|
|
723
723
|
});
|
|
724
|
-
if (isExperimentEnabled('platform_editor_expand_content_a11y_2')) {
|
|
724
|
+
if (isExperimentEnabled('platform_editor_expand_content_a11y_2') || fg('platform_editor_expand_content_a11y_other_apps')) {
|
|
725
725
|
if (this.node.attrs.title !== node.attrs.title && this.content) {
|
|
726
726
|
var _node$attrs$title2;
|
|
727
727
|
this.content.setAttribute('aria-label', getExpandBodyAriaLabel((_node$attrs$title2 = node.attrs.title) !== null && _node$attrs$title2 !== void 0 ? _node$attrs$title2 : '', this.intl));
|
|
@@ -17,6 +17,7 @@ import { closestElement } from '@atlaskit/editor-common/utils/dom';
|
|
|
17
17
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
18
18
|
import { NodeSelection, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
19
19
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
20
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
20
21
|
import { redo } from '@atlaskit/prosemirror-history/redo';
|
|
21
22
|
import { undo } from '@atlaskit/prosemirror-history/undo';
|
|
22
23
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -618,7 +619,7 @@ export var ExpandNodeView = /*#__PURE__*/function () {
|
|
|
618
619
|
});
|
|
619
620
|
|
|
620
621
|
// Sync up the aria-label with the current expand title.
|
|
621
|
-
if (isExperimentEnabled('platform_editor_expand_content_a11y_2') && this.node.attrs.title !== node.attrs.title && this.content) {
|
|
622
|
+
if ((isExperimentEnabled('platform_editor_expand_content_a11y_2') || fg('platform_editor_expand_content_a11y_other_apps')) && this.node.attrs.title !== node.attrs.title && this.content) {
|
|
622
623
|
var _node$attrs$title;
|
|
623
624
|
this.content.setAttribute('aria-label', getExpandBodyAriaLabel((_node$attrs$title = node.attrs.title) !== null && _node$attrs$title !== void 0 ? _node$attrs$title : '', this.intl));
|
|
624
625
|
}
|
|
@@ -48,15 +48,15 @@ export var toDOM = function toDOM(node, __livePage, intl, titleReadOnly, content
|
|
|
48
48
|
placeholder: intl && typeof intl.formatMessage === 'function' && intl.formatMessage(expandMessages.expandPlaceholderText) || expandMessages.expandPlaceholderText.defaultMessage,
|
|
49
49
|
type: 'text',
|
|
50
50
|
readonly: titleReadOnly ? 'true' : undefined
|
|
51
|
-
}]]], [isExperimentEnabled('platform_editor_expand_content_a11y_2') ? 'section' : 'div', _objectSpread(_objectSpread({
|
|
51
|
+
}]]], [isExperimentEnabled('platform_editor_expand_content_a11y_2') || fg('platform_editor_expand_content_a11y_other_apps') ? 'section' : 'div', _objectSpread(_objectSpread({
|
|
52
52
|
// prettier-ignore
|
|
53
53
|
class: "".concat(expandClassNames.content, " ").concat(expandedState.get(node) ? '' : expandClassNames.contentCollapsed),
|
|
54
54
|
contenteditable: contentEditable !== undefined ? contentEditable ? 'true' : 'false' : undefined
|
|
55
|
-
}, !isExperimentEnabled('platform_editor_expand_content_a11y_2') && {
|
|
55
|
+
}, !(isExperimentEnabled('platform_editor_expand_content_a11y_2') || fg('platform_editor_expand_content_a11y_other_apps')) && {
|
|
56
56
|
role: 'textbox',
|
|
57
57
|
'aria-multiline': 'true',
|
|
58
58
|
'aria-label': intl && intl.formatMessage(expandMessages.expandBodyAriaLabelOriginal) || expandMessages.expandBodyAriaLabelOriginal.defaultMessage
|
|
59
|
-
}), isExperimentEnabled('platform_editor_expand_content_a11y_2') && {
|
|
59
|
+
}), (isExperimentEnabled('platform_editor_expand_content_a11y_2') || fg('platform_editor_expand_content_a11y_other_apps')) && {
|
|
60
60
|
'aria-label': getExpandBodyAriaLabel((_node$attrs$title = node.attrs.title) !== null && _node$attrs$title !== void 0 ? _node$attrs$title : '', intl),
|
|
61
61
|
'aria-description': (intl === null || intl === void 0 ? void 0 : intl.formatMessage(expandMessages.expandBodyAriaDescription)) || expandMessages.expandBodyAriaDescription.defaultMessage,
|
|
62
62
|
'aria-roledescription': (_intl$formatMessage = intl === null || intl === void 0 ? void 0 : intl.formatMessage(expandMessages.expandBodyRoleDescription)) !== null && _intl$formatMessage !== void 0 ? _intl$formatMessage : expandMessages.expandBodyRoleDescription.defaultMessage
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-expand",
|
|
3
|
-
"version": "31.0.
|
|
3
|
+
"version": "31.0.5",
|
|
4
4
|
"description": "Expand plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@atlaskit/adf-schema": "^57.7.0",
|
|
25
25
|
"@atlaskit/button": "^25.6.0",
|
|
26
26
|
"@atlaskit/editor-plugin-analytics": "^30.0.0",
|
|
27
|
-
"@atlaskit/editor-plugin-block-controls": "^31.
|
|
27
|
+
"@atlaskit/editor-plugin-block-controls": "^31.1.0",
|
|
28
28
|
"@atlaskit/editor-plugin-block-menu": "^29.0.0",
|
|
29
29
|
"@atlaskit/editor-plugin-decorations": "^30.0.0",
|
|
30
30
|
"@atlaskit/editor-plugin-editor-disabled": "^30.0.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
45
45
|
"@atlaskit/prosemirror-history": "^1.3.0",
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^249.0.0",
|
|
47
47
|
"@atlaskit/tokens": "^20.8.0",
|
|
48
48
|
"@atlaskit/tooltip": "^24.4.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"w3c-keyname": "^2.1.8"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@atlaskit/editor-common": "^134.
|
|
55
|
+
"@atlaskit/editor-common": "^134.2.0",
|
|
56
56
|
"react": "^18.2.0 || ^19.2.0",
|
|
57
57
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
58
58
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|