uilint-react 0.2.68 → 0.2.69

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.
@@ -22,10 +22,11 @@ export declare function AnimatedSection({ children, delay, }: {
22
22
  *
23
23
  * Provides a smooth morphing selection indicator like Raycast
24
24
  */
25
- export declare function SelectionIndicator({ isSelected, children, variant, }: {
25
+ export declare function SelectionIndicator({ isSelected, children, variant, resultIndex, }: {
26
26
  isSelected: boolean;
27
27
  children: React.ReactNode;
28
28
  variant?: "default" | "command" | "issue";
29
+ resultIndex?: number;
29
30
  }): import("react/jsx-runtime").JSX.Element;
30
31
  export {};
31
32
  //# sourceMappingURL=AnimatedListItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AnimatedListItem.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/CommandPalette/AnimatedListItem.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,qBAAqB;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+BAA+B;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAKD,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,QAAe,EACf,YAAmB,GACpB,EAAE,qBAAqB,2CAmBvB;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,KAAS,GACV,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,2CAcA;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,UAAU,EACV,QAAQ,EACR,OAAmB,GACpB,EAAE;IACD,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;CAC3C,2CAiDA"}
1
+ {"version":3,"file":"AnimatedListItem.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/CommandPalette/AnimatedListItem.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,qBAAqB;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+BAA+B;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAKD,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,QAAe,EACf,YAAmB,GACpB,EAAE,qBAAqB,2CAmBvB;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,KAAS,GACV,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,2CAcA;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,UAAU,EACV,QAAQ,EACR,OAAmB,EACnB,WAAW,GACZ,EAAE;IACD,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,2CAoDA"}
@@ -1 +1 @@
1
- {"version":3,"file":"CommandPalette.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/CommandPalette/CommandPalette.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAyC,MAAM,OAAO,CAAC;AAuL9D,wBAAgB,cAAc,sBA6c7B"}
1
+ {"version":3,"file":"CommandPalette.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/CommandPalette/CommandPalette.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAyC,MAAM,OAAO,CAAC;AAwL9D,wBAAgB,cAAc,sBAkd7B"}
@@ -2,9 +2,10 @@ import { Issue } from '../../types';
2
2
  interface IssuesSummaryCardProps {
3
3
  issues: Issue[];
4
4
  isSelected: boolean;
5
+ resultIndex?: number;
5
6
  onClick: () => void;
6
7
  }
7
- export declare function IssuesSummaryCard({ issues, isSelected, onClick }: IssuesSummaryCardProps): import("react/jsx-runtime").JSX.Element | null;
8
+ export declare function IssuesSummaryCard({ issues, isSelected, resultIndex, onClick }: IssuesSummaryCardProps): import("react/jsx-runtime").JSX.Element | null;
8
9
  /**
9
10
  * TopIssuesPreview - Shows a few critical issues as a preview
10
11
  */
@@ -1 +1 @@
1
- {"version":3,"file":"IssuesSummaryCard.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/CommandPalette/IssuesSummaryCard.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,UAAU,sBAAsB;IAC9B,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAQD,wBAAgB,iBAAiB,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,sBAAsB,kDA4IxF;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,aAAa,EACb,UAAU,EACV,aAAa,GACd,EAAE;IACD,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;CACvB,kDAmCA"}
1
+ {"version":3,"file":"IssuesSummaryCard.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/CommandPalette/IssuesSummaryCard.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,UAAU,sBAAsB;IAC9B,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAQD,wBAAgB,iBAAiB,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE,sBAAsB,kDA+IrG;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,aAAa,EACb,UAAU,EACV,aAAa,GACd,EAAE;IACD,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;CACvB,kDAoCA"}
@@ -0,0 +1,28 @@
1
+ import { RefCallback } from 'react';
2
+ /**
3
+ * Context that holds the scroll-into-view registration map.
4
+ * Any navigable item calls `useScrollTarget(index)` to self-register,
5
+ * regardless of how deeply nested it is in the component tree.
6
+ */
7
+ interface ScrollSelectedContextValue {
8
+ register: (index: number, el: HTMLElement | null) => void;
9
+ }
10
+ export declare const ScrollSelectedContext: import('react').Context<ScrollSelectedContextValue | null>;
11
+ /**
12
+ * Hook consumed by the list owner (CommandPalette).
13
+ * Returns the context value to pass to `ScrollSelectedContext.Provider`.
14
+ *
15
+ * Scrolls the element at `selectedIndex` into view whenever it changes.
16
+ */
17
+ export declare function useScrollSelectedIntoView(selectedIndex: number): ScrollSelectedContextValue;
18
+ /**
19
+ * Hook consumed by each navigable item to self-register for scroll tracking.
20
+ * Returns a ref callback to attach to the item's root DOM element.
21
+ *
22
+ * Usage:
23
+ * const scrollRef = useScrollTarget(index);
24
+ * <div ref={scrollRef}>...</div>
25
+ */
26
+ export declare function useScrollTarget(index: number): RefCallback<HTMLElement>;
27
+ export {};
28
+ //# sourceMappingURL=useScrollSelectedIntoView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useScrollSelectedIntoView.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/CommandPalette/useScrollSelectedIntoView.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEzC;;;;GAIG;AAEH,UAAU,0BAA0B;IAClC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;CAC3D;AAED,eAAO,MAAM,qBAAqB,4DAAyD,CAAC;AAE5F;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,aAAa,EAAE,MAAM,GAAG,0BAA0B,CAiB3F;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CAAC,WAAW,CAAC,CAWvE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uilint-react",
3
- "version": "0.2.68",
3
+ "version": "0.2.69",
4
4
  "description": "React component for AI-powered UI consistency checking",
5
5
  "author": "Peter Suggate",
6
6
  "repository": {
@@ -47,8 +47,8 @@
47
47
  "react-use-measure": "^2.1.7",
48
48
  "tw-animate-css": "^1.4.0",
49
49
  "zustand": "^5.0.10",
50
- "uilint-core": "0.2.68",
51
- "uilint-eslint": "0.2.68"
50
+ "uilint-core": "0.2.69",
51
+ "uilint-eslint": "0.2.69"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "react": "^19.0.0",