@atlaskit/editor-plugin-breakout 6.0.2 → 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,24 @@
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
+
16
+ ## 6.0.3
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+
3
22
  ## 6.0.2
4
23
 
5
24
  ### Patch Changes
@@ -264,7 +283,6 @@
264
283
  shared context or singletons.
265
284
 
266
285
  **HOW TO ADJUST:**
267
-
268
286
  - Consumers must now explicitly install `@atlaskit/editor-common` in their own project if they use
269
287
  any of these editor plugins.
270
288
  - Ensure the version you install matches the version required by the plugins.
@@ -830,7 +848,6 @@
830
848
  - [#171014](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/171014)
831
849
  [`6163248356c63`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6163248356c63) -
832
850
  [ED-25833] Replace the following FGs with experiment `platform_editor_advanced_layouts`
833
-
834
851
  - platform_editor_advanced_layouts_breakout_resizing
835
852
  - platform_editor_advanced_layouts_pre_release_1
836
853
  - platform_editor_advanced_layouts_pre_release_2
@@ -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.2",
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,22 +29,22 @@
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",
34
- "@atlaskit/editor-plugin-editor-disabled": "^6.0.0",
32
+ "@atlaskit/adf-schema": "^51.3.0",
33
+ "@atlaskit/editor-plugin-block-controls": "^7.3.0",
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",
37
- "@atlaskit/editor-plugin-interaction": "^8.0.0",
37
+ "@atlaskit/editor-plugin-interaction": "^9.0.0",
38
38
  "@atlaskit/editor-plugin-user-intent": "^4.0.0",
39
39
  "@atlaskit/editor-plugin-width": "^7.0.0",
40
40
  "@atlaskit/editor-prosemirror": "7.0.0",
41
- "@atlaskit/editor-shared-styles": "^3.6.0",
42
- "@atlaskit/icon": "^28.3.0",
41
+ "@atlaskit/editor-shared-styles": "^3.7.0",
42
+ "@atlaskit/icon": "^28.5.0",
43
43
  "@atlaskit/platform-feature-flags": "^1.1.0",
44
44
  "@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
45
45
  "@atlaskit/theme": "^21.0.0",
46
- "@atlaskit/tmp-editor-statsig": "^13.0.0",
47
- "@atlaskit/tokens": "^6.4.0",
46
+ "@atlaskit/tmp-editor-statsig": "^13.13.0",
47
+ "@atlaskit/tokens": "^7.0.0",
48
48
  "@atlaskit/tooltip": "^20.5.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "@emotion/react": "^11.7.1",
@@ -53,7 +53,7 @@
53
53
  "uuid": "^3.1.0"
54
54
  },
55
55
  "peerDependencies": {
56
- "@atlaskit/editor-common": "^110.4.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:^",