@atlaskit/editor-plugin-expand 2.11.1 → 2.12.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 +20 -0
- package/dist/cjs/legacyExpand/nodeviews/index.js +7 -20
- package/dist/cjs/singlePlayerExpand/node-views/index.js +5 -19
- package/dist/es2019/legacyExpand/nodeviews/index.js +6 -19
- package/dist/es2019/singlePlayerExpand/node-views/index.js +6 -20
- package/dist/esm/legacyExpand/nodeviews/index.js +7 -20
- package/dist/esm/singlePlayerExpand/node-views/index.js +5 -19
- package/dist/types/legacyExpand/nodeviews/index.d.ts +1 -1
- package/dist/types/singlePlayerExpand/node-views/index.d.ts +1 -1
- package/dist/types-ts4.5/legacyExpand/nodeviews/index.d.ts +1 -1
- package/dist/types-ts4.5/singlePlayerExpand/node-views/index.d.ts +1 -1
- package/package.json +20 -23
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-expand
|
|
2
2
|
|
|
3
|
+
## 2.12.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#112186](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/112186)
|
|
8
|
+
[`9462d8ca2405a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9462d8ca2405a) -
|
|
9
|
+
Bump adf-schema to 47.2.1
|
|
10
|
+
|
|
11
|
+
## 2.12.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#105322](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/105322)
|
|
16
|
+
[`8876083532adc`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8876083532adc) -
|
|
17
|
+
Bumped editor-prosemirror version to 7.0.0
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 2.11.1
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -10,7 +10,6 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
10
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
11
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
|
-
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
14
13
|
var _v = _interopRequireDefault(require("uuid/v4"));
|
|
15
14
|
var _w3cKeyname = require("w3c-keyname");
|
|
16
15
|
var _selection = require("@atlaskit/editor-common/selection");
|
|
@@ -491,21 +490,13 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
|
|
|
491
490
|
}
|
|
492
491
|
var _ref = node && node.attrs || this.node.attrs,
|
|
493
492
|
__expanded = _ref.__expanded;
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
return /*#__PURE__*/_react.default.createElement(_ExpandIconButton.ExpandIconButton, {
|
|
497
|
-
intl: intl,
|
|
498
|
-
allowInteractiveExpand: _this3.allowInteractiveExpand,
|
|
499
|
-
expanded: _this3.__livePage && (0, _platformFeatureFlags.fg)('platform.editor.live-pages-expand-divergence') ? !__expanded : __expanded
|
|
500
|
-
});
|
|
501
|
-
}, this.icon, this.renderKey);
|
|
502
|
-
} else {
|
|
503
|
-
_reactDom.default.render( /*#__PURE__*/_react.default.createElement(_ExpandIconButton.ExpandIconButton, {
|
|
493
|
+
this.nodeViewPortalProviderAPI.render(function () {
|
|
494
|
+
return /*#__PURE__*/_react.default.createElement(_ExpandIconButton.ExpandIconButton, {
|
|
504
495
|
intl: intl,
|
|
505
|
-
allowInteractiveExpand:
|
|
506
|
-
expanded:
|
|
507
|
-
})
|
|
508
|
-
}
|
|
496
|
+
allowInteractiveExpand: _this3.allowInteractiveExpand,
|
|
497
|
+
expanded: _this3.__livePage && (0, _platformFeatureFlags.fg)('platform.editor.live-pages-expand-divergence') ? !__expanded : __expanded
|
|
498
|
+
});
|
|
499
|
+
}, this.icon, this.renderKey);
|
|
509
500
|
}
|
|
510
501
|
}, {
|
|
511
502
|
key: "stopEvent",
|
|
@@ -584,11 +575,7 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
|
|
|
584
575
|
if (this.icon) {
|
|
585
576
|
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
586
577
|
this.icon.removeEventListener('keydown', this.handleIconKeyDown);
|
|
587
|
-
|
|
588
|
-
this.nodeViewPortalProviderAPI.remove(this.renderKey);
|
|
589
|
-
} else {
|
|
590
|
-
_reactDom.default.unmountComponentAtNode(this.icon);
|
|
591
|
-
}
|
|
578
|
+
this.nodeViewPortalProviderAPI.remove(this.renderKey);
|
|
592
579
|
}
|
|
593
580
|
(_this$decorationClean2 = this.decorationCleanup) === null || _this$decorationClean2 === void 0 || _this$decorationClean2.call(this);
|
|
594
581
|
if (this.cleanUpEditorDisabledOnChange) {
|
|
@@ -10,7 +10,6 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
10
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
11
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
|
-
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
14
13
|
var _v = _interopRequireDefault(require("uuid/v4"));
|
|
15
14
|
var _w3cKeyname = require("w3c-keyname");
|
|
16
15
|
var _expand = require("@atlaskit/editor-common/expand");
|
|
@@ -20,7 +19,6 @@ var _utils = require("@atlaskit/editor-common/utils");
|
|
|
20
19
|
var _history = require("@atlaskit/editor-prosemirror/history");
|
|
21
20
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
22
21
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
23
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
24
22
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
25
23
|
var _commands = require("../commands");
|
|
26
24
|
var _ExpandButton = require("../ui/ExpandButton");
|
|
@@ -379,21 +377,13 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
|
|
|
379
377
|
if (!icon) {
|
|
380
378
|
return;
|
|
381
379
|
}
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
return /*#__PURE__*/_react.default.createElement(_ExpandButton.ExpandButton, {
|
|
385
|
-
intl: _this.intl,
|
|
386
|
-
allowInteractiveExpand: _this.allowInteractiveExpand,
|
|
387
|
-
expanded: expanded
|
|
388
|
-
});
|
|
389
|
-
}, icon, _this.renderKey);
|
|
390
|
-
} else {
|
|
391
|
-
_reactDom.default.render( /*#__PURE__*/_react.default.createElement(_ExpandButton.ExpandButton, {
|
|
380
|
+
_this.nodeViewPortalProviderAPI.render(function () {
|
|
381
|
+
return /*#__PURE__*/_react.default.createElement(_ExpandButton.ExpandButton, {
|
|
392
382
|
intl: _this.intl,
|
|
393
383
|
allowInteractiveExpand: _this.allowInteractiveExpand,
|
|
394
384
|
expanded: expanded
|
|
395
|
-
})
|
|
396
|
-
}
|
|
385
|
+
});
|
|
386
|
+
}, icon, _this.renderKey);
|
|
397
387
|
});
|
|
398
388
|
this.selectNearNode = selectNearNode;
|
|
399
389
|
this.__livePage = __livePage;
|
|
@@ -550,11 +540,7 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
|
|
|
550
540
|
if (this.cleanUpEditorDisabledOnChange) {
|
|
551
541
|
this.cleanUpEditorDisabledOnChange();
|
|
552
542
|
}
|
|
553
|
-
|
|
554
|
-
this.nodeViewPortalProviderAPI.remove(this.renderKey);
|
|
555
|
-
} else {
|
|
556
|
-
_reactDom.default.unmountComponentAtNode(this.icon);
|
|
557
|
-
}
|
|
543
|
+
this.nodeViewPortalProviderAPI.remove(this.renderKey);
|
|
558
544
|
}
|
|
559
545
|
}]);
|
|
560
546
|
}();
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import ReactDOM from 'react-dom';
|
|
4
3
|
import uuid from 'uuid/v4';
|
|
5
4
|
import { keyName } from 'w3c-keyname';
|
|
6
5
|
import { GapCursorSelection, RelativeSelectionPos, Side } from '@atlaskit/editor-common/selection';
|
|
@@ -488,19 +487,11 @@ export class ExpandNodeView {
|
|
|
488
487
|
const {
|
|
489
488
|
__expanded
|
|
490
489
|
} = node && node.attrs || this.node.attrs;
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
}), this.icon, this.renderKey);
|
|
497
|
-
} else {
|
|
498
|
-
ReactDOM.render( /*#__PURE__*/React.createElement(ExpandIconButton, {
|
|
499
|
-
intl: intl,
|
|
500
|
-
allowInteractiveExpand: this.allowInteractiveExpand,
|
|
501
|
-
expanded: this.__livePage && fg('platform.editor.live-pages-expand-divergence') ? !__expanded : __expanded
|
|
502
|
-
}), this.icon);
|
|
503
|
-
}
|
|
490
|
+
this.nodeViewPortalProviderAPI.render(() => /*#__PURE__*/React.createElement(ExpandIconButton, {
|
|
491
|
+
intl: intl,
|
|
492
|
+
allowInteractiveExpand: this.allowInteractiveExpand,
|
|
493
|
+
expanded: this.__livePage && fg('platform.editor.live-pages-expand-divergence') ? !__expanded : __expanded
|
|
494
|
+
}), this.icon, this.renderKey);
|
|
504
495
|
}
|
|
505
496
|
stopEvent(event) {
|
|
506
497
|
// Ignored via go/ees005
|
|
@@ -570,11 +561,7 @@ export class ExpandNodeView {
|
|
|
570
561
|
if (this.icon) {
|
|
571
562
|
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
572
563
|
this.icon.removeEventListener('keydown', this.handleIconKeyDown);
|
|
573
|
-
|
|
574
|
-
this.nodeViewPortalProviderAPI.remove(this.renderKey);
|
|
575
|
-
} else {
|
|
576
|
-
ReactDOM.unmountComponentAtNode(this.icon);
|
|
577
|
-
}
|
|
564
|
+
this.nodeViewPortalProviderAPI.remove(this.renderKey);
|
|
578
565
|
}
|
|
579
566
|
(_this$decorationClean2 = this.decorationCleanup) === null || _this$decorationClean2 === void 0 ? void 0 : _this$decorationClean2.call(this);
|
|
580
567
|
if (this.cleanUpEditorDisabledOnChange) {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import ReactDOM from 'react-dom';
|
|
4
3
|
import uuid from 'uuid/v4';
|
|
5
4
|
import { keyName } from 'w3c-keyname';
|
|
6
5
|
import { expandedState, isExpandCollapsed } from '@atlaskit/editor-common/expand';
|
|
@@ -10,7 +9,6 @@ import { closestElement, isEmptyNode } from '@atlaskit/editor-common/utils';
|
|
|
10
9
|
import { redo, undo } from '@atlaskit/editor-prosemirror/history';
|
|
11
10
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
12
11
|
import { NodeSelection, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
13
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
12
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
15
13
|
import { deleteExpand, setSelectionInsideExpand, toggleExpandExpanded, updateExpandTitle } from '../commands';
|
|
16
14
|
import { ExpandButton } from '../ui/ExpandButton';
|
|
@@ -380,19 +378,11 @@ export class ExpandNodeView {
|
|
|
380
378
|
if (!icon) {
|
|
381
379
|
return;
|
|
382
380
|
}
|
|
383
|
-
|
|
384
|
-
this.
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
}), icon, this.renderKey);
|
|
389
|
-
} else {
|
|
390
|
-
ReactDOM.render( /*#__PURE__*/React.createElement(ExpandButton, {
|
|
391
|
-
intl: this.intl,
|
|
392
|
-
allowInteractiveExpand: this.allowInteractiveExpand,
|
|
393
|
-
expanded: expanded
|
|
394
|
-
}), icon);
|
|
395
|
-
}
|
|
381
|
+
this.nodeViewPortalProviderAPI.render(() => /*#__PURE__*/React.createElement(ExpandButton, {
|
|
382
|
+
intl: this.intl,
|
|
383
|
+
allowInteractiveExpand: this.allowInteractiveExpand,
|
|
384
|
+
expanded: expanded
|
|
385
|
+
}), icon, this.renderKey);
|
|
396
386
|
});
|
|
397
387
|
this.selectNearNode = selectNearNode;
|
|
398
388
|
this.__livePage = __livePage;
|
|
@@ -537,11 +527,7 @@ export class ExpandNodeView {
|
|
|
537
527
|
if (this.cleanUpEditorDisabledOnChange) {
|
|
538
528
|
this.cleanUpEditorDisabledOnChange();
|
|
539
529
|
}
|
|
540
|
-
|
|
541
|
-
this.nodeViewPortalProviderAPI.remove(this.renderKey);
|
|
542
|
-
} else {
|
|
543
|
-
ReactDOM.unmountComponentAtNode(this.icon);
|
|
544
|
-
}
|
|
530
|
+
this.nodeViewPortalProviderAPI.remove(this.renderKey);
|
|
545
531
|
}
|
|
546
532
|
}
|
|
547
533
|
export default function ({
|
|
@@ -2,7 +2,6 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import ReactDOM from 'react-dom';
|
|
6
5
|
import uuid from 'uuid/v4';
|
|
7
6
|
import { keyName } from 'w3c-keyname';
|
|
8
7
|
import { GapCursorSelection, RelativeSelectionPos, Side } from '@atlaskit/editor-common/selection';
|
|
@@ -483,21 +482,13 @@ export var ExpandNodeView = /*#__PURE__*/function () {
|
|
|
483
482
|
}
|
|
484
483
|
var _ref = node && node.attrs || this.node.attrs,
|
|
485
484
|
__expanded = _ref.__expanded;
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
return /*#__PURE__*/React.createElement(ExpandIconButton, {
|
|
489
|
-
intl: intl,
|
|
490
|
-
allowInteractiveExpand: _this3.allowInteractiveExpand,
|
|
491
|
-
expanded: _this3.__livePage && fg('platform.editor.live-pages-expand-divergence') ? !__expanded : __expanded
|
|
492
|
-
});
|
|
493
|
-
}, this.icon, this.renderKey);
|
|
494
|
-
} else {
|
|
495
|
-
ReactDOM.render( /*#__PURE__*/React.createElement(ExpandIconButton, {
|
|
485
|
+
this.nodeViewPortalProviderAPI.render(function () {
|
|
486
|
+
return /*#__PURE__*/React.createElement(ExpandIconButton, {
|
|
496
487
|
intl: intl,
|
|
497
|
-
allowInteractiveExpand:
|
|
498
|
-
expanded:
|
|
499
|
-
})
|
|
500
|
-
}
|
|
488
|
+
allowInteractiveExpand: _this3.allowInteractiveExpand,
|
|
489
|
+
expanded: _this3.__livePage && fg('platform.editor.live-pages-expand-divergence') ? !__expanded : __expanded
|
|
490
|
+
});
|
|
491
|
+
}, this.icon, this.renderKey);
|
|
501
492
|
}
|
|
502
493
|
}, {
|
|
503
494
|
key: "stopEvent",
|
|
@@ -576,11 +567,7 @@ export var ExpandNodeView = /*#__PURE__*/function () {
|
|
|
576
567
|
if (this.icon) {
|
|
577
568
|
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
578
569
|
this.icon.removeEventListener('keydown', this.handleIconKeyDown);
|
|
579
|
-
|
|
580
|
-
this.nodeViewPortalProviderAPI.remove(this.renderKey);
|
|
581
|
-
} else {
|
|
582
|
-
ReactDOM.unmountComponentAtNode(this.icon);
|
|
583
|
-
}
|
|
570
|
+
this.nodeViewPortalProviderAPI.remove(this.renderKey);
|
|
584
571
|
}
|
|
585
572
|
(_this$decorationClean2 = this.decorationCleanup) === null || _this$decorationClean2 === void 0 || _this$decorationClean2.call(this);
|
|
586
573
|
if (this.cleanUpEditorDisabledOnChange) {
|
|
@@ -2,7 +2,6 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import ReactDOM from 'react-dom';
|
|
6
5
|
import uuid from 'uuid/v4';
|
|
7
6
|
import { keyName } from 'w3c-keyname';
|
|
8
7
|
import { expandedState, isExpandCollapsed } from '@atlaskit/editor-common/expand';
|
|
@@ -12,7 +11,6 @@ import { closestElement, isEmptyNode } from '@atlaskit/editor-common/utils';
|
|
|
12
11
|
import { redo, undo } from '@atlaskit/editor-prosemirror/history';
|
|
13
12
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
14
13
|
import { NodeSelection, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
15
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
14
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
17
15
|
import { deleteExpand, setSelectionInsideExpand, toggleExpandExpanded, updateExpandTitle } from '../commands';
|
|
18
16
|
import { ExpandButton } from '../ui/ExpandButton';
|
|
@@ -371,21 +369,13 @@ export var ExpandNodeView = /*#__PURE__*/function () {
|
|
|
371
369
|
if (!icon) {
|
|
372
370
|
return;
|
|
373
371
|
}
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
return /*#__PURE__*/React.createElement(ExpandButton, {
|
|
377
|
-
intl: _this.intl,
|
|
378
|
-
allowInteractiveExpand: _this.allowInteractiveExpand,
|
|
379
|
-
expanded: expanded
|
|
380
|
-
});
|
|
381
|
-
}, icon, _this.renderKey);
|
|
382
|
-
} else {
|
|
383
|
-
ReactDOM.render( /*#__PURE__*/React.createElement(ExpandButton, {
|
|
372
|
+
_this.nodeViewPortalProviderAPI.render(function () {
|
|
373
|
+
return /*#__PURE__*/React.createElement(ExpandButton, {
|
|
384
374
|
intl: _this.intl,
|
|
385
375
|
allowInteractiveExpand: _this.allowInteractiveExpand,
|
|
386
376
|
expanded: expanded
|
|
387
|
-
})
|
|
388
|
-
}
|
|
377
|
+
});
|
|
378
|
+
}, icon, _this.renderKey);
|
|
389
379
|
});
|
|
390
380
|
this.selectNearNode = selectNearNode;
|
|
391
381
|
this.__livePage = __livePage;
|
|
@@ -542,11 +532,7 @@ export var ExpandNodeView = /*#__PURE__*/function () {
|
|
|
542
532
|
if (this.cleanUpEditorDisabledOnChange) {
|
|
543
533
|
this.cleanUpEditorDisabledOnChange();
|
|
544
534
|
}
|
|
545
|
-
|
|
546
|
-
this.nodeViewPortalProviderAPI.remove(this.renderKey);
|
|
547
|
-
} else {
|
|
548
|
-
ReactDOM.unmountComponentAtNode(this.icon);
|
|
549
|
-
}
|
|
535
|
+
this.nodeViewPortalProviderAPI.remove(this.renderKey);
|
|
550
536
|
}
|
|
551
537
|
}]);
|
|
552
538
|
}();
|
|
@@ -50,7 +50,7 @@ export declare class ExpandNodeView implements NodeView {
|
|
|
50
50
|
stopEvent(event: Event): boolean;
|
|
51
51
|
ignoreMutation(mutationRecord: MutationRecord | {
|
|
52
52
|
type: 'selection';
|
|
53
|
-
target:
|
|
53
|
+
target: Node;
|
|
54
54
|
}): boolean;
|
|
55
55
|
update(node: PmNode, _decorations: readonly Decoration[]): boolean;
|
|
56
56
|
destroy(): void;
|
|
@@ -49,7 +49,7 @@ export declare class ExpandNodeView implements NodeView {
|
|
|
49
49
|
stopEvent(event: Event): boolean;
|
|
50
50
|
ignoreMutation(mutationRecord: MutationRecord | {
|
|
51
51
|
type: 'selection';
|
|
52
|
-
target:
|
|
52
|
+
target: Node;
|
|
53
53
|
}): boolean;
|
|
54
54
|
update(node: PmNode, _decorations: readonly Decoration[]): boolean;
|
|
55
55
|
updateExpandToggleIcon(node: PmNode): void;
|
|
@@ -50,7 +50,7 @@ export declare class ExpandNodeView implements NodeView {
|
|
|
50
50
|
stopEvent(event: Event): boolean;
|
|
51
51
|
ignoreMutation(mutationRecord: MutationRecord | {
|
|
52
52
|
type: 'selection';
|
|
53
|
-
target:
|
|
53
|
+
target: Node;
|
|
54
54
|
}): boolean;
|
|
55
55
|
update(node: PmNode, _decorations: readonly Decoration[]): boolean;
|
|
56
56
|
destroy(): void;
|
|
@@ -49,7 +49,7 @@ export declare class ExpandNodeView implements NodeView {
|
|
|
49
49
|
stopEvent(event: Event): boolean;
|
|
50
50
|
ignoreMutation(mutationRecord: MutationRecord | {
|
|
51
51
|
type: 'selection';
|
|
52
|
-
target:
|
|
52
|
+
target: Node;
|
|
53
53
|
}): boolean;
|
|
54
54
|
update(node: PmNode, _decorations: readonly Decoration[]): boolean;
|
|
55
55
|
updateExpandToggleIcon(node: PmNode): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-expand",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.1",
|
|
4
4
|
"description": "Expand plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,21 +31,21 @@
|
|
|
31
31
|
".": "./src/index.ts"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@atlaskit/adf-schema": "^
|
|
35
|
-
"@atlaskit/button": "^20.
|
|
36
|
-
"@atlaskit/editor-common": "^99.
|
|
37
|
-
"@atlaskit/editor-plugin-analytics": "^1.
|
|
38
|
-
"@atlaskit/editor-plugin-decorations": "^1.
|
|
39
|
-
"@atlaskit/editor-plugin-editor-disabled": "^1.
|
|
40
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^2.
|
|
41
|
-
"@atlaskit/editor-plugin-selection": "^1.
|
|
42
|
-
"@atlaskit/editor-plugin-selection-marker": "^1.
|
|
43
|
-
"@atlaskit/editor-prosemirror": "
|
|
34
|
+
"@atlaskit/adf-schema": "^47.2.1",
|
|
35
|
+
"@atlaskit/button": "^20.5.0",
|
|
36
|
+
"@atlaskit/editor-common": "^99.14.0",
|
|
37
|
+
"@atlaskit/editor-plugin-analytics": "^1.12.0",
|
|
38
|
+
"@atlaskit/editor-plugin-decorations": "^1.5.0",
|
|
39
|
+
"@atlaskit/editor-plugin-editor-disabled": "^1.5.0",
|
|
40
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^2.2.0",
|
|
41
|
+
"@atlaskit/editor-plugin-selection": "^1.8.0",
|
|
42
|
+
"@atlaskit/editor-plugin-selection-marker": "^1.8.0",
|
|
43
|
+
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
44
44
|
"@atlaskit/editor-shared-styles": "^3.2.0",
|
|
45
|
-
"@atlaskit/editor-tables": "^2.
|
|
46
|
-
"@atlaskit/icon": "^23.
|
|
45
|
+
"@atlaskit/editor-tables": "^2.9.0",
|
|
46
|
+
"@atlaskit/icon": "^23.9.0",
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^1.0.0",
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^2.46.0",
|
|
49
49
|
"@atlaskit/tokens": "^3.3.0",
|
|
50
50
|
"@atlaskit/tooltip": "^19.1.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0",
|
|
@@ -60,12 +60,12 @@
|
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@atlaskit/analytics-next": "^10.3.0",
|
|
63
|
-
"@atlaskit/editor-plugin-content-insertion": "^1.
|
|
64
|
-
"@atlaskit/editor-plugin-guideline": "^1.
|
|
65
|
-
"@atlaskit/editor-plugin-quick-insert": "^1.
|
|
66
|
-
"@atlaskit/editor-plugin-table": "^9.
|
|
67
|
-
"@atlaskit/editor-plugin-type-ahead": "^1.
|
|
68
|
-
"@atlaskit/editor-plugin-width": "^2.
|
|
63
|
+
"@atlaskit/editor-plugin-content-insertion": "^1.13.0",
|
|
64
|
+
"@atlaskit/editor-plugin-guideline": "^1.4.0",
|
|
65
|
+
"@atlaskit/editor-plugin-quick-insert": "^1.10.0",
|
|
66
|
+
"@atlaskit/editor-plugin-table": "^9.4.0",
|
|
67
|
+
"@atlaskit/editor-plugin-type-ahead": "^1.13.0",
|
|
68
|
+
"@atlaskit/editor-plugin-width": "^2.1.0",
|
|
69
69
|
"@testing-library/react": "^13.4.0",
|
|
70
70
|
"react-test-renderer": "^18.2.0",
|
|
71
71
|
"typescript": "~5.4.2"
|
|
@@ -119,9 +119,6 @@
|
|
|
119
119
|
"platform_editor_remove_copy_button_from_view_mode": {
|
|
120
120
|
"type": "boolean"
|
|
121
121
|
},
|
|
122
|
-
"platform_editor_react18_plugin_portalprovider": {
|
|
123
|
-
"type": "boolean"
|
|
124
|
-
},
|
|
125
122
|
"platform_editor_long_node_expand": {
|
|
126
123
|
"type": "boolean",
|
|
127
124
|
"referenceOnly": true
|