@jpmorganchase/mosaic-plugins 0.1.0-beta.32 → 0.1.0-beta.34
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/dist/FragmentPlugin.d.ts +7 -0
- package/dist/FragmentPlugin.js +84 -0
- package/dist/FragmentPlugin.js.map +1 -0
- package/dist/PropsTablePlugin.d.ts +6 -0
- package/dist/PropsTablePlugin.js +76 -0
- package/dist/PropsTablePlugin.js.map +1 -0
- package/dist/ReadingTimePlugin.js.map +1 -1
- package/package.json +9 -6
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import path from 'path';
|
|
2
|
+
import { escapeRegExp } from 'lodash-es';
|
|
3
|
+
import { remark } from 'remark';
|
|
4
|
+
import remarkDirective from 'remark-directive';
|
|
5
|
+
import { visitParents } from 'unist-util-visit-parents';
|
|
6
|
+
const createPageTest = (ignorePages, pageExtensions) => {
|
|
7
|
+
const extTest = new RegExp(`${pageExtensions.map(ext => escapeRegExp(ext)).join('|')}$`);
|
|
8
|
+
const ignoreTest = new RegExp(`${ignorePages.map(ignore => escapeRegExp(ignore)).join('|')}$`);
|
|
9
|
+
return file => !ignoreTest.test(file) && extTest.test(file) && !path.basename(file).startsWith('.');
|
|
10
|
+
};
|
|
11
|
+
function getFullPath(fullPath, relativePath) {
|
|
12
|
+
const pathSegments = fullPath.split('/');
|
|
13
|
+
const relativeSegments = relativePath.split('/');
|
|
14
|
+
pathSegments.pop();
|
|
15
|
+
for (const segment of relativeSegments) {
|
|
16
|
+
if (segment === '..') {
|
|
17
|
+
pathSegments.pop();
|
|
18
|
+
}
|
|
19
|
+
else if (segment !== '.') {
|
|
20
|
+
pathSegments.push(segment);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return pathSegments.join('/');
|
|
24
|
+
}
|
|
25
|
+
async function processTree(tree, serialiser, mutableFilesystem, fullPath, isNonHiddenPage) {
|
|
26
|
+
const nodesToProcess = [];
|
|
27
|
+
visitParents(tree, (node, ancestors) => {
|
|
28
|
+
if (node.type === 'code') {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
const match = node.name === 'fragment' && node.attributes.src;
|
|
32
|
+
if (match) {
|
|
33
|
+
const parent = ancestors[ancestors.length - 1];
|
|
34
|
+
const index = parent.children.indexOf(node);
|
|
35
|
+
nodesToProcess.push({ node, parent, index });
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
for (const { node, parent, index } of nodesToProcess) {
|
|
39
|
+
const fragmentFullPath = getFullPath(fullPath, node.attributes.src);
|
|
40
|
+
if (!isNonHiddenPage(fragmentFullPath)) {
|
|
41
|
+
console.warn(`Invalid file reference: '${node.attributes.src}'. Skipping.`);
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
const fragmentPage = await serialiser.deserialise(fragmentFullPath, await mutableFilesystem.promises.readFile(fragmentFullPath));
|
|
45
|
+
// Create a new node with the content from fragmentPage.content
|
|
46
|
+
const newNode = {
|
|
47
|
+
type: 'html',
|
|
48
|
+
value: fragmentPage.content
|
|
49
|
+
};
|
|
50
|
+
// Replace the original node with the newNode in the tree
|
|
51
|
+
parent.children.splice(index, 1, newNode);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return tree;
|
|
55
|
+
}
|
|
56
|
+
const FragmentPlugin = {
|
|
57
|
+
async $beforeSend(mutableFilesystem, { serialiser, ignorePages, pageExtensions }) {
|
|
58
|
+
const pages = await Promise.all((await mutableFilesystem.promises.glob('**', {
|
|
59
|
+
onlyFiles: true,
|
|
60
|
+
ignore: ignorePages.map(ignore => `**/${ignore}`),
|
|
61
|
+
cwd: '/'
|
|
62
|
+
})).map(async (pagePath) => {
|
|
63
|
+
const deserialisedPage = await serialiser.deserialise(pagePath, await mutableFilesystem.promises.readFile(pagePath));
|
|
64
|
+
return deserialisedPage;
|
|
65
|
+
}));
|
|
66
|
+
const isNonHiddenPage = createPageTest(ignorePages, pageExtensions);
|
|
67
|
+
for (const page of pages) {
|
|
68
|
+
const fullPath = page.fullPath;
|
|
69
|
+
if (!isNonHiddenPage(fullPath)) {
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
const tree = remark().use(remarkDirective).parse(page.content);
|
|
73
|
+
const processedTree = await processTree(tree, serialiser, mutableFilesystem, fullPath, isNonHiddenPage);
|
|
74
|
+
page.content = remark()
|
|
75
|
+
.data('settings', { fences: true })
|
|
76
|
+
.use(remarkDirective)
|
|
77
|
+
.stringify(processedTree);
|
|
78
|
+
const updatedFileData = await serialiser.serialise(fullPath, page);
|
|
79
|
+
await mutableFilesystem.promises.writeFile(fullPath, updatedFileData);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
export default FragmentPlugin;
|
|
84
|
+
//# sourceMappingURL=FragmentPlugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FragmentPlugin.js","sourceRoot":"","sources":["../src/FragmentPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,eAAe,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAOxD,MAAM,cAAc,GAAG,CAAC,WAAW,EAAE,cAAc,EAAE,EAAE;IACrD,MAAM,OAAO,GAAG,IAAI,MAAM,CAAC,GAAG,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACzF,MAAM,UAAU,GAAG,IAAI,MAAM,CAAC,GAAG,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CA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-gfm';
|
|
3
|
+
import { remark } from 'remark';
|
|
4
|
+
import { visit } from 'unist-util-visit';
|
|
5
|
+
import { parse } from 'react-docgen-typescript';
|
|
6
|
+
const options = {
|
|
7
|
+
propFilter: prop => !/@types[\\/]react[\\/]/.test(prop.parent?.fileName || '')
|
|
8
|
+
};
|
|
9
|
+
const PropsTablePlugin = {
|
|
10
|
+
// TODO: add support for active mode
|
|
11
|
+
async $afterSource(pages) {
|
|
12
|
+
const processor = remark().use(remarkDirective).use(remarkGfm);
|
|
13
|
+
for (const page of pages) {
|
|
14
|
+
const tree = await processor.parse(page.content);
|
|
15
|
+
visit(tree, (node) => node.type === 'textDirective', (node) => {
|
|
16
|
+
if (node.name !== 'propsTable')
|
|
17
|
+
return;
|
|
18
|
+
const propsTableData = parse(node.attributes.src, options)[0].props;
|
|
19
|
+
const tableHeaders = {
|
|
20
|
+
type: 'tableRow',
|
|
21
|
+
children: [
|
|
22
|
+
{
|
|
23
|
+
type: 'tableCell',
|
|
24
|
+
children: [{ type: 'text', value: 'Name' }]
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
type: 'tableCell',
|
|
28
|
+
children: [{ type: 'text', value: 'Type' }]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
type: 'tableCell',
|
|
32
|
+
children: [{ type: 'text', value: 'Description' }]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
type: 'tableCell',
|
|
36
|
+
children: [{ type: 'text', value: 'Default' }]
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
};
|
|
40
|
+
const tableBody = Object.values(propsTableData).map(({ name, type, description, defaultValue }) => ({
|
|
41
|
+
type: 'tableRow',
|
|
42
|
+
children: [
|
|
43
|
+
{
|
|
44
|
+
type: 'tableCell',
|
|
45
|
+
children: [{ type: 'text', value: name }]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
type: 'tableCell',
|
|
49
|
+
children: [{ type: 'inlineCode', value: type.name }]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
type: 'tableCell',
|
|
53
|
+
children: [{ type: 'html', value: description.replace(/\n/g, ' ') }]
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
type: 'tableCell',
|
|
57
|
+
children: [{ type: 'inlineCode', value: defaultValue ? defaultValue.value : '-' }]
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}));
|
|
61
|
+
const table = [tableHeaders, ...tableBody];
|
|
62
|
+
// Replaces the current node with a new table node containing the props
|
|
63
|
+
node.type = 'table';
|
|
64
|
+
node.children = table;
|
|
65
|
+
});
|
|
66
|
+
page.content = remark()
|
|
67
|
+
.data('settings', { fences: true })
|
|
68
|
+
.use(remarkDirective)
|
|
69
|
+
.use(remarkGfm)
|
|
70
|
+
.stringify(tree);
|
|
71
|
+
}
|
|
72
|
+
return pages;
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
export default PropsTablePlugin;
|
|
76
|
+
//# sourceMappingURL=PropsTablePlugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PropsTablePlugin.js","sourceRoot":"","sources":["../src/PropsTablePlugin.ts"],"names":[],"mappings":"AACA,OAAO,eAAe,MAAM,kBAAkB,CAAC;AAC/C,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAGhD,MAAM,OAAO,GAAG;IACd,UAAU,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,uBAAuB,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,IAAI,EAAE,CAAC;CAC/E,CAAC;AAaF,MAAM,gBAAgB,GAAqC;IACzD,oCAAoC;IACpC,KAAK,CAAC,YAAY,CAAC,KAAK;QACtB,MAAM,SAAS,GAAG,M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version":3,"file":"ReadingTimePlugin.js","sourceRoot":"","sources":["../src/ReadingTimePlugin.ts"],"names":[],"mappings":"AACA,OAAO,cAAc,MAAM,cAAc,CAAC;AAC1C,OAAO,QAAQ,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAWzC;;GAEG;AACH,MAAM,iBAAiB,GAAsC;IAC3D,KAAK,CAAC,YAAY,CAAC,KAAK;QACtB,MAAM,SAAS,GAAG,OAAO,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC1C,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;YACxB,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"ReadingTimePlugin.js","sourceRoot":"","sources":["../src/ReadingTimePlugin.ts"],"names":[],"mappings":"AACA,OAAO,cAAc,MAAM,cAAc,CAAC;AAC1C,OAAO,QAAQ,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAWzC;;GAEG;AACH,MAAM,iBAAiB,GAAsC;IAC3D,KAAK,CAAC,YAAY,CAAC,KAAK;QACtB,MAAM,SAAS,GAAG,OAAO,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC1C,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;YACxB,MAAM,IAAI,GAAS,MAAM,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACvD,IAAI,WAAW,GAAG,EAAE,CAAC;YAErB,KAAK,CACH,IAAI,EACJ,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,MAAM,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,EACpD,CAAC,IAAc,EAAE,EAAE;gBACjB,WAAW,IAAI,IAAI,CAAC,KAAK,CAAC;YAC5B,CAAC,CACF,CAAC;YACF,IAAI,CAAC,WAAW,GAAG,cAAc,CAAC,WAAW,CAAC,CAAC;SAChD;QAED,OAAO,KAAK,CAAC;IACf,CAAC;CACF,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jpmorganchase/mosaic-plugins",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.34",
|
|
4
4
|
"author": "",
|
|
5
5
|
"description": "Mosaic plugins for core file system",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@apidevtools/json-schema-ref-parser": "^9.0.9",
|
|
36
|
-
"@jpmorganchase/mosaic-schemas": "^0.1.0-beta.
|
|
37
|
-
"@jpmorganchase/mosaic-serialisers": "^0.1.0-beta.
|
|
38
|
-
"@jpmorganchase/mosaic-source-git-repo": "^0.1.0-beta.
|
|
39
|
-
"@jpmorganchase/mosaic-source-local-folder": "^0.1.0-beta.
|
|
40
|
-
"@jpmorganchase/mosaic-types": "^0.1.0-beta.
|
|
36
|
+
"@jpmorganchase/mosaic-schemas": "^0.1.0-beta.34",
|
|
37
|
+
"@jpmorganchase/mosaic-serialisers": "^0.1.0-beta.34",
|
|
38
|
+
"@jpmorganchase/mosaic-source-git-repo": "^0.1.0-beta.34",
|
|
39
|
+
"@jpmorganchase/mosaic-source-local-folder": "^0.1.0-beta.34",
|
|
40
|
+
"@jpmorganchase/mosaic-types": "^0.1.0-beta.34",
|
|
41
41
|
"@types/github-slugger": "^1.3.0",
|
|
42
42
|
"@vcarl/remark-headings": "^0.1.0",
|
|
43
43
|
"check-links": "^2.0.0",
|
|
@@ -46,9 +46,12 @@
|
|
|
46
46
|
"https-proxy-agent": "^5.0.1",
|
|
47
47
|
"lodash-es": "^4.17.21",
|
|
48
48
|
"memfs": "^3.4.12",
|
|
49
|
+
"react-docgen-typescript": "^2.2.2",
|
|
49
50
|
"react-pro-sidebar": "^1.0.0",
|
|
50
51
|
"reading-time": "^1.5.0",
|
|
51
52
|
"remark": "^14.0.2",
|
|
53
|
+
"remark-directive": "^2.0.1",
|
|
54
|
+
"remark-gfm": "^3.0.1",
|
|
52
55
|
"remark-mdx": "^2.1.5",
|
|
53
56
|
"remark-parse": "^10.0.1",
|
|
54
57
|
"remark-stringify": "^10.0.2",
|