@atlaskit/editor-plugin-selection 8.0.26 → 8.0.28

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,20 @@
1
1
  # @atlaskit/editor-plugin-selection
2
2
 
3
+ ## 8.0.28
4
+
5
+ ### Patch Changes
6
+
7
+ - [`fa146e17e08d6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fa146e17e08d6) -
8
+ Update README.md and 0-intro.tsx
9
+
10
+ ## 8.0.27
11
+
12
+ ### Patch Changes
13
+
14
+ - [`7b7c52dff5d7d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7b7c52dff5d7d) -
15
+ Fix eslint violations for type import syntax
16
+ - Updated dependencies
17
+
3
18
  ## 8.0.26
4
19
 
5
20
  ### Patch Changes
package/README.md CHANGED
@@ -1,10 +1,23 @@
1
- # Editor plugin selection
1
+ # Editor Plugin Selection
2
2
 
3
3
  Selection plugin for @atlaskit/editor-core
4
4
 
5
5
  **Note:** This component is designed for internal Atlassian development.
6
6
  External contributors will be able to use this component but will not be able to submit issues.
7
7
 
8
+ ## Overview
9
+
10
+ The Selection plugin provides comprehensive selection and cursor management capabilities for the Atlassian Editor. It integrates with ProseMirror to handle text selection, cursor positioning, gap cursors for structural navigation, and mark boundary indicators for better visual feedback during editing.
11
+
12
+ ## Key features
13
+
14
+ - **Text selection management** - Handle and manipulate text selections within the editor
15
+ - **Gap cursor support** - Navigate between non-text blocks with visual indicators
16
+ - **Mark boundary cursors** - Display cursor position indicators at mark boundaries (e.g., code, bold, italic)
17
+ - **Auto-expand selection** - Automatically expand selection ranges when interacting with inline nodes
18
+ - **Selection utilities** - Retrieve selection fragments and local IDs from the editor state
19
+ - **Relative selection positioning** - Position selections relative to document nodes
20
+
8
21
  ## Install
9
22
  ---
10
23
  - **Install** - *yarn add @atlaskit/editor-plugin-selection*
@@ -1,4 +1,4 @@
1
- import { type ExtractInjectionAPI } from '@atlaskit/editor-common/types';
1
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
2
  import { type JSONNode } from '@atlaskit/editor-json-transformer';
3
3
  import { Fragment } from '@atlaskit/editor-prosemirror/model';
4
4
  import { type Selection } from '@atlaskit/editor-prosemirror/state';
@@ -1,4 +1,4 @@
1
1
  import { type Selection } from '@atlaskit/editor-prosemirror/state';
2
- import { type EditorView } from '@atlaskit/editor-prosemirror/view';
2
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
3
  export declare function isValidSelection(selection: Selection): boolean;
4
4
  export declare function onMouseOut(view: EditorView, event: MouseEvent): boolean;
@@ -1,4 +1,4 @@
1
- import { type Mark } from '@atlaskit/editor-prosemirror/model';
1
+ import type { Mark } from '@atlaskit/editor-prosemirror/model';
2
2
  import { MarksSide } from '../marks-side';
3
3
  type GetInlineCodeCursorSideOptions = {
4
4
  leftMarks: readonly Mark[];
@@ -1,4 +1,4 @@
1
- import { type ExtractInjectionAPI } from '@atlaskit/editor-common/types';
1
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
2
  import { type JSONNode } from '@atlaskit/editor-json-transformer';
3
3
  import { Fragment } from '@atlaskit/editor-prosemirror/model';
4
4
  import { type Selection } from '@atlaskit/editor-prosemirror/state';
@@ -1,4 +1,4 @@
1
1
  import { type Selection } from '@atlaskit/editor-prosemirror/state';
2
- import { type EditorView } from '@atlaskit/editor-prosemirror/view';
2
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
3
  export declare function isValidSelection(selection: Selection): boolean;
4
4
  export declare function onMouseOut(view: EditorView, event: MouseEvent): boolean;
@@ -1,4 +1,4 @@
1
- import { type Mark } from '@atlaskit/editor-prosemirror/model';
1
+ import type { Mark } from '@atlaskit/editor-prosemirror/model';
2
2
  import { MarksSide } from '../marks-side';
3
3
  type GetInlineCodeCursorSideOptions = {
4
4
  leftMarks: readonly Mark[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection",
3
- "version": "8.0.26",
3
+ "version": "8.0.28",
4
4
  "description": "Selection plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"