@atlaskit/editor-plugin-table 17.4.5 → 17.6.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 +24 -0
- package/dist/cjs/ui/FloatingDragMenu/DragMenu.js +2 -2
- package/dist/cjs/ui/common-styles.js +1 -1
- package/dist/cjs/ui/toolbar.js +1 -2
- package/dist/es2019/ui/FloatingDragMenu/DragMenu.js +2 -2
- package/dist/es2019/ui/common-styles.js +1 -1
- package/dist/es2019/ui/toolbar.js +1 -2
- package/dist/esm/ui/FloatingDragMenu/DragMenu.js +2 -2
- package/dist/esm/ui/common-styles.js +1 -1
- package/dist/esm/ui/toolbar.js +1 -2
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 17.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`17119fb95e0a4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/17119fb95e0a4) -
|
|
8
|
+
[EDITOR-3747](https://hello.jira.atlassian.cloud/browse/EDITOR-3747) - clean up
|
|
9
|
+
platform_editor_ssr_renderer experiment
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 17.5.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- [`4225fbfc03770`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4225fbfc03770) -
|
|
20
|
+
[EDITOR-5765](https://hello.jira.atlassian.cloud/browse/EDITOR-5765) - clean up
|
|
21
|
+
platform_editor_rename_numbered_rows_label feature flag
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies
|
|
26
|
+
|
|
3
27
|
## 17.4.5
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
|
@@ -424,7 +424,7 @@ var DragMenu = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
424
424
|
var createRowNumbersMenuItem = function createRowNumbersMenuItem() {
|
|
425
425
|
return {
|
|
426
426
|
key: 'row_numbers',
|
|
427
|
-
content: formatMessage(
|
|
427
|
+
content: formatMessage(_messages.tableMessages.numberedRows),
|
|
428
428
|
value: {
|
|
429
429
|
name: 'row_numbers'
|
|
430
430
|
},
|
|
@@ -434,7 +434,7 @@ var DragMenu = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
434
434
|
css: _styles2.toggleStyles
|
|
435
435
|
}, (0, _react2.jsx)(_toggle.default, {
|
|
436
436
|
id: "toggle-row-numbers",
|
|
437
|
-
label: formatMessage(
|
|
437
|
+
label: formatMessage(_messages.tableMessages.numberedRows),
|
|
438
438
|
onChange: toggleRowNumbers,
|
|
439
439
|
isChecked: (0, _nodes.checkIfNumberColumnEnabled)(selection)
|
|
440
440
|
}))
|
|
@@ -83,7 +83,7 @@ var baseTableStyles = exports.baseTableStyles = function baseTableStyles(props)
|
|
|
83
83
|
|
|
84
84
|
// TODO: DSP-4139 - Remove this when we have a better solution for the table toolbar
|
|
85
85
|
var tableStyles = exports.tableStyles = function tableStyles(props) {
|
|
86
|
-
return (0, _react.css)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n\t.ProseMirror {\n\t\t", ";\n\t}\n\n\t.ProseMirror.", " {\n\t\t.", " {\n\t\t\toverflow-x: auto;\n\t\t\t", ";\n\t\t}\n\t}\n\n\t.ProseMirror.", " {\n\t\tcursor: col-resize;\n\t}\n\n\t", "\n"])),
|
|
86
|
+
return (0, _react.css)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n\t.ProseMirror {\n\t\t", ";\n\t}\n\n\t.ProseMirror.", " {\n\t\t.", " {\n\t\t\toverflow-x: auto;\n\t\t\t", ";\n\t\t}\n\t}\n\n\t.ProseMirror.", " {\n\t\tcursor: col-resize;\n\t}\n\n\t", "\n"])), baseTableStylesWithoutSharedStyle(props), _types.TableCssClassName.IS_RESIZING, _types.TableCssClassName.TABLE_NODE_WRAPPER, _scrollbar.scrollbarStyles, _types.TableCssClassName.RESIZE_CURSOR, shadowSentinelStyles);
|
|
87
87
|
};
|
|
88
88
|
|
|
89
89
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
package/dist/cjs/ui/toolbar.js
CHANGED
|
@@ -34,7 +34,6 @@ var _copy = _interopRequireDefault(require("@atlaskit/icon/core/copy"));
|
|
|
34
34
|
var _customize = _interopRequireDefault(require("@atlaskit/icon/core/customize"));
|
|
35
35
|
var _delete = _interopRequireDefault(require("@atlaskit/icon/core/delete"));
|
|
36
36
|
var _tableColumnsDistribute = _interopRequireDefault(require("@atlaskit/icon/core/table-columns-distribute"));
|
|
37
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
38
37
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
39
38
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
40
39
|
var _commands = require("../pm-plugins/commands");
|
|
@@ -92,7 +91,7 @@ var getToolbarMenuConfig = exports.getToolbarMenuConfig = function getToolbarMen
|
|
|
92
91
|
}
|
|
93
92
|
}, {
|
|
94
93
|
id: 'editor.table.numberedColumn',
|
|
95
|
-
title: formatMessage(
|
|
94
|
+
title: formatMessage(_messages.tableMessages.numberedRows),
|
|
96
95
|
onClick: (0, _commandsWithAnalytics.toggleNumberColumnWithAnalytics)(editorAnalyticsAPI),
|
|
97
96
|
selected: state.isNumberColumnEnabled,
|
|
98
97
|
hidden: !config.allowNumberColumn,
|
|
@@ -412,7 +412,7 @@ const DragMenu = /*#__PURE__*/React.memo(({
|
|
|
412
412
|
const createRowNumbersMenuItem = () => {
|
|
413
413
|
return {
|
|
414
414
|
key: 'row_numbers',
|
|
415
|
-
content: formatMessage(
|
|
415
|
+
content: formatMessage(messages.numberedRows),
|
|
416
416
|
value: {
|
|
417
417
|
name: 'row_numbers'
|
|
418
418
|
},
|
|
@@ -422,7 +422,7 @@ const DragMenu = /*#__PURE__*/React.memo(({
|
|
|
422
422
|
css: toggleStyles
|
|
423
423
|
}, jsx(Toggle, {
|
|
424
424
|
id: "toggle-row-numbers",
|
|
425
|
-
label: formatMessage(
|
|
425
|
+
label: formatMessage(messages.numberedRows),
|
|
426
426
|
onChange: toggleRowNumbers,
|
|
427
427
|
isChecked: checkIfNumberColumnEnabled(selection)
|
|
428
428
|
}))
|
|
@@ -1306,7 +1306,7 @@ export const baseTableStyles = props => css`
|
|
|
1306
1306
|
// TODO: DSP-4139 - Remove this when we have a better solution for the table toolbar
|
|
1307
1307
|
export const tableStyles = props => css`
|
|
1308
1308
|
.ProseMirror {
|
|
1309
|
-
${
|
|
1309
|
+
${baseTableStylesWithoutSharedStyle(props)};
|
|
1310
1310
|
}
|
|
1311
1311
|
|
|
1312
1312
|
.ProseMirror.${ClassName.IS_RESIZING} {
|
|
@@ -28,7 +28,6 @@ import CopyIcon from '@atlaskit/icon/core/copy';
|
|
|
28
28
|
import CustomizeIcon from '@atlaskit/icon/core/customize';
|
|
29
29
|
import DeleteIcon from '@atlaskit/icon/core/delete';
|
|
30
30
|
import TableColumnsDistributeIcon from '@atlaskit/icon/core/table-columns-distribute';
|
|
31
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
32
31
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
33
32
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
34
33
|
import { clearHoverSelection, hoverColumns, hoverMergedCells, hoverRows, hoverTable, removeDescendantNodes } from '../pm-plugins/commands';
|
|
@@ -79,7 +78,7 @@ export const getToolbarMenuConfig = (config, state, {
|
|
|
79
78
|
}
|
|
80
79
|
}, {
|
|
81
80
|
id: 'editor.table.numberedColumn',
|
|
82
|
-
title: formatMessage(
|
|
81
|
+
title: formatMessage(messages.numberedRows),
|
|
83
82
|
onClick: toggleNumberColumnWithAnalytics(editorAnalyticsAPI),
|
|
84
83
|
selected: state.isNumberColumnEnabled,
|
|
85
84
|
hidden: !config.allowNumberColumn,
|
|
@@ -413,7 +413,7 @@ var DragMenu = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
413
413
|
var createRowNumbersMenuItem = function createRowNumbersMenuItem() {
|
|
414
414
|
return {
|
|
415
415
|
key: 'row_numbers',
|
|
416
|
-
content: formatMessage(
|
|
416
|
+
content: formatMessage(messages.numberedRows),
|
|
417
417
|
value: {
|
|
418
418
|
name: 'row_numbers'
|
|
419
419
|
},
|
|
@@ -423,7 +423,7 @@ var DragMenu = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
423
423
|
css: toggleStyles
|
|
424
424
|
}, jsx(Toggle, {
|
|
425
425
|
id: "toggle-row-numbers",
|
|
426
|
-
label: formatMessage(
|
|
426
|
+
label: formatMessage(messages.numberedRows),
|
|
427
427
|
onChange: toggleRowNumbers,
|
|
428
428
|
isChecked: checkIfNumberColumnEnabled(selection)
|
|
429
429
|
}))
|
|
@@ -78,7 +78,7 @@ export var baseTableStyles = function baseTableStyles(props) {
|
|
|
78
78
|
|
|
79
79
|
// TODO: DSP-4139 - Remove this when we have a better solution for the table toolbar
|
|
80
80
|
export var tableStyles = function tableStyles(props) {
|
|
81
|
-
return css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n\t.ProseMirror {\n\t\t", ";\n\t}\n\n\t.ProseMirror.", " {\n\t\t.", " {\n\t\t\toverflow-x: auto;\n\t\t\t", ";\n\t\t}\n\t}\n\n\t.ProseMirror.", " {\n\t\tcursor: col-resize;\n\t}\n\n\t", "\n"])),
|
|
81
|
+
return css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n\t.ProseMirror {\n\t\t", ";\n\t}\n\n\t.ProseMirror.", " {\n\t\t.", " {\n\t\t\toverflow-x: auto;\n\t\t\t", ";\n\t\t}\n\t}\n\n\t.ProseMirror.", " {\n\t\tcursor: col-resize;\n\t}\n\n\t", "\n"])), baseTableStylesWithoutSharedStyle(props), ClassName.IS_RESIZING, ClassName.TABLE_NODE_WRAPPER, scrollbarStyles, ClassName.RESIZE_CURSOR, shadowSentinelStyles);
|
|
82
82
|
};
|
|
83
83
|
|
|
84
84
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
package/dist/esm/ui/toolbar.js
CHANGED
|
@@ -33,7 +33,6 @@ import CopyIcon from '@atlaskit/icon/core/copy';
|
|
|
33
33
|
import CustomizeIcon from '@atlaskit/icon/core/customize';
|
|
34
34
|
import DeleteIcon from '@atlaskit/icon/core/delete';
|
|
35
35
|
import TableColumnsDistributeIcon from '@atlaskit/icon/core/table-columns-distribute';
|
|
36
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
37
36
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
38
37
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
39
38
|
import { clearHoverSelection, hoverColumns, hoverMergedCells, hoverRows, hoverTable, removeDescendantNodes } from '../pm-plugins/commands';
|
|
@@ -85,7 +84,7 @@ export var getToolbarMenuConfig = function getToolbarMenuConfig(config, state, _
|
|
|
85
84
|
}
|
|
86
85
|
}, {
|
|
87
86
|
id: 'editor.table.numberedColumn',
|
|
88
|
-
title: formatMessage(
|
|
87
|
+
title: formatMessage(messages.numberedRows),
|
|
89
88
|
onClick: toggleNumberColumnWithAnalytics(editorAnalyticsAPI),
|
|
90
89
|
selected: state.isNumberColumnEnabled,
|
|
91
90
|
hidden: !config.allowNumberColumn,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.6.0",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
|
|
58
58
|
"@atlaskit/primitives": "^18.0.0",
|
|
59
59
|
"@atlaskit/theme": "^22.0.0",
|
|
60
|
-
"@atlaskit/tmp-editor-statsig": "^33.
|
|
60
|
+
"@atlaskit/tmp-editor-statsig": "^33.2.0",
|
|
61
61
|
"@atlaskit/toggle": "^15.2.0",
|
|
62
62
|
"@atlaskit/tokens": "^11.0.0",
|
|
63
63
|
"@atlaskit/tooltip": "^20.14.0",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"uuid": "^3.1.0"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
|
-
"@atlaskit/editor-common": "^111.
|
|
73
|
+
"@atlaskit/editor-common": "^111.28.0",
|
|
74
74
|
"react": "^18.2.0",
|
|
75
75
|
"react-dom": "^18.2.0",
|
|
76
76
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -133,9 +133,6 @@
|
|
|
133
133
|
"platform_editor_table_sticky_header_patch_4": {
|
|
134
134
|
"type": "boolean"
|
|
135
135
|
},
|
|
136
|
-
"platform_editor_rename_numbered_rows_label": {
|
|
137
|
-
"type": "boolean"
|
|
138
|
-
},
|
|
139
136
|
"platform_editor_table_height_analytics_event": {
|
|
140
137
|
"type": "boolean"
|
|
141
138
|
},
|