@atlaskit/editor-plugin-code-block 10.0.10 → 10.0.12
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
|
@@ -79,6 +79,7 @@ var generateLineAttributesFromNode = exports.generateLineAttributesFromNode = fu
|
|
|
79
79
|
var nodeTextContent = child.textContent;
|
|
80
80
|
var nodeStartPos = pos;
|
|
81
81
|
var lineStartIndex = nodeStartPos;
|
|
82
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
82
83
|
var newLineAttributes = nodeTextContent.split('\n').map(function (line, index) {
|
|
83
84
|
var lineLength = line.length;
|
|
84
85
|
var lineStart = lineStartIndex + 1;
|
|
@@ -69,6 +69,7 @@ export const generateLineAttributesFromNode = node => {
|
|
|
69
69
|
const nodeTextContent = child.textContent;
|
|
70
70
|
const nodeStartPos = pos;
|
|
71
71
|
let lineStartIndex = nodeStartPos;
|
|
72
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
72
73
|
const newLineAttributes = nodeTextContent.split('\n').map((line, index) => {
|
|
73
74
|
const lineLength = line.length;
|
|
74
75
|
const lineStart = lineStartIndex + 1;
|
|
@@ -72,6 +72,7 @@ export var generateLineAttributesFromNode = function generateLineAttributesFromN
|
|
|
72
72
|
var nodeTextContent = child.textContent;
|
|
73
73
|
var nodeStartPos = pos;
|
|
74
74
|
var lineStartIndex = nodeStartPos;
|
|
75
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
75
76
|
var newLineAttributes = nodeTextContent.split('\n').map(function (line, index) {
|
|
76
77
|
var lineLength = line.length;
|
|
77
78
|
var lineStart = lineStartIndex + 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-code-block",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.12",
|
|
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": "^33.0.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
45
|
"@atlaskit/prosemirror-input-rules": "^3.6.0",
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^45.0.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@atlaskit/editor-common": "^112.
|
|
50
|
+
"@atlaskit/editor-common": "^112.8.0",
|
|
51
51
|
"react": "^18.2.0",
|
|
52
52
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
53
53
|
},
|