@canyonjs/report-component 0.0.1-beta.7 → 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.
Files changed (2) hide show
  1. package/dist/index.js +5 -4
  2. 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__ */ jsxs("div", { children: [JSON.stringify(fileCodeChange || []), /* @__PURE__ */ jsx("div", {
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
 
@@ -1110,7 +1112,6 @@ const CanyonReport = ({ value, name, dataSource, onSelect }) => {
1110
1112
  return hasCoverage && hasContent;
1111
1113
  }, [fileCoverage, fileContent]);
1112
1114
  const { treeDataSource, rootDataSource, listDataSource } = useMemo(() => {
1113
- console.log(dataSource, "dataSource", "filenameKeywords", filenameKeywords, value);
1114
1115
  return generateCoreDataForEachComponent({
1115
1116
  dataSource,
1116
1117
  filenameKeywords,
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.7",
5
- "description": "A starter for creating a React component library.",
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": "git+https://github.com/author/library.git"
8
+ "url": "https://github.com/canyon-project/canyon"
12
9
  },
13
10
  "bugs": {
14
- "url": "https://github.com/author/library/issues"
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",