uilint-react 0.2.45 → 0.2.47

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/README.md CHANGED
@@ -12,10 +12,10 @@ React component for AI-powered UI consistency checking in running applications.
12
12
  npm install uilint-react uilint-core
13
13
  ```
14
14
 
15
- Or use the CLI to install everything automatically:
15
+ Or use the CLI to initialize everything automatically:
16
16
 
17
17
  ```bash
18
- npx uilint install
18
+ npx uilint init
19
19
  ```
20
20
 
21
21
  ## Usage in a Running App
@@ -1 +1 @@
1
- {"version":3,"file":"HeatmapOverlay.d.ts","sourceRoot":"","sources":["../../../src/components/ui-lint/HeatmapOverlay.tsx"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,OAAO,KAAmD,MAAM,OAAO,CAAC;AAoCxE,wBAAgB,cAAc,6BA4Q7B"}
1
+ {"version":3,"file":"HeatmapOverlay.d.ts","sourceRoot":"","sources":["../../../src/components/ui-lint/HeatmapOverlay.tsx"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,OAAO,KAAmD,MAAM,OAAO,CAAC;AAsCxE,wBAAgB,cAAc,6BA8R7B"}
@@ -1,9 +1,10 @@
1
1
  /**
2
2
  * Heatmap color utilities for issue density visualization
3
3
  *
4
- * Uses a single warm color (amber/orange) with varying opacity
5
- * to create a beautiful, minimal heatmap effect.
4
+ * Uses different colors for warnings (amber) vs errors (red)
5
+ * with varying opacity to create a beautiful, minimal heatmap effect.
6
6
  */
7
+ export type IssueSeverity = "error" | "warn";
7
8
  /**
8
9
  * Calculate opacity based on issue count using logarithmic scale.
9
10
  * Logarithmic scaling prevents high-outlier counts from overwhelming the display.
@@ -15,10 +16,20 @@
15
16
  export declare function calculateHeatmapOpacity(issueCount: number, maxIssues: number): number;
16
17
  /**
17
18
  * Get CSS color string for heatmap overlay background
19
+ * @deprecated Use getSeverityColor instead
18
20
  */
19
21
  export declare function getHeatmapColor(opacity: number): string;
20
22
  /**
21
23
  * Get border color for heatmap (slightly more saturated and darker)
24
+ * @deprecated Use getSeverityBorderColor instead
22
25
  */
23
26
  export declare function getHeatmapBorderColor(opacity: number): string;
27
+ /**
28
+ * Get CSS color string for heatmap overlay based on severity
29
+ */
30
+ export declare function getSeverityColor(opacity: number, severity: IssueSeverity): string;
31
+ /**
32
+ * Get border color for heatmap based on severity (slightly more saturated and darker)
33
+ */
34
+ export declare function getSeverityBorderColor(opacity: number, severity: IssueSeverity): string;
24
35
  //# sourceMappingURL=heatmap-colors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"heatmap-colors.d.ts","sourceRoot":"","sources":["../../../src/components/ui-lint/heatmap-colors.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAeH;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,GAChB,MAAM,CAcR;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAGvD;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAK7D"}
1
+ {"version":3,"file":"heatmap-colors.d.ts","sourceRoot":"","sources":["../../../src/components/ui-lint/heatmap-colors.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,CAAC;AAyB7C;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,GAChB,MAAM,CAcR;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAGvD;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAK7D;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,aAAa,GACtB,MAAM,CAGR;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,aAAa,GACtB,MAAM,CAKR"}