@opencode/ui 2.1.3 → 2.1.4

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.
@@ -1,21 +1,24 @@
1
1
  import type { DesktopTheme } from "./types";
2
2
  export type ColorScheme = "light" | "dark" | "system";
3
- export declare const useTheme: () => {
4
- themeId: () => string;
5
- colorScheme: () => ColorScheme;
6
- mode: () => "dark" | "light";
7
- ids: () => string[];
8
- name: (id: string) => string;
9
- loadThemes: () => Promise<Record<string, DesktopTheme>>;
10
- themes: () => Record<string, DesktopTheme>;
11
- setTheme: (id: string) => void;
12
- setColorScheme: (scheme: ColorScheme) => void;
13
- registerTheme: (theme: DesktopTheme) => void;
14
- previewTheme: (id: string) => void;
15
- previewColorScheme: (scheme: ColorScheme) => void;
16
- commitPreview: () => void;
17
- cancelPreview: () => void;
18
- }, ThemeProvider: (props: import("solid-js").ParentProps<{
19
- defaultTheme?: string;
20
- onThemeApplied?: (theme: DesktopTheme, mode: "light" | "dark", scheme: ColorScheme) => void;
21
- }>) => import("solid-js").JSX.Element;
3
+ export declare const { use: useTheme, provider: ThemeProvider }: {
4
+ provider: (props: import("solid-js").ParentProps<{
5
+ defaultTheme?: string;
6
+ onThemeApplied?: (theme: DesktopTheme, mode: "light" | "dark", scheme: ColorScheme) => void;
7
+ }>) => import("solid-js").JSX.Element;
8
+ use(): {
9
+ themeId: () => string;
10
+ colorScheme: () => ColorScheme;
11
+ mode: () => "dark" | "light";
12
+ ids: () => string[];
13
+ name: (id: string) => string;
14
+ loadThemes: () => Promise<Record<string, DesktopTheme>>;
15
+ themes: () => Record<string, DesktopTheme>;
16
+ setTheme: (id: string) => void;
17
+ setColorScheme: (scheme: ColorScheme) => void;
18
+ registerTheme: (theme: DesktopTheme) => void;
19
+ previewTheme: (id: string) => void;
20
+ previewColorScheme: (scheme: ColorScheme) => void;
21
+ commitPreview: () => void;
22
+ cancelPreview: () => void;
23
+ };
24
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencode/ui",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -226,7 +226,8 @@
226
226
  },
227
227
  "scripts": {
228
228
  "build": "rm -rf dist && tsc -p tsconfig.build.json",
229
- "typecheck": "tsc --noEmit",
229
+ "typecheck": "bun check --no-script",
230
+ "typecheck:tsc": "tsc --noEmit",
230
231
  "test": "bun test src --only-failures",
231
232
  "dev": "vite",
232
233
  "generate:tailwind": "bun run script/tailwind.ts",
@@ -236,7 +237,7 @@
236
237
  "@solidjs/meta": "0.29.4",
237
238
  "@tsconfig/node22": "22.0.2",
238
239
  "@types/bun": "1.4.3",
239
- "@typescript/native": "npm:typescript@7.0.2",
240
+ "@typescript/native": "npm:typescript@7.1.0-beta",
240
241
  "solid-js": "1.9.15",
241
242
  "tailwindcss": "4.1.11",
242
243
  "typescript": "npm:@typescript/typescript6@6.0.2",