@envive-ai/react-widgets 0.3.37 → 0.3.39
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 +2 -2
- 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.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 +2 -2
- package/dist/SearchZeroState/SearchZeroState.js +2 -2
- package/dist/SearchZeroState/SearchZeroStateWidget.cjs +1 -1
- package/dist/SearchZeroState/SearchZeroStateWidget.d.cts +2 -2
- package/dist/SearchZeroState/SearchZeroStateWidget.js +1 -1
- package/dist/SearchZeroState/components/RecommendedProducts.cjs +2 -2
- package/dist/SearchZeroState/components/RecommendedProducts.js +2 -2
- package/dist/SuggestionBar/SuggestionBar.cjs +6 -6
- package/dist/SuggestionBar/SuggestionBar.d.cts +2 -2
- package/dist/SuggestionBar/SuggestionBar.d.ts +2 -2
- package/dist/SuggestionBar/SuggestionBar.js +6 -6
- package/dist/SuggestionButtonContainer/SuggestionButtonContainer.cjs +2 -2
- package/dist/SuggestionButtonContainer/SuggestionButtonContainer.js +2 -2
- 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");
|
|
4
5
|
let classnames = require("classnames");
|
|
5
6
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
6
7
|
let __envive_ai_react_toolkit_SearchResultsContent = require("@envive-ai/react-toolkit/SearchResultsContent");
|
|
7
8
|
let __envive_ai_react_toolkit_SearchResultsFilterModal = require("@envive-ai/react-toolkit/SearchResultsFilterModal");
|
|
8
9
|
let __envive_ai_react_toolkit_SearchResultsToolbar = require("@envive-ai/react-toolkit/SearchResultsToolbar");
|
|
9
10
|
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,11 +1,11 @@
|
|
|
1
1
|
import { SearchResultsEntryPointWidgetConfig } from "./types.js";
|
|
2
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
2
3
|
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 {
|
|
7
7
|
widgetConfig: SearchResultsEntryPointWidgetConfig;
|
|
8
8
|
}
|
|
9
|
-
declare const SearchResults: (props: Omit<SearchResultsProps, string | number | symbol>) =>
|
|
9
|
+
declare const SearchResults: (props: Omit<SearchResultsProps, string | number | symbol>) => react_jsx_runtime1.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { SearchResults };
|
|
@@ -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";
|
|
3
4
|
import classNames from "classnames";
|
|
4
5
|
import { SearchResultsContent } from "@envive-ai/react-toolkit/SearchResultsContent";
|
|
5
6
|
import { SearchResultsFilterModal } from "@envive-ai/react-toolkit/SearchResultsFilterModal";
|
|
6
7
|
import { SearchResultsToolbar } from "@envive-ai/react-toolkit/SearchResultsToolbar";
|
|
7
8
|
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 }) => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_SearchResults = require('./SearchResults.cjs');
|
|
3
3
|
let react = require("react");
|
|
4
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
5
|
let jotai = require("jotai");
|
|
5
6
|
let __envive_ai_react_hooks_atoms_globalSearch = require("@envive-ai/react-hooks/atoms/globalSearch");
|
|
6
7
|
let __envive_ai_react_hooks_atoms_search = require("@envive-ai/react-hooks/atoms/search");
|
|
7
8
|
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_runtime1 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/SearchResults/SearchResultsWidget.d.ts
|
|
4
|
-
declare const SearchResultsWidget: () =>
|
|
4
|
+
declare const SearchResultsWidget: () => react_jsx_runtime1.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
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { useSetAtom } from "jotai";
|
|
4
5
|
import { isSearchResultsOpenAtom } from "@envive-ai/react-hooks/atoms/globalSearch";
|
|
5
6
|
import { searchSystemAtom } from "@envive-ai/react-hooks/atoms/search";
|
|
6
7
|
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 __envive_ai_react_hooks_hooks_Search = require("@envive-ai/react-hooks/hooks/Search");
|
|
3
2
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
+
let __envive_ai_react_hooks_hooks_Search = require("@envive-ai/react-hooks/hooks/Search");
|
|
4
4
|
|
|
5
5
|
//#region src/SearchResults/withSearchResults.tsx
|
|
6
6
|
function withSearchResults(Component) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useSearch } from "@envive-ai/react-hooks/hooks/Search";
|
|
2
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useSearch } from "@envive-ai/react-hooks/hooks/Search";
|
|
3
3
|
|
|
4
4
|
//#region src/SearchResults/withSearchResults.tsx
|
|
5
5
|
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");
|
|
6
7
|
let classnames = require("classnames");
|
|
7
8
|
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 classNames from "classnames";
|
|
5
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import classNames from "classnames";
|
|
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");
|
|
5
7
|
let classnames = require("classnames");
|
|
6
8
|
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 classNames from "classnames";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
3
|
import { motion } from "framer-motion";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import classNames from "classnames";
|
|
6
6
|
import { createPortal } from "react-dom";
|
|
7
7
|
|
|
8
8
|
//#region src/SearchZeroState/SearchOverlay.tsx
|
|
@@ -9,9 +9,9 @@ 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_hooks_Search = require("@envive-ai/react-hooks/hooks/Search");
|
|
13
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
14
12
|
let framer_motion = require("framer-motion");
|
|
13
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
14
|
+
let __envive_ai_react_hooks_hooks_Search = require("@envive-ai/react-hooks/hooks/Search");
|
|
15
15
|
let __envive_ai_react_hooks_hooks_AmplitudeOperations = require("@envive-ai/react-hooks/hooks/AmplitudeOperations");
|
|
16
16
|
let __envive_ai_react_hooks_types = require("@envive-ai/react-hooks/types");
|
|
17
17
|
let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
|
|
@@ -7,9 +7,9 @@ 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 { useSearch } from "@envive-ai/react-hooks/hooks/Search";
|
|
11
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
10
|
import { AnimatePresence, motion } from "framer-motion";
|
|
11
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
import { useSearch } from "@envive-ai/react-hooks/hooks/Search";
|
|
13
13
|
import { useAmplitudeTracking } from "@envive-ai/react-hooks/hooks/AmplitudeOperations";
|
|
14
14
|
import { SuggestionBarLocationForMetrics } from "@envive-ai/react-hooks/types";
|
|
15
15
|
import { MessageType, SpiffyWidgets } from "@envive-ai/react-hooks/application/models";
|
|
@@ -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 __envive_ai_react_hooks_hooks_NewOrgConfig = require("@envive-ai/react-hooks/hooks/NewOrgConfig");
|
|
5
4
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
+
let __envive_ai_react_hooks_hooks_NewOrgConfig = require("@envive-ai/react-hooks/hooks/NewOrgConfig");
|
|
6
6
|
|
|
7
7
|
//#region src/SearchZeroState/SearchZeroStateWidget.tsx
|
|
8
8
|
const SearchZeroStateWidget = ({ initialIsOpen, widgetConfigId = "searchEntryPointIcon", entryPointRef }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/SearchZeroState/SearchZeroStateWidget.d.ts
|
|
4
4
|
type SearchZeroStateWidgetProps = {
|
|
@@ -10,6 +10,6 @@ declare const SearchZeroStateWidget: ({
|
|
|
10
10
|
initialIsOpen,
|
|
11
11
|
widgetConfigId,
|
|
12
12
|
entryPointRef
|
|
13
|
-
}: SearchZeroStateWidgetProps) =>
|
|
13
|
+
}: SearchZeroStateWidgetProps) => react_jsx_runtime2.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { SearchZeroStateWidget };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SearchZeroState } from "./SearchZeroState.js";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import { useNewOrgConfig } from "@envive-ai/react-hooks/hooks/NewOrgConfig";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { useNewOrgConfig } from "@envive-ai/react-hooks/hooks/NewOrgConfig";
|
|
5
5
|
|
|
6
6
|
//#region src/SearchZeroState/SearchZeroStateWidget.tsx
|
|
7
7
|
const SearchZeroStateWidget = ({ initialIsOpen, widgetConfigId = "searchEntryPointIcon", entryPointRef }) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let framer_motion = require("framer-motion");
|
|
3
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
2
4
|
let classnames = require("classnames");
|
|
3
5
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
4
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
-
let framer_motion = require("framer-motion");
|
|
6
6
|
let __envive_ai_react_hooks_hooks_AmplitudeOperations = require("@envive-ai/react-hooks/hooks/AmplitudeOperations");
|
|
7
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");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import classNames from "classnames";
|
|
2
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
1
|
import { motion } from "framer-motion";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import classNames from "classnames";
|
|
4
4
|
import { useAmplitudeTracking } from "@envive-ai/react-hooks/hooks/AmplitudeOperations";
|
|
5
5
|
import { ChatElementDisplayLocation } from "@envive-ai/react-hooks/application/models";
|
|
6
6
|
import { SpiffyMetricsEventName } from "@envive-ai/react-hooks/contexts/amplitudeContext";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_SuggestionButtonContainer = require('../SuggestionButtonContainer/SuggestionButtonContainer.cjs');
|
|
3
|
+
require('../SuggestionButtonContainer/index.cjs');
|
|
2
4
|
const require_index = require('../node_modules/react-indiana-drag-scroll/dist/index.cjs');
|
|
3
5
|
const require_v4 = require('../node_modules/uuid/dist-node/v4.cjs');
|
|
4
6
|
const require_types = require('./types.cjs');
|
|
5
|
-
const require_SuggestionButtonContainer = require('../SuggestionButtonContainer/SuggestionButtonContainer.cjs');
|
|
6
|
-
require('../SuggestionButtonContainer/index.cjs');
|
|
7
7
|
let react = require("react");
|
|
8
|
-
let jotai = require("jotai");
|
|
9
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
|
-
let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
|
|
11
|
-
let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/chat");
|
|
12
8
|
let __envive_ai_react_hooks_config = require("@envive-ai/react-hooks/config");
|
|
13
9
|
let __envive_ai_react_hooks_hooks_IsSmallScreen = require("@envive-ai/react-hooks/hooks/IsSmallScreen");
|
|
14
10
|
let __envive_ai_react_hooks_hooks_TrackComponentVisibleEvent = require("@envive-ai/react-hooks/hooks/TrackComponentVisibleEvent");
|
|
11
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
12
|
+
let jotai = require("jotai");
|
|
13
|
+
let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
|
|
14
|
+
let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/chat");
|
|
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_runtime3 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_runtime3.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_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,16 +1,16 @@
|
|
|
1
|
-
import v4_default from "../node_modules/uuid/dist/v4.js";
|
|
2
|
-
import { SuggestionBarLocationForMetrics } from "./types.js";
|
|
3
1
|
import { SuggestionButtonContainer } from "../SuggestionButtonContainer/SuggestionButtonContainer.js";
|
|
4
2
|
import "../SuggestionButtonContainer/index.js";
|
|
3
|
+
import v4_default from "../node_modules/uuid/dist/v4.js";
|
|
4
|
+
import { SuggestionBarLocationForMetrics } from "./types.js";
|
|
5
5
|
import { useCallback, useRef } from "react";
|
|
6
|
-
import {
|
|
6
|
+
import { SUGGESTION_BAR_TESTID } from "@envive-ai/react-hooks/config";
|
|
7
|
+
import { useIsSmallScreen } from "@envive-ai/react-hooks/hooks/IsSmallScreen";
|
|
8
|
+
import { useTrackComponentVisibleEvent } from "@envive-ai/react-hooks/hooks/TrackComponentVisibleEvent";
|
|
7
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
import { useSetAtom } from "jotai";
|
|
8
11
|
import { MessageRole, MessageType } from "@envive-ai/react-hooks/application/models";
|
|
9
12
|
import { useScrollContainer } from "react-indiana-drag-scroll";
|
|
10
13
|
import { PerfMetricsEvents, logPerfMetricAtom } from "@envive-ai/react-hooks/atoms/chat";
|
|
11
|
-
import { SUGGESTION_BAR_TESTID } from "@envive-ai/react-hooks/config";
|
|
12
|
-
import { useIsSmallScreen } from "@envive-ai/react-hooks/hooks/IsSmallScreen";
|
|
13
|
-
import { useTrackComponentVisibleEvent } from "@envive-ai/react-hooks/hooks/TrackComponentVisibleEvent";
|
|
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
|
|
4
|
+
let __envive_ai_react_toolkit_SuggestionButton = require("@envive-ai/react-toolkit/SuggestionButton");
|
|
5
5
|
let __envive_ai_react_hooks_config = require("@envive-ai/react-hooks/config");
|
|
6
6
|
let __envive_ai_react_hooks_hooks_IsSmallScreen = require("@envive-ai/react-hooks/hooks/IsSmallScreen");
|
|
7
7
|
let __envive_ai_react_hooks_hooks_TrackComponentVisibleEvent = require("@envive-ai/react-hooks/hooks/TrackComponentVisibleEvent");
|
|
8
|
-
let
|
|
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 {
|
|
3
|
+
import { SuggestionButton } from "@envive-ai/react-toolkit/SuggestionButton";
|
|
4
4
|
import { SUGGESTION_BAR_BUTTON_TESTID } from "@envive-ai/react-hooks/config";
|
|
5
5
|
import { useIsSmallScreen } from "@envive-ai/react-hooks/hooks/IsSmallScreen";
|
|
6
6
|
import { useTrackComponentVisibleEvent } from "@envive-ai/react-hooks/hooks/TrackComponentVisibleEvent";
|
|
7
|
-
import {
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
|
|
9
9
|
//#region src/SuggestionButtonContainer/SuggestionButtonContainer.tsx
|
|
10
10
|
function ButtonContainer({ children }) {
|