@brainfish-ai/components 0.22.8 → 0.22.10
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/convos.d.ts +13 -1
- package/dist/esm/chunks/{ChatSearch.CNS7ZOgA.js → ChatSearch.CgxpBVrd.js} +4 -27
- package/dist/esm/chunks/ChatSearch.CgxpBVrd.js.map +1 -0
- package/dist/esm/chunks/{generating-star.BMQgTqs7.js → generating-star.DMDPNTaM.js} +31 -28
- package/dist/esm/chunks/{generating-star.BMQgTqs7.js.map → generating-star.DMDPNTaM.js.map} +1 -1
- package/dist/esm/chunks/{layout.ClofLZcT.js → layout.Cxgg3kfZ.js} +2 -2
- package/dist/esm/chunks/{layout.ClofLZcT.js.map → layout.Cxgg3kfZ.js.map} +1 -1
- package/dist/esm/chunks/{review-list.COTpWPmq.js → review-list.B1IHUfFS.js} +6 -4
- package/dist/esm/chunks/review-list.B1IHUfFS.js.map +1 -0
- package/dist/esm/chunks/{sidebar.kcc3uFga.js → sidebar.Cfrsif7V.js} +14 -4
- package/dist/esm/chunks/sidebar.Cfrsif7V.js.map +1 -0
- package/dist/esm/chunks/{status-badge.DkPNh30S.js → status-badge.MOegXsYs.js} +11 -5
- package/dist/esm/chunks/{status-badge.DkPNh30S.js.map → status-badge.MOegXsYs.js.map} +1 -1
- package/dist/esm/components/chat-search.js +1 -1
- package/dist/esm/components/convos.js +2 -2
- package/dist/esm/components/generating-star.js +1 -1
- package/dist/esm/global.css +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/layouts/full-layout.js +1 -1
- package/dist/esm/layouts/sidebar.js +1 -1
- package/dist/esm/scenes/knowledge-review.js +3 -3
- package/dist/esm/scenes/knowledge-review.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/knowledge-review.d.ts +2 -0
- package/dist/stats.html +1 -1
- package/package.json +1 -1
- package/dist/esm/chunks/ChatSearch.CNS7ZOgA.js.map +0 -1
- package/dist/esm/chunks/review-list.COTpWPmq.js.map +0 -1
- package/dist/esm/chunks/sidebar.kcc3uFga.js.map +0 -1
package/dist/convos.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
2
2
|
import { BadgeProps } from '../ui/badge';
|
|
3
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
3
4
|
import { default as default_2 } from 'react';
|
|
4
5
|
import * as React_2 from 'react';
|
|
6
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
7
|
|
|
6
8
|
declare function AccordionItem({ className, ...props }: React_2.ComponentProps<typeof AccordionPrimitive.Item>): React_2.JSX.Element;
|
|
7
9
|
|
|
@@ -29,6 +31,15 @@ declare type AnswerDiagnostics = {
|
|
|
29
31
|
|
|
30
32
|
declare type AnswerGenerationType = 'Direct Extraction' | 'Summarization' | 'Inference' | 'Combination' | 'Cannot Answer';
|
|
31
33
|
|
|
34
|
+
declare function Badge({ className, variant, ...props }: BadgeProps_2): React_2.JSX.Element;
|
|
35
|
+
|
|
36
|
+
declare interface BadgeProps_2 extends React_2.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
declare const badgeVariants: (props?: ({
|
|
40
|
+
variant?: "default" | "disabled" | "destructive" | "success" | "warning" | null | undefined;
|
|
41
|
+
} & ClassProp) | undefined) => string;
|
|
42
|
+
|
|
32
43
|
declare interface BaseMessage {
|
|
33
44
|
id: string;
|
|
34
45
|
timestamp: Date;
|
|
@@ -155,7 +166,8 @@ declare interface Source {
|
|
|
155
166
|
color?: string;
|
|
156
167
|
}
|
|
157
168
|
|
|
158
|
-
export declare const StatusBadge: default_2.ForwardRefExoticComponent<BadgeProps & {
|
|
169
|
+
export declare const StatusBadge: default_2.ForwardRefExoticComponent<Omit<BadgeProps, "variant"> & {
|
|
170
|
+
variant?: default_2.ComponentPropsWithRef<typeof Badge>['variant'] | 'accepted';
|
|
159
171
|
suffix?: default_2.ReactNode;
|
|
160
172
|
} & default_2.RefAttributes<HTMLSpanElement>>;
|
|
161
173
|
|
|
@@ -4,7 +4,7 @@ import rehypeRaw from 'rehype-raw';
|
|
|
4
4
|
import remarkGfm from 'remark-gfm';
|
|
5
5
|
import { TooltipProvider, Tooltip, TooltipTrigger, TooltipContent } from '../components/ui/tooltip.js';
|
|
6
6
|
import { Button } from '../components/ui/button.js';
|
|
7
|
-
import { XCircle, Check, Copy, CaretDown, ArrowSquareOut, CaretRight, ArrowsVertical,
|
|
7
|
+
import { XCircle, Check, Copy, CaretDown, ArrowSquareOut, CaretRight, ArrowsVertical, Globe, LockSimple, MagnifyingGlass, X, Image, ArrowRight, ArrowLeft, ArrowsInSimple, ArrowsOutSimple } from '@phosphor-icons/react';
|
|
8
8
|
import { F as FormattedMessage, c as addPopupWidgetUtm, M as MemoizedReactMarkdown } from './FormattedMessage.ieoe4jPf.js';
|
|
9
9
|
import { appendErrors, useForm, Controller } from 'react-hook-form';
|
|
10
10
|
import { validateFieldsNatively, toNestErrors } from '@hookform/resolvers';
|
|
@@ -22,7 +22,7 @@ import { useSearchParam, useEffectOnce } from 'react-use';
|
|
|
22
22
|
import { MemoizedIcon } from '../components/ui/icon.js';
|
|
23
23
|
import { Collapsible, CollapsibleTrigger, CollapsibleContent } from '../components/ui/collapsible.js';
|
|
24
24
|
import { F as Feedback } from './feedback.D139-1Wr.js';
|
|
25
|
-
import { G as GeneratingStar } from './generating-star.
|
|
25
|
+
import { G as GeneratingStar } from './generating-star.DMDPNTaM.js';
|
|
26
26
|
import { getCountry } from 'countries-and-timezones';
|
|
27
27
|
import { Switch } from '../components/ui/switch.js';
|
|
28
28
|
import { C as Combobox } from './combobox.DNYCWyub.js';
|
|
@@ -4792,19 +4792,6 @@ function TimelineNavigation({ questions, activeIndex, onNavigate, offset }) {
|
|
|
4792
4792
|
);
|
|
4793
4793
|
}
|
|
4794
4794
|
|
|
4795
|
-
function ScrollToBottomArrow({ onClick }) {
|
|
4796
|
-
return /* @__PURE__ */ React__default.createElement(
|
|
4797
|
-
Button,
|
|
4798
|
-
{
|
|
4799
|
-
size: "icon",
|
|
4800
|
-
variant: "secondary",
|
|
4801
|
-
className: "fixed bottom-20 right-4 rounded-full transition-opacity duration-300 border-border shadow-md",
|
|
4802
|
-
onClick
|
|
4803
|
-
},
|
|
4804
|
-
/* @__PURE__ */ React__default.createElement(ArrowDown, { className: "size-5" })
|
|
4805
|
-
);
|
|
4806
|
-
}
|
|
4807
|
-
|
|
4808
4795
|
function IncludePageToggle({ value, loading, disabled, onToggle }) {
|
|
4809
4796
|
return /* @__PURE__ */ React__default.createElement("div", { className: "flex items-center gap-2" }, /* @__PURE__ */ React__default.createElement(Switch, { id: "include-page", checked: value, onCheckedChange: onToggle, disabled: loading || disabled }), /* @__PURE__ */ React__default.createElement("label", { htmlFor: "include-page", className: "text-sm text-foreground flex items-center gap-2" }, "Include page", loading && /* @__PURE__ */ React__default.createElement("div", { className: "animate-spin rounded-full size-3 border-2 border-t-transparent border-primary" })));
|
|
4810
4797
|
}
|
|
@@ -5522,7 +5509,6 @@ const ChatSearchComponent = forwardRef(
|
|
|
5522
5509
|
setShowMobileCloseWidgetButton
|
|
5523
5510
|
} = useChatSearch();
|
|
5524
5511
|
const mergedTextConfig = { ...defaultTextConfig, ...textConfig };
|
|
5525
|
-
const [showScrollArrow, setShowScrollArrow] = useState(false);
|
|
5526
5512
|
const [attachedImages, setAttachedImages] = useState([]);
|
|
5527
5513
|
const [currentCollectionId, setCurrentCollectionId] = useState(selectedCollectionId);
|
|
5528
5514
|
const [currentRegion, setCurrentRegion] = useState(selectedRegion);
|
|
@@ -6002,14 +5988,6 @@ const ChatSearchComponent = forwardRef(
|
|
|
6002
5988
|
const handleAutocompleteSuggestionClick = (suggestion) => {
|
|
6003
5989
|
void performSearch({ searchQuery: suggestion.question, event: { name: "Autocomplete Suggestion Clicked" } });
|
|
6004
5990
|
};
|
|
6005
|
-
useEffect(() => {
|
|
6006
|
-
const handleScroll = () => {
|
|
6007
|
-
const isNearBottom = window.innerHeight + window.pageYOffset >= document.documentElement.scrollHeight - 100;
|
|
6008
|
-
setShowScrollArrow(!isNearBottom);
|
|
6009
|
-
};
|
|
6010
|
-
window.addEventListener("scroll", handleScroll);
|
|
6011
|
-
return () => window.removeEventListener("scroll", handleScroll);
|
|
6012
|
-
}, []);
|
|
6013
5991
|
useEffect(() => {
|
|
6014
5992
|
return () => {
|
|
6015
5993
|
attachedImages.forEach((image) => URL.revokeObjectURL(image.preview));
|
|
@@ -6341,8 +6319,7 @@ const ChatSearchComponent = forwardRef(
|
|
|
6341
6319
|
handleFollowUpSearch,
|
|
6342
6320
|
textConfig: mergedTextConfig
|
|
6343
6321
|
}
|
|
6344
|
-
)
|
|
6345
|
-
showScrollArrow && showResults && /* @__PURE__ */ React__default.createElement(ScrollToBottomArrow, { onClick: scrollToLastAnswer })
|
|
6322
|
+
)
|
|
6346
6323
|
);
|
|
6347
6324
|
}
|
|
6348
6325
|
);
|
|
@@ -6351,4 +6328,4 @@ const ChatSearch = forwardRef(({ featureFlags, ...props }, ref) => /* @__PURE__
|
|
|
6351
6328
|
ChatSearch.displayName = "ChatSearch";
|
|
6352
6329
|
|
|
6353
6330
|
export { ChatSearch as C, ChatSearchProvider as a, useIsChatSearchDirty as b, useChatSearch as u };
|
|
6354
|
-
//# sourceMappingURL=ChatSearch.
|
|
6331
|
+
//# sourceMappingURL=ChatSearch.CgxpBVrd.js.map
|