@brainfish-ai/components 0.13.11 → 0.13.14

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.
@@ -137,6 +137,7 @@ export interface FollowUpQuestionsResponse {
137
137
  export interface Collection {
138
138
  id: string;
139
139
  name: string;
140
+ siteEnabled?: boolean;
140
141
  }
141
142
  export interface Suggestion {
142
143
  id: string;
@@ -146,10 +147,7 @@ export interface Suggestion {
146
147
  }
147
148
  export interface ChatSearchProps {
148
149
  suggestions?: Suggestion[];
149
- collections?: Array<{
150
- id: string;
151
- name: string;
152
- }>;
150
+ collections?: Array<Collection>;
153
151
  selectedCollectionId?: string;
154
152
  onCollectionChange?: (collectionId: string) => void;
155
153
  searchEndpoint: string;
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ type VideoTimelineProps = {
3
+ duration: number;
4
+ currentTime: number;
5
+ startTime: number | null;
6
+ endTime: number | null;
7
+ };
8
+ export default function VideoTimeline({ duration, currentTime, startTime, endTime }: VideoTimelineProps): React.JSX.Element;
9
+ export {};
@@ -3,7 +3,7 @@ import { motion, AnimatePresence } from 'framer-motion';
3
3
  import { TooltipProvider, Tooltip, TooltipTrigger, TooltipContent } from '../components/ui/tooltip.js';
4
4
  import { Button } from '../components/ui/button.js';
5
5
  import { XCircle, Check, Copy, CaretDown, ArrowSquareOut, CaretRight, ArrowsVertical, ArrowDown, MagnifyingGlass, X, CheckCircle, Circle, Image, ArrowRight, ArrowLeft, ArrowsInSimple, ArrowsOutSimple } from '@phosphor-icons/react';
6
- import { g as getDefaultExportFromCjs, F as FormattedMessage, c as addPopupWidgetUtm } from './FormattedMessage.C2GfFraq.js';
6
+ import { g as getDefaultExportFromCjs, F as FormattedMessage, c as addPopupWidgetUtm } from './FormattedMessage.Cmv0Kl8o.js';
7
7
  import { appendErrors, useForm, Controller } from 'react-hook-form';
8
8
  import { validateFieldsNatively, toNestErrors } from '@hookform/resolvers';
9
9
  import require$$0 from 'ajv';
@@ -3621,7 +3621,9 @@ const getTargetAnswer = (draft, index) => {
3621
3621
  return draft.at(index ?? -1);
3622
3622
  };
3623
3623
  const getLastTextBlock = (answer) => {
3624
- return answer.blocks.at(-1);
3624
+ const textBlocks = answer.blocks.filter(isMarkdownTextBlock);
3625
+ const lastTextBlock = textBlocks.at(-1);
3626
+ return lastTextBlock;
3625
3627
  };
3626
3628
  const initialState = [];
3627
3629
  const reducer = (draft, action) => {
@@ -6023,4 +6025,4 @@ const ChatSearch = forwardRef(({ featureFlags, ...props }, ref) => /* @__PURE__
6023
6025
  ChatSearch.displayName = "ChatSearch";
6024
6026
 
6025
6027
  export { ChatSearch as C, ChatSearchProvider as a, useIsChatSearchDirty as b, useChatSearch as u };
6026
- //# sourceMappingURL=ChatSearch.D_p1A_71.js.map
6028
+ //# sourceMappingURL=ChatSearch.CicUAtwR.js.map