uilint-react 0.1.25 → 0.1.27

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.
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  useUILintContext
4
- } from "./chunk-45MPASAN.js";
4
+ } from "./chunk-5VJ2Q2QW.js";
5
5
 
6
6
  // src/components/ui-lint/LocatorOverlay.tsx
7
7
  import { useState, useEffect, useMemo } from "react";
package/dist/index.d.ts CHANGED
@@ -58,15 +58,23 @@ interface AutoScanState {
58
58
  totalElements: number;
59
59
  elements: ScannedElement[];
60
60
  }
61
+ /**
62
+ * A single issue found during scanning
63
+ */
64
+ interface ScanIssue {
65
+ /** Line number in source file */
66
+ line?: number;
67
+ /** Issue description */
68
+ message: string;
69
+ /** data-loc value to match to DOM element (format: path:line:column) */
70
+ dataLoc?: string;
71
+ }
61
72
  /**
62
73
  * Cached issue data for a scanned element
63
74
  */
64
75
  interface ElementIssue {
65
76
  elementId: string;
66
- issues: Array<{
67
- line?: number;
68
- message: string;
69
- }>;
77
+ issues: ScanIssue[];
70
78
  status: "pending" | "scanning" | "complete" | "error";
71
79
  }
72
80
  /**
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  UILintToolbar
4
- } from "./chunk-ORYG2TNM.js";
4
+ } from "./chunk-7X5HN55P.js";
5
5
  import {
6
6
  InspectionPanel,
7
7
  clearSourceCache,
@@ -9,10 +9,10 @@ import {
9
9
  fetchSourceWithContext,
10
10
  getCachedSource,
11
11
  prefetchSources
12
- } from "./chunk-SIVHTQ2P.js";
12
+ } from "./chunk-QYRESGFG.js";
13
13
  import {
14
14
  LocatorOverlay
15
- } from "./chunk-RA27RIJ2.js";
15
+ } from "./chunk-XLIDEQXH.js";
16
16
  import {
17
17
  DATA_UILINT_ID,
18
18
  DEFAULT_SETTINGS,
@@ -31,7 +31,7 @@ import {
31
31
  scanDOMForSources,
32
32
  updateElementRects,
33
33
  useUILintContext
34
- } from "./chunk-45MPASAN.js";
34
+ } from "./chunk-5VJ2Q2QW.js";
35
35
 
36
36
  // src/consistency/snapshot.ts
37
37
  var DATA_ELEMENTS_ATTR = "data-elements";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uilint-react",
3
- "version": "0.1.25",
3
+ "version": "0.1.27",
4
4
  "description": "React component for AI-powered UI consistency checking",
5
5
  "author": "Peter Suggate",
6
6
  "repository": {
@@ -34,7 +34,7 @@
34
34
  "node": ">=20.0.0"
35
35
  },
36
36
  "dependencies": {
37
- "uilint-core": "^0.1.25",
37
+ "uilint-core": "^0.1.27",
38
38
  "zustand": "^5.0.5"
39
39
  },
40
40
  "peerDependencies": {