@atlaskit/editor-plugin-table 18.1.3 → 18.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.
Files changed (68) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/nodeviews/TableComponent.js +9 -3
  3. package/dist/cjs/nodeviews/TableComponentWithSharedState.js +4 -1
  4. package/dist/cjs/nodeviews/TableContainer.js +3 -1
  5. package/dist/cjs/nodeviews/TableResizer.js +3 -1
  6. package/dist/cjs/ui/ContentComponent.js +3 -1
  7. package/dist/cjs/ui/DragPreview/index.js +6 -2
  8. package/dist/cjs/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +3 -1
  9. package/dist/cjs/ui/FloatingContextualButton/index.js +3 -1
  10. package/dist/cjs/ui/FloatingContextualButton/styles.js +8 -9
  11. package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +10 -3
  12. package/dist/cjs/ui/FloatingContextualMenu/index.js +6 -2
  13. package/dist/cjs/ui/FloatingContextualMenu/styles.js +1 -2
  14. package/dist/cjs/ui/FloatingDragMenu/DragMenu.js +12 -4
  15. package/dist/cjs/ui/FloatingDragMenu/DropdownMenu.js +15 -5
  16. package/dist/cjs/ui/FloatingDragMenu/styles.js +1 -2
  17. package/dist/cjs/ui/SizeSelector/index.js +3 -1
  18. package/dist/cjs/ui/TableFloatingControls/RowControls/DragControls.js +3 -1
  19. package/dist/cjs/ui/common-styles.js +2 -3
  20. package/dist/cjs/ui/consts.js +17 -18
  21. package/dist/cjs/ui/icons/DragInMotionIcon.js +1 -1
  22. package/dist/cjs/ui/toolbar.js +6 -2
  23. package/dist/cjs/ui/ui-styles.js +10 -11
  24. package/dist/es2019/nodeviews/TableComponent.js +9 -3
  25. package/dist/es2019/nodeviews/TableComponentWithSharedState.js +4 -1
  26. package/dist/es2019/nodeviews/TableContainer.js +3 -1
  27. package/dist/es2019/nodeviews/TableResizer.js +3 -1
  28. package/dist/es2019/ui/ContentComponent.js +3 -1
  29. package/dist/es2019/ui/DragPreview/index.js +6 -2
  30. package/dist/es2019/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +3 -1
  31. package/dist/es2019/ui/FloatingContextualButton/index.js +3 -1
  32. package/dist/es2019/ui/FloatingContextualButton/styles.js +8 -9
  33. package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +10 -3
  34. package/dist/es2019/ui/FloatingContextualMenu/index.js +6 -2
  35. package/dist/es2019/ui/FloatingContextualMenu/styles.js +4 -5
  36. package/dist/es2019/ui/FloatingDragMenu/DragMenu.js +12 -4
  37. package/dist/es2019/ui/FloatingDragMenu/DropdownMenu.js +15 -5
  38. package/dist/es2019/ui/FloatingDragMenu/styles.js +3 -4
  39. package/dist/es2019/ui/SizeSelector/index.js +3 -1
  40. package/dist/es2019/ui/TableFloatingControls/RowControls/DragControls.js +3 -1
  41. package/dist/es2019/ui/common-styles.js +26 -28
  42. package/dist/es2019/ui/consts.js +18 -19
  43. package/dist/es2019/ui/icons/DragInMotionIcon.js +1 -1
  44. package/dist/es2019/ui/toolbar.js +6 -2
  45. package/dist/es2019/ui/ui-styles.js +25 -38
  46. package/dist/esm/nodeviews/TableComponent.js +9 -3
  47. package/dist/esm/nodeviews/TableComponentWithSharedState.js +4 -1
  48. package/dist/esm/nodeviews/TableContainer.js +3 -1
  49. package/dist/esm/nodeviews/TableResizer.js +3 -1
  50. package/dist/esm/ui/ContentComponent.js +3 -1
  51. package/dist/esm/ui/DragPreview/index.js +6 -2
  52. package/dist/esm/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +3 -1
  53. package/dist/esm/ui/FloatingContextualButton/index.js +3 -1
  54. package/dist/esm/ui/FloatingContextualButton/styles.js +8 -9
  55. package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +10 -3
  56. package/dist/esm/ui/FloatingContextualMenu/index.js +6 -2
  57. package/dist/esm/ui/FloatingContextualMenu/styles.js +1 -2
  58. package/dist/esm/ui/FloatingDragMenu/DragMenu.js +12 -4
  59. package/dist/esm/ui/FloatingDragMenu/DropdownMenu.js +15 -5
  60. package/dist/esm/ui/FloatingDragMenu/styles.js +1 -2
  61. package/dist/esm/ui/SizeSelector/index.js +3 -1
  62. package/dist/esm/ui/TableFloatingControls/RowControls/DragControls.js +3 -1
  63. package/dist/esm/ui/common-styles.js +2 -3
  64. package/dist/esm/ui/consts.js +18 -19
  65. package/dist/esm/ui/icons/DragInMotionIcon.js +1 -1
  66. package/dist/esm/ui/toolbar.js +6 -2
  67. package/dist/esm/ui/ui-styles.js +11 -12
  68. package/package.json +3 -4
@@ -163,7 +163,9 @@ const FloatingContextualButtonInner = /*#__PURE__*/React.memo(props => {
163
163
  target: targetCellRef,
164
164
  mountTo: tableWrapper || mountPoint,
165
165
  boundariesElement: targetCellRef,
166
- scrollableElement: scrollableElement,
166
+ scrollableElement: scrollableElement
167
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
168
+ ,
167
169
  offset: [BUTTON_OFFSET, -BUTTON_OFFSET],
168
170
  forcePlacement: true,
169
171
  allowOutOfBounds: true,
@@ -1,12 +1,11 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import { css } from '@emotion/react';
3
- import { N0, N20, N30A, N700 } from '@atlaskit/theme/colors';
4
3
  import { contextualMenuTriggerSize } from '../consts';
5
4
  export const tableFloatingCellButtonStyles = () => css({
6
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
7
6
  '> div': {
8
7
  // Sits behind button to provide surface-color background
9
- background: `var(--ds-surface, ${N20})`,
8
+ background: "var(--ds-surface, #FFFFFF)",
10
9
  borderRadius: "var(--ds-radius-small, 3px)",
11
10
  display: 'flex',
12
11
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
@@ -16,10 +15,10 @@ export const tableFloatingCellButtonStyles = () => css({
16
15
  },
17
16
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
18
17
  '&& button': {
19
- background: "var(--ds-background-neutral, none)",
18
+ background: "var(--ds-background-neutral, #0515240F)",
20
19
  flexDirection: 'column',
21
20
  margin: "var(--ds-space-025, 2px)",
22
- outline: `2px solid ${`var(--ds-surface, ${N0})`}`,
21
+ outline: `2px solid ${"var(--ds-surface, #FFFFFF)"}`,
23
22
  borderRadius: '1px',
24
23
  padding: 0,
25
24
  height: 'calc(100% - 4px)',
@@ -27,11 +26,11 @@ export const tableFloatingCellButtonStyles = () => css({
27
26
  },
28
27
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
29
28
  '&& button:hover': {
30
- background: `var(--ds-background-neutral-hovered, ${N30A})`
29
+ background: "var(--ds-background-neutral-hovered, #0B120E24)"
31
30
  },
32
31
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
33
32
  '&& button:active': {
34
- background: "var(--ds-background-neutral-pressed, rgba(179, 212, 255, 0.6))"
33
+ background: "var(--ds-background-neutral-pressed, #080F214A)"
35
34
  },
36
35
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
37
36
  '&& button > span': {
@@ -45,14 +44,14 @@ export const tableFloatingCellButtonStyles = () => css({
45
44
  export const tableFloatingCellButtonSelectedStyles = () => css({
46
45
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
47
46
  '&& button': {
48
- background: `var(--ds-background-selected, ${N700})`
47
+ background: "var(--ds-background-selected, #E9F2FE)"
49
48
  },
50
49
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
51
50
  '&& button:hover': {
52
- background: `var(--ds-background-selected-hovered, ${N700})`
51
+ background: "var(--ds-background-selected-hovered, #CFE1FD)"
53
52
  },
54
53
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
55
54
  '&& button:active': {
56
- background: `var(--ds-background-selected-pressed, ${N700})`
55
+ background: "var(--ds-background-selected-pressed, #8FB8F6)"
57
56
  }
58
57
  });
@@ -150,7 +150,9 @@ export class ContextualMenu extends Component {
150
150
  }, jsx(ArrowKeyNavigationProvider, {
151
151
  type: ArrowKeyNavigationType.COLOR,
152
152
  selectedRowIndex: selectedRowIndex || 0,
153
- selectedColumnIndex: selectedColumnIndex || 0,
153
+ selectedColumnIndex: selectedColumnIndex || 0
154
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
155
+ ,
154
156
  handleClose: () => {
155
157
  this.setState({
156
158
  isSubmenuOpen: false
@@ -170,7 +172,9 @@ export class ContextualMenu extends Component {
170
172
  }, jsx(ColorPalette, {
171
173
  cols: 7,
172
174
  onClick: this.setColor,
173
- selectedColor: (node === null || node === void 0 ? void 0 : (_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : _node$attrs2.background) || '#ffffff',
175
+ selectedColor: (node === null || node === void 0 ? void 0 : (_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : _node$attrs2.background) || '#ffffff'
176
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
177
+ ,
174
178
  paletteOptions: {
175
179
  palette: cellBackgroundColorPalette,
176
180
  paletteColorTooltipMessages: backgroundPaletteTooltipMessages,
@@ -844,6 +848,7 @@ export class ContextualMenu extends Component {
844
848
  }, jsx(DropdownMenu
845
849
  //This needs be removed when the a11y is completely handled
846
850
  //Disabling key navigation now as it works only partially
851
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
847
852
  , {
848
853
  arrowKeyNavigationProviderOptions: {
849
854
  type: ArrowKeyNavigationType.MENU,
@@ -856,7 +861,9 @@ export class ContextualMenu extends Component {
856
861
  onMouseEnter: this.handleItemMouseEnter,
857
862
  onMouseLeave: this.handleItemMouseLeave,
858
863
  fitHeight: 188,
859
- fitWidth: isDragAndDropEnabled ? contextualMenuDropdownWidthDnD : contextualMenuDropdownWidth,
864
+ fitWidth: isDragAndDropEnabled ? contextualMenuDropdownWidthDnD : contextualMenuDropdownWidth
865
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
866
+ ,
860
867
  shouldFocusFirstItem: () => {
861
868
  return Boolean(isCellMenuOpenByKeyboard);
862
869
  },
@@ -84,7 +84,9 @@ const FloatingContextualMenu = ({
84
84
  // in table, but below floating dialogs like typeaheads, pickers, etc.
85
85
  ,
86
86
  zIndex: parentSticky ? akEditorFloatingDialogZIndex : akEditorFloatingOverlapPanelZIndex,
87
- forcePlacement: true,
87
+ forcePlacement: true
88
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
89
+ ,
88
90
  offset: [-7, 0],
89
91
  stick: true
90
92
  }, jsx("div", {
@@ -93,7 +95,9 @@ const FloatingContextualMenu = ({
93
95
  // Remove ! during platform_editor_hydratable_ui cleanup
94
96
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
95
97
  , {
96
- editorView: editorView,
98
+ editorView: editorView
99
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
100
+ ,
97
101
  offset: [contextualMenuTriggerSize / 2, -contextualMenuTriggerSize],
98
102
  isOpen: isOpen,
99
103
  targetCellPosition: targetCellPosition,
@@ -1,7 +1,6 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import { css } from '@emotion/react';
3
3
  import { tableBackgroundBorderColor } from '@atlaskit/adf-schema';
4
- import { N60A, N90 } from '@atlaskit/theme/colors';
5
4
  import { TableCssClassName as ClassName } from '../../types';
6
5
  import { contextualMenuDropdownWidth, contextualMenuDropdownWidthDnD } from '../consts';
7
6
  export const cellColourPreviewStyles = selectedColor => css({
@@ -15,8 +14,8 @@ export const tablePopupStyles = (isDragAndDropEnabled
15
14
  ) => css`
16
15
  .${ClassName.CONTEXTUAL_SUBMENU} {
17
16
  border-radius: ${"var(--ds-radius-small, 3px)"};
18
- background: ${"var(--ds-surface-overlay, white)"};
19
- box-shadow: ${`var(--ds-shadow-overlay, ${`0 4px 8px -2px ${N60A}, 0 0 1px ${N60A}`})`};
17
+ background: ${"var(--ds-surface-overlay, #FFFFFF)"};
18
+ box-shadow: ${"var(--ds-shadow-overlay, 0px 8px 12px #1E1F2126, 0px 0px 1px #1E1F214f)"};
20
19
  display: block;
21
20
  position: absolute;
22
21
  top: 0;
@@ -44,7 +43,7 @@ export const tablePopupStyles = (isDragAndDropEnabled
44
43
  content: '›';
45
44
  margin-left: ${"var(--ds-space-050, 4px)"};
46
45
  line-height: 20px;
47
- color: ${`var(--ds-icon, ${N90})`};
46
+ color: ${"var(--ds-icon, #292A2E)"};
48
47
  }
49
48
  }
50
49
 
@@ -64,7 +63,7 @@ export const tablePopupStyles = (isDragAndDropEnabled
64
63
  content: '›';
65
64
  margin-left: ${"var(--ds-space-050, 4px)"};
66
65
  line-height: 14px;
67
- color: ${`var(--ds-icon, ${N90})`};
66
+ color: ${"var(--ds-icon, #292A2E)"};
68
67
  }
69
68
  }
70
69
  `;
@@ -313,7 +313,9 @@ const DragMenu = /*#__PURE__*/React.memo(({
313
313
  }, jsx(ArrowKeyNavigationProvider, {
314
314
  type: ArrowKeyNavigationType.COLOR,
315
315
  selectedRowIndex: selectedRowIndex,
316
- selectedColumnIndex: selectedColumnIndex,
316
+ selectedColumnIndex: selectedColumnIndex
317
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
318
+ ,
317
319
  handleClose: () => {
318
320
  const keyboardEvent = new KeyboardEvent('keydown', {
319
321
  key: 'ArrowDown',
@@ -328,11 +330,15 @@ const DragMenu = /*#__PURE__*/React.memo(({
328
330
  isPopupPositioned: true,
329
331
  isOpenedByKeyboard: isKeyboardModeActive
330
332
  }, jsx(ColorPalette, {
331
- cols: colorPalletteColumns,
333
+ cols: colorPalletteColumns
334
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
335
+ ,
332
336
  onClick: color => {
333
337
  setColor(color);
334
338
  },
335
- selectedColor: background,
339
+ selectedColor: background
340
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
341
+ ,
336
342
  paletteOptions: {
337
343
  palette: cellBackgroundColorPalette,
338
344
  paletteColorTooltipMessages: backgroundPaletteTooltipMessages,
@@ -561,7 +567,9 @@ const DragMenu = /*#__PURE__*/React.memo(({
561
567
  api: api,
562
568
  userIntent: "tableDragMenuPopupOpen"
563
569
  }, jsx(DropdownMenu, {
564
- disableKeyboardHandling: isSubmenuOpen,
570
+ disableKeyboardHandling: isSubmenuOpen
571
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
572
+ ,
565
573
  section: {
566
574
  hasSeparator: true
567
575
  },
@@ -44,13 +44,19 @@ export const DropdownMenu = ({
44
44
  return /*#__PURE__*/React.createElement(DropListWithOutsideListeners, {
45
45
  isOpen: true,
46
46
  shouldFitContainer: true,
47
- position: popupPlacement.join(' '),
48
- handleClickOutside: () => handleClose('editor'),
47
+ position: popupPlacement.join(' ')
48
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
49
+ ,
50
+ handleClickOutside: () => handleClose('editor')
51
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
52
+ ,
49
53
  handleEscapeKeydown: () => {
50
54
  if (!disableKeyboardHandling) {
51
55
  handleClose('handle');
52
56
  }
53
- },
57
+ }
58
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
59
+ ,
54
60
  handleEnterKeydown: e => {
55
61
  if (!disableKeyboardHandling) {
56
62
  e.preventDefault();
@@ -140,13 +146,17 @@ export const DropdownMenu = ({
140
146
  target: targetRefDiv,
141
147
  mountTo: mountPoint,
142
148
  boundariesElement: boundariesElement,
143
- scrollableElement: scrollableElement,
149
+ scrollableElement: scrollableElement
150
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
151
+ ,
144
152
  onPlacementChanged: placement => {
145
153
  setPopupPlacement(placement);
146
154
  },
147
155
  fitHeight: fitHeight,
148
156
  fitWidth: fitWidth,
149
- zIndex: akEditorFloatingPanelZIndex,
157
+ zIndex: akEditorFloatingPanelZIndex
158
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
159
+ ,
150
160
  offset: [offsetX, offsetY],
151
161
  allowOutOfBounds: true // required as this popup is child of a parent popup, should be allowed to be out of bound of the parent popup, otherwise horizontal offset is not right
152
162
  }, /*#__PURE__*/React.createElement(ArrowKeyNavigationProvider, {
@@ -1,7 +1,6 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import { css } from '@emotion/react';
3
3
  import { tableBackgroundBorderColor } from '@atlaskit/adf-schema';
4
- import { N60A, N90 } from '@atlaskit/theme/colors';
5
4
  import { TableCssClassName as ClassName } from '../../types';
6
5
  import { dragMenuDropdownWidth, TABLE_DRAG_MENU_MENU_GROUP_BEFORE_HEIGHT, TABLE_DRAG_MENU_PADDING_TOP, TABLE_DRAG_MENU_SORT_GROUP_HEIGHT } from '../consts';
7
6
  export const cellColourPreviewStyles = selectedColor => css({
@@ -15,8 +14,8 @@ export const cellColourPreviewStyles = selectedColor => css({
15
14
  export const dragMenuBackgroundColorStyles = () => css`
16
15
  .${ClassName.DRAG_SUBMENU} {
17
16
  border-radius: ${"var(--ds-radius-small, 3px)"};
18
- background: ${"var(--ds-surface-overlay, white)"};
19
- box-shadow: ${`var(--ds-shadow-overlay, ${`0 4px 8px -2px ${N60A}, 0 0 1px ${N60A}`})`};
17
+ background: ${"var(--ds-surface-overlay, #FFFFFF)"};
18
+ box-shadow: ${"var(--ds-shadow-overlay, 0px 8px 12px #1E1F2126, 0px 0px 1px #1E1F214f)"};
20
19
  display: block;
21
20
  position: absolute;
22
21
  top: ${TABLE_DRAG_MENU_PADDING_TOP + TABLE_DRAG_MENU_SORT_GROUP_HEIGHT + TABLE_DRAG_MENU_MENU_GROUP_BEFORE_HEIGHT}px; /* move the submenu down when 'sort increasing/decreasing' appear before background color picker */
@@ -44,7 +43,7 @@ export const dragMenuBackgroundColorStyles = () => css`
44
43
  content: '›';
45
44
  margin-left: ${"var(--ds-space-050, 4px)"};
46
45
  line-height: 14px;
47
- color: ${`var(--ds-icon, ${N90})`};
46
+ color: ${"var(--ds-icon, #292A2E)"};
48
47
  }
49
48
  }
50
49
  `;
@@ -43,7 +43,9 @@ export const SizeSelector = ({
43
43
  const onUnmount = () => {
44
44
  api === null || api === void 0 ? void 0 : api.core.actions.focus();
45
45
  };
46
- return jsx(TableSelectorPopup, {
46
+ return jsx(TableSelectorPopup
47
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
48
+ , {
47
49
  defaultSize: {
48
50
  row: DEFAULT_TABLE_SELECTOR_ROWS,
49
51
  col: DEFAULT_TABLE_SELECTOR_COLS
@@ -250,7 +250,9 @@ export const DragControls = ({
250
250
  , {
251
251
  key: `drop-target-${index}`,
252
252
  index: index,
253
- localId: currentNodeLocalId,
253
+ localId: currentNodeLocalId
254
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
255
+ ,
254
256
  style: {
255
257
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
256
258
  gridColumn: '1 / span 3',
@@ -12,7 +12,6 @@ import { akEditorSelectedNodeClassName, akEditorSmallZIndex, akEditorStickyHeade
12
12
  import { scrollbarStyles } from '@atlaskit/editor-shared-styles/scrollbar';
13
13
  import { hideNativeBrowserTextSelectionStyles } from '@atlaskit/editor-shared-styles/selection';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
- import { N0, N40A, R500 } from '@atlaskit/theme/colors';
16
15
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
17
16
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
18
17
  import { SORTING_ICON_CLASS_NAME } from '../pm-plugins/view-mode-sort/consts';
@@ -36,7 +35,7 @@ const numberedColumnButtonSelectedStyles = `
36
35
  background-color: ${tableToolbarSelectedColor};
37
36
  position: relative;
38
37
  z-index: ${akEditorUnitZIndex};
39
- color: ${`var(--ds-text-selected, ${N0})`};
38
+ color: ${"var(--ds-text-selected, #1868DB)"};
40
39
  `;
41
40
  const rangeSelectionStyles = `
42
41
  .${ClassName.NODEVIEW_WRAPPER}.${akEditorSelectedNodeClassName} table tbody tr {
@@ -284,7 +283,7 @@ const baseTableStylesWithoutSharedStyle = props => {
284
283
 
285
284
  position: fixed !important;
286
285
  z-index: ${akEditorStickyHeaderZIndex} !important;
287
- box-shadow: 0px -${stickyRowOffsetTop}px ${"var(--ds-surface, white)"};
286
+ box-shadow: 0px -${stickyRowOffsetTop}px ${"var(--ds-surface, #FFFFFF)"};
288
287
  border-right: 0 none;
289
288
  /* top set by NumberColumn component */
290
289
  }
@@ -293,7 +292,7 @@ const baseTableStylesWithoutSharedStyle = props => {
293
292
  position: fixed !important;
294
293
  /* needs to be above row controls */
295
294
  z-index: ${akEditorSmallZIndex} !important;
296
- background: ${"var(--ds-surface, white)"};
295
+ background: ${"var(--ds-surface, #FFFFFF)"};
297
296
 
298
297
  width: ${tableToolbarSize}px;
299
298
  height: ${tableToolbarSize}px;
@@ -317,13 +316,13 @@ const baseTableStylesWithoutSharedStyle = props => {
317
316
  position: fixed !important;
318
317
  z-index: ${akEditorStickyHeaderZIndex} !important;
319
318
  display: flex;
320
- border-left: ${tableToolbarSize}px solid ${"var(--ds-surface, white)"};
319
+ border-left: ${tableToolbarSize}px solid ${"var(--ds-surface, #FFFFFF)"};
321
320
  margin-left: -${tableToolbarSize}px;
322
321
  }
323
322
 
324
323
  .${ClassName.TABLE_STICKY} col:first-of-type {
325
324
  /* moving rows out of a table layout does weird things in Chrome */
326
- border-right: 1px solid ${"var(--ds-surface, green)"};
325
+ border-right: 1px solid ${"var(--ds-surface, #FFFFFF)"};
327
326
  }
328
327
 
329
328
  tr.sticky {
@@ -340,9 +339,9 @@ const baseTableStylesWithoutSharedStyle = props => {
340
339
  grid-auto-flow: column;
341
340
 
342
341
  /* background for where controls apply */
343
- background: ${"var(--ds-surface, white)"};
342
+ background: ${"var(--ds-surface, #FFFFFF)"};
344
343
  box-sizing: content-box;
345
- box-shadow: 0 6px 4px -4px ${`var(--ds-shadow-overflow-perimeter, ${N40A})`};
344
+ box-shadow: 0 6px 4px -4px ${"var(--ds-shadow-overflow-perimeter, #1E1F211f)"};
346
345
 
347
346
  margin-left: -1px;
348
347
 
@@ -544,8 +543,7 @@ const baseTableStylesWithoutSharedStyle = props => {
544
543
  }
545
544
 
546
545
  .${ClassName.CORNER_CONTROLS}.sticky {
547
- border-top: ${tableControlsSpacing - tableToolbarSize}px solid
548
- ${"var(--ds-surface, white)"};
546
+ border-top: ${tableControlsSpacing - tableToolbarSize}px solid ${"var(--ds-surface, #FFFFFF)"};
549
547
  }
550
548
 
551
549
  ${sentinelStyles}
@@ -757,7 +755,7 @@ const baseTableStylesWithoutSharedStyle = props => {
757
755
  position: absolute;
758
756
  bottom: -3px;
759
757
  left: 2px;
760
- background-color: ${"var(--ds-background-accent-gray-subtler, #C1C7D0)"};
758
+ background-color: ${"var(--ds-background-accent-gray-subtler, #DDDEE1)"};
761
759
  height: 4px;
762
760
  width: 4px;
763
761
  border-radius: 50%;
@@ -780,7 +778,7 @@ const baseTableStylesWithoutSharedStyle = props => {
780
778
  }
781
779
 
782
780
  .${ClassName.DRAG_COLUMN_FLOATING_INSERT_DOT} {
783
- background-color: ${"var(--ds-background-accent-gray-subtler, #C1C7D0)"};
781
+ background-color: ${"var(--ds-background-accent-gray-subtler, #DDDEE1)"};
784
782
  height: 4px;
785
783
  width: 4px;
786
784
  border-radius: 50%;
@@ -813,7 +811,7 @@ const baseTableStylesWithoutSharedStyle = props => {
813
811
  padding: 0;
814
812
  border-radius: 6px;
815
813
  width: max-content;
816
- border: 2px solid ${`var(--ds-surface, ${N0})`};
814
+ border: 2px solid ${"var(--ds-surface, #FFFFFF)"};
817
815
 
818
816
  display: flex;
819
817
  justify-content: center;
@@ -830,13 +828,13 @@ const baseTableStylesWithoutSharedStyle = props => {
830
828
  cursor: pointer;
831
829
  & svg {
832
830
  & > rect.${ClassName.DRAG_HANDLE_MINIMISED} {
833
- fill: ${"var(--ds-background-accent-gray-subtler, #DCDFE4)"};
831
+ fill: ${"var(--ds-background-accent-gray-subtler, #DDDEE1)"};
834
832
  }
835
833
  & > rect {
836
- fill: ${"var(--ds-background-accent-gray-subtlest, #F4F5F7)"};
834
+ fill: ${"var(--ds-background-accent-gray-subtlest, #F0F1F2)"};
837
835
  }
838
836
  & > g > rect {
839
- fill: ${"var(--ds-icon-disabled, #BFDBF847)"};
837
+ fill: ${"var(--ds-icon-disabled, #080F214A)"};
840
838
  }
841
839
  }
842
840
  }
@@ -844,20 +842,20 @@ const baseTableStylesWithoutSharedStyle = props => {
844
842
  &:not(.${ClassName.DRAG_HANDLE_DISABLED}) {
845
843
  & svg {
846
844
  rect {
847
- fill: ${"var(--ds-background-accent-gray-subtler, #DCDFE4)"};
845
+ fill: ${"var(--ds-background-accent-gray-subtler, #DDDEE1)"};
848
846
  }
849
847
  g {
850
- fill: ${"var(--ds-icon-subtle, #626f86)"};
848
+ fill: ${"var(--ds-icon-subtle, #505258)"};
851
849
  }
852
850
  }
853
851
 
854
852
  &:hover {
855
853
  svg {
856
854
  rect {
857
- fill: ${"var(--ds-background-accent-blue-subtle, #579DFF)"};
855
+ fill: ${"var(--ds-background-accent-blue-subtle, #669DF1)"};
858
856
  }
859
857
  g {
860
- fill: ${"var(--ds-icon-inverse, #FFF)"};
858
+ fill: ${"var(--ds-icon-inverse, #FFFFFF)"};
861
859
  }
862
860
  }
863
861
  }
@@ -868,7 +866,7 @@ const baseTableStylesWithoutSharedStyle = props => {
868
866
 
869
867
  &.selected {
870
868
  :focus {
871
- outline: 2px solid ${"var(--ds-border-focused, #2684FF)"};
869
+ outline: 2px solid ${"var(--ds-border-focused, #4688EC)"};
872
870
  outline-offset: 1px;
873
871
  }
874
872
 
@@ -878,10 +876,10 @@ const baseTableStylesWithoutSharedStyle = props => {
878
876
 
879
877
  svg {
880
878
  rect {
881
- fill: ${"var(--ds-background-accent-blue-subtle, #579dff)"};
879
+ fill: ${"var(--ds-background-accent-blue-subtle, #669DF1)"};
882
880
  }
883
881
  g {
884
- fill: ${"var(--ds-icon-inverse, #fff)"};
882
+ fill: ${"var(--ds-icon-inverse, #FFFFFF)"};
885
883
  }
886
884
  }
887
885
  }
@@ -889,10 +887,10 @@ const baseTableStylesWithoutSharedStyle = props => {
889
887
  &.danger {
890
888
  svg {
891
889
  rect {
892
- fill: ${"var(--ds-background-accent-red-subtler-pressed, #F87462)"};
890
+ fill: ${"var(--ds-background-accent-red-subtler-pressed, #FD9891)"};
893
891
  }
894
892
  g {
895
- fill: ${"var(--ds-border-inverse, #FFF)"};
893
+ fill: ${"var(--ds-border-inverse, #FFFFFF)"};
896
894
  }
897
895
  }
898
896
  }
@@ -947,7 +945,7 @@ const baseTableStylesWithoutSharedStyle = props => {
947
945
  display: block;
948
946
  height: 33px;
949
947
  width: 100%;
950
- background-color: ${"var(--ds-surface, white)"};
948
+ background-color: ${"var(--ds-surface, #FFFFFF)"};
951
949
  position: absolute;
952
950
 
953
951
  /* the extra pixel is accounting for borders */
@@ -1001,7 +999,7 @@ const baseTableStylesWithoutSharedStyle = props => {
1001
999
  background-color: ${tableToolbarDeleteColor};
1002
1000
  border: 1px solid ${tableBorderDeleteColor};
1003
1001
  border-left: 0;
1004
- color: ${`var(--ds-text-danger, ${R500})`};
1002
+ color: ${"var(--ds-text-danger, #AE2E24)"};
1005
1003
  position: relative;
1006
1004
  z-index: ${akEditorUnitZIndex};
1007
1005
  }
@@ -1013,7 +1011,7 @@ const baseTableStylesWithoutSharedStyle = props => {
1013
1011
  background-color: ${tableToolbarDeleteColor};
1014
1012
  border: 1px solid ${tableBorderDeleteColor};
1015
1013
  border-left: 0;
1016
- color: ${`var(--ds-text-danger, ${R500})`};
1014
+ color: ${"var(--ds-text-danger, #AE2E24)"};
1017
1015
  position: relative;
1018
1016
  z-index: ${akEditorUnitZIndex};
1019
1017
  }
@@ -2,8 +2,7 @@
2
2
  // Entry file in package.json
3
3
 
4
4
  import { tableCellBorderWidth, tableMarginTop } from '@atlaskit/editor-common/styles';
5
- import { akEditorTableBorder, akEditorTableBorderSelected, akEditorTableCellBlanketDeleted, akEditorTableCellBlanketSelected, akEditorTableCellOnStickyHeaderZIndex, akEditorTableHeaderCellBackground, akEditorTableToolbar, akEditorTableToolbarSize, akEditorUnitZIndex, akRichMediaResizeZIndex } from '@atlaskit/editor-shared-styles';
6
- import { B200, N0, N20, N200, N20A, N300, R300, R400, R75 } from '@atlaskit/theme/colors';
5
+ import { akEditorTableCellOnStickyHeaderZIndex, akEditorTableToolbarSize, akEditorUnitZIndex, akRichMediaResizeZIndex } from '@atlaskit/editor-shared-styles';
7
6
  import { RESIZE_HANDLE_AREA_DECORATION_GAP } from '../types';
8
7
 
9
8
  /**
@@ -11,25 +10,25 @@ import { RESIZE_HANDLE_AREA_DECORATION_GAP } from '../types';
11
10
  */
12
11
 
13
12
  // TODO: DSP-4135 - Remove these tokens once the new elevation tokens are available
14
- export const tableCellBackgroundColor = `var(--ds-surface, ${N0})`;
15
- export const tableHeaderCellBackgroundColor = `var(--ds-background-accent-gray-subtlest, ${akEditorTableHeaderCellBackground})`;
16
- export const tableToolbarColor = `var(--ds-background-neutral-subtle, ${akEditorTableToolbar})`;
17
- export const tableTextColor = `var(--ds-text-subtlest, ${N200})`;
18
- export const tableBorderColor = `var(--ds-background-accent-gray-subtler, ${akEditorTableBorder})`;
19
- export const tableFloatingControlsColor = `var(--ds-background-neutral, ${N20})`;
13
+ export const tableCellBackgroundColor = "var(--ds-surface, #FFFFFF)";
14
+ export const tableHeaderCellBackgroundColor = "var(--ds-background-accent-gray-subtlest, #F0F1F2)";
15
+ export const tableToolbarColor = "var(--ds-background-neutral-subtle, #00000000)";
16
+ export const tableTextColor = "var(--ds-text-subtlest, #6B6E76)";
17
+ export const tableBorderColor = "var(--ds-background-accent-gray-subtler, #DDDEE1)";
18
+ export const tableFloatingControlsColor = "var(--ds-background-neutral, #0515240F)";
20
19
 
21
20
  // TODO: DSP-4461 - Remove these tokens once the new elevation tokens are available
22
- export const tableCellSelectedColor = `var(--ds-blanket-selected, ${akEditorTableCellBlanketSelected})`;
23
- export const tableHeaderCellSelectedColor = `var(--ds-background-selected-pressed, ${B200})`;
24
- export const tableToolbarSelectedColor = `var(--ds-background-selected-pressed, ${B200})`;
25
- export const tableBorderSelectedColor = `var(--ds-border-focused, ${akEditorTableBorderSelected})`;
26
- export const tableCellSelectedDeleteIconColor = `var(--ds-icon-subtle, ${N300})`;
27
- export const tableCellSelectedDeleteIconBackground = `var(--ds-background-accent-gray-subtlest, ${N20A})`;
28
- export const tableCellDeleteColor = `var(--ds-blanket-danger, ${akEditorTableCellBlanketDeleted})`;
29
- export const tableBorderDeleteColor = `var(--ds-border-danger, ${R400})`;
30
- export const tableToolbarDeleteColor = `var(--ds-background-danger-pressed, ${R75})`;
31
- export const tableCellHoverDeleteIconColor = "var(--ds-icon-inverse, white)";
32
- export const tableCellHoverDeleteIconBackground = `var(--ds-background-danger-bold, ${R300})`;
21
+ export const tableCellSelectedColor = "var(--ds-blanket-selected, #388BFF14)";
22
+ export const tableHeaderCellSelectedColor = "var(--ds-background-selected-pressed, #8FB8F6)";
23
+ export const tableToolbarSelectedColor = "var(--ds-background-selected-pressed, #8FB8F6)";
24
+ export const tableBorderSelectedColor = "var(--ds-border-focused, #4688EC)";
25
+ export const tableCellSelectedDeleteIconColor = "var(--ds-icon-subtle, #505258)";
26
+ export const tableCellSelectedDeleteIconBackground = "var(--ds-background-accent-gray-subtlest, #F0F1F2)";
27
+ export const tableCellDeleteColor = "var(--ds-blanket-danger, #EF5C4814)";
28
+ export const tableBorderDeleteColor = "var(--ds-border-danger, #E2483D)";
29
+ export const tableToolbarDeleteColor = "var(--ds-background-danger-pressed, #FFB8B2)";
30
+ export const tableCellHoverDeleteIconColor = "var(--ds-icon-inverse, #FFFFFF)";
31
+ export const tableCellHoverDeleteIconBackground = "var(--ds-background-danger-bold, #C9372C)";
33
32
  export const tableBorderRadiusSize = 3;
34
33
  export const tablePadding = 8;
35
34
  export const tableScrollbarOffset = 15;
@@ -16,7 +16,7 @@ export const DragInMotionIcon = ({
16
16
  width: "26",
17
17
  height: "18",
18
18
  rx: "5",
19
- fill: "var(--ds-background-accent-blue-subtle, #579DFF)"
19
+ fill: "var(--ds-background-accent-blue-subtle, #669DF1)"
20
20
  }), /*#__PURE__*/React.createElement("rect", {
21
21
  x: "9",
22
22
  y: "6",
@@ -548,12 +548,16 @@ export const getToolbarConfig = (getEditorContainerWidth, api, editorAnalyticsAP
548
548
  }
549
549
  return jsx(DropdownMenuExtensionItems, {
550
550
  node: tableObject.node,
551
- editorView: editorView,
551
+ editorView: editorView
552
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
553
+ ,
552
554
  extension: {
553
555
  extensionProvider: extensionState !== null && extensionState !== void 0 && extensionState.extensionProvider ? Promise.resolve(extensionState.extensionProvider) : undefined,
554
556
  extensionApi: extensionApi
555
557
  },
556
- dropdownOptions: dropdownOptions,
558
+ dropdownOptions: dropdownOptions
559
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
560
+ ,
557
561
  disabled: key => {
558
562
  return isNestedTable && ['referentiality:connections', 'chart:insert-chart'].includes(key);
559
563
  },