@atlaskit/editor-plugin-base 1.7.2 → 1.7.3
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,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-base
|
|
2
2
|
|
|
3
|
+
## 1.7.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#117973](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117973)
|
|
8
|
+
[`6e37bac62083f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6e37bac62083f) -
|
|
9
|
+
moved one const, added new entry point for other and deprecated
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 1.7.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.isInlineNodeView = exports.inlineCursorTargetStateKey = exports.default = void 0;
|
|
7
7
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
8
8
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
9
|
+
var _whitespace = require("@atlaskit/editor-common/whitespace");
|
|
9
10
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
10
11
|
var _view = require("@atlaskit/editor-prosemirror/view");
|
|
11
12
|
var inlineCursorTargetStateKey = exports.inlineCursorTargetStateKey = new _state.PluginKey('inlineCursorTargetPlugin');
|
|
@@ -45,7 +46,7 @@ var _default = exports.default = function _default() {
|
|
|
45
46
|
var node = document.createElement('span');
|
|
46
47
|
node.contentEditable = 'true';
|
|
47
48
|
node.setAttribute('aria-hidden', 'true');
|
|
48
|
-
node.appendChild(document.createTextNode(
|
|
49
|
+
node.appendChild(document.createTextNode(_whitespace.ZERO_WIDTH_SPACE));
|
|
49
50
|
node.className = 'cursor-target';
|
|
50
51
|
var $from = selection.$from;
|
|
51
52
|
var rightPosition = $from.pos;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import { browser, isTextSelection
|
|
2
|
+
import { browser, isTextSelection } from '@atlaskit/editor-common/utils';
|
|
3
|
+
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace';
|
|
3
4
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
4
5
|
import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
5
6
|
export const inlineCursorTargetStateKey = new PluginKey('inlineCursorTargetPlugin');
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import { browser, isTextSelection
|
|
2
|
+
import { browser, isTextSelection } from '@atlaskit/editor-common/utils';
|
|
3
|
+
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace';
|
|
3
4
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
4
5
|
import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
5
6
|
export var inlineCursorTargetStateKey = new PluginKey('inlineCursorTargetPlugin');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-base",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.3",
|
|
4
4
|
"description": "Base plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/adf-schema": "^39.0.3",
|
|
36
|
-
"@atlaskit/editor-common": "^84.
|
|
36
|
+
"@atlaskit/editor-common": "^84.3.0",
|
|
37
37
|
"@atlaskit/editor-plugin-context-identifier": "^1.1.0",
|
|
38
38
|
"@atlaskit/editor-plugin-feature-flags": "^1.1.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "4.0.1",
|