@atlaskit/editor-plugin-selection 3.0.4 → 3.0.6
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/pm-plugins/utils.js +3 -0
- package/dist/es2019/pm-plugins/utils.js +3 -0
- package/dist/esm/pm-plugins/utils.js +3 -0
- package/dist/types/pm-plugins/gap-cursor/actions.d.ts +1 -1
- package/dist/types/pm-plugins/keymap.d.ts +1 -1
- package/dist/types/pm-plugins/plugin-factory.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/gap-cursor/actions.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/keymap.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/plugin-factory.d.ts +1 -1
- package/package.json +7 -7
- package/types/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-selection
|
|
2
2
|
|
|
3
|
+
## 3.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 3.0.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#196046](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/196046)
|
|
14
|
+
[`6ac9374c00fe3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6ac9374c00fe3) -
|
|
15
|
+
[ux] [ED-25230] Follow up bug fix layout nav issue on list items
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 3.0.4
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -361,6 +361,9 @@ var isSelectionAtEndOfLayoutColumn = exports.isSelectionAtEndOfLayoutColumn = fu
|
|
|
361
361
|
var grandParent = $pos.node(grandParentDepth);
|
|
362
362
|
var afterPos = layoutColumnParent.pos + layoutColumnParent.node.nodeSize;
|
|
363
363
|
var $after = $pos.doc.resolve(afterPos);
|
|
364
|
+
if ((0, _platformFeatureFlags.fg)('platform_editor_fix_list_item_nav_bug_in_layout')) {
|
|
365
|
+
return Boolean($after.nodeAfter);
|
|
366
|
+
}
|
|
364
367
|
return Boolean($after.nodeAfter) && grandParent.type === layoutColumn;
|
|
365
368
|
};
|
|
366
369
|
|
|
@@ -354,6 +354,9 @@ export const isSelectionAtEndOfLayoutColumn = $pos => {
|
|
|
354
354
|
const grandParent = $pos.node(grandParentDepth);
|
|
355
355
|
const afterPos = layoutColumnParent.pos + layoutColumnParent.node.nodeSize;
|
|
356
356
|
const $after = $pos.doc.resolve(afterPos);
|
|
357
|
+
if (fg('platform_editor_fix_list_item_nav_bug_in_layout')) {
|
|
358
|
+
return Boolean($after.nodeAfter);
|
|
359
|
+
}
|
|
357
360
|
return Boolean($after.nodeAfter) && grandParent.type === layoutColumn;
|
|
358
361
|
};
|
|
359
362
|
|
|
@@ -354,6 +354,9 @@ export var isSelectionAtEndOfLayoutColumn = function isSelectionAtEndOfLayoutCol
|
|
|
354
354
|
var grandParent = $pos.node(grandParentDepth);
|
|
355
355
|
var afterPos = layoutColumnParent.pos + layoutColumnParent.node.nodeSize;
|
|
356
356
|
var $after = $pos.doc.resolve(afterPos);
|
|
357
|
+
if (fg('platform_editor_fix_list_item_nav_bug_in_layout')) {
|
|
358
|
+
return Boolean($after.nodeAfter);
|
|
359
|
+
}
|
|
357
360
|
return Boolean($after.nodeAfter) && grandParent.type === layoutColumn;
|
|
358
361
|
};
|
|
359
362
|
|
|
@@ -4,7 +4,7 @@ import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/stat
|
|
|
4
4
|
import { Direction } from './direction';
|
|
5
5
|
export type DirectionString = 'up' | 'down' | 'left' | 'right' | 'forward' | 'backward';
|
|
6
6
|
export declare const shouldSkipGapCursor: (direction: Direction, state: EditorState, $pos: ResolvedPos) => boolean;
|
|
7
|
-
export declare const arrow: (dir: Direction, endOfTextblock?: (
|
|
7
|
+
export declare const arrow: (dir: Direction, endOfTextblock?: (dir: DirectionString, state?: EditorState) => boolean) => Command;
|
|
8
8
|
export declare const deleteNode: (dir: Direction) => Command;
|
|
9
9
|
export declare const setSelectionTopLevelBlocks: (tr: Transaction, event: React.MouseEvent<any>, editorRef: HTMLElement, posAtCoords: (coords: {
|
|
10
10
|
left: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { SelectionPluginState } from '@atlaskit/editor-common/selection';
|
|
2
|
-
export declare const createCommand: <A = import("./actions").SelectionAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: (
|
|
2
|
+
export declare const createCommand: <A = import("./actions").SelectionAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: (tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) => import("@atlaskit/editor-common/types").Command, getPluginState: (state: import("prosemirror-state").EditorState) => SelectionPluginState, createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: SelectionPluginState | ((state: import("prosemirror-state").EditorState) => SelectionPluginState)) => import("prosemirror-state").SafeStateField<SelectionPluginState>;
|
|
@@ -4,7 +4,7 @@ import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/stat
|
|
|
4
4
|
import { Direction } from './direction';
|
|
5
5
|
export type DirectionString = 'up' | 'down' | 'left' | 'right' | 'forward' | 'backward';
|
|
6
6
|
export declare const shouldSkipGapCursor: (direction: Direction, state: EditorState, $pos: ResolvedPos) => boolean;
|
|
7
|
-
export declare const arrow: (dir: Direction, endOfTextblock?: (
|
|
7
|
+
export declare const arrow: (dir: Direction, endOfTextblock?: (dir: DirectionString, state?: EditorState) => boolean) => Command;
|
|
8
8
|
export declare const deleteNode: (dir: Direction) => Command;
|
|
9
9
|
export declare const setSelectionTopLevelBlocks: (tr: Transaction, event: React.MouseEvent<any>, editorRef: HTMLElement, posAtCoords: (coords: {
|
|
10
10
|
left: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { SelectionPluginState } from '@atlaskit/editor-common/selection';
|
|
2
|
-
export declare const createCommand: <A = import("./actions").SelectionAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: (
|
|
2
|
+
export declare const createCommand: <A = import("./actions").SelectionAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: (tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) => import("@atlaskit/editor-common/types").Command, getPluginState: (state: import("prosemirror-state").EditorState) => SelectionPluginState, createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: SelectionPluginState | ((state: import("prosemirror-state").EditorState) => SelectionPluginState)) => import("prosemirror-state").SafeStateField<SelectionPluginState>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.6",
|
|
4
4
|
"description": "Selection plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -21,20 +21,17 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@atlaskit/editor-plugin-interaction": "^5.0.0",
|
|
23
23
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
24
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
24
|
+
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
25
25
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
26
26
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
27
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
27
|
+
"@atlaskit/tmp-editor-statsig": "^10.0.0",
|
|
28
28
|
"@atlaskit/tokens": "^6.0.0",
|
|
29
29
|
"@babel/runtime": "^7.0.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@atlaskit/editor-common": "^107.
|
|
32
|
+
"@atlaskit/editor-common": "^107.25.0",
|
|
33
33
|
"react": "^18.2.0"
|
|
34
34
|
},
|
|
35
|
-
"devDependencies": {
|
|
36
|
-
"typescript": "~5.4.2"
|
|
37
|
-
},
|
|
38
35
|
"techstack": {
|
|
39
36
|
"@atlassian/frontend": {
|
|
40
37
|
"code-structure": [
|
|
@@ -92,6 +89,9 @@
|
|
|
92
89
|
},
|
|
93
90
|
"platform_editor_fix_right_arrow_nav_bug_in_layout": {
|
|
94
91
|
"type": "boolean"
|
|
92
|
+
},
|
|
93
|
+
"platform_editor_fix_list_item_nav_bug_in_layout": {
|
|
94
|
+
"type": "boolean"
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
}
|