@atlaskit/editor-plugin-table 27.0.14 → 27.1.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 +16 -0
- package/dist/cjs/nodeviews/table.js +2 -1
- package/dist/es2019/nodeviews/table.js +2 -1
- package/dist/esm/nodeviews/table.js +2 -1
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 27.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`d96f86ff344b8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d96f86ff344b8) -
|
|
8
|
+
Use @atlaskit/platform-feature-experiments directly for
|
|
9
|
+
platform_editor_vc90_transition_expand_icon, platform_editor_add_image_editing,
|
|
10
|
+
platform_editor_ai_multi_format_streaming, platform_editor_default_toolbar_state,
|
|
11
|
+
platform_editor_early_exit_return_draft, platform_editor_fix_focus_MediaInsertPicker,
|
|
12
|
+
platform_editor_fix_table_move_shortcut, platform_editor_menu_radius_update,
|
|
13
|
+
platform_editor_react19_migration, and show_mentions_in_suggest_reply.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 27.0.14
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -23,6 +23,7 @@ var _state = require("@atlaskit/editor-prosemirror/state");
|
|
|
23
23
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
24
24
|
var _cellSelection = require("@atlaskit/editor-tables/cell-selection");
|
|
25
25
|
var _tableMap = require("@atlaskit/editor-tables/table-map");
|
|
26
|
+
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
26
27
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
27
28
|
var _createPluginConfig = require("../pm-plugins/create-plugin-config");
|
|
28
29
|
var _pluginFactory = require("../pm-plugins/plugin-factory");
|
|
@@ -148,7 +149,7 @@ var TableView = exports.default = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
148
149
|
if (node && this.table && !node.contains(this.table)) {
|
|
149
150
|
// Patch to prevent selection collapsing when moving the table down with ctrl + shift + down
|
|
150
151
|
var selectionBeforeMove = this.view.state.selection;
|
|
151
|
-
var shouldPreserveCellSelection = (0,
|
|
152
|
+
var shouldPreserveCellSelection = (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_fix_table_move_shortcut') && selectionBeforeMove instanceof _cellSelection.CellSelection;
|
|
152
153
|
|
|
153
154
|
// Store the current ignoreMutation handler so we can restore it later
|
|
154
155
|
oldIgnoreMutation = this.ignoreMutation;
|
|
@@ -9,6 +9,7 @@ import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
|
9
9
|
import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
|
|
10
10
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
11
11
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
12
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
12
13
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
14
|
import { pluginConfig as getPluginConfig } from '../pm-plugins/create-plugin-config';
|
|
14
15
|
import { getPluginState } from '../pm-plugins/plugin-factory';
|
|
@@ -118,7 +119,7 @@ export default class TableView extends ReactNodeView {
|
|
|
118
119
|
if (node && this.table && !node.contains(this.table)) {
|
|
119
120
|
// Patch to prevent selection collapsing when moving the table down with ctrl + shift + down
|
|
120
121
|
const selectionBeforeMove = this.view.state.selection;
|
|
121
|
-
const shouldPreserveCellSelection =
|
|
122
|
+
const shouldPreserveCellSelection = isExperimentEnabled('platform_editor_fix_table_move_shortcut') && selectionBeforeMove instanceof CellSelection;
|
|
122
123
|
|
|
123
124
|
// Store the current ignoreMutation handler so we can restore it later
|
|
124
125
|
oldIgnoreMutation = this.ignoreMutation;
|
|
@@ -19,6 +19,7 @@ import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
|
19
19
|
import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
|
|
20
20
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
21
21
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
22
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
22
23
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
23
24
|
import { pluginConfig as getPluginConfig } from '../pm-plugins/create-plugin-config';
|
|
24
25
|
import { getPluginState } from '../pm-plugins/plugin-factory';
|
|
@@ -141,7 +142,7 @@ var TableView = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
141
142
|
if (node && this.table && !node.contains(this.table)) {
|
|
142
143
|
// Patch to prevent selection collapsing when moving the table down with ctrl + shift + down
|
|
143
144
|
var selectionBeforeMove = this.view.state.selection;
|
|
144
|
-
var shouldPreserveCellSelection =
|
|
145
|
+
var shouldPreserveCellSelection = isExperimentEnabled('platform_editor_fix_table_move_shortcut') && selectionBeforeMove instanceof CellSelection;
|
|
145
146
|
|
|
146
147
|
// Store the current ignoreMutation handler so we can restore it later
|
|
147
148
|
oldIgnoreMutation = this.ignoreMutation;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "27.0
|
|
3
|
+
"version": "27.1.0",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@atlaskit/adf-schema": "^57.0.0",
|
|
24
|
-
"@atlaskit/button": "^25.
|
|
24
|
+
"@atlaskit/button": "^25.2.0",
|
|
25
25
|
"@atlaskit/custom-steps": "^1.0.0",
|
|
26
26
|
"@atlaskit/editor-palette": "^3.4.0",
|
|
27
27
|
"@atlaskit/editor-plugin-accessibility-utils": "^15.0.0",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@atlaskit/editor-plugin-batch-attribute-updates": "^15.0.0",
|
|
30
30
|
"@atlaskit/editor-plugin-content-insertion": "^15.0.0",
|
|
31
31
|
"@atlaskit/editor-plugin-editor-viewmode": "^17.0.0",
|
|
32
|
-
"@atlaskit/editor-plugin-extension": "18.0.
|
|
32
|
+
"@atlaskit/editor-plugin-extension": "18.0.11",
|
|
33
33
|
"@atlaskit/editor-plugin-guideline": "^15.0.0",
|
|
34
34
|
"@atlaskit/editor-plugin-interaction": "^26.0.0",
|
|
35
35
|
"@atlaskit/editor-plugin-limited-mode": "^12.0.0",
|
|
@@ -41,22 +41,22 @@
|
|
|
41
41
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
42
42
|
"@atlaskit/editor-shared-styles": "^4.0.0",
|
|
43
43
|
"@atlaskit/editor-tables": "^3.0.0",
|
|
44
|
-
"@atlaskit/editor-toolbar": "^2.
|
|
44
|
+
"@atlaskit/editor-toolbar": "^2.6.0",
|
|
45
45
|
"@atlaskit/editor-ui-control-model": "^2.7.0",
|
|
46
|
-
"@atlaskit/icon": "^37.
|
|
47
|
-
"@atlaskit/icon-lab": "^7.
|
|
46
|
+
"@atlaskit/icon": "^37.5.0",
|
|
47
|
+
"@atlaskit/icon-lab": "^7.7.0",
|
|
48
48
|
"@atlaskit/insm": "^2.0.0",
|
|
49
|
-
"@atlaskit/menu": "^10.
|
|
49
|
+
"@atlaskit/menu": "^10.1.0",
|
|
50
50
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
51
51
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
52
52
|
"@atlaskit/pragmatic-drag-and-drop": "^3.0.0",
|
|
53
53
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^3.1.0",
|
|
54
54
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^2.1.0",
|
|
55
|
-
"@atlaskit/primitives": "^22.
|
|
56
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
57
|
-
"@atlaskit/toggle": "^17.
|
|
58
|
-
"@atlaskit/tokens": "^16.
|
|
59
|
-
"@atlaskit/tooltip": "^24.
|
|
55
|
+
"@atlaskit/primitives": "^22.4.0",
|
|
56
|
+
"@atlaskit/tmp-editor-statsig": "^157.0.0",
|
|
57
|
+
"@atlaskit/toggle": "^17.2.0",
|
|
58
|
+
"@atlaskit/tokens": "^16.8.0",
|
|
59
|
+
"@atlaskit/tooltip": "^24.2.0",
|
|
60
60
|
"@babel/runtime": "^7.0.0",
|
|
61
61
|
"@compiled/react": "^1.0.2",
|
|
62
62
|
"@emotion/react": "^11.7.1",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"uuid": "^3.1.0"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"@atlaskit/editor-common": "^119.
|
|
71
|
+
"@atlaskit/editor-common": "^119.13.0",
|
|
72
72
|
"react": "^18.2.0 || ^19.2.0",
|
|
73
73
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
74
74
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|