@atlaskit/editor-wikimarkup-transformer 11.20.4 → 11.20.5
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 +8 -0
- package/afm-jira/tsconfig.json +9 -2
- package/afm-products/tsconfig.json +9 -2
- package/dist/cjs/encoder/index.js +3 -1
- package/dist/cjs/encoder/nodes/bodied-sync-block.js +16 -0
- package/dist/es2019/encoder/index.js +3 -1
- package/dist/es2019/encoder/nodes/bodied-sync-block.js +10 -0
- package/dist/esm/encoder/index.js +3 -1
- package/dist/esm/encoder/nodes/bodied-sync-block.js +10 -0
- package/dist/types/encoder/nodes/bodied-sync-block.d.ts +2 -0
- package/dist/types-ts4.5/encoder/nodes/bodied-sync-block.d.ts +2 -0
- package/package.json +6 -6
- package/build/tsconfig.json +0 -23
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-wikimarkup-transformer
|
|
2
2
|
|
|
3
|
+
## 11.20.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`0bb5625c1394f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0bb5625c1394f) -
|
|
8
|
+
[ux] EDITOR-1565 add support for syncBlock and bodiedSyncBlock nodes to editor-slack-transformer
|
|
9
|
+
and editor-wikimarkup-transformer
|
|
10
|
+
|
|
3
11
|
## 11.20.4
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/afm-jira/tsconfig.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "../../../../tsconfig.
|
|
2
|
+
"extends": "../../../../tsconfig.local-consumption.json",
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"declaration": true,
|
|
5
5
|
"target": "es5",
|
|
6
6
|
"outDir": "../../../../../jira/tsDist/@atlaskit__editor-wikimarkup-transformer/app",
|
|
7
7
|
"rootDir": "../",
|
|
8
|
-
"composite": true
|
|
8
|
+
"composite": true,
|
|
9
|
+
"noCheck": true
|
|
9
10
|
},
|
|
10
11
|
"include": [
|
|
11
12
|
"../src/**/*.ts",
|
|
@@ -23,9 +24,15 @@
|
|
|
23
24
|
"../src/**/stories/**/*"
|
|
24
25
|
],
|
|
25
26
|
"references": [
|
|
27
|
+
{
|
|
28
|
+
"path": "../../adf-schema/afm-jira/tsconfig.json"
|
|
29
|
+
},
|
|
26
30
|
{
|
|
27
31
|
"path": "../../editor-json-transformer/afm-jira/tsconfig.json"
|
|
28
32
|
},
|
|
33
|
+
{
|
|
34
|
+
"path": "../../editor-prosemirror/afm-jira/tsconfig.json"
|
|
35
|
+
},
|
|
29
36
|
{
|
|
30
37
|
"path": "../../../design-system/theme/afm-jira/tsconfig.json"
|
|
31
38
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "../../../../tsconfig.
|
|
2
|
+
"extends": "../../../../tsconfig.local-consumption.json",
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"declaration": true,
|
|
5
5
|
"target": "es5",
|
|
6
6
|
"outDir": "../../../../../tsDist/@atlaskit__editor-wikimarkup-transformer/app",
|
|
7
7
|
"rootDir": "../",
|
|
8
|
-
"composite": true
|
|
8
|
+
"composite": true,
|
|
9
|
+
"noCheck": true
|
|
9
10
|
},
|
|
10
11
|
"include": [
|
|
11
12
|
"../src/**/*.ts",
|
|
@@ -23,9 +24,15 @@
|
|
|
23
24
|
"../src/**/stories/**/*"
|
|
24
25
|
],
|
|
25
26
|
"references": [
|
|
27
|
+
{
|
|
28
|
+
"path": "../../adf-schema/afm-products/tsconfig.json"
|
|
29
|
+
},
|
|
26
30
|
{
|
|
27
31
|
"path": "../../editor-json-transformer/afm-products/tsconfig.json"
|
|
28
32
|
},
|
|
33
|
+
{
|
|
34
|
+
"path": "../../editor-prosemirror/afm-products/tsconfig.json"
|
|
35
|
+
},
|
|
29
36
|
{
|
|
30
37
|
"path": "../../../design-system/theme/afm-products/tsconfig.json"
|
|
31
38
|
}
|
|
@@ -23,6 +23,7 @@ var _unknown = require("./nodes/unknown");
|
|
|
23
23
|
var _blockCard = require("./nodes/block-card");
|
|
24
24
|
var _embedCard = require("./nodes/embed-card");
|
|
25
25
|
var _caption = require("./nodes/caption");
|
|
26
|
+
var _bodiedSyncBlock = require("./nodes/bodied-sync-block");
|
|
26
27
|
// Ignored via go/ees005
|
|
27
28
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
28
29
|
|
|
@@ -45,7 +46,8 @@ var nodeEncoderMapping = {
|
|
|
45
46
|
table: _table.table,
|
|
46
47
|
blockCard: _blockCard.blockCard,
|
|
47
48
|
embedCard: _embedCard.embedCard,
|
|
48
|
-
expand: _expand.expand
|
|
49
|
+
expand: _expand.expand,
|
|
50
|
+
bodiedSyncBlock: _bodiedSyncBlock.bodiedSyncBlock
|
|
49
51
|
};
|
|
50
52
|
function encode(node, context) {
|
|
51
53
|
var encoder = nodeEncoderMapping[node.type.name];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.bodiedSyncBlock = void 0;
|
|
7
|
+
var _ = require("..");
|
|
8
|
+
var bodiedSyncBlock = exports.bodiedSyncBlock = function bodiedSyncBlock(node) {
|
|
9
|
+
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
10
|
+
context = _ref.context;
|
|
11
|
+
var result = [];
|
|
12
|
+
node.forEach(function (n) {
|
|
13
|
+
result.push((0, _.encode)(n, context));
|
|
14
|
+
});
|
|
15
|
+
return result.join('\n');
|
|
16
|
+
};
|
|
@@ -17,6 +17,7 @@ import { unknown } from './nodes/unknown';
|
|
|
17
17
|
import { blockCard } from './nodes/block-card';
|
|
18
18
|
import { embedCard } from './nodes/embed-card';
|
|
19
19
|
import { caption } from './nodes/caption';
|
|
20
|
+
import { bodiedSyncBlock } from './nodes/bodied-sync-block';
|
|
20
21
|
|
|
21
22
|
// Ignored via go/ees005
|
|
22
23
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -40,7 +41,8 @@ const nodeEncoderMapping = {
|
|
|
40
41
|
table,
|
|
41
42
|
blockCard,
|
|
42
43
|
embedCard,
|
|
43
|
-
expand
|
|
44
|
+
expand,
|
|
45
|
+
bodiedSyncBlock
|
|
44
46
|
};
|
|
45
47
|
export function encode(node, context) {
|
|
46
48
|
const encoder = nodeEncoderMapping[node.type.name];
|
|
@@ -17,6 +17,7 @@ import { unknown } from './nodes/unknown';
|
|
|
17
17
|
import { blockCard } from './nodes/block-card';
|
|
18
18
|
import { embedCard } from './nodes/embed-card';
|
|
19
19
|
import { caption } from './nodes/caption';
|
|
20
|
+
import { bodiedSyncBlock } from './nodes/bodied-sync-block';
|
|
20
21
|
|
|
21
22
|
// Ignored via go/ees005
|
|
22
23
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -40,7 +41,8 @@ var nodeEncoderMapping = {
|
|
|
40
41
|
table: table,
|
|
41
42
|
blockCard: blockCard,
|
|
42
43
|
embedCard: embedCard,
|
|
43
|
-
expand: expand
|
|
44
|
+
expand: expand,
|
|
45
|
+
bodiedSyncBlock: bodiedSyncBlock
|
|
44
46
|
};
|
|
45
47
|
export function encode(node, context) {
|
|
46
48
|
var encoder = nodeEncoderMapping[node.type.name];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { encode } from '..';
|
|
2
|
+
export var bodiedSyncBlock = function bodiedSyncBlock(node) {
|
|
3
|
+
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
4
|
+
context = _ref.context;
|
|
5
|
+
var result = [];
|
|
6
|
+
node.forEach(function (n) {
|
|
7
|
+
result.push(encode(n, context));
|
|
8
|
+
});
|
|
9
|
+
return result.join('\n');
|
|
10
|
+
};
|
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.5",
|
|
4
4
|
"description": "Wiki markup transformer for JIRA and Confluence",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,19 +29,19 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@atlaskit/adf-schema": "^51.5.
|
|
32
|
+
"@atlaskit/adf-schema": "^51.5.0",
|
|
33
33
|
"@atlaskit/editor-json-transformer": "^8.31.0",
|
|
34
|
-
"@atlaskit/editor-prosemirror": "7.
|
|
34
|
+
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
35
35
|
"@atlaskit/theme": "^21.0.0",
|
|
36
36
|
"@babel/runtime": "^7.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@atlaskit/activity": "^1.0.1",
|
|
40
|
-
"@atlaskit/editor-core": "^
|
|
40
|
+
"@atlaskit/editor-core": "^216.9.0",
|
|
41
41
|
"@atlaskit/editor-test-helpers": "workspace:^",
|
|
42
42
|
"@atlaskit/mention": "^24.4.0",
|
|
43
|
-
"@atlaskit/tokens": "^
|
|
44
|
-
"@atlaskit/util-data-test": "^18.
|
|
43
|
+
"@atlaskit/tokens": "^11.0.0",
|
|
44
|
+
"@atlaskit/util-data-test": "^18.5.0",
|
|
45
45
|
"@emotion/react": "^11.7.1",
|
|
46
46
|
"@types/debug": "^4.1.10",
|
|
47
47
|
"cookie": "^0.3.1",
|
package/build/tsconfig.json
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../tsconfig",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"declaration": true,
|
|
5
|
-
"target": "es5",
|
|
6
|
-
"paths": {}
|
|
7
|
-
},
|
|
8
|
-
"include": [
|
|
9
|
-
"../src/**/*.ts",
|
|
10
|
-
"../src/**/*.tsx"
|
|
11
|
-
],
|
|
12
|
-
"exclude": [
|
|
13
|
-
"../src/**/__tests__/*",
|
|
14
|
-
"../src/**/*.test.*",
|
|
15
|
-
"../src/**/test.*",
|
|
16
|
-
"../src/**/examples.*",
|
|
17
|
-
"../src/**/examples/*",
|
|
18
|
-
"../src/**/examples/**/*",
|
|
19
|
-
"../src/**/*.stories.*",
|
|
20
|
-
"../src/**/stories/*",
|
|
21
|
-
"../src/**/stories/**/*"
|
|
22
|
-
]
|
|
23
|
-
}
|