@brainfish-ai/components 0.16.6-rc.3 → 0.16.7

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.
@@ -1,5 +1,7 @@
1
1
  import React__default, { useState, useCallback, useMemo, createContext, useContext, Fragment, useRef, useEffect, forwardRef, useImperativeHandle } from 'react';
2
2
  import { motion, AnimatePresence } from 'framer-motion';
3
+ import rehypeRaw from 'rehype-raw';
4
+ import remarkGfm from 'remark-gfm';
3
5
  import { TooltipProvider, Tooltip, TooltipTrigger, TooltipContent } from '../components/ui/tooltip.js';
4
6
  import { Button } from '../components/ui/button.js';
5
7
  import { XCircle, Check, Copy, CaretDown, ArrowSquareOut, CaretRight, ArrowsVertical, ArrowDown, Globe, LockSimple, MagnifyingGlass, X, Image, ArrowRight, ArrowLeft, ArrowsInSimple, ArrowsOutSimple } from '@phosphor-icons/react';
@@ -24,8 +26,6 @@ import { G as GeneratingStar } from './generating-star.B0RUXRff.js';
24
26
  import { getCountry } from 'countries-and-timezones';
25
27
  import { C as Combobox } from './combobox.BRm6ZDEB.js';
26
28
  import { T as TwoLevelCombobox } from './two-level-combobox.DFonmrmc.js';
27
- import rehypeRaw from 'rehype-raw';
28
- import remarkGfm from 'remark-gfm';
29
29
  import { ScrollArea } from '../components/ui/scroll-area.js';
30
30
 
31
31
  import '../ChatSearch.css';function Suggestions({ suggestions, onQuestionClick, title = "Suggested questions" }) {
@@ -5419,6 +5419,11 @@ function useAutocomplete({
5419
5419
  return { suggestions, isLoading, error };
5420
5420
  }
5421
5421
 
5422
+ const markdownRemarkPlugins = [remarkGfm];
5423
+ const markdownRehypePlugins = [rehypeRaw];
5424
+ const markdownComponents = {
5425
+ p: ({ children }) => /* @__PURE__ */ React__default.createElement("span", null, children)
5426
+ };
5422
5427
  const ChatSearchComponent = forwardRef(
5423
5428
  ({
5424
5429
  suggestions: initialSuggestions = [],
@@ -6151,11 +6156,9 @@ const ChatSearchComponent = forwardRef(
6151
6156
  MemoizedReactMarkdown,
6152
6157
  {
6153
6158
  className: "[&_a]:underline [&_a:hover]:no-underline",
6154
- remarkPlugins: [remarkGfm],
6155
- rehypePlugins: [rehypeRaw],
6156
- components: {
6157
- p: ({ children }) => /* @__PURE__ */ React__default.createElement("span", null, children)
6158
- }
6159
+ remarkPlugins: markdownRemarkPlugins,
6160
+ rehypePlugins: markdownRehypePlugins,
6161
+ components: markdownComponents
6159
6162
  },
6160
6163
  disclaimer
6161
6164
  )
@@ -6180,4 +6183,4 @@ const ChatSearch = forwardRef(({ featureFlags, ...props }, ref) => /* @__PURE__
6180
6183
  ChatSearch.displayName = "ChatSearch";
6181
6184
 
6182
6185
  export { ChatSearch as C, ChatSearchProvider as a, useIsChatSearchDirty as b, useChatSearch as u };
6183
- //# sourceMappingURL=ChatSearch.DspAMJX7.js.map
6186
+ //# sourceMappingURL=ChatSearch.BwlMSUvG.js.map