@atlaskit/editor-plugin-expand 15.0.1 → 15.0.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,13 @@
1
1
  # @atlaskit/editor-plugin-expand
2
2
 
3
+ ## 15.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`42931028bd815`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/42931028bd815) -
8
+ [FFCLEANUP-138148] clean up experiment `platform_editor_find_and_replace_improvements`
9
+ - Updated dependencies
10
+
3
11
  ## 15.0.1
4
12
 
5
13
  ### Patch Changes
@@ -616,16 +616,12 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
616
616
  value: function updateExpandToggleIcon(node) {
617
617
  var expanded = _expand.expandedState.get(node) ? _expand.expandedState.get(node) : false;
618
618
  if (this.dom && expanded !== undefined) {
619
- if ((0, _expValEquals.expValEquals)('platform_editor_find_and_replace_improvements', 'isEnabled', true)) {
620
- var classes = this.dom.className.split(' ');
621
- // find & replace styles might be applied to the expand title and we need to keep them
622
- var findReplaceDecorationsApplied = classes.filter(function (className) {
623
- return _utils2.findReplaceExpandDecorations.includes(className);
624
- }).join(' ');
625
- this.dom.className = findReplaceDecorationsApplied ? (0, _NodeView.buildExpandClassName)(node.type.name, expanded) + " ".concat(findReplaceDecorationsApplied) : (0, _NodeView.buildExpandClassName)(node.type.name, expanded);
626
- } else {
627
- this.dom.className = (0, _NodeView.buildExpandClassName)(node.type.name, expanded);
628
- }
619
+ var classes = this.dom.className.split(' ');
620
+ // find & replace styles might be applied to the expand title and we need to keep them
621
+ var findReplaceDecorationsApplied = classes.filter(function (className) {
622
+ return _utils2.findReplaceExpandDecorations.includes(className);
623
+ }).join(' ');
624
+ this.dom.className = findReplaceDecorationsApplied ? (0, _NodeView.buildExpandClassName)(node.type.name, expanded) + " ".concat(findReplaceDecorationsApplied) : (0, _NodeView.buildExpandClassName)(node.type.name, expanded);
629
625
  // Re-render the icon to update the aria-expanded attribute
630
626
  if ((0, _expValEquals.expValEquals)('platform_editor_vc90_transition_expand_icon', 'isEnabled', true)) {
631
627
  this.renderNativeIcon(node);
@@ -611,14 +611,10 @@ export class ExpandNodeView {
611
611
  updateExpandToggleIcon(node) {
612
612
  const expanded = expandedState.get(node) ? expandedState.get(node) : false;
613
613
  if (this.dom && expanded !== undefined) {
614
- if (expValEquals('platform_editor_find_and_replace_improvements', 'isEnabled', true)) {
615
- const classes = this.dom.className.split(' ');
616
- // find & replace styles might be applied to the expand title and we need to keep them
617
- const findReplaceDecorationsApplied = classes.filter(className => findReplaceExpandDecorations.includes(className)).join(' ');
618
- this.dom.className = findReplaceDecorationsApplied ? buildExpandClassName(node.type.name, expanded) + ` ${findReplaceDecorationsApplied}` : buildExpandClassName(node.type.name, expanded);
619
- } else {
620
- this.dom.className = buildExpandClassName(node.type.name, expanded);
621
- }
614
+ const classes = this.dom.className.split(' ');
615
+ // find & replace styles might be applied to the expand title and we need to keep them
616
+ const findReplaceDecorationsApplied = classes.filter(className => findReplaceExpandDecorations.includes(className)).join(' ');
617
+ this.dom.className = findReplaceDecorationsApplied ? buildExpandClassName(node.type.name, expanded) + ` ${findReplaceDecorationsApplied}` : buildExpandClassName(node.type.name, expanded);
622
618
  // Re-render the icon to update the aria-expanded attribute
623
619
  if (expValEquals('platform_editor_vc90_transition_expand_icon', 'isEnabled', true)) {
624
620
  this.renderNativeIcon(node);
@@ -608,16 +608,12 @@ export var ExpandNodeView = /*#__PURE__*/function () {
608
608
  value: function updateExpandToggleIcon(node) {
609
609
  var expanded = expandedState.get(node) ? expandedState.get(node) : false;
610
610
  if (this.dom && expanded !== undefined) {
611
- if (expValEquals('platform_editor_find_and_replace_improvements', 'isEnabled', true)) {
612
- var classes = this.dom.className.split(' ');
613
- // find & replace styles might be applied to the expand title and we need to keep them
614
- var findReplaceDecorationsApplied = classes.filter(function (className) {
615
- return findReplaceExpandDecorations.includes(className);
616
- }).join(' ');
617
- this.dom.className = findReplaceDecorationsApplied ? buildExpandClassName(node.type.name, expanded) + " ".concat(findReplaceDecorationsApplied) : buildExpandClassName(node.type.name, expanded);
618
- } else {
619
- this.dom.className = buildExpandClassName(node.type.name, expanded);
620
- }
611
+ var classes = this.dom.className.split(' ');
612
+ // find & replace styles might be applied to the expand title and we need to keep them
613
+ var findReplaceDecorationsApplied = classes.filter(function (className) {
614
+ return findReplaceExpandDecorations.includes(className);
615
+ }).join(' ');
616
+ this.dom.className = findReplaceDecorationsApplied ? buildExpandClassName(node.type.name, expanded) + " ".concat(findReplaceDecorationsApplied) : buildExpandClassName(node.type.name, expanded);
621
617
  // Re-render the icon to update the aria-expanded attribute
622
618
  if (expValEquals('platform_editor_vc90_transition_expand_icon', 'isEnabled', true)) {
623
619
  this.renderNativeIcon(node);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "15.0.1",
3
+ "version": "15.0.2",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -40,7 +40,7 @@
40
40
  "@atlaskit/icon-lab": "^7.5.0",
41
41
  "@atlaskit/platform-feature-flags": "^2.1.0",
42
42
  "@atlaskit/prosemirror-history": "^1.1.0",
43
- "@atlaskit/tmp-editor-statsig": "^143.0.0",
43
+ "@atlaskit/tmp-editor-statsig": "^144.0.0",
44
44
  "@atlaskit/tokens": "^16.4.0",
45
45
  "@atlaskit/tooltip": "^24.0.0",
46
46
  "@babel/runtime": "^7.0.0",