udi-yac 0.1.2 → 0.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.
Files changed (28) hide show
  1. package/dist/app/UDIChatConfig.d.ts +6 -0
  2. package/dist/app/UDIChatContext.d.ts +5 -0
  3. package/dist/components/MarkdownText.d.ts +6 -0
  4. package/dist/components/ui/accordion.d.ts +6 -0
  5. package/dist/components/ui/dialog.d.ts +1 -1
  6. package/dist/components/ui/dropdown-menu.d.ts +3 -3
  7. package/dist/components/ui/scroll-area.d.ts +5 -1
  8. package/dist/components/ui/select.d.ts +3 -3
  9. package/dist/components/ui/tooltip.d.ts +1 -1
  10. package/dist/data/hubmap_api/datapackage.json +489 -397
  11. package/dist/features/chat/components/InlineExamplePrompts.d.ts +13 -0
  12. package/dist/features/chat/components/MemoryBankButton.d.ts +6 -0
  13. package/dist/features/chat/hooks/useMessageListScroll.d.ts +20 -0
  14. package/dist/features/chat/hooks/useResetHandlers.d.ts +1 -1
  15. package/dist/features/dashboard/components/DashboardCard.d.ts +2 -2
  16. package/dist/features/dashboard/index.d.ts +1 -1
  17. package/dist/features/dashboard/stores/dashboardStore.d.ts +8 -11
  18. package/dist/features/dashboard/stores/memoryBankStore.d.ts +3 -3
  19. package/dist/features/data-package/index.d.ts +1 -1
  20. package/dist/features/data-package/utils/structuredTextParser.d.ts +10 -3
  21. package/dist/features/tool-calls/components/FieldListChip.d.ts +13 -0
  22. package/dist/features/tool-calls/components/FreeTextExplain.d.ts +1 -1
  23. package/dist/features/tool-calls/components/RebuffNotice.d.ts +1 -3
  24. package/dist/features/tool-calls/components/ToolCallRenderer.d.ts +2 -2
  25. package/dist/features/tool-calls/components/VisualizationCard.d.ts +2 -2
  26. package/dist/udi-yac.css +1 -1
  27. package/dist/udi-yac.js +16737 -16362
  28. package/package.json +1 -1
@@ -39,6 +39,12 @@ export interface UDIChatConfig {
39
39
  * separated by a divider.
40
40
  */
41
41
  downloadActions?: readonly DownloadAction[];
42
+ /**
43
+ * Override the visible label on the Download dropdown trigger. Defaults
44
+ * to "Download Data". Useful when consumers want product-specific
45
+ * wording (e.g. "Export", "Download Cohort").
46
+ */
47
+ downloadButtonLabel?: string;
42
48
  /**
43
49
  * Map from entity name (as it appears in the data package `resources[].name`)
44
50
  * to an icon component. Merged on top of the built-in icons (donors,
@@ -31,6 +31,11 @@ export declare function DownloadActionsProvider({ actions, children, }: {
31
31
  children: ReactNode;
32
32
  }): import("react/jsx-runtime").JSX.Element;
33
33
  export declare function useDownloadActions(): readonly DownloadAction[];
34
+ export declare function DownloadButtonLabelProvider({ label, children, }: {
35
+ label: string | undefined;
36
+ children: ReactNode;
37
+ }): import("react/jsx-runtime").JSX.Element;
38
+ export declare function useDownloadButtonLabel(): string;
34
39
  export declare function EntityIconsProvider({ icons, children, }: {
35
40
  icons: EntityIconMap | undefined;
36
41
  children: ReactNode;
@@ -0,0 +1,6 @@
1
+ interface MarkdownTextProps {
2
+ children: string;
3
+ className?: string;
4
+ }
5
+ export declare function MarkdownText({ children, className }: MarkdownTextProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { Accordion as AccordionPrimitive } from '@base-ui/react/accordion';
2
+ declare function Accordion({ className, ...props }: AccordionPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
3
+ declare function AccordionItem({ className, ...props }: AccordionPrimitive.Item.Props): import("react/jsx-runtime").JSX.Element;
4
+ declare function AccordionTrigger({ className, children, ...props }: AccordionPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
5
+ declare function AccordionContent({ className, children, ...props }: AccordionPrimitive.Panel.Props): import("react/jsx-runtime").JSX.Element;
6
+ export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
@@ -1,7 +1,7 @@
1
1
  import { Dialog as DialogPrimitive } from '@base-ui/react/dialog';
2
2
  import * as React from 'react';
3
3
  declare function Dialog({ ...props }: DialogPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
4
- declare function DialogTrigger({ ...props }: DialogPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
4
+ declare const DialogTrigger: React.ForwardRefExoticComponent<Omit<DialogPrimitive.Trigger.Props<unknown>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
5
5
  declare function DialogPortal({ ...props }: DialogPrimitive.Portal.Props): import("react/jsx-runtime").JSX.Element;
6
6
  declare function DialogClose({ ...props }: DialogPrimitive.Close.Props): import("react/jsx-runtime").JSX.Element;
7
7
  declare function DialogOverlay({ className, ...props }: DialogPrimitive.Backdrop.Props): import("react/jsx-runtime").JSX.Element;
@@ -2,7 +2,7 @@ import { Menu as MenuPrimitive } from '@base-ui/react/menu';
2
2
  import * as React from 'react';
3
3
  declare function DropdownMenu({ ...props }: MenuPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
4
4
  declare function DropdownMenuPortal({ ...props }: MenuPrimitive.Portal.Props): import("react/jsx-runtime").JSX.Element;
5
- declare function DropdownMenuTrigger({ ...props }: MenuPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
5
+ declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<Omit<MenuPrimitive.Trigger.Props<unknown>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
6
6
  declare function DropdownMenuContent({ align, alignOffset, side, sideOffset, className, ...props }: MenuPrimitive.Popup.Props & Pick<MenuPrimitive.Positioner.Props, 'align' | 'alignOffset' | 'side' | 'sideOffset'>): import("react/jsx-runtime").JSX.Element;
7
7
  declare function DropdownMenuGroup({ ...props }: MenuPrimitive.Group.Props): import("react/jsx-runtime").JSX.Element;
8
8
  declare function DropdownMenuLabel({ className, inset, ...props }: MenuPrimitive.GroupLabel.Props & {
@@ -13,9 +13,9 @@ declare function DropdownMenuItem({ className, inset, variant, ...props }: MenuP
13
13
  variant?: 'default' | 'destructive';
14
14
  }): import("react/jsx-runtime").JSX.Element;
15
15
  declare function DropdownMenuSub({ ...props }: MenuPrimitive.SubmenuRoot.Props): import("react/jsx-runtime").JSX.Element;
16
- declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: MenuPrimitive.SubmenuTrigger.Props & {
16
+ declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<import('@base-ui/react').ContextMenuSubmenuTriggerProps & {
17
17
  inset?: boolean;
18
- }): import("react/jsx-runtime").JSX.Element;
18
+ }, "ref"> & React.RefAttributes<HTMLButtonElement>>;
19
19
  declare function DropdownMenuSubContent({ align, alignOffset, side, sideOffset, className, ...props }: React.ComponentProps<typeof DropdownMenuContent>): import("react/jsx-runtime").JSX.Element;
20
20
  declare function DropdownMenuCheckboxItem({ className, children, checked, inset, ...props }: MenuPrimitive.CheckboxItem.Props & {
21
21
  inset?: boolean;
@@ -1,4 +1,8 @@
1
1
  import { ScrollArea as ScrollAreaPrimitive } from '@base-ui/react/scroll-area';
2
- declare function ScrollArea({ className, children, ...props }: ScrollAreaPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
2
+ type ScrollAreaOrientation = 'vertical' | 'horizontal' | 'both';
3
+ interface ScrollAreaProps extends ScrollAreaPrimitive.Root.Props {
4
+ orientation?: ScrollAreaOrientation;
5
+ }
6
+ declare function ScrollArea({ className, children, orientation, ...props }: ScrollAreaProps): import("react/jsx-runtime").JSX.Element;
3
7
  declare function ScrollBar({ className, orientation, ...props }: ScrollAreaPrimitive.Scrollbar.Props): import("react/jsx-runtime").JSX.Element;
4
8
  export { ScrollArea, ScrollBar };
@@ -3,9 +3,9 @@ import * as React from 'react';
3
3
  declare const Select: typeof SelectPrimitive.Root;
4
4
  declare function SelectGroup({ className, ...props }: SelectPrimitive.Group.Props): import("react/jsx-runtime").JSX.Element;
5
5
  declare function SelectValue({ className, ...props }: SelectPrimitive.Value.Props): import("react/jsx-runtime").JSX.Element;
6
- declare function SelectTrigger({ className, size, children, ...props }: SelectPrimitive.Trigger.Props & {
7
- size?: 'sm' | 'default';
8
- }): import("react/jsx-runtime").JSX.Element;
6
+ declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<import('@base-ui/react').SelectTriggerProps & {
7
+ size?: "sm" | "default";
8
+ }, "ref"> & React.RefAttributes<HTMLButtonElement>>;
9
9
  declare function SelectContent({ className, children, side, sideOffset, align, alignOffset, alignItemWithTrigger, ...props }: SelectPrimitive.Popup.Props & Pick<SelectPrimitive.Positioner.Props, 'align' | 'alignOffset' | 'side' | 'sideOffset' | 'alignItemWithTrigger'>): import("react/jsx-runtime").JSX.Element;
10
10
  declare function SelectLabel({ className, ...props }: SelectPrimitive.GroupLabel.Props): import("react/jsx-runtime").JSX.Element;
11
11
  declare function SelectItem({ className, children, ...props }: SelectPrimitive.Item.Props): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { Tooltip as TooltipPrimitive } from '@base-ui/react/tooltip';
2
2
  declare function TooltipProvider({ delay, ...props }: TooltipPrimitive.Provider.Props): import("react/jsx-runtime").JSX.Element;
3
3
  declare function Tooltip({ ...props }: TooltipPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
4
- declare function TooltipTrigger({ ...props }: TooltipPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
4
+ declare const TooltipTrigger: import('react').ForwardRefExoticComponent<Omit<TooltipPrimitive.Trigger.Props<unknown>, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
5
5
  declare function TooltipContent({ className, side, sideOffset, align, alignOffset, children, ...props }: TooltipPrimitive.Popup.Props & Pick<TooltipPrimitive.Positioner.Props, 'align' | 'alignOffset' | 'side' | 'sideOffset'>): import("react/jsx-runtime").JSX.Element;
6
6
  export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };