@podlite/diagram 0.0.54 → 0.0.56
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.podlite +4 -0
- package/LICENSE +1 -1
- package/esm/index.d.ts +1 -2
- package/esm/index.js +25 -60
- package/esm/index.js.map +1 -1
- package/lib/index.d.ts +1 -2
- package/lib/index.js +24 -59
- package/lib/index.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.podlite
CHANGED
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright © 2021-
|
|
3
|
+
Copyright © 2021-2026 Aliaksandr Zahatski
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/esm/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Plugin, Plugins } from '@podlite/schema';
|
|
3
|
-
declare const Diagram: ({ chart,
|
|
3
|
+
declare const Diagram: ({ chart, caption, id }: {
|
|
4
4
|
chart: string;
|
|
5
|
-
isError: any;
|
|
6
5
|
caption?: string;
|
|
7
6
|
id?: string;
|
|
8
7
|
}) => React.JSX.Element;
|
package/esm/index.js
CHANGED
|
@@ -1,85 +1,50 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useEffect, useRef } from 'react';
|
|
2
|
+
import { useEffect, useRef, useState } from 'react';
|
|
3
3
|
import { makeAttrs, getSafeNodeId } from '@podlite/schema';
|
|
4
4
|
import mermaid from 'mermaid';
|
|
5
5
|
let i = 0;
|
|
6
|
-
const Diagram = ({ chart,
|
|
6
|
+
const Diagram = ({ chart, caption, id }) => {
|
|
7
7
|
const inputEl = useRef(null);
|
|
8
|
-
const
|
|
9
|
-
securityLevel: 'loose',
|
|
10
|
-
startOnLoad: false,
|
|
11
|
-
};
|
|
8
|
+
const [error, setError] = useState(null);
|
|
12
9
|
useEffect(() => {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
let cancelled = false;
|
|
11
|
+
setError(null);
|
|
12
|
+
if (!chart.trim()) {
|
|
13
|
+
if (inputEl.current)
|
|
14
|
+
inputEl.current.innerHTML = '';
|
|
18
15
|
return;
|
|
19
16
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
17
|
+
mermaid.initialize({ securityLevel: 'loose', startOnLoad: false });
|
|
18
|
+
mermaid
|
|
19
|
+
.render('graph-div' + i++, chart)
|
|
20
|
+
.then(({ svg }) => {
|
|
21
|
+
if (!cancelled && inputEl.current)
|
|
22
|
+
inputEl.current.innerHTML = svg;
|
|
23
|
+
})
|
|
24
|
+
.catch(e => {
|
|
25
|
+
if (!cancelled)
|
|
26
|
+
setError(e instanceof Error ? e.message : String(e));
|
|
27
|
+
});
|
|
28
|
+
return () => {
|
|
29
|
+
cancelled = true;
|
|
30
|
+
};
|
|
28
31
|
}, [chart]);
|
|
29
32
|
return (React.createElement("div", { className: "diagram", id: id },
|
|
30
|
-
React.createElement("div", { className:
|
|
33
|
+
error ? React.createElement("div", { className: "mermaid error" }, error) : React.createElement("div", { className: "mermaid", ref: inputEl }),
|
|
31
34
|
caption ? React.createElement("div", { className: "caption" }, caption) : null));
|
|
32
35
|
};
|
|
33
36
|
export const plugin = {
|
|
34
|
-
toAst: writer => node => {
|
|
35
|
-
if (typeof node !== 'string' && 'type' in node && 'content' in node && node.type === 'block') {
|
|
36
|
-
const content = node.content[0];
|
|
37
|
-
if (content && typeof content !== 'string' && 'location' in node && 'value' in content) {
|
|
38
|
-
// get link and alt text
|
|
39
|
-
const data = content.value;
|
|
40
|
-
try {
|
|
41
|
-
mermaid.parse(data);
|
|
42
|
-
}
|
|
43
|
-
catch (err) {
|
|
44
|
-
// calculate line in relation to node
|
|
45
|
-
const convert_line_to_absolute = (line, location) => {
|
|
46
|
-
const lineoffset = line + location.start.line + 1;
|
|
47
|
-
return {
|
|
48
|
-
start: {
|
|
49
|
-
offset: 0,
|
|
50
|
-
line: lineoffset,
|
|
51
|
-
column: 1,
|
|
52
|
-
},
|
|
53
|
-
end: {
|
|
54
|
-
offset: 9,
|
|
55
|
-
line: lineoffset,
|
|
56
|
-
column: 2,
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
if (typeof window !== 'undefined') {
|
|
61
|
-
if (!err['hash']) {
|
|
62
|
-
err['hash'] = { line: 0 };
|
|
63
|
-
}
|
|
64
|
-
node.custom = { ...err, location: convert_line_to_absolute(err['hash']['line'], node.location) };
|
|
65
|
-
writer.emit('errors', node.location);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
return node;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
37
|
toJSX: helper => () => (node, ctx, interator) => {
|
|
73
38
|
const conf = makeAttrs(node, ctx);
|
|
74
39
|
const caption = conf.exists('caption') ? conf.getFirstValue('caption') : null;
|
|
75
40
|
const id = getSafeNodeId(node, ctx);
|
|
76
41
|
return helper(({ children, key }) => {
|
|
77
|
-
return
|
|
42
|
+
return React.createElement(Diagram, { key: key, id: id, caption: caption, chart: node.content[0]?.value ?? '' });
|
|
78
43
|
}, node, interator(node.content, { ...ctx }));
|
|
79
44
|
},
|
|
80
45
|
};
|
|
81
46
|
export const PluginRegister = {
|
|
82
|
-
Diagram: plugin,
|
|
47
|
+
Diagram: plugin, // TODO: deprecate it
|
|
83
48
|
Mermaid: plugin,
|
|
84
49
|
};
|
|
85
50
|
export default Diagram;
|
package/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAA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AE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,IAAI,EAAE,GAAI,CAAA;QAC7F,CAAC,EACD,IAAI,EACJ,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,GAAG,GAAG,EAAE,CAAC,CACpC,CAAA;IACH,CAAC;CACF,CAAA;AACD,MAAM,CAAC,MAAM,cAAc,GAAY;IACrC,OAAO,EAAE,MAAM,EAAE,qBAAqB;IACtC,OAAO,EAAE,MAAM;CAChB,CAAA;AACD,eAAe,OAAO,CAAA"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Plugin, Plugins } from '@podlite/schema';
|
|
3
|
-
declare const Diagram: ({ chart,
|
|
3
|
+
declare const Diagram: ({ chart, caption, id }: {
|
|
4
4
|
chart: string;
|
|
5
|
-
isError: any;
|
|
6
5
|
caption?: string;
|
|
7
6
|
id?: string;
|
|
8
7
|
}) => React.JSX.Element;
|
package/lib/index.js
CHANGED
|
@@ -9,83 +9,48 @@ const react_2 = require("react");
|
|
|
9
9
|
const schema_1 = require("@podlite/schema");
|
|
10
10
|
const mermaid_1 = __importDefault(require("mermaid"));
|
|
11
11
|
let i = 0;
|
|
12
|
-
const Diagram = ({ chart,
|
|
12
|
+
const Diagram = ({ chart, caption, id }) => {
|
|
13
13
|
const inputEl = (0, react_2.useRef)(null);
|
|
14
|
-
const
|
|
15
|
-
securityLevel: 'loose',
|
|
16
|
-
startOnLoad: false,
|
|
17
|
-
};
|
|
14
|
+
const [error, setError] = (0, react_2.useState)(null);
|
|
18
15
|
(0, react_2.useEffect)(() => {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
let cancelled = false;
|
|
17
|
+
setError(null);
|
|
18
|
+
if (!chart.trim()) {
|
|
19
|
+
if (inputEl.current)
|
|
20
|
+
inputEl.current.innerHTML = '';
|
|
24
21
|
return;
|
|
25
22
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
23
|
+
mermaid_1.default.initialize({ securityLevel: 'loose', startOnLoad: false });
|
|
24
|
+
mermaid_1.default
|
|
25
|
+
.render('graph-div' + i++, chart)
|
|
26
|
+
.then(({ svg }) => {
|
|
27
|
+
if (!cancelled && inputEl.current)
|
|
28
|
+
inputEl.current.innerHTML = svg;
|
|
29
|
+
})
|
|
30
|
+
.catch(e => {
|
|
31
|
+
if (!cancelled)
|
|
32
|
+
setError(e instanceof Error ? e.message : String(e));
|
|
33
|
+
});
|
|
34
|
+
return () => {
|
|
35
|
+
cancelled = true;
|
|
36
|
+
};
|
|
34
37
|
}, [chart]);
|
|
35
38
|
return (react_1.default.createElement("div", { className: "diagram", id: id },
|
|
36
|
-
react_1.default.createElement("div", { className:
|
|
39
|
+
error ? react_1.default.createElement("div", { className: "mermaid error" }, error) : react_1.default.createElement("div", { className: "mermaid", ref: inputEl }),
|
|
37
40
|
caption ? react_1.default.createElement("div", { className: "caption" }, caption) : null));
|
|
38
41
|
};
|
|
39
42
|
exports.plugin = {
|
|
40
|
-
toAst: writer => node => {
|
|
41
|
-
if (typeof node !== 'string' && 'type' in node && 'content' in node && node.type === 'block') {
|
|
42
|
-
const content = node.content[0];
|
|
43
|
-
if (content && typeof content !== 'string' && 'location' in node && 'value' in content) {
|
|
44
|
-
// get link and alt text
|
|
45
|
-
const data = content.value;
|
|
46
|
-
try {
|
|
47
|
-
mermaid_1.default.parse(data);
|
|
48
|
-
}
|
|
49
|
-
catch (err) {
|
|
50
|
-
// calculate line in relation to node
|
|
51
|
-
const convert_line_to_absolute = (line, location) => {
|
|
52
|
-
const lineoffset = line + location.start.line + 1;
|
|
53
|
-
return {
|
|
54
|
-
start: {
|
|
55
|
-
offset: 0,
|
|
56
|
-
line: lineoffset,
|
|
57
|
-
column: 1,
|
|
58
|
-
},
|
|
59
|
-
end: {
|
|
60
|
-
offset: 9,
|
|
61
|
-
line: lineoffset,
|
|
62
|
-
column: 2,
|
|
63
|
-
},
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
if (typeof window !== 'undefined') {
|
|
67
|
-
if (!err['hash']) {
|
|
68
|
-
err['hash'] = { line: 0 };
|
|
69
|
-
}
|
|
70
|
-
node.custom = { ...err, location: convert_line_to_absolute(err['hash']['line'], node.location) };
|
|
71
|
-
writer.emit('errors', node.location);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return node;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
43
|
toJSX: helper => () => (node, ctx, interator) => {
|
|
79
44
|
const conf = (0, schema_1.makeAttrs)(node, ctx);
|
|
80
45
|
const caption = conf.exists('caption') ? conf.getFirstValue('caption') : null;
|
|
81
46
|
const id = (0, schema_1.getSafeNodeId)(node, ctx);
|
|
82
47
|
return helper(({ children, key }) => {
|
|
83
|
-
return
|
|
48
|
+
return react_1.default.createElement(Diagram, { key: key, id: id, caption: caption, chart: node.content[0]?.value ?? '' });
|
|
84
49
|
}, node, interator(node.content, { ...ctx }));
|
|
85
50
|
},
|
|
86
51
|
};
|
|
87
52
|
exports.PluginRegister = {
|
|
88
|
-
Diagram: exports.plugin,
|
|
53
|
+
Diagram: exports.plugin, // TODO: deprecate it
|
|
89
54
|
Mermaid: exports.plugin,
|
|
90
55
|
};
|
|
91
56
|
exports.default = Diagram;
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AACzB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AACzB,iCAAmD;AACnD,4CAA2E;AAC3E,sDAA6B;AAE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CAChB,CAAA;AACD,kBAAe,OAAO,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@podlite/diagram",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.56",
|
|
4
4
|
"description": "Embed Mermaid diagrams in Podlite documents — renders to SVG",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"access": "public"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@podlite/schema": "0.0.
|
|
60
|
-
"mermaid": "
|
|
59
|
+
"@podlite/schema": "0.0.52",
|
|
60
|
+
"mermaid": "^11.15.0",
|
|
61
61
|
"react-is": "^18.0.0"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|