@atlaskit/editor-plugin-expand 8.0.2 → 8.1.0
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,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-expand
|
|
2
2
|
|
|
3
|
+
## 8.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`e61bb8b32e4b1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e61bb8b32e4b1) -
|
|
8
|
+
[https://hello.jira.atlassian.cloud/browse/EDITOR-4386](EDITOR-4386) - clean up
|
|
9
|
+
platform_editor_disable_unnecessary_expand_renders
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 8.0.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -18,7 +18,6 @@ var _styles = require("@atlaskit/editor-common/styles");
|
|
|
18
18
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
19
19
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
20
20
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
21
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
22
21
|
var _prosemirrorHistory = require("@atlaskit/prosemirror-history");
|
|
23
22
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
24
23
|
var _renderExpandButton = require("../../ui/renderExpandButton");
|
|
@@ -547,9 +546,6 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
|
|
|
547
546
|
}
|
|
548
547
|
} else {
|
|
549
548
|
this.node = node;
|
|
550
|
-
if (!(0, _platformFeatureFlags.fg)('platform_editor_disable_unnecessary_expand_renders')) {
|
|
551
|
-
this.updateExpandToggleIcon(this.node);
|
|
552
|
-
}
|
|
553
549
|
}
|
|
554
550
|
return true;
|
|
555
551
|
}
|
|
@@ -9,7 +9,6 @@ import { expandClassNames } from '@atlaskit/editor-common/styles';
|
|
|
9
9
|
import { closestElement, isEmptyNode } from '@atlaskit/editor-common/utils';
|
|
10
10
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
11
11
|
import { NodeSelection, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
12
|
import { redo, undo } from '@atlaskit/prosemirror-history';
|
|
14
13
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
15
14
|
import { renderExpandButton } from '../../ui/renderExpandButton';
|
|
@@ -541,9 +540,6 @@ export class ExpandNodeView {
|
|
|
541
540
|
}
|
|
542
541
|
} else {
|
|
543
542
|
this.node = node;
|
|
544
|
-
if (!fg('platform_editor_disable_unnecessary_expand_renders')) {
|
|
545
|
-
this.updateExpandToggleIcon(this.node);
|
|
546
|
-
}
|
|
547
543
|
}
|
|
548
544
|
return true;
|
|
549
545
|
}
|
|
@@ -11,7 +11,6 @@ import { expandClassNames } from '@atlaskit/editor-common/styles';
|
|
|
11
11
|
import { closestElement, isEmptyNode } from '@atlaskit/editor-common/utils';
|
|
12
12
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
13
13
|
import { NodeSelection, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
14
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
14
|
import { redo, undo } from '@atlaskit/prosemirror-history';
|
|
16
15
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
16
|
import { renderExpandButton } from '../../ui/renderExpandButton';
|
|
@@ -539,9 +538,6 @@ export var ExpandNodeView = /*#__PURE__*/function () {
|
|
|
539
538
|
}
|
|
540
539
|
} else {
|
|
541
540
|
this.node = node;
|
|
542
|
-
if (!fg('platform_editor_disable_unnecessary_expand_renders')) {
|
|
543
|
-
this.updateExpandToggleIcon(this.node);
|
|
544
|
-
}
|
|
545
541
|
}
|
|
546
542
|
return true;
|
|
547
543
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-expand",
|
|
3
|
-
"version": "8.0
|
|
3
|
+
"version": "8.1.0",
|
|
4
4
|
"description": "Expand plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@atlaskit/icon-lab": "^5.14.0",
|
|
49
49
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
50
50
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
51
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
51
|
+
"@atlaskit/tmp-editor-statsig": "^16.12.0",
|
|
52
52
|
"@atlaskit/tokens": "^9.1.0",
|
|
53
53
|
"@atlaskit/tooltip": "^20.12.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
@@ -103,9 +103,6 @@
|
|
|
103
103
|
"platform-editor-single-player-expand": {
|
|
104
104
|
"type": "boolean"
|
|
105
105
|
},
|
|
106
|
-
"platform_editor_disable_unnecessary_expand_renders": {
|
|
107
|
-
"type": "boolean"
|
|
108
|
-
},
|
|
109
106
|
"platform_editor_adf_with_localid": {
|
|
110
107
|
"type": "boolean"
|
|
111
108
|
}
|