@atlaskit/editor-wikimarkup-transformer 11.20.8 → 11.20.10
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 +15 -0
- package/dist/cjs/encoder/nodes/listItem.js +1 -0
- package/dist/cjs/parser/utils/attrs.js +1 -0
- package/dist/es2019/encoder/nodes/listItem.js +1 -0
- package/dist/es2019/encoder/nodes/text.js +3 -1
- package/dist/es2019/parser/utils/attrs.js +1 -0
- package/dist/esm/encoder/nodes/listItem.js +1 -0
- package/dist/esm/parser/utils/attrs.js +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-wikimarkup-transformer
|
|
2
2
|
|
|
3
|
+
## 11.20.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`0f4a08b633f6e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0f4a08b633f6e) -
|
|
8
|
+
Internal changes to remove unnecessary token fallbacks and imports from `@atlaskit/theme`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 11.20.9
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`a58ccd06e5753`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a58ccd06e5753) -
|
|
16
|
+
Added comprehensive task list test coverage for email-renderer and wikimarkup-transformer.
|
|
17
|
+
|
|
3
18
|
## 11.20.8
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -30,6 +30,7 @@ var listItem = exports.listItem = function listItem(node, prefix, context) {
|
|
|
30
30
|
result.push("".concat(prefix, " ").concat(contentBuffer.join('\n')));
|
|
31
31
|
contentBuffer = [];
|
|
32
32
|
}
|
|
33
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
33
34
|
var nestedList = (0, _.encode)(n, context).split('\n').map(function (line) {
|
|
34
35
|
if (['#', '*'].indexOf(line.substr(0, 1)) !== -1) {
|
|
35
36
|
return "".concat(prefix).concat(line);
|
|
@@ -14,6 +14,7 @@ function parseAttrs(str) {
|
|
|
14
14
|
}
|
|
15
15
|
var attributesStr = str.split(sep);
|
|
16
16
|
attributesStr.forEach(function (attributeStr) {
|
|
17
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
17
18
|
var _attributeStr$split = attributeStr.split('='),
|
|
18
19
|
_attributeStr$split2 = (0, _toArray2.default)(_attributeStr$split),
|
|
19
20
|
key = _attributeStr$split2[0],
|
|
@@ -24,6 +24,7 @@ export const listItem = (node, prefix, context) => {
|
|
|
24
24
|
result.push(`${prefix} ${contentBuffer.join('\n')}`);
|
|
25
25
|
contentBuffer = [];
|
|
26
26
|
}
|
|
27
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
27
28
|
const nestedList = encode(n, context).split('\n').map(line => {
|
|
28
29
|
if (['#', '*'].indexOf(line.substr(0, 1)) !== -1) {
|
|
29
30
|
return `${prefix}${line}`;
|
|
@@ -42,7 +42,9 @@ const isEscapeNeeded = (node, parent) => {
|
|
|
42
42
|
* ADFEXP-131: Improved logic for escaping metacharacters "[" and "!"
|
|
43
43
|
*/
|
|
44
44
|
function escapingWikiFormatter(text) {
|
|
45
|
-
const pattern = [MENTION_ESCAPE_PATTERN,
|
|
45
|
+
const pattern = [MENTION_ESCAPE_PATTERN,
|
|
46
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
47
|
+
...macroKeywordTokenMap.map(macro => `(${macro.regex.source.replace('^', '')})`)].join('|');
|
|
46
48
|
return text
|
|
47
49
|
// Ignored via go/ees005
|
|
48
50
|
// eslint-disable-next-line require-unicode-regexp
|
|
@@ -5,6 +5,7 @@ export function parseAttrs(str, sep = '|') {
|
|
|
5
5
|
}
|
|
6
6
|
const attributesStr = str.split(sep);
|
|
7
7
|
attributesStr.forEach(attributeStr => {
|
|
8
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
8
9
|
const [key, ...value] = attributeStr.split('=');
|
|
9
10
|
// take only first value of the same keys
|
|
10
11
|
if (!output[key]) {
|
|
@@ -24,6 +24,7 @@ export var listItem = function listItem(node, prefix, context) {
|
|
|
24
24
|
result.push("".concat(prefix, " ").concat(contentBuffer.join('\n')));
|
|
25
25
|
contentBuffer = [];
|
|
26
26
|
}
|
|
27
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
27
28
|
var nestedList = encode(n, context).split('\n').map(function (line) {
|
|
28
29
|
if (['#', '*'].indexOf(line.substr(0, 1)) !== -1) {
|
|
29
30
|
return "".concat(prefix).concat(line);
|
|
@@ -7,6 +7,7 @@ export function parseAttrs(str) {
|
|
|
7
7
|
}
|
|
8
8
|
var attributesStr = str.split(sep);
|
|
9
9
|
attributesStr.forEach(function (attributeStr) {
|
|
10
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
10
11
|
var _attributeStr$split = attributeStr.split('='),
|
|
11
12
|
_attributeStr$split2 = _toArray(_attributeStr$split),
|
|
12
13
|
key = _attributeStr$split2[0],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-wikimarkup-transformer",
|
|
3
|
-
"version": "11.20.
|
|
3
|
+
"version": "11.20.10",
|
|
4
4
|
"description": "Wiki markup transformer for JIRA and Confluence",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@atlaskit/activity": "^1.0.1",
|
|
40
40
|
"@atlaskit/editor-core": "^217.5.0",
|
|
41
41
|
"@atlaskit/editor-test-helpers": "workspace:^",
|
|
42
|
-
"@atlaskit/mention": "^24.
|
|
42
|
+
"@atlaskit/mention": "^24.6.0",
|
|
43
43
|
"@atlaskit/tokens": "^11.1.0",
|
|
44
44
|
"@atlaskit/util-data-test": "^18.5.0",
|
|
45
45
|
"@emotion/react": "^11.7.1",
|