@atlaskit/editor-plugin-table 15.1.1 → 15.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,12 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 15.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`7c61ac7c9ef3d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7c61ac7c9ef3d) -
|
|
8
|
+
Clean up platform_editor_table_drag_menu_flickers_fix
|
|
9
|
+
|
|
3
10
|
## 15.1.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -14,7 +14,6 @@ var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
|
14
14
|
var _uiReact = require("@atlaskit/editor-common/ui-react");
|
|
15
15
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
16
16
|
var _menu = require("@atlaskit/menu");
|
|
17
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
17
|
var _consts = require("../consts");
|
|
19
18
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
20
19
|
/* eslint-disable @atlaskit/design-system/prefer-primitives */
|
|
@@ -174,7 +173,7 @@ var DropdownMenu = exports.DropdownMenu = function DropdownMenu(_ref) {
|
|
|
174
173
|
zIndex: _editorSharedStyles.akEditorFloatingPanelZIndex,
|
|
175
174
|
offset: [offsetX, offsetY],
|
|
176
175
|
allowOutOfBounds: true // required as this popup is child of a parent popup, should be allowed to be out of bound of the parent popup, otherwise horizontal offset is not right
|
|
177
|
-
},
|
|
176
|
+
}, /*#__PURE__*/_react.default.createElement(_uiMenu.ArrowKeyNavigationProvider, {
|
|
178
177
|
closeOnTab: !disableKeyboardHandling,
|
|
179
178
|
type: _uiMenu.ArrowKeyNavigationType.MENU,
|
|
180
179
|
handleClose: onClose,
|
|
@@ -186,11 +185,6 @@ var DropdownMenu = exports.DropdownMenu = function DropdownMenu(_ref) {
|
|
|
186
185
|
// Hence set disableArrowKeyNavigation to true when disableKeyboardHandling is true
|
|
187
186
|
,
|
|
188
187
|
disableArrowKeyNavigation: disableKeyboardHandling
|
|
189
|
-
}, innerMenu()) : disableKeyboardHandling ? innerMenu() : /*#__PURE__*/_react.default.createElement(_uiMenu.ArrowKeyNavigationProvider, {
|
|
190
|
-
closeOnTab: true,
|
|
191
|
-
type: _uiMenu.ArrowKeyNavigationType.MENU,
|
|
192
|
-
handleClose: onClose,
|
|
193
|
-
onSelection: onSelection
|
|
194
188
|
}, innerMenu())))
|
|
195
189
|
);
|
|
196
190
|
};
|
|
@@ -6,7 +6,6 @@ import { ArrowKeyNavigationProvider, ArrowKeyNavigationType, DropdownMenuItem }
|
|
|
6
6
|
import { OutsideClickTargetRefContext, withReactEditorViewOuterListeners } from '@atlaskit/editor-common/ui-react';
|
|
7
7
|
import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
8
8
|
import { MenuGroup, Section } from '@atlaskit/menu';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
9
|
import { dragMenuDropdownWidth } from '../consts';
|
|
11
10
|
const DropListWithOutsideClickTargetRef = props => {
|
|
12
11
|
const setOutsideClickTargetRef = React.useContext(OutsideClickTargetRefContext);
|
|
@@ -150,7 +149,7 @@ export const DropdownMenu = ({
|
|
|
150
149
|
zIndex: akEditorFloatingPanelZIndex,
|
|
151
150
|
offset: [offsetX, offsetY],
|
|
152
151
|
allowOutOfBounds: true // required as this popup is child of a parent popup, should be allowed to be out of bound of the parent popup, otherwise horizontal offset is not right
|
|
153
|
-
},
|
|
152
|
+
}, /*#__PURE__*/React.createElement(ArrowKeyNavigationProvider, {
|
|
154
153
|
closeOnTab: !disableKeyboardHandling,
|
|
155
154
|
type: ArrowKeyNavigationType.MENU,
|
|
156
155
|
handleClose: onClose,
|
|
@@ -162,11 +161,6 @@ export const DropdownMenu = ({
|
|
|
162
161
|
// Hence set disableArrowKeyNavigation to true when disableKeyboardHandling is true
|
|
163
162
|
,
|
|
164
163
|
disableArrowKeyNavigation: disableKeyboardHandling
|
|
165
|
-
}, innerMenu()) : disableKeyboardHandling ? innerMenu() : /*#__PURE__*/React.createElement(ArrowKeyNavigationProvider, {
|
|
166
|
-
closeOnTab: true,
|
|
167
|
-
type: ArrowKeyNavigationType.MENU,
|
|
168
|
-
handleClose: onClose,
|
|
169
|
-
onSelection: onSelection
|
|
170
164
|
}, innerMenu())))
|
|
171
165
|
);
|
|
172
166
|
};
|
|
@@ -7,7 +7,6 @@ import { ArrowKeyNavigationProvider, ArrowKeyNavigationType, DropdownMenuItem }
|
|
|
7
7
|
import { OutsideClickTargetRefContext, withReactEditorViewOuterListeners } from '@atlaskit/editor-common/ui-react';
|
|
8
8
|
import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
9
9
|
import { MenuGroup, Section } from '@atlaskit/menu';
|
|
10
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
10
|
import { dragMenuDropdownWidth } from '../consts';
|
|
12
11
|
var DropListWithOutsideClickTargetRef = function DropListWithOutsideClickTargetRef(props) {
|
|
13
12
|
var setOutsideClickTargetRef = React.useContext(OutsideClickTargetRefContext);
|
|
@@ -164,7 +163,7 @@ export var DropdownMenu = function DropdownMenu(_ref) {
|
|
|
164
163
|
zIndex: akEditorFloatingPanelZIndex,
|
|
165
164
|
offset: [offsetX, offsetY],
|
|
166
165
|
allowOutOfBounds: true // required as this popup is child of a parent popup, should be allowed to be out of bound of the parent popup, otherwise horizontal offset is not right
|
|
167
|
-
},
|
|
166
|
+
}, /*#__PURE__*/React.createElement(ArrowKeyNavigationProvider, {
|
|
168
167
|
closeOnTab: !disableKeyboardHandling,
|
|
169
168
|
type: ArrowKeyNavigationType.MENU,
|
|
170
169
|
handleClose: onClose,
|
|
@@ -176,11 +175,6 @@ export var DropdownMenu = function DropdownMenu(_ref) {
|
|
|
176
175
|
// Hence set disableArrowKeyNavigation to true when disableKeyboardHandling is true
|
|
177
176
|
,
|
|
178
177
|
disableArrowKeyNavigation: disableKeyboardHandling
|
|
179
|
-
}, innerMenu()) : disableKeyboardHandling ? innerMenu() : /*#__PURE__*/React.createElement(ArrowKeyNavigationProvider, {
|
|
180
|
-
closeOnTab: true,
|
|
181
|
-
type: ArrowKeyNavigationType.MENU,
|
|
182
|
-
handleClose: onClose,
|
|
183
|
-
onSelection: onSelection
|
|
184
178
|
}, innerMenu())))
|
|
185
179
|
);
|
|
186
180
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "15.1.
|
|
3
|
+
"version": "15.1.2",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -145,9 +145,6 @@
|
|
|
145
145
|
"platform_editor_fix_table_resizing_undo": {
|
|
146
146
|
"type": "boolean"
|
|
147
147
|
},
|
|
148
|
-
"platform_editor_table_drag_menu_flickers_fix": {
|
|
149
|
-
"type": "boolean"
|
|
150
|
-
},
|
|
151
148
|
"platform_editor_table_fw_numcol_overflow_fix": {
|
|
152
149
|
"type": "boolean"
|
|
153
150
|
},
|