@atlaskit/editor-plugin-base 1.11.1 → 1.11.2

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,15 @@
1
1
  # @atlaskit/editor-plugin-base
2
2
 
3
+ ## 1.11.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#138801](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/138801)
8
+ [`eeb1f7ad41211`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/eeb1f7ad41211) -
9
+ Adding new entry-points to editor-common to optimise bundle size and move away from "utils"
10
+ entry-point.
11
+ - Updated dependencies
12
+
3
13
  ## 1.11.1
4
14
 
5
15
  ### Patch Changes
@@ -4,30 +4,30 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
+ var _browser = require("@atlaskit/editor-common/browser");
7
8
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
8
- var _utils = require("@atlaskit/editor-common/utils");
9
9
  var _state = require("@atlaskit/editor-prosemirror/state");
10
10
  function getCurrentBrowserAndVersion() {
11
11
  switch (true) {
12
- case _utils.browser.chrome === true:
12
+ case _browser.browser.chrome === true:
13
13
  return {
14
14
  browser: 'chrome',
15
- version: _utils.browser.chrome_version
15
+ version: _browser.browser.chrome_version
16
16
  };
17
- case _utils.browser.ie === true:
17
+ case _browser.browser.ie === true:
18
18
  return {
19
19
  browser: 'ie',
20
- version: _utils.browser.ie_version
20
+ version: _browser.browser.ie_version
21
21
  };
22
- case _utils.browser.gecko === true:
22
+ case _browser.browser.gecko === true:
23
23
  return {
24
24
  browser: 'gecko',
25
- version: _utils.browser.gecko_version
25
+ version: _browser.browser.gecko_version
26
26
  };
27
- case _utils.browser.safari === true:
27
+ case _browser.browser.safari === true:
28
28
  return {
29
29
  browser: 'safari',
30
- version: _utils.browser.safari_version
30
+ version: _browser.browser.safari_version
31
31
  };
32
32
  }
33
33
  return undefined;
@@ -46,10 +46,10 @@ var _default = exports.default = function _default(featureFlags) {
46
46
  return {};
47
47
  }
48
48
  var browserVersionDisableRange = browserConfigFeatureFlag[userCurrentBrowserAndVersion.browser];
49
- if (!browserVersionDisableRange || !_utils.browser[userCurrentBrowserAndVersion.browser]) {
49
+ if (!browserVersionDisableRange || !_browser.browser[userCurrentBrowserAndVersion.browser]) {
50
50
  return {};
51
51
  }
52
- var shouldDisableSpellcheck = !!browserVersionDisableRange.maximum ? userCurrentBrowserAndVersion.version >= browserVersionDisableRange.minimum && userCurrentBrowserAndVersion.version <= browserVersionDisableRange.maximum : _utils.browser[userCurrentBrowserAndVersion.browser] && userCurrentBrowserAndVersion.version >= browserVersionDisableRange.minimum;
52
+ var shouldDisableSpellcheck = !!browserVersionDisableRange.maximum ? userCurrentBrowserAndVersion.version >= browserVersionDisableRange.minimum && userCurrentBrowserAndVersion.version <= browserVersionDisableRange.maximum : _browser.browser[userCurrentBrowserAndVersion.browser] && userCurrentBrowserAndVersion.version >= browserVersionDisableRange.minimum;
53
53
  if (shouldDisableSpellcheck) {
54
54
  return {
55
55
  spellcheck: 'false'
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.isInlineNodeView = exports.inlineCursorTargetStateKey = exports.default = void 0;
7
+ var _browser = require("@atlaskit/editor-common/browser");
7
8
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
8
9
  var _utils = require("@atlaskit/editor-common/utils");
9
10
  var _whitespace = require("@atlaskit/editor-common/whitespace");
@@ -95,7 +96,7 @@ var _default = exports.default = function _default() {
95
96
  // TODO We may be able to remove this when playing the following ticket:
96
97
  // https://product-fabric.atlassian.net/browse/ED-14938
97
98
  keydown: function keydown(view, event) {
98
- if (_utils.browser.safari && event instanceof KeyboardEvent && event.shiftKey && (event.key === 'ArrowLeft' || event.key === 'ArrowRight')) {
99
+ if (_browser.browser.safari && event instanceof KeyboardEvent && event.shiftKey && (event.key === 'ArrowLeft' || event.key === 'ArrowRight')) {
99
100
  view.dispatch(view.state.tr.setMeta(inlineCursorTargetStateKey, {
100
101
  cursorTarget: undefined
101
102
  }));
@@ -1,5 +1,5 @@
1
+ import { browser as browserEnv } from '@atlaskit/editor-common/browser';
1
2
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { browser as browserEnv } from '@atlaskit/editor-common/utils';
3
3
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
4
4
  function getCurrentBrowserAndVersion() {
5
5
  switch (true) {
@@ -1,5 +1,6 @@
1
+ import { browser } from '@atlaskit/editor-common/browser';
1
2
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { browser, isTextSelection } from '@atlaskit/editor-common/utils';
3
+ import { isTextSelection } from '@atlaskit/editor-common/utils';
3
4
  import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace';
4
5
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
5
6
  import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
@@ -1,5 +1,5 @@
1
+ import { browser as browserEnv } from '@atlaskit/editor-common/browser';
1
2
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { browser as browserEnv } from '@atlaskit/editor-common/utils';
3
3
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
4
4
  function getCurrentBrowserAndVersion() {
5
5
  switch (true) {
@@ -1,5 +1,6 @@
1
+ import { browser } from '@atlaskit/editor-common/browser';
1
2
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { browser, isTextSelection } from '@atlaskit/editor-common/utils';
3
+ import { isTextSelection } from '@atlaskit/editor-common/utils';
3
4
  import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace';
4
5
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
5
6
  import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-base",
3
- "version": "1.11.1",
3
+ "version": "1.11.2",
4
4
  "description": "Base plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@atlaskit/adf-schema": "^40.9.0",
35
- "@atlaskit/editor-common": "^88.11.0",
35
+ "@atlaskit/editor-common": "^88.13.0",
36
36
  "@atlaskit/editor-plugin-context-identifier": "^1.3.0",
37
37
  "@atlaskit/editor-plugin-feature-flags": "^1.2.0",
38
38
  "@atlaskit/editor-prosemirror": "5.0.1",