@atlaskit/editor-plugin-table 10.7.1 → 10.7.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,14 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 10.7.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#139729](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/139729)
8
+ [`3a23a5ad84d94`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3a23a5ad84d94) -
9
+ ED-27404 remove platform_editor_react18_stickyheaders_fix feature gate.
10
+ - Updated dependencies
11
+
3
12
  ## 10.7.1
4
13
 
5
14
  ### Patch Changes
@@ -291,31 +291,27 @@ var TableRow = exports.default = /*#__PURE__*/function (_TableNodeView) {
291
291
  }
292
292
  });
293
293
  };
294
- if ((0, _platformFeatureFlags.fg)('platform_editor_react18_stickyheaders_fix')) {
295
- if (sentinelsInDom()) {
296
- // great - DOM ready, observe as normal
297
- observeStickySentinels();
298
- } else {
299
- // concurrent loading issue - here TableRow is too eager trying to
300
- // observe sentinels before they are in the DOM, use MutationObserver
301
- // to wait for sentinels to be added to the parent Table node DOM
302
- // then attach the IntersectionObserver
303
- var tableContainerObserver = new MutationObserver(function () {
304
- if (sentinelsInDom()) {
305
- observeStickySentinels();
306
- tableContainerObserver.disconnect();
307
- }
308
- });
309
- var mutatingNode = tableContainer;
310
- if (mutatingNode) {
311
- tableContainerObserver.observe(mutatingNode, {
312
- subtree: true,
313
- childList: true
314
- });
294
+ if (sentinelsInDom()) {
295
+ // great - DOM ready, observe as normal
296
+ observeStickySentinels();
297
+ } else {
298
+ // concurrent loading issue - here TableRow is too eager trying to
299
+ // observe sentinels before they are in the DOM, use MutationObserver
300
+ // to wait for sentinels to be added to the parent Table node DOM
301
+ // then attach the IntersectionObserver
302
+ var tableContainerObserver = new MutationObserver(function () {
303
+ if (sentinelsInDom()) {
304
+ observeStickySentinels();
305
+ tableContainerObserver.disconnect();
315
306
  }
307
+ });
308
+ var mutatingNode = tableContainer;
309
+ if (mutatingNode) {
310
+ tableContainerObserver.observe(mutatingNode, {
311
+ subtree: true,
312
+ childList: true
313
+ });
316
314
  }
317
- } else {
318
- observeStickySentinels();
319
315
  }
320
316
  }
321
317
  });
@@ -256,31 +256,27 @@ export default class TableRow extends TableNodeView {
256
256
  }
257
257
  });
258
258
  };
259
- if (fg('platform_editor_react18_stickyheaders_fix')) {
260
- if (sentinelsInDom()) {
261
- // great - DOM ready, observe as normal
262
- observeStickySentinels();
263
- } else {
264
- // concurrent loading issue - here TableRow is too eager trying to
265
- // observe sentinels before they are in the DOM, use MutationObserver
266
- // to wait for sentinels to be added to the parent Table node DOM
267
- // then attach the IntersectionObserver
268
- const tableContainerObserver = new MutationObserver(() => {
269
- if (sentinelsInDom()) {
270
- observeStickySentinels();
271
- tableContainerObserver.disconnect();
272
- }
273
- });
274
- const mutatingNode = tableContainer;
275
- if (mutatingNode) {
276
- tableContainerObserver.observe(mutatingNode, {
277
- subtree: true,
278
- childList: true
279
- });
259
+ if (sentinelsInDom()) {
260
+ // great - DOM ready, observe as normal
261
+ observeStickySentinels();
262
+ } else {
263
+ // concurrent loading issue - here TableRow is too eager trying to
264
+ // observe sentinels before they are in the DOM, use MutationObserver
265
+ // to wait for sentinels to be added to the parent Table node DOM
266
+ // then attach the IntersectionObserver
267
+ const tableContainerObserver = new MutationObserver(() => {
268
+ if (sentinelsInDom()) {
269
+ observeStickySentinels();
270
+ tableContainerObserver.disconnect();
280
271
  }
272
+ });
273
+ const mutatingNode = tableContainer;
274
+ if (mutatingNode) {
275
+ tableContainerObserver.observe(mutatingNode, {
276
+ subtree: true,
277
+ childList: true
278
+ });
281
279
  }
282
- } else {
283
- observeStickySentinels();
284
280
  }
285
281
  }
286
282
  });
@@ -284,31 +284,27 @@ var TableRow = /*#__PURE__*/function (_TableNodeView) {
284
284
  }
285
285
  });
286
286
  };
287
- if (fg('platform_editor_react18_stickyheaders_fix')) {
288
- if (sentinelsInDom()) {
289
- // great - DOM ready, observe as normal
290
- observeStickySentinels();
291
- } else {
292
- // concurrent loading issue - here TableRow is too eager trying to
293
- // observe sentinels before they are in the DOM, use MutationObserver
294
- // to wait for sentinels to be added to the parent Table node DOM
295
- // then attach the IntersectionObserver
296
- var tableContainerObserver = new MutationObserver(function () {
297
- if (sentinelsInDom()) {
298
- observeStickySentinels();
299
- tableContainerObserver.disconnect();
300
- }
301
- });
302
- var mutatingNode = tableContainer;
303
- if (mutatingNode) {
304
- tableContainerObserver.observe(mutatingNode, {
305
- subtree: true,
306
- childList: true
307
- });
287
+ if (sentinelsInDom()) {
288
+ // great - DOM ready, observe as normal
289
+ observeStickySentinels();
290
+ } else {
291
+ // concurrent loading issue - here TableRow is too eager trying to
292
+ // observe sentinels before they are in the DOM, use MutationObserver
293
+ // to wait for sentinels to be added to the parent Table node DOM
294
+ // then attach the IntersectionObserver
295
+ var tableContainerObserver = new MutationObserver(function () {
296
+ if (sentinelsInDom()) {
297
+ observeStickySentinels();
298
+ tableContainerObserver.disconnect();
308
299
  }
300
+ });
301
+ var mutatingNode = tableContainer;
302
+ if (mutatingNode) {
303
+ tableContainerObserver.observe(mutatingNode, {
304
+ subtree: true,
305
+ childList: true
306
+ });
309
307
  }
310
- } else {
311
- observeStickySentinels();
312
308
  }
313
309
  }
314
310
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "10.7.1",
3
+ "version": "10.7.2",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -32,7 +32,7 @@
32
32
  "@atlaskit/adf-schema": "^47.6.0",
33
33
  "@atlaskit/button": "^23.0.0",
34
34
  "@atlaskit/custom-steps": "^0.11.0",
35
- "@atlaskit/editor-common": "^103.4.0",
35
+ "@atlaskit/editor-common": "^103.6.0",
36
36
  "@atlaskit/editor-palette": "^2.1.0",
37
37
  "@atlaskit/editor-plugin-accessibility-utils": "^2.0.0",
38
38
  "@atlaskit/editor-plugin-analytics": "^2.2.0",
@@ -46,7 +46,7 @@
46
46
  "@atlaskit/editor-prosemirror": "7.0.0",
47
47
  "@atlaskit/editor-shared-styles": "^3.4.0",
48
48
  "@atlaskit/editor-tables": "^2.9.0",
49
- "@atlaskit/icon": "^25.5.0",
49
+ "@atlaskit/icon": "^25.6.0",
50
50
  "@atlaskit/menu": "^3.2.0",
51
51
  "@atlaskit/platform-feature-flags": "^1.1.0",
52
52
  "@atlaskit/pragmatic-drag-and-drop": "^1.5.0",
@@ -54,7 +54,7 @@
54
54
  "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.0",
55
55
  "@atlaskit/primitives": "^14.4.0",
56
56
  "@atlaskit/theme": "^18.0.0",
57
- "@atlaskit/tmp-editor-statsig": "^4.6.0",
57
+ "@atlaskit/tmp-editor-statsig": "^4.7.0",
58
58
  "@atlaskit/toggle": "^15.0.0",
59
59
  "@atlaskit/tokens": "^4.7.0",
60
60
  "@atlaskit/tooltip": "^20.0.0",
@@ -150,9 +150,6 @@
150
150
  "platform_editor_nested_tables_bottom_sentinel": {
151
151
  "type": "boolean"
152
152
  },
153
- "platform_editor_react18_stickyheaders_fix": {
154
- "type": "boolean"
155
- },
156
153
  "platform_editor_nested_tables_bodied_extension_fix": {
157
154
  "type": "boolean"
158
155
  },
@@ -333,29 +333,25 @@ export default class TableRow extends TableNodeView<HTMLTableRowElement> impleme
333
333
  });
334
334
  };
335
335
 
336
- if (fg('platform_editor_react18_stickyheaders_fix')) {
337
- if (sentinelsInDom()) {
338
- // great - DOM ready, observe as normal
339
- observeStickySentinels();
340
- } else {
341
- // concurrent loading issue - here TableRow is too eager trying to
342
- // observe sentinels before they are in the DOM, use MutationObserver
343
- // to wait for sentinels to be added to the parent Table node DOM
344
- // then attach the IntersectionObserver
345
- const tableContainerObserver = new MutationObserver(() => {
346
- if (sentinelsInDom()) {
347
- observeStickySentinels();
348
- tableContainerObserver.disconnect();
349
- }
350
- });
351
-
352
- const mutatingNode = tableContainer;
353
- if (mutatingNode) {
354
- tableContainerObserver.observe(mutatingNode, { subtree: true, childList: true });
336
+ if (sentinelsInDom()) {
337
+ // great - DOM ready, observe as normal
338
+ observeStickySentinels();
339
+ } else {
340
+ // concurrent loading issue - here TableRow is too eager trying to
341
+ // observe sentinels before they are in the DOM, use MutationObserver
342
+ // to wait for sentinels to be added to the parent Table node DOM
343
+ // then attach the IntersectionObserver
344
+ const tableContainerObserver = new MutationObserver(() => {
345
+ if (sentinelsInDom()) {
346
+ observeStickySentinels();
347
+ tableContainerObserver.disconnect();
355
348
  }
349
+ });
350
+
351
+ const mutatingNode = tableContainer;
352
+ if (mutatingNode) {
353
+ tableContainerObserver.observe(mutatingNode, { subtree: true, childList: true });
356
354
  }
357
- } else {
358
- observeStickySentinels();
359
355
  }
360
356
  }
361
357
  });