@atlaskit/editor-plugin-selection-marker 8.0.31 → 8.0.32
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-selection-marker
|
|
2
2
|
|
|
3
|
+
## 8.0.32
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`73b2fc243f544`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/73b2fc243f544) -
|
|
8
|
+
Cleaning up getBrowserInfo which was behind experiment platform_editor_hydratable_ui and is now
|
|
9
|
+
rolled out
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 8.0.31
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -14,7 +14,6 @@ var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
|
14
14
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
15
15
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
16
16
|
var _view = require("@atlaskit/editor-prosemirror/view");
|
|
17
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
18
17
|
var _selectionDecoration = require("../ui/selection-decoration");
|
|
19
18
|
var _widgetDecoration = require("../ui/widget-decoration");
|
|
20
19
|
var key = exports.key = new _state.PluginKey('selectionMarker');
|
|
@@ -79,7 +78,7 @@ var createPlugin = exports.createPlugin = function createPlugin(api) {
|
|
|
79
78
|
},
|
|
80
79
|
props: {
|
|
81
80
|
decorations: function decorations(state) {
|
|
82
|
-
var browser = (0,
|
|
81
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
83
82
|
if (browser.ie) {
|
|
84
83
|
return debouncedDecorations(state);
|
|
85
84
|
} else {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import debounce from 'lodash/debounce';
|
|
2
|
-
import {
|
|
2
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
3
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
4
|
import { isEmptyDocument } from '@atlaskit/editor-common/utils';
|
|
5
5
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
7
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
7
|
import { selectionDecoration } from '../ui/selection-decoration';
|
|
9
8
|
import { createWidgetDecoration } from '../ui/widget-decoration';
|
|
10
9
|
export const key = new PluginKey('selectionMarker');
|
|
@@ -71,7 +70,7 @@ export const createPlugin = api => {
|
|
|
71
70
|
},
|
|
72
71
|
props: {
|
|
73
72
|
decorations: state => {
|
|
74
|
-
const browser =
|
|
73
|
+
const browser = getBrowserInfo();
|
|
75
74
|
if (browser.ie) {
|
|
76
75
|
return debouncedDecorations(state);
|
|
77
76
|
} else {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import debounce from 'lodash/debounce';
|
|
3
|
-
import {
|
|
3
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
4
4
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
5
5
|
import { isEmptyDocument } from '@atlaskit/editor-common/utils';
|
|
6
6
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
7
7
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
8
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
8
|
import { selectionDecoration } from '../ui/selection-decoration';
|
|
10
9
|
import { createWidgetDecoration } from '../ui/widget-decoration';
|
|
11
10
|
export var key = new PluginKey('selectionMarker');
|
|
@@ -70,7 +69,7 @@ export var createPlugin = function createPlugin(api) {
|
|
|
70
69
|
},
|
|
71
70
|
props: {
|
|
72
71
|
decorations: function decorations(state) {
|
|
73
|
-
var browser =
|
|
72
|
+
var browser = getBrowserInfo();
|
|
74
73
|
if (browser.ie) {
|
|
75
74
|
return debouncedDecorations(state);
|
|
76
75
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection-marker",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.32",
|
|
4
4
|
"description": "Selection marker plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
"@atlaskit/link": "^3.4.0",
|
|
39
39
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
40
40
|
"@atlaskit/theme": "^23.0.0",
|
|
41
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
41
|
+
"@atlaskit/tmp-editor-statsig": "^62.0.0",
|
|
42
42
|
"@atlaskit/tokens": "^13.0.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0",
|
|
44
44
|
"@emotion/react": "^11.7.1",
|
|
45
45
|
"lodash": "^4.17.21"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@atlaskit/editor-common": "^112.
|
|
48
|
+
"@atlaskit/editor-common": "^112.21.0",
|
|
49
49
|
"react": "^18.2.0",
|
|
50
50
|
"react-dom": "^18.2.0"
|
|
51
51
|
},
|