@atlaskit/editor-plugin-table 7.29.5 → 7.29.6
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,15 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 7.29.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#155668](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/155668)
|
|
8
|
+
[`f948f63ced742`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f948f63ced742) -
|
|
9
|
+
We are testing replacing findDOMNode with an explicit ref behind a feature flag. If this fix is
|
|
10
|
+
successful it will be available in a later release.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 7.29.5
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.DropdownMenu = void 0;
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
12
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
12
13
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
@@ -18,7 +19,13 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
18
19
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
20
|
/* eslint-disable @atlaskit/design-system/prefer-primitives */
|
|
20
21
|
|
|
21
|
-
var
|
|
22
|
+
var DropListWithOutsideClickTargetRef = function DropListWithOutsideClickTargetRef(props) {
|
|
23
|
+
var setOutsideClickTargetRef = _react.default.useContext(_uiReact.OutsideClickTargetRefContext);
|
|
24
|
+
return /*#__PURE__*/_react.default.createElement(_ui.DropList, (0, _extends2.default)({
|
|
25
|
+
onDroplistRef: setOutsideClickTargetRef
|
|
26
|
+
}, props));
|
|
27
|
+
};
|
|
28
|
+
var DropListWithOutsideListeners = (0, _uiReact.withReactEditorViewOuterListeners)(DropListWithOutsideClickTargetRef);
|
|
22
29
|
var DropdownMenu = exports.DropdownMenu = function DropdownMenu(_ref) {
|
|
23
30
|
var items = _ref.items,
|
|
24
31
|
section = _ref.section,
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
1
2
|
/* eslint-disable @atlaskit/design-system/prefer-primitives */
|
|
2
3
|
import React, { useState } from 'react';
|
|
3
4
|
import { DropList, Popup } from '@atlaskit/editor-common/ui';
|
|
4
5
|
import { ArrowKeyNavigationProvider, ArrowKeyNavigationType, DropdownMenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
5
|
-
import { withReactEditorViewOuterListeners } from '@atlaskit/editor-common/ui-react';
|
|
6
|
+
import { OutsideClickTargetRefContext, withReactEditorViewOuterListeners } from '@atlaskit/editor-common/ui-react';
|
|
6
7
|
import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
7
8
|
import { MenuGroup, Section } from '@atlaskit/menu';
|
|
8
9
|
import { dragMenuDropdownWidth } from '../consts';
|
|
9
|
-
const
|
|
10
|
+
const DropListWithOutsideClickTargetRef = props => {
|
|
11
|
+
const setOutsideClickTargetRef = React.useContext(OutsideClickTargetRefContext);
|
|
12
|
+
return /*#__PURE__*/React.createElement(DropList, _extends({
|
|
13
|
+
onDroplistRef: setOutsideClickTargetRef
|
|
14
|
+
}, props));
|
|
15
|
+
};
|
|
16
|
+
const DropListWithOutsideListeners = withReactEditorViewOuterListeners(DropListWithOutsideClickTargetRef);
|
|
10
17
|
export const DropdownMenu = ({
|
|
11
18
|
items,
|
|
12
19
|
section,
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
3
|
/* eslint-disable @atlaskit/design-system/prefer-primitives */
|
|
3
4
|
import React, { useState } from 'react';
|
|
4
5
|
import { DropList, Popup } from '@atlaskit/editor-common/ui';
|
|
5
6
|
import { ArrowKeyNavigationProvider, ArrowKeyNavigationType, DropdownMenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
6
|
-
import { withReactEditorViewOuterListeners } from '@atlaskit/editor-common/ui-react';
|
|
7
|
+
import { OutsideClickTargetRefContext, withReactEditorViewOuterListeners } from '@atlaskit/editor-common/ui-react';
|
|
7
8
|
import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
8
9
|
import { MenuGroup, Section } from '@atlaskit/menu';
|
|
9
10
|
import { dragMenuDropdownWidth } from '../consts';
|
|
10
|
-
var
|
|
11
|
+
var DropListWithOutsideClickTargetRef = function DropListWithOutsideClickTargetRef(props) {
|
|
12
|
+
var setOutsideClickTargetRef = React.useContext(OutsideClickTargetRefContext);
|
|
13
|
+
return /*#__PURE__*/React.createElement(DropList, _extends({
|
|
14
|
+
onDroplistRef: setOutsideClickTargetRef
|
|
15
|
+
}, props));
|
|
16
|
+
};
|
|
17
|
+
var DropListWithOutsideListeners = withReactEditorViewOuterListeners(DropListWithOutsideClickTargetRef);
|
|
11
18
|
export var DropdownMenu = function DropdownMenu(_ref) {
|
|
12
19
|
var items = _ref.items,
|
|
13
20
|
section = _ref.section,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "7.29.
|
|
3
|
+
"version": "7.29.6",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"@atlaskit/adf-schema": "^42.3.1",
|
|
31
31
|
"@atlaskit/button": "^20.3.0",
|
|
32
32
|
"@atlaskit/custom-steps": "^0.8.0",
|
|
33
|
-
"@atlaskit/editor-common": "^94.
|
|
34
|
-
"@atlaskit/editor-palette": "1.6.
|
|
33
|
+
"@atlaskit/editor-common": "^94.5.0",
|
|
34
|
+
"@atlaskit/editor-palette": "1.6.3",
|
|
35
35
|
"@atlaskit/editor-plugin-accessibility-utils": "^1.2.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
37
37
|
"@atlaskit/editor-plugin-batch-attribute-updates": "1.1.3",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@atlaskit/editor-plugin-selection": "^1.5.0",
|
|
42
42
|
"@atlaskit/editor-plugin-width": "^1.3.0",
|
|
43
43
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
44
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
44
|
+
"@atlaskit/editor-shared-styles": "^3.1.0",
|
|
45
45
|
"@atlaskit/editor-tables": "^2.8.0",
|
|
46
46
|
"@atlaskit/icon": "^22.24.0",
|
|
47
47
|
"@atlaskit/menu": "^2.13.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.0",
|
|
52
52
|
"@atlaskit/primitives": "^12.2.0",
|
|
53
53
|
"@atlaskit/theme": "^14.0.0",
|
|
54
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
54
|
+
"@atlaskit/tmp-editor-statsig": "^2.10.0",
|
|
55
55
|
"@atlaskit/toggle": "^13.4.0",
|
|
56
56
|
"@atlaskit/tokens": "^2.0.0",
|
|
57
57
|
"@atlaskit/tooltip": "^18.8.0",
|
|
@@ -1,20 +1,29 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/prefer-primitives */
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
|
|
4
|
-
import { DropList, Popup } from '@atlaskit/editor-common/ui';
|
|
4
|
+
import { DropList, type DropListProps, Popup } from '@atlaskit/editor-common/ui';
|
|
5
5
|
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
6
6
|
import {
|
|
7
7
|
ArrowKeyNavigationProvider,
|
|
8
8
|
ArrowKeyNavigationType,
|
|
9
9
|
DropdownMenuItem,
|
|
10
10
|
} from '@atlaskit/editor-common/ui-menu';
|
|
11
|
-
import {
|
|
11
|
+
import {
|
|
12
|
+
OutsideClickTargetRefContext,
|
|
13
|
+
withReactEditorViewOuterListeners,
|
|
14
|
+
} from '@atlaskit/editor-common/ui-react';
|
|
12
15
|
import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
13
16
|
import { MenuGroup, Section } from '@atlaskit/menu';
|
|
14
17
|
|
|
15
18
|
import { dragMenuDropdownWidth } from '../consts';
|
|
16
19
|
|
|
17
|
-
const
|
|
20
|
+
const DropListWithOutsideClickTargetRef = (props: DropListProps) => {
|
|
21
|
+
const setOutsideClickTargetRef = React.useContext(OutsideClickTargetRefContext);
|
|
22
|
+
return <DropList onDroplistRef={setOutsideClickTargetRef} {...props} />;
|
|
23
|
+
};
|
|
24
|
+
const DropListWithOutsideListeners = withReactEditorViewOuterListeners(
|
|
25
|
+
DropListWithOutsideClickTargetRef,
|
|
26
|
+
);
|
|
18
27
|
|
|
19
28
|
type DropdownMenuProps = {
|
|
20
29
|
items: Array<{
|