@atlaskit/editor-plugin-selection 8.0.9 → 8.0.11

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,19 @@
1
1
  # @atlaskit/editor-plugin-selection
2
2
 
3
+ ## 8.0.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ce0f65de88f84`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ce0f65de88f84) -
8
+ Clean up platform_editor_nested_tables_gap_cursor feature gate
9
+ - Updated dependencies
10
+
11
+ ## 8.0.10
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 8.0.9
4
18
 
5
19
  ### Patch Changes
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.toDOMOld = exports.toDOMNew = exports.toDOM = void 0;
8
8
  var _toArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toArray"));
9
9
  var _selection = require("@atlaskit/editor-common/selection");
10
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
10
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
12
11
  var _utils = require("../utils");
13
12
  /**
@@ -94,7 +93,7 @@ var toDOMOld = exports.toDOMOld = function toDOMOld(view, getPos) {
94
93
  }
95
94
 
96
95
  // Tables nested inside other elements such as layouts, expands and other tables do not have fixed width
97
- var isNestedTable = (0, _platformFeatureFlags.fg)('platform_editor_nested_tables_gap_cursor') ? (node === null || node === void 0 ? void 0 : node.type.name) === 'table' && selection.$to.depth > 0 : false;
96
+ var isNestedTable = (node === null || node === void 0 ? void 0 : node.type.name) === 'table' && selection.$to.depth > 0;
98
97
  if (layoutMode && !isNestedTable) {
99
98
  gapCursor.setAttribute('layout', layoutMode);
100
99
  var breakoutModeStyle = (0, _utils.getComputedStyleForLayoutMode)(dom, node, style);
@@ -137,7 +136,7 @@ var toDOMNew = exports.toDOMNew = function toDOMNew(view, getPos) {
137
136
  if (nodeStart !== 0 || layoutMode || (node === null || node === void 0 ? void 0 : node.type.name) === 'table') {
138
137
  gapCursor.style.marginTop = style.getPropertyValue('margin-top');
139
138
  }
140
- var isNestedTable = (0, _platformFeatureFlags.fg)('platform_editor_nested_tables_gap_cursor') ? (node === null || node === void 0 ? void 0 : node.type.name) === 'table' && selection.$to.depth > 0 : false;
139
+ var isNestedTable = (node === null || node === void 0 ? void 0 : node.type.name) === 'table' && selection.$to.depth > 0;
141
140
  if (layoutMode && !isNestedTable) {
142
141
  gapCursor.setAttribute('layout', layoutMode);
143
142
  var breakoutModeStyle = (0, _utils.getComputedStyleForLayoutMode)(dom, node, style);
@@ -1,5 +1,4 @@
1
1
  import { Side } from '@atlaskit/editor-common/selection';
2
- import { fg } from '@atlaskit/platform-feature-flags';
3
2
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
4
3
  import { getComputedStyleForLayoutMode, getLayoutModeFromTargetNode, isLeftCursor } from '../utils';
5
4
 
@@ -85,7 +84,7 @@ export const toDOMOld = (view, getPos) => {
85
84
  }
86
85
 
87
86
  // Tables nested inside other elements such as layouts, expands and other tables do not have fixed width
88
- const isNestedTable = fg('platform_editor_nested_tables_gap_cursor') ? (node === null || node === void 0 ? void 0 : node.type.name) === 'table' && selection.$to.depth > 0 : false;
87
+ const isNestedTable = (node === null || node === void 0 ? void 0 : node.type.name) === 'table' && selection.$to.depth > 0;
89
88
  if (layoutMode && !isNestedTable) {
90
89
  gapCursor.setAttribute('layout', layoutMode);
91
90
  const breakoutModeStyle = getComputedStyleForLayoutMode(dom, node, style);
@@ -130,7 +129,7 @@ export const toDOMNew = (view, getPos) => {
130
129
  if (nodeStart !== 0 || layoutMode || (node === null || node === void 0 ? void 0 : node.type.name) === 'table') {
131
130
  gapCursor.style.marginTop = style.getPropertyValue('margin-top');
132
131
  }
133
- const isNestedTable = fg('platform_editor_nested_tables_gap_cursor') ? (node === null || node === void 0 ? void 0 : node.type.name) === 'table' && selection.$to.depth > 0 : false;
132
+ const isNestedTable = (node === null || node === void 0 ? void 0 : node.type.name) === 'table' && selection.$to.depth > 0;
134
133
  if (layoutMode && !isNestedTable) {
135
134
  gapCursor.setAttribute('layout', layoutMode);
136
135
  const breakoutModeStyle = getComputedStyleForLayoutMode(dom, node, style);
@@ -1,6 +1,5 @@
1
1
  import _toArray from "@babel/runtime/helpers/toArray";
2
2
  import { Side } from '@atlaskit/editor-common/selection';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
3
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
5
4
  import { getComputedStyleForLayoutMode, getLayoutModeFromTargetNode, isLeftCursor } from '../utils';
6
5
 
@@ -88,7 +87,7 @@ export var toDOMOld = function toDOMOld(view, getPos) {
88
87
  }
89
88
 
90
89
  // Tables nested inside other elements such as layouts, expands and other tables do not have fixed width
91
- var isNestedTable = fg('platform_editor_nested_tables_gap_cursor') ? (node === null || node === void 0 ? void 0 : node.type.name) === 'table' && selection.$to.depth > 0 : false;
90
+ var isNestedTable = (node === null || node === void 0 ? void 0 : node.type.name) === 'table' && selection.$to.depth > 0;
92
91
  if (layoutMode && !isNestedTable) {
93
92
  gapCursor.setAttribute('layout', layoutMode);
94
93
  var breakoutModeStyle = getComputedStyleForLayoutMode(dom, node, style);
@@ -131,7 +130,7 @@ export var toDOMNew = function toDOMNew(view, getPos) {
131
130
  if (nodeStart !== 0 || layoutMode || (node === null || node === void 0 ? void 0 : node.type.name) === 'table') {
132
131
  gapCursor.style.marginTop = style.getPropertyValue('margin-top');
133
132
  }
134
- var isNestedTable = fg('platform_editor_nested_tables_gap_cursor') ? (node === null || node === void 0 ? void 0 : node.type.name) === 'table' && selection.$to.depth > 0 : false;
133
+ var isNestedTable = (node === null || node === void 0 ? void 0 : node.type.name) === 'table' && selection.$to.depth > 0;
135
134
  if (layoutMode && !isNestedTable) {
136
135
  gapCursor.setAttribute('layout', layoutMode);
137
136
  var breakoutModeStyle = getComputedStyleForLayoutMode(dom, node, style);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection",
3
- "version": "8.0.9",
3
+ "version": "8.0.11",
4
4
  "description": "Selection plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -25,12 +25,12 @@
25
25
  "@atlaskit/editor-shared-styles": "^3.10.0",
26
26
  "@atlaskit/editor-tables": "^2.9.0",
27
27
  "@atlaskit/platform-feature-flags": "^1.1.0",
28
- "@atlaskit/tmp-editor-statsig": "^43.0.0",
28
+ "@atlaskit/tmp-editor-statsig": "^44.1.0",
29
29
  "@atlaskit/tokens": "^11.1.0",
30
30
  "@babel/runtime": "^7.0.0"
31
31
  },
32
32
  "peerDependencies": {
33
- "@atlaskit/editor-common": "^112.7.0",
33
+ "@atlaskit/editor-common": "^112.8.0",
34
34
  "react": "^18.2.0"
35
35
  },
36
36
  "techstack": {
@@ -75,9 +75,6 @@
75
75
  }
76
76
  },
77
77
  "platform-feature-flags": {
78
- "platform_editor_nested_tables_gap_cursor": {
79
- "type": "boolean"
80
- },
81
78
  "platform_editor_renderer_selection_context": {
82
79
  "type": "boolean"
83
80
  }