uilint-react 0.2.73 → 0.2.75
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/core/plugin-system/category-registry.d.ts +137 -0
- package/dist/core/plugin-system/category-registry.d.ts.map +1 -0
- package/dist/core/plugin-system/index.d.ts +2 -1
- package/dist/core/plugin-system/index.d.ts.map +1 -1
- package/dist/core/plugin-system/registry.d.ts +16 -1
- package/dist/core/plugin-system/registry.d.ts.map +1 -1
- package/dist/core/plugin-system/types.d.ts +74 -0
- package/dist/core/plugin-system/types.d.ts.map +1 -1
- package/dist/core/store/core-slice.d.ts +8 -0
- package/dist/core/store/core-slice.d.ts.map +1 -1
- package/dist/devtools.js +86 -86
- package/dist/devtools.js.map +1 -1
- package/dist/index.js +4474 -3554
- package/dist/index.js.map +1 -1
- package/dist/plugins/eslint/index.d.ts.map +1 -1
- package/dist/ui/components/CommandPalette/CategorySidebar.d.ts +33 -8
- package/dist/ui/components/CommandPalette/CategorySidebar.d.ts.map +1 -1
- package/dist/ui/components/CommandPalette/CommandPalette.d.ts.map +1 -1
- package/dist/ui/components/CommandPalette/SearchInput.d.ts +30 -3
- package/dist/ui/components/CommandPalette/SearchInput.d.ts.map +1 -1
- package/dist/ui/hooks/index.d.ts +1 -0
- package/dist/ui/hooks/index.d.ts.map +1 -1
- package/dist/ui/hooks/useCategoryRegistry.d.ts +43 -0
- package/dist/ui/hooks/useCategoryRegistry.d.ts.map +1 -0
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/eslint/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/eslint/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,MAAM,EACN,cAAc,EAMf,MAAM,gCAAg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CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,wBAAwB;IAChC,IAAI,EAAE,qBAAqB,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED,KAAK,gBAAgB,GACjB,iBAAiB,GACjB,mBAAmB,GACnB,kBAAkB,GAClB,oBAAoB,GACpB,4BAA4B,GAC5B,oBAAoB,GACpB,uBAAuB,GACvB,wBAAwB,CAAC;AAE7B;;GAEG;AACH,iBAAS,sBAAsB,CAC7B,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,gBAAgB,GACxB,IAAI,CAiIN;AAgID,eAAe,YAAY,CAAC;AAG5B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAG5C,OAAO,EACL,mBAAmB,EACnB,YAAY,EACZ,eAAe,EACf,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,sBAAsB,IAAI,iCAAiC,EAAE,CAAC"}
|
|
@@ -1,10 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { CategoryNode } from '../../../core/plugin-system/category-registry';
|
|
3
|
+
declare const sidebarVariants: (props?: ({
|
|
4
|
+
size?: "default" | "compact" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
declare const sidebarItemVariants: (props?: ({
|
|
7
|
+
state?: "loading" | "default" | "selected" | null | undefined;
|
|
8
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
+
export interface CategorySidebarProps extends VariantProps<typeof sidebarVariants> {
|
|
10
|
+
/** Category tree from registry */
|
|
11
|
+
categories: CategoryNode[];
|
|
12
|
+
/** Currently selected category ID (null = "All") */
|
|
13
|
+
selectedId: string | null;
|
|
14
|
+
/** Callback when category is selected */
|
|
15
|
+
onSelect: (categoryId: string | null) => void;
|
|
16
|
+
/** Whether sidebar has keyboard focus */
|
|
17
|
+
isFocused?: boolean;
|
|
18
|
+
/** Additional class name */
|
|
19
|
+
className?: string;
|
|
7
20
|
}
|
|
8
|
-
|
|
9
|
-
|
|
21
|
+
/**
|
|
22
|
+
* CategorySidebar - Main component
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* <CategorySidebar
|
|
27
|
+
* categories={categoryTree}
|
|
28
|
+
* selectedId={selectedCategoryId}
|
|
29
|
+
* onSelect={setSelectedCategory}
|
|
30
|
+
* />
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export declare function CategorySidebar({ categories, selectedId, onSelect, isFocused, size, className, }: CategorySidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
export { sidebarVariants, sidebarItemVariants };
|
|
10
35
|
//# sourceMappingURL=CategorySidebar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CategorySidebar.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/CommandPalette/CategorySidebar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CategorySidebar.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/CommandPalette/CategorySidebar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAMlF,QAAA,MAAM,eAAe;;8EAapB,CAAC;AAEF,QAAA,MAAM,mBAAmB;;8EAcxB,CAAC;AAwCF,MAAM,WAAW,oBAAqB,SAAQ,YAAY,CAAC,OAAO,eAAe,CAAC;IAChF,kCAAkC;IAClC,UAAU,EAAE,YAAY,EAAE,CAAC;IAC3B,oDAAoD;IACpD,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,yCAAyC;IACzC,QAAQ,EAAE,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC9C,yCAAyC;IACzC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAgOD;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,EAC9B,UAAU,EACV,UAAU,EACV,QAAQ,EACR,SAAiB,EACjB,IAAI,EACJ,SAAS,GACV,EAAE,oBAAoB,2CAgGtB;AAED,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandPalette.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/CommandPalette/CommandPalette.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"CommandPalette.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/CommandPalette/CommandPalette.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAoD,MAAM,OAAO,CAAC;AA4RzE,wBAAgB,cAAc,sBA8jB7B"}
|
|
@@ -1,8 +1,35 @@
|
|
|
1
|
-
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
declare const searchContainerVariants: (props?: ({
|
|
3
|
+
size?: "default" | "large" | null | undefined;
|
|
4
|
+
state?: "default" | "focused" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
declare const searchInputVariants: (props?: ({
|
|
7
|
+
size?: "default" | "large" | null | undefined;
|
|
8
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
+
export interface SearchInputProps extends VariantProps<typeof searchContainerVariants> {
|
|
10
|
+
/** Current search value */
|
|
2
11
|
value: string;
|
|
12
|
+
/** Callback when value changes */
|
|
3
13
|
onChange: (value: string) => void;
|
|
14
|
+
/** Placeholder text */
|
|
4
15
|
placeholder?: string;
|
|
16
|
+
/** Auto focus on mount */
|
|
17
|
+
autoFocus?: boolean;
|
|
18
|
+
/** Additional class name */
|
|
19
|
+
className?: string;
|
|
5
20
|
}
|
|
6
|
-
|
|
7
|
-
|
|
21
|
+
/**
|
|
22
|
+
* SearchInput - Hero search bar component
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* <SearchInput
|
|
27
|
+
* value={query}
|
|
28
|
+
* onChange={setQuery}
|
|
29
|
+
* placeholder="Search commands, issues, rules..."
|
|
30
|
+
* />
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export declare function SearchInput({ value, onChange, placeholder, autoFocus, size, className, }: SearchInputProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
export { searchContainerVariants, searchInputVariants };
|
|
8
35
|
//# sourceMappingURL=SearchInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/CommandPalette/SearchInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/CommandPalette/SearchInput.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAKH,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AASlE,QAAA,MAAM,uBAAuB;;;8EAkB5B,CAAC;AAEF,QAAA,MAAM,mBAAmB;;8EAaxB,CAAC;AA8BF,MAAM,WAAW,gBAAiB,SAAQ,YAAY,CAAC,OAAO,uBAAuB,CAAC;IACpF,2BAA2B;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0BAA0B;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAMD;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,QAAQ,EACR,WAAiD,EACjD,SAAgB,EAChB,IAAI,EACJ,SAAS,GACV,EAAE,gBAAgB,2CAsGlB;AAED,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,CAAC"}
|
package/dist/ui/hooks/index.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export { useIssues } from './useIssues';
|
|
|
2
2
|
export { useKeyboardShortcuts } from './useKeyboardShortcuts';
|
|
3
3
|
export { useElementRects } from './useElementRects';
|
|
4
4
|
export { useSourceCode } from './useSourceCode';
|
|
5
|
+
export { useCategoryRegistry, type UseCategoryRegistryReturn } from './useCategoryRegistry';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,KAAK,yBAAyB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { CategoryNode } from '../../core/plugin-system/category-registry';
|
|
2
|
+
import { CategoryItem } from '../../core/plugin-system/types';
|
|
3
|
+
/**
|
|
4
|
+
* Hook return type
|
|
5
|
+
*/
|
|
6
|
+
export interface UseCategoryRegistryReturn {
|
|
7
|
+
/** Category tree for sidebar display (empty categories filtered out) */
|
|
8
|
+
categoryTree: CategoryNode[];
|
|
9
|
+
/** Load items for a specific category */
|
|
10
|
+
loadItems: (categoryId: string) => Promise<CategoryItem[]>;
|
|
11
|
+
/** Get cached items for a category */
|
|
12
|
+
getCachedItems: (categoryId: string) => CategoryItem[];
|
|
13
|
+
/** Search items across categories */
|
|
14
|
+
searchItems: (query: string, categoryId?: string) => CategoryItem[];
|
|
15
|
+
/** Invalidate cache for a category or all categories */
|
|
16
|
+
invalidate: (categoryId?: string) => void;
|
|
17
|
+
/** Whether any category is currently loading */
|
|
18
|
+
isLoading: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* React hook for using the category registry
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```tsx
|
|
25
|
+
* function CategorySidebar() {
|
|
26
|
+
* const { categoryTree, loadItems, isLoading } = useCategoryRegistry();
|
|
27
|
+
*
|
|
28
|
+
* return (
|
|
29
|
+
* <div>
|
|
30
|
+
* {categoryTree.map(category => (
|
|
31
|
+
* <CategoryItem
|
|
32
|
+
* key={category.id}
|
|
33
|
+
* category={category}
|
|
34
|
+
* onClick={() => loadItems(category.id)}
|
|
35
|
+
* />
|
|
36
|
+
* ))}
|
|
37
|
+
* </div>
|
|
38
|
+
* );
|
|
39
|
+
* }
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
export declare function useCategoryRegistry(): UseCategoryRegistryReturn;
|
|
43
|
+
//# sourceMappingURL=useCategoryRegistry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCategoryRegistry.d.ts","sourceRoot":"","sources":["../../../src/ui/hooks/useCategoryRegistry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAEL,KAAK,YAAY,EAClB,MAAM,4CAA4C,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,wEAAwE;IACxE,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7B,yCAAyC;IACzC,SAAS,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;IAC3D,sCAAsC;IACtC,cAAc,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,YAAY,EAAE,CAAC;IACvD,qCAAqC;IACrC,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,YAAY,EAAE,CAAC;IACpE,wDAAwD;IACxD,UAAU,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,gDAAgD;IAChD,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,mBAAmB,IAAI,yBAAyB,CAwD/D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uilint-react",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.75",
|
|
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-
|
|
51
|
-
"uilint-
|
|
50
|
+
"uilint-core": "0.2.75",
|
|
51
|
+
"uilint-eslint": "0.2.75"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"react": "^19.0.0",
|