@atlaskit/editor-plugin-table 22.2.5 → 22.2.8

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 (33) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/cjs/nodeviews/TableContainer.js +16 -7
  3. package/dist/cjs/nodeviews/TableResizer.js +30 -16
  4. package/dist/cjs/pm-plugins/table-resizing/utils/colgroup.js +6 -6
  5. package/dist/cjs/pm-plugins/table-resizing/utils/consts.js +3 -2
  6. package/dist/cjs/pm-plugins/table-resizing/utils/scale-table.js +4 -4
  7. package/dist/es2019/nodeviews/TableContainer.js +17 -8
  8. package/dist/es2019/nodeviews/TableResizer.js +31 -17
  9. package/dist/es2019/pm-plugins/table-resizing/utils/colgroup.js +6 -6
  10. package/dist/es2019/pm-plugins/table-resizing/utils/consts.js +2 -1
  11. package/dist/es2019/pm-plugins/table-resizing/utils/scale-table.js +4 -4
  12. package/dist/esm/nodeviews/TableContainer.js +17 -8
  13. package/dist/esm/nodeviews/TableResizer.js +31 -17
  14. package/dist/esm/pm-plugins/table-resizing/utils/colgroup.js +6 -6
  15. package/dist/esm/pm-plugins/table-resizing/utils/consts.js +2 -1
  16. package/dist/esm/pm-plugins/table-resizing/utils/scale-table.js +4 -4
  17. package/dist/types/nodeviews/TableResizer.d.ts +2 -1
  18. package/dist/types/pm-plugins/drag-and-drop/utils/autoscrollers.d.ts +1 -1
  19. package/dist/types/pm-plugins/table-resizing/utils/colgroup.d.ts +2 -2
  20. package/dist/types/pm-plugins/table-resizing/utils/consts.d.ts +1 -0
  21. package/dist/types/pm-plugins/table-resizing/utils/scale-table.d.ts +2 -2
  22. package/dist/types/types/index.d.ts +26 -26
  23. package/dist/types/ui/ColumnResizeWidget/index.d.ts +1 -1
  24. package/dist/types/ui/consts.d.ts +17 -17
  25. package/dist/types-ts4.5/nodeviews/TableResizer.d.ts +2 -1
  26. package/dist/types-ts4.5/pm-plugins/drag-and-drop/utils/autoscrollers.d.ts +1 -1
  27. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/colgroup.d.ts +2 -2
  28. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/consts.d.ts +1 -0
  29. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/scale-table.d.ts +2 -2
  30. package/dist/types-ts4.5/types/index.d.ts +26 -26
  31. package/dist/types-ts4.5/ui/ColumnResizeWidget/index.d.ts +1 -1
  32. package/dist/types-ts4.5/ui/consts.d.ts +17 -17
  33. package/package.json +4 -4
@@ -404,8 +404,8 @@ export declare const TableCssClassName: {
404
404
  SELECTED_CELL: string;
405
405
  NODEVIEW_WRAPPER: string;
406
406
  TABLE_SELECTED: string;
407
- TABLE_CELL: "pm-table-cell-content-wrap";
408
- TABLE_HEADER_CELL: "pm-table-header-content-wrap";
407
+ TABLE_CELL: 'pm-table-cell-content-wrap';
408
+ TABLE_HEADER_CELL: 'pm-table-header-content-wrap';
409
409
  TABLE_STICKY: string;
410
410
  TABLE_CHROMELESS: string;
411
411
  TOP_LEFT_CELL: string;
@@ -427,30 +427,30 @@ export declare const TableCssClassName: {
427
427
  NATIVE_STICKY: string;
428
428
  NATIVE_STICKY_ACTIVE: string;
429
429
  NO_OVERFLOW: string;
430
- TABLE_CELL_NODEVIEW_CONTENT_DOM: "pm-table-cell-nodeview-content-dom";
431
- TABLE_CELL_WRAPPER: "pm-table-cell-content-wrap";
432
- TABLE_COLUMN_CONTROLS_DECORATIONS: "pm-table-column-controls-decoration";
433
- TABLE_CONTAINER: "pm-table-container";
434
- TABLE_HEADER_CELL_WRAPPER: "pm-table-header-content-wrap";
435
- TABLE_LEFT_BORDER: "pm-table-left-border";
436
- TABLE_LEFT_SHADOW: "pm-table-with-left-shadow";
437
- TABLE_NODE_WRAPPER: "pm-table-wrapper";
438
- TABLE_NODE_WRAPPER_NO_OVERFLOW: "pm-table-wrapper-no-overflow";
439
- TABLE_RESIZER_CONTAINER: "pm-table-resizer-container";
440
- TABLE_RIGHT_BORDER: "pm-table-right-border";
441
- TABLE_RIGHT_SHADOW: "pm-table-with-right-shadow";
442
- TABLE_ROW_CONTROLS_WRAPPER: "pm-table-row-controls-wrapper";
443
- TABLE_SCROLL_INLINE_SHADOW: "pm-table-scroll-inline-shadow";
444
- TABLE_SHADOW_SENTINEL_LEFT: "pm-table-shadow-sentinel-left";
445
- TABLE_SHADOW_SENTINEL_RIGHT: "pm-table-shadow-sentinel-right";
446
- TABLE_STICKY_SCROLLBAR_CONTAINER: "pm-table-sticky-scrollbar-container";
447
- TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM: "pm-table-sticky-scrollbar-sentinel-bottom";
448
- TABLE_STICKY_SCROLLBAR_SENTINEL_TOP: "pm-table-sticky-scrollbar-sentinel-top";
449
- TABLE_STICKY_SENTINEL_BOTTOM: "pm-table-sticky-sentinel-bottom";
450
- TABLE_STICKY_SENTINEL_TOP: "pm-table-sticky-sentinel-top";
451
- TABLE_STICKY_SHADOW: "pm-table-sticky-shadow";
452
- TABLE_STICKY_WRAPPER: "pm-table-sticky-wrapper";
453
- TABLE_VIEW_CONTENT_WRAP: "tableView-content-wrap";
430
+ TABLE_CELL_NODEVIEW_CONTENT_DOM: 'pm-table-cell-nodeview-content-dom';
431
+ TABLE_CELL_WRAPPER: 'pm-table-cell-content-wrap';
432
+ TABLE_COLUMN_CONTROLS_DECORATIONS: 'pm-table-column-controls-decoration';
433
+ TABLE_CONTAINER: 'pm-table-container';
434
+ TABLE_HEADER_CELL_WRAPPER: 'pm-table-header-content-wrap';
435
+ TABLE_LEFT_BORDER: 'pm-table-left-border';
436
+ TABLE_LEFT_SHADOW: 'pm-table-with-left-shadow';
437
+ TABLE_NODE_WRAPPER: 'pm-table-wrapper';
438
+ TABLE_NODE_WRAPPER_NO_OVERFLOW: 'pm-table-wrapper-no-overflow';
439
+ TABLE_RESIZER_CONTAINER: 'pm-table-resizer-container';
440
+ TABLE_RIGHT_BORDER: 'pm-table-right-border';
441
+ TABLE_RIGHT_SHADOW: 'pm-table-with-right-shadow';
442
+ TABLE_ROW_CONTROLS_WRAPPER: 'pm-table-row-controls-wrapper';
443
+ TABLE_SCROLL_INLINE_SHADOW: 'pm-table-scroll-inline-shadow';
444
+ TABLE_SHADOW_SENTINEL_LEFT: 'pm-table-shadow-sentinel-left';
445
+ TABLE_SHADOW_SENTINEL_RIGHT: 'pm-table-shadow-sentinel-right';
446
+ TABLE_STICKY_SCROLLBAR_CONTAINER: 'pm-table-sticky-scrollbar-container';
447
+ TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM: 'pm-table-sticky-scrollbar-sentinel-bottom';
448
+ TABLE_STICKY_SCROLLBAR_SENTINEL_TOP: 'pm-table-sticky-scrollbar-sentinel-top';
449
+ TABLE_STICKY_SENTINEL_BOTTOM: 'pm-table-sticky-sentinel-bottom';
450
+ TABLE_STICKY_SENTINEL_TOP: 'pm-table-sticky-sentinel-top';
451
+ TABLE_STICKY_SHADOW: 'pm-table-sticky-shadow';
452
+ TABLE_STICKY_WRAPPER: 'pm-table-sticky-wrapper';
453
+ TABLE_VIEW_CONTENT_WRAP: 'tableView-content-wrap';
454
454
  };
455
455
  export interface ToolbarMenuConfig {
456
456
  allowCollapse?: boolean;
@@ -8,5 +8,5 @@ type Props = {
8
8
  includeTooltip?: boolean;
9
9
  startIndex: number;
10
10
  };
11
- export declare const ColumnResizeWidget: ({ startIndex, endIndex, includeTooltip }: Props) => jsx.JSX.Element;
11
+ export declare const ColumnResizeWidget: ({ startIndex, endIndex, includeTooltip, }: Props) => jsx.JSX.Element;
12
12
  export {};
@@ -1,23 +1,23 @@
1
1
  /**
2
2
  * Basic colors added to prevent content overflow in table cells.
3
3
  */
4
- export declare const tableCellBackgroundColor: "var(--ds-surface)";
5
- export declare const tableHeaderCellBackgroundColor: "var(--ds-background-accent-gray-subtlest)";
6
- export declare const tableToolbarColor: "var(--ds-background-neutral-subtle)";
7
- export declare const tableTextColor: "var(--ds-text-subtlest)";
8
- export declare const tableBorderColor: "var(--ds-background-accent-gray-subtler)";
9
- export declare const tableFloatingControlsColor: "var(--ds-background-neutral)";
10
- export declare const tableCellSelectedColor: "var(--ds-blanket-selected)";
11
- export declare const tableHeaderCellSelectedColor: "var(--ds-background-selected-pressed)";
12
- export declare const tableToolbarSelectedColor: "var(--ds-background-selected-pressed)";
13
- export declare const tableBorderSelectedColor: "var(--ds-border-focused)";
14
- export declare const tableCellSelectedDeleteIconColor: "var(--ds-icon-subtle)";
15
- export declare const tableCellSelectedDeleteIconBackground: "var(--ds-background-accent-gray-subtlest)";
16
- export declare const tableCellDeleteColor: "var(--ds-blanket-danger)";
17
- export declare const tableBorderDeleteColor: "var(--ds-border-danger)";
18
- export declare const tableToolbarDeleteColor: "var(--ds-background-danger-pressed)";
19
- export declare const tableCellHoverDeleteIconColor: "var(--ds-icon-inverse)";
20
- export declare const tableCellHoverDeleteIconBackground: "var(--ds-background-danger-bold)";
4
+ export declare const tableCellBackgroundColor: 'var(--ds-surface)';
5
+ export declare const tableHeaderCellBackgroundColor: 'var(--ds-background-accent-gray-subtlest)';
6
+ export declare const tableToolbarColor: 'var(--ds-background-neutral-subtle)';
7
+ export declare const tableTextColor: 'var(--ds-text-subtlest)';
8
+ export declare const tableBorderColor: 'var(--ds-background-accent-gray-subtler)';
9
+ export declare const tableFloatingControlsColor: 'var(--ds-background-neutral)';
10
+ export declare const tableCellSelectedColor: 'var(--ds-blanket-selected)';
11
+ export declare const tableHeaderCellSelectedColor: 'var(--ds-background-selected-pressed)';
12
+ export declare const tableToolbarSelectedColor: 'var(--ds-background-selected-pressed)';
13
+ export declare const tableBorderSelectedColor: 'var(--ds-border-focused)';
14
+ export declare const tableCellSelectedDeleteIconColor: 'var(--ds-icon-subtle)';
15
+ export declare const tableCellSelectedDeleteIconBackground: 'var(--ds-background-accent-gray-subtlest)';
16
+ export declare const tableCellDeleteColor: 'var(--ds-blanket-danger)';
17
+ export declare const tableBorderDeleteColor: 'var(--ds-border-danger)';
18
+ export declare const tableToolbarDeleteColor: 'var(--ds-background-danger-pressed)';
19
+ export declare const tableCellHoverDeleteIconColor: 'var(--ds-icon-inverse)';
20
+ export declare const tableCellHoverDeleteIconBackground: 'var(--ds-background-danger-bold)';
21
21
  export declare const tableBorderRadiusSize = 3;
22
22
  export declare const tablePadding = 8;
23
23
  export declare const tableScrollbarOffset = 15;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "22.2.5",
3
+ "version": "22.2.8",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -37,7 +37,7 @@
37
37
  "@atlaskit/editor-plugin-batch-attribute-updates": "^10.0.0",
38
38
  "@atlaskit/editor-plugin-content-insertion": "^10.0.0",
39
39
  "@atlaskit/editor-plugin-editor-viewmode": "^12.0.0",
40
- "@atlaskit/editor-plugin-extension": "13.1.3",
40
+ "@atlaskit/editor-plugin-extension": "13.1.4",
41
41
  "@atlaskit/editor-plugin-guideline": "^10.0.0",
42
42
  "@atlaskit/editor-plugin-interaction": "^19.0.0",
43
43
  "@atlaskit/editor-plugin-limited-mode": "^7.1.0",
@@ -56,7 +56,7 @@
56
56
  "@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.0",
57
57
  "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
58
58
  "@atlaskit/primitives": "^19.0.0",
59
- "@atlaskit/tmp-editor-statsig": "^69.0.0",
59
+ "@atlaskit/tmp-editor-statsig": "^70.5.0",
60
60
  "@atlaskit/toggle": "^15.6.0",
61
61
  "@atlaskit/tokens": "^13.0.0",
62
62
  "@atlaskit/tooltip": "^21.2.0",
@@ -70,7 +70,7 @@
70
70
  "uuid": "^3.1.0"
71
71
  },
72
72
  "peerDependencies": {
73
- "@atlaskit/editor-common": "^114.10.0",
73
+ "@atlaskit/editor-common": "^114.12.0",
74
74
  "react": "^18.2.0",
75
75
  "react-dom": "^18.2.0",
76
76
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"