@atlaskit/editor-plugin-expand 2.10.7 → 2.10.8
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 +9 -0
- package/dist/cjs/legacyExpand/nodeviews/index.js +1 -2
- package/dist/cjs/legacyExpand/ui/ExpandIconButton.js +5 -7
- package/dist/cjs/singlePlayerExpand/node-views/index.js +1 -2
- package/dist/cjs/singlePlayerExpand/pm-plugins/main.js +0 -3
- package/dist/es2019/index.js +3 -0
- package/dist/es2019/singlePlayerExpand/pm-plugins/main.js +0 -3
- package/dist/esm/index.js +3 -0
- package/dist/esm/legacyExpand/nodeviews/index.js +1 -2
- package/dist/esm/legacyExpand/ui/ExpandIconButton.js +5 -7
- package/dist/esm/singlePlayerExpand/node-views/index.js +1 -2
- package/dist/esm/singlePlayerExpand/pm-plugins/main.js +0 -3
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-expand
|
|
2
2
|
|
|
3
|
+
## 2.10.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#178005](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/178005)
|
|
8
|
+
[`3a71ff9cf31d4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3a71ff9cf31d4) -
|
|
9
|
+
ED-25723 removing feature flag and use exisiting implementation for handleScrollToSelection for
|
|
10
|
+
singlePlayerExapnd
|
|
11
|
+
|
|
3
12
|
## 2.10.7
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -430,7 +430,7 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
|
|
|
430
430
|
this.renderIcon(this.intl);
|
|
431
431
|
this.initHandlers();
|
|
432
432
|
}
|
|
433
|
-
(0, _createClass2.default)(ExpandNodeView, [{
|
|
433
|
+
return (0, _createClass2.default)(ExpandNodeView, [{
|
|
434
434
|
key: "initHandlers",
|
|
435
435
|
value: function initHandlers() {
|
|
436
436
|
var _this$api6,
|
|
@@ -596,7 +596,6 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
|
|
|
596
596
|
this.cleanUpEditorDisabledOnChange = undefined;
|
|
597
597
|
}
|
|
598
598
|
}]);
|
|
599
|
-
return ExpandNodeView;
|
|
600
599
|
}();
|
|
601
600
|
function _default(_ref2) {
|
|
602
601
|
var getIntl = _ref2.getIntl,
|
|
@@ -11,9 +11,9 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
11
11
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
12
12
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
13
13
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
14
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
14
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
16
15
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
16
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
17
17
|
var _react = _interopRequireWildcard(require("react"));
|
|
18
18
|
var _react2 = require("@emotion/react");
|
|
19
19
|
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
@@ -28,20 +28,19 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
28
28
|
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; }
|
|
29
29
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
30
30
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
31
|
-
function
|
|
31
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
32
32
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
33
33
|
* @jsxRuntime classic
|
|
34
34
|
* @jsx jsx
|
|
35
35
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
36
36
|
var withTooltip = exports.withTooltip = function withTooltip(WrapperComponent) {
|
|
37
37
|
return /*#__PURE__*/function (_React$Component) {
|
|
38
|
-
(0, _inherits2.default)(WithSortableColumn, _React$Component);
|
|
39
|
-
var _super = _createSuper(WithSortableColumn);
|
|
40
38
|
function WithSortableColumn(props) {
|
|
41
39
|
(0, _classCallCheck2.default)(this, WithSortableColumn);
|
|
42
|
-
return
|
|
40
|
+
return _callSuper(this, WithSortableColumn, [props]);
|
|
43
41
|
}
|
|
44
|
-
(0,
|
|
42
|
+
(0, _inherits2.default)(WithSortableColumn, _React$Component);
|
|
43
|
+
return (0, _createClass2.default)(WithSortableColumn, [{
|
|
45
44
|
key: "render",
|
|
46
45
|
value: function render() {
|
|
47
46
|
var label = this.props.label;
|
|
@@ -52,7 +51,6 @@ var withTooltip = exports.withTooltip = function withTooltip(WrapperComponent) {
|
|
|
52
51
|
}, (0, _react2.jsx)(WrapperComponent, this.props));
|
|
53
52
|
}
|
|
54
53
|
}]);
|
|
55
|
-
return WithSortableColumn;
|
|
56
54
|
}(_react.default.Component);
|
|
57
55
|
};
|
|
58
56
|
var CustomButton = exports.CustomButton = function CustomButton(props) {
|
|
@@ -439,7 +439,7 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
|
|
|
439
439
|
});
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
|
-
(0, _createClass2.default)(ExpandNodeView, [{
|
|
442
|
+
return (0, _createClass2.default)(ExpandNodeView, [{
|
|
443
443
|
key: "stopEvent",
|
|
444
444
|
value: function stopEvent(event) {
|
|
445
445
|
var target = event.target;
|
|
@@ -533,7 +533,6 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
|
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
}]);
|
|
536
|
-
return ExpandNodeView;
|
|
537
536
|
}();
|
|
538
537
|
function _default(_ref) {
|
|
539
538
|
var getIntl = _ref.getIntl,
|
|
@@ -57,9 +57,6 @@ var createPlugin = exports.createPlugin = function createPlugin(dispatch, getInt
|
|
|
57
57
|
return containsClass(event.target, _styles.expandClassNames.titleContainer);
|
|
58
58
|
},
|
|
59
59
|
handleScrollToSelection: function handleScrollToSelection() {
|
|
60
|
-
if ((0, _platformFeatureFlags.fg)('platform_editor_expand_auto_scroll')) {
|
|
61
|
-
return true;
|
|
62
|
-
}
|
|
63
60
|
return containsClass(document.activeElement, _styles.expandClassNames.titleInput);
|
|
64
61
|
},
|
|
65
62
|
handleClickOn: (0, _selection.createSelectionClickHandler)(['expand', 'nestedExpand'], function (target) {
|
package/dist/es2019/index.js
CHANGED
|
@@ -41,9 +41,6 @@ export const createPlugin = (dispatch, getIntl, appearance = 'full-page', useLon
|
|
|
41
41
|
return containsClass(event.target, expandClassNames.titleContainer);
|
|
42
42
|
},
|
|
43
43
|
handleScrollToSelection() {
|
|
44
|
-
if (fg('platform_editor_expand_auto_scroll')) {
|
|
45
|
-
return true;
|
|
46
|
-
}
|
|
47
44
|
return containsClass(document.activeElement, expandClassNames.titleInput);
|
|
48
45
|
},
|
|
49
46
|
handleClickOn: createSelectionClickHandler(['expand', 'nestedExpand'], target => target.classList.contains(expandClassNames.prefix), {
|
package/dist/esm/index.js
CHANGED
|
@@ -422,7 +422,7 @@ export var ExpandNodeView = /*#__PURE__*/function () {
|
|
|
422
422
|
this.renderIcon(this.intl);
|
|
423
423
|
this.initHandlers();
|
|
424
424
|
}
|
|
425
|
-
_createClass(ExpandNodeView, [{
|
|
425
|
+
return _createClass(ExpandNodeView, [{
|
|
426
426
|
key: "initHandlers",
|
|
427
427
|
value: function initHandlers() {
|
|
428
428
|
var _this$api6,
|
|
@@ -588,7 +588,6 @@ export var ExpandNodeView = /*#__PURE__*/function () {
|
|
|
588
588
|
this.cleanUpEditorDisabledOnChange = undefined;
|
|
589
589
|
}
|
|
590
590
|
}]);
|
|
591
|
-
return ExpandNodeView;
|
|
592
591
|
}();
|
|
593
592
|
export default function (_ref2) {
|
|
594
593
|
var getIntl = _ref2.getIntl,
|
|
@@ -3,13 +3,13 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
5
5
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
6
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
7
6
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
8
7
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
9
9
|
var _excluded = ["buttonStyles"];
|
|
10
10
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
11
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
|
-
function
|
|
12
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
13
13
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
14
14
|
/**
|
|
15
15
|
* @jsxRuntime classic
|
|
@@ -28,13 +28,12 @@ import ChevronRightIcon from '@atlaskit/icon/utility/chevron-right';
|
|
|
28
28
|
import Tooltip from '@atlaskit/tooltip';
|
|
29
29
|
export var withTooltip = function withTooltip(WrapperComponent) {
|
|
30
30
|
return /*#__PURE__*/function (_React$Component) {
|
|
31
|
-
_inherits(WithSortableColumn, _React$Component);
|
|
32
|
-
var _super = _createSuper(WithSortableColumn);
|
|
33
31
|
function WithSortableColumn(props) {
|
|
34
32
|
_classCallCheck(this, WithSortableColumn);
|
|
35
|
-
return
|
|
33
|
+
return _callSuper(this, WithSortableColumn, [props]);
|
|
36
34
|
}
|
|
37
|
-
|
|
35
|
+
_inherits(WithSortableColumn, _React$Component);
|
|
36
|
+
return _createClass(WithSortableColumn, [{
|
|
38
37
|
key: "render",
|
|
39
38
|
value: function render() {
|
|
40
39
|
var label = this.props.label;
|
|
@@ -45,7 +44,6 @@ export var withTooltip = function withTooltip(WrapperComponent) {
|
|
|
45
44
|
}, jsx(WrapperComponent, this.props));
|
|
46
45
|
}
|
|
47
46
|
}]);
|
|
48
|
-
return WithSortableColumn;
|
|
49
47
|
}(React.Component);
|
|
50
48
|
};
|
|
51
49
|
export var CustomButton = function CustomButton(props) {
|
|
@@ -431,7 +431,7 @@ export var ExpandNodeView = /*#__PURE__*/function () {
|
|
|
431
431
|
});
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
|
-
_createClass(ExpandNodeView, [{
|
|
434
|
+
return _createClass(ExpandNodeView, [{
|
|
435
435
|
key: "stopEvent",
|
|
436
436
|
value: function stopEvent(event) {
|
|
437
437
|
var target = event.target;
|
|
@@ -525,7 +525,6 @@ export var ExpandNodeView = /*#__PURE__*/function () {
|
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
527
|
}]);
|
|
528
|
-
return ExpandNodeView;
|
|
529
528
|
}();
|
|
530
529
|
export default function (_ref) {
|
|
531
530
|
var getIntl = _ref.getIntl,
|
|
@@ -47,9 +47,6 @@ export var createPlugin = function createPlugin(dispatch, getIntl) {
|
|
|
47
47
|
return containsClass(event.target, expandClassNames.titleContainer);
|
|
48
48
|
},
|
|
49
49
|
handleScrollToSelection: function handleScrollToSelection() {
|
|
50
|
-
if (fg('platform_editor_expand_auto_scroll')) {
|
|
51
|
-
return true;
|
|
52
|
-
}
|
|
53
50
|
return containsClass(document.activeElement, expandClassNames.titleInput);
|
|
54
51
|
},
|
|
55
52
|
handleClickOn: createSelectionClickHandler(['expand', 'nestedExpand'], function (target) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-expand",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.8",
|
|
4
4
|
"description": "Expand plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
35
35
|
"@atlaskit/button": "^20.3.0",
|
|
36
|
-
"@atlaskit/editor-common": "^96.
|
|
36
|
+
"@atlaskit/editor-common": "^96.5.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
38
38
|
"@atlaskit/editor-plugin-decorations": "^1.3.0",
|
|
39
39
|
"@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/editor-tables": "^2.8.0",
|
|
45
45
|
"@atlaskit/icon": "^23.1.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
47
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
47
|
+
"@atlaskit/tmp-editor-statsig": "^2.26.0",
|
|
48
48
|
"@atlaskit/tokens": "^2.4.0",
|
|
49
49
|
"@atlaskit/tooltip": "^19.0.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
@@ -118,9 +118,6 @@
|
|
|
118
118
|
"platform_editor_nest_nested_expand_drag_fix": {
|
|
119
119
|
"type": "boolean"
|
|
120
120
|
},
|
|
121
|
-
"platform_editor_expand_auto_scroll": {
|
|
122
|
-
"type": "boolean"
|
|
123
|
-
},
|
|
124
121
|
"platform_editor_remove_copy_button_from_view_mode": {
|
|
125
122
|
"type": "boolean"
|
|
126
123
|
},
|