@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 +15 -0
- package/README.md +14 -1
- package/dist/types/editor-actions/index.d.ts +1 -1
- package/dist/types/pm-plugins/events/mouseout.d.ts +1 -1
- package/dist/types/pm-plugins/mark-boundary-cursor/utils/inline-code-side.d.ts +1 -1
- package/dist/types-ts4.5/editor-actions/index.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/events/mouseout.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/mark-boundary-cursor/utils/inline-code-side.d.ts +1 -1
- package/package.json +1 -1
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
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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;
|