@atlaskit/editor-plugin-code-block-advanced 8.0.29 → 8.0.31

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-code-block-advanced
2
2
 
3
+ ## 8.0.31
4
+
5
+ ### Patch Changes
6
+
7
+ - [`73b2fc243f544`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/73b2fc243f544) -
8
+ Cleaning up getBrowserInfo which was behind experiment platform_editor_hydratable_ui and is now
9
+ rolled out
10
+ - Updated dependencies
11
+
12
+ ## 8.0.30
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 8.0.29
4
19
 
5
20
  ### Patch Changes
@@ -37,7 +37,7 @@ var codeBlockKeymap = function codeBlockKeymap(_ref2) {
37
37
  selectCodeBlockNode = _ref2.selectCodeBlockNode,
38
38
  onMaybeNodeSelection = _ref2.onMaybeNodeSelection,
39
39
  customFindReplace = _ref2.customFindReplace;
40
- var browser = (0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) ? (0, _browser.getBrowserInfo)() : _browser.browser;
40
+ var browser = (0, _browser.getBrowserInfo)();
41
41
  return [{
42
42
  key: 'ArrowUp',
43
43
  run: function run(cm) {
@@ -1,6 +1,6 @@
1
1
  import { defaultKeymap, indentWithTab } from '@codemirror/commands';
2
2
  import { keymap as cmKeymap } from '@codemirror/view';
3
- import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
3
+ import { getBrowserInfo } from '@atlaskit/editor-common/browser';
4
4
  import { exitCode, selectAll } from '@atlaskit/editor-prosemirror/commands';
5
5
  import { undo, redo } from '@atlaskit/prosemirror-history';
6
6
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
@@ -31,7 +31,7 @@ const codeBlockKeymap = ({
31
31
  onMaybeNodeSelection,
32
32
  customFindReplace
33
33
  }) => {
34
- const browser = expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? getBrowserInfo() : browserLegacy;
34
+ const browser = getBrowserInfo();
35
35
  return [{
36
36
  key: 'ArrowUp',
37
37
  run: cm => maybeEscapeKeymap({
@@ -1,7 +1,7 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import { defaultKeymap, indentWithTab } from '@codemirror/commands';
3
3
  import { keymap as cmKeymap } from '@codemirror/view';
4
- import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
4
+ import { getBrowserInfo } from '@atlaskit/editor-common/browser';
5
5
  import { exitCode, selectAll } from '@atlaskit/editor-prosemirror/commands';
6
6
  import { undo, redo } from '@atlaskit/prosemirror-history';
7
7
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
@@ -30,7 +30,7 @@ var codeBlockKeymap = function codeBlockKeymap(_ref2) {
30
30
  selectCodeBlockNode = _ref2.selectCodeBlockNode,
31
31
  onMaybeNodeSelection = _ref2.onMaybeNodeSelection,
32
32
  customFindReplace = _ref2.customFindReplace;
33
- var browser = expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? getBrowserInfo() : browserLegacy;
33
+ var browser = getBrowserInfo();
34
34
  return [{
35
35
  key: 'ArrowUp',
36
36
  run: function run(cm) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-code-block-advanced",
3
- "version": "8.0.29",
3
+ "version": "8.0.31",
4
4
  "description": "CodeBlockAdvanced plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -38,7 +38,7 @@
38
38
  "@atlaskit/editor-prosemirror": "^7.3.0",
39
39
  "@atlaskit/platform-feature-flags": "^1.1.0",
40
40
  "@atlaskit/prosemirror-history": "^0.2.0",
41
- "@atlaskit/tmp-editor-statsig": "^60.2.0",
41
+ "@atlaskit/tmp-editor-statsig": "^62.0.0",
42
42
  "@atlaskit/tokens": "^13.0.0",
43
43
  "@babel/runtime": "^7.0.0",
44
44
  "@codemirror/autocomplete": "6.18.4",
@@ -55,7 +55,7 @@
55
55
  "codemirror-lang-elixir": "4.0.0"
56
56
  },
57
57
  "peerDependencies": {
58
- "@atlaskit/editor-common": "^112.20.0",
58
+ "@atlaskit/editor-common": "^112.21.0",
59
59
  "react": "^18.2.0",
60
60
  "react-intl-next": "npm:react-intl@^5.18.1"
61
61
  },
@@ -3,7 +3,7 @@ import type { Extension } from '@codemirror/state';
3
3
  import { keymap as cmKeymap } from '@codemirror/view';
4
4
  import type { KeyBinding } from '@codemirror/view';
5
5
 
6
- import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
6
+ import { getBrowserInfo } from '@atlaskit/editor-common/browser';
7
7
  import type { RelativeSelectionPos } from '@atlaskit/editor-common/selection';
8
8
  import type { getPosHandlerNode } from '@atlaskit/editor-common/types';
9
9
  import { exitCode, selectAll } from '@atlaskit/editor-prosemirror/commands';
@@ -52,9 +52,7 @@ const codeBlockKeymap = ({
52
52
  onMaybeNodeSelection,
53
53
  customFindReplace,
54
54
  }: KeymapProps): readonly KeyBinding[] => {
55
- const browser = expValEquals('platform_editor_hydratable_ui', 'isEnabled', true)
56
- ? getBrowserInfo()
57
- : browserLegacy;
55
+ const browser = getBrowserInfo();
58
56
  return [
59
57
  {
60
58
  key: 'ArrowUp',