@atlaskit/editor-plugin-expand 0.1.12 → 0.2.1
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,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-expand
|
|
2
2
|
|
|
3
|
+
## 0.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165) [`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) - [ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update
|
|
8
|
+
|
|
9
|
+
## 0.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#61501](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61501) [`943c6cbeb965`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/943c6cbeb965) - Aria-expanded attribute for Expand/Collapse button.
|
|
14
|
+
|
|
3
15
|
## 0.1.12
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -52,8 +52,8 @@ var withTooltip = exports.withTooltip = function withTooltip(WrapperComponent) {
|
|
|
52
52
|
}(_react.default.Component);
|
|
53
53
|
};
|
|
54
54
|
var CustomButton = exports.CustomButton = function CustomButton(props) {
|
|
55
|
-
var
|
|
56
|
-
|
|
55
|
+
var allowInteractiveExpand = props.allowInteractiveExpand,
|
|
56
|
+
expanded = props.expanded;
|
|
57
57
|
var useTheme = (0, _react.useCallback)(function (currentTheme, themeProps) {
|
|
58
58
|
var _currentTheme = currentTheme(themeProps),
|
|
59
59
|
buttonStyles = _currentTheme.buttonStyles,
|
|
@@ -72,10 +72,11 @@ var CustomButton = exports.CustomButton = function CustomButton(props) {
|
|
|
72
72
|
appearance: "subtle",
|
|
73
73
|
className: _styles.expandClassNames.iconContainer,
|
|
74
74
|
iconBefore: (0, _react2.jsx)(_chevronRight.default, {
|
|
75
|
-
label:
|
|
75
|
+
label: ''
|
|
76
76
|
}),
|
|
77
77
|
shouldFitContainer: true,
|
|
78
78
|
theme: useTheme,
|
|
79
|
+
"aria-expanded": expanded,
|
|
79
80
|
isDisabled: !allowInteractiveExpand
|
|
80
81
|
});
|
|
81
82
|
};
|
|
@@ -27,8 +27,8 @@ export const withTooltip = WrapperComponent => {
|
|
|
27
27
|
};
|
|
28
28
|
export const CustomButton = props => {
|
|
29
29
|
const {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
allowInteractiveExpand,
|
|
31
|
+
expanded
|
|
32
32
|
} = props;
|
|
33
33
|
const useTheme = useCallback((currentTheme, themeProps) => {
|
|
34
34
|
const {
|
|
@@ -51,10 +51,11 @@ export const CustomButton = props => {
|
|
|
51
51
|
appearance: "subtle",
|
|
52
52
|
className: expandClassNames.iconContainer,
|
|
53
53
|
iconBefore: jsx(ChevronRightIcon, {
|
|
54
|
-
label:
|
|
54
|
+
label: ''
|
|
55
55
|
}),
|
|
56
56
|
shouldFitContainer: true,
|
|
57
57
|
theme: useTheme,
|
|
58
|
+
"aria-expanded": expanded,
|
|
58
59
|
isDisabled: !allowInteractiveExpand
|
|
59
60
|
});
|
|
60
61
|
};
|
|
@@ -43,8 +43,8 @@ export var withTooltip = function withTooltip(WrapperComponent) {
|
|
|
43
43
|
}(React.Component);
|
|
44
44
|
};
|
|
45
45
|
export var CustomButton = function CustomButton(props) {
|
|
46
|
-
var
|
|
47
|
-
|
|
46
|
+
var allowInteractiveExpand = props.allowInteractiveExpand,
|
|
47
|
+
expanded = props.expanded;
|
|
48
48
|
var useTheme = useCallback(function (currentTheme, themeProps) {
|
|
49
49
|
var _currentTheme = currentTheme(themeProps),
|
|
50
50
|
buttonStyles = _currentTheme.buttonStyles,
|
|
@@ -63,10 +63,11 @@ export var CustomButton = function CustomButton(props) {
|
|
|
63
63
|
appearance: "subtle",
|
|
64
64
|
className: expandClassNames.iconContainer,
|
|
65
65
|
iconBefore: jsx(ChevronRightIcon, {
|
|
66
|
-
label:
|
|
66
|
+
label: ''
|
|
67
67
|
}),
|
|
68
68
|
shouldFitContainer: true,
|
|
69
69
|
theme: useTheme,
|
|
70
|
+
"aria-expanded": expanded,
|
|
70
71
|
isDisabled: !allowInteractiveExpand
|
|
71
72
|
});
|
|
72
73
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-expand",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Expand plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
".": "./src/index.ts"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@atlaskit/adf-schema": "^35.
|
|
35
|
-
"@atlaskit/button": "^17.
|
|
36
|
-
"@atlaskit/editor-common": "^76.
|
|
34
|
+
"@atlaskit/adf-schema": "^35.2.0",
|
|
35
|
+
"@atlaskit/button": "^17.1.0",
|
|
36
|
+
"@atlaskit/editor-common": "^76.27.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^0.4.0",
|
|
38
38
|
"@atlaskit/editor-plugin-decorations": "^0.2.0",
|
|
39
39
|
"@atlaskit/editor-plugin-feature-flags": "^1.0.1",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@atlaskit/editor-plugin-content-insertion": "^0.1.0",
|
|
58
58
|
"@atlaskit/editor-plugin-guideline": "^0.5.0",
|
|
59
59
|
"@atlaskit/editor-plugin-quick-insert": "^0.2.0",
|
|
60
|
-
"@atlaskit/editor-plugin-table": "^5.
|
|
60
|
+
"@atlaskit/editor-plugin-table": "^5.6.0",
|
|
61
61
|
"@atlaskit/editor-plugin-type-ahead": "^0.8.0",
|
|
62
62
|
"@atlaskit/editor-plugin-width": "^0.2.0",
|
|
63
63
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|