uilint-react 0.2.87 → 0.2.89
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/registry.d.ts +15 -13
- package/dist/core/plugin-system/registry.d.ts.map +1 -1
- package/dist/core/store/category-slice.d.ts +87 -0
- package/dist/core/store/category-slice.d.ts.map +1 -0
- package/dist/core/store/composed-store.d.ts +12 -3
- package/dist/core/store/composed-store.d.ts.map +1 -1
- package/dist/devtools.js +86 -86
- package/dist/devtools.js.map +1 -1
- package/dist/index.js +3288 -3416
- package/dist/index.js.map +1 -1
- package/dist/ui/components/CommandPalette/CategorySidebar.d.ts +1 -1
- 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/MobileCategoryTabs.d.ts +1 -1
- package/dist/ui/components/CommandPalette/MobileCategoryTabs.d.ts.map +1 -1
- package/dist/ui/hooks/index.d.ts +1 -1
- package/dist/ui/hooks/index.d.ts.map +1 -1
- package/dist/ui/hooks/useCategoryRegistry.d.ts +29 -3
- package/dist/ui/hooks/useCategoryRegistry.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { CategoryNode } from '../../../core/
|
|
2
|
+
import { CategoryNode } from '../../../core/store/category-slice';
|
|
3
3
|
declare const sidebarVariants: (props?: ({
|
|
4
4
|
size?: "default" | "compact" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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,oCAAoC,CAAC;AAMvE,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;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAoD,MAAM,OAAO,CAAC;AAwRzE,wBAAgB,cAAc,
|
|
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;AAwRzE,wBAAgB,cAAc,sBAulB7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileCategoryTabs.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/CommandPalette/MobileCategoryTabs.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"MobileCategoryTabs.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/CommandPalette/MobileCategoryTabs.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAEvE,UAAU,uBAAuB;IAC/B,UAAU,EAAE,YAAY,EAAE,CAAC;IAC3B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CAC/C;AAED,wBAAgB,kBAAkB,CAAC,EACjC,UAAU,EACV,UAAU,EACV,QAAQ,GACT,EAAE,uBAAuB,2CAkGzB"}
|
package/dist/ui/hooks/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ 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
|
+
export { useCategoryRegistry, useCategoryItems, useLoadCategoryItems, type UseCategoryRegistryReturn, } from './useCategoryRegistry';
|
|
6
6
|
export { useIsMobile, BREAKPOINTS } from './useIsMobile';
|
|
7
7
|
export { useTouchDrag } from './useTouchDrag';
|
|
8
8
|
//# 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;AAChD,OAAO,
|
|
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,EACL,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,KAAK,yBAAyB,GAC/B,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CategoryNode } from '../../core/
|
|
1
|
+
import { CategoryNode } from '../../core/store/category-slice';
|
|
2
2
|
import { CategoryItem } from '../../core/plugin-system/types';
|
|
3
3
|
/**
|
|
4
4
|
* Hook return type
|
|
@@ -8,7 +8,7 @@ export interface UseCategoryRegistryReturn {
|
|
|
8
8
|
categoryTree: CategoryNode[];
|
|
9
9
|
/** Load items for a specific category */
|
|
10
10
|
loadItems: (categoryId: string) => Promise<CategoryItem[]>;
|
|
11
|
-
/** Get cached items for a category */
|
|
11
|
+
/** Get cached items for a category (reactive) */
|
|
12
12
|
getCachedItems: (categoryId: string) => CategoryItem[];
|
|
13
13
|
/** Search items across categories */
|
|
14
14
|
searchItems: (query: string, categoryId?: string) => CategoryItem[];
|
|
@@ -18,7 +18,10 @@ export interface UseCategoryRegistryReturn {
|
|
|
18
18
|
isLoading: boolean;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
* React hook for using the category registry
|
|
21
|
+
* React hook for using the category registry via Zustand selectors.
|
|
22
|
+
*
|
|
23
|
+
* All state access is reactive - components will automatically re-render
|
|
24
|
+
* when the relevant state changes.
|
|
22
25
|
*
|
|
23
26
|
* @example
|
|
24
27
|
* ```tsx
|
|
@@ -40,4 +43,27 @@ export interface UseCategoryRegistryReturn {
|
|
|
40
43
|
* ```
|
|
41
44
|
*/
|
|
42
45
|
export declare function useCategoryRegistry(): UseCategoryRegistryReturn;
|
|
46
|
+
/**
|
|
47
|
+
* Hook to get cached items for a specific category.
|
|
48
|
+
* More efficient than useCategoryRegistry when you only need items for one category.
|
|
49
|
+
*
|
|
50
|
+
* @param categoryId - The category ID to get items for
|
|
51
|
+
* @returns Array of cached items (empty if not loaded)
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```tsx
|
|
55
|
+
* function CategoryItemsList({ categoryId }: { categoryId: string }) {
|
|
56
|
+
* const items = useCategoryItems(categoryId);
|
|
57
|
+
* return <ul>{items.map(item => <li key={item.id}>{item.title}</li>)}</ul>;
|
|
58
|
+
* }
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
export declare function useCategoryItems(categoryId: string | null): CategoryItem[];
|
|
62
|
+
/**
|
|
63
|
+
* Hook to load items for a category.
|
|
64
|
+
* Returns a stable callback that loads items on demand.
|
|
65
|
+
*
|
|
66
|
+
* @returns Function to load items for a category
|
|
67
|
+
*/
|
|
68
|
+
export declare function useLoadCategoryItems(): (categoryId: string) => Promise<CategoryItem[]>;
|
|
43
69
|
//# sourceMappingURL=useCategoryRegistry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCategoryRegistry.d.ts","sourceRoot":"","sources":["../../../src/ui/hooks/useCategoryRegistry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"useCategoryRegistry.d.ts","sourceRoot":"","sources":["../../../src/ui/hooks/useCategoryRegistry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAGL,KAAK,YAAY,EAClB,MAAM,iCAAiC,CAAC;AACzC,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,iDAAiD;IACjD,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;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,mBAAmB,IAAI,yBAAyB,CAwC/D;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,YAAY,EAAE,CAE1E;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,IAAI,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,YAAY,EAAE,CAAC,CAEtF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uilint-react",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.89",
|
|
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.
|
|
51
|
-
"uilint-eslint": "0.2.
|
|
50
|
+
"uilint-core": "0.2.89",
|
|
51
|
+
"uilint-eslint": "0.2.89"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"react": "^19.0.0",
|