@altimateai/ui-components 0.0.45 → 0.0.47-beta.1

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.
@@ -426,6 +426,10 @@ interface Props<TMultiSelect extends boolean = false> {
426
426
  buttonProps?: ButtonProps;
427
427
  id?: string;
428
428
  icon?: ReactNode;
429
+ renderOption?: (option: {
430
+ value: string;
431
+ label: string;
432
+ }) => ReactNode;
429
433
  multiSelect?: TMultiSelect;
430
434
  showOnlyPlaceholder?: boolean;
431
435
  showApplyButton?: boolean;
@@ -437,7 +441,7 @@ interface Props<TMultiSelect extends boolean = false> {
437
441
  onOpenChange?: (open: boolean) => void;
438
442
  popoverContentProps?: Omit<ComponentPropsWithoutRef<typeof PopoverContent>, "children">;
439
443
  }
440
- declare const Combobox: <TMultiSelect extends boolean = false>({ options, value, onChange, placeholder, searchPlaceholder, buttonProps, id, icon, multiSelect, showOnlyPlaceholder, showApplyButton, showClearButton, onLoadMore, hasMore, valueLabels, onSearch, onOpenChange, popoverContentProps, }: Props<TMultiSelect>) => react_jsx_runtime.JSX.Element;
444
+ declare const Combobox: <TMultiSelect extends boolean = false>({ options, value, onChange, placeholder, searchPlaceholder, buttonProps, id, icon, renderOption, multiSelect, showOnlyPlaceholder, showApplyButton, showClearButton, onLoadMore, hasMore, valueLabels, onSearch, onOpenChange, popoverContentProps, }: Props<TMultiSelect>) => react_jsx_runtime.JSX.Element;
441
445
 
442
446
  type SidebarContextType = {
443
447
  state: "expanded" | "collapsed";
@@ -57,7 +57,6 @@ interface ChatbotUrls {
57
57
  interface Datamate {
58
58
  id: string;
59
59
  label: string;
60
- endAdornment?: ReactNode;
61
60
  }
62
61
  interface Mode {
63
62
  value: string;
@@ -73,14 +72,13 @@ interface ChatbotProps {
73
72
  contextOptions?: ContextOption[];
74
73
  placeholder?: string;
75
74
  autoFocus?: boolean;
76
- enableDatamatesSelection?: boolean;
77
- datamates?: Datamate[];
78
75
  modes?: Mode[];
79
76
  classNames?: {
80
77
  chatbot?: string;
81
78
  chatMessages?: string;
82
79
  };
83
80
  initialMessage?: string;
81
+ questionFormLeftActions?: ReactNode[];
84
82
  }
85
83
  interface ChatbotProviderProps extends ChatbotProps {
86
84
  taskLabel?: keyof typeof TaskLabels;
@@ -192,8 +190,6 @@ interface ChatState {
192
190
  feedback?: ReactNode;
193
191
  questionFormButtons?: (userPrompt: string, onAccept: (improvedPrompt: string) => void) => ReactNode;
194
192
  };
195
- enableDatamatesSelection?: boolean;
196
- datamates?: Datamate[];
197
193
  modes?: Mode[];
198
194
  classNames?: {
199
195
  chatbot?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altimateai/ui-components",
3
- "version": "0.0.45",
3
+ "version": "0.0.47-beta.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/AltimateAI/altimate-components.git"