@atlaskit/editor-plugin-expand 11.1.1 → 11.1.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-expand
2
2
 
3
+ ## 11.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 11.1.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [`0f48d9316bffc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0f48d9316bffc) -
14
+ Changed role of expand from group to textbox and added aria-multiline for editable clarity for
15
+ screen users
16
+ - Updated dependencies
17
+
3
18
  ## 11.1.1
4
19
 
5
20
  ### Patch Changes
@@ -66,7 +66,8 @@ var toDOM = function toDOM(node, __livePage, intl, titleReadOnly, contentEditabl
66
66
  class: "".concat(_styles.expandClassNames.content, " ").concat((__livePage ? !node.attrs.__expanded : node.attrs.__expanded) ? '' : _styles.expandClassNames.contentCollapsed),
67
67
  contenteditable: contentEditable !== undefined ? contentEditable ? 'true' : 'false' : undefined
68
68
  }, (0, _expValEquals.expValEquals)('platform_editor_expand_content_a11y', 'isEnabled', true) && {
69
- role: 'group',
69
+ role: 'textbox',
70
+ 'aria-multiline': 'true',
70
71
  'aria-label': intl && intl.formatMessage(_ui.expandMessages.expandBodyAriaLabel) || _ui.expandMessages.expandBodyAriaLabel.defaultMessage
71
72
  }), 0]];
72
73
  };
@@ -54,7 +54,8 @@ var toDOM = exports.toDOM = function toDOM(node, __livePage, intl, titleReadOnly
54
54
  class: "".concat(_styles.expandClassNames.content, " ").concat(_expand.expandedState.get(node) ? '' : _styles.expandClassNames.contentCollapsed),
55
55
  contenteditable: contentEditable !== undefined ? contentEditable ? 'true' : 'false' : undefined
56
56
  }, (0, _expValEquals.expValEquals)('platform_editor_expand_content_a11y', 'isEnabled', true) && {
57
- role: 'group',
57
+ role: 'textbox',
58
+ 'aria-multiline': 'true',
58
59
  'aria-label': intl && intl.formatMessage(_ui.expandMessages.expandBodyAriaLabel) || _ui.expandMessages.expandBodyAriaLabel.defaultMessage
59
60
  }), 0]];
60
61
  };
@@ -55,7 +55,8 @@ const toDOM = (node, __livePage, intl, titleReadOnly, contentEditable) => ['div'
55
55
  class: `${expandClassNames.content} ${(__livePage ? !node.attrs.__expanded : node.attrs.__expanded) ? '' : expandClassNames.contentCollapsed}`,
56
56
  contenteditable: contentEditable !== undefined ? contentEditable ? 'true' : 'false' : undefined,
57
57
  ...(expValEquals('platform_editor_expand_content_a11y', 'isEnabled', true) && {
58
- role: 'group',
58
+ role: 'textbox',
59
+ 'aria-multiline': 'true',
59
60
  'aria-label': intl && intl.formatMessage(expandMessages.expandBodyAriaLabel) || expandMessages.expandBodyAriaLabel.defaultMessage
60
61
  })
61
62
  }, 0]];
@@ -45,7 +45,8 @@ export const toDOM = (node, __livePage, intl, titleReadOnly, contentEditable) =>
45
45
  class: `${expandClassNames.content} ${expandedState.get(node) ? '' : expandClassNames.contentCollapsed}`,
46
46
  contenteditable: contentEditable !== undefined ? contentEditable ? 'true' : 'false' : undefined,
47
47
  ...(expValEquals('platform_editor_expand_content_a11y', 'isEnabled', true) && {
48
- role: 'group',
48
+ role: 'textbox',
49
+ 'aria-multiline': 'true',
49
50
  'aria-label': intl && intl.formatMessage(expandMessages.expandBodyAriaLabel) || expandMessages.expandBodyAriaLabel.defaultMessage
50
51
  })
51
52
  }, 0]];
@@ -59,7 +59,8 @@ var toDOM = function toDOM(node, __livePage, intl, titleReadOnly, contentEditabl
59
59
  class: "".concat(expandClassNames.content, " ").concat((__livePage ? !node.attrs.__expanded : node.attrs.__expanded) ? '' : expandClassNames.contentCollapsed),
60
60
  contenteditable: contentEditable !== undefined ? contentEditable ? 'true' : 'false' : undefined
61
61
  }, expValEquals('platform_editor_expand_content_a11y', 'isEnabled', true) && {
62
- role: 'group',
62
+ role: 'textbox',
63
+ 'aria-multiline': 'true',
63
64
  'aria-label': intl && intl.formatMessage(expandMessages.expandBodyAriaLabel) || expandMessages.expandBodyAriaLabel.defaultMessage
64
65
  }), 0]];
65
66
  };
@@ -47,7 +47,8 @@ export var toDOM = function toDOM(node, __livePage, intl, titleReadOnly, content
47
47
  class: "".concat(expandClassNames.content, " ").concat(expandedState.get(node) ? '' : expandClassNames.contentCollapsed),
48
48
  contenteditable: contentEditable !== undefined ? contentEditable ? 'true' : 'false' : undefined
49
49
  }, expValEquals('platform_editor_expand_content_a11y', 'isEnabled', true) && {
50
- role: 'group',
50
+ role: 'textbox',
51
+ 'aria-multiline': 'true',
51
52
  'aria-label': intl && intl.formatMessage(expandMessages.expandBodyAriaLabel) || expandMessages.expandBodyAriaLabel.defaultMessage
52
53
  }), 0]];
53
54
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "11.1.1",
3
+ "version": "11.1.3",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -48,7 +48,7 @@
48
48
  "@atlaskit/icon-lab": "^6.6.0",
49
49
  "@atlaskit/platform-feature-flags": "^1.1.0",
50
50
  "@atlaskit/prosemirror-history": "^0.2.0",
51
- "@atlaskit/tmp-editor-statsig": "^74.7.0",
51
+ "@atlaskit/tmp-editor-statsig": "^76.0.0",
52
52
  "@atlaskit/tokens": "^13.0.0",
53
53
  "@atlaskit/tooltip": "^22.0.0",
54
54
  "@babel/runtime": "^7.0.0",
@@ -57,7 +57,7 @@
57
57
  "w3c-keyname": "^2.1.8"
58
58
  },
59
59
  "peerDependencies": {
60
- "@atlaskit/editor-common": "^114.18.0",
60
+ "@atlaskit/editor-common": "^114.20.0",
61
61
  "react": "^18.2.0",
62
62
  "react-dom": "^18.2.0",
63
63
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"