@brainfish-ai/components 0.16.3 → 0.16.4-rc.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.
- package/dist/alert-dialog.d.ts +4 -2
- package/dist/components/ui/alert-dialog.d.ts +4 -2
- package/dist/confirm-dialog.d.ts +3 -1
- package/dist/esm/chunks/{ChatSearch.ComXrnDc.js → ChatSearch.DsnO9IEM.js} +6 -5
- package/dist/esm/chunks/{ChatSearch.ComXrnDc.js.map → ChatSearch.DsnO9IEM.js.map} +1 -1
- package/dist/esm/components/chat-search.js +1 -1
- package/dist/esm/components/ui/alert-dialog.js +46 -8
- package/dist/esm/components/ui/alert-dialog.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/stats.html +1 -1
- package/package.json +1 -1
package/dist/alert-dialog.d.ts
CHANGED
|
@@ -3,12 +3,14 @@ import { ClassProp } from 'class-variance-authority/dist/types';
|
|
|
3
3
|
import * as React_2 from 'react';
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
|
|
6
|
-
export declare const AlertDialog: React_2.
|
|
6
|
+
export declare const AlertDialog: React_2.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogProps & React_2.RefAttributes<never>>;
|
|
7
7
|
|
|
8
8
|
export declare const AlertDialogAction: React_2.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
9
9
|
variant?: "link" | "dark" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "shadow" | null | undefined;
|
|
10
10
|
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
11
|
-
} & ClassProp) | undefined) => string> &
|
|
11
|
+
} & ClassProp) | undefined) => string> & {
|
|
12
|
+
asChild?: boolean | undefined;
|
|
13
|
+
} & React_2.RefAttributes<HTMLButtonElement>>;
|
|
12
14
|
|
|
13
15
|
export declare const AlertDialogCancel: React_2.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
14
16
|
variant?: "link" | "dark" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "shadow" | null | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
4
|
-
declare const AlertDialog: React.
|
|
4
|
+
declare const AlertDialog: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogProps & React.RefAttributes<never>>;
|
|
5
5
|
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
6
|
declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
7
7
|
declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
@@ -23,7 +23,9 @@ declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<Alert
|
|
|
23
23
|
declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
24
24
|
variant?: "link" | "dark" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "shadow" | null | undefined;
|
|
25
25
|
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
26
|
-
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string> &
|
|
26
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string> & {
|
|
27
|
+
asChild?: boolean | undefined;
|
|
28
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
27
29
|
declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
28
30
|
variant?: "link" | "dark" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "shadow" | null | undefined;
|
|
29
31
|
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
package/dist/confirm-dialog.d.ts
CHANGED
|
@@ -7,7 +7,9 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
7
7
|
declare const AlertDialogAction: React_2.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
8
8
|
variant?: "link" | "dark" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "shadow" | null | undefined;
|
|
9
9
|
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
10
|
-
} & ClassProp) | undefined) => string> &
|
|
10
|
+
} & ClassProp) | undefined) => string> & {
|
|
11
|
+
asChild?: boolean | undefined;
|
|
12
|
+
} & React_2.RefAttributes<HTMLButtonElement>>;
|
|
11
13
|
|
|
12
14
|
export declare const ConfirmDialog: default_2.ForwardRefExoticComponent<Props & default_2.RefAttributes<ConfirmDialogRef>>;
|
|
13
15
|
|
|
@@ -5795,6 +5795,11 @@ const ChatSearchComponent = forwardRef(
|
|
|
5795
5795
|
}
|
|
5796
5796
|
};
|
|
5797
5797
|
const createNewThread = (firstQuery) => {
|
|
5798
|
+
if (firstQuery) {
|
|
5799
|
+
setQuery(firstQuery);
|
|
5800
|
+
void performSearch({ searchQuery: firstQuery, event: { name: "New Thread Created with Query" } });
|
|
5801
|
+
return;
|
|
5802
|
+
}
|
|
5798
5803
|
setQuery("");
|
|
5799
5804
|
setFollowUpQuery("");
|
|
5800
5805
|
setShowResults(false);
|
|
@@ -5806,10 +5811,6 @@ const ChatSearchComponent = forwardRef(
|
|
|
5806
5811
|
if (primaryTextareaRef.current) {
|
|
5807
5812
|
primaryTextareaRef.current.style.height = "auto";
|
|
5808
5813
|
}
|
|
5809
|
-
if (firstQuery) {
|
|
5810
|
-
setQuery(firstQuery);
|
|
5811
|
-
void performSearch({ searchQuery: firstQuery, event: { name: "New Thread Created with Query" } });
|
|
5812
|
-
}
|
|
5813
5814
|
};
|
|
5814
5815
|
useImperativeHandle(ref, () => ({
|
|
5815
5816
|
createNewThread,
|
|
@@ -6143,4 +6144,4 @@ const ChatSearch = forwardRef(({ featureFlags, ...props }, ref) => /* @__PURE__
|
|
|
6143
6144
|
ChatSearch.displayName = "ChatSearch";
|
|
6144
6145
|
|
|
6145
6146
|
export { ChatSearch as C, ChatSearchProvider as a, useIsChatSearchDirty as b, useChatSearch as u };
|
|
6146
|
-
//# sourceMappingURL=ChatSearch.
|
|
6147
|
+
//# sourceMappingURL=ChatSearch.DsnO9IEM.js.map
|