@atlaskit/editor-plugin-selection 3.0.5 → 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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/editor-plugin-selection
2
2
 
3
+ ## 3.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 3.0.5
4
10
 
5
11
  ### Patch Changes
@@ -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?: ((dir: DirectionString, state?: EditorState) => boolean) | undefined) => Command;
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,3 +1,3 @@
1
1
  import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- declare function keymapPlugin(): SafePlugin<any>;
2
+ declare function keymapPlugin(): SafePlugin;
3
3
  export default keymapPlugin;
@@ -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?: ((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>;
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?: ((dir: DirectionString, state?: EditorState) => boolean) | undefined) => Command;
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,3 +1,3 @@
1
1
  import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- declare function keymapPlugin(): SafePlugin<any>;
2
+ declare function keymapPlugin(): SafePlugin;
3
3
  export default keymapPlugin;
@@ -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?: ((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>;
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.5",
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.5.0",
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": "^9.24.0",
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.17.0",
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": [
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/types/index.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <5.4": {
9
+ ">=4.5 <5.9": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/types/index.d.ts"
12
12
  ]