@atlaskit/editor-plugin-alignment 1.14.4 → 1.14.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 +8 -0
- package/dist/cjs/ui/ToolbarAlignment/index.js +0 -6
- package/dist/es2019/ui/ToolbarAlignment/index.js +0 -6
- package/dist/esm/ui/ToolbarAlignment/index.js +0 -6
- package/dist/types/ui/ToolbarAlignment/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/ToolbarAlignment/index.d.ts +0 -1
- package/package.json +1 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-alignment
|
|
2
2
|
|
|
3
|
+
## 1.14.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#181001](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/181001)
|
|
8
|
+
[`48d0c93c00dcf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/48d0c93c00dcf) -
|
|
9
|
+
Cleanup fix for the alignment toolbar not closing on click while open.
|
|
10
|
+
|
|
3
11
|
## 1.14.4
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -77,11 +77,6 @@ var AlignmentToolbar = exports.AlignmentToolbar = /*#__PURE__*/function (_React$
|
|
|
77
77
|
_this.hide();
|
|
78
78
|
(_this$toolbarItemRef2 = _this.toolbarItemRef) === null || _this$toolbarItemRef2 === void 0 || (_this$toolbarItemRef2 = _this$toolbarItemRef2.current) === null || _this$toolbarItemRef2 === void 0 || _this$toolbarItemRef2.focus();
|
|
79
79
|
});
|
|
80
|
-
(0, _defineProperty2.default)(_this, "onOpenChange", function () {
|
|
81
|
-
_this.setState({
|
|
82
|
-
isOpen: false
|
|
83
|
-
});
|
|
84
|
-
});
|
|
85
80
|
return _this;
|
|
86
81
|
}
|
|
87
82
|
(0, _inherits2.default)(AlignmentToolbar, _React$Component);
|
|
@@ -120,7 +115,6 @@ var AlignmentToolbar = exports.AlignmentToolbar = /*#__PURE__*/function (_React$
|
|
|
120
115
|
});
|
|
121
116
|
}
|
|
122
117
|
},
|
|
123
|
-
onOpenChange: (0, _platformFeatureFlags.fg)('platform_editor_fix_toolbar_alignment_item') ? undefined : this.onOpenChange,
|
|
124
118
|
handleEscapeKeydown: this.hideOnEscape,
|
|
125
119
|
arrowKeyNavigationProviderOptions: {
|
|
126
120
|
type: _uiMenu.ArrowKeyNavigationType.MENU
|
|
@@ -61,11 +61,6 @@ export class AlignmentToolbar extends React.Component {
|
|
|
61
61
|
this.hide();
|
|
62
62
|
(_this$toolbarItemRef2 = this.toolbarItemRef) === null || _this$toolbarItemRef2 === void 0 ? void 0 : (_this$toolbarItemRef3 = _this$toolbarItemRef2.current) === null || _this$toolbarItemRef3 === void 0 ? void 0 : _this$toolbarItemRef3.focus();
|
|
63
63
|
});
|
|
64
|
-
_defineProperty(this, "onOpenChange", () => {
|
|
65
|
-
this.setState({
|
|
66
|
-
isOpen: false
|
|
67
|
-
});
|
|
68
|
-
});
|
|
69
64
|
}
|
|
70
65
|
render() {
|
|
71
66
|
var _pluginState$align;
|
|
@@ -102,7 +97,6 @@ export class AlignmentToolbar extends React.Component {
|
|
|
102
97
|
});
|
|
103
98
|
}
|
|
104
99
|
},
|
|
105
|
-
onOpenChange: fg('platform_editor_fix_toolbar_alignment_item') ? undefined : this.onOpenChange,
|
|
106
100
|
handleEscapeKeydown: this.hideOnEscape,
|
|
107
101
|
arrowKeyNavigationProviderOptions: {
|
|
108
102
|
type: ArrowKeyNavigationType.MENU
|
|
@@ -73,11 +73,6 @@ export var AlignmentToolbar = /*#__PURE__*/function (_React$Component) {
|
|
|
73
73
|
_this.hide();
|
|
74
74
|
(_this$toolbarItemRef2 = _this.toolbarItemRef) === null || _this$toolbarItemRef2 === void 0 || (_this$toolbarItemRef2 = _this$toolbarItemRef2.current) === null || _this$toolbarItemRef2 === void 0 || _this$toolbarItemRef2.focus();
|
|
75
75
|
});
|
|
76
|
-
_defineProperty(_this, "onOpenChange", function () {
|
|
77
|
-
_this.setState({
|
|
78
|
-
isOpen: false
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
76
|
return _this;
|
|
82
77
|
}
|
|
83
78
|
_inherits(AlignmentToolbar, _React$Component);
|
|
@@ -116,7 +111,6 @@ export var AlignmentToolbar = /*#__PURE__*/function (_React$Component) {
|
|
|
116
111
|
});
|
|
117
112
|
}
|
|
118
113
|
},
|
|
119
|
-
onOpenChange: fg('platform_editor_fix_toolbar_alignment_item') ? undefined : this.onOpenChange,
|
|
120
114
|
handleEscapeKeydown: this.hideOnEscape,
|
|
121
115
|
arrowKeyNavigationProviderOptions: {
|
|
122
116
|
type: ArrowKeyNavigationType.MENU
|
|
@@ -33,7 +33,6 @@ export declare class AlignmentToolbar extends React.Component<Props & WrappedCom
|
|
|
33
33
|
private toggleOpenByKeyboard;
|
|
34
34
|
private hide;
|
|
35
35
|
private hideOnEscape;
|
|
36
|
-
private onOpenChange;
|
|
37
36
|
}
|
|
38
37
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
|
|
39
38
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
@@ -33,7 +33,6 @@ export declare class AlignmentToolbar extends React.Component<Props & WrappedCom
|
|
|
33
33
|
private toggleOpenByKeyboard;
|
|
34
34
|
private hide;
|
|
35
35
|
private hideOnEscape;
|
|
36
|
-
private onOpenChange;
|
|
37
36
|
}
|
|
38
37
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
|
|
39
38
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-alignment",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.5",
|
|
4
4
|
"description": "Alignment plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -94,10 +94,5 @@
|
|
|
94
94
|
},
|
|
95
95
|
"af:exports": {
|
|
96
96
|
".": "./src/index.ts"
|
|
97
|
-
},
|
|
98
|
-
"platform-feature-flags": {
|
|
99
|
-
"platform_editor_fix_toolbar_alignment_item": {
|
|
100
|
-
"type": "boolean"
|
|
101
|
-
}
|
|
102
97
|
}
|
|
103
98
|
}
|