@atlaskit/editor-plugin-expand 31.1.8 → 31.1.10
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 +15 -0
- package/dist/cjs/legacyExpand/nodeviews/index.js +1 -5
- package/dist/cjs/legacyExpand/pm-plugins/keymap.js +3 -6
- package/dist/cjs/singlePlayerExpand/node-views/index.js +1 -5
- package/dist/cjs/singlePlayerExpand/pm-plugins/keymap.js +3 -6
- package/dist/es2019/legacyExpand/nodeviews/index.js +1 -5
- package/dist/es2019/legacyExpand/pm-plugins/keymap.js +3 -6
- package/dist/es2019/singlePlayerExpand/node-views/index.js +1 -5
- package/dist/es2019/singlePlayerExpand/pm-plugins/keymap.js +3 -6
- package/dist/esm/legacyExpand/nodeviews/index.js +1 -5
- package/dist/esm/legacyExpand/pm-plugins/keymap.js +3 -6
- package/dist/esm/singlePlayerExpand/node-views/index.js +1 -5
- package/dist/esm/singlePlayerExpand/pm-plugins/keymap.js +3 -6
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-expand
|
|
2
2
|
|
|
3
|
+
## 31.1.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 31.1.9
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`861d385203ae7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/861d385203ae7) -
|
|
14
|
+
[FFCLEANUP-144039] remove the `platform_editor_lovability_navigation_fixes` experiment to improve
|
|
15
|
+
expand keyboard navigation
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 31.1.8
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -271,11 +271,7 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
|
|
|
271
271
|
_this.handleArrowLeftFromTitle(event);
|
|
272
272
|
break;
|
|
273
273
|
case 'ArrowUp':
|
|
274
|
-
|
|
275
|
-
_this.moveToPreviousLine(event);
|
|
276
|
-
} else {
|
|
277
|
-
_this.setLeftGapCursor(event);
|
|
278
|
-
}
|
|
274
|
+
_this.moveToPreviousLine(event);
|
|
279
275
|
break;
|
|
280
276
|
case 'Backspace':
|
|
281
277
|
_this.deleteExpand(event);
|
|
@@ -15,7 +15,6 @@ var _keymap = require("@atlaskit/editor-prosemirror/keymap");
|
|
|
15
15
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
16
16
|
var _utils2 = require("@atlaskit/editor-tables/utils");
|
|
17
17
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
18
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
19
18
|
var _deleteEmptyLineAfterCollapsedExpand = require("../../editor-commands/deleteEmptyLineAfterCollapsedExpand");
|
|
20
19
|
var _commands = require("../commands");
|
|
21
20
|
var isExpandNode = function isExpandNode(node) {
|
|
@@ -152,11 +151,9 @@ function expandKeymap(api, options) {
|
|
|
152
151
|
var $from = selection.$from;
|
|
153
152
|
return (0, _commands.focusTitle)($from.pos + 1)(state, dispatch, editorView);
|
|
154
153
|
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
return (0, _commands.focusTitle)(nextExpandPos)(state, dispatch, editorView);
|
|
159
|
-
}
|
|
154
|
+
var nextExpandPos = (0, _expand2.getNextNodeExpandPos)(editorView, selection);
|
|
155
|
+
if (nextExpandPos !== undefined) {
|
|
156
|
+
return (0, _commands.focusTitle)(nextExpandPos)(state, dispatch, editorView);
|
|
160
157
|
}
|
|
161
158
|
if (editorView.endOfTextblock('down')) {
|
|
162
159
|
var _$from2 = state.selection.$from;
|
|
@@ -216,11 +216,7 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
|
|
|
216
216
|
_this.handleArrowLeftFromTitle(event);
|
|
217
217
|
break;
|
|
218
218
|
case 'ArrowUp':
|
|
219
|
-
|
|
220
|
-
_this.moveToPreviousLine(event);
|
|
221
|
-
} else {
|
|
222
|
-
_this.setLeftGapCursor(event);
|
|
223
|
-
}
|
|
219
|
+
_this.moveToPreviousLine(event);
|
|
224
220
|
break;
|
|
225
221
|
case 'Backspace':
|
|
226
222
|
_this.deleteEmptyExpand();
|
|
@@ -15,7 +15,6 @@ var _keymap = require("@atlaskit/editor-prosemirror/keymap");
|
|
|
15
15
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
16
16
|
var _utils2 = require("@atlaskit/editor-tables/utils");
|
|
17
17
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
18
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
19
18
|
var _deleteEmptyLineAfterCollapsedExpand = require("../../editor-commands/deleteEmptyLineAfterCollapsedExpand");
|
|
20
19
|
var _commands = require("../commands");
|
|
21
20
|
var isExpandNode = function isExpandNode(node) {
|
|
@@ -149,11 +148,9 @@ function expandKeymap(api) {
|
|
|
149
148
|
var $from = selection.$from;
|
|
150
149
|
return (0, _commands.focusTitle)($from.pos + 1)(state, dispatch, editorView);
|
|
151
150
|
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
return (0, _commands.focusTitle)(nextExpandPos)(state, dispatch, editorView);
|
|
156
|
-
}
|
|
151
|
+
var nextExpandPos = (0, _expand2.getNextNodeExpandPos)(editorView, selection);
|
|
152
|
+
if (nextExpandPos !== undefined) {
|
|
153
|
+
return (0, _commands.focusTitle)(nextExpandPos)(state, dispatch, editorView);
|
|
157
154
|
}
|
|
158
155
|
if (editorView.endOfTextblock('down')) {
|
|
159
156
|
var _$from2 = state.selection.$from;
|
|
@@ -263,11 +263,7 @@ export class ExpandNodeView {
|
|
|
263
263
|
this.handleArrowLeftFromTitle(event);
|
|
264
264
|
break;
|
|
265
265
|
case 'ArrowUp':
|
|
266
|
-
|
|
267
|
-
this.moveToPreviousLine(event);
|
|
268
|
-
} else {
|
|
269
|
-
this.setLeftGapCursor(event);
|
|
270
|
-
}
|
|
266
|
+
this.moveToPreviousLine(event);
|
|
271
267
|
break;
|
|
272
268
|
case 'Backspace':
|
|
273
269
|
this.deleteExpand(event);
|
|
@@ -9,7 +9,6 @@ import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
|
9
9
|
import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
10
10
|
import { isInTable } from '@atlaskit/editor-tables/utils';
|
|
11
11
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
12
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
12
|
import { deleteEmptyLineAfterCollapsedExpand } from '../../editor-commands/deleteEmptyLineAfterCollapsedExpand';
|
|
14
13
|
import { deleteExpand, focusIcon, focusTitle } from '../commands';
|
|
15
14
|
const isExpandNode = node => {
|
|
@@ -167,11 +166,9 @@ export function expandKeymap(api, options) {
|
|
|
167
166
|
} = selection;
|
|
168
167
|
return focusTitle($from.pos + 1)(state, dispatch, editorView);
|
|
169
168
|
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
return focusTitle(nextExpandPos)(state, dispatch, editorView);
|
|
174
|
-
}
|
|
169
|
+
const nextExpandPos = getNextNodeExpandPos(editorView, selection);
|
|
170
|
+
if (nextExpandPos !== undefined) {
|
|
171
|
+
return focusTitle(nextExpandPos)(state, dispatch, editorView);
|
|
175
172
|
}
|
|
176
173
|
if (editorView.endOfTextblock('down')) {
|
|
177
174
|
const {
|
|
@@ -203,11 +203,7 @@ export class ExpandNodeView {
|
|
|
203
203
|
this.handleArrowLeftFromTitle(event);
|
|
204
204
|
break;
|
|
205
205
|
case 'ArrowUp':
|
|
206
|
-
|
|
207
|
-
this.moveToPreviousLine(event);
|
|
208
|
-
} else {
|
|
209
|
-
this.setLeftGapCursor(event);
|
|
210
|
-
}
|
|
206
|
+
this.moveToPreviousLine(event);
|
|
211
207
|
break;
|
|
212
208
|
case 'Backspace':
|
|
213
209
|
this.deleteEmptyExpand();
|
|
@@ -9,7 +9,6 @@ import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
|
9
9
|
import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
10
10
|
import { isInTable } from '@atlaskit/editor-tables/utils';
|
|
11
11
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
12
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
12
|
import { deleteEmptyLineAfterCollapsedExpand } from '../../editor-commands/deleteEmptyLineAfterCollapsedExpand';
|
|
14
13
|
import { deleteExpand, focusIcon, focusTitle } from '../commands';
|
|
15
14
|
const isExpandNode = node => {
|
|
@@ -166,11 +165,9 @@ export function expandKeymap(api) {
|
|
|
166
165
|
} = selection;
|
|
167
166
|
return focusTitle($from.pos + 1)(state, dispatch, editorView);
|
|
168
167
|
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
return focusTitle(nextExpandPos)(state, dispatch, editorView);
|
|
173
|
-
}
|
|
168
|
+
const nextExpandPos = getNextNodeExpandPos(editorView, selection);
|
|
169
|
+
if (nextExpandPos !== undefined) {
|
|
170
|
+
return focusTitle(nextExpandPos)(state, dispatch, editorView);
|
|
174
171
|
}
|
|
175
172
|
if (editorView.endOfTextblock('down')) {
|
|
176
173
|
const {
|
|
@@ -263,11 +263,7 @@ export var ExpandNodeView = /*#__PURE__*/function () {
|
|
|
263
263
|
_this.handleArrowLeftFromTitle(event);
|
|
264
264
|
break;
|
|
265
265
|
case 'ArrowUp':
|
|
266
|
-
|
|
267
|
-
_this.moveToPreviousLine(event);
|
|
268
|
-
} else {
|
|
269
|
-
_this.setLeftGapCursor(event);
|
|
270
|
-
}
|
|
266
|
+
_this.moveToPreviousLine(event);
|
|
271
267
|
break;
|
|
272
268
|
case 'Backspace':
|
|
273
269
|
_this.deleteExpand(event);
|
|
@@ -9,7 +9,6 @@ import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
|
9
9
|
import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
10
10
|
import { isInTable } from '@atlaskit/editor-tables/utils';
|
|
11
11
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
12
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
12
|
import { deleteEmptyLineAfterCollapsedExpand } from '../../editor-commands/deleteEmptyLineAfterCollapsedExpand';
|
|
14
13
|
import { deleteExpand, focusIcon, focusTitle } from '../commands';
|
|
15
14
|
var isExpandNode = function isExpandNode(node) {
|
|
@@ -146,11 +145,9 @@ export function expandKeymap(api, options) {
|
|
|
146
145
|
var $from = selection.$from;
|
|
147
146
|
return focusTitle($from.pos + 1)(state, dispatch, editorView);
|
|
148
147
|
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
return focusTitle(nextExpandPos)(state, dispatch, editorView);
|
|
153
|
-
}
|
|
148
|
+
var nextExpandPos = getNextNodeExpandPos(editorView, selection);
|
|
149
|
+
if (nextExpandPos !== undefined) {
|
|
150
|
+
return focusTitle(nextExpandPos)(state, dispatch, editorView);
|
|
154
151
|
}
|
|
155
152
|
if (editorView.endOfTextblock('down')) {
|
|
156
153
|
var _$from2 = state.selection.$from;
|
|
@@ -208,11 +208,7 @@ export var ExpandNodeView = /*#__PURE__*/function () {
|
|
|
208
208
|
_this.handleArrowLeftFromTitle(event);
|
|
209
209
|
break;
|
|
210
210
|
case 'ArrowUp':
|
|
211
|
-
|
|
212
|
-
_this.moveToPreviousLine(event);
|
|
213
|
-
} else {
|
|
214
|
-
_this.setLeftGapCursor(event);
|
|
215
|
-
}
|
|
211
|
+
_this.moveToPreviousLine(event);
|
|
216
212
|
break;
|
|
217
213
|
case 'Backspace':
|
|
218
214
|
_this.deleteEmptyExpand();
|
|
@@ -9,7 +9,6 @@ import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
|
9
9
|
import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
10
10
|
import { isInTable } from '@atlaskit/editor-tables/utils';
|
|
11
11
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
12
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
12
|
import { deleteEmptyLineAfterCollapsedExpand } from '../../editor-commands/deleteEmptyLineAfterCollapsedExpand';
|
|
14
13
|
import { deleteExpand, focusIcon, focusTitle } from '../commands';
|
|
15
14
|
var isExpandNode = function isExpandNode(node) {
|
|
@@ -143,11 +142,9 @@ export function expandKeymap(api) {
|
|
|
143
142
|
var $from = selection.$from;
|
|
144
143
|
return focusTitle($from.pos + 1)(state, dispatch, editorView);
|
|
145
144
|
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
return focusTitle(nextExpandPos)(state, dispatch, editorView);
|
|
150
|
-
}
|
|
145
|
+
var nextExpandPos = getNextNodeExpandPos(editorView, selection);
|
|
146
|
+
if (nextExpandPos !== undefined) {
|
|
147
|
+
return focusTitle(nextExpandPos)(state, dispatch, editorView);
|
|
151
148
|
}
|
|
152
149
|
if (editorView.endOfTextblock('down')) {
|
|
153
150
|
var _$from2 = state.selection.$from;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-expand",
|
|
3
|
-
"version": "31.1.
|
|
3
|
+
"version": "31.1.10",
|
|
4
4
|
"description": "Expand plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
"@atlaskit/editor-plugin-selection": "^30.0.0",
|
|
35
35
|
"@atlaskit/editor-plugin-selection-marker": "^30.0.0",
|
|
36
36
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
37
|
-
"@atlaskit/editor-shared-styles": "^5.
|
|
37
|
+
"@atlaskit/editor-shared-styles": "^5.1.0",
|
|
38
38
|
"@atlaskit/editor-tables": "^3.2.0",
|
|
39
|
-
"@atlaskit/editor-toolbar": "^2.
|
|
39
|
+
"@atlaskit/editor-toolbar": "^2.10.0",
|
|
40
40
|
"@atlaskit/editor-ui-control-model": "^3.0.0",
|
|
41
41
|
"@atlaskit/icon": "^38.0.0",
|
|
42
42
|
"@atlaskit/icon-lab": "^7.11.0",
|
|
43
43
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
45
45
|
"@atlaskit/prosemirror-history": "^1.3.0",
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^259.0.0",
|
|
47
47
|
"@atlaskit/tokens": "^20.9.0",
|
|
48
48
|
"@atlaskit/tooltip": "^24.4.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
@@ -52,13 +52,13 @@
|
|
|
52
52
|
"w3c-keyname": "^2.1.8"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@atlaskit/editor-common": "^134.
|
|
55
|
+
"@atlaskit/editor-common": "^134.9.0",
|
|
56
56
|
"react": "^18.2.0 || ^19.2.0",
|
|
57
57
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
58
58
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@atlaskit/editor-common": "^134.
|
|
61
|
+
"@atlaskit/editor-common": "^134.9.0",
|
|
62
62
|
"@testing-library/react": "^16.3.0",
|
|
63
63
|
"react": "^19.2.0",
|
|
64
64
|
"react-dom": "^19.2.0",
|