@atlaskit/editor-plugin-breakout 8.0.33 → 9.0.0

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,20 @@
1
1
  # @atlaskit/editor-plugin-breakout
2
2
 
3
+ ## 9.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 8.0.34
10
+
11
+ ### Patch Changes
12
+
13
+ - [`73b2fc243f544`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/73b2fc243f544) -
14
+ Cleaning up getBrowserInfo which was behind experiment platform_editor_hydratable_ui and is now
15
+ rolled out
16
+ - Updated dependencies
17
+
3
18
  ## 8.0.33
4
19
 
5
20
  ### Patch Changes
@@ -8,7 +8,6 @@ var _browser = require("@atlaskit/editor-common/browser");
8
8
  var _utils = require("@atlaskit/editor-common/utils");
9
9
  var _state = require("@atlaskit/editor-prosemirror/state");
10
10
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
11
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
12
11
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
13
12
  var _setBreakoutWidth = require("../editor-commands/set-breakout-width");
14
13
  var KEYBOARD_RESIZE_STEP = 10;
@@ -42,7 +41,7 @@ var getAncestorResizableNode = function getAncestorResizableNode(view, breakoutR
42
41
  };
43
42
  var handleKeyDown = exports.handleKeyDown = function handleKeyDown(api) {
44
43
  return function (view, event) {
45
- var browser = (0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) ? (0, _browser.getBrowserInfo)() : _browser.browser;
44
+ var browser = (0, _browser.getBrowserInfo)();
46
45
  var metaKey = browser.mac ? event.metaKey : event.ctrlKey;
47
46
  var isBracketKey = event.code === 'BracketRight' || event.code === 'BracketLeft';
48
47
  if (metaKey && event.altKey && isBracketKey) {
@@ -1,8 +1,7 @@
1
- import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
1
+ import { getBrowserInfo } from '@atlaskit/editor-common/browser';
2
2
  import { getBreakoutResizableNodeTypes } from '@atlaskit/editor-common/utils';
3
3
  import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
4
4
  import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
5
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
6
5
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
7
6
  import { setBreakoutWidth } from '../editor-commands/set-breakout-width';
8
7
  const KEYBOARD_RESIZE_STEP = 10;
@@ -35,7 +34,7 @@ const getAncestorResizableNode = (view, breakoutResizableNodes) => {
35
34
  return null;
36
35
  };
37
36
  export const handleKeyDown = api => (view, event) => {
38
- const browser = expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? getBrowserInfo() : browserLegacy;
37
+ const browser = getBrowserInfo();
39
38
  const metaKey = browser.mac ? event.metaKey : event.ctrlKey;
40
39
  const isBracketKey = event.code === 'BracketRight' || event.code === 'BracketLeft';
41
40
  if (metaKey && event.altKey && isBracketKey) {
@@ -1,8 +1,7 @@
1
- import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
1
+ import { getBrowserInfo } from '@atlaskit/editor-common/browser';
2
2
  import { getBreakoutResizableNodeTypes } from '@atlaskit/editor-common/utils';
3
3
  import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
4
4
  import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
5
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
6
5
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
7
6
  import { setBreakoutWidth } from '../editor-commands/set-breakout-width';
8
7
  var KEYBOARD_RESIZE_STEP = 10;
@@ -36,7 +35,7 @@ var getAncestorResizableNode = function getAncestorResizableNode(view, breakoutR
36
35
  };
37
36
  export var handleKeyDown = function handleKeyDown(api) {
38
37
  return function (view, event) {
39
- var browser = expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? getBrowserInfo() : browserLegacy;
38
+ var browser = getBrowserInfo();
40
39
  var metaKey = browser.mac ? event.metaKey : event.ctrlKey;
41
40
  var isBracketKey = event.code === 'BracketRight' || event.code === 'BracketLeft';
42
41
  if (metaKey && event.altKey && isBracketKey) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-breakout",
3
- "version": "8.0.33",
3
+ "version": "9.0.0",
4
4
  "description": "Breakout plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,21 +29,21 @@
29
29
  ],
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
- "@atlaskit/adf-schema": "^52.4.0",
33
- "@atlaskit/editor-plugin-block-controls": "^9.1.0",
34
- "@atlaskit/editor-plugin-editor-disabled": "^8.0.0",
35
- "@atlaskit/editor-plugin-editor-viewmode": "^10.0.0",
36
- "@atlaskit/editor-plugin-guideline": "^8.0.0",
37
- "@atlaskit/editor-plugin-interaction": "^17.0.0",
38
- "@atlaskit/editor-plugin-user-intent": "^6.0.0",
39
- "@atlaskit/editor-plugin-width": "^9.0.0",
32
+ "@atlaskit/adf-schema": "^52.5.0",
33
+ "@atlaskit/editor-plugin-block-controls": "^10.0.0",
34
+ "@atlaskit/editor-plugin-editor-disabled": "^9.0.0",
35
+ "@atlaskit/editor-plugin-editor-viewmode": "^11.0.0",
36
+ "@atlaskit/editor-plugin-guideline": "^9.0.0",
37
+ "@atlaskit/editor-plugin-interaction": "^18.0.0",
38
+ "@atlaskit/editor-plugin-user-intent": "^7.0.0",
39
+ "@atlaskit/editor-plugin-width": "^10.0.0",
40
40
  "@atlaskit/editor-prosemirror": "^7.3.0",
41
41
  "@atlaskit/editor-shared-styles": "^3.10.0",
42
- "@atlaskit/icon": "^34.0.0",
42
+ "@atlaskit/icon": "^34.2.0",
43
43
  "@atlaskit/platform-feature-flags": "^1.1.0",
44
44
  "@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
45
- "@atlaskit/theme": "^23.0.0",
46
- "@atlaskit/tmp-editor-statsig": "^61.0.0",
45
+ "@atlaskit/theme": "^23.1.0",
46
+ "@atlaskit/tmp-editor-statsig": "^62.4.0",
47
47
  "@atlaskit/tokens": "^13.0.0",
48
48
  "@atlaskit/tooltip": "^21.1.0",
49
49
  "@babel/runtime": "^7.0.0",
@@ -53,7 +53,7 @@
53
53
  "uuid": "^3.1.0"
54
54
  },
55
55
  "peerDependencies": {
56
- "@atlaskit/editor-common": "^112.20.0",
56
+ "@atlaskit/editor-common": "^113.0.0",
57
57
  "react": "^18.2.0",
58
58
  "react-dom": "^18.2.0",
59
59
  "react-intl-next": "npm:react-intl@^5.18.1"