@atlaskit/renderer 132.5.0 → 132.5.1

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/renderer
2
2
 
3
+ ## 132.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`edeed2f3314cd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/edeed2f3314cd) -
8
+ Fix rounded table edge interaction overlays
9
+ - Updated dependencies
10
+
3
11
  ## 132.5.0
4
12
 
5
13
  ### Minor Changes
@@ -13,6 +13,7 @@ var _react = _interopRequireDefault(require("react"));
13
13
  var _react2 = require("@emotion/react");
14
14
  var _styles = require("@atlaskit/editor-common/styles");
15
15
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
16
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
16
17
  var _table = require("./table");
17
18
  var _injectProps = require("../../utils/inject-props");
18
19
  /**
@@ -35,6 +36,14 @@ var modeSpecficStyles = {
35
36
  })
36
37
  };
37
38
 
39
+ // increasing specificity to override external renderer wrapper styles targeting div[mode='stick']
40
+ var suppressExternalStickStyles = (0, _react2.css)({
41
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Override external renderer wrapper styles targeting div[mode='stick']
42
+ "&.fixed-table-div-custom-table-resizing[mode='stick']": {
43
+ background: "var(--ds-surface-overlay, #FFFFFF)"
44
+ }
45
+ });
46
+
38
47
  // refactored based on fixedTableDivStaticStyles
39
48
  // TODO: DSP-4123 - Quality ticket
40
49
  var fixedTableDivStaticStyles = (0, _react2.css)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
@@ -74,7 +83,7 @@ var FixedTableDiv = function FixedTableDiv(props) {
74
83
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
75
84
  ,
76
85
  className: allowTableResizing ? 'fixed-table-div-custom-table-resizing' : '',
77
- css: [fixedTableDivStaticStyles, modeSpecficStyles === null || modeSpecficStyles === void 0 ? void 0 : modeSpecficStyles[mode]],
86
+ css: [fixedTableDivStaticStyles, modeSpecficStyles === null || modeSpecficStyles === void 0 ? void 0 : modeSpecficStyles[mode], (0, _expValEquals.expValEquals)('platform_editor_table_q4_loveability', 'isEnabled', true) && suppressExternalStickStyles],
78
87
  style: {
79
88
  '--ak-renderer-sticky-header-zindex': stickyHeaderZIndex,
80
89
  width: "".concat(wrapperWidth, "px"),
@@ -753,7 +753,7 @@ var TableContainer = exports.TableContainer = /*#__PURE__*/function (_React$Comp
753
753
  }
754
754
  }]);
755
755
  }(_react.default.Component);
756
- var getCellEdgePropsByCellOffset = function getCellEdgePropsByCellOffset(tableNode) {
756
+ var getCellEdgePropsByCellOffset = function getCellEdgePropsByCellOffset(tableNode, isNumberColumnEnabled) {
757
757
  var cellEdgePropsByCellOffset = new Map();
758
758
  var cellRightByCellOffset = new Map();
759
759
  var occupiedGrid = [];
@@ -785,7 +785,8 @@ var getCellEdgePropsByCellOffset = function getCellEdgePropsByCellOffset(tableNo
785
785
  cellRightByCellOffset.set(cellOffset, cellRight);
786
786
  cellEdgePropsByCellOffset.set(cellOffset, {
787
787
  reachesBottom: cellBottom >= tableNode.childCount,
788
- reachesLeft: cellLeft === 0,
788
+ // With number column enabled, PM column 0 is not visually leftmost and must not get `data-reaches-left`.
789
+ reachesLeft: cellLeft === 0 && !isNumberColumnEnabled,
789
790
  reachesRight: false,
790
791
  reachesTop: cellTop === 0
791
792
  });
@@ -802,12 +803,12 @@ var getCellEdgePropsByCellOffset = function getCellEdgePropsByCellOffset(tableNo
802
803
  });
803
804
  return cellEdgePropsByCellOffset;
804
805
  };
805
- var addTableCellEdgeProps = function addTableCellEdgeProps(rows, tableNode) {
806
+ var addTableCellEdgeProps = function addTableCellEdgeProps(rows, tableNode, isNumberColumnEnabled) {
806
807
  try {
807
808
  if (!tableNode) {
808
809
  return rows;
809
810
  }
810
- var cellEdgePropsByCellOffset = getCellEdgePropsByCellOffset(tableNode);
811
+ var cellEdgePropsByCellOffset = getCellEdgePropsByCellOffset(tableNode, isNumberColumnEnabled);
811
812
  var cellOffset = 0;
812
813
  return _react.default.Children.map(rows, function (row, rowIndex) {
813
814
  var rowNode = tableNode.child(rowIndex);
@@ -874,10 +875,13 @@ var TableProcessorWithContainerStyles = exports.TableProcessorWithContainerStyle
874
875
  (0, _defineProperty2.default)(_this2, "addNumberColumnIndexes", function (rows) {
875
876
  var isNumberColumnEnabled = _this2.props.isNumberColumnEnabled;
876
877
  var headerRowEnabled = isHeaderRowEnabled(rows);
878
+ var lastRowIndex = _react.default.Children.count(rows) - 1;
877
879
  return _react.default.Children.map(rows, function (row, index) {
878
880
  return /*#__PURE__*/_react.default.cloneElement(_react.default.Children.only(row), {
879
881
  isNumberColumnEnabled: isNumberColumnEnabled,
880
- index: headerRowEnabled ? index === 0 ? '' : index : index + 1
882
+ index: headerRowEnabled ? index === 0 ? '' : index : index + 1,
883
+ isFirstRow: index === 0,
884
+ isLastRow: index === lastRowIndex
881
885
  });
882
886
  });
883
887
  });
@@ -919,7 +923,7 @@ var TableProcessorWithContainerStyles = exports.TableProcessorWithContainerStyle
919
923
  return null;
920
924
  }
921
925
  var childrenArray = _react.default.Children.toArray(children);
922
- var childrenWithTableEdgeProps = (0, _expValEquals.expValEquals)('platform_editor_table_q4_loveability', 'isEnabled', true) ? addTableCellEdgeProps(childrenArray, tableNode) : childrenArray;
926
+ var childrenWithTableEdgeProps = (0, _expValEquals.expValEquals)('platform_editor_table_q4_loveability', 'isEnabled', true) ? addTableCellEdgeProps(childrenArray, tableNode, isNumberColumnEnabled) : childrenArray;
923
927
  var orderedChildren = (0, _utils.compose)(this.addNumberColumnIndexes, this.addSortableColumn
924
928
  // @ts-expect-error TS2345: Argument of type '(ReactChild | ReactFragment | ReactPortal)[]' is not assignable to parameter of type 'ReactElement<any, string | JSXElementConstructor<any>>[]'
925
929
  )(childrenWithTableEdgeProps);
@@ -75,15 +75,18 @@ var TableRow = exports.default = /*#__PURE__*/function (_React$Component) {
75
75
  value: function render() {
76
76
  var _this$props2 = this.props,
77
77
  children = _this$props2.children,
78
- innerRef = _this$props2.innerRef;
78
+ innerRef = _this$props2.innerRef,
79
+ isFirstRow = _this$props2.isFirstRow,
80
+ isLastRow = _this$props2.isLastRow;
79
81
  var childrenArray = _react.default.Children.toArray(children);
80
82
  return /*#__PURE__*/_react.default.createElement("tr", {
81
83
  ref: innerRef
82
- }, this.props.isNumberColumnEnabled &&
83
- /*#__PURE__*/
84
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
85
- _react.default.createElement("td", {
86
- className: _consts.RendererCssClassName.NUMBER_COLUMN
84
+ }, this.props.isNumberColumnEnabled && /*#__PURE__*/_react.default.createElement("td", {
85
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
86
+ className: _consts.RendererCssClassName.NUMBER_COLUMN,
87
+ "data-reaches-left": true,
88
+ "data-reaches-top": isFirstRow || undefined,
89
+ "data-reaches-bottom": isLastRow || undefined
87
90
  }, this.props.index), (0, _utils.compose)(this.addSortableColumn, this.addColGroupWidth)(childrenArray));
88
91
  }
89
92
  }]);
@@ -1509,41 +1509,89 @@ var tableSharedStyle = (0, _react.css)((0, _defineProperty2.default)((0, _define
1509
1509
  }))
1510
1510
  }
1511
1511
  }));
1512
- var roundedTableOuterBorderOverlayStyles = (0, _react.css)((0, _defineProperty2.default)({}, ".".concat(_styles.TableSharedCssClassName.TABLE_CONTAINER, " > table,\n\t.").concat(_styles.TableSharedCssClassName.TABLE_NODE_WRAPPER, " > table,\n\t.").concat(_styles.TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), {
1512
+ var roundedTableOuterBorderOverlayStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(_styles.TableSharedCssClassName.TABLE_CONTAINER, " > table,\n\t.").concat(_styles.TableSharedCssClassName.TABLE_NODE_WRAPPER, " > table,\n\t.").concat(_styles.TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), {
1513
1513
  borderColor: 'transparent',
1514
1514
  position: 'relative',
1515
1515
  '&::after': {
1516
1516
  content: "''",
1517
1517
  position: 'absolute',
1518
- inset: 0,
1518
+ inset: '-0.5px',
1519
1519
  border: "".concat(_styles.tableCellBorderWidth, "px solid ", "var(--ds-background-accent-gray-subtler, #DDDEE1)"),
1520
- borderRadius: "var(--ds-radius-medium, 6px)",
1520
+ borderRadius: "var(--ds-radius-xlarge, 12px)",
1521
1521
  pointerEvents: 'none',
1522
1522
  zIndex: 1
1523
1523
  },
1524
- '> tbody > tr:first-of-type > th, > tbody > tr:first-of-type > td, > tbody > tr > th[data-reaches-top], > tbody > tr > td[data-reaches-top]': {
1524
+ '> tbody > tr > th[data-reaches-top], > tbody > tr > td[data-reaches-top]': {
1525
1525
  borderTopColor: 'transparent'
1526
1526
  },
1527
- '> tbody > tr > th:first-child, > tbody > tr > td:first-child, > tbody > tr > th[data-reaches-left], > tbody > tr > td[data-reaches-left]': {
1527
+ '> tbody > tr > th[data-reaches-bottom], > tbody > tr > td[data-reaches-bottom]': {
1528
+ borderBottomColor: 'transparent'
1529
+ },
1530
+ '> tbody > tr > th[data-reaches-left], > tbody > tr > td[data-reaches-left]': {
1528
1531
  borderLeftColor: 'transparent'
1529
1532
  },
1530
1533
  '> tbody > tr > th[data-reaches-right], > tbody > tr > td[data-reaches-right]': {
1531
1534
  borderRightColor: 'transparent'
1532
1535
  },
1533
- '> tbody > tr > th[data-reaches-bottom], > tbody > tr > td[data-reaches-bottom]': {
1534
- borderBottomColor: 'transparent'
1535
- },
1536
1536
  '> tbody > tr > th[data-reaches-top][data-reaches-left], > tbody > tr > td[data-reaches-top][data-reaches-left]': {
1537
- borderTopLeftRadius: "var(--ds-radius-medium, 6px)"
1537
+ borderTopLeftRadius: "var(--ds-radius-xlarge, 12px)",
1538
+ backgroundClip: 'border-box',
1539
+ clipPath: "inset(0 round ".concat("var(--ds-radius-xlarge, 12px)", " 0 0 0)")
1538
1540
  },
1539
1541
  '> tbody > tr > th[data-reaches-top][data-reaches-right], > tbody > tr > td[data-reaches-top][data-reaches-right]': {
1540
- borderTopRightRadius: "var(--ds-radius-medium, 6px)"
1542
+ borderTopRightRadius: "var(--ds-radius-xlarge, 12px)",
1543
+ backgroundClip: 'border-box',
1544
+ clipPath: "inset(0 round 0 ".concat("var(--ds-radius-xlarge, 12px)", " 0 0)")
1541
1545
  },
1542
1546
  '> tbody > tr > th[data-reaches-bottom][data-reaches-left], > tbody > tr > td[data-reaches-bottom][data-reaches-left]': {
1543
- borderBottomLeftRadius: "var(--ds-radius-medium, 6px)"
1547
+ borderBottomLeftRadius: "var(--ds-radius-xlarge, 12px)",
1548
+ backgroundClip: 'border-box',
1549
+ clipPath: "inset(0 round 0 0 0 ".concat("var(--ds-radius-xlarge, 12px)", ")")
1544
1550
  },
1545
1551
  '> tbody > tr > th[data-reaches-bottom][data-reaches-right], > tbody > tr > td[data-reaches-bottom][data-reaches-right]': {
1546
- borderBottomRightRadius: "var(--ds-radius-medium, 6px)"
1552
+ borderBottomRightRadius: "var(--ds-radius-xlarge, 12px)",
1553
+ backgroundClip: 'border-box',
1554
+ clipPath: "inset(0 round 0 0 ".concat("var(--ds-radius-xlarge, 12px)", " 0)")
1555
+ }
1556
+ }), ".".concat(_styles.TableSharedCssClassName.TABLE_CONTAINER, ".is-sticky > .").concat(_styles.TableSharedCssClassName.TABLE_STICKY_WRAPPER), {
1557
+ borderTopLeftRadius: "var(--ds-radius-xlarge, 12px)",
1558
+ borderTopRightRadius: "var(--ds-radius-xlarge, 12px)",
1559
+ borderBottomLeftRadius: 0,
1560
+ borderBottomRightRadius: 0
1561
+ }), ".".concat(_styles.TableSharedCssClassName.TABLE_CONTAINER, ".is-sticky > .").concat(_styles.TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), {
1562
+ '&::after': {
1563
+ borderBottomLeftRadius: 0,
1564
+ borderBottomRightRadius: 0
1565
+ },
1566
+ '> tbody > tr': {
1567
+ // The sticky table clone sets a row background locally; force it off so
1568
+ // the rounded header cells, not a square row box, own the visible fill.
1569
+ background: 'transparent !important'
1570
+ },
1571
+ '> tbody > tr > th, > tbody > tr > td': {
1572
+ backgroundClip: 'border-box'
1573
+ },
1574
+ '> tbody > tr > th[data-reaches-left], > tbody > tr > td[data-reaches-left]': {
1575
+ borderTopLeftRadius: "var(--ds-radius-xlarge, 12px)",
1576
+ borderBottomLeftRadius: 0,
1577
+ clipPath: "inset(0 round ".concat("var(--ds-radius-xlarge, 12px)", " 0 0 0)")
1578
+ },
1579
+ '> tbody > tr > th[data-reaches-right], > tbody > tr > td[data-reaches-right]': {
1580
+ borderTopRightRadius: "var(--ds-radius-xlarge, 12px)",
1581
+ borderBottomRightRadius: 0,
1582
+ clipPath: "inset(0 round 0 ".concat("var(--ds-radius-xlarge, 12px)", " 0 0)")
1583
+ },
1584
+ '> tbody > tr > th[data-reaches-left][data-reaches-bottom], > tbody > tr > td[data-reaches-left][data-reaches-bottom]': {
1585
+ borderBottomLeftRadius: 0
1586
+ },
1587
+ '> tbody > tr > th[data-reaches-right][data-reaches-bottom], > tbody > tr > td[data-reaches-right][data-reaches-bottom]': {
1588
+ borderBottomRightRadius: 0
1589
+ },
1590
+ '> tbody > tr > th[data-reaches-left]::after, > tbody > tr > td[data-reaches-left]::after': {
1591
+ borderBottomLeftRadius: 0
1592
+ },
1593
+ '> tbody > tr > th[data-reaches-right]::after, > tbody > tr > td[data-reaches-right]::after': {
1594
+ borderBottomRightRadius: 0
1547
1595
  }
1548
1596
  }));
1549
1597
  var tableContentModeStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(_consts.RendererCssClassName.DOCUMENT, " .").concat(_styles.TableSharedCssClassName.TABLE_CONTAINER, ":has(table[data-initial-width-mode=\"content\"])"), {
@@ -72,7 +72,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
72
72
  var TABLE_INFO_TIMEOUT = 10000;
73
73
  var RENDER_EVENT_SAMPLE_RATE = 0.2;
74
74
  var packageName = "@atlaskit/renderer";
75
- var packageVersion = "132.4.1";
75
+ var packageVersion = "132.5.0";
76
76
  var setAsQueryContainerStyles = (0, _react2.css)({
77
77
  containerName: 'ak-renderer-wrapper',
78
78
  containerType: 'inline-size'
@@ -8,6 +8,7 @@ import React from 'react';
8
8
  import { jsx, css } from '@emotion/react';
9
9
  import { TableSharedCssClassName } from '@atlaskit/editor-common/styles';
10
10
  import { akEditorStickyHeaderZIndex } from '@atlaskit/editor-shared-styles';
11
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
11
12
  import { Table } from './table';
12
13
  import { recursivelyInjectProps } from '../../utils/inject-props';
13
14
  export const tableStickyPadding = 8;
@@ -23,6 +24,14 @@ const modeSpecficStyles = {
23
24
  })
24
25
  };
25
26
 
27
+ // increasing specificity to override external renderer wrapper styles targeting div[mode='stick']
28
+ const suppressExternalStickStyles = css({
29
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Override external renderer wrapper styles targeting div[mode='stick']
30
+ "&.fixed-table-div-custom-table-resizing[mode='stick']": {
31
+ background: "var(--ds-surface-overlay, #FFFFFF)"
32
+ }
33
+ });
34
+
26
35
  // refactored based on fixedTableDivStaticStyles
27
36
  // TODO: DSP-4123 - Quality ticket
28
37
  const fixedTableDivStaticStyles = css({
@@ -75,7 +84,7 @@ const FixedTableDiv = props => {
75
84
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
76
85
  ,
77
86
  className: allowTableResizing ? 'fixed-table-div-custom-table-resizing' : '',
78
- css: [fixedTableDivStaticStyles, modeSpecficStyles === null || modeSpecficStyles === void 0 ? void 0 : modeSpecficStyles[mode]],
87
+ css: [fixedTableDivStaticStyles, modeSpecficStyles === null || modeSpecficStyles === void 0 ? void 0 : modeSpecficStyles[mode], expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && suppressExternalStickStyles],
79
88
  style: {
80
89
  '--ak-renderer-sticky-header-zindex': stickyHeaderZIndex,
81
90
  width: `${wrapperWidth}px`,
@@ -694,7 +694,7 @@ export class TableContainer extends React.Component {
694
694
  })));
695
695
  }
696
696
  }
697
- const getCellEdgePropsByCellOffset = tableNode => {
697
+ const getCellEdgePropsByCellOffset = (tableNode, isNumberColumnEnabled) => {
698
698
  const cellEdgePropsByCellOffset = new Map();
699
699
  const cellRightByCellOffset = new Map();
700
700
  const occupiedGrid = [];
@@ -726,7 +726,8 @@ const getCellEdgePropsByCellOffset = tableNode => {
726
726
  cellRightByCellOffset.set(cellOffset, cellRight);
727
727
  cellEdgePropsByCellOffset.set(cellOffset, {
728
728
  reachesBottom: cellBottom >= tableNode.childCount,
729
- reachesLeft: cellLeft === 0,
729
+ // With number column enabled, PM column 0 is not visually leftmost and must not get `data-reaches-left`.
730
+ reachesLeft: cellLeft === 0 && !isNumberColumnEnabled,
730
731
  reachesRight: false,
731
732
  reachesTop: cellTop === 0
732
733
  });
@@ -743,12 +744,12 @@ const getCellEdgePropsByCellOffset = tableNode => {
743
744
  });
744
745
  return cellEdgePropsByCellOffset;
745
746
  };
746
- const addTableCellEdgeProps = (rows, tableNode) => {
747
+ const addTableCellEdgeProps = (rows, tableNode, isNumberColumnEnabled) => {
747
748
  try {
748
749
  if (!tableNode) {
749
750
  return rows;
750
751
  }
751
- const cellEdgePropsByCellOffset = getCellEdgePropsByCellOffset(tableNode);
752
+ const cellEdgePropsByCellOffset = getCellEdgePropsByCellOffset(tableNode, isNumberColumnEnabled);
752
753
  let cellOffset = 0;
753
754
  return React.Children.map(rows, (row, rowIndex) => {
754
755
  const rowNode = tableNode.child(rowIndex);
@@ -815,10 +816,13 @@ export class TableProcessorWithContainerStyles extends React.Component {
815
816
  isNumberColumnEnabled
816
817
  } = this.props;
817
818
  const headerRowEnabled = isHeaderRowEnabled(rows);
819
+ const lastRowIndex = React.Children.count(rows) - 1;
818
820
  return React.Children.map(rows, (row, index) => {
819
821
  return /*#__PURE__*/React.cloneElement(React.Children.only(row), {
820
822
  isNumberColumnEnabled,
821
- index: headerRowEnabled ? index === 0 ? '' : index : index + 1
823
+ index: headerRowEnabled ? index === 0 ? '' : index : index + 1,
824
+ isFirstRow: index === 0,
825
+ isLastRow: index === lastRowIndex
822
826
  });
823
827
  });
824
828
  });
@@ -856,7 +860,7 @@ export class TableProcessorWithContainerStyles extends React.Component {
856
860
  return null;
857
861
  }
858
862
  const childrenArray = React.Children.toArray(children);
859
- const childrenWithTableEdgeProps = expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? addTableCellEdgeProps(childrenArray, tableNode) : childrenArray;
863
+ const childrenWithTableEdgeProps = expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? addTableCellEdgeProps(childrenArray, tableNode, isNumberColumnEnabled) : childrenArray;
860
864
  const orderedChildren = compose(this.addNumberColumnIndexes, this.addSortableColumn
861
865
  // @ts-expect-error TS2345: Argument of type '(ReactChild | ReactFragment | ReactPortal)[]' is not assignable to parameter of type 'ReactElement<any, string | JSXElementConstructor<any>>[]'
862
866
  )(childrenWithTableEdgeProps);
@@ -55,16 +55,19 @@ export default class TableRow extends React.Component {
55
55
  render() {
56
56
  const {
57
57
  children,
58
- innerRef
58
+ innerRef,
59
+ isFirstRow,
60
+ isLastRow
59
61
  } = this.props;
60
62
  const childrenArray = React.Children.toArray(children);
61
63
  return /*#__PURE__*/React.createElement("tr", {
62
64
  ref: innerRef
63
- }, this.props.isNumberColumnEnabled &&
64
- /*#__PURE__*/
65
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
66
- React.createElement("td", {
67
- className: RendererCssClassName.NUMBER_COLUMN
65
+ }, this.props.isNumberColumnEnabled && /*#__PURE__*/React.createElement("td", {
66
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
67
+ className: RendererCssClassName.NUMBER_COLUMN,
68
+ "data-reaches-left": true,
69
+ "data-reaches-top": isFirstRow || undefined,
70
+ "data-reaches-bottom": isLastRow || undefined
68
71
  }, this.props.index), compose(this.addSortableColumn, this.addColGroupWidth)(childrenArray));
69
72
  }
70
73
  }
@@ -1896,35 +1896,86 @@ const roundedTableOuterBorderOverlayStyles = css({
1896
1896
  '&::after': {
1897
1897
  content: "''",
1898
1898
  position: 'absolute',
1899
- inset: 0,
1899
+ inset: '-0.5px',
1900
1900
  border: `${tableCellBorderWidth}px solid ${"var(--ds-background-accent-gray-subtler, #DDDEE1)"}`,
1901
- borderRadius: "var(--ds-radius-medium, 6px)",
1901
+ borderRadius: "var(--ds-radius-xlarge, 12px)",
1902
1902
  pointerEvents: 'none',
1903
1903
  zIndex: 1
1904
1904
  },
1905
- '> tbody > tr:first-of-type > th, > tbody > tr:first-of-type > td, > tbody > tr > th[data-reaches-top], > tbody > tr > td[data-reaches-top]': {
1905
+ '> tbody > tr > th[data-reaches-top], > tbody > tr > td[data-reaches-top]': {
1906
1906
  borderTopColor: 'transparent'
1907
1907
  },
1908
- '> tbody > tr > th:first-child, > tbody > tr > td:first-child, > tbody > tr > th[data-reaches-left], > tbody > tr > td[data-reaches-left]': {
1908
+ '> tbody > tr > th[data-reaches-bottom], > tbody > tr > td[data-reaches-bottom]': {
1909
+ borderBottomColor: 'transparent'
1910
+ },
1911
+ '> tbody > tr > th[data-reaches-left], > tbody > tr > td[data-reaches-left]': {
1909
1912
  borderLeftColor: 'transparent'
1910
1913
  },
1911
1914
  '> tbody > tr > th[data-reaches-right], > tbody > tr > td[data-reaches-right]': {
1912
1915
  borderRightColor: 'transparent'
1913
1916
  },
1914
- '> tbody > tr > th[data-reaches-bottom], > tbody > tr > td[data-reaches-bottom]': {
1915
- borderBottomColor: 'transparent'
1916
- },
1917
1917
  '> tbody > tr > th[data-reaches-top][data-reaches-left], > tbody > tr > td[data-reaches-top][data-reaches-left]': {
1918
- borderTopLeftRadius: "var(--ds-radius-medium, 6px)"
1918
+ borderTopLeftRadius: "var(--ds-radius-xlarge, 12px)",
1919
+ backgroundClip: 'border-box',
1920
+ clipPath: `inset(0 round ${"var(--ds-radius-xlarge, 12px)"} 0 0 0)`
1919
1921
  },
1920
1922
  '> tbody > tr > th[data-reaches-top][data-reaches-right], > tbody > tr > td[data-reaches-top][data-reaches-right]': {
1921
- borderTopRightRadius: "var(--ds-radius-medium, 6px)"
1923
+ borderTopRightRadius: "var(--ds-radius-xlarge, 12px)",
1924
+ backgroundClip: 'border-box',
1925
+ clipPath: `inset(0 round 0 ${"var(--ds-radius-xlarge, 12px)"} 0 0)`
1922
1926
  },
1923
1927
  '> tbody > tr > th[data-reaches-bottom][data-reaches-left], > tbody > tr > td[data-reaches-bottom][data-reaches-left]': {
1924
- borderBottomLeftRadius: "var(--ds-radius-medium, 6px)"
1928
+ borderBottomLeftRadius: "var(--ds-radius-xlarge, 12px)",
1929
+ backgroundClip: 'border-box',
1930
+ clipPath: `inset(0 round 0 0 0 ${"var(--ds-radius-xlarge, 12px)"})`
1925
1931
  },
1926
1932
  '> tbody > tr > th[data-reaches-bottom][data-reaches-right], > tbody > tr > td[data-reaches-bottom][data-reaches-right]': {
1927
- borderBottomRightRadius: "var(--ds-radius-medium, 6px)"
1933
+ borderBottomRightRadius: "var(--ds-radius-xlarge, 12px)",
1934
+ backgroundClip: 'border-box',
1935
+ clipPath: `inset(0 round 0 0 ${"var(--ds-radius-xlarge, 12px)"} 0)`
1936
+ }
1937
+ },
1938
+ [`.${TableSharedCssClassName.TABLE_CONTAINER}.is-sticky > .${TableSharedCssClassName.TABLE_STICKY_WRAPPER}`]: {
1939
+ borderTopLeftRadius: "var(--ds-radius-xlarge, 12px)",
1940
+ borderTopRightRadius: "var(--ds-radius-xlarge, 12px)",
1941
+ borderBottomLeftRadius: 0,
1942
+ borderBottomRightRadius: 0
1943
+ },
1944
+ // Keep the cloned sticky header rounded at the top while preserving a square bottom edge.
1945
+ [`.${TableSharedCssClassName.TABLE_CONTAINER}.is-sticky > .${TableSharedCssClassName.TABLE_STICKY_WRAPPER} > table`]: {
1946
+ '&::after': {
1947
+ borderBottomLeftRadius: 0,
1948
+ borderBottomRightRadius: 0
1949
+ },
1950
+ '> tbody > tr': {
1951
+ // The sticky table clone sets a row background locally; force it off so
1952
+ // the rounded header cells, not a square row box, own the visible fill.
1953
+ background: 'transparent !important'
1954
+ },
1955
+ '> tbody > tr > th, > tbody > tr > td': {
1956
+ backgroundClip: 'border-box'
1957
+ },
1958
+ '> tbody > tr > th[data-reaches-left], > tbody > tr > td[data-reaches-left]': {
1959
+ borderTopLeftRadius: "var(--ds-radius-xlarge, 12px)",
1960
+ borderBottomLeftRadius: 0,
1961
+ clipPath: `inset(0 round ${"var(--ds-radius-xlarge, 12px)"} 0 0 0)`
1962
+ },
1963
+ '> tbody > tr > th[data-reaches-right], > tbody > tr > td[data-reaches-right]': {
1964
+ borderTopRightRadius: "var(--ds-radius-xlarge, 12px)",
1965
+ borderBottomRightRadius: 0,
1966
+ clipPath: `inset(0 round 0 ${"var(--ds-radius-xlarge, 12px)"} 0 0)`
1967
+ },
1968
+ '> tbody > tr > th[data-reaches-left][data-reaches-bottom], > tbody > tr > td[data-reaches-left][data-reaches-bottom]': {
1969
+ borderBottomLeftRadius: 0
1970
+ },
1971
+ '> tbody > tr > th[data-reaches-right][data-reaches-bottom], > tbody > tr > td[data-reaches-right][data-reaches-bottom]': {
1972
+ borderBottomRightRadius: 0
1973
+ },
1974
+ '> tbody > tr > th[data-reaches-left]::after, > tbody > tr > td[data-reaches-left]::after': {
1975
+ borderBottomLeftRadius: 0
1976
+ },
1977
+ '> tbody > tr > th[data-reaches-right]::after, > tbody > tr > td[data-reaches-right]::after': {
1978
+ borderBottomRightRadius: 0
1928
1979
  }
1929
1980
  }
1930
1981
  });
@@ -58,7 +58,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
58
58
  const TABLE_INFO_TIMEOUT = 10000;
59
59
  const RENDER_EVENT_SAMPLE_RATE = 0.2;
60
60
  const packageName = "@atlaskit/renderer";
61
- const packageVersion = "132.4.1";
61
+ const packageVersion = "132.5.0";
62
62
  const setAsQueryContainerStyles = css({
63
63
  containerName: 'ak-renderer-wrapper',
64
64
  containerType: 'inline-size'
@@ -11,6 +11,7 @@ import React from 'react';
11
11
  import { jsx, css } from '@emotion/react';
12
12
  import { TableSharedCssClassName } from '@atlaskit/editor-common/styles';
13
13
  import { akEditorStickyHeaderZIndex } from '@atlaskit/editor-shared-styles';
14
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
14
15
  import { Table } from './table';
15
16
  import { recursivelyInjectProps } from '../../utils/inject-props';
16
17
  export var tableStickyPadding = 8;
@@ -26,6 +27,14 @@ var modeSpecficStyles = {
26
27
  })
27
28
  };
28
29
 
30
+ // increasing specificity to override external renderer wrapper styles targeting div[mode='stick']
31
+ var suppressExternalStickStyles = css({
32
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Override external renderer wrapper styles targeting div[mode='stick']
33
+ "&.fixed-table-div-custom-table-resizing[mode='stick']": {
34
+ background: "var(--ds-surface-overlay, #FFFFFF)"
35
+ }
36
+ });
37
+
29
38
  // refactored based on fixedTableDivStaticStyles
30
39
  // TODO: DSP-4123 - Quality ticket
31
40
  var fixedTableDivStaticStyles = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
@@ -65,7 +74,7 @@ var FixedTableDiv = function FixedTableDiv(props) {
65
74
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
66
75
  ,
67
76
  className: allowTableResizing ? 'fixed-table-div-custom-table-resizing' : '',
68
- css: [fixedTableDivStaticStyles, modeSpecficStyles === null || modeSpecficStyles === void 0 ? void 0 : modeSpecficStyles[mode]],
77
+ css: [fixedTableDivStaticStyles, modeSpecficStyles === null || modeSpecficStyles === void 0 ? void 0 : modeSpecficStyles[mode], expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && suppressExternalStickStyles],
69
78
  style: {
70
79
  '--ak-renderer-sticky-header-zindex': stickyHeaderZIndex,
71
80
  width: "".concat(wrapperWidth, "px"),
@@ -747,7 +747,7 @@ export var TableContainer = /*#__PURE__*/function (_React$Component) {
747
747
  }
748
748
  }]);
749
749
  }(React.Component);
750
- var getCellEdgePropsByCellOffset = function getCellEdgePropsByCellOffset(tableNode) {
750
+ var getCellEdgePropsByCellOffset = function getCellEdgePropsByCellOffset(tableNode, isNumberColumnEnabled) {
751
751
  var cellEdgePropsByCellOffset = new Map();
752
752
  var cellRightByCellOffset = new Map();
753
753
  var occupiedGrid = [];
@@ -779,7 +779,8 @@ var getCellEdgePropsByCellOffset = function getCellEdgePropsByCellOffset(tableNo
779
779
  cellRightByCellOffset.set(cellOffset, cellRight);
780
780
  cellEdgePropsByCellOffset.set(cellOffset, {
781
781
  reachesBottom: cellBottom >= tableNode.childCount,
782
- reachesLeft: cellLeft === 0,
782
+ // With number column enabled, PM column 0 is not visually leftmost and must not get `data-reaches-left`.
783
+ reachesLeft: cellLeft === 0 && !isNumberColumnEnabled,
783
784
  reachesRight: false,
784
785
  reachesTop: cellTop === 0
785
786
  });
@@ -796,12 +797,12 @@ var getCellEdgePropsByCellOffset = function getCellEdgePropsByCellOffset(tableNo
796
797
  });
797
798
  return cellEdgePropsByCellOffset;
798
799
  };
799
- var addTableCellEdgeProps = function addTableCellEdgeProps(rows, tableNode) {
800
+ var addTableCellEdgeProps = function addTableCellEdgeProps(rows, tableNode, isNumberColumnEnabled) {
800
801
  try {
801
802
  if (!tableNode) {
802
803
  return rows;
803
804
  }
804
- var cellEdgePropsByCellOffset = getCellEdgePropsByCellOffset(tableNode);
805
+ var cellEdgePropsByCellOffset = getCellEdgePropsByCellOffset(tableNode, isNumberColumnEnabled);
805
806
  var cellOffset = 0;
806
807
  return React.Children.map(rows, function (row, rowIndex) {
807
808
  var rowNode = tableNode.child(rowIndex);
@@ -868,10 +869,13 @@ export var TableProcessorWithContainerStyles = /*#__PURE__*/function (_React$Com
868
869
  _defineProperty(_this2, "addNumberColumnIndexes", function (rows) {
869
870
  var isNumberColumnEnabled = _this2.props.isNumberColumnEnabled;
870
871
  var headerRowEnabled = isHeaderRowEnabled(rows);
872
+ var lastRowIndex = React.Children.count(rows) - 1;
871
873
  return React.Children.map(rows, function (row, index) {
872
874
  return /*#__PURE__*/React.cloneElement(React.Children.only(row), {
873
875
  isNumberColumnEnabled: isNumberColumnEnabled,
874
- index: headerRowEnabled ? index === 0 ? '' : index : index + 1
876
+ index: headerRowEnabled ? index === 0 ? '' : index : index + 1,
877
+ isFirstRow: index === 0,
878
+ isLastRow: index === lastRowIndex
875
879
  });
876
880
  });
877
881
  });
@@ -913,7 +917,7 @@ export var TableProcessorWithContainerStyles = /*#__PURE__*/function (_React$Com
913
917
  return null;
914
918
  }
915
919
  var childrenArray = React.Children.toArray(children);
916
- var childrenWithTableEdgeProps = expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? addTableCellEdgeProps(childrenArray, tableNode) : childrenArray;
920
+ var childrenWithTableEdgeProps = expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? addTableCellEdgeProps(childrenArray, tableNode, isNumberColumnEnabled) : childrenArray;
917
921
  var orderedChildren = compose(this.addNumberColumnIndexes, this.addSortableColumn
918
922
  // @ts-expect-error TS2345: Argument of type '(ReactChild | ReactFragment | ReactPortal)[]' is not assignable to parameter of type 'ReactElement<any, string | JSXElementConstructor<any>>[]'
919
923
  )(childrenWithTableEdgeProps);
@@ -68,15 +68,18 @@ var TableRow = /*#__PURE__*/function (_React$Component) {
68
68
  value: function render() {
69
69
  var _this$props2 = this.props,
70
70
  children = _this$props2.children,
71
- innerRef = _this$props2.innerRef;
71
+ innerRef = _this$props2.innerRef,
72
+ isFirstRow = _this$props2.isFirstRow,
73
+ isLastRow = _this$props2.isLastRow;
72
74
  var childrenArray = React.Children.toArray(children);
73
75
  return /*#__PURE__*/React.createElement("tr", {
74
76
  ref: innerRef
75
- }, this.props.isNumberColumnEnabled &&
76
- /*#__PURE__*/
77
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
78
- React.createElement("td", {
79
- className: RendererCssClassName.NUMBER_COLUMN
77
+ }, this.props.isNumberColumnEnabled && /*#__PURE__*/React.createElement("td", {
78
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
79
+ className: RendererCssClassName.NUMBER_COLUMN,
80
+ "data-reaches-left": true,
81
+ "data-reaches-top": isFirstRow || undefined,
82
+ "data-reaches-bottom": isLastRow || undefined
80
83
  }, this.props.index), compose(this.addSortableColumn, this.addColGroupWidth)(childrenArray));
81
84
  }
82
85
  }]);
@@ -1502,41 +1502,89 @@ var tableSharedStyle = css(_defineProperty(_defineProperty(_defineProperty(_defi
1502
1502
  }))
1503
1503
  }
1504
1504
  }));
1505
- var roundedTableOuterBorderOverlayStyles = css(_defineProperty({}, ".".concat(TableSharedCssClassName.TABLE_CONTAINER, " > table,\n\t.").concat(TableSharedCssClassName.TABLE_NODE_WRAPPER, " > table,\n\t.").concat(TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), {
1505
+ var roundedTableOuterBorderOverlayStyles = css(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(TableSharedCssClassName.TABLE_CONTAINER, " > table,\n\t.").concat(TableSharedCssClassName.TABLE_NODE_WRAPPER, " > table,\n\t.").concat(TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), {
1506
1506
  borderColor: 'transparent',
1507
1507
  position: 'relative',
1508
1508
  '&::after': {
1509
1509
  content: "''",
1510
1510
  position: 'absolute',
1511
- inset: 0,
1511
+ inset: '-0.5px',
1512
1512
  border: "".concat(tableCellBorderWidth, "px solid ", "var(--ds-background-accent-gray-subtler, #DDDEE1)"),
1513
- borderRadius: "var(--ds-radius-medium, 6px)",
1513
+ borderRadius: "var(--ds-radius-xlarge, 12px)",
1514
1514
  pointerEvents: 'none',
1515
1515
  zIndex: 1
1516
1516
  },
1517
- '> tbody > tr:first-of-type > th, > tbody > tr:first-of-type > td, > tbody > tr > th[data-reaches-top], > tbody > tr > td[data-reaches-top]': {
1517
+ '> tbody > tr > th[data-reaches-top], > tbody > tr > td[data-reaches-top]': {
1518
1518
  borderTopColor: 'transparent'
1519
1519
  },
1520
- '> tbody > tr > th:first-child, > tbody > tr > td:first-child, > tbody > tr > th[data-reaches-left], > tbody > tr > td[data-reaches-left]': {
1520
+ '> tbody > tr > th[data-reaches-bottom], > tbody > tr > td[data-reaches-bottom]': {
1521
+ borderBottomColor: 'transparent'
1522
+ },
1523
+ '> tbody > tr > th[data-reaches-left], > tbody > tr > td[data-reaches-left]': {
1521
1524
  borderLeftColor: 'transparent'
1522
1525
  },
1523
1526
  '> tbody > tr > th[data-reaches-right], > tbody > tr > td[data-reaches-right]': {
1524
1527
  borderRightColor: 'transparent'
1525
1528
  },
1526
- '> tbody > tr > th[data-reaches-bottom], > tbody > tr > td[data-reaches-bottom]': {
1527
- borderBottomColor: 'transparent'
1528
- },
1529
1529
  '> tbody > tr > th[data-reaches-top][data-reaches-left], > tbody > tr > td[data-reaches-top][data-reaches-left]': {
1530
- borderTopLeftRadius: "var(--ds-radius-medium, 6px)"
1530
+ borderTopLeftRadius: "var(--ds-radius-xlarge, 12px)",
1531
+ backgroundClip: 'border-box',
1532
+ clipPath: "inset(0 round ".concat("var(--ds-radius-xlarge, 12px)", " 0 0 0)")
1531
1533
  },
1532
1534
  '> tbody > tr > th[data-reaches-top][data-reaches-right], > tbody > tr > td[data-reaches-top][data-reaches-right]': {
1533
- borderTopRightRadius: "var(--ds-radius-medium, 6px)"
1535
+ borderTopRightRadius: "var(--ds-radius-xlarge, 12px)",
1536
+ backgroundClip: 'border-box',
1537
+ clipPath: "inset(0 round 0 ".concat("var(--ds-radius-xlarge, 12px)", " 0 0)")
1534
1538
  },
1535
1539
  '> tbody > tr > th[data-reaches-bottom][data-reaches-left], > tbody > tr > td[data-reaches-bottom][data-reaches-left]': {
1536
- borderBottomLeftRadius: "var(--ds-radius-medium, 6px)"
1540
+ borderBottomLeftRadius: "var(--ds-radius-xlarge, 12px)",
1541
+ backgroundClip: 'border-box',
1542
+ clipPath: "inset(0 round 0 0 0 ".concat("var(--ds-radius-xlarge, 12px)", ")")
1537
1543
  },
1538
1544
  '> tbody > tr > th[data-reaches-bottom][data-reaches-right], > tbody > tr > td[data-reaches-bottom][data-reaches-right]': {
1539
- borderBottomRightRadius: "var(--ds-radius-medium, 6px)"
1545
+ borderBottomRightRadius: "var(--ds-radius-xlarge, 12px)",
1546
+ backgroundClip: 'border-box',
1547
+ clipPath: "inset(0 round 0 0 ".concat("var(--ds-radius-xlarge, 12px)", " 0)")
1548
+ }
1549
+ }), ".".concat(TableSharedCssClassName.TABLE_CONTAINER, ".is-sticky > .").concat(TableSharedCssClassName.TABLE_STICKY_WRAPPER), {
1550
+ borderTopLeftRadius: "var(--ds-radius-xlarge, 12px)",
1551
+ borderTopRightRadius: "var(--ds-radius-xlarge, 12px)",
1552
+ borderBottomLeftRadius: 0,
1553
+ borderBottomRightRadius: 0
1554
+ }), ".".concat(TableSharedCssClassName.TABLE_CONTAINER, ".is-sticky > .").concat(TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), {
1555
+ '&::after': {
1556
+ borderBottomLeftRadius: 0,
1557
+ borderBottomRightRadius: 0
1558
+ },
1559
+ '> tbody > tr': {
1560
+ // The sticky table clone sets a row background locally; force it off so
1561
+ // the rounded header cells, not a square row box, own the visible fill.
1562
+ background: 'transparent !important'
1563
+ },
1564
+ '> tbody > tr > th, > tbody > tr > td': {
1565
+ backgroundClip: 'border-box'
1566
+ },
1567
+ '> tbody > tr > th[data-reaches-left], > tbody > tr > td[data-reaches-left]': {
1568
+ borderTopLeftRadius: "var(--ds-radius-xlarge, 12px)",
1569
+ borderBottomLeftRadius: 0,
1570
+ clipPath: "inset(0 round ".concat("var(--ds-radius-xlarge, 12px)", " 0 0 0)")
1571
+ },
1572
+ '> tbody > tr > th[data-reaches-right], > tbody > tr > td[data-reaches-right]': {
1573
+ borderTopRightRadius: "var(--ds-radius-xlarge, 12px)",
1574
+ borderBottomRightRadius: 0,
1575
+ clipPath: "inset(0 round 0 ".concat("var(--ds-radius-xlarge, 12px)", " 0 0)")
1576
+ },
1577
+ '> tbody > tr > th[data-reaches-left][data-reaches-bottom], > tbody > tr > td[data-reaches-left][data-reaches-bottom]': {
1578
+ borderBottomLeftRadius: 0
1579
+ },
1580
+ '> tbody > tr > th[data-reaches-right][data-reaches-bottom], > tbody > tr > td[data-reaches-right][data-reaches-bottom]': {
1581
+ borderBottomRightRadius: 0
1582
+ },
1583
+ '> tbody > tr > th[data-reaches-left]::after, > tbody > tr > td[data-reaches-left]::after': {
1584
+ borderBottomLeftRadius: 0
1585
+ },
1586
+ '> tbody > tr > th[data-reaches-right]::after, > tbody > tr > td[data-reaches-right]::after': {
1587
+ borderBottomRightRadius: 0
1540
1588
  }
1541
1589
  }));
1542
1590
  var tableContentModeStyles = css(_defineProperty(_defineProperty({}, ".".concat(RendererCssClassName.DOCUMENT, " .").concat(TableSharedCssClassName.TABLE_CONTAINER, ":has(table[data-initial-width-mode=\"content\"])"), {
@@ -63,7 +63,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
63
63
  var TABLE_INFO_TIMEOUT = 10000;
64
64
  var RENDER_EVENT_SAMPLE_RATE = 0.2;
65
65
  var packageName = "@atlaskit/renderer";
66
- var packageVersion = "132.4.1";
66
+ var packageVersion = "132.5.0";
67
67
  var setAsQueryContainerStyles = css({
68
68
  containerName: 'ak-renderer-wrapper',
69
69
  containerType: 'inline-size'
@@ -5,6 +5,8 @@ type Props = {
5
5
  children?: React.ReactNode;
6
6
  index?: number;
7
7
  innerRef?: React.Ref<HTMLTableRowElement>;
8
+ isFirstRow?: boolean;
9
+ isLastRow?: boolean;
8
10
  isNumberColumnEnabled?: number;
9
11
  onSorting?: (columnIndex?: number, currentSortOrdered?: SortOrder) => void;
10
12
  tableOrderStatus?: {
@@ -5,6 +5,8 @@ type Props = {
5
5
  children?: React.ReactNode;
6
6
  index?: number;
7
7
  innerRef?: React.Ref<HTMLTableRowElement>;
8
+ isFirstRow?: boolean;
9
+ isLastRow?: boolean;
8
10
  isNumberColumnEnabled?: number;
9
11
  onSorting?: (columnIndex?: number, currentSortOrdered?: SortOrder) => void;
10
12
  tableOrderStatus?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "132.5.0",
3
+ "version": "132.5.1",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -66,8 +66,8 @@
66
66
  "@atlaskit/status": "^4.1.0",
67
67
  "@atlaskit/task-decision": "^20.2.0",
68
68
  "@atlaskit/theme": "^25.0.0",
69
- "@atlaskit/tmp-editor-statsig": "^99.0.0",
70
- "@atlaskit/tokens": "^13.3.0",
69
+ "@atlaskit/tmp-editor-statsig": "^100.0.0",
70
+ "@atlaskit/tokens": "^13.4.0",
71
71
  "@atlaskit/tooltip": "^22.6.0",
72
72
  "@atlaskit/visually-hidden": "^3.1.0",
73
73
  "@babel/runtime": "^7.0.0",
@@ -80,7 +80,7 @@
80
80
  "uuid": "^3.1.0"
81
81
  },
82
82
  "peerDependencies": {
83
- "@atlaskit/editor-common": "^115.13.0",
83
+ "@atlaskit/editor-common": "^115.15.0",
84
84
  "@atlaskit/link-provider": "^4.7.0",
85
85
  "@atlaskit/media-core": "^37.1.0",
86
86
  "react": "^18.2.0",