@envive-ai/react-widgets 0.3.36 → 0.3.37
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/SearchResults/SearchResults.cjs +1 -1
- package/dist/SearchResults/SearchResults.d.ts +1 -1
- package/dist/SearchResults/SearchResults.js +1 -1
- package/dist/SearchResults/SearchResultsWidget.cjs +1 -1
- package/dist/SearchResults/SearchResultsWidget.d.cts +2 -2
- package/dist/SearchResults/SearchResultsWidget.d.ts +2 -2
- package/dist/SearchResults/SearchResultsWidget.js +1 -1
- package/dist/SearchResults/withSearchResults.cjs +1 -1
- package/dist/SearchResults/withSearchResults.js +1 -1
- package/dist/SearchZeroState/SearchIcon.cjs +1 -1
- package/dist/SearchZeroState/SearchIcon.js +1 -1
- package/dist/SearchZeroState/SearchOverlay.cjs +2 -2
- package/dist/SearchZeroState/SearchOverlay.js +2 -2
- package/dist/SearchZeroState/SearchZeroState.cjs +5 -5
- package/dist/SearchZeroState/SearchZeroState.js +5 -5
- package/dist/SearchZeroState/SearchZeroStateWidget.cjs +1 -1
- package/dist/SearchZeroState/SearchZeroStateWidget.js +1 -1
- package/dist/SearchZeroState/components/RecommendedProducts.cjs +3 -3
- package/dist/SearchZeroState/components/RecommendedProducts.js +3 -3
- package/dist/SuggestionBar/SuggestionBar.cjs +1 -1
- package/dist/SuggestionBar/SuggestionBar.d.cts +2 -2
- package/dist/SuggestionBar/SuggestionBar.d.ts +2 -2
- package/dist/SuggestionBar/SuggestionBar.js +2 -2
- package/dist/SuggestionButtonContainer/SuggestionButtonContainer.cjs +1 -1
- package/dist/SuggestionButtonContainer/SuggestionButtonContainer.js +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_withSearchResults = require('./withSearchResults.cjs');
|
|
3
3
|
let react = require("react");
|
|
4
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
4
|
let classnames = require("classnames");
|
|
6
5
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
7
6
|
let __envive_ai_react_toolkit_SearchResultsContent = require("@envive-ai/react-toolkit/SearchResultsContent");
|
|
8
7
|
let __envive_ai_react_toolkit_SearchResultsFilterModal = require("@envive-ai/react-toolkit/SearchResultsFilterModal");
|
|
9
8
|
let __envive_ai_react_toolkit_SearchResultsToolbar = require("@envive-ai/react-toolkit/SearchResultsToolbar");
|
|
10
9
|
let __envive_ai_react_toolkit_util = require("@envive-ai/react-toolkit/util");
|
|
10
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
11
|
|
|
12
12
|
//#region src/SearchResults/SearchResults.tsx
|
|
13
13
|
const SearchResultsComponent = ({ widgetConfig, productCardConfig, merchantShortName, productList, autocompleteResults, searchFilters, availableDynamicFilters, selectedFilterOptions, searchText, query, searchResultsState, isFilterOpen, shouldShowAutocomplete, focusedIndex, focusedOptionId, recommendedProducts, filterButtonText, onSearchInputChange, onSubmitSearch, onAutocompleteSelect, onKeyDown, onSearchInputFocus, onSearchInputBlur, onToggleDynamicFilter, onSelectFilterItem, onRemoveFilter, onClearAllFilters, setIsFilterOpen, searchResultsRef }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SearchResultsEntryPointWidgetConfig } from "./types.js";
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
2
|
import { SearchResultsHocProps } from "@envive-ai/react-hooks/hooks/Search";
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/SearchResults/SearchResults.d.ts
|
|
6
6
|
interface SearchResultsProps extends SearchResultsHocProps {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { withSearchResults } from "./withSearchResults.js";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
3
|
import classNames from "classnames";
|
|
5
4
|
import { SearchResultsContent } from "@envive-ai/react-toolkit/SearchResultsContent";
|
|
6
5
|
import { SearchResultsFilterModal } from "@envive-ai/react-toolkit/SearchResultsFilterModal";
|
|
7
6
|
import { SearchResultsToolbar } from "@envive-ai/react-toolkit/SearchResultsToolbar";
|
|
8
7
|
import { useStickyVisibility } from "@envive-ai/react-toolkit/util";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
|
|
10
10
|
//#region src/SearchResults/SearchResults.tsx
|
|
11
11
|
const SearchResultsComponent = ({ widgetConfig, productCardConfig, merchantShortName, productList, autocompleteResults, searchFilters, availableDynamicFilters, selectedFilterOptions, searchText, query, searchResultsState, isFilterOpen, shouldShowAutocomplete, focusedIndex, focusedOptionId, recommendedProducts, filterButtonText, onSearchInputChange, onSubmitSearch, onAutocompleteSelect, onKeyDown, onSearchInputFocus, onSearchInputBlur, onToggleDynamicFilter, onSelectFilterItem, onRemoveFilter, onClearAllFilters, setIsFilterOpen, searchResultsRef }) => {
|
|
@@ -2,10 +2,10 @@ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
|
2
2
|
const require_SearchResults = require('./SearchResults.cjs');
|
|
3
3
|
let react = require("react");
|
|
4
4
|
let jotai = require("jotai");
|
|
5
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
5
|
let __envive_ai_react_hooks_atoms_globalSearch = require("@envive-ai/react-hooks/atoms/globalSearch");
|
|
7
6
|
let __envive_ai_react_hooks_atoms_search = require("@envive-ai/react-hooks/atoms/search");
|
|
8
7
|
let __envive_ai_react_hooks_hooks_NewOrgConfig = require("@envive-ai/react-hooks/hooks/NewOrgConfig");
|
|
8
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
9
|
|
|
10
10
|
//#region src/SearchResults/SearchResultsWidget.tsx
|
|
11
11
|
const SearchResultsWidget = () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/SearchResults/SearchResultsWidget.d.ts
|
|
4
|
-
declare const SearchResultsWidget: () =>
|
|
4
|
+
declare const SearchResultsWidget: () => react_jsx_runtime2.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { SearchResultsWidget };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/SearchResults/SearchResultsWidget.d.ts
|
|
4
|
-
declare const SearchResultsWidget: () =>
|
|
4
|
+
declare const SearchResultsWidget: () => react_jsx_runtime0.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { SearchResultsWidget };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SearchResults } from "./SearchResults.js";
|
|
2
2
|
import { useEffect, useMemo } from "react";
|
|
3
3
|
import { useSetAtom } from "jotai";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { isSearchResultsOpenAtom } from "@envive-ai/react-hooks/atoms/globalSearch";
|
|
6
5
|
import { searchSystemAtom } from "@envive-ai/react-hooks/atoms/search";
|
|
7
6
|
import { useNewOrgConfig } from "@envive-ai/react-hooks/hooks/NewOrgConfig";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
|
|
9
9
|
//#region src/SearchResults/SearchResultsWidget.tsx
|
|
10
10
|
const SearchResultsWidget = () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
2
|
let __envive_ai_react_hooks_hooks_Search = require("@envive-ai/react-hooks/hooks/Search");
|
|
3
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
4
|
|
|
5
5
|
//#region src/SearchResults/withSearchResults.tsx
|
|
6
6
|
function withSearchResults(Component) {
|
|
@@ -3,9 +3,9 @@ const require_AiSearchBold = require('../packages/icons/dist/AiSearchBold.cjs');
|
|
|
3
3
|
const require_AiSearchThin = require('../packages/icons/dist/AiSearchThin.cjs');
|
|
4
4
|
let react = require("react");
|
|
5
5
|
react = require_rolldown_runtime.__toESM(react);
|
|
6
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
6
|
let classnames = require("classnames");
|
|
8
7
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
8
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
9
|
let __envive_ai_react_toolkit_Typography = require("@envive-ai/react-toolkit/Typography");
|
|
10
10
|
|
|
11
11
|
//#region src/SearchZeroState/SearchIcon.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AiSearchBold_default } from "../packages/icons/dist/AiSearchBold.js";
|
|
2
2
|
import { AiSearchThin_default } from "../packages/icons/dist/AiSearchThin.js";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import classNames from "classnames";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { Typography } from "@envive-ai/react-toolkit/Typography";
|
|
7
7
|
|
|
8
8
|
//#region src/SearchZeroState/SearchIcon.tsx
|
|
@@ -2,10 +2,10 @@ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
|
2
2
|
const require_overlayHostLocator = require('./overlay/overlayHostLocator.cjs');
|
|
3
3
|
let react = require("react");
|
|
4
4
|
react = require_rolldown_runtime.__toESM(react);
|
|
5
|
-
let framer_motion = require("framer-motion");
|
|
6
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
5
|
let classnames = require("classnames");
|
|
8
6
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
let framer_motion = require("framer-motion");
|
|
9
9
|
let react_dom = require("react-dom");
|
|
10
10
|
|
|
11
11
|
//#region src/SearchZeroState/SearchOverlay.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getOverlayPortalTarget } from "./overlay/overlayHostLocator.js";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { motion } from "framer-motion";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
3
|
import classNames from "classnames";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { motion } from "framer-motion";
|
|
6
6
|
import { createPortal } from "react-dom";
|
|
7
7
|
|
|
8
8
|
//#region src/SearchZeroState/SearchOverlay.tsx
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_SuggestionBar = require('../SuggestionBar/SuggestionBar.cjs');
|
|
3
|
-
require('../SuggestionBar/index.cjs');
|
|
4
2
|
const require_Sparkles = require('../packages/icons/dist/Sparkles.cjs');
|
|
5
3
|
const require_IconCloseVariant = require('../packages/icons/dist/IconCloseVariant.cjs');
|
|
4
|
+
const require_SuggestionBar = require('../SuggestionBar/SuggestionBar.cjs');
|
|
5
|
+
require('../SuggestionBar/index.cjs');
|
|
6
6
|
const require_SearchOverlay = require('./SearchOverlay.cjs');
|
|
7
7
|
const require_zeroStateSearchVariants = require('./zeroStateSearchVariants.cjs');
|
|
8
8
|
const require_SearchIcon = require('./SearchIcon.cjs');
|
|
9
9
|
const require_RecommendedProducts = require('./components/RecommendedProducts.cjs');
|
|
10
10
|
let react = require("react");
|
|
11
11
|
react = require_rolldown_runtime.__toESM(react);
|
|
12
|
-
let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
|
|
13
|
-
let framer_motion = require("framer-motion");
|
|
14
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
15
12
|
let __envive_ai_react_hooks_hooks_Search = require("@envive-ai/react-hooks/hooks/Search");
|
|
13
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
14
|
+
let framer_motion = require("framer-motion");
|
|
16
15
|
let __envive_ai_react_hooks_hooks_AmplitudeOperations = require("@envive-ai/react-hooks/hooks/AmplitudeOperations");
|
|
17
16
|
let __envive_ai_react_hooks_types = require("@envive-ai/react-hooks/types");
|
|
17
|
+
let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
|
|
18
18
|
let __envive_ai_react_hooks_contexts_amplitudeContext = require("@envive-ai/react-hooks/contexts/amplitudeContext");
|
|
19
19
|
let __envive_ai_react_toolkit_SearchInputForm = require("@envive-ai/react-toolkit/SearchInputForm");
|
|
20
20
|
let __envive_ai_react_toolkit_SearchInput = require("@envive-ai/react-toolkit/SearchInput");
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { SuggestionBar } from "../SuggestionBar/SuggestionBar.js";
|
|
2
|
-
import "../SuggestionBar/index.js";
|
|
3
1
|
import { Sparkles_default } from "../packages/icons/dist/Sparkles.js";
|
|
4
2
|
import { IconCloseVariant_default } from "../packages/icons/dist/IconCloseVariant.js";
|
|
3
|
+
import { SuggestionBar } from "../SuggestionBar/SuggestionBar.js";
|
|
4
|
+
import "../SuggestionBar/index.js";
|
|
5
5
|
import { SearchOverlay } from "./SearchOverlay.js";
|
|
6
6
|
import { searchZeroStateVariantClasses } from "./zeroStateSearchVariants.js";
|
|
7
7
|
import { SearchIcon } from "./SearchIcon.js";
|
|
8
8
|
import { RecommendedProducts } from "./components/RecommendedProducts.js";
|
|
9
9
|
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
10
|
-
import { MessageType, SpiffyWidgets } from "@envive-ai/react-hooks/application/models";
|
|
11
|
-
import { AnimatePresence, motion } from "framer-motion";
|
|
12
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
10
|
import { useSearch } from "@envive-ai/react-hooks/hooks/Search";
|
|
11
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
import { AnimatePresence, motion } from "framer-motion";
|
|
14
13
|
import { useAmplitudeTracking } from "@envive-ai/react-hooks/hooks/AmplitudeOperations";
|
|
15
14
|
import { SuggestionBarLocationForMetrics } from "@envive-ai/react-hooks/types";
|
|
15
|
+
import { MessageType, SpiffyWidgets } from "@envive-ai/react-hooks/application/models";
|
|
16
16
|
import { SpiffyMetricsEventName } from "@envive-ai/react-hooks/contexts/amplitudeContext";
|
|
17
17
|
import { SearchInputForm } from "@envive-ai/react-toolkit/SearchInputForm";
|
|
18
18
|
import { SearchInput, searchInputVariantClasses } from "@envive-ai/react-toolkit/SearchInput";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_SearchZeroState = require('./SearchZeroState.cjs');
|
|
3
3
|
let react = require("react");
|
|
4
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
4
|
let __envive_ai_react_hooks_hooks_NewOrgConfig = require("@envive-ai/react-hooks/hooks/NewOrgConfig");
|
|
5
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
6
|
|
|
7
7
|
//#region src/SearchZeroState/SearchZeroStateWidget.tsx
|
|
8
8
|
const SearchZeroStateWidget = ({ initialIsOpen, widgetConfigId = "searchEntryPointIcon", entryPointRef }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SearchZeroState } from "./SearchZeroState.js";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { useNewOrgConfig } from "@envive-ai/react-hooks/hooks/NewOrgConfig";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/SearchZeroState/SearchZeroStateWidget.tsx
|
|
7
7
|
const SearchZeroStateWidget = ({ initialIsOpen, widgetConfigId = "searchEntryPointIcon", entryPointRef }) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
|
|
3
|
-
let framer_motion = require("framer-motion");
|
|
4
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
2
|
let classnames = require("classnames");
|
|
6
3
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
4
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
+
let framer_motion = require("framer-motion");
|
|
7
6
|
let __envive_ai_react_hooks_hooks_AmplitudeOperations = require("@envive-ai/react-hooks/hooks/AmplitudeOperations");
|
|
7
|
+
let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
|
|
8
8
|
let __envive_ai_react_hooks_contexts_amplitudeContext = require("@envive-ai/react-hooks/contexts/amplitudeContext");
|
|
9
9
|
let __envive_ai_react_toolkit_Typography = require("@envive-ai/react-toolkit/Typography");
|
|
10
10
|
let __envive_ai_react_toolkit_ProductGrid = require("@envive-ai/react-toolkit/ProductGrid");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ChatElementDisplayLocation } from "@envive-ai/react-hooks/application/models";
|
|
2
|
-
import { motion } from "framer-motion";
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
1
|
import classNames from "classnames";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { motion } from "framer-motion";
|
|
5
4
|
import { useAmplitudeTracking } from "@envive-ai/react-hooks/hooks/AmplitudeOperations";
|
|
5
|
+
import { ChatElementDisplayLocation } from "@envive-ai/react-hooks/application/models";
|
|
6
6
|
import { SpiffyMetricsEventName } from "@envive-ai/react-hooks/contexts/amplitudeContext";
|
|
7
7
|
import { Typography } from "@envive-ai/react-toolkit/Typography";
|
|
8
8
|
import { ProductGrid } from "@envive-ai/react-toolkit/ProductGrid";
|
|
@@ -6,12 +6,12 @@ const require_SuggestionButtonContainer = require('../SuggestionButtonContainer/
|
|
|
6
6
|
require('../SuggestionButtonContainer/index.cjs');
|
|
7
7
|
let react = require("react");
|
|
8
8
|
let jotai = require("jotai");
|
|
9
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
10
|
let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
|
|
10
11
|
let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/chat");
|
|
11
12
|
let __envive_ai_react_hooks_config = require("@envive-ai/react-hooks/config");
|
|
12
13
|
let __envive_ai_react_hooks_hooks_IsSmallScreen = require("@envive-ai/react-hooks/hooks/IsSmallScreen");
|
|
13
14
|
let __envive_ai_react_hooks_hooks_TrackComponentVisibleEvent = require("@envive-ai/react-hooks/hooks/TrackComponentVisibleEvent");
|
|
14
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
15
15
|
|
|
16
16
|
//#region src/SuggestionBar/SuggestionBar.tsx
|
|
17
17
|
var import_dist = require_index.default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SuggestionBarLocationForMetrics } from "./types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
import { SuggestionButtonVariant } from "@envive-ai/react-hooks/contexts/types";
|
|
4
4
|
import { Message } from "postcss";
|
|
5
5
|
|
|
@@ -29,6 +29,6 @@ declare function SuggestionBar({
|
|
|
29
29
|
buttonBorderRadius,
|
|
30
30
|
handleReply,
|
|
31
31
|
dataTestId
|
|
32
|
-
}: Readonly<SuggestionBarProps>):
|
|
32
|
+
}: Readonly<SuggestionBarProps>): react_jsx_runtime0.JSX.Element;
|
|
33
33
|
//#endregion
|
|
34
34
|
export { SuggestionBar };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SuggestionBarLocationForMetrics } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
3
3
|
import { SuggestionButtonVariant } from "@envive-ai/react-hooks/contexts/types";
|
|
4
4
|
import { Message } from "postcss";
|
|
5
5
|
|
|
@@ -29,6 +29,6 @@ declare function SuggestionBar({
|
|
|
29
29
|
buttonBorderRadius,
|
|
30
30
|
handleReply,
|
|
31
31
|
dataTestId
|
|
32
|
-
}: Readonly<SuggestionBarProps>):
|
|
32
|
+
}: Readonly<SuggestionBarProps>): react_jsx_runtime2.JSX.Element;
|
|
33
33
|
//#endregion
|
|
34
34
|
export { SuggestionBar };
|
|
@@ -3,14 +3,14 @@ import { SuggestionBarLocationForMetrics } from "./types.js";
|
|
|
3
3
|
import { SuggestionButtonContainer } from "../SuggestionButtonContainer/SuggestionButtonContainer.js";
|
|
4
4
|
import "../SuggestionButtonContainer/index.js";
|
|
5
5
|
import { useCallback, useRef } from "react";
|
|
6
|
-
import { useScrollContainer } from "react-indiana-drag-scroll";
|
|
7
6
|
import { useSetAtom } from "jotai";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
import { MessageRole, MessageType } from "@envive-ai/react-hooks/application/models";
|
|
9
|
+
import { useScrollContainer } from "react-indiana-drag-scroll";
|
|
9
10
|
import { PerfMetricsEvents, logPerfMetricAtom } from "@envive-ai/react-hooks/atoms/chat";
|
|
10
11
|
import { SUGGESTION_BAR_TESTID } from "@envive-ai/react-hooks/config";
|
|
11
12
|
import { useIsSmallScreen } from "@envive-ai/react-hooks/hooks/IsSmallScreen";
|
|
12
13
|
import { useTrackComponentVisibleEvent } from "@envive-ai/react-hooks/hooks/TrackComponentVisibleEvent";
|
|
13
|
-
import { jsx } from "react/jsx-runtime";
|
|
14
14
|
|
|
15
15
|
//#region src/SuggestionBar/SuggestionBar.tsx
|
|
16
16
|
function SuggestionBar({ id, locationForMetrics, buttonTexts, buttonVariation, hoverButtonVariation, boldFirstButton = false, twoRowsOnMobile = false, animationSpeed = "none", buttonBorderRadius = "lg", handleReply, dataTestId }) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_useHorizontalScrollAnimation = require('../util/useHorizontalScrollAnimation.cjs');
|
|
3
3
|
let react = require("react");
|
|
4
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
5
|
let __envive_ai_react_hooks_config = require("@envive-ai/react-hooks/config");
|
|
5
6
|
let __envive_ai_react_hooks_hooks_IsSmallScreen = require("@envive-ai/react-hooks/hooks/IsSmallScreen");
|
|
6
7
|
let __envive_ai_react_hooks_hooks_TrackComponentVisibleEvent = require("@envive-ai/react-hooks/hooks/TrackComponentVisibleEvent");
|
|
7
8
|
let __envive_ai_react_toolkit_SuggestionButton = require("@envive-ai/react-toolkit/SuggestionButton");
|
|
8
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
9
|
|
|
10
10
|
//#region src/SuggestionButtonContainer/SuggestionButtonContainer.tsx
|
|
11
11
|
function ButtonContainer({ children }) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useHorizontalScrollAnimation } from "../util/useHorizontalScrollAnimation.js";
|
|
2
2
|
import { useRef } from "react";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
4
|
import { SUGGESTION_BAR_BUTTON_TESTID } from "@envive-ai/react-hooks/config";
|
|
4
5
|
import { useIsSmallScreen } from "@envive-ai/react-hooks/hooks/IsSmallScreen";
|
|
5
6
|
import { useTrackComponentVisibleEvent } from "@envive-ai/react-hooks/hooks/TrackComponentVisibleEvent";
|
|
6
7
|
import { SuggestionButton } from "@envive-ai/react-toolkit/SuggestionButton";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
|
|
9
9
|
//#region src/SuggestionButtonContainer/SuggestionButtonContainer.tsx
|
|
10
10
|
function ButtonContainer({ children }) {
|