diff options
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/shared-types/index.ts | 4 | ||||
| -rw-r--r-- | packages/ui/icons/home.svg | 3 | ||||
| -rw-r--r-- | packages/ui/icons/index.ts | 4 | ||||
| -rw-r--r-- | packages/ui/shadcn/switch.tsx | 2 | ||||
| -rw-r--r-- | packages/ui/tsconfig.json | 2 | ||||
| -rw-r--r-- | packages/ui/tsconfig.lint.json | 2 | ||||
| -rw-r--r-- | packages/ui/types.d.ts | 4 |
7 files changed, 16 insertions, 5 deletions
diff --git a/packages/shared-types/index.ts b/packages/shared-types/index.ts index b3e84897..051e24a4 100644 --- a/packages/shared-types/index.ts +++ b/packages/shared-types/index.ts @@ -17,6 +17,9 @@ export const ChatHistoryZod = z.object({ sources: z.array(SourceZod), justification: z.string().optional(), }), + proModeProcessing: z.object({ + queries: z.array(z.string()), + }), }); export type ChatHistory = z.infer<typeof ChatHistoryZod>; @@ -77,6 +80,7 @@ export const sourcesZod = z.object({ ids: z.array(z.string()), metadata: z.array(z.any()), normalizedData: z.array(z.any()).optional(), + proModeListedQueries: z.array(z.string()).optional(), }); export type SourcesFromApi = z.infer<typeof sourcesZod>; diff --git a/packages/ui/icons/home.svg b/packages/ui/icons/home.svg new file mode 100644 index 00000000..16ddf88d --- /dev/null +++ b/packages/ui/icons/home.svg @@ -0,0 +1,3 @@ +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" width="24" height="24" className="size-5"> + <path fill="#fff" fillRule="evenodd" d="M9.293 2.293a1 1 0 0 1 1.414 0l7 7A1 1 0 0 1 17 11h-1v6a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-6H3a1 1 0 0 1-.707-1.707l7-7Z" clipRule="evenodd" /> +</svg> diff --git a/packages/ui/icons/index.ts b/packages/ui/icons/index.ts index 516e3c81..cdbc0024 100644 --- a/packages/ui/icons/index.ts +++ b/packages/ui/icons/index.ts @@ -9,12 +9,12 @@ import SearchIcon from "./search.svg"; import NextIcon from "./nextarrow.svg"; import UrlIcon from "./url.svg"; import CanvasIcon from "./canvas.svg"; -import blockIcon from "./block.svg"; import LinkIcon from "./link.svg"; import AutocompleteIcon from "./autocomplete.svg"; import BlockIcon from "./block.svg"; import DragIcon from "./drag.svg"; import SettingsIcon from "./settings.svg"; +import HomeIcon from "./home.svg"; export { AddIcon, @@ -28,10 +28,10 @@ export { NextIcon, UrlIcon, CanvasIcon, - blockIcon, LinkIcon, AutocompleteIcon, BlockIcon, DragIcon, SettingsIcon, + HomeIcon, }; diff --git a/packages/ui/shadcn/switch.tsx b/packages/ui/shadcn/switch.tsx index bf02d835..c5961182 100644 --- a/packages/ui/shadcn/switch.tsx +++ b/packages/ui/shadcn/switch.tsx @@ -11,7 +11,7 @@ const Switch = React.forwardRef< >(({ className, ...props }, ref) => ( <SwitchPrimitives.Root className={cn( - "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input", + "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-white data-[state=unchecked]:bg-[#409EFD1A]", className, )} {...props} diff --git a/packages/ui/tsconfig.json b/packages/ui/tsconfig.json index 2e64c120..55fbf930 100644 --- a/packages/ui/tsconfig.json +++ b/packages/ui/tsconfig.json @@ -4,5 +4,5 @@ "outDir": "dist" }, "exclude": ["node_modules", "dist"], - "include": ["shadcn", "icons", "hooks", "components"] + "include": ["shadcn", "icons", "hooks", "components", "types.d.ts"] } diff --git a/packages/ui/tsconfig.lint.json b/packages/ui/tsconfig.lint.json index 2e64c120..55fbf930 100644 --- a/packages/ui/tsconfig.lint.json +++ b/packages/ui/tsconfig.lint.json @@ -4,5 +4,5 @@ "outDir": "dist" }, "exclude": ["node_modules", "dist"], - "include": ["shadcn", "icons", "hooks", "components"] + "include": ["shadcn", "icons", "hooks", "components", "types.d.ts"] } diff --git a/packages/ui/types.d.ts b/packages/ui/types.d.ts new file mode 100644 index 00000000..51b04577 --- /dev/null +++ b/packages/ui/types.d.ts @@ -0,0 +1,4 @@ +declare module "*.svg" { + const content: React.FunctionComponent<React.SVGAttributes<SVGElement>>; + export default content; +} |