@atlaskit/editor-plugin-table 15.3.18 → 15.3.20

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 (29) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/nodeviews/TableRowNativeStickyWithFallback.js +8 -5
  3. package/dist/cjs/nodeviews/table-node-views.js +2 -1
  4. package/dist/cjs/pm-plugins/utils/anchor.js +14 -0
  5. package/dist/cjs/types/index.js +2 -1
  6. package/dist/cjs/ui/TableFloatingColumnControls/index.js +14 -0
  7. package/dist/cjs/ui/TableFloatingControls/index.js +74 -63
  8. package/dist/cjs/ui/common-styles.js +1 -1
  9. package/dist/es2019/nodeviews/TableRowNativeStickyWithFallback.js +8 -5
  10. package/dist/es2019/nodeviews/table-node-views.js +2 -1
  11. package/dist/es2019/pm-plugins/utils/anchor.js +7 -0
  12. package/dist/es2019/types/index.js +2 -1
  13. package/dist/es2019/ui/TableFloatingColumnControls/index.js +14 -0
  14. package/dist/es2019/ui/TableFloatingControls/index.js +71 -59
  15. package/dist/es2019/ui/common-styles.js +24 -1
  16. package/dist/esm/nodeviews/TableRowNativeStickyWithFallback.js +8 -5
  17. package/dist/esm/nodeviews/table-node-views.js +2 -1
  18. package/dist/esm/pm-plugins/utils/anchor.js +7 -0
  19. package/dist/esm/types/index.js +2 -1
  20. package/dist/esm/ui/TableFloatingColumnControls/index.js +14 -0
  21. package/dist/esm/ui/TableFloatingControls/index.js +73 -61
  22. package/dist/esm/ui/common-styles.js +1 -1
  23. package/dist/types/pm-plugins/utils/anchor.d.ts +1 -0
  24. package/dist/types/types/index.d.ts +1 -0
  25. package/dist/types/ui/TableFloatingControls/index.d.ts +3 -2
  26. package/dist/types-ts4.5/pm-plugins/utils/anchor.d.ts +1 -0
  27. package/dist/types-ts4.5/types/index.d.ts +1 -0
  28. package/dist/types-ts4.5/ui/TableFloatingControls/index.d.ts +3 -2
  29. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { jsx } from '@emotion/react';
2
2
  import type { TableColumnOrdering } from '@atlaskit/custom-steps';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
@@ -22,6 +22,7 @@ interface TableFloatingControlsProps {
22
22
  isNumberColumnEnabled?: boolean;
23
23
  isResizing?: boolean;
24
24
  isTableHovered?: boolean;
25
+ isTableWrapperOverflowStyled?: boolean;
25
26
  ordering?: TableColumnOrdering;
26
27
  selection?: Selection;
27
28
  stickyHeader?: RowStickyState;
@@ -32,5 +33,5 @@ interface TableFloatingControlsProps {
32
33
  }
33
34
  export declare const TableFloatingControls: ({ editorView, tableRef, tableNode, isInDanger, isResizing, isNumberColumnEnabled, isHeaderRowEnabled, isHeaderColumnEnabled, tableActive, hasHeaderRow, hoveredRows, stickyHeader, isDragAndDropEnabled, hoveredCell, isTableHovered, tableWrapperWidth, api, isChromelessEditor, }: TableFloatingControlsProps & {
34
35
  api?: ExtractInjectionAPI<TablePlugin>;
35
- }) => React.JSX.Element | null;
36
+ }) => jsx.JSX.Element | null;
36
37
  export default TableFloatingControls;
@@ -0,0 +1 @@
1
+ export declare const isAnchorSupported: import("memoize-one").MemoizedFn<() => boolean>;
@@ -413,6 +413,7 @@ export declare const TableCssClassName: {
413
413
  WITH_LAST_ROW_INSERT_LINE: string;
414
414
  WITH_LAST_ROW_INSERT_LINE_INACTIVE: string;
415
415
  NATIVE_STICKY: string;
416
+ NO_OVERFLOW: string;
416
417
  TABLE_CONTAINER: "pm-table-container";
417
418
  TABLE_NODE_WRAPPER: "pm-table-wrapper";
418
419
  TABLE_NODE_WRAPPER_NO_OVERFLOW: "pm-table-wrapper-no-overflow";
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { jsx } from '@emotion/react';
2
2
  import type { TableColumnOrdering } from '@atlaskit/custom-steps';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
@@ -22,6 +22,7 @@ interface TableFloatingControlsProps {
22
22
  isNumberColumnEnabled?: boolean;
23
23
  isResizing?: boolean;
24
24
  isTableHovered?: boolean;
25
+ isTableWrapperOverflowStyled?: boolean;
25
26
  ordering?: TableColumnOrdering;
26
27
  selection?: Selection;
27
28
  stickyHeader?: RowStickyState;
@@ -32,5 +33,5 @@ interface TableFloatingControlsProps {
32
33
  }
33
34
  export declare const TableFloatingControls: ({ editorView, tableRef, tableNode, isInDanger, isResizing, isNumberColumnEnabled, isHeaderRowEnabled, isHeaderColumnEnabled, tableActive, hasHeaderRow, hoveredRows, stickyHeader, isDragAndDropEnabled, hoveredCell, isTableHovered, tableWrapperWidth, api, isChromelessEditor, }: TableFloatingControlsProps & {
34
35
  api?: ExtractInjectionAPI<TablePlugin>;
35
- }) => React.JSX.Element | null;
36
+ }) => jsx.JSX.Element | null;
36
37
  export default TableFloatingControls;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "15.3.18",
3
+ "version": "15.3.20",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -59,7 +59,7 @@
59
59
  "@atlaskit/primitives": "^16.1.0",
60
60
  "@atlaskit/react-ufo": "^4.14.0",
61
61
  "@atlaskit/theme": "^21.0.0",
62
- "@atlaskit/tmp-editor-statsig": "^13.35.0",
62
+ "@atlaskit/tmp-editor-statsig": "^13.37.0",
63
63
  "@atlaskit/toggle": "^15.1.0",
64
64
  "@atlaskit/tokens": "^8.0.0",
65
65
  "@atlaskit/tooltip": "^20.8.0",
@@ -72,7 +72,7 @@
72
72
  "uuid": "^3.1.0"
73
73
  },
74
74
  "peerDependencies": {
75
- "@atlaskit/editor-common": "^110.27.0",
75
+ "@atlaskit/editor-common": "^110.29.0",
76
76
  "react": "^18.2.0",
77
77
  "react-dom": "^18.2.0",
78
78
  "react-intl-next": "npm:react-intl@^5.18.1"