@atlaskit/editor-plugin-selection 1.2.5 → 1.2.7

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,163 +1,177 @@
1
1
  # @atlaskit/editor-plugin-selection
2
2
 
3
+ ## 1.2.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#111382](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/111382)
8
+ [`5ce3f135c6211`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ce3f135c6211) -
9
+ Cleanup feature flag to protect for explicit HTML element check in some places.
10
+
11
+ ## 1.2.6
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 1.2.5
4
18
 
5
19
  ### Patch Changes
6
20
 
7
- - Updated dependencies
21
+ - Updated dependencies
8
22
 
9
23
  ## 1.2.4
10
24
 
11
25
  ### Patch Changes
12
26
 
13
- - Updated dependencies
27
+ - Updated dependencies
14
28
 
15
29
  ## 1.2.3
16
30
 
17
31
  ### Patch Changes
18
32
 
19
- - [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
20
- [`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
21
- [HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
22
- language triggering composition on an empty line.This was fixed in a patch bump of
23
- prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
33
+ - [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
34
+ [`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
35
+ [HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
36
+ language triggering composition on an empty line.This was fixed in a patch bump of
37
+ prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
24
38
 
25
39
  ## 1.2.2
26
40
 
27
41
  ### Patch Changes
28
42
 
29
- - Updated dependencies
43
+ - Updated dependencies
30
44
 
31
45
  ## 1.2.1
32
46
 
33
47
  ### Patch Changes
34
48
 
35
- - [#92552](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92552)
36
- [`7cd874b858c8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7cd874b858c8) -
37
- Check target elements are actually HTMLElement rather than typecasting.
49
+ - [#92552](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92552)
50
+ [`7cd874b858c8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7cd874b858c8) -
51
+ Check target elements are actually HTMLElement rather than typecasting.
38
52
 
39
53
  ## 1.2.0
40
54
 
41
55
  ### Minor Changes
42
56
 
43
- - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
44
- [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
45
- bumped editor-prosemirror version to 4.0.0
57
+ - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
58
+ [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
59
+ bumped editor-prosemirror version to 4.0.0
46
60
 
47
61
  ### Patch Changes
48
62
 
49
- - Updated dependencies
63
+ - Updated dependencies
50
64
 
51
65
  ## 1.1.3
52
66
 
53
67
  ### Patch Changes
54
68
 
55
- - [#90897](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90897)
56
- [`f7d77187a439`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f7d77187a439) -
57
- [ux] [ED-22841] Adjust isCollpasedExpand function to allow for the new singlePlayerExpand plugin
58
- which replaces the standard expand when livePage and the `platform.editor.single-player-expand`
59
- feature flag is enabled.
69
+ - [#90897](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90897)
70
+ [`f7d77187a439`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f7d77187a439) -
71
+ [ux] [ED-22841] Adjust isCollpasedExpand function to allow for the new singlePlayerExpand plugin
72
+ which replaces the standard expand when livePage and the `platform.editor.single-player-expand`
73
+ feature flag is enabled.
60
74
 
61
75
  ## 1.1.2
62
76
 
63
77
  ### Patch Changes
64
78
 
65
- - [#89247](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89247)
66
- [`a65b4a0870d8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a65b4a0870d8) -
67
- The internal composition of this package has changed. There is no expected change in behavior.
79
+ - [#89247](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89247)
80
+ [`a65b4a0870d8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a65b4a0870d8) -
81
+ The internal composition of this package has changed. There is no expected change in behavior.
68
82
 
69
83
  ## 1.1.1
70
84
 
71
85
  ### Patch Changes
72
86
 
73
- - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
74
- [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
75
- Upgrade Typescript from `4.9.5` to `5.4.2`
87
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
88
+ [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
89
+ Upgrade Typescript from `4.9.5` to `5.4.2`
76
90
 
77
91
  ## 1.1.0
78
92
 
79
93
  ### Minor Changes
80
94
 
81
- - [#75042](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75042)
82
- [`ce823f018248`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ce823f018248) -
83
- [ux] ED-21987 Diverge expands in live pages so that they are not multiplayer, and are closed by
84
- default.
95
+ - [#75042](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75042)
96
+ [`ce823f018248`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ce823f018248) -
97
+ [ux] ED-21987 Diverge expands in live pages so that they are not multiplayer, and are closed by
98
+ default.
85
99
 
86
100
  ### Patch Changes
87
101
 
88
- - Updated dependencies
102
+ - Updated dependencies
89
103
 
90
104
  ## 1.0.2
91
105
 
92
106
  ### Patch Changes
93
107
 
94
- - Updated dependencies
108
+ - Updated dependencies
95
109
 
96
110
  ## 1.0.1
97
111
 
98
112
  ### Patch Changes
99
113
 
100
- - [#70261](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70261)
101
- [`a92879d672c6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a92879d672c6) -
102
- [ux] ED-21620: Corrected the selection functions for atom nodes that are triggered on pressing
103
- the right and left arrow keys.
114
+ - [#70261](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70261)
115
+ [`a92879d672c6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a92879d672c6) -
116
+ [ux] ED-21620: Corrected the selection functions for atom nodes that are triggered on pressing the
117
+ right and left arrow keys.
104
118
 
105
119
  ## 1.0.0
106
120
 
107
121
  ### Major Changes
108
122
 
109
- - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
110
- [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
111
- This changeset exists to bump all editor plugins that currently don't have a major version. This
112
- is to address an issue with Jira plugin consumption.
123
+ - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
124
+ [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
125
+ This changeset exists to bump all editor plugins that currently don't have a major version. This
126
+ is to address an issue with Jira plugin consumption.
113
127
 
114
128
  ## 0.2.2
115
129
 
116
130
  ### Patch Changes
117
131
 
118
- - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
119
- [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
120
- Upgrading @atlaskit/editor-prosemirror dependency
132
+ - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
133
+ [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
134
+ Upgrading @atlaskit/editor-prosemirror dependency
121
135
 
122
136
  ## 0.2.1
123
137
 
124
138
  ### Patch Changes
125
139
 
126
- - Updated dependencies
140
+ - Updated dependencies
127
141
 
128
142
  ## 0.2.0
129
143
 
130
144
  ### Minor Changes
131
145
 
132
- - [#65084](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65084)
133
- [`609bca09a972`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/609bca09a972) -
134
- expose selection as part of the shared state
146
+ - [#65084](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65084)
147
+ [`609bca09a972`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/609bca09a972) -
148
+ expose selection as part of the shared state
135
149
 
136
150
  ### Patch Changes
137
151
 
138
- - Updated dependencies
152
+ - Updated dependencies
139
153
 
140
154
  ## 0.1.3
141
155
 
142
156
  ### Patch Changes
143
157
 
144
- - [#63289](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63289)
145
- [`f75faa16e84d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f75faa16e84d) -
146
- [ux] ED-20209: Fixed selection behaviour for Atomic and empty+selectable nodes and updated
147
- related tests.
158
+ - [#63289](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63289)
159
+ [`f75faa16e84d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f75faa16e84d) -
160
+ [ux] ED-20209: Fixed selection behaviour for Atomic and empty+selectable nodes and updated related
161
+ tests.
148
162
 
149
163
  ## 0.1.2
150
164
 
151
165
  ### Patch Changes
152
166
 
153
- - [#61696](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61696)
154
- [`fcc2b35ad97b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fcc2b35ad97b) -
155
- ED-21505: Added better selections and highlights for MBE nodes on Editor
167
+ - [#61696](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61696)
168
+ [`fcc2b35ad97b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fcc2b35ad97b) -
169
+ ED-21505: Added better selections and highlights for MBE nodes on Editor
156
170
 
157
171
  ## 0.1.1
158
172
 
159
173
  ### Patch Changes
160
174
 
161
- - [#57079](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/57079)
162
- [`d15db1b00c5a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d15db1b00c5a) -
163
- [ED-21267] Improve arrow navigation across MultiBodiedExtensions
175
+ - [#57079](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/57079)
176
+ [`d15db1b00c5a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d15db1b00c5a) -
177
+ [ED-21267] Improve arrow navigation across MultiBodiedExtensions
package/LICENSE.md CHANGED
@@ -1,13 +1,11 @@
1
1
  Copyright 2023 Atlassian Pty Ltd
2
2
 
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
4
+ compliance with the License. You may obtain a copy of the License at
6
5
 
7
6
  http://www.apache.org/licenses/LICENSE-2.0
8
7
 
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- limitations under the License.
8
+ Unless required by applicable law or agreed to in writing, software distributed under the License is
9
+ distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
10
+ implied. See the License for the specific language governing permissions and limitations under the
11
+ License.
@@ -10,7 +10,6 @@ var _state = require("@atlaskit/editor-prosemirror/state");
10
10
  var _utils = require("@atlaskit/editor-prosemirror/utils");
11
11
  var _view2 = require("@atlaskit/editor-prosemirror/view");
12
12
  var _cellSelection = require("@atlaskit/editor-tables/cell-selection");
13
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
13
  var _actions = require("../gap-cursor/actions");
15
14
  var _direction = require("../gap-cursor/direction");
16
15
  var _utils2 = require("../gap-cursor/utils");
@@ -113,14 +112,8 @@ var plugin = new _safePlugin.SafePlugin({
113
112
  left: event.clientX,
114
113
  top: event.clientY
115
114
  });
116
- if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.explicit-html-element-check')) {
117
- if (!posAtCoords || (0, _utils2.isIgnoredClick)(event.target instanceof HTMLElement ? event.target : null)) {
118
- return false;
119
- }
120
- } else {
121
- if (!posAtCoords || (0, _utils2.isIgnoredClick)(event.target)) {
122
- return false;
123
- }
115
+ if (!posAtCoords || (0, _utils2.isIgnoredClick)(event.target instanceof HTMLElement ? event.target : null)) {
116
+ return false;
124
117
  }
125
118
  var isInsideTheTarget = posAtCoords.pos === posAtCoords.inside;
126
119
  if (isInsideTheTarget) {
@@ -4,7 +4,6 @@ import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
4
4
  import { findPositionOfNodeBefore } from '@atlaskit/editor-prosemirror/utils';
5
5
  import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
6
6
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
7
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
8
7
  import { deleteNode } from '../gap-cursor/actions';
9
8
  import { Direction } from '../gap-cursor/direction';
10
9
  import { getLayoutModeFromTargetNode, isIgnoredClick } from '../gap-cursor/utils';
@@ -111,14 +110,8 @@ const plugin = new SafePlugin({
111
110
  left: event.clientX,
112
111
  top: event.clientY
113
112
  });
114
- if (getBooleanFF('platform.editor.explicit-html-element-check')) {
115
- if (!posAtCoords || isIgnoredClick(event.target instanceof HTMLElement ? event.target : null)) {
116
- return false;
117
- }
118
- } else {
119
- if (!posAtCoords || isIgnoredClick(event.target)) {
120
- return false;
121
- }
113
+ if (!posAtCoords || isIgnoredClick(event.target instanceof HTMLElement ? event.target : null)) {
114
+ return false;
122
115
  }
123
116
  const isInsideTheTarget = posAtCoords.pos === posAtCoords.inside;
124
117
  if (isInsideTheTarget) {
@@ -4,7 +4,6 @@ import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
4
4
  import { findPositionOfNodeBefore } from '@atlaskit/editor-prosemirror/utils';
5
5
  import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
6
6
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
7
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
8
7
  import { deleteNode } from '../gap-cursor/actions';
9
8
  import { Direction } from '../gap-cursor/direction';
10
9
  import { getLayoutModeFromTargetNode, isIgnoredClick } from '../gap-cursor/utils';
@@ -107,14 +106,8 @@ var plugin = new SafePlugin({
107
106
  left: event.clientX,
108
107
  top: event.clientY
109
108
  });
110
- if (getBooleanFF('platform.editor.explicit-html-element-check')) {
111
- if (!posAtCoords || isIgnoredClick(event.target instanceof HTMLElement ? event.target : null)) {
112
- return false;
113
- }
114
- } else {
115
- if (!posAtCoords || isIgnoredClick(event.target)) {
116
- return false;
117
- }
109
+ if (!posAtCoords || isIgnoredClick(event.target instanceof HTMLElement ? event.target : null)) {
110
+ return false;
118
111
  }
119
112
  var isInsideTheTarget = posAtCoords.pos === posAtCoords.inside;
120
113
  if (isInsideTheTarget) {
@@ -1 +1 @@
1
- export { GapCursorSelection, JSON_ID, Side, GapBookmark, } from '@atlaskit/editor-common/selection';
1
+ export { GapCursorSelection, JSON_ID, Side, GapBookmark } from '@atlaskit/editor-common/selection';
@@ -1,4 +1,4 @@
1
1
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
2
- export declare function createOnKeydown({ __livePage, }: {
2
+ export declare function createOnKeydown({ __livePage }: {
3
3
  __livePage?: boolean;
4
4
  }): (view: EditorView, event: Event) => boolean;
@@ -1 +1 @@
1
- export { GapCursorSelection, JSON_ID, Side, GapBookmark, } from '@atlaskit/editor-common/selection';
1
+ export { GapCursorSelection, JSON_ID, Side, GapBookmark } from '@atlaskit/editor-common/selection';
@@ -1,4 +1,4 @@
1
1
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
2
- export declare function createOnKeydown({ __livePage, }: {
2
+ export declare function createOnKeydown({ __livePage }: {
3
3
  __livePage?: boolean;
4
4
  }): (view: EditorView, event: Event) => boolean;
package/package.json CHANGED
@@ -1,92 +1,87 @@
1
1
  {
2
- "name": "@atlaskit/editor-plugin-selection",
3
- "version": "1.2.5",
4
- "description": "Selection plugin for @atlaskit/editor-core",
5
- "publishConfig": {
6
- "registry": "https://registry.npmjs.org/"
7
- },
8
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
9
- "author": "Atlassian Pty Ltd",
10
- "license": "Apache-2.0",
11
- "main": "dist/cjs/index.js",
12
- "module": "dist/esm/index.js",
13
- "module:es2019": "dist/es2019/index.js",
14
- "types": "dist/types/index.d.ts",
15
- "sideEffects": false,
16
- "atlaskit:src": "src/index.ts",
17
- "atlassian": {
18
- "team": "Editor: Lego",
19
- "releaseModel": "continuous",
20
- "singleton": true,
21
- "runReact18": false
22
- },
23
- "dependencies": {
24
- "@atlaskit/editor-common": "^81.0.0",
25
- "@atlaskit/editor-prosemirror": "4.0.1",
26
- "@atlaskit/editor-shared-styles": "^2.11.0",
27
- "@atlaskit/editor-tables": "^2.7.0",
28
- "@atlaskit/platform-feature-flags": "^0.2.4",
29
- "@babel/runtime": "^7.0.0"
30
- },
31
- "peerDependencies": {
32
- "react": "^16.8.0"
33
- },
34
- "devDependencies": {
35
- "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
36
- "typescript": "~5.4.2"
37
- },
38
- "techstack": {
39
- "@atlassian/frontend": {
40
- "import-structure": [
41
- "atlassian-conventions"
42
- ],
43
- "circular-dependencies": [
44
- "file-and-folder-level"
45
- ]
46
- },
47
- "@repo/internal": {
48
- "dom-events": "use-bind-event-listener",
49
- "analytics": [
50
- "analytics-next"
51
- ],
52
- "design-tokens": [
53
- "color"
54
- ],
55
- "theming": [
56
- "react-context"
57
- ],
58
- "ui-components": [
59
- "lite-mode"
60
- ],
61
- "deprecation": "no-deprecated-imports",
62
- "styling": [
63
- "emotion",
64
- "emotion"
65
- ],
66
- "imports": [
67
- "import-no-extraneous-disable-for-examples-and-docs"
68
- ]
69
- }
70
- },
71
- "af:exports": {
72
- ".": "./src/index.ts",
73
- "./types": "./src/types.ts"
74
- },
75
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0",
76
- "stricter": {
77
- "no-unused-dependencies": {
78
- "checkDevDependencies": true
79
- }
80
- },
81
- "platform-feature-flags": {
82
- "platform.editor.change-navigation-for-atom-nodes": {
83
- "type": "boolean"
84
- },
85
- "platform.editor.single-player-expand": {
86
- "type": "boolean"
87
- },
88
- "platform.editor.explicit-html-element-check": {
89
- "type": "boolean"
90
- }
91
- }
92
- }
2
+ "name": "@atlaskit/editor-plugin-selection",
3
+ "version": "1.2.7",
4
+ "description": "Selection plugin for @atlaskit/editor-core",
5
+ "publishConfig": {
6
+ "registry": "https://registry.npmjs.org/"
7
+ },
8
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
9
+ "author": "Atlassian Pty Ltd",
10
+ "license": "Apache-2.0",
11
+ "main": "dist/cjs/index.js",
12
+ "module": "dist/esm/index.js",
13
+ "module:es2019": "dist/es2019/index.js",
14
+ "types": "dist/types/index.d.ts",
15
+ "sideEffects": false,
16
+ "atlaskit:src": "src/index.ts",
17
+ "atlassian": {
18
+ "team": "Editor: Lego",
19
+ "releaseModel": "continuous",
20
+ "singleton": true,
21
+ "runReact18": false
22
+ },
23
+ "dependencies": {
24
+ "@atlaskit/editor-common": "^82.8.0",
25
+ "@atlaskit/editor-prosemirror": "4.0.1",
26
+ "@atlaskit/editor-shared-styles": "^2.12.0",
27
+ "@atlaskit/editor-tables": "^2.7.0",
28
+ "@atlaskit/platform-feature-flags": "^0.2.4",
29
+ "@babel/runtime": "^7.0.0"
30
+ },
31
+ "peerDependencies": {
32
+ "react": "^16.8.0"
33
+ },
34
+ "devDependencies": {
35
+ "typescript": "~5.4.2"
36
+ },
37
+ "techstack": {
38
+ "@atlassian/frontend": {
39
+ "import-structure": [
40
+ "atlassian-conventions"
41
+ ],
42
+ "circular-dependencies": [
43
+ "file-and-folder-level"
44
+ ]
45
+ },
46
+ "@repo/internal": {
47
+ "dom-events": "use-bind-event-listener",
48
+ "analytics": [
49
+ "analytics-next"
50
+ ],
51
+ "design-tokens": [
52
+ "color"
53
+ ],
54
+ "theming": [
55
+ "react-context"
56
+ ],
57
+ "ui-components": [
58
+ "lite-mode"
59
+ ],
60
+ "deprecation": "no-deprecated-imports",
61
+ "styling": [
62
+ "emotion",
63
+ "emotion"
64
+ ],
65
+ "imports": [
66
+ "import-no-extraneous-disable-for-examples-and-docs"
67
+ ]
68
+ }
69
+ },
70
+ "af:exports": {
71
+ ".": "./src/index.ts",
72
+ "./types": "./src/types.ts"
73
+ },
74
+ "stricter": {
75
+ "no-unused-dependencies": {
76
+ "checkDevDependencies": true
77
+ }
78
+ },
79
+ "platform-feature-flags": {
80
+ "platform.editor.change-navigation-for-atom-nodes": {
81
+ "type": "boolean"
82
+ },
83
+ "platform.editor.single-player-expand": {
84
+ "type": "boolean"
85
+ }
86
+ }
87
+ }
package/report.api.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  ## API Report File for "@atlaskit/editor-plugin-selection"
4
4
 
5
- > Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
5
+ > Do not edit this file. This report is auto-generated using
6
+ > [API Extractor](https://api-extractor.com/).
6
7
  > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
7
8
 
8
9
  ### Table of contents
@@ -26,20 +27,20 @@ import type { Transaction } from '@atlaskit/editor-prosemirror/state';
26
27
 
27
28
  // @public (undocumented)
28
29
  export type EditorSelectionAPI = {
29
- selectNearNode: SetSelectionRelativeToNode;
30
+ selectNearNode: SetSelectionRelativeToNode;
30
31
  };
31
32
 
32
33
  // @public (undocumented)
33
34
  export type SelectionPlugin = NextEditorPlugin<
34
- 'selection',
35
- {
36
- pluginConfiguration: SelectionPluginOptions | undefined;
37
- actions: EditorSelectionAPI;
38
- commands: {
39
- displayGapCursor: (toggle: boolean) => EditorCommand;
40
- };
41
- sharedState: SelectionSharedState;
42
- }
35
+ 'selection',
36
+ {
37
+ pluginConfiguration: SelectionPluginOptions | undefined;
38
+ actions: EditorSelectionAPI;
39
+ commands: {
40
+ displayGapCursor: (toggle: boolean) => EditorCommand;
41
+ };
42
+ sharedState: SelectionSharedState;
43
+ }
43
44
  >;
44
45
 
45
46
  // @public (undocumented)
@@ -50,8 +51,8 @@ interface SelectionPluginOptions extends LongPressSelectionPluginOptions {}
50
51
 
51
52
  // @public (undocumented)
52
53
  export type SetSelectionRelativeToNode = (props: {
53
- selectionRelativeToNode?: RelativeSelectionPos;
54
- selection?: Selection_2 | null;
54
+ selectionRelativeToNode?: RelativeSelectionPos;
55
+ selection?: Selection_2 | null;
55
56
  }) => (state: EditorState) => Transaction;
56
57
 
57
58
  // (No @packageDocumentation comment for this package)
@@ -65,7 +66,7 @@ export type SetSelectionRelativeToNode = (props: {
65
66
 
66
67
  ```json
67
68
  {
68
- "react": "^16.8.0"
69
+ "react": "^16.8.0"
69
70
  }
70
71
  ```
71
72