@atlaskit/editor-plugin-block-controls 20.1.4 → 20.1.5
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-block-controls
|
|
2
2
|
|
|
3
|
+
## 20.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`b03ff8f616c5c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b03ff8f616c5c) -
|
|
8
|
+
EDITOR-9229: Fixed the block-controls surface anchor for `table` nodes matching any
|
|
9
|
+
`.resizer-item` in the table's subtree, which caused the table's anchor-name to be assigned to a
|
|
10
|
+
nested `mediaSingle`/ embed resizer inside a table cell instead of the table's own resize-handle.
|
|
11
|
+
|
|
3
12
|
## 20.1.4
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -431,12 +431,19 @@ var sparseSurfaceAnchorStyles = (0, _react.css)({
|
|
|
431
431
|
'[data-block-controls-surface-anchor][data-block-controls-surface-node-type="multiBodiedExtension"]:not(:has(.extension-container[data-layout]))': {
|
|
432
432
|
anchorName: sparseSurfaceAnchorName
|
|
433
433
|
},
|
|
434
|
+
// `.pm-table-resizer-container` wraps the ENTIRE table, including cell content, so a
|
|
435
|
+
// nested `mediaSingle`/ embed resizer inside a cell is also a descendant of it — a plain
|
|
436
|
+
// descendant selector can't tell the table's own resize handle apart from a media resizer.
|
|
437
|
+
// The table's own `.resizer-item.display-handle` is a direct child of
|
|
438
|
+
// `.pm-table-resizer-container`, while any nested cell content sits many levels deeper, so
|
|
439
|
+
// the `>` direct child combinator is required to avoid hijacking the table's anchor-name
|
|
440
|
+
// onto a nested cell's media resizer instead of the table's own resize-handle chrome.
|
|
434
441
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
435
|
-
'[data-block-controls-surface-anchor][data-block-controls-surface-node-type="table"]:has(.resizer-item) .resizer-item': {
|
|
442
|
+
'[data-block-controls-surface-anchor][data-block-controls-surface-node-type="table"]:has(.pm-table-resizer-container > .resizer-item) .pm-table-resizer-container > .resizer-item': {
|
|
436
443
|
anchorName: sparseSurfaceAnchorName
|
|
437
444
|
},
|
|
438
445
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
439
|
-
'[data-block-controls-surface-anchor][data-block-controls-surface-node-type="table"]:not(:has(.resizer-item))': {
|
|
446
|
+
'[data-block-controls-surface-anchor][data-block-controls-surface-node-type="table"]:not(:has(.pm-table-resizer-container > .resizer-item))': {
|
|
440
447
|
anchorName: sparseSurfaceAnchorName
|
|
441
448
|
}
|
|
442
449
|
}
|
|
@@ -517,12 +517,19 @@ const sparseSurfaceAnchorStyles = css({
|
|
|
517
517
|
'[data-block-controls-surface-anchor][data-block-controls-surface-node-type="multiBodiedExtension"]:not(:has(.extension-container[data-layout]))': {
|
|
518
518
|
anchorName: sparseSurfaceAnchorName
|
|
519
519
|
},
|
|
520
|
+
// `.pm-table-resizer-container` wraps the ENTIRE table, including cell content, so a
|
|
521
|
+
// nested `mediaSingle`/ embed resizer inside a cell is also a descendant of it — a plain
|
|
522
|
+
// descendant selector can't tell the table's own resize handle apart from a media resizer.
|
|
523
|
+
// The table's own `.resizer-item.display-handle` is a direct child of
|
|
524
|
+
// `.pm-table-resizer-container`, while any nested cell content sits many levels deeper, so
|
|
525
|
+
// the `>` direct child combinator is required to avoid hijacking the table's anchor-name
|
|
526
|
+
// onto a nested cell's media resizer instead of the table's own resize-handle chrome.
|
|
520
527
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
521
|
-
'[data-block-controls-surface-anchor][data-block-controls-surface-node-type="table"]:has(.resizer-item) .resizer-item': {
|
|
528
|
+
'[data-block-controls-surface-anchor][data-block-controls-surface-node-type="table"]:has(.pm-table-resizer-container > .resizer-item) .pm-table-resizer-container > .resizer-item': {
|
|
522
529
|
anchorName: sparseSurfaceAnchorName
|
|
523
530
|
},
|
|
524
531
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
525
|
-
'[data-block-controls-surface-anchor][data-block-controls-surface-node-type="table"]:not(:has(.resizer-item))': {
|
|
532
|
+
'[data-block-controls-surface-anchor][data-block-controls-surface-node-type="table"]:not(:has(.pm-table-resizer-container > .resizer-item))': {
|
|
526
533
|
anchorName: sparseSurfaceAnchorName
|
|
527
534
|
}
|
|
528
535
|
}
|
|
@@ -424,12 +424,19 @@ var sparseSurfaceAnchorStyles = css({
|
|
|
424
424
|
'[data-block-controls-surface-anchor][data-block-controls-surface-node-type="multiBodiedExtension"]:not(:has(.extension-container[data-layout]))': {
|
|
425
425
|
anchorName: sparseSurfaceAnchorName
|
|
426
426
|
},
|
|
427
|
+
// `.pm-table-resizer-container` wraps the ENTIRE table, including cell content, so a
|
|
428
|
+
// nested `mediaSingle`/ embed resizer inside a cell is also a descendant of it — a plain
|
|
429
|
+
// descendant selector can't tell the table's own resize handle apart from a media resizer.
|
|
430
|
+
// The table's own `.resizer-item.display-handle` is a direct child of
|
|
431
|
+
// `.pm-table-resizer-container`, while any nested cell content sits many levels deeper, so
|
|
432
|
+
// the `>` direct child combinator is required to avoid hijacking the table's anchor-name
|
|
433
|
+
// onto a nested cell's media resizer instead of the table's own resize-handle chrome.
|
|
427
434
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
428
|
-
'[data-block-controls-surface-anchor][data-block-controls-surface-node-type="table"]:has(.resizer-item) .resizer-item': {
|
|
435
|
+
'[data-block-controls-surface-anchor][data-block-controls-surface-node-type="table"]:has(.pm-table-resizer-container > .resizer-item) .pm-table-resizer-container > .resizer-item': {
|
|
429
436
|
anchorName: sparseSurfaceAnchorName
|
|
430
437
|
},
|
|
431
438
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
432
|
-
'[data-block-controls-surface-anchor][data-block-controls-surface-node-type="table"]:not(:has(.resizer-item))': {
|
|
439
|
+
'[data-block-controls-surface-anchor][data-block-controls-surface-node-type="table"]:not(:has(.pm-table-resizer-container > .resizer-item))': {
|
|
433
440
|
anchorName: sparseSurfaceAnchorName
|
|
434
441
|
}
|
|
435
442
|
}
|