@envive-ai/react-widgets 0.3.2 → 0.3.3
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/SearchResultsWidget.d.cts +2 -2
- package/dist/SearchResults/SearchResultsWidget.d.ts +2 -2
- package/dist/SearchZeroState/SearchZeroState.cjs +1 -1
- package/dist/SearchZeroState/SearchZeroState.js +1 -1
- package/dist/SearchZeroState/SearchZeroStateWidget.d.cts +2 -2
- package/dist/SearchZeroState/SearchZeroStateWidget.d.ts +2 -2
- package/dist/SearchZeroState/components/RecommendedProducts.cjs +1 -1
- package/dist/SearchZeroState/components/RecommendedProducts.js +1 -1
- package/dist/SuggestionBar/SuggestionBar.cjs +3 -3
- package/dist/SuggestionBar/SuggestionBar.d.ts +2 -2
- package/dist/SuggestionBar/SuggestionBar.js +4 -4
- package/dist/SuggestionButtonContainer/SuggestionButtonContainer.cjs +2 -2
- package/dist/SuggestionButtonContainer/SuggestionButtonContainer.js +2 -2
- package/package.json +1 -1
- package/src/SuggestionButtonContainer/SuggestionButtonContainer.tsx +1 -1
|
@@ -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,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 };
|
|
@@ -11,10 +11,10 @@ let react = require("react");
|
|
|
11
11
|
react = require_rolldown_runtime.__toESM(react);
|
|
12
12
|
let __envive_ai_react_hooks_hooks_Search = require("@envive-ai/react-hooks/hooks/Search");
|
|
13
13
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
14
|
-
let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
|
|
15
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");
|
|
@@ -9,10 +9,10 @@ import { RecommendedProducts } from "./components/RecommendedProducts.js";
|
|
|
9
9
|
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
10
10
|
import { useSearch } from "@envive-ai/react-hooks/hooks/Search";
|
|
11
11
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
-
import { MessageType, SpiffyWidgets } from "@envive-ai/react-hooks/application/models";
|
|
13
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,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,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime3 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_runtime3.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { SearchZeroStateWidget };
|
|
@@ -2,9 +2,9 @@ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
|
2
2
|
let classnames = require("classnames");
|
|
3
3
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
4
4
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
-
let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
|
|
6
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
1
|
import classNames from "classnames";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { ChatElementDisplayLocation } from "@envive-ai/react-hooks/application/models";
|
|
4
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";
|
|
@@ -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');
|
|
4
2
|
const require_index = require('../node_modules/react-indiana-drag-scroll/dist/index.cjs');
|
|
5
3
|
const require_v4 = require('../node_modules/uuid/dist-node/v4.cjs');
|
|
6
4
|
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
8
|
let jotai = require("jotai");
|
|
9
9
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
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");
|
|
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 __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.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 { SuggestionButtonContainer } from "../SuggestionButtonContainer/SuggestionButtonContainer.js";
|
|
2
|
-
import "../SuggestionButtonContainer/index.js";
|
|
3
1
|
import v4_default from "../node_modules/uuid/dist/v4.js";
|
|
4
2
|
import { SuggestionBarLocationForMetrics } from "./types.js";
|
|
3
|
+
import { SuggestionButtonContainer } from "../SuggestionButtonContainer/SuggestionButtonContainer.js";
|
|
4
|
+
import "../SuggestionButtonContainer/index.js";
|
|
5
5
|
import { useCallback, useRef } from "react";
|
|
6
6
|
import { useSetAtom } from "jotai";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
import { MessageRole, MessageType, SpiffyWidgets } from "@envive-ai/react-hooks/application/models";
|
|
9
|
+
import { useScrollContainer } from "react-indiana-drag-scroll";
|
|
10
|
+
import { PerfMetricsEvents, logPerfMetricAtom } from "@envive-ai/react-hooks/atoms/chat";
|
|
9
11
|
import { SUGGESTION_BAR_TESTID } from "@envive-ai/react-hooks/config";
|
|
10
12
|
import { useIsSmallScreen } from "@envive-ai/react-hooks/hooks/IsSmallScreen";
|
|
11
13
|
import { useTrackComponentVisibleEvent } from "@envive-ai/react-hooks/hooks/TrackComponentVisibleEvent";
|
|
12
|
-
import { useScrollContainer } from "react-indiana-drag-scroll";
|
|
13
|
-
import { PerfMetricsEvents, logPerfMetricAtom } from "@envive-ai/react-hooks/atoms/chat";
|
|
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 }) {
|
|
@@ -2,11 +2,11 @@ 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
4
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
-
let __envive_ai_react_toolkit_SuggestionButton = require("@envive-ai/react-toolkit/SuggestionButton");
|
|
6
5
|
let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
|
|
7
6
|
let __envive_ai_react_hooks_config = require("@envive-ai/react-hooks/config");
|
|
8
7
|
let __envive_ai_react_hooks_hooks_IsSmallScreen = require("@envive-ai/react-hooks/hooks/IsSmallScreen");
|
|
9
8
|
let __envive_ai_react_hooks_hooks_TrackComponentVisibleEvent = require("@envive-ai/react-hooks/hooks/TrackComponentVisibleEvent");
|
|
9
|
+
let __envive_ai_react_toolkit_SuggestionButton = require("@envive-ai/react-toolkit/SuggestionButton");
|
|
10
10
|
|
|
11
11
|
//#region src/SuggestionButtonContainer/SuggestionButtonContainer.tsx
|
|
12
12
|
function ButtonContainer({ children }) {
|
|
@@ -15,7 +15,7 @@ function ButtonContainer({ children }) {
|
|
|
15
15
|
children
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
-
const SuggestionButtonContainer = ({ buttonVariation, hoverButtonVariation, buttonTexts, boldFirstButton = false, twoRowsOnMobile = false, animationSpeed = "none", buttonBorderRadius = "lg", scrollContainerRef, onButtonClick }) => {
|
|
18
|
+
const SuggestionButtonContainer = ({ buttonVariation, hoverButtonVariation, buttonTexts = [], boldFirstButton = false, twoRowsOnMobile = false, animationSpeed = "none", buttonBorderRadius = "lg", scrollContainerRef, onButtonClick }) => {
|
|
19
19
|
const componentVisibleTriggerRef = (0, react.useRef)(null);
|
|
20
20
|
require_useHorizontalScrollAnimation.useHorizontalScrollAnimation({
|
|
21
21
|
scrollContainerRef,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useHorizontalScrollAnimation } from "../util/useHorizontalScrollAnimation.js";
|
|
2
2
|
import { useRef } from "react";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
import { SuggestionButton } from "@envive-ai/react-toolkit/SuggestionButton";
|
|
5
4
|
import { SpiffyWidgets } from "@envive-ai/react-hooks/application/models";
|
|
6
5
|
import { SUGGESTION_BAR_BUTTON_TESTID } from "@envive-ai/react-hooks/config";
|
|
7
6
|
import { useIsSmallScreen } from "@envive-ai/react-hooks/hooks/IsSmallScreen";
|
|
8
7
|
import { useTrackComponentVisibleEvent } from "@envive-ai/react-hooks/hooks/TrackComponentVisibleEvent";
|
|
8
|
+
import { SuggestionButton } from "@envive-ai/react-toolkit/SuggestionButton";
|
|
9
9
|
|
|
10
10
|
//#region src/SuggestionButtonContainer/SuggestionButtonContainer.tsx
|
|
11
11
|
function ButtonContainer({ children }) {
|
|
@@ -14,7 +14,7 @@ function ButtonContainer({ children }) {
|
|
|
14
14
|
children
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
-
const SuggestionButtonContainer = ({ buttonVariation, hoverButtonVariation, buttonTexts, boldFirstButton = false, twoRowsOnMobile = false, animationSpeed = "none", buttonBorderRadius = "lg", scrollContainerRef, onButtonClick }) => {
|
|
17
|
+
const SuggestionButtonContainer = ({ buttonVariation, hoverButtonVariation, buttonTexts = [], boldFirstButton = false, twoRowsOnMobile = false, animationSpeed = "none", buttonBorderRadius = "lg", scrollContainerRef, onButtonClick }) => {
|
|
18
18
|
const componentVisibleTriggerRef = useRef(null);
|
|
19
19
|
useHorizontalScrollAnimation({
|
|
20
20
|
scrollContainerRef,
|
package/package.json
CHANGED
|
@@ -25,7 +25,7 @@ function ButtonContainer({ children }: ButtonContainerProps) {
|
|
|
25
25
|
const SuggestionButtonContainer: React.FC<SuggestionButtonContainerProps> = ({
|
|
26
26
|
buttonVariation,
|
|
27
27
|
hoverButtonVariation,
|
|
28
|
-
buttonTexts,
|
|
28
|
+
buttonTexts = [],
|
|
29
29
|
boldFirstButton = false,
|
|
30
30
|
twoRowsOnMobile = false,
|
|
31
31
|
animationSpeed = 'none',
|