uilint-react 0.1.24 → 0.1.26
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/dist/{ElementBadges-T4N3VQRI.js → ElementBadges-HFQNIIO2.js} +29 -51
- package/dist/{InspectionPanel-47JBBKBL.js → InspectionPanel-4OWY4FVY.js} +2 -2
- package/dist/{LocatorOverlay-ADJUWU2H.js → LocatorOverlay-JJDOKNOS.js} +2 -2
- package/dist/{UILintToolbar-5PG6WVW6.js → UILintToolbar-GMZ6YSI2.js} +2 -2
- package/dist/{chunk-I4C3NAUH.js → chunk-5VJ2Q2QW.js} +402 -286
- package/dist/{chunk-GFURSJEQ.js → chunk-7X5HN55P.js} +1 -1
- package/dist/chunk-QYRESGFG.js +1463 -0
- package/dist/{chunk-EB6K2KGR.js → chunk-XLIDEQXH.js} +1 -1
- package/dist/index.d.ts +13 -4
- package/dist/index.js +4 -4
- package/package.json +3 -2
- package/dist/chunk-FWYNI6JG.js +0 -1359
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:
|
|
67
|
-
line?: number;
|
|
68
|
-
message: string;
|
|
69
|
-
}>;
|
|
77
|
+
issues: ScanIssue[];
|
|
70
78
|
status: "pending" | "scanning" | "complete" | "error";
|
|
71
79
|
}
|
|
72
80
|
/**
|
|
@@ -159,6 +167,7 @@ declare const DATA_UILINT_ID = "data-ui-lint-id";
|
|
|
159
167
|
|
|
160
168
|
/**
|
|
161
169
|
* Hook to access UILint context
|
|
170
|
+
* For backwards compatibility - delegates to Zustand store
|
|
162
171
|
*/
|
|
163
172
|
declare function useUILintContext(): UILintContextValue;
|
|
164
173
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
UILintToolbar
|
|
4
|
-
} from "./chunk-
|
|
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-
|
|
12
|
+
} from "./chunk-QYRESGFG.js";
|
|
13
13
|
import {
|
|
14
14
|
LocatorOverlay
|
|
15
|
-
} from "./chunk-
|
|
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-
|
|
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.
|
|
3
|
+
"version": "0.1.26",
|
|
4
4
|
"description": "React component for AI-powered UI consistency checking",
|
|
5
5
|
"author": "Peter Suggate",
|
|
6
6
|
"repository": {
|
|
@@ -34,7 +34,8 @@
|
|
|
34
34
|
"node": ">=20.0.0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"uilint-core": "^0.1.
|
|
37
|
+
"uilint-core": "^0.1.26",
|
|
38
|
+
"zustand": "^5.0.5"
|
|
38
39
|
},
|
|
39
40
|
"peerDependencies": {
|
|
40
41
|
"react": "^19.0.0",
|