@atlaskit/editor-plugin-selection-marker 6.2.4 → 6.2.5

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,13 @@
1
1
  # @atlaskit/editor-plugin-selection-marker
2
2
 
3
+ ## 6.2.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`14bcefe1ca8ed`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/14bcefe1ca8ed) -
8
+ upgrade use of browser util
9
+ - Updated dependencies
10
+
3
11
  ## 6.2.4
4
12
 
5
13
  ### Patch Changes
@@ -14,6 +14,7 @@ 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");
17
18
  var _selectionDecoration = require("../ui/selection-decoration");
18
19
  var _widgetDecoration = require("../ui/widget-decoration");
19
20
  var key = exports.key = new _state.PluginKey('selectionMarker');
@@ -78,7 +79,8 @@ var createPlugin = exports.createPlugin = function createPlugin(api) {
78
79
  },
79
80
  props: {
80
81
  decorations: function decorations(state) {
81
- if (_browser.browser.ie) {
82
+ var browser = (0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) ? (0, _browser.getBrowserInfo)() : _browser.browser;
83
+ if (browser.ie) {
82
84
  return debouncedDecorations(state);
83
85
  } else {
84
86
  var _key$getState2;
@@ -1,9 +1,10 @@
1
1
  import debounce from 'lodash/debounce';
2
- import { browser } from '@atlaskit/editor-common/browser';
2
+ import { browser as browserLegacy, 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';
7
8
  import { selectionDecoration } from '../ui/selection-decoration';
8
9
  import { createWidgetDecoration } from '../ui/widget-decoration';
9
10
  export const key = new PluginKey('selectionMarker');
@@ -70,6 +71,7 @@ export const createPlugin = api => {
70
71
  },
71
72
  props: {
72
73
  decorations: state => {
74
+ const browser = expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? getBrowserInfo() : browserLegacy;
73
75
  if (browser.ie) {
74
76
  return debouncedDecorations(state);
75
77
  } else {
@@ -1,10 +1,11 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import debounce from 'lodash/debounce';
3
- import { browser } from '@atlaskit/editor-common/browser';
3
+ import { browser as browserLegacy, 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';
8
9
  import { selectionDecoration } from '../ui/selection-decoration';
9
10
  import { createWidgetDecoration } from '../ui/widget-decoration';
10
11
  export var key = new PluginKey('selectionMarker');
@@ -69,6 +70,7 @@ export var createPlugin = function createPlugin(api) {
69
70
  },
70
71
  props: {
71
72
  decorations: function decorations(state) {
73
+ var browser = expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? getBrowserInfo() : browserLegacy;
72
74
  if (browser.ie) {
73
75
  return debouncedDecorations(state);
74
76
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection-marker",
3
- "version": "6.2.4",
3
+ "version": "6.2.5",
4
4
  "description": "Selection marker plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,21 +31,21 @@
31
31
  "@atlaskit/editor-plugin-decorations": "^6.1.0",
32
32
  "@atlaskit/editor-plugin-editor-disabled": "^6.1.0",
33
33
  "@atlaskit/editor-plugin-focus": "^5.0.0",
34
- "@atlaskit/editor-plugin-toolbar": "^3.3.0",
34
+ "@atlaskit/editor-plugin-toolbar": "^3.4.0",
35
35
  "@atlaskit/editor-plugin-type-ahead": "^6.5.0",
36
36
  "@atlaskit/editor-prosemirror": "7.0.0",
37
37
  "@atlaskit/link": "^3.2.0",
38
38
  "@atlaskit/platform-feature-flags": "^1.1.0",
39
39
  "@atlaskit/primitives": "^16.0.0",
40
40
  "@atlaskit/theme": "^21.0.0",
41
- "@atlaskit/tmp-editor-statsig": "^13.13.0",
41
+ "@atlaskit/tmp-editor-statsig": "^13.18.0",
42
42
  "@atlaskit/tokens": "^7.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": "^110.14.0",
48
+ "@atlaskit/editor-common": "^110.18.0",
49
49
  "react": "^18.2.0",
50
50
  "react-dom": "^18.2.0"
51
51
  },