@brainfish-ai/components 0.23.9 → 0.23.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/esm/chunks/{ChatSearch.DVi90w5m.js → ChatSearch.CVOKmj3k.js} +2 -18
- package/dist/esm/chunks/ChatSearch.CVOKmj3k.js.map +1 -0
- package/dist/esm/chunks/feature-flags.C57XMODn.js +22 -0
- package/dist/esm/chunks/feature-flags.C57XMODn.js.map +1 -0
- package/dist/esm/chunks/{header-nav.C824ye-L.js → header-nav.CCJ9OYeY.js} +25 -3
- package/dist/esm/chunks/header-nav.CCJ9OYeY.js.map +1 -0
- package/dist/esm/chunks/{layout.DnKiObhP.js → layout.DNPYLkNd.js} +10 -4
- package/dist/esm/chunks/layout.DNPYLkNd.js.map +1 -0
- package/dist/esm/components/chat-search.js +1 -1
- package/dist/esm/global.css +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/layouts/full-layout.js +3 -2
- package/dist/esm/layouts/full-layout.js.map +1 -1
- package/dist/esm/layouts/header-nav.js +1 -1
- package/dist/esm/tailwind.preset.js +16 -0
- package/dist/esm/tailwind.preset.js.map +1 -1
- package/dist/full-layout.d.ts +12 -4
- package/dist/header-nav.d.ts +1 -0
- package/dist/index.d.ts +9 -5
- package/dist/stats.html +1 -1
- package/package.json +1 -1
- package/tailwind.preset.ts +18 -0
- package/dist/esm/chunks/ChatSearch.DVi90w5m.js.map +0 -1
- package/dist/esm/chunks/header-nav.C824ye-L.js.map +0 -1
- package/dist/esm/chunks/layout.DnKiObhP.js.map +0 -1
|
@@ -27,6 +27,7 @@ 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';
|
|
29
29
|
import { T as TwoLevelCombobox } from './two-level-combobox.DsWPDcI6.js';
|
|
30
|
+
import { u as useBooleanFlagValue, F as FeatureFlagProvider } from './feature-flags.C57XMODn.js';
|
|
30
31
|
import { X as X$1 } from 'lucide-react';
|
|
31
32
|
import { l as loadConversation, c as createConversationId, a as uploadFileToApi, b as useAutocomplete, s as sendFeedbackReason, d as sendFeedback, e as searchApi, f as fetchAnswerStream, g as fetchFollowUpQuestions } from './hooks.Dii4V-O3.js';
|
|
32
33
|
import { ScrollArea } from '../components/ui/scroll-area.js';
|
|
@@ -4977,23 +4978,6 @@ function IncludePageToggle({ value, loading, disabled, onToggle }) {
|
|
|
4977
4978
|
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" })));
|
|
4978
4979
|
}
|
|
4979
4980
|
|
|
4980
|
-
const FeatureFlagContext = createContext(void 0);
|
|
4981
|
-
function FeatureFlagProvider({ children, flags }) {
|
|
4982
|
-
return /* @__PURE__ */ React__default.createElement(FeatureFlagContext.Provider, { value: flags ?? {} }, children);
|
|
4983
|
-
}
|
|
4984
|
-
function useBooleanFlagValue(flagKey, defaultValue) {
|
|
4985
|
-
const flags = useContext(FeatureFlagContext);
|
|
4986
|
-
if (!flags) {
|
|
4987
|
-
console.warn(`useBooleanFlagValue("${flagKey}") used outside of FeatureFlagProvider. Returning default value.`);
|
|
4988
|
-
return defaultValue;
|
|
4989
|
-
}
|
|
4990
|
-
const value = flags[flagKey];
|
|
4991
|
-
if (value === void 0) {
|
|
4992
|
-
return defaultValue;
|
|
4993
|
-
}
|
|
4994
|
-
return Boolean(value);
|
|
4995
|
-
}
|
|
4996
|
-
|
|
4997
4981
|
const PrimarySearch = React__default.forwardRef(
|
|
4998
4982
|
({
|
|
4999
4983
|
query,
|
|
@@ -6683,4 +6667,4 @@ const ChatSearch = forwardRef(({ featureFlags, ...props }, ref) => /* @__PURE__
|
|
|
6683
6667
|
ChatSearch.displayName = "ChatSearch";
|
|
6684
6668
|
|
|
6685
6669
|
export { ChatSearch as C, ChatSearchProvider as a, useIsChatSearchDirty as b, useChatSearch as u };
|
|
6686
|
-
//# sourceMappingURL=ChatSearch.
|
|
6670
|
+
//# sourceMappingURL=ChatSearch.CVOKmj3k.js.map
|