@atlaskit/editor-plugin-table 9.5.10 → 10.0.0
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 +18 -0
- package/dist/cjs/ui/toolbar.js +8 -8
- package/dist/es2019/ui/toolbar.js +4 -4
- package/dist/esm/ui/toolbar.js +4 -4
- package/package.json +22 -22
- package/src/ui/toolbar.tsx +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 10.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#117363](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117363)
|
|
8
|
+
[`10a0f7f6c2027`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10a0f7f6c2027) -
|
|
9
|
+
This package's `peerDependencies` have been adjusted for `react` and/or `react-dom` to reflect the
|
|
10
|
+
status of only supporting React 18 going forward. No explicit breaking change to React support has
|
|
11
|
+
been made in this release, but this is to signify going forward, breaking changes for React 16 or
|
|
12
|
+
React 17 may come via non-major semver releases.
|
|
13
|
+
|
|
14
|
+
Please refer this community post for more details:
|
|
15
|
+
https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 9.5.10
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/cjs/ui/toolbar.js
CHANGED
|
@@ -22,13 +22,13 @@ var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
|
22
22
|
var _shortcut = require("@atlaskit/editor-shared-styles/shortcut");
|
|
23
23
|
var _tableMap = require("@atlaskit/editor-tables/table-map");
|
|
24
24
|
var _utils3 = require("@atlaskit/editor-tables/utils");
|
|
25
|
-
var
|
|
26
|
-
var
|
|
25
|
+
var _alignImageCenter = _interopRequireDefault(require("@atlaskit/icon/core/align-image-center"));
|
|
26
|
+
var _alignImageLeft = _interopRequireDefault(require("@atlaskit/icon/core/align-image-left"));
|
|
27
27
|
var _customize = _interopRequireDefault(require("@atlaskit/icon/core/customize"));
|
|
28
28
|
var _delete = _interopRequireDefault(require("@atlaskit/icon/core/delete"));
|
|
29
29
|
var _tableColumnsDistribute = _interopRequireDefault(require("@atlaskit/icon/core/table-columns-distribute"));
|
|
30
|
-
var
|
|
31
|
-
var
|
|
30
|
+
var _alignImageCenter2 = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/align-image-center"));
|
|
31
|
+
var _alignImageLeft2 = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/align-image-left"));
|
|
32
32
|
var _layoutThreeEqual = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/layout-three-equal"));
|
|
33
33
|
var _remove = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove"));
|
|
34
34
|
var _preferences = _interopRequireDefault(require("@atlaskit/icon/glyph/preferences"));
|
|
@@ -625,22 +625,22 @@ var getAlignmentOptionsConfig = function getAlignmentOptionsConfig(editorState,
|
|
|
625
625
|
id: 'editor.table.alignLeft',
|
|
626
626
|
value: 'align-start',
|
|
627
627
|
icon: function icon() {
|
|
628
|
-
return (0, _react.jsx)(
|
|
628
|
+
return (0, _react.jsx)(_alignImageLeft.default, {
|
|
629
629
|
color: "currentColor",
|
|
630
630
|
spacing: "spacious",
|
|
631
631
|
label: "table-align-start-icon",
|
|
632
|
-
LEGACY_fallbackIcon:
|
|
632
|
+
LEGACY_fallbackIcon: _alignImageLeft2.default
|
|
633
633
|
});
|
|
634
634
|
}
|
|
635
635
|
}, {
|
|
636
636
|
id: 'editor.table.alignCenter',
|
|
637
637
|
value: 'center',
|
|
638
638
|
icon: function icon() {
|
|
639
|
-
return (0, _react.jsx)(
|
|
639
|
+
return (0, _react.jsx)(_alignImageCenter.default, {
|
|
640
640
|
color: "currentColor",
|
|
641
641
|
spacing: "spacious",
|
|
642
642
|
label: "table-align-center-icon",
|
|
643
|
-
LEGACY_fallbackIcon:
|
|
643
|
+
LEGACY_fallbackIcon: _alignImageCenter2.default
|
|
644
644
|
});
|
|
645
645
|
}
|
|
646
646
|
}];
|
|
@@ -17,8 +17,8 @@ import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
|
17
17
|
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
18
18
|
import { Rect, TableMap } from '@atlaskit/editor-tables/table-map';
|
|
19
19
|
import { findCellRectClosestToPos, findTable, getSelectionRect, isSelectionType, splitCell } from '@atlaskit/editor-tables/utils';
|
|
20
|
-
import
|
|
21
|
-
import
|
|
20
|
+
import AlignImageCenterIcon from '@atlaskit/icon/core/align-image-center';
|
|
21
|
+
import AlignImageLeftIcon from '@atlaskit/icon/core/align-image-left';
|
|
22
22
|
import CustomizeIcon from '@atlaskit/icon/core/customize';
|
|
23
23
|
import DeleteIcon from '@atlaskit/icon/core/delete';
|
|
24
24
|
import TableColumnsDistributeIcon from '@atlaskit/icon/core/table-columns-distribute';
|
|
@@ -579,7 +579,7 @@ const getAlignmentOptionsConfig = (editorState, {
|
|
|
579
579
|
const alignmentIcons = [{
|
|
580
580
|
id: 'editor.table.alignLeft',
|
|
581
581
|
value: 'align-start',
|
|
582
|
-
icon: () => jsx(
|
|
582
|
+
icon: () => jsx(AlignImageLeftIcon, {
|
|
583
583
|
color: "currentColor",
|
|
584
584
|
spacing: "spacious",
|
|
585
585
|
label: "table-align-start-icon",
|
|
@@ -588,7 +588,7 @@ const getAlignmentOptionsConfig = (editorState, {
|
|
|
588
588
|
}, {
|
|
589
589
|
id: 'editor.table.alignCenter',
|
|
590
590
|
value: 'center',
|
|
591
|
-
icon: () => jsx(
|
|
591
|
+
icon: () => jsx(AlignImageCenterIcon, {
|
|
592
592
|
color: "currentColor",
|
|
593
593
|
spacing: "spacious",
|
|
594
594
|
label: "table-align-center-icon",
|
package/dist/esm/ui/toolbar.js
CHANGED
|
@@ -21,8 +21,8 @@ import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
|
21
21
|
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
22
22
|
import { Rect, TableMap } from '@atlaskit/editor-tables/table-map';
|
|
23
23
|
import { findCellRectClosestToPos, findTable, getSelectionRect, isSelectionType, splitCell } from '@atlaskit/editor-tables/utils';
|
|
24
|
-
import
|
|
25
|
-
import
|
|
24
|
+
import AlignImageCenterIcon from '@atlaskit/icon/core/align-image-center';
|
|
25
|
+
import AlignImageLeftIcon from '@atlaskit/icon/core/align-image-left';
|
|
26
26
|
import CustomizeIcon from '@atlaskit/icon/core/customize';
|
|
27
27
|
import DeleteIcon from '@atlaskit/icon/core/delete';
|
|
28
28
|
import TableColumnsDistributeIcon from '@atlaskit/icon/core/table-columns-distribute';
|
|
@@ -617,7 +617,7 @@ var getAlignmentOptionsConfig = function getAlignmentOptionsConfig(editorState,
|
|
|
617
617
|
id: 'editor.table.alignLeft',
|
|
618
618
|
value: 'align-start',
|
|
619
619
|
icon: function icon() {
|
|
620
|
-
return jsx(
|
|
620
|
+
return jsx(AlignImageLeftIcon, {
|
|
621
621
|
color: "currentColor",
|
|
622
622
|
spacing: "spacious",
|
|
623
623
|
label: "table-align-start-icon",
|
|
@@ -628,7 +628,7 @@ var getAlignmentOptionsConfig = function getAlignmentOptionsConfig(editorState,
|
|
|
628
628
|
id: 'editor.table.alignCenter',
|
|
629
629
|
value: 'center',
|
|
630
630
|
icon: function icon() {
|
|
631
|
-
return jsx(
|
|
631
|
+
return jsx(AlignImageCenterIcon, {
|
|
632
632
|
color: "currentColor",
|
|
633
633
|
spacing: "spacious",
|
|
634
634
|
label: "table-align-center-icon",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -28,33 +28,33 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@atlaskit/adf-schema": "^47.2.1",
|
|
31
|
-
"@atlaskit/button": "^
|
|
31
|
+
"@atlaskit/button": "^21.0.0",
|
|
32
32
|
"@atlaskit/custom-steps": "^0.10.0",
|
|
33
|
-
"@atlaskit/editor-common": "^
|
|
34
|
-
"@atlaskit/editor-palette": "
|
|
35
|
-
"@atlaskit/editor-plugin-accessibility-utils": "^
|
|
36
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
37
|
-
"@atlaskit/editor-plugin-batch-attribute-updates": "
|
|
38
|
-
"@atlaskit/editor-plugin-content-insertion": "^
|
|
39
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
40
|
-
"@atlaskit/editor-plugin-guideline": "^
|
|
41
|
-
"@atlaskit/editor-plugin-selection": "^
|
|
42
|
-
"@atlaskit/editor-plugin-width": "^
|
|
33
|
+
"@atlaskit/editor-common": "^100.0.0",
|
|
34
|
+
"@atlaskit/editor-palette": "2.0.0",
|
|
35
|
+
"@atlaskit/editor-plugin-accessibility-utils": "^2.0.0",
|
|
36
|
+
"@atlaskit/editor-plugin-analytics": "^2.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-batch-attribute-updates": "2.0.0",
|
|
38
|
+
"@atlaskit/editor-plugin-content-insertion": "^2.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^3.0.0",
|
|
40
|
+
"@atlaskit/editor-plugin-guideline": "^2.0.0",
|
|
41
|
+
"@atlaskit/editor-plugin-selection": "^2.0.0",
|
|
42
|
+
"@atlaskit/editor-plugin-width": "^3.0.0",
|
|
43
43
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
44
44
|
"@atlaskit/editor-shared-styles": "^3.3.0",
|
|
45
45
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
46
|
-
"@atlaskit/icon": "^
|
|
47
|
-
"@atlaskit/menu": "^
|
|
46
|
+
"@atlaskit/icon": "^24.0.0",
|
|
47
|
+
"@atlaskit/menu": "^3.0.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
49
49
|
"@atlaskit/pragmatic-drag-and-drop": "^1.5.0",
|
|
50
50
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.0",
|
|
51
51
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.0",
|
|
52
|
-
"@atlaskit/primitives": "^
|
|
53
|
-
"@atlaskit/theme": "^
|
|
54
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
55
|
-
"@atlaskit/toggle": "^
|
|
56
|
-
"@atlaskit/tokens": "^
|
|
57
|
-
"@atlaskit/tooltip": "^
|
|
52
|
+
"@atlaskit/primitives": "^14.0.0",
|
|
53
|
+
"@atlaskit/theme": "^17.0.0",
|
|
54
|
+
"@atlaskit/tmp-editor-statsig": "^3.0.0",
|
|
55
|
+
"@atlaskit/toggle": "^15.0.0",
|
|
56
|
+
"@atlaskit/tokens": "^4.0.0",
|
|
57
|
+
"@atlaskit/tooltip": "^20.0.0",
|
|
58
58
|
"@babel/runtime": "^7.0.0",
|
|
59
59
|
"@emotion/react": "^11.7.1",
|
|
60
60
|
"classnames": "^2.2.5",
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"uuid": "^3.1.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
|
-
"react": "^
|
|
68
|
-
"react-dom": "^
|
|
67
|
+
"react": "^18.2.0",
|
|
68
|
+
"react-dom": "^18.2.0",
|
|
69
69
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
package/src/ui/toolbar.tsx
CHANGED
|
@@ -46,8 +46,8 @@ import {
|
|
|
46
46
|
isSelectionType,
|
|
47
47
|
splitCell,
|
|
48
48
|
} from '@atlaskit/editor-tables/utils';
|
|
49
|
-
import
|
|
50
|
-
import
|
|
49
|
+
import AlignImageCenterIcon from '@atlaskit/icon/core/align-image-center';
|
|
50
|
+
import AlignImageLeftIcon from '@atlaskit/icon/core/align-image-left';
|
|
51
51
|
import CustomizeIcon from '@atlaskit/icon/core/customize';
|
|
52
52
|
import DeleteIcon from '@atlaskit/icon/core/delete';
|
|
53
53
|
import TableColumnsDistributeIcon from '@atlaskit/icon/core/table-columns-distribute';
|
|
@@ -901,7 +901,7 @@ const getAlignmentOptionsConfig = (
|
|
|
901
901
|
id: 'editor.table.alignLeft',
|
|
902
902
|
value: 'align-start',
|
|
903
903
|
icon: () => (
|
|
904
|
-
<
|
|
904
|
+
<AlignImageLeftIcon
|
|
905
905
|
color="currentColor"
|
|
906
906
|
spacing="spacious"
|
|
907
907
|
label="table-align-start-icon"
|
|
@@ -913,7 +913,7 @@ const getAlignmentOptionsConfig = (
|
|
|
913
913
|
id: 'editor.table.alignCenter',
|
|
914
914
|
value: 'center',
|
|
915
915
|
icon: () => (
|
|
916
|
-
<
|
|
916
|
+
<AlignImageCenterIcon
|
|
917
917
|
color="currentColor"
|
|
918
918
|
spacing="spacious"
|
|
919
919
|
label="table-align-center-icon"
|