@canyonjs/report-component 1.0.17 → 1.0.19

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Canyon Platforms, Inc. and affiliates.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.css CHANGED
@@ -152,11 +152,14 @@
152
152
  border-bottom: 1px solid #e0e0e0;
153
153
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
154
154
  z-index: 1000;
155
- transition: max-height 0.3s ease, opacity 0.3s ease;
155
+ transition:
156
+ max-height 0.3s ease,
157
+ opacity 0.3s ease;
156
158
  opacity: 0;
157
159
  }
158
160
 
159
- .canyonjs-report-html .canyon-changed-code-coverage-content[style*="max-height: auto"] {
161
+ .canyonjs-report-html
162
+ .canyon-changed-code-coverage-content[style*="max-height: auto"] {
160
163
  opacity: 1;
161
164
  }
162
165
 
@@ -170,16 +173,21 @@
170
173
  }
171
174
 
172
175
  /* 下拉选项样式优化 */
173
- .canyonjs-report-html .canyon-changed-code-coverage-select-wrapper .ant-select-item {
176
+ .canyonjs-report-html .canyon-changed-code-coverage-select-wrapper
177
+ .ant-select-item {
174
178
  padding: 6px 12px !important;
175
179
  line-height: 20px !important;
176
180
  }
177
181
 
178
- .canyonjs-report-html .canyon-changed-code-coverage-select-wrapper .ant-select-item-option-active {
182
+ .canyonjs-report-html
183
+ .canyon-changed-code-coverage-select-wrapper
184
+ .ant-select-item-option-active {
179
185
  background-color: #f5f5f5;
180
186
  }
181
187
 
182
- .canyonjs-report-html .canyon-changed-code-coverage-select-wrapper .ant-select-item-option-content {
188
+ .canyonjs-report-html
189
+ .canyon-changed-code-coverage-select-wrapper
190
+ .ant-select-item-option-content {
183
191
  display: flex;
184
192
  align-items: center;
185
193
  }
package/dist/index.js CHANGED
@@ -368,7 +368,7 @@ const ChangedCodeCoverageTable = ({ coverage, addLines, onJumpToRange }) => {
368
368
  notCoveredCount
369
369
  };
370
370
  }, [relatedStatements, filteredStatements]);
371
- if (filteredStatements.length === 0) return null;
371
+ if (relatedStatements.length === 0) return null;
372
372
  const handleSelectChange = (value) => {
373
373
  setSelectedValue(value);
374
374
  const statement = allStatementsForSelect.find((s) => s.key === value);
@@ -392,7 +392,8 @@ const ChangedCodeCoverageTable = ({ coverage, addLines, onJumpToRange }) => {
392
392
  coverageStats.coveredCount,
393
393
  "/",
394
394
  coverageStats.totalCount,
395
- ") - ",
395
+ ") -",
396
+ " ",
396
397
  coverageStats.notCoveredCount,
397
398
  " Not Covered"
398
399
  ] }),
@@ -988,7 +989,6 @@ var SummaryList_default = SummaryList;
988
989
  //#endregion
989
990
  //#region src/widgets/SummaryTree.tsx
990
991
  function checkSuffix(str) {
991
- console.log(str);
992
992
  return true;
993
993
  }
994
994
  const SummaryTree = ({ dataSource, onSelect, style, onlyChange }) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@canyonjs/report-component",
3
3
  "type": "module",
4
- "version": "1.0.17",
4
+ "version": "1.0.19",
5
5
  "author": "Travis Zhang<https://github.com/travzhang>",
6
6
  "repository": {
7
7
  "type": "git",
@@ -32,8 +32,8 @@
32
32
  "@vitejs/plugin-react": "^5.1.1",
33
33
  "istanbul-lib-coverage": "^3.2.2",
34
34
  "tsdown": "^0.17.0",
35
- "@typescript/native-preview": "7.0.0-dev.20260119.1",
36
- "vite": "8.0.0-beta.0",
35
+ "@typescript/native-preview": "7.0.0-dev.20260204.1",
36
+ "vite": "8.0.0-beta.13",
37
37
  "@monaco-editor/react": "4.7.0"
38
38
  },
39
39
  "dependencies": {