@atlaskit/editor-plugin-selection 1.1.0 → 1.1.1
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 +6 -0
- package/dist/cjs/gap-cursor/actions.js +0 -1
- package/dist/es2019/gap-cursor/actions.js +0 -1
- package/dist/esm/gap-cursor/actions.js +0 -1
- package/dist/types/plugin-factory.d.ts +1 -1
- package/dist/types-ts4.5/plugin-factory.d.ts +1 -1
- package/package.json +6 -8
- package/types/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-selection
|
|
2
2
|
|
|
3
|
+
## 1.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
8
|
+
|
|
3
9
|
## 1.1.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -26,7 +26,6 @@ var shouldSkipGapCursor = exports.shouldSkipGapCursor = function shouldSkipGapCu
|
|
|
26
26
|
case _direction.Direction.DOWN:
|
|
27
27
|
return (0, _selection.atTheEndOfDoc)(state) || (0, _utils3.isTextBlockNearPos)(doc, schema, $pos, 1) || (0, _utils.isPositionNearTableRow)($pos, schema, 'after') || ((_$pos$nodeBefore = $pos.nodeBefore) === null || _$pos$nodeBefore === void 0 ? void 0 : _$pos$nodeBefore.type.name) === 'text' && !$pos.nodeAfter // end of a paragraph
|
|
28
28
|
;
|
|
29
|
-
|
|
30
29
|
default:
|
|
31
30
|
return false;
|
|
32
31
|
}
|
|
@@ -22,7 +22,6 @@ export const shouldSkipGapCursor = (direction, state, $pos) => {
|
|
|
22
22
|
case Direction.DOWN:
|
|
23
23
|
return atTheEndOfDoc(state) || isTextBlockNearPos(doc, schema, $pos, 1) || isPositionNearTableRow($pos, schema, 'after') || ((_$pos$nodeBefore = $pos.nodeBefore) === null || _$pos$nodeBefore === void 0 ? void 0 : _$pos$nodeBefore.type.name) === 'text' && !$pos.nodeAfter // end of a paragraph
|
|
24
24
|
;
|
|
25
|
-
|
|
26
25
|
default:
|
|
27
26
|
return false;
|
|
28
27
|
}
|
|
@@ -20,7 +20,6 @@ export var shouldSkipGapCursor = function shouldSkipGapCursor(direction, state,
|
|
|
20
20
|
case Direction.DOWN:
|
|
21
21
|
return atTheEndOfDoc(state) || isTextBlockNearPos(doc, schema, $pos, 1) || isPositionNearTableRow($pos, schema, 'after') || ((_$pos$nodeBefore = $pos.nodeBefore) === null || _$pos$nodeBefore === void 0 ? void 0 : _$pos$nodeBefore.type.name) === 'text' && !$pos.nodeAfter // end of a paragraph
|
|
22
22
|
;
|
|
23
|
-
|
|
24
23
|
default:
|
|
25
24
|
return false;
|
|
26
25
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { SelectionPluginState } from './types';
|
|
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) | undefined) => import("@atlaskit/editor-common/types").Command, getPluginState: (state: import("prosemirror-state").EditorState) => SelectionPluginState, createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch
|
|
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) | undefined) => 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>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { SelectionPluginState } from './types';
|
|
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) | undefined) => import("@atlaskit/editor-common/types").Command, getPluginState: (state: import("prosemirror-state").EditorState) => SelectionPluginState, createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch
|
|
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) | undefined) => 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": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Selection plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"runReact18": false
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@atlaskit/editor-common": "^78.
|
|
24
|
+
"@atlaskit/editor-common": "^78.17.0",
|
|
25
25
|
"@atlaskit/editor-prosemirror": "3.0.0",
|
|
26
26
|
"@atlaskit/editor-shared-styles": "^2.9.0",
|
|
27
27
|
"@atlaskit/editor-tables": "^2.5.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
35
|
-
"typescript": "~4.
|
|
35
|
+
"typescript": "~5.4.2"
|
|
36
36
|
},
|
|
37
37
|
"techstack": {
|
|
38
38
|
"@atlassian/frontend": {
|
|
@@ -57,11 +57,9 @@
|
|
|
57
57
|
"ui-components": [
|
|
58
58
|
"lite-mode"
|
|
59
59
|
],
|
|
60
|
-
"deprecation":
|
|
61
|
-
"no-deprecated-imports"
|
|
62
|
-
],
|
|
60
|
+
"deprecation": "no-deprecated-imports",
|
|
63
61
|
"styling": [
|
|
64
|
-
"
|
|
62
|
+
"emotion",
|
|
65
63
|
"emotion"
|
|
66
64
|
],
|
|
67
65
|
"imports": [
|
|
@@ -84,4 +82,4 @@
|
|
|
84
82
|
"type": "boolean"
|
|
85
83
|
}
|
|
86
84
|
}
|
|
87
|
-
}
|
|
85
|
+
}
|