@atlaskit/editor-plugin-breakout 6.0.3 → 6.1.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,18 @@
1
1
  # @atlaskit/editor-plugin-breakout
2
2
 
3
+ ## 6.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`5167552fe1a93`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5167552fe1a93) -
8
+ [EDITOR-2339] Bump @atlaskit/adf-schema to 51.3.0
9
+
10
+ ### Patch Changes
11
+
12
+ - [`3430ee4d120bd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3430ee4d120bd) -
13
+ upgrade use of browser util
14
+ - Updated dependencies
15
+
3
16
  ## 6.0.3
4
17
 
5
18
  ### Patch Changes
@@ -7,6 +7,7 @@ exports.handleKeyDown = void 0;
7
7
  var _browser = require("@atlaskit/editor-common/browser");
8
8
  var _state = require("@atlaskit/editor-prosemirror/state");
9
9
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
10
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
10
11
  var _setBreakoutWidth = require("../editor-commands/set-breakout-width");
11
12
  var KEYBOARD_RESIZE_STEP = 10;
12
13
  var getAncestorResizableNode = function getAncestorResizableNode(view, breakoutResizableNodes) {
@@ -39,7 +40,8 @@ var getAncestorResizableNode = function getAncestorResizableNode(view, breakoutR
39
40
  };
40
41
  var handleKeyDown = exports.handleKeyDown = function handleKeyDown(api) {
41
42
  return function (view, event) {
42
- var metaKey = _browser.browser.mac ? event.metaKey : event.ctrlKey;
43
+ var browser = (0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) ? (0, _browser.getBrowserInfo)() : _browser.browser;
44
+ var metaKey = browser.mac ? event.metaKey : event.ctrlKey;
43
45
  var isBracketKey = event.code === 'BracketRight' || event.code === 'BracketLeft';
44
46
  if (metaKey && event.altKey && isBracketKey) {
45
47
  var _view$state$schema$no = view.state.schema.nodes,
@@ -1,6 +1,7 @@
1
- import { browser } from '@atlaskit/editor-common/browser';
1
+ import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
2
2
  import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
3
3
  import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
4
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
4
5
  import { setBreakoutWidth } from '../editor-commands/set-breakout-width';
5
6
  const KEYBOARD_RESIZE_STEP = 10;
6
7
  const getAncestorResizableNode = (view, breakoutResizableNodes) => {
@@ -32,6 +33,7 @@ const getAncestorResizableNode = (view, breakoutResizableNodes) => {
32
33
  return null;
33
34
  };
34
35
  export const handleKeyDown = api => (view, event) => {
36
+ const browser = expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? getBrowserInfo() : browserLegacy;
35
37
  const metaKey = browser.mac ? event.metaKey : event.ctrlKey;
36
38
  const isBracketKey = event.code === 'BracketRight' || event.code === 'BracketLeft';
37
39
  if (metaKey && event.altKey && isBracketKey) {
@@ -1,6 +1,7 @@
1
- import { browser } from '@atlaskit/editor-common/browser';
1
+ import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
2
2
  import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
3
3
  import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
4
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
4
5
  import { setBreakoutWidth } from '../editor-commands/set-breakout-width';
5
6
  var KEYBOARD_RESIZE_STEP = 10;
6
7
  var getAncestorResizableNode = function getAncestorResizableNode(view, breakoutResizableNodes) {
@@ -33,6 +34,7 @@ var getAncestorResizableNode = function getAncestorResizableNode(view, breakoutR
33
34
  };
34
35
  export var handleKeyDown = function handleKeyDown(api) {
35
36
  return function (view, event) {
37
+ var browser = expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? getBrowserInfo() : browserLegacy;
36
38
  var metaKey = browser.mac ? event.metaKey : event.ctrlKey;
37
39
  var isBracketKey = event.code === 'BracketRight' || event.code === 'BracketLeft';
38
40
  if (metaKey && event.altKey && isBracketKey) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-breakout",
3
- "version": "6.0.3",
3
+ "version": "6.1.0",
4
4
  "description": "Breakout plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,8 +29,8 @@
29
29
  ],
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
- "@atlaskit/adf-schema": "^51.2.0",
33
- "@atlaskit/editor-plugin-block-controls": "^7.2.0",
32
+ "@atlaskit/adf-schema": "^51.3.0",
33
+ "@atlaskit/editor-plugin-block-controls": "^7.3.0",
34
34
  "@atlaskit/editor-plugin-editor-disabled": "^6.1.0",
35
35
  "@atlaskit/editor-plugin-editor-viewmode": "^8.0.0",
36
36
  "@atlaskit/editor-plugin-guideline": "^6.0.0",
@@ -53,7 +53,7 @@
53
53
  "uuid": "^3.1.0"
54
54
  },
55
55
  "peerDependencies": {
56
- "@atlaskit/editor-common": "^110.13.0",
56
+ "@atlaskit/editor-common": "^110.14.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"
@@ -61,7 +61,7 @@
61
61
  "devDependencies": {
62
62
  "@af/integration-testing": "workspace:^",
63
63
  "@af/visual-regression": "workspace:^",
64
- "@atlaskit/editor-plugin-code-block": "^8.0.0",
64
+ "@atlaskit/editor-plugin-code-block": "^8.1.0",
65
65
  "@atlaskit/editor-plugin-composition": "^5.0.0",
66
66
  "@atlaskit/editor-plugin-decorations": "^6.1.0",
67
67
  "@atlaskit/ssr": "workspace:^",