@atlaskit/editor-plugin-table 10.12.10 → 10.12.12

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,23 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 10.12.12
4
+
5
+ ### Patch Changes
6
+
7
+ - [#177647](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/177647)
8
+ [`422759e00f33d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/422759e00f33d) -
9
+ ED-28282 Clean up platform_editor_fix_table_width_inline_comment
10
+ - Updated dependencies
11
+
12
+ ## 10.12.11
13
+
14
+ ### Patch Changes
15
+
16
+ - [#175471](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/175471)
17
+ [`302b93e537e73`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/302b93e537e73) -
18
+ ff cleanup for platform_editor_scroll_table_flickering_fix (FD-91488)
19
+ - Updated dependencies
20
+
3
21
  ## 10.12.10
4
22
 
5
23
  ### Patch Changes
@@ -9,7 +9,6 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
9
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
11
  var _ui = require("@atlaskit/editor-common/ui");
12
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
12
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
14
13
  var _types = require("../types");
15
14
  var TableStickyScrollbar = exports.TableStickyScrollbar = /*#__PURE__*/function () {
@@ -138,7 +137,7 @@ var TableStickyScrollbar = exports.TableStickyScrollbar = /*#__PURE__*/function
138
137
  // so the boundingClientRect.top will never be less than the rootBounds.top,
139
138
  // so we need to check if the boundingClientRect.top is less than 20% of the rootBounds.height
140
139
  // to determine if the bottom sentinel is above the scroll area
141
- entry.boundingClientRect.top < (((_entry$rootBounds3 = entry.rootBounds) === null || _entry$rootBounds3 === void 0 ? void 0 : _entry$rootBounds3.height) || 0) * 0.2 && (0, _platformFeatureFlags.fg)('platform_editor_scroll_table_flickering_fix');
140
+ entry.boundingClientRect.top < (((_entry$rootBounds3 = entry.rootBounds) === null || _entry$rootBounds3 === void 0 ? void 0 : _entry$rootBounds3.height) || 0) * 0.2;
142
141
  this.bottomSentinelState = sentinelIsAboveScrollArea ? 'above' : entry.isIntersecting ? 'visible' : 'below';
143
142
  this.toggle();
144
143
  }
@@ -45,7 +45,7 @@ var tableAttributes = function tableAttributes(node) {
45
45
  };
46
46
  };
47
47
  var getInlineWidth = function getInlineWidth(node, options, state, pos, allowTableResizing) {
48
- if (!node.attrs.width && options !== null && options !== void 0 && options.isChromelessEditor && (0, _platformFeatureFlags.fg)('platform_editor_fix_table_width_inline_comment') || !node.attrs.width && options !== null && options !== void 0 && options.isCommentEditor && allowTableResizing) {
48
+ if (!node.attrs.width && options !== null && options !== void 0 && options.isChromelessEditor || !node.attrs.width && options !== null && options !== void 0 && options.isCommentEditor && allowTableResizing) {
49
49
  return;
50
50
  }
51
51
 
@@ -373,7 +373,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(getE
373
373
  var isTableScalingEnabled = (options === null || options === void 0 ? void 0 : options.isTableScalingEnabled) || false;
374
374
  var nodeType = state.schema.nodes.table;
375
375
  var toolbarTitle = 'Table floating controls';
376
- if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_4')) {
376
+ if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')) {
377
377
  var _api$editorViewMode;
378
378
  var isDragHandleMenuOpened = false;
379
379
  var isTableRowOrColumnDragged = false;
@@ -1,6 +1,5 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import { findOverflowScrollParent } from '@atlaskit/editor-common/ui';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
3
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
5
4
  import { TableCssClassName as ClassName } from '../types';
6
5
  export class TableStickyScrollbar {
@@ -113,7 +112,7 @@ export class TableStickyScrollbar {
113
112
  // so the boundingClientRect.top will never be less than the rootBounds.top,
114
113
  // so we need to check if the boundingClientRect.top is less than 20% of the rootBounds.height
115
114
  // to determine if the bottom sentinel is above the scroll area
116
- entry.boundingClientRect.top < (((_entry$rootBounds3 = entry.rootBounds) === null || _entry$rootBounds3 === void 0 ? void 0 : _entry$rootBounds3.height) || 0) * 0.2 && fg('platform_editor_scroll_table_flickering_fix');
115
+ entry.boundingClientRect.top < (((_entry$rootBounds3 = entry.rootBounds) === null || _entry$rootBounds3 === void 0 ? void 0 : _entry$rootBounds3.height) || 0) * 0.2;
117
116
  this.bottomSentinelState = sentinelIsAboveScrollArea ? 'above' : entry.isIntersecting ? 'visible' : 'below';
118
117
  this.toggle();
119
118
  }
@@ -28,7 +28,7 @@ const tableAttributes = node => {
28
28
  };
29
29
  };
30
30
  const getInlineWidth = (node, options, state, pos, allowTableResizing) => {
31
- if (!node.attrs.width && options !== null && options !== void 0 && options.isChromelessEditor && fg('platform_editor_fix_table_width_inline_comment') || !node.attrs.width && options !== null && options !== void 0 && options.isCommentEditor && allowTableResizing) {
31
+ if (!node.attrs.width && options !== null && options !== void 0 && options.isChromelessEditor || !node.attrs.width && options !== null && options !== void 0 && options.isCommentEditor && allowTableResizing) {
32
32
  return;
33
33
  }
34
34
 
@@ -353,7 +353,7 @@ export const getToolbarConfig = (getEditorContainerWidth, api, editorAnalyticsAP
353
353
  const isTableScalingEnabled = (options === null || options === void 0 ? void 0 : options.isTableScalingEnabled) || false;
354
354
  const nodeType = state.schema.nodes.table;
355
355
  const toolbarTitle = 'Table floating controls';
356
- if (editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_4')) {
356
+ if (editorExperiment('platform_editor_controls', 'variant1')) {
357
357
  var _api$editorViewMode, _api$editorViewMode$s;
358
358
  let isDragHandleMenuOpened = false;
359
359
  let isTableRowOrColumnDragged = false;
@@ -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 { findOverflowScrollParent } from '@atlaskit/editor-common/ui';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
7
6
  import { TableCssClassName as ClassName } from '../types';
8
7
  export var TableStickyScrollbar = /*#__PURE__*/function () {
@@ -131,7 +130,7 @@ export var TableStickyScrollbar = /*#__PURE__*/function () {
131
130
  // so the boundingClientRect.top will never be less than the rootBounds.top,
132
131
  // so we need to check if the boundingClientRect.top is less than 20% of the rootBounds.height
133
132
  // to determine if the bottom sentinel is above the scroll area
134
- entry.boundingClientRect.top < (((_entry$rootBounds3 = entry.rootBounds) === null || _entry$rootBounds3 === void 0 ? void 0 : _entry$rootBounds3.height) || 0) * 0.2 && fg('platform_editor_scroll_table_flickering_fix');
133
+ entry.boundingClientRect.top < (((_entry$rootBounds3 = entry.rootBounds) === null || _entry$rootBounds3 === void 0 ? void 0 : _entry$rootBounds3.height) || 0) * 0.2;
135
134
  this.bottomSentinelState = sentinelIsAboveScrollArea ? 'above' : entry.isIntersecting ? 'visible' : 'below';
136
135
  this.toggle();
137
136
  }
@@ -38,7 +38,7 @@ var tableAttributes = function tableAttributes(node) {
38
38
  };
39
39
  };
40
40
  var getInlineWidth = function getInlineWidth(node, options, state, pos, allowTableResizing) {
41
- if (!node.attrs.width && options !== null && options !== void 0 && options.isChromelessEditor && fg('platform_editor_fix_table_width_inline_comment') || !node.attrs.width && options !== null && options !== void 0 && options.isCommentEditor && allowTableResizing) {
41
+ if (!node.attrs.width && options !== null && options !== void 0 && options.isChromelessEditor || !node.attrs.width && options !== null && options !== void 0 && options.isCommentEditor && allowTableResizing) {
42
42
  return;
43
43
  }
44
44
 
@@ -366,7 +366,7 @@ export var getToolbarConfig = function getToolbarConfig(getEditorContainerWidth,
366
366
  var isTableScalingEnabled = (options === null || options === void 0 ? void 0 : options.isTableScalingEnabled) || false;
367
367
  var nodeType = state.schema.nodes.table;
368
368
  var toolbarTitle = 'Table floating controls';
369
- if (editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_4')) {
369
+ if (editorExperiment('platform_editor_controls', 'variant1')) {
370
370
  var _api$editorViewMode;
371
371
  var isDragHandleMenuOpened = false;
372
372
  var isTableRowOrColumnDragged = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "10.12.10",
3
+ "version": "10.12.12",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -39,7 +39,7 @@
39
39
  "@atlaskit/editor-plugin-batch-attribute-updates": "^2.1.0",
40
40
  "@atlaskit/editor-plugin-content-insertion": "^2.1.0",
41
41
  "@atlaskit/editor-plugin-editor-viewmode": "^4.0.0",
42
- "@atlaskit/editor-plugin-extension": "5.5.11",
42
+ "@atlaskit/editor-plugin-extension": "5.5.12",
43
43
  "@atlaskit/editor-plugin-guideline": "^2.0.0",
44
44
  "@atlaskit/editor-plugin-interaction": "^3.0.0",
45
45
  "@atlaskit/editor-plugin-selection": "^2.2.0",
@@ -47,7 +47,7 @@
47
47
  "@atlaskit/editor-prosemirror": "7.0.0",
48
48
  "@atlaskit/editor-shared-styles": "^3.4.0",
49
49
  "@atlaskit/editor-tables": "^2.9.0",
50
- "@atlaskit/icon": "^27.1.0",
50
+ "@atlaskit/icon": "^27.2.0",
51
51
  "@atlaskit/menu": "^8.0.0",
52
52
  "@atlaskit/platform-feature-flags": "^1.1.0",
53
53
  "@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
@@ -55,7 +55,7 @@
55
55
  "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
56
56
  "@atlaskit/primitives": "^14.9.0",
57
57
  "@atlaskit/theme": "^18.0.0",
58
- "@atlaskit/tmp-editor-statsig": "^8.2.0",
58
+ "@atlaskit/tmp-editor-statsig": "^8.3.0",
59
59
  "@atlaskit/toggle": "^15.0.0",
60
60
  "@atlaskit/tokens": "^5.4.0",
61
61
  "@atlaskit/tooltip": "^20.3.0",
@@ -163,9 +163,6 @@
163
163
  "platform_editor_number_column_sticky_header_bug": {
164
164
  "type": "boolean"
165
165
  },
166
- "platform_editor_scroll_table_flickering_fix": {
167
- "type": "boolean"
168
- },
169
166
  "platform_editor_paste_full_table_inside_empty_cell": {
170
167
  "type": "boolean"
171
168
  },
@@ -181,9 +178,6 @@
181
178
  "platform_editor_number_column_sticky_header_broken": {
182
179
  "type": "boolean"
183
180
  },
184
- "platform_editor_controls_patch_4": {
185
- "type": "boolean"
186
- },
187
181
  "platform_editor_tables_table_selector": {
188
182
  "type": "boolean"
189
183
  },
@@ -196,9 +190,6 @@
196
190
  "platform_editor_table_drag_menu_flickers_fix": {
197
191
  "type": "boolean"
198
192
  },
199
- "platform_editor_fix_table_width_inline_comment": {
200
- "type": "boolean"
201
- },
202
193
  "platform_editor_table_last_col_drag_handle_fix": {
203
194
  "type": "boolean"
204
195
  },
@@ -1,6 +1,5 @@
1
1
  import { findOverflowScrollParent } from '@atlaskit/editor-common/ui';
2
2
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
3
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
5
4
 
6
5
  import { TableCssClassName as ClassName } from '../types';
@@ -145,8 +144,7 @@ export class TableStickyScrollbar {
145
144
  // so the boundingClientRect.top will never be less than the rootBounds.top,
146
145
  // so we need to check if the boundingClientRect.top is less than 20% of the rootBounds.height
147
146
  // to determine if the bottom sentinel is above the scroll area
148
- (entry.boundingClientRect.top < (entry.rootBounds?.height || 0) * 0.2 &&
149
- fg('platform_editor_scroll_table_flickering_fix'));
147
+ entry.boundingClientRect.top < (entry.rootBounds?.height || 0) * 0.2;
150
148
 
151
149
  this.bottomSentinelState = sentinelIsAboveScrollArea
152
150
  ? 'above'
@@ -60,9 +60,7 @@ const getInlineWidth = (
60
60
  allowTableResizing?: boolean,
61
61
  ): number | undefined => {
62
62
  if (
63
- (!node.attrs.width &&
64
- options?.isChromelessEditor &&
65
- fg('platform_editor_fix_table_width_inline_comment')) ||
63
+ (!node.attrs.width && options?.isChromelessEditor) ||
66
64
  (!node.attrs.width && options?.isCommentEditor && allowTableResizing)
67
65
  ) {
68
66
  return;
@@ -494,10 +494,7 @@ export const getToolbarConfig =
494
494
  const nodeType = state.schema.nodes.table;
495
495
  const toolbarTitle = 'Table floating controls';
496
496
 
497
- if (
498
- editorExperiment('platform_editor_controls', 'variant1') &&
499
- fg('platform_editor_controls_patch_4')
500
- ) {
497
+ if (editorExperiment('platform_editor_controls', 'variant1')) {
501
498
  let isDragHandleMenuOpened = false;
502
499
  let isTableRowOrColumnDragged = false;
503
500
  if (options?.dragAndDropEnabled) {