@atlaskit/editor-plugin-code-block-advanced 8.0.30 → 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-code-block-advanced
|
|
2
2
|
|
|
3
|
+
## 9.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 8.0.31
|
|
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.30
|
|
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,
|
|
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 {
|
|
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 =
|
|
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 {
|
|
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 =
|
|
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": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"description": "CodeBlockAdvanced plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -28,17 +28,17 @@
|
|
|
28
28
|
"sideEffects": false,
|
|
29
29
|
"atlaskit:src": "src/index.ts",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@atlaskit/adf-schema": "^52.
|
|
31
|
+
"@atlaskit/adf-schema": "^52.5.0",
|
|
32
32
|
"@atlaskit/code": "^17.4.0",
|
|
33
|
-
"@atlaskit/editor-plugin-code-block": "^
|
|
34
|
-
"@atlaskit/editor-plugin-editor-disabled": "^
|
|
35
|
-
"@atlaskit/editor-plugin-find-replace": "^
|
|
36
|
-
"@atlaskit/editor-plugin-selection": "^
|
|
37
|
-
"@atlaskit/editor-plugin-selection-marker": "^
|
|
33
|
+
"@atlaskit/editor-plugin-code-block": "^11.0.0",
|
|
34
|
+
"@atlaskit/editor-plugin-editor-disabled": "^9.0.0",
|
|
35
|
+
"@atlaskit/editor-plugin-find-replace": "^9.0.0",
|
|
36
|
+
"@atlaskit/editor-plugin-selection": "^9.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-selection-marker": "^9.0.0",
|
|
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": "^
|
|
41
|
+
"@atlaskit/tmp-editor-statsig": "^62.4.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": "^
|
|
58
|
+
"@atlaskit/editor-common": "^113.0.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 {
|
|
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 =
|
|
56
|
-
? getBrowserInfo()
|
|
57
|
-
: browserLegacy;
|
|
55
|
+
const browser = getBrowserInfo();
|
|
58
56
|
return [
|
|
59
57
|
{
|
|
60
58
|
key: 'ArrowUp',
|