@brainfish-ai/components 0.18.4-alpha.6 → 0.18.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.
- package/dist/accordion.d.ts +12 -0
- package/dist/alert-dialog.d.ts +46 -0
- package/dist/alert.d.ts +18 -0
- package/dist/badge.d.ts +14 -0
- package/dist/button-group.d.ts +21 -0
- package/dist/button.d.ts +16 -0
- package/dist/calendar.d.ts +12 -0
- package/dist/card.d.ts +15 -0
- package/dist/chart-area-linear.d.ts +41 -0
- package/dist/chart-radial-stacked.d.ts +39 -0
- package/dist/chat-search.d.ts +426 -0
- package/dist/collapsible.d.ts +10 -0
- package/dist/colors.d.ts +161 -0
- package/dist/combobox.d.ts +23 -0
- package/dist/command.d.ts +90 -0
- package/dist/components/ui/accordion.d.ts +2 -0
- package/dist/components/ui/alert-dialog.d.ts +2 -0
- package/dist/components/ui/alert.d.ts +2 -0
- package/dist/components/ui/badge.d.ts +2 -0
- package/dist/components/ui/button-group.d.ts +2 -0
- package/dist/components/ui/button.d.ts +2 -0
- package/dist/components/ui/calendar.d.ts +2 -0
- package/dist/components/ui/card.d.ts +2 -0
- package/dist/components/ui/collapsible.d.ts +2 -0
- package/dist/components/ui/command.d.ts +2 -0
- package/dist/components/ui/dialog.d.ts +2 -0
- package/dist/components/ui/div-button.d.ts +2 -0
- package/dist/components/ui/dropdown-menu.d.ts +2 -0
- package/dist/components/ui/icon.d.ts +2 -0
- package/dist/components/ui/input.d.ts +2 -0
- package/dist/components/ui/item.d.ts +2 -0
- package/dist/components/ui/label.d.ts +2 -0
- package/dist/components/ui/popover.d.ts +2 -0
- package/dist/components/ui/progress.d.ts +2 -0
- package/dist/components/ui/scroll-area.d.ts +2 -0
- package/dist/components/ui/select.d.ts +2 -0
- package/dist/components/ui/separator.d.ts +2 -0
- package/dist/components/ui/sheet.d.ts +2 -0
- package/dist/components/ui/spinner.d.ts +2 -0
- package/dist/components/ui/switch.d.ts +2 -0
- package/dist/components/ui/table.d.ts +2 -0
- package/dist/components/ui/textarea.d.ts +2 -0
- package/dist/components/ui/tooltip.d.ts +2 -0
- package/dist/confirm-dialog.d.ts +35 -0
- package/dist/convos.d.ts +179 -0
- package/dist/data-table.d.ts +23 -0
- package/dist/date-picker.d.ts +12 -0
- package/dist/dialog.d.ts +30 -0
- package/dist/div-button.d.ts +16 -0
- package/dist/dropdown-menu.d.ts +43 -0
- package/dist/esm/ChatSearch.css +1 -0
- package/dist/esm/chunks/ChatSearch.BJtS7ZMs.js +6482 -0
- package/dist/esm/chunks/ChatSearch.BJtS7ZMs.js.map +1 -0
- package/dist/esm/chunks/FormattedMessage.ieoe4jPf.js +39760 -0
- package/dist/esm/chunks/FormattedMessage.ieoe4jPf.js.map +1 -0
- package/dist/esm/chunks/_commonjsHelpers.BFTU3MAI.js +8 -0
- package/dist/esm/chunks/_commonjsHelpers.BFTU3MAI.js.map +1 -0
- package/dist/esm/chunks/chart.DGCX9VIn.js +219 -0
- package/dist/esm/chunks/chart.DGCX9VIn.js.map +1 -0
- package/dist/esm/chunks/combobox.CkN-wAHB.js +74 -0
- package/dist/esm/chunks/combobox.CkN-wAHB.js.map +1 -0
- package/dist/esm/chunks/dark.Cl9Z44CU.js +17 -0
- package/dist/esm/chunks/dark.Cl9Z44CU.js.map +1 -0
- package/dist/esm/chunks/data-table.DbcAYxMY.js +102 -0
- package/dist/esm/chunks/data-table.DbcAYxMY.js.map +1 -0
- package/dist/esm/chunks/date-picker.sQXSlqNZ.js +26 -0
- package/dist/esm/chunks/date-picker.sQXSlqNZ.js.map +1 -0
- package/dist/esm/chunks/extends.mO86zOh3.js +12 -0
- package/dist/esm/chunks/extends.mO86zOh3.js.map +1 -0
- package/dist/esm/chunks/feedback.D139-1Wr.js +214 -0
- package/dist/esm/chunks/feedback.D139-1Wr.js.map +1 -0
- package/dist/esm/chunks/file-upload-status.Vw0Zxmir.js +141 -0
- package/dist/esm/chunks/file-upload-status.Vw0Zxmir.js.map +1 -0
- package/dist/esm/chunks/filters.Be4KPvMA.js +565 -0
- package/dist/esm/chunks/filters.Be4KPvMA.js.map +1 -0
- package/dist/esm/chunks/formatNumber.Bm2k8QrT.js +10 -0
- package/dist/esm/chunks/formatNumber.Bm2k8QrT.js.map +1 -0
- package/dist/esm/chunks/generating-star.CozjECmM.js +1490 -0
- package/dist/esm/chunks/generating-star.CozjECmM.js.map +1 -0
- package/dist/esm/chunks/index.BqibIWDw.js +137 -0
- package/dist/esm/chunks/index.BqibIWDw.js.map +1 -0
- package/dist/esm/chunks/logo.BXk28Fqo.js +181 -0
- package/dist/esm/chunks/logo.BXk28Fqo.js.map +1 -0
- package/dist/esm/chunks/primary.CtiRZbqq.js +18 -0
- package/dist/esm/chunks/primary.CtiRZbqq.js.map +1 -0
- package/dist/esm/chunks/simpleSelect.B1rktKkt.js +23 -0
- package/dist/esm/chunks/simpleSelect.B1rktKkt.js.map +1 -0
- package/dist/esm/chunks/trend-value.COSukPwk.js +51 -0
- package/dist/esm/chunks/trend-value.COSukPwk.js.map +1 -0
- package/dist/esm/chunks/two-level-combobox.DsWPDcI6.js +132 -0
- package/dist/esm/chunks/two-level-combobox.DsWPDcI6.js.map +1 -0
- package/dist/esm/chunks/utils.Cwtlq8dh.js +45 -0
- package/dist/esm/chunks/utils.Cwtlq8dh.js.map +1 -0
- package/dist/esm/colors.js +170 -0
- package/dist/esm/colors.js.map +1 -0
- package/dist/esm/components/chart-area-linear.js +87 -0
- package/dist/esm/components/chart-area-linear.js.map +1 -0
- package/dist/esm/components/chart-radial-stacked.js +49 -0
- package/dist/esm/components/chart-radial-stacked.js.map +1 -0
- package/dist/esm/components/chat-search.js +2 -0
- package/dist/esm/components/chat-search.js.map +1 -0
- package/dist/esm/components/combobox.js +2 -0
- package/dist/esm/components/combobox.js.map +1 -0
- package/dist/esm/components/confirm-dialog.js +48 -0
- package/dist/esm/components/confirm-dialog.js.map +1 -0
- package/dist/esm/components/convos.js +602 -0
- package/dist/esm/components/convos.js.map +1 -0
- package/dist/esm/components/data-table.js +2 -0
- package/dist/esm/components/data-table.js.map +1 -0
- package/dist/esm/components/date-picker.js +2 -0
- package/dist/esm/components/date-picker.js.map +1 -0
- package/dist/esm/components/feedback.js +2 -0
- package/dist/esm/components/feedback.js.map +1 -0
- package/dist/esm/components/file-upload.js +2 -0
- package/dist/esm/components/file-upload.js.map +1 -0
- package/dist/esm/components/filter.js +2 -0
- package/dist/esm/components/filter.js.map +1 -0
- package/dist/esm/components/generating-star.js +2 -0
- package/dist/esm/components/generating-star.js.map +1 -0
- package/dist/esm/components/logo.js +2 -0
- package/dist/esm/components/logo.js.map +1 -0
- package/dist/esm/components/markdown.js +2 -0
- package/dist/esm/components/markdown.js.map +1 -0
- package/dist/esm/components/metric-card.js +28 -0
- package/dist/esm/components/metric-card.js.map +1 -0
- package/dist/esm/components/select.js +2 -0
- package/dist/esm/components/select.js.map +1 -0
- package/dist/esm/components/trend-value.js +2 -0
- package/dist/esm/components/trend-value.js.map +1 -0
- package/dist/esm/components/two-level-combobox.js +2 -0
- package/dist/esm/components/two-level-combobox.js.map +1 -0
- package/dist/esm/components/ui/accordion.js +47 -0
- package/dist/esm/components/ui/accordion.js.map +1 -0
- package/dist/esm/components/ui/alert-dialog.js +147 -0
- package/dist/esm/components/ui/alert-dialog.js.map +1 -0
- package/dist/esm/components/ui/alert.js +121 -0
- package/dist/esm/components/ui/alert.js.map +1 -0
- package/dist/esm/components/ui/badge.js +27 -0
- package/dist/esm/components/ui/badge.js.map +1 -0
- package/dist/esm/components/ui/button-group.js +74 -0
- package/dist/esm/components/ui/button-group.js.map +1 -0
- package/dist/esm/components/ui/button.js +52 -0
- package/dist/esm/components/ui/button.js.map +1 -0
- package/dist/esm/components/ui/calendar.js +26 -0
- package/dist/esm/components/ui/calendar.js.map +1 -0
- package/dist/esm/components/ui/card.js +56 -0
- package/dist/esm/components/ui/card.js.map +1 -0
- package/dist/esm/components/ui/collapsible.js +34 -0
- package/dist/esm/components/ui/collapsible.js.map +1 -0
- package/dist/esm/components/ui/command.js +103 -0
- package/dist/esm/components/ui/command.js.map +1 -0
- package/dist/esm/components/ui/dialog.js +88 -0
- package/dist/esm/components/ui/dialog.js.map +1 -0
- package/dist/esm/components/ui/div-button.js +61 -0
- package/dist/esm/components/ui/div-button.js.map +1 -0
- package/dist/esm/components/ui/dropdown-menu.js +132 -0
- package/dist/esm/components/ui/dropdown-menu.js.map +1 -0
- package/dist/esm/components/ui/icon.js +16 -0
- package/dist/esm/components/ui/icon.js.map +1 -0
- package/dist/esm/components/ui/input.js +29 -0
- package/dist/esm/components/ui/input.js.map +1 -0
- package/dist/esm/components/ui/item.js +179 -0
- package/dist/esm/components/ui/item.js.map +1 -0
- package/dist/esm/components/ui/label.js +20 -0
- package/dist/esm/components/ui/label.js.map +1 -0
- package/dist/esm/components/ui/popover.js +24 -0
- package/dist/esm/components/ui/popover.js.map +1 -0
- package/dist/esm/components/ui/progress.js +23 -0
- package/dist/esm/components/ui/progress.js.map +1 -0
- package/dist/esm/components/ui/scroll-area.js +34 -0
- package/dist/esm/components/ui/scroll-area.js.map +1 -0
- package/dist/esm/components/ui/select.js +81 -0
- package/dist/esm/components/ui/select.js.map +1 -0
- package/dist/esm/components/ui/separator.js +24 -0
- package/dist/esm/components/ui/separator.js.map +1 -0
- package/dist/esm/components/ui/sheet.js +99 -0
- package/dist/esm/components/ui/sheet.js.map +1 -0
- package/dist/esm/components/ui/spinner.js +18 -0
- package/dist/esm/components/ui/spinner.js.map +1 -0
- package/dist/esm/components/ui/switch.js +27 -0
- package/dist/esm/components/ui/switch.js.map +1 -0
- package/dist/esm/components/ui/table.js +83 -0
- package/dist/esm/components/ui/table.js.map +1 -0
- package/dist/esm/components/ui/textarea.js +34 -0
- package/dist/esm/components/ui/textarea.js.map +1 -0
- package/dist/esm/components/ui/tooltip.js +34 -0
- package/dist/esm/components/ui/tooltip.js.map +1 -0
- package/dist/esm/convos.css +1 -0
- package/dist/esm/date-picker.css +1 -0
- package/dist/esm/global.css +1 -0
- package/dist/esm/index.js +150 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/tailwind.preset.js +1492 -0
- package/dist/esm/tailwind.preset.js.map +1 -0
- package/dist/feedback.d.ts +21 -0
- package/dist/file-upload.d.ts +45 -0
- package/dist/filter.d.ts +82 -0
- package/dist/generating-star.d.ts +15 -0
- package/dist/icon.d.ts +26 -0
- package/dist/index.d.ts +1378 -0
- package/dist/input.d.ts +11 -0
- package/dist/item.d.ts +39 -0
- package/dist/label.d.ts +8 -0
- package/dist/logo.d.ts +14 -0
- package/dist/markdown.d.ts +55 -0
- package/dist/metric-card.d.ts +21 -0
- package/dist/popover.d.ts +12 -0
- package/dist/progress.d.ts +8 -0
- package/dist/scroll-area.d.ts +8 -0
- package/dist/select.d.ts +20 -0
- package/dist/separator.d.ts +6 -0
- package/dist/sheet.d.ts +39 -0
- package/dist/spinner.d.ts +5 -0
- package/dist/stats.html +4949 -0
- package/dist/switch.d.ts +6 -0
- package/dist/table.d.ts +19 -0
- package/dist/tailwind.preset.d.ts +1 -0
- package/dist/textarea.d.ts +9 -0
- package/dist/tooltip.d.ts +18 -0
- package/dist/trend-value.d.ts +19 -0
- package/dist/two-level-combobox.d.ts +24 -0
- package/package.json +2 -2
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
2
|
+
import * as React_2 from 'react';
|
|
3
|
+
|
|
4
|
+
export declare function Accordion({ ...props }: React_2.ComponentProps<typeof AccordionPrimitive.Root>): React_2.JSX.Element;
|
|
5
|
+
|
|
6
|
+
export declare function AccordionContent({ className, children, ...props }: React_2.ComponentProps<typeof AccordionPrimitive.Content>): React_2.JSX.Element;
|
|
7
|
+
|
|
8
|
+
export declare function AccordionItem({ className, ...props }: React_2.ComponentProps<typeof AccordionPrimitive.Item>): React_2.JSX.Element;
|
|
9
|
+
|
|
10
|
+
export declare function AccordionTrigger({ className, children, ...props }: React_2.ComponentProps<typeof AccordionPrimitive.Trigger>): React_2.JSX.Element;
|
|
11
|
+
|
|
12
|
+
export { }
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
2
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
3
|
+
import * as React_2 from 'react';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
|
|
6
|
+
export declare const AlertDialog: React_2.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogProps & React_2.RefAttributes<never>>;
|
|
7
|
+
|
|
8
|
+
export declare const AlertDialogAction: React_2.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
9
|
+
variant?: "link" | "dark" | "default" | "destructive" | "success" | "outline" | "secondary" | "ghost" | "shadow" | "shadowSurface" | null | undefined;
|
|
10
|
+
size?: "default" | "icon" | "xs" | "sm" | "lg" | null | undefined;
|
|
11
|
+
} & ClassProp) | undefined) => string> & {
|
|
12
|
+
asChild?: boolean | undefined;
|
|
13
|
+
} & React_2.RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
|
|
15
|
+
export declare const AlertDialogCancel: React_2.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
16
|
+
variant?: "link" | "dark" | "default" | "destructive" | "success" | "outline" | "secondary" | "ghost" | "shadow" | "shadowSurface" | null | undefined;
|
|
17
|
+
size?: "default" | "icon" | "xs" | "sm" | "lg" | null | undefined;
|
|
18
|
+
} & ClassProp) | undefined) => string> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
|
|
20
|
+
export declare const AlertDialogContent: React_2.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
21
|
+
zIndex?: string | undefined;
|
|
22
|
+
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
|
|
24
|
+
export declare const AlertDialogDescription: React_2.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React_2.RefAttributes<HTMLParagraphElement>, "ref"> & React_2.RefAttributes<HTMLParagraphElement>>;
|
|
25
|
+
|
|
26
|
+
export declare const AlertDialogFooter: {
|
|
27
|
+
({ className, ...props }: React_2.HTMLAttributes<HTMLDivElement>): React_2.JSX.Element;
|
|
28
|
+
displayName: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export declare const AlertDialogHeader: {
|
|
32
|
+
({ className, ...props }: React_2.HTMLAttributes<HTMLDivElement>): React_2.JSX.Element;
|
|
33
|
+
displayName: string;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export declare const AlertDialogOverlay: React_2.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
37
|
+
zIndex?: string | undefined;
|
|
38
|
+
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
|
|
40
|
+
export declare const AlertDialogPortal: React_2.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
41
|
+
|
|
42
|
+
export declare const AlertDialogTitle: React_2.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React_2.RefAttributes<HTMLHeadingElement>, "ref"> & React_2.RefAttributes<HTMLHeadingElement>>;
|
|
43
|
+
|
|
44
|
+
export declare const AlertDialogTrigger: React_2.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
45
|
+
|
|
46
|
+
export { }
|
package/dist/alert.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
2
|
+
import * as React_2 from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
|
|
5
|
+
export declare const Alert: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
6
|
+
variant?: "default" | "success" | "warning" | "danger" | "info" | null | undefined;
|
|
7
|
+
layout?: "compact" | "longForm" | null | undefined;
|
|
8
|
+
} & ClassProp) | undefined) => string>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
|
|
10
|
+
export declare const AlertAction: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
|
|
12
|
+
export declare const AlertContent: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
|
|
14
|
+
export declare const AlertDescription: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
|
|
16
|
+
export declare const AlertTitle: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & React_2.RefAttributes<HTMLHeadingElement>>;
|
|
17
|
+
|
|
18
|
+
export { }
|
package/dist/badge.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
2
|
+
import * as React_2 from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
|
|
5
|
+
export declare function Badge({ className, variant, ...props }: BadgeProps): React_2.JSX.Element;
|
|
6
|
+
|
|
7
|
+
export declare interface BadgeProps extends React_2.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare const badgeVariants: (props?: ({
|
|
11
|
+
variant?: "default" | "disabled" | "destructive" | "success" | "warning" | null | undefined;
|
|
12
|
+
} & ClassProp) | undefined) => string;
|
|
13
|
+
|
|
14
|
+
export { }
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
2
|
+
import { default as default_2 } from 'react';
|
|
3
|
+
import * as React_2 from 'react';
|
|
4
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
5
|
+
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
|
|
7
|
+
export declare function ButtonGroup({ className, orientation, ...props }: default_2.ComponentProps<"div"> & VariantProps<typeof buttonGroupVariants>): default_2.JSX.Element;
|
|
8
|
+
|
|
9
|
+
export declare function ButtonGroupSeparator({ className, orientation, ...props }: default_2.ComponentProps<typeof Separator>): default_2.JSX.Element;
|
|
10
|
+
|
|
11
|
+
export declare function ButtonGroupText({ className, asChild, ...props }: default_2.ComponentProps<"div"> & {
|
|
12
|
+
asChild?: boolean;
|
|
13
|
+
}): default_2.JSX.Element;
|
|
14
|
+
|
|
15
|
+
export declare const buttonGroupVariants: (props?: ({
|
|
16
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
17
|
+
} & ClassProp) | undefined) => string;
|
|
18
|
+
|
|
19
|
+
declare const Separator: React_2.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
|
|
21
|
+
export { }
|
package/dist/button.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
2
|
+
import * as React_2 from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
|
|
5
|
+
export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
|
|
7
|
+
export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export declare const buttonVariants: (props?: ({
|
|
12
|
+
variant?: "link" | "dark" | "default" | "destructive" | "success" | "outline" | "secondary" | "ghost" | "shadow" | "shadowSurface" | null | undefined;
|
|
13
|
+
size?: "default" | "icon" | "xs" | "sm" | "lg" | null | undefined;
|
|
14
|
+
} & ClassProp) | undefined) => string;
|
|
15
|
+
|
|
16
|
+
export { }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DayPicker } from 'react-day-picker';
|
|
2
|
+
import * as React_2 from 'react';
|
|
3
|
+
|
|
4
|
+
export declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): React_2.JSX.Element;
|
|
5
|
+
|
|
6
|
+
export declare namespace Calendar {
|
|
7
|
+
var displayName: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare type CalendarProps = React_2.ComponentProps<typeof DayPicker>;
|
|
11
|
+
|
|
12
|
+
export { }
|
package/dist/card.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React_2 from 'react';
|
|
2
|
+
|
|
3
|
+
export declare const Card: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
|
|
5
|
+
export declare const CardContent: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
|
|
7
|
+
export declare const CardDescription: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
|
|
9
|
+
export declare const CardFooter: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
|
|
11
|
+
export declare const CardHeader: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
|
|
13
|
+
export declare const CardTitle: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
|
|
15
|
+
export { }
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { default as default_2 } from 'react';
|
|
2
|
+
import * as React_2 from 'react';
|
|
3
|
+
|
|
4
|
+
export declare function ChartAreaLinear({ title, metric, data, chartConfig, locale }: ChartAreaLinearProps): default_2.JSX.Element;
|
|
5
|
+
|
|
6
|
+
export declare interface ChartAreaLinearProps {
|
|
7
|
+
title: string;
|
|
8
|
+
metric: string;
|
|
9
|
+
data: {
|
|
10
|
+
date: Date | string;
|
|
11
|
+
key1: number;
|
|
12
|
+
key2?: number;
|
|
13
|
+
key3?: number;
|
|
14
|
+
key4?: number;
|
|
15
|
+
key5?: number;
|
|
16
|
+
}[];
|
|
17
|
+
chartConfig: ChartConfig;
|
|
18
|
+
locale?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare type ChartConfig = {
|
|
22
|
+
[k in string]: {
|
|
23
|
+
label?: React_2.ReactNode;
|
|
24
|
+
icon?: React_2.ComponentType;
|
|
25
|
+
} & ({
|
|
26
|
+
color?: string;
|
|
27
|
+
theme?: never;
|
|
28
|
+
} | {
|
|
29
|
+
color?: never;
|
|
30
|
+
theme: Record<keyof typeof THEMES, string>;
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export declare const description = "A linear area chart";
|
|
35
|
+
|
|
36
|
+
declare const THEMES: {
|
|
37
|
+
readonly light: "";
|
|
38
|
+
readonly dark: ".dark";
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export { }
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { default as default_2 } from 'react';
|
|
2
|
+
import * as React_2 from 'react';
|
|
3
|
+
|
|
4
|
+
declare type ChartConfig = {
|
|
5
|
+
[k in string]: {
|
|
6
|
+
label?: React_2.ReactNode;
|
|
7
|
+
icon?: React_2.ComponentType;
|
|
8
|
+
} & ({
|
|
9
|
+
color?: string;
|
|
10
|
+
theme?: never;
|
|
11
|
+
} | {
|
|
12
|
+
color?: never;
|
|
13
|
+
theme: Record<keyof typeof THEMES, string>;
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export declare function ChartRadialStacked({ title, data, chartConfig, trend, trendValue, className, }: ChartRadialStackedProps): default_2.JSX.Element | null;
|
|
18
|
+
|
|
19
|
+
export declare interface ChartRadialStackedProps {
|
|
20
|
+
title: string;
|
|
21
|
+
data: Record<string, number>[];
|
|
22
|
+
chartConfig: ChartConfig;
|
|
23
|
+
trend: Trend;
|
|
24
|
+
trendValue: string;
|
|
25
|
+
className?: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
declare const THEMES: {
|
|
29
|
+
readonly light: "";
|
|
30
|
+
readonly dark: ".dark";
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
declare enum Trend {
|
|
34
|
+
UP = "up",
|
|
35
|
+
DOWN = "down",
|
|
36
|
+
FLAT = "flat"
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { }
|
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
import { default as default_2 } from 'react';
|
|
2
|
+
import { JSONSchemaType } from 'ajv';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
|
|
5
|
+
declare type Action = {
|
|
6
|
+
id: string;
|
|
7
|
+
type: ActionType;
|
|
8
|
+
action: {
|
|
9
|
+
version: string;
|
|
10
|
+
options: {
|
|
11
|
+
title?: string;
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
declare type ActionButtonsBlock = {
|
|
18
|
+
id: string;
|
|
19
|
+
type: 'action-buttons';
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
declare type ActionInput = {
|
|
23
|
+
name: string;
|
|
24
|
+
required: boolean;
|
|
25
|
+
schema: {
|
|
26
|
+
type: string;
|
|
27
|
+
title: string;
|
|
28
|
+
description: string;
|
|
29
|
+
oneOf?: {
|
|
30
|
+
const: string;
|
|
31
|
+
title: string;
|
|
32
|
+
}[];
|
|
33
|
+
};
|
|
34
|
+
type: string;
|
|
35
|
+
ui: {
|
|
36
|
+
type: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
declare type ActionInputFormBlock = {
|
|
41
|
+
id: string;
|
|
42
|
+
type: 'action-input-form';
|
|
43
|
+
state: 'ready' | 'processing' | 'completed';
|
|
44
|
+
actionId: string;
|
|
45
|
+
initialValues: ActionInputs;
|
|
46
|
+
schema: ActionInputsSchema;
|
|
47
|
+
onSubmit?: (inputs: ActionInputs) => void;
|
|
48
|
+
inputs: ActionInput[];
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
declare type ActionInputs = Record<string, ActionInputValue>;
|
|
52
|
+
|
|
53
|
+
declare type ActionInputsSchema = JSONSchemaType<ActionInputs>;
|
|
54
|
+
|
|
55
|
+
declare type ActionInputValue = string | number | boolean | null;
|
|
56
|
+
|
|
57
|
+
declare enum ActionType {
|
|
58
|
+
CallPhone = "call_phone",
|
|
59
|
+
OpenUrl = "open_url",
|
|
60
|
+
SendEmail = "send_email",
|
|
61
|
+
RunCallback = "run_callback"
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
declare type AddActionButtons = {
|
|
65
|
+
type: typeof AnswersActions.ADD_ACTION_BUTTONS;
|
|
66
|
+
payload: {
|
|
67
|
+
searchIntentId: string;
|
|
68
|
+
actions: Array<{
|
|
69
|
+
id: string;
|
|
70
|
+
type: string;
|
|
71
|
+
action: {
|
|
72
|
+
version: string;
|
|
73
|
+
options: {
|
|
74
|
+
title?: string;
|
|
75
|
+
[key: string]: any;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
}>;
|
|
79
|
+
index?: number;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export declare interface Answer {
|
|
84
|
+
id: string;
|
|
85
|
+
state: AnswerState;
|
|
86
|
+
question: string;
|
|
87
|
+
blocks: AnswerBlock[];
|
|
88
|
+
searchResults?: SearchResult[];
|
|
89
|
+
followUpQuestions?: string[];
|
|
90
|
+
searchQueryId?: string;
|
|
91
|
+
feedback?: FeedbackResponse;
|
|
92
|
+
isUncertain?: boolean;
|
|
93
|
+
uncertaintyLanguage?: string | null;
|
|
94
|
+
uncertaintyFallbackText?: string;
|
|
95
|
+
searchIntentId?: string;
|
|
96
|
+
actions?: Action[];
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
declare type AnswerBlock = MarkdownTextBlock | ActionButtonsBlock | ActionInputFormBlock;
|
|
100
|
+
|
|
101
|
+
declare type AnswerListAction = SetAnswers | ClearAll | AppendNewAnswer | SetSearchResults | AppendAnswerChunk | SetAnswerError | SetUserFeedback | ClearUserFeedback | SetFollowUpQuestions | AppendBlock | CompleteAnswer | MarkAsUncertain | InvokeAction | GetActionInputs | AddActionButtons | NoArticlesFound;
|
|
102
|
+
|
|
103
|
+
declare const AnswersActions: {
|
|
104
|
+
readonly SET_ANSWERS: "answers/set_answers";
|
|
105
|
+
readonly CLEAR_ALL: "answers/clear_all";
|
|
106
|
+
readonly APPEND_NEW_ANSWER: "answers/create_empty_answer";
|
|
107
|
+
readonly APPEND_BLOCK: "answers/append_block";
|
|
108
|
+
readonly APPEND_ANSWER_CHUNK: "answers/append_stream_chunk";
|
|
109
|
+
readonly SET_SEARCH_RESULTS: "answers/update_search_results";
|
|
110
|
+
readonly SET_FOLLOW_UP_QUESTIONS: "answers/set_follow_up_questions";
|
|
111
|
+
readonly COMPLETE_ANSWER: "answers/finish_streaming";
|
|
112
|
+
readonly SET_ANSWER_ERROR: "answers/set_error_state";
|
|
113
|
+
readonly SET_USER_FEEDBACK: "answers/set_user_feedback";
|
|
114
|
+
readonly CLEAR_USER_FEEDBACK: "answers/clear_user_feedback";
|
|
115
|
+
readonly MARK_AS_UNCERTAIN: "answers/mark_as_uncertain";
|
|
116
|
+
readonly NO_ARTICLES_FOUND: "answers/no_articles_found";
|
|
117
|
+
readonly GET_ACTION_INPUTS: "answers/request_action_inputs";
|
|
118
|
+
readonly INVOKE_ACTION: "answers/invoke_action";
|
|
119
|
+
readonly ADD_ACTION_BUTTONS: "answers/add_action_buttons";
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
declare type AnswerState = 'fetching-search-results' | 'fetching-stream' | 'streaming' | 'getting-action-inputs' | 'completed';
|
|
123
|
+
|
|
124
|
+
declare type AppendAnswerChunk = {
|
|
125
|
+
type: typeof AnswersActions.APPEND_ANSWER_CHUNK;
|
|
126
|
+
payload: {
|
|
127
|
+
text: string;
|
|
128
|
+
index?: number;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
declare type AppendBlock = {
|
|
133
|
+
type: typeof AnswersActions.APPEND_BLOCK;
|
|
134
|
+
payload: {
|
|
135
|
+
block: AnswerBlock;
|
|
136
|
+
index?: number;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
declare type AppendNewAnswer = {
|
|
141
|
+
type: typeof AnswersActions.APPEND_NEW_ANSWER;
|
|
142
|
+
payload: {
|
|
143
|
+
id?: string;
|
|
144
|
+
query: string;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
export declare const ChatSearch: default_2.ForwardRefExoticComponent<ChatSearchProps & default_2.RefAttributes<ChatSearchHandle>>;
|
|
149
|
+
|
|
150
|
+
declare interface ChatSearchContextProps {
|
|
151
|
+
query: string;
|
|
152
|
+
setQuery: default_2.Dispatch<default_2.SetStateAction<string>>;
|
|
153
|
+
queryId: string;
|
|
154
|
+
setQueryId: default_2.Dispatch<default_2.SetStateAction<string>>;
|
|
155
|
+
followUpQuery: string;
|
|
156
|
+
setFollowUpQuery: default_2.Dispatch<default_2.SetStateAction<string>>;
|
|
157
|
+
isSearching: boolean;
|
|
158
|
+
setIsSearching: default_2.Dispatch<default_2.SetStateAction<boolean>>;
|
|
159
|
+
showResults: boolean;
|
|
160
|
+
setShowResults: default_2.Dispatch<default_2.SetStateAction<boolean>>;
|
|
161
|
+
answers: Answer[];
|
|
162
|
+
answerListDispatch: default_2.Dispatch<AnswerListAction>;
|
|
163
|
+
activeAnswerIndex: number;
|
|
164
|
+
setActiveAnswerIndex: default_2.Dispatch<default_2.SetStateAction<number>>;
|
|
165
|
+
conversationId: string | undefined;
|
|
166
|
+
setConversationId: (id: string) => void;
|
|
167
|
+
clearConversationId: () => void;
|
|
168
|
+
isLoadingConversation: boolean;
|
|
169
|
+
setIsLoadingConversation: default_2.Dispatch<default_2.SetStateAction<boolean>>;
|
|
170
|
+
loadError: string;
|
|
171
|
+
setLoadError: default_2.Dispatch<default_2.SetStateAction<string>>;
|
|
172
|
+
showMobileCloseWidgetButton: boolean;
|
|
173
|
+
setShowMobileCloseWidgetButton: default_2.Dispatch<default_2.SetStateAction<boolean>>;
|
|
174
|
+
contentTypeEndpoint?: string;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export declare interface ChatSearchHandle {
|
|
178
|
+
createNewThread: (firstQuery?: string) => void;
|
|
179
|
+
showFollowUpThread: (show: boolean) => void;
|
|
180
|
+
subscribeToStateChanges: (callback: (state: ChatSearchState) => void) => () => void;
|
|
181
|
+
focusSearchField: () => void;
|
|
182
|
+
showCloseButton: (showButton: boolean) => void;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export declare interface ChatSearchProps {
|
|
186
|
+
suggestions?: Suggestion[];
|
|
187
|
+
collections?: Array<Collection>;
|
|
188
|
+
selectedCollectionId?: string;
|
|
189
|
+
onCollectionChange?: (collectionId: string) => void;
|
|
190
|
+
selectedRegion?: string;
|
|
191
|
+
onRegionChange?: (region: string) => void;
|
|
192
|
+
apiKey?: string;
|
|
193
|
+
fetchRegionConfig?: (apiKey: string, region: string) => Promise<{
|
|
194
|
+
settings?: {
|
|
195
|
+
collections?: Collection[];
|
|
196
|
+
};
|
|
197
|
+
} | null>;
|
|
198
|
+
searchEndpoint: string;
|
|
199
|
+
answerEndpoint: string;
|
|
200
|
+
answerStreamEndpoint: string;
|
|
201
|
+
feedbackEndpoint?: string;
|
|
202
|
+
feedbackReasonEndpoint?: string;
|
|
203
|
+
loadConversationEndpoint?: string;
|
|
204
|
+
followUpQuestionsEndpoint?: string;
|
|
205
|
+
autocompleteEndpoint?: string;
|
|
206
|
+
contentTypeEndpoint?: string;
|
|
207
|
+
disableFollowUpQuestions?: boolean;
|
|
208
|
+
disableImageAttachment?: boolean;
|
|
209
|
+
disableFeedback?: boolean;
|
|
210
|
+
disclaimer?: string;
|
|
211
|
+
offset?: number;
|
|
212
|
+
headers?: Record<string, string>;
|
|
213
|
+
textConfig?: TextConfig;
|
|
214
|
+
searchPath?: string;
|
|
215
|
+
className?: string;
|
|
216
|
+
onToggleSizeButtonClick?: () => void;
|
|
217
|
+
trackEvent?: (eventName: string, data?: Record<string, any>) => void;
|
|
218
|
+
featureFlags?: FeatureFlags;
|
|
219
|
+
onCloseWidget?: () => void;
|
|
220
|
+
isWidgetMode?: boolean;
|
|
221
|
+
nextBestActions?: NextBestAction[];
|
|
222
|
+
bodyActionButtons?: NextBestAction[];
|
|
223
|
+
onNextBestActionClick?: ({ action, searchQueryId, query, answer, }: {
|
|
224
|
+
action: NextBestAction;
|
|
225
|
+
searchQueryId: string;
|
|
226
|
+
query: string;
|
|
227
|
+
answer: string;
|
|
228
|
+
}) => void;
|
|
229
|
+
userData?: Record<string, unknown> | null;
|
|
230
|
+
redirectRules?: RedirectRule[];
|
|
231
|
+
secretAttributes?: string;
|
|
232
|
+
allowedRegions?: string[];
|
|
233
|
+
style?: React.CSSProperties;
|
|
234
|
+
isAgentAssist?: boolean;
|
|
235
|
+
isSearchWidget?: boolean;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export declare const ChatSearchProvider: default_2.FC<{
|
|
239
|
+
children: ReactNode;
|
|
240
|
+
searchPath?: string;
|
|
241
|
+
contentTypeEndpoint?: string;
|
|
242
|
+
}>;
|
|
243
|
+
|
|
244
|
+
export declare interface ChatSearchState {
|
|
245
|
+
showResults: boolean;
|
|
246
|
+
answers: Answer[];
|
|
247
|
+
isLoading: boolean;
|
|
248
|
+
error?: string;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
declare type ClearAll = {
|
|
252
|
+
type: typeof AnswersActions.CLEAR_ALL;
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
declare type ClearUserFeedback = {
|
|
256
|
+
type: typeof AnswersActions.CLEAR_USER_FEEDBACK;
|
|
257
|
+
payload: {
|
|
258
|
+
index?: number;
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
export declare interface Collection {
|
|
263
|
+
id: string;
|
|
264
|
+
name: string;
|
|
265
|
+
siteEnabled?: boolean;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
declare type CompleteAnswer = {
|
|
269
|
+
type: typeof AnswersActions.COMPLETE_ANSWER;
|
|
270
|
+
payload: {
|
|
271
|
+
index?: number;
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
declare type FeatureFlags = {
|
|
276
|
+
[key: string]: boolean | string | number;
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
declare type FeedbackResponse = 'accept' | 'reject';
|
|
280
|
+
|
|
281
|
+
declare type GetActionInputs = {
|
|
282
|
+
type: typeof AnswersActions.GET_ACTION_INPUTS;
|
|
283
|
+
payload: {
|
|
284
|
+
searchIntentId: string;
|
|
285
|
+
actionId: string;
|
|
286
|
+
inputs: ActionInput[];
|
|
287
|
+
schema: JSONSchema<ActionInputs>;
|
|
288
|
+
initialValues: ActionInputs;
|
|
289
|
+
onSubmit: (parameters: ActionInputs) => void;
|
|
290
|
+
index?: number;
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
declare type InvokeAction = {
|
|
295
|
+
type: typeof AnswersActions.INVOKE_ACTION;
|
|
296
|
+
payload: {
|
|
297
|
+
index?: number;
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
declare type JSONSchema<T> = JSONSchemaType<T>;
|
|
302
|
+
|
|
303
|
+
declare type MarkAsUncertain = {
|
|
304
|
+
type: typeof AnswersActions.MARK_AS_UNCERTAIN;
|
|
305
|
+
payload: {
|
|
306
|
+
uncertaintyText: string;
|
|
307
|
+
index?: number;
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
declare type MarkdownTextBlock = {
|
|
312
|
+
id: string;
|
|
313
|
+
type: 'markdown-text';
|
|
314
|
+
text: string;
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
declare type NextBestAction = {
|
|
318
|
+
id?: string;
|
|
319
|
+
label: string;
|
|
320
|
+
type: NextBestActionType;
|
|
321
|
+
icon?: string | UrlString;
|
|
322
|
+
value: any;
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
declare enum NextBestActionType {
|
|
326
|
+
Link = "link",
|
|
327
|
+
Email = "email",
|
|
328
|
+
Phone = "phone",
|
|
329
|
+
Callback = "callback",
|
|
330
|
+
Function = "function"
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
declare type NoArticlesFound = {
|
|
334
|
+
type: typeof AnswersActions.NO_ARTICLES_FOUND;
|
|
335
|
+
payload: {
|
|
336
|
+
index?: number;
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* Defines a URL redirect rule with pattern matching
|
|
342
|
+
* @example { source: '/knowledge/:id/:path', destination: '/knowledge/test/:path' }
|
|
343
|
+
*/
|
|
344
|
+
declare type RedirectRule = {
|
|
345
|
+
source: string;
|
|
346
|
+
destination: string;
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
declare interface SearchResult {
|
|
350
|
+
id: string;
|
|
351
|
+
title: string;
|
|
352
|
+
url: string;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
declare type SetAnswerError = {
|
|
356
|
+
type: typeof AnswersActions.SET_ANSWER_ERROR;
|
|
357
|
+
payload: {
|
|
358
|
+
error: string;
|
|
359
|
+
index?: number;
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
declare type SetAnswers = {
|
|
364
|
+
type: typeof AnswersActions.SET_ANSWERS;
|
|
365
|
+
payload: {
|
|
366
|
+
answers: Answer[];
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
declare type SetFollowUpQuestions = {
|
|
371
|
+
type: typeof AnswersActions.SET_FOLLOW_UP_QUESTIONS;
|
|
372
|
+
payload: {
|
|
373
|
+
questions: string[];
|
|
374
|
+
index?: number;
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
declare type SetSearchResults = {
|
|
379
|
+
type: typeof AnswersActions.SET_SEARCH_RESULTS;
|
|
380
|
+
payload: {
|
|
381
|
+
searchQueryId: string;
|
|
382
|
+
results: SearchResult[];
|
|
383
|
+
index?: number;
|
|
384
|
+
state?: Answer['state'];
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
|
|
388
|
+
declare type SetUserFeedback = {
|
|
389
|
+
type: typeof AnswersActions.SET_USER_FEEDBACK;
|
|
390
|
+
payload: {
|
|
391
|
+
feedback: FeedbackResponse;
|
|
392
|
+
index?: number;
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
declare interface Suggestion {
|
|
397
|
+
id: string;
|
|
398
|
+
question: string;
|
|
399
|
+
conversationId?: string;
|
|
400
|
+
messageCount?: number;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
declare interface TextConfig {
|
|
404
|
+
headerText?: string;
|
|
405
|
+
searchPlaceholder?: string;
|
|
406
|
+
attachImageText?: string;
|
|
407
|
+
allDocumentsText?: string;
|
|
408
|
+
loadingSearchText?: string;
|
|
409
|
+
loadingAnswerText?: string;
|
|
410
|
+
errorText?: string;
|
|
411
|
+
followUpPlaceholder?: string;
|
|
412
|
+
positiveAnswerText?: string;
|
|
413
|
+
negativeAnswerText?: string;
|
|
414
|
+
suggestionsTitle?: string;
|
|
415
|
+
uncertaintyFallbackText?: Record<string, string>;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
declare type UrlString = string & {
|
|
419
|
+
__url: never;
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
export declare const useChatSearch: () => ChatSearchContextProps;
|
|
423
|
+
|
|
424
|
+
export declare const useIsChatSearchDirty: () => boolean;
|
|
425
|
+
|
|
426
|
+
export { }
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
2
|
+
import { default as default_2 } from 'react';
|
|
3
|
+
|
|
4
|
+
export declare const Collapsible: default_2.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
|
|
6
|
+
export declare const CollapsibleContent: default_2.FC<CollapsiblePrimitive.CollapsibleContentProps>;
|
|
7
|
+
|
|
8
|
+
export declare const CollapsibleTrigger: default_2.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
|
|
10
|
+
export { }
|