@atlaskit/editor-plugin-code-block 8.0.12 → 8.0.13
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 +7 -5
- package/dist/cjs/pm-plugins/decorators.js +11 -22
- package/dist/cjs/pm-plugins/main.js +1 -2
- package/dist/cjs/pm-plugins/utils.js +0 -2
- package/dist/es2019/pm-plugins/decorators.js +9 -18
- package/dist/es2019/pm-plugins/main.js +2 -3
- package/dist/es2019/pm-plugins/utils.js +0 -2
- package/dist/esm/pm-plugins/decorators.js +11 -22
- package/dist/esm/pm-plugins/main.js +2 -3
- package/dist/esm/pm-plugins/utils.js +0 -2
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-code-block
|
|
2
2
|
|
|
3
|
+
## 8.0.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9674ede5cd0bf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9674ede5cd0bf) -
|
|
8
|
+
ED-29547 fg cleanup editor_code_wrapping_perf_improvement_ed-25141
|
|
9
|
+
|
|
3
10
|
## 8.0.12
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -310,7 +317,6 @@
|
|
|
310
317
|
shared context or singletons.
|
|
311
318
|
|
|
312
319
|
**HOW TO ADJUST:**
|
|
313
|
-
|
|
314
320
|
- Consumers must now explicitly install `@atlaskit/editor-common` in their own project if they use
|
|
315
321
|
any of these editor plugins.
|
|
316
322
|
- Ensure the version you install matches the version required by the plugins.
|
|
@@ -930,7 +936,6 @@
|
|
|
930
936
|
|
|
931
937
|
- [`193f8c85e1a39`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/193f8c85e1a39) -
|
|
932
938
|
[ux] [ED-24635]
|
|
933
|
-
|
|
934
939
|
- Disable Turn into dropdown options when wrapping is not supported
|
|
935
940
|
- Update expand icon so that it can show disabled status
|
|
936
941
|
- Update Turn into icon to show active status when dropdown is open
|
|
@@ -1391,7 +1396,6 @@
|
|
|
1391
1396
|
|
|
1392
1397
|
These are no longer available via `@atlaskit/prosemirror-input-rules` but are available from
|
|
1393
1398
|
`@atlaskit/editor-common/types`:
|
|
1394
|
-
|
|
1395
1399
|
- InputRuleWrapper
|
|
1396
1400
|
- InputRuleHandler
|
|
1397
1401
|
- OnHandlerApply
|
|
@@ -1401,7 +1405,6 @@
|
|
|
1401
1405
|
need to instantiate a `SafePlugin` (ie. `new SafePlugin(createPlugin( ... ))`).
|
|
1402
1406
|
|
|
1403
1407
|
`SafePlugin` exists in `@atlaskit/editor-common/safe-plugin`.
|
|
1404
|
-
|
|
1405
1408
|
- createPlugin
|
|
1406
1409
|
- createInputRulePlugin
|
|
1407
1410
|
|
|
@@ -1568,7 +1571,6 @@
|
|
|
1568
1571
|
- [#43646](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43646)
|
|
1569
1572
|
[`d43f8e9402f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d43f8e9402f) - Make
|
|
1570
1573
|
feature flags plugin optional in all plugins including:
|
|
1571
|
-
|
|
1572
1574
|
- analytics
|
|
1573
1575
|
- base
|
|
1574
1576
|
- card
|
|
@@ -8,7 +8,6 @@ exports.validateWordWrappedDecorators = exports.updateDecorationSetWithWordWrapp
|
|
|
8
8
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
9
|
var _codeBlock = require("@atlaskit/editor-common/code-block");
|
|
10
10
|
var _view = require("@atlaskit/editor-prosemirror/view");
|
|
11
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
11
|
var _classNames = require("../ui/class-names");
|
|
13
12
|
var _utils = require("./utils");
|
|
14
13
|
var DECORATION_WIDGET_TYPE = exports.DECORATION_WIDGET_TYPE = 'decorationWidgetType';
|
|
@@ -43,29 +42,19 @@ var updateCodeBlockDecorations = exports.updateCodeBlockDecorations = function u
|
|
|
43
42
|
*/
|
|
44
43
|
var updateDecorationSetWithLineNumberDecorators = exports.updateDecorationSetWithLineNumberDecorators = function updateDecorationSetWithLineNumberDecorators(tr, codeBlockNodes, decorationSet) {
|
|
45
44
|
var updatedDecorationSet = decorationSet;
|
|
46
|
-
if (!(0, _platformFeatureFlags.fg)('editor_code_wrapping_perf_improvement_ed-25141')) {
|
|
47
|
-
var children = updatedDecorationSet.find(undefined, undefined, function (spec) {
|
|
48
|
-
return spec.type === DECORATION_WIDGET_TYPE;
|
|
49
|
-
});
|
|
50
|
-
updatedDecorationSet = updatedDecorationSet.remove(children);
|
|
51
|
-
}
|
|
52
45
|
var lineNumberDecorators = [];
|
|
53
46
|
codeBlockNodes.forEach(function (node) {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
var newLineAttributes = generateLineAttributesFromNode(node);
|
|
47
|
+
var existingWidgetsOnNode = updatedDecorationSet.find(node.pos, node.pos + node.node.nodeSize, function (spec) {
|
|
48
|
+
return spec.type === DECORATION_WIDGET_TYPE;
|
|
49
|
+
});
|
|
50
|
+
var newLineAttributes = generateLineAttributesFromNode(node);
|
|
59
51
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
} else {
|
|
68
|
-
lineNumberDecorators.push.apply(lineNumberDecorators, (0, _toConsumableArray2.default)(createDecorationSetFromLineAttributes(generateLineAttributesFromNode(node))));
|
|
52
|
+
// There will be no widgets on initialisation. If the number of existing widgets does not equal the amount of lines, regenerate the widgets.
|
|
53
|
+
// There may be a case where the number of existing widgets and the number of lines are the same, that's why we track totalLineCount. This allows
|
|
54
|
+
// us to know how many lines there were when the widget was created. It avoids a break in line numbers, e.g. "1, 2, 3, 5, 6". Happens on line removal.
|
|
55
|
+
if (existingWidgetsOnNode.length === 0 || existingWidgetsOnNode.length !== newLineAttributes.length || existingWidgetsOnNode[0].spec.totalLineCount !== newLineAttributes.length) {
|
|
56
|
+
updatedDecorationSet = updatedDecorationSet.remove(existingWidgetsOnNode);
|
|
57
|
+
lineNumberDecorators.push.apply(lineNumberDecorators, (0, _toConsumableArray2.default)(createDecorationSetFromLineAttributes(newLineAttributes)));
|
|
69
58
|
}
|
|
70
59
|
});
|
|
71
60
|
return updatedDecorationSet.add(tr.doc, [].concat(lineNumberDecorators));
|
|
@@ -124,7 +113,7 @@ var createDecorationSetFromLineAttributes = exports.createDecorationSetFromLineA
|
|
|
124
113
|
return _view.Decoration.widget(lineStart, createLineNumberWidget, {
|
|
125
114
|
type: DECORATION_WIDGET_TYPE,
|
|
126
115
|
side: -1,
|
|
127
|
-
totalLineCount:
|
|
116
|
+
totalLineCount: lineAttributes.length
|
|
128
117
|
});
|
|
129
118
|
});
|
|
130
119
|
return widgetDecorations;
|
|
@@ -14,7 +14,6 @@ var _selection = require("@atlaskit/editor-common/selection");
|
|
|
14
14
|
var _transforms = require("@atlaskit/editor-common/transforms");
|
|
15
15
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
16
16
|
var _view = require("@atlaskit/editor-prosemirror/view");
|
|
17
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
17
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
19
18
|
var _editorCommands = require("../editor-commands");
|
|
20
19
|
var _codeBlock2 = require("../nodeviews/code-block");
|
|
@@ -113,7 +112,7 @@ var createPlugin = exports.createPlugin = function createPlugin(_ref) {
|
|
|
113
112
|
// Updates mapping position of all existing decorations to new positions
|
|
114
113
|
// specifically used for updating word wrap node decorators (does not cover drag & drop, validateWordWrappedDecorators does).
|
|
115
114
|
var updatedDecorationSet = pluginState.decorations.map(tr.mapping, tr.doc);
|
|
116
|
-
var codeBlockNodes = (0,
|
|
115
|
+
var codeBlockNodes = (0, _utils.getAllChangedCodeBlocksInTransaction)(tr);
|
|
117
116
|
if (codeBlockNodes) {
|
|
118
117
|
(0, _codeBlock.updateCodeBlockWrappedStateNodeKeys)(codeBlockNodes, _oldState);
|
|
119
118
|
// Disabled when using advanced code block for performance reasons
|
|
@@ -9,8 +9,6 @@ exports.getCursor = getCursor;
|
|
|
9
9
|
function getCursor(selection) {
|
|
10
10
|
return selection.$cursor || undefined;
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
// Replaced by getAllChangedCodeBlocksInTransaction with FG editor_code_wrapping_perf_improvement_ed-25141.
|
|
14
12
|
function getAllCodeBlockNodesInDoc(state) {
|
|
15
13
|
var codeBlockNodes = [];
|
|
16
14
|
state.doc.descendants(function (node, pos) {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { isCodeBlockWordWrapEnabled } from '@atlaskit/editor-common/code-block';
|
|
2
2
|
import { Decoration } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import { codeBlockClassNames } from '../ui/class-names';
|
|
5
4
|
import { getAllCodeBlockNodesInDoc } from './utils';
|
|
6
5
|
export const DECORATION_WIDGET_TYPE = 'decorationWidgetType';
|
|
@@ -33,25 +32,17 @@ export const updateCodeBlockDecorations = (tr, codeBlockNodes, decorationSet) =>
|
|
|
33
32
|
*/
|
|
34
33
|
export const updateDecorationSetWithLineNumberDecorators = (tr, codeBlockNodes, decorationSet) => {
|
|
35
34
|
let updatedDecorationSet = decorationSet;
|
|
36
|
-
if (!fg('editor_code_wrapping_perf_improvement_ed-25141')) {
|
|
37
|
-
const children = updatedDecorationSet.find(undefined, undefined, spec => spec.type === DECORATION_WIDGET_TYPE);
|
|
38
|
-
updatedDecorationSet = updatedDecorationSet.remove(children);
|
|
39
|
-
}
|
|
40
35
|
const lineNumberDecorators = [];
|
|
41
36
|
codeBlockNodes.forEach(node => {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const newLineAttributes = generateLineAttributesFromNode(node);
|
|
37
|
+
const existingWidgetsOnNode = updatedDecorationSet.find(node.pos, node.pos + node.node.nodeSize, spec => spec.type === DECORATION_WIDGET_TYPE);
|
|
38
|
+
const newLineAttributes = generateLineAttributesFromNode(node);
|
|
45
39
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
} else {
|
|
54
|
-
lineNumberDecorators.push(...createDecorationSetFromLineAttributes(generateLineAttributesFromNode(node)));
|
|
40
|
+
// There will be no widgets on initialisation. If the number of existing widgets does not equal the amount of lines, regenerate the widgets.
|
|
41
|
+
// There may be a case where the number of existing widgets and the number of lines are the same, that's why we track totalLineCount. This allows
|
|
42
|
+
// us to know how many lines there were when the widget was created. It avoids a break in line numbers, e.g. "1, 2, 3, 5, 6". Happens on line removal.
|
|
43
|
+
if (existingWidgetsOnNode.length === 0 || existingWidgetsOnNode.length !== newLineAttributes.length || existingWidgetsOnNode[0].spec.totalLineCount !== newLineAttributes.length) {
|
|
44
|
+
updatedDecorationSet = updatedDecorationSet.remove(existingWidgetsOnNode);
|
|
45
|
+
lineNumberDecorators.push(...createDecorationSetFromLineAttributes(newLineAttributes));
|
|
55
46
|
}
|
|
56
47
|
});
|
|
57
48
|
return updatedDecorationSet.add(tr.doc, [...lineNumberDecorators]);
|
|
@@ -114,7 +105,7 @@ export const createDecorationSetFromLineAttributes = lineAttributes => {
|
|
|
114
105
|
return Decoration.widget(lineStart, createLineNumberWidget, {
|
|
115
106
|
type: DECORATION_WIDGET_TYPE,
|
|
116
107
|
side: -1,
|
|
117
|
-
totalLineCount:
|
|
108
|
+
totalLineCount: lineAttributes.length
|
|
118
109
|
});
|
|
119
110
|
});
|
|
120
111
|
return widgetDecorations;
|
|
@@ -6,7 +6,6 @@ import { createSelectionClickHandler } from '@atlaskit/editor-common/selection';
|
|
|
6
6
|
import { findCodeBlock } from '@atlaskit/editor-common/transforms';
|
|
7
7
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
8
8
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
9
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
10
|
import { ignoreFollowingMutations, resetShouldIgnoreFollowingMutations } from '../editor-commands';
|
|
12
11
|
import { codeBlockNodeView } from '../nodeviews/code-block';
|
|
@@ -14,7 +13,7 @@ import { codeBlockClassNames } from '../ui/class-names';
|
|
|
14
13
|
import { ACTIONS } from './actions';
|
|
15
14
|
import { generateInitialDecorations, updateCodeBlockDecorations, updateDecorationSetWithWordWrappedDecorator } from './decorators';
|
|
16
15
|
import { pluginKey } from './plugin-key';
|
|
17
|
-
import { getAllChangedCodeBlocksInTransaction
|
|
16
|
+
import { getAllChangedCodeBlocksInTransaction } from './utils';
|
|
18
17
|
export const createPlugin = ({
|
|
19
18
|
useLongPressSelection = false,
|
|
20
19
|
getIntl,
|
|
@@ -101,7 +100,7 @@ export const createPlugin = ({
|
|
|
101
100
|
// Updates mapping position of all existing decorations to new positions
|
|
102
101
|
// specifically used for updating word wrap node decorators (does not cover drag & drop, validateWordWrappedDecorators does).
|
|
103
102
|
let updatedDecorationSet = pluginState.decorations.map(tr.mapping, tr.doc);
|
|
104
|
-
const codeBlockNodes =
|
|
103
|
+
const codeBlockNodes = getAllChangedCodeBlocksInTransaction(tr);
|
|
105
104
|
if (codeBlockNodes) {
|
|
106
105
|
updateCodeBlockWrappedStateNodeKeys(codeBlockNodes, _oldState);
|
|
107
106
|
// Disabled when using advanced code block for performance reasons
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export function getCursor(selection) {
|
|
2
2
|
return selection.$cursor || undefined;
|
|
3
3
|
}
|
|
4
|
-
|
|
5
|
-
// Replaced by getAllChangedCodeBlocksInTransaction with FG editor_code_wrapping_perf_improvement_ed-25141.
|
|
6
4
|
export function getAllCodeBlockNodesInDoc(state) {
|
|
7
5
|
const codeBlockNodes = [];
|
|
8
6
|
state.doc.descendants((node, pos) => {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import { isCodeBlockWordWrapEnabled } from '@atlaskit/editor-common/code-block';
|
|
3
3
|
import { Decoration } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
4
|
import { codeBlockClassNames } from '../ui/class-names';
|
|
6
5
|
import { getAllCodeBlockNodesInDoc } from './utils';
|
|
7
6
|
export var DECORATION_WIDGET_TYPE = 'decorationWidgetType';
|
|
@@ -36,29 +35,19 @@ export var updateCodeBlockDecorations = function updateCodeBlockDecorations(tr,
|
|
|
36
35
|
*/
|
|
37
36
|
export var updateDecorationSetWithLineNumberDecorators = function updateDecorationSetWithLineNumberDecorators(tr, codeBlockNodes, decorationSet) {
|
|
38
37
|
var updatedDecorationSet = decorationSet;
|
|
39
|
-
if (!fg('editor_code_wrapping_perf_improvement_ed-25141')) {
|
|
40
|
-
var children = updatedDecorationSet.find(undefined, undefined, function (spec) {
|
|
41
|
-
return spec.type === DECORATION_WIDGET_TYPE;
|
|
42
|
-
});
|
|
43
|
-
updatedDecorationSet = updatedDecorationSet.remove(children);
|
|
44
|
-
}
|
|
45
38
|
var lineNumberDecorators = [];
|
|
46
39
|
codeBlockNodes.forEach(function (node) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
var newLineAttributes = generateLineAttributesFromNode(node);
|
|
40
|
+
var existingWidgetsOnNode = updatedDecorationSet.find(node.pos, node.pos + node.node.nodeSize, function (spec) {
|
|
41
|
+
return spec.type === DECORATION_WIDGET_TYPE;
|
|
42
|
+
});
|
|
43
|
+
var newLineAttributes = generateLineAttributesFromNode(node);
|
|
52
44
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
} else {
|
|
61
|
-
lineNumberDecorators.push.apply(lineNumberDecorators, _toConsumableArray(createDecorationSetFromLineAttributes(generateLineAttributesFromNode(node))));
|
|
45
|
+
// There will be no widgets on initialisation. If the number of existing widgets does not equal the amount of lines, regenerate the widgets.
|
|
46
|
+
// There may be a case where the number of existing widgets and the number of lines are the same, that's why we track totalLineCount. This allows
|
|
47
|
+
// us to know how many lines there were when the widget was created. It avoids a break in line numbers, e.g. "1, 2, 3, 5, 6". Happens on line removal.
|
|
48
|
+
if (existingWidgetsOnNode.length === 0 || existingWidgetsOnNode.length !== newLineAttributes.length || existingWidgetsOnNode[0].spec.totalLineCount !== newLineAttributes.length) {
|
|
49
|
+
updatedDecorationSet = updatedDecorationSet.remove(existingWidgetsOnNode);
|
|
50
|
+
lineNumberDecorators.push.apply(lineNumberDecorators, _toConsumableArray(createDecorationSetFromLineAttributes(newLineAttributes)));
|
|
62
51
|
}
|
|
63
52
|
});
|
|
64
53
|
return updatedDecorationSet.add(tr.doc, [].concat(lineNumberDecorators));
|
|
@@ -117,7 +106,7 @@ export var createDecorationSetFromLineAttributes = function createDecorationSetF
|
|
|
117
106
|
return Decoration.widget(lineStart, createLineNumberWidget, {
|
|
118
107
|
type: DECORATION_WIDGET_TYPE,
|
|
119
108
|
side: -1,
|
|
120
|
-
totalLineCount:
|
|
109
|
+
totalLineCount: lineAttributes.length
|
|
121
110
|
});
|
|
122
111
|
});
|
|
123
112
|
return widgetDecorations;
|
|
@@ -9,7 +9,6 @@ import { createSelectionClickHandler } from '@atlaskit/editor-common/selection';
|
|
|
9
9
|
import { findCodeBlock } from '@atlaskit/editor-common/transforms';
|
|
10
10
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
11
11
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
12
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
13
|
import { ignoreFollowingMutations, resetShouldIgnoreFollowingMutations } from '../editor-commands';
|
|
15
14
|
import { codeBlockNodeView } from '../nodeviews/code-block';
|
|
@@ -17,7 +16,7 @@ import { codeBlockClassNames } from '../ui/class-names';
|
|
|
17
16
|
import { ACTIONS } from './actions';
|
|
18
17
|
import { generateInitialDecorations, updateCodeBlockDecorations, updateDecorationSetWithWordWrappedDecorator } from './decorators';
|
|
19
18
|
import { pluginKey } from './plugin-key';
|
|
20
|
-
import { getAllChangedCodeBlocksInTransaction
|
|
19
|
+
import { getAllChangedCodeBlocksInTransaction } from './utils';
|
|
21
20
|
export var createPlugin = function createPlugin(_ref) {
|
|
22
21
|
var _ref$useLongPressSele = _ref.useLongPressSelection,
|
|
23
22
|
useLongPressSelection = _ref$useLongPressSele === void 0 ? false : _ref$useLongPressSele,
|
|
@@ -106,7 +105,7 @@ export var createPlugin = function createPlugin(_ref) {
|
|
|
106
105
|
// Updates mapping position of all existing decorations to new positions
|
|
107
106
|
// specifically used for updating word wrap node decorators (does not cover drag & drop, validateWordWrappedDecorators does).
|
|
108
107
|
var updatedDecorationSet = pluginState.decorations.map(tr.mapping, tr.doc);
|
|
109
|
-
var codeBlockNodes =
|
|
108
|
+
var codeBlockNodes = getAllChangedCodeBlocksInTransaction(tr);
|
|
110
109
|
if (codeBlockNodes) {
|
|
111
110
|
updateCodeBlockWrappedStateNodeKeys(codeBlockNodes, _oldState);
|
|
112
111
|
// Disabled when using advanced code block for performance reasons
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export function getCursor(selection) {
|
|
2
2
|
return selection.$cursor || undefined;
|
|
3
3
|
}
|
|
4
|
-
|
|
5
|
-
// Replaced by getAllChangedCodeBlocksInTransaction with FG editor_code_wrapping_perf_improvement_ed-25141.
|
|
6
4
|
export function getAllCodeBlockNodesInDoc(state) {
|
|
7
5
|
var codeBlockNodes = [];
|
|
8
6
|
state.doc.descendants(function (node, pos) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-code-block",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.13",
|
|
4
4
|
"description": "Code block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"@atlaskit/icon": "^28.5.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
45
|
"@atlaskit/prosemirror-input-rules": "^3.5.0",
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^13.12.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@atlaskit/editor-common": "^110.
|
|
50
|
+
"@atlaskit/editor-common": "^110.13.0",
|
|
51
51
|
"react": "^18.2.0",
|
|
52
52
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
53
53
|
},
|
|
@@ -96,9 +96,6 @@
|
|
|
96
96
|
"code_block_auto_insertion_bug_fix": {
|
|
97
97
|
"type": "boolean"
|
|
98
98
|
},
|
|
99
|
-
"editor_code_wrapping_perf_improvement_ed-25141": {
|
|
100
|
-
"type": "boolean"
|
|
101
|
-
},
|
|
102
99
|
"editor_a11y_remove_unwrap_button": {
|
|
103
100
|
"type": "boolean"
|
|
104
101
|
},
|