uilint-react 0.2.158 → 0.2.159

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 (37) hide show
  1. package/dist/{SchemaPanel-Wk6fpjEp.js → SchemaPanel-CbK8qkwp.js} +2 -2
  2. package/dist/{SchemaPanel-Wk6fpjEp.js.map → SchemaPanel-CbK8qkwp.js.map} +1 -1
  3. package/dist/core/store/core-slice.d.ts +10 -0
  4. package/dist/core/store/core-slice.d.ts.map +1 -1
  5. package/dist/core/store/index.d.ts +1 -1
  6. package/dist/core/store/index.d.ts.map +1 -1
  7. package/dist/core/store/issues-selectors.d.ts +25 -0
  8. package/dist/core/store/issues-selectors.d.ts.map +1 -1
  9. package/dist/devtools.js +95 -95
  10. package/dist/devtools.js.map +1 -1
  11. package/dist/{index-BFGYqtC5.js → index-GmiP9jze.js} +5805 -5679
  12. package/dist/index-GmiP9jze.js.map +1 -0
  13. package/dist/index.js +1 -1
  14. package/dist/ui/components/Accordion.d.ts +8 -0
  15. package/dist/ui/components/Accordion.d.ts.map +1 -0
  16. package/dist/ui/components/HeatmapOverlay.d.ts.map +1 -1
  17. package/dist/ui/components/Inspector/ElementContextPanel.d.ts +5 -0
  18. package/dist/ui/components/Inspector/ElementContextPanel.d.ts.map +1 -0
  19. package/dist/ui/components/Inspector/FilePill.d.ts +10 -0
  20. package/dist/ui/components/Inspector/FilePill.d.ts.map +1 -0
  21. package/dist/ui/components/Inspector/HealthPulse.d.ts +5 -0
  22. package/dist/ui/components/Inspector/HealthPulse.d.ts.map +1 -0
  23. package/dist/ui/components/Inspector/InspectorSidebar.d.ts.map +1 -1
  24. package/dist/ui/components/Inspector/RuleCard.d.ts +15 -0
  25. package/dist/ui/components/Inspector/RuleCard.d.ts.map +1 -0
  26. package/dist/ui/components/Inspector/RuleCardList.d.ts +5 -0
  27. package/dist/ui/components/Inspector/RuleCardList.d.ts.map +1 -0
  28. package/dist/ui/components/Inspector/SeverityBar.d.ts +8 -0
  29. package/dist/ui/components/Inspector/SeverityBar.d.ts.map +1 -0
  30. package/package.json +11 -10
  31. package/dist/index-BFGYqtC5.js.map +0 -1
  32. package/dist/ui/components/Inspector/FileNodeAdapter.d.ts +0 -76
  33. package/dist/ui/components/Inspector/FileNodeAdapter.d.ts.map +0 -1
  34. package/dist/ui/components/Inspector/IssuesList.d.ts +0 -7
  35. package/dist/ui/components/Inspector/IssuesList.d.ts.map +0 -1
  36. package/dist/ui/components/Inspector/RuleNodeAdapter.d.ts +0 -62
  37. package/dist/ui/components/Inspector/RuleNodeAdapter.d.ts.map +0 -1
@@ -1,76 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { FileGroup } from '../../../core/store/file-groups-selector';
3
- import { HierarchyNode } from '../HierarchicalTiles/types';
4
- /**
5
- * Data payload for file hierarchy nodes.
6
- * Wraps the FileGroup to carry full file information through the hierarchy.
7
- */
8
- export interface FileNodeData {
9
- /** The underlying FileGroup data */
10
- fileGroup: FileGroup;
11
- }
12
- /**
13
- * Type alias for file-based hierarchy nodes.
14
- * Represents a file in the hierarchical tiles structure.
15
- */
16
- export type FileNode = HierarchyNode<FileNodeData>;
17
- /**
18
- * Transform FileGroup array to HierarchyNode array.
19
- *
20
- * Maps FileGroup properties to HierarchyNode structure:
21
- * - id: fileGroup.filePath (unique identifier)
22
- * - label: fileGroup.fileName (displayed prominently)
23
- * - subtitle: fileGroup.filePath (full path in mono font)
24
- * - tileType: "file" (for visual differentiation)
25
- * - count: fileGroup.totalCount (for badge/sizing)
26
- * - severityCounts: fileGroup.severityCounts (for severity indicators)
27
- * - data: { fileGroup } (full data payload)
28
- * - isLeaf: true (FileSourceView is the leaf content)
29
- * - children: undefined (leaf nodes have no child tiles)
30
- *
31
- * @param fileGroups - Array of FileGroup objects from the selector
32
- * @returns Array of FileNode objects ready for HierarchicalTiles
33
- */
34
- export declare function fileGroupsToNodes(fileGroups: FileGroup[]): FileNode[];
35
- export interface FileCardHeaderProps {
36
- /** The file node to render header for */
37
- node: FileNode;
38
- /** Whether this node is currently expanded */
39
- isExpanded: boolean;
40
- /** Additional class name */
41
- className?: string;
42
- }
43
- /**
44
- * FileCardHeader - Replicates the FileSection header styling.
45
- *
46
- * Displays:
47
- * - File name (prominent, font-light text-[17px])
48
- * - Directory (text-xs text-muted-foreground/50)
49
- * - Count (text-2xl font-extralight)
50
- * - Severity dots
51
- *
52
- * This component is designed to be used as the header content
53
- * within ExpandableContainer or similar tile-based layouts.
54
- */
55
- export declare function FileCardHeader({ node, isExpanded: _isExpanded, className }: FileCardHeaderProps): import("react/jsx-runtime").JSX.Element;
56
- /**
57
- * Render function for ExpandableContainer's renderHeader prop.
58
- *
59
- * This function returns a ReactNode that renders the FileCardHeader
60
- * component. It's designed to be passed to ExpandableContainer.
61
- *
62
- * @param node - The FileNode to render a header for
63
- * @param isExpanded - Whether the node is currently expanded
64
- * @returns ReactNode rendering the file header
65
- *
66
- * @example
67
- * ```tsx
68
- * <ExpandableContainer
69
- * node={fileNode}
70
- * renderHeader={(node) => renderFileHeader(node, isExpanded)}
71
- * // ... other props
72
- * />
73
- * ```
74
- */
75
- export declare function renderFileHeader(node: FileNode, isExpanded: boolean): ReactNode;
76
- //# sourceMappingURL=FileNodeAdapter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FileNodeAdapter.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/Inspector/FileNodeAdapter.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAMhE;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,oCAAoC;IACpC,SAAS,EAAE,SAAS,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,aAAa,CAAC,YAAY,CAAC,CAAC;AA2DnD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,SAAS,EAAE,GAAG,QAAQ,EAAE,CAYrE;AAMD,MAAM,WAAW,mBAAmB;IAClC,yCAAyC;IACzC,IAAI,EAAE,QAAQ,CAAC;IACf,8CAA8C;IAC9C,UAAU,EAAE,OAAO,CAAC;IACpB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,mBAAmB,2CAoC/F;AAMD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,GAAG,SAAS,CAE/E"}
@@ -1,7 +0,0 @@
1
- export interface IssuesListProps {
2
- /** Additional class name */
3
- className?: string;
4
- }
5
- export declare function IssuesList({ className }: IssuesListProps): import("react/jsx-runtime").JSX.Element;
6
- export default IssuesList;
7
- //# sourceMappingURL=IssuesList.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IssuesList.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/Inspector/IssuesList.tsx"],"names":[],"mappings":"AA0FA,MAAM,WAAW,eAAe;IAC9B,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAqCD,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,EAAE,eAAe,2CAmbxD;AAsDD,eAAe,UAAU,CAAC"}
@@ -1,62 +0,0 @@
1
- import { HierarchyNode, SeverityCounts } from '../HierarchicalTiles';
2
- import { FileGroup } from '../../../core/store/file-groups-selector';
3
- /**
4
- * Data payload for rule hierarchy nodes.
5
- * Contains aggregated rule information across all files.
6
- */
7
- export interface RuleData {
8
- ruleId: string;
9
- ruleName: string;
10
- highestSeverity: "error" | "warning" | "info";
11
- files: FileForRule[];
12
- }
13
- /**
14
- * File information within a rule's hierarchy.
15
- * Represents a single file that has issues for a specific rule.
16
- */
17
- export interface FileForRule {
18
- filePath: string;
19
- fileName: string;
20
- directory: string;
21
- issueCount: number;
22
- severityCounts: SeverityCounts;
23
- issues: Array<{
24
- id: string;
25
- message: string;
26
- severity: "error" | "warning" | "info";
27
- line: number;
28
- column?: number;
29
- }>;
30
- }
31
- /**
32
- * Type alias for rule-based hierarchy nodes.
33
- * Represents a rule in the hierarchical tiles structure.
34
- */
35
- export type RuleNode = HierarchyNode<RuleData>;
36
- /**
37
- * Type alias for file nodes within a rule's hierarchy.
38
- * Represents a file containing issues for a specific rule.
39
- */
40
- export type FileForRuleNode = HierarchyNode<FileForRule>;
41
- /**
42
- * Transform FileGroup[] into RuleNode[] (rule-first hierarchy)
43
- *
44
- * Aggregates issues by rule across all files, creating a two-level structure:
45
- * - Level 0: Rules sorted by severity (errors first), then by count
46
- * - Level 1: Files for each rule, also sorted by severity then count
47
- *
48
- * @param fileGroups - Array of FileGroup objects from the selector
49
- * @returns Array of RuleNode objects ready for HierarchicalTiles
50
- */
51
- export declare function fileGroupsToRuleNodes(fileGroups: FileGroup[]): RuleNode[];
52
- /**
53
- * Get file nodes for a specific rule.
54
- *
55
- * Transforms a RuleNode's file data into FileForRuleNode[] for
56
- * rendering the second level of the hierarchy.
57
- *
58
- * @param ruleNode - The RuleNode to extract file nodes from
59
- * @returns Array of FileForRuleNode objects sorted by severity then count
60
- */
61
- export declare function getFileNodesForRule(ruleNode: RuleNode): FileForRuleNode[];
62
- //# sourceMappingURL=RuleNodeAdapter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RuleNodeAdapter.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/Inspector/RuleNodeAdapter.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,KAAK,EAAE,SAAS,E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