uilint-react 0.1.47 → 0.1.48

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.
@@ -3,7 +3,7 @@
3
3
  import {
4
4
  useUILintContext,
5
5
  useUILintStore
6
- } from "./chunk-RAPUZC5J.js";
6
+ } from "./chunk-C4QQXZFH.js";
7
7
 
8
8
  // src/components/ui-lint/ElementBadges.tsx
9
9
  import React, { useState, useEffect, useCallback, useMemo } from "react";
@@ -197,11 +197,11 @@ function snapToWindowBounds(x, y) {
197
197
  };
198
198
  }
199
199
  function shouldShowBadge(issue, isAltKeyPressed) {
200
- if (issue.status === "error") return true;
201
- if (issue.status === "complete" && issue.issues.length > 0) return true;
202
200
  if (issue.status === "complete" && issue.issues.length === 0) {
203
- return isAltKeyPressed;
201
+ return false;
204
202
  }
203
+ if (issue.status === "error") return true;
204
+ if (issue.status === "complete" && issue.issues.length > 0) return true;
205
205
  if (issue.status === "scanning" || issue.status === "pending") {
206
206
  return isAltKeyPressed;
207
207
  }
@@ -2,9 +2,9 @@
2
2
  "use client";
3
3
  import {
4
4
  InspectionPanel
5
- } from "./chunk-UF6KN2JJ.js";
5
+ } from "./chunk-B7DZUX7G.js";
6
6
  import "./chunk-S4IWHBOQ.js";
7
- import "./chunk-RAPUZC5J.js";
7
+ import "./chunk-C4QQXZFH.js";
8
8
  export {
9
9
  InspectionPanel
10
10
  };
@@ -3,8 +3,8 @@
3
3
  import {
4
4
  InspectedElementHighlight,
5
5
  LocatorOverlay
6
- } from "./chunk-LNLTM7N6.js";
7
- import "./chunk-RAPUZC5J.js";
6
+ } from "./chunk-VKLP23BP.js";
7
+ import "./chunk-C4QQXZFH.js";
8
8
  export {
9
9
  InspectedElementHighlight,
10
10
  LocatorOverlay
@@ -2,9 +2,9 @@
2
2
  "use client";
3
3
  import {
4
4
  UILintToolbar
5
- } from "./chunk-OSYIUF52.js";
5
+ } from "./chunk-FLUATYJF.js";
6
6
  import "./chunk-S4IWHBOQ.js";
7
- import "./chunk-RAPUZC5J.js";
7
+ import "./chunk-C4QQXZFH.js";
8
8
  export {
9
9
  UILintToolbar
10
10
  };
@@ -7,7 +7,7 @@ import {
7
7
  buildEditorUrl,
8
8
  useUILintContext,
9
9
  useUILintStore
10
- } from "./chunk-RAPUZC5J.js";
10
+ } from "./chunk-C4QQXZFH.js";
11
11
 
12
12
  // src/components/ui-lint/InspectionPanel.tsx
13
13
  import React, {
@@ -1063,10 +1063,10 @@ function UILintUI() {
1063
1063
  const [components, setComponents] = useState(null);
1064
1064
  useEffect2(() => {
1065
1065
  Promise.all([
1066
- import("./UILintToolbar-FWVC6MNG.js"),
1067
- import("./InspectionPanel-4P7I4QVY.js"),
1068
- import("./LocatorOverlay-L3EPYQEF.js"),
1069
- import("./ElementBadges-N2N3CBLI.js")
1066
+ import("./UILintToolbar-ZBHPX3LA.js"),
1067
+ import("./InspectionPanel-PHCAOOL3.js"),
1068
+ import("./LocatorOverlay-ZGBYXTXG.js"),
1069
+ import("./ElementBadges-TSHIYUHQ.js")
1070
1070
  ]).then(([toolbar, panel, locator, badges]) => {
1071
1071
  setComponents({
1072
1072
  Toolbar: toolbar.UILintToolbar,
@@ -9,7 +9,7 @@ import {
9
9
  groupBySourceFile,
10
10
  useUILintContext,
11
11
  useUILintStore
12
- } from "./chunk-RAPUZC5J.js";
12
+ } from "./chunk-C4QQXZFH.js";
13
13
 
14
14
  // src/components/ui-lint/UILintToolbar.tsx
15
15
  import React3, { useState as useState2, useRef as useRef2, useEffect as useEffect3, useCallback as useCallback2 } from "react";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  useUILintContext
4
- } from "./chunk-RAPUZC5J.js";
4
+ } from "./chunk-C4QQXZFH.js";
5
5
 
6
6
  // src/components/ui-lint/LocatorOverlay.tsx
7
7
  import { useState, useEffect, useMemo } from "react";
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  UILintToolbar
4
- } from "./chunk-OSYIUF52.js";
4
+ } from "./chunk-FLUATYJF.js";
5
5
  import {
6
6
  InspectionPanel
7
- } from "./chunk-UF6KN2JJ.js";
7
+ } from "./chunk-B7DZUX7G.js";
8
8
  import {
9
9
  clearSourceCache,
10
10
  fetchSource,
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-S4IWHBOQ.js";
15
15
  import {
16
16
  LocatorOverlay
17
- } from "./chunk-LNLTM7N6.js";
17
+ } from "./chunk-VKLP23BP.js";
18
18
  import {
19
19
  DATA_UILINT_ID,
20
20
  DEFAULT_SETTINGS,
@@ -30,7 +30,7 @@ import {
30
30
  scanDOMForSources,
31
31
  updateElementRects,
32
32
  useUILintContext
33
- } from "./chunk-RAPUZC5J.js";
33
+ } from "./chunk-C4QQXZFH.js";
34
34
 
35
35
  // src/consistency/snapshot.ts
36
36
  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.47",
3
+ "version": "0.1.48",
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.47",
37
+ "uilint-core": "^0.1.48",
38
38
  "zustand": "^5.0.5"
39
39
  },
40
40
  "peerDependencies": {