@opencode/ui 2.0.32 → 2.1.0
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.
|
@@ -19,7 +19,7 @@ export interface ScrollViewProps extends ComponentProps<"div"> {
|
|
|
19
19
|
/** Offset/extent correction for a virtualized vertical scrollbar. */
|
|
20
20
|
verticalScrollAdjustment?: number;
|
|
21
21
|
}
|
|
22
|
-
export declare const scrollKey: (event: Pick<KeyboardEvent, "key" | "altKey" | "ctrlKey" | "metaKey" | "shiftKey">) => "end" | "home" | "page-down" | "page-up" | "up" |
|
|
22
|
+
export declare const scrollKey: (event: Pick<KeyboardEvent, "key" | "altKey" | "ctrlKey" | "metaKey" | "shiftKey">) => "down" | "end" | "home" | "page-down" | "page-up" | "up" | undefined;
|
|
23
23
|
export declare function canScrollKey(element: HTMLElement, key: NonNullable<ReturnType<typeof scrollKey>>): boolean;
|
|
24
24
|
export declare function scrollKeyOwner(root: HTMLElement, target: EventTarget | null, key: NonNullable<ReturnType<typeof scrollKey>>): HTMLElement;
|
|
25
25
|
export declare function isScrollKeyTarget(target: EventTarget | null, key: NonNullable<ReturnType<typeof scrollKey>>): boolean;
|
package/dist/theme/context.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export type ColorScheme = "light" | "dark" | "system";
|
|
|
3
3
|
export declare const useTheme: () => {
|
|
4
4
|
themeId: () => string;
|
|
5
5
|
colorScheme: () => ColorScheme;
|
|
6
|
-
mode: () => "
|
|
6
|
+
mode: () => "dark" | "light";
|
|
7
7
|
ids: () => string[];
|
|
8
8
|
name: (id: string) => string;
|
|
9
9
|
loadThemes: () => Promise<Record<string, DesktopTheme>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencode/ui",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
},
|
|
227
227
|
"scripts": {
|
|
228
228
|
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|
|
229
|
-
"typecheck": "
|
|
229
|
+
"typecheck": "tsc --noEmit",
|
|
230
230
|
"test": "bun test src --only-failures",
|
|
231
231
|
"dev": "vite",
|
|
232
232
|
"generate:tailwind": "bun run script/tailwind.ts",
|
|
@@ -236,10 +236,10 @@
|
|
|
236
236
|
"@solidjs/meta": "0.29.4",
|
|
237
237
|
"@tsconfig/node22": "22.0.2",
|
|
238
238
|
"@types/bun": "1.4.0",
|
|
239
|
-
"@typescript/native
|
|
239
|
+
"@typescript/native": "npm:typescript@7.0.2",
|
|
240
240
|
"solid-js": "1.9.15",
|
|
241
241
|
"tailwindcss": "4.1.11",
|
|
242
|
-
"typescript": "
|
|
242
|
+
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
243
243
|
"vite": "7.3.6",
|
|
244
244
|
"vite-plugin-icons-spritesheet": "3.0.1",
|
|
245
245
|
"vite-plugin-solid": "2.11.10"
|