@canyonjs/report-component 0.0.1-beta.8 → 0.0.1-beta.9
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/index.js +5 -3
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -1047,21 +1047,23 @@ var RIf_default = RIf;
|
|
|
1047
1047
|
//#endregion
|
|
1048
1048
|
//#region src/widgets/CoverageDetail.tsx
|
|
1049
1049
|
function CanyonReport$1({ fileContent, fileCoverage, fileCodeChange }) {
|
|
1050
|
+
console.log(fileCodeChange, "fileCodeChange");
|
|
1050
1051
|
const ref = useRef(null);
|
|
1051
1052
|
useEffect(() => {
|
|
1052
1053
|
if (ref.current) {
|
|
1053
1054
|
const dom = ref.current;
|
|
1054
1055
|
const options = {
|
|
1055
1056
|
value: fileContent,
|
|
1056
|
-
language: "javascript"
|
|
1057
|
+
language: "javascript",
|
|
1058
|
+
fontFamily: "IBMPlexMono"
|
|
1057
1059
|
};
|
|
1058
1060
|
if (window.monaco?.editor && dom) window.monaco.editor.create(dom, options);
|
|
1059
1061
|
}
|
|
1060
1062
|
}, []);
|
|
1061
|
-
return /* @__PURE__ */
|
|
1063
|
+
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("div", {
|
|
1062
1064
|
ref,
|
|
1063
1065
|
style: { height: "calc(100vh - 150px)" }
|
|
1064
|
-
})
|
|
1066
|
+
}) });
|
|
1065
1067
|
}
|
|
1066
1068
|
var CoverageDetail_default = CanyonReport$1;
|
|
1067
1069
|
|
package/package.json
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canyonjs/report-component",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.1-beta.
|
|
5
|
-
"
|
|
6
|
-
"author": "Author Name <author.name@mail.com>",
|
|
7
|
-
"license": "MIT",
|
|
8
|
-
"homepage": "https://github.com/author/library#readme",
|
|
4
|
+
"version": "0.0.1-beta.9",
|
|
5
|
+
"author": "Travis Zhang<https://github.com/travzhang>",
|
|
9
6
|
"repository": {
|
|
10
7
|
"type": "git",
|
|
11
|
-
"url": "
|
|
8
|
+
"url": "https://github.com/canyon-project/canyon"
|
|
12
9
|
},
|
|
13
10
|
"bugs": {
|
|
14
|
-
"url": "https://github.com/
|
|
11
|
+
"url": "https://github.com/canyon-project/canyon/issues"
|
|
15
12
|
},
|
|
13
|
+
"homepage": "https://github.com/canyon-project/canyon#readme",
|
|
14
|
+
"license": "MIT",
|
|
16
15
|
"exports": {
|
|
17
16
|
".": "./dist/index.js",
|
|
18
17
|
"./package.json": "./package.json"
|
|
@@ -44,6 +43,7 @@
|
|
|
44
43
|
},
|
|
45
44
|
"dependencies": {
|
|
46
45
|
"@ant-design/icons": "^6.1.0",
|
|
46
|
+
"@ibm/plex-mono": "^1.1.0",
|
|
47
47
|
"@monaco-editor/react": "^4.7.0",
|
|
48
48
|
"antd": "^6.1.0",
|
|
49
49
|
"canyon-data": "2.0.0-beta.36",
|