@atlaskit/editor-plugin-expand 8.3.1 → 8.3.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
+ ## 8.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`50f96b87a6d02`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/50f96b87a6d02) -
8
+ batch/change experiment
9
+ - Updated dependencies
10
+
3
11
  ## 8.3.1
4
12
 
5
13
  ### Patch Changes
@@ -208,8 +208,8 @@ var focusIcon = exports.focusIcon = function focusIcon(expand) {
208
208
  return false;
209
209
  }
210
210
 
211
- // TODO: ED-29205 - During platform_editor_native_expand_button cleanup, rename `iconContainer` to `iconButton`.
212
- var iconContainer = (0, _expValEquals.expValEquals)('platform_editor_native_expand_button', 'isEnabled', true) ? expand.querySelector(".".concat(_styles.expandClassNames.iconButton)) : expand.querySelector(".".concat(_styles.expandClassNames.iconContainer));
211
+ // TODO: ED-29205 - During platform_editor_vc90_transition_fixes_batch_1 cleanup, rename `iconContainer` to `iconButton`.
212
+ var iconContainer = (0, _expValEquals.expValEquals)('platform_editor_vc90_transition_fixes_batch_1', 'isEnabled', true) ? expand.querySelector(".".concat(_styles.expandClassNames.iconButton)) : expand.querySelector(".".concat(_styles.expandClassNames.iconContainer));
213
213
  if (iconContainer && iconContainer.focus) {
214
214
  var tr = state.tr;
215
215
  var pos = state.selection.from;
@@ -243,7 +243,7 @@ var setSelectionInsideExpand = exports.setSelectionInsideExpand = function setSe
243
243
  };
244
244
  var toggleExpandWithMatch = exports.toggleExpandWithMatch = function toggleExpandWithMatch(_selection) {
245
245
  return function (_ref3) {
246
- var tr = _ref3.tr;
246
+ var _tr = _ref3.tr;
247
247
  // this action exists so that we can keep the plugin types consistent across the
248
248
  // the legacy expand plugin and the single player expand plugin until
249
249
  // we will remove the legacy expand plugin
@@ -488,7 +488,7 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
488
488
  this.content = this.dom.querySelector(".".concat(_styles.expandClassNames.content));
489
489
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
490
490
  this.renderKey = (0, _v.default)();
491
- if ((0, _expValEquals.expValEquals)('platform_editor_native_expand_button', 'isEnabled', true)) {
491
+ if ((0, _expValEquals.expValEquals)('platform_editor_vc90_transition_fixes_batch_1', 'isEnabled', true)) {
492
492
  this.renderNativeIcon(this.node);
493
493
  } else {
494
494
  this.renderIcon(this.intl);
@@ -612,7 +612,7 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
612
612
  // we toggle a class name to hide the content and animate the chevron.
613
613
  if (this.dom) {
614
614
  this.dom.classList.toggle(_styles.expandClassNames.expanded);
615
- if ((0, _expValEquals.expValEquals)('platform_editor_native_expand_button', 'isEnabled', true)) {
615
+ if ((0, _expValEquals.expValEquals)('platform_editor_vc90_transition_fixes_batch_1', 'isEnabled', true)) {
616
616
  this.renderNativeIcon(node);
617
617
  } else {
618
618
  this.renderIcon(this && this.intl, node);
@@ -244,8 +244,8 @@ var focusIcon = exports.focusIcon = function focusIcon(expand) {
244
244
  return false;
245
245
  }
246
246
 
247
- // TODO: ED-29205 - During platform_editor_native_expand_button cleanup, rename `iconContainer` to `iconButton`.
248
- var iconContainer = (0, _expValEquals.expValEquals)('platform_editor_native_expand_button', 'isEnabled', true) ? expand.querySelector(".".concat(_styles.expandClassNames.iconButton)) : expand.querySelector(".".concat(_styles.expandClassNames.iconContainer));
247
+ // TODO: ED-29205 - During platform_editor_vc90_transition_fixes_batch_1 cleanup, rename `iconContainer` to `iconButton`.
248
+ var iconContainer = (0, _expValEquals.expValEquals)('platform_editor_vc90_transition_fixes_batch_1', 'isEnabled', true) ? expand.querySelector(".".concat(_styles.expandClassNames.iconButton)) : expand.querySelector(".".concat(_styles.expandClassNames.iconContainer));
249
249
  if (iconContainer && iconContainer.focus) {
250
250
  var tr = state.tr;
251
251
  var pos = state.selection.from;
@@ -463,7 +463,7 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
463
463
  if (!_expand.expandedState.has(this.node)) {
464
464
  _expand.expandedState.set(this.node, false);
465
465
  }
466
- if ((0, _expValEquals.expValEquals)('platform_editor_native_expand_button', 'isEnabled', true)) {
466
+ if ((0, _expValEquals.expValEquals)('platform_editor_vc90_transition_fixes_batch_1', 'isEnabled', true)) {
467
467
  this.renderNativeIcon(this.node);
468
468
  } else {
469
469
  this.renderIcon(this.icon, !(0, _expand.isExpandCollapsed)(this.node));
@@ -576,7 +576,7 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
576
576
  this.dom.className = (0, _NodeView.buildExpandClassName)(node.type.name, expanded);
577
577
  }
578
578
  // Re-render the icon to update the aria-expanded attribute
579
- if ((0, _expValEquals.expValEquals)('platform_editor_native_expand_button', 'isEnabled', true)) {
579
+ if ((0, _expValEquals.expValEquals)('platform_editor_vc90_transition_fixes_batch_1', 'isEnabled', true)) {
580
580
  this.renderNativeIcon(node);
581
581
  } else {
582
582
  var _expandedState$get;
@@ -188,8 +188,8 @@ export const focusIcon = expand => (state, dispatch, editorView) => {
188
188
  return false;
189
189
  }
190
190
 
191
- // TODO: ED-29205 - During platform_editor_native_expand_button cleanup, rename `iconContainer` to `iconButton`.
192
- const iconContainer = expValEquals('platform_editor_native_expand_button', 'isEnabled', true) ? expand.querySelector(`.${expandClassNames.iconButton}`) : expand.querySelector(`.${expandClassNames.iconContainer}`);
191
+ // TODO: ED-29205 - During platform_editor_vc90_transition_fixes_batch_1 cleanup, rename `iconContainer` to `iconButton`.
192
+ const iconContainer = expValEquals('platform_editor_vc90_transition_fixes_batch_1', 'isEnabled', true) ? expand.querySelector(`.${expandClassNames.iconButton}`) : expand.querySelector(`.${expandClassNames.iconContainer}`);
193
193
  if (iconContainer && iconContainer.focus) {
194
194
  const {
195
195
  tr
@@ -221,7 +221,7 @@ export const setSelectionInsideExpand = expandPos => (_state, dispatch, editorVi
221
221
  return false;
222
222
  };
223
223
  export const toggleExpandWithMatch = _selection => ({
224
- tr
224
+ tr: _tr
225
225
  }) => {
226
226
  // this action exists so that we can keep the plugin types consistent across the
227
227
  // the legacy expand plugin and the single player expand plugin until
@@ -492,7 +492,7 @@ export class ExpandNodeView {
492
492
  this.content = this.dom.querySelector(`.${expandClassNames.content}`);
493
493
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
494
494
  this.renderKey = uuid();
495
- if (expValEquals('platform_editor_native_expand_button', 'isEnabled', true)) {
495
+ if (expValEquals('platform_editor_vc90_transition_fixes_batch_1', 'isEnabled', true)) {
496
496
  this.renderNativeIcon(this.node);
497
497
  } else {
498
498
  this.renderIcon(this.intl);
@@ -600,7 +600,7 @@ export class ExpandNodeView {
600
600
  // we toggle a class name to hide the content and animate the chevron.
601
601
  if (this.dom) {
602
602
  this.dom.classList.toggle(expandClassNames.expanded);
603
- if (expValEquals('platform_editor_native_expand_button', 'isEnabled', true)) {
603
+ if (expValEquals('platform_editor_vc90_transition_fixes_batch_1', 'isEnabled', true)) {
604
604
  this.renderNativeIcon(node);
605
605
  } else {
606
606
  this.renderIcon(this && this.intl, node);
@@ -224,8 +224,8 @@ export const focusIcon = expand => (state, dispatch, editorView) => {
224
224
  return false;
225
225
  }
226
226
 
227
- // TODO: ED-29205 - During platform_editor_native_expand_button cleanup, rename `iconContainer` to `iconButton`.
228
- const iconContainer = expValEquals('platform_editor_native_expand_button', 'isEnabled', true) ? expand.querySelector(`.${expandClassNames.iconButton}`) : expand.querySelector(`.${expandClassNames.iconContainer}`);
227
+ // TODO: ED-29205 - During platform_editor_vc90_transition_fixes_batch_1 cleanup, rename `iconContainer` to `iconButton`.
228
+ const iconContainer = expValEquals('platform_editor_vc90_transition_fixes_batch_1', 'isEnabled', true) ? expand.querySelector(`.${expandClassNames.iconButton}`) : expand.querySelector(`.${expandClassNames.iconContainer}`);
229
229
  if (iconContainer && iconContainer.focus) {
230
230
  const {
231
231
  tr
@@ -464,7 +464,7 @@ export class ExpandNodeView {
464
464
  if (!expandedState.has(this.node)) {
465
465
  expandedState.set(this.node, false);
466
466
  }
467
- if (expValEquals('platform_editor_native_expand_button', 'isEnabled', true)) {
467
+ if (expValEquals('platform_editor_vc90_transition_fixes_batch_1', 'isEnabled', true)) {
468
468
  this.renderNativeIcon(this.node);
469
469
  } else {
470
470
  this.renderIcon(this.icon, !isExpandCollapsed(this.node));
@@ -566,7 +566,7 @@ export class ExpandNodeView {
566
566
  this.dom.className = buildExpandClassName(node.type.name, expanded);
567
567
  }
568
568
  // Re-render the icon to update the aria-expanded attribute
569
- if (expValEquals('platform_editor_native_expand_button', 'isEnabled', true)) {
569
+ if (expValEquals('platform_editor_vc90_transition_fixes_batch_1', 'isEnabled', true)) {
570
570
  this.renderNativeIcon(node);
571
571
  } else {
572
572
  var _expandedState$get;
@@ -201,8 +201,8 @@ export var focusIcon = function focusIcon(expand) {
201
201
  return false;
202
202
  }
203
203
 
204
- // TODO: ED-29205 - During platform_editor_native_expand_button cleanup, rename `iconContainer` to `iconButton`.
205
- var iconContainer = expValEquals('platform_editor_native_expand_button', 'isEnabled', true) ? expand.querySelector(".".concat(expandClassNames.iconButton)) : expand.querySelector(".".concat(expandClassNames.iconContainer));
204
+ // TODO: ED-29205 - During platform_editor_vc90_transition_fixes_batch_1 cleanup, rename `iconContainer` to `iconButton`.
205
+ var iconContainer = expValEquals('platform_editor_vc90_transition_fixes_batch_1', 'isEnabled', true) ? expand.querySelector(".".concat(expandClassNames.iconButton)) : expand.querySelector(".".concat(expandClassNames.iconContainer));
206
206
  if (iconContainer && iconContainer.focus) {
207
207
  var tr = state.tr;
208
208
  var pos = state.selection.from;
@@ -236,7 +236,7 @@ export var setSelectionInsideExpand = function setSelectionInsideExpand(expandPo
236
236
  };
237
237
  export var toggleExpandWithMatch = function toggleExpandWithMatch(_selection) {
238
238
  return function (_ref3) {
239
- var tr = _ref3.tr;
239
+ var _tr = _ref3.tr;
240
240
  // this action exists so that we can keep the plugin types consistent across the
241
241
  // the legacy expand plugin and the single player expand plugin until
242
242
  // we will remove the legacy expand plugin
@@ -481,7 +481,7 @@ export var ExpandNodeView = /*#__PURE__*/function () {
481
481
  this.content = this.dom.querySelector(".".concat(expandClassNames.content));
482
482
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
483
483
  this.renderKey = uuid();
484
- if (expValEquals('platform_editor_native_expand_button', 'isEnabled', true)) {
484
+ if (expValEquals('platform_editor_vc90_transition_fixes_batch_1', 'isEnabled', true)) {
485
485
  this.renderNativeIcon(this.node);
486
486
  } else {
487
487
  this.renderIcon(this.intl);
@@ -605,7 +605,7 @@ export var ExpandNodeView = /*#__PURE__*/function () {
605
605
  // we toggle a class name to hide the content and animate the chevron.
606
606
  if (this.dom) {
607
607
  this.dom.classList.toggle(expandClassNames.expanded);
608
- if (expValEquals('platform_editor_native_expand_button', 'isEnabled', true)) {
608
+ if (expValEquals('platform_editor_vc90_transition_fixes_batch_1', 'isEnabled', true)) {
609
609
  this.renderNativeIcon(node);
610
610
  } else {
611
611
  this.renderIcon(this && this.intl, node);
@@ -239,8 +239,8 @@ export var focusIcon = function focusIcon(expand) {
239
239
  return false;
240
240
  }
241
241
 
242
- // TODO: ED-29205 - During platform_editor_native_expand_button cleanup, rename `iconContainer` to `iconButton`.
243
- var iconContainer = expValEquals('platform_editor_native_expand_button', 'isEnabled', true) ? expand.querySelector(".".concat(expandClassNames.iconButton)) : expand.querySelector(".".concat(expandClassNames.iconContainer));
242
+ // TODO: ED-29205 - During platform_editor_vc90_transition_fixes_batch_1 cleanup, rename `iconContainer` to `iconButton`.
243
+ var iconContainer = expValEquals('platform_editor_vc90_transition_fixes_batch_1', 'isEnabled', true) ? expand.querySelector(".".concat(expandClassNames.iconButton)) : expand.querySelector(".".concat(expandClassNames.iconContainer));
244
244
  if (iconContainer && iconContainer.focus) {
245
245
  var tr = state.tr;
246
246
  var pos = state.selection.from;
@@ -455,7 +455,7 @@ export var ExpandNodeView = /*#__PURE__*/function () {
455
455
  if (!expandedState.has(this.node)) {
456
456
  expandedState.set(this.node, false);
457
457
  }
458
- if (expValEquals('platform_editor_native_expand_button', 'isEnabled', true)) {
458
+ if (expValEquals('platform_editor_vc90_transition_fixes_batch_1', 'isEnabled', true)) {
459
459
  this.renderNativeIcon(this.node);
460
460
  } else {
461
461
  this.renderIcon(this.icon, !isExpandCollapsed(this.node));
@@ -568,7 +568,7 @@ export var ExpandNodeView = /*#__PURE__*/function () {
568
568
  this.dom.className = buildExpandClassName(node.type.name, expanded);
569
569
  }
570
570
  // Re-render the icon to update the aria-expanded attribute
571
- if (expValEquals('platform_editor_native_expand_button', 'isEnabled', true)) {
571
+ if (expValEquals('platform_editor_vc90_transition_fixes_batch_1', 'isEnabled', true)) {
572
572
  this.renderNativeIcon(node);
573
573
  } else {
574
574
  var _expandedState$get;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "8.3.1",
3
+ "version": "8.3.2",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -56,7 +56,7 @@
56
56
  "w3c-keyname": "^2.1.8"
57
57
  },
58
58
  "peerDependencies": {
59
- "@atlaskit/editor-common": "^111.19.0",
59
+ "@atlaskit/editor-common": "^111.20.0",
60
60
  "react": "^18.2.0",
61
61
  "react-dom": "^18.2.0",
62
62
  "react-intl-next": "npm:react-intl@^5.18.1"