@envive-ai/react-widgets 0.1.2 → 0.3.0

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.
Files changed (104) hide show
  1. package/dist/SearchResults/SearchResults.cjs +82 -0
  2. package/dist/SearchResults/SearchResults.js +80 -0
  3. package/dist/SearchResults/SearchResultsWidget.cjs +34 -0
  4. package/dist/SearchResults/SearchResultsWidget.d.ts +6 -0
  5. package/dist/SearchResults/SearchResultsWidget.js +33 -0
  6. package/dist/SearchResults/index.cjs +2 -122
  7. package/dist/SearchResults/index.d.cts +2 -0
  8. package/dist/SearchResults/index.d.ts +2 -0
  9. package/dist/SearchResults/index.js +1 -119
  10. package/dist/SearchResults/withSearchResults.cjs +18 -0
  11. package/dist/SearchResults/withSearchResults.js +17 -0
  12. package/dist/SearchZeroState/SearchIcon.cjs +47 -0
  13. package/dist/SearchZeroState/SearchIcon.js +44 -0
  14. package/dist/SearchZeroState/SearchOverlay.cjs +42 -0
  15. package/dist/SearchZeroState/SearchOverlay.js +39 -0
  16. package/dist/SearchZeroState/SearchZeroState.cjs +169 -0
  17. package/dist/SearchZeroState/SearchZeroState.d.cts +7 -0
  18. package/dist/SearchZeroState/SearchZeroState.d.ts +7 -0
  19. package/dist/SearchZeroState/SearchZeroState.js +167 -0
  20. package/dist/SearchZeroState/SearchZeroStateWidget.cjs +23 -0
  21. package/dist/SearchZeroState/SearchZeroStateWidget.d.cts +15 -0
  22. package/dist/SearchZeroState/SearchZeroStateWidget.d.ts +15 -0
  23. package/dist/SearchZeroState/SearchZeroStateWidget.js +22 -0
  24. package/dist/SearchZeroState/components/RecommendedProducts.cjs +72 -0
  25. package/dist/SearchZeroState/components/RecommendedProducts.js +70 -0
  26. package/dist/SearchZeroState/index.cjs +4 -3070
  27. package/dist/SearchZeroState/index.d.cts +5 -0
  28. package/dist/SearchZeroState/index.d.ts +5 -0
  29. package/dist/SearchZeroState/index.js +2 -3065
  30. package/dist/SearchZeroState/overlay/overlayHostLocator.cjs +21 -0
  31. package/dist/SearchZeroState/overlay/overlayHostLocator.js +20 -0
  32. package/dist/SearchZeroState/types.d.cts +10 -0
  33. package/dist/SearchZeroState/types.d.ts +10 -0
  34. package/dist/SearchZeroState/zeroStateSearchVariants.cjs +21 -0
  35. package/dist/SearchZeroState/zeroStateSearchVariants.js +20 -0
  36. package/dist/SuggestionBar/SuggestionBar.cjs +74 -0
  37. package/dist/SuggestionBar/{index-DZU9kbWS.d.cts → SuggestionBar.d.cts} +5 -10
  38. package/dist/SuggestionBar/{index-DyXd4-b7.d.ts → SuggestionBar.d.ts} +5 -10
  39. package/dist/{SuggestionBar-BHAXhgcd.js → SuggestionBar/SuggestionBar.js} +6 -58
  40. package/dist/SuggestionBar/index.cjs +3 -3
  41. package/dist/SuggestionBar/index.d.cts +3 -0
  42. package/dist/SuggestionBar/index.d.ts +3 -0
  43. package/dist/SuggestionBar/index.js +2 -2
  44. package/dist/SuggestionBar/types.cjs +10 -0
  45. package/dist/SuggestionBar/types.d.cts +7 -0
  46. package/dist/SuggestionBar/types.d.ts +7 -0
  47. package/dist/SuggestionBar/types.js +9 -0
  48. package/dist/{SuggestionButtonContainer-Dm38gJiJ.cjs → SuggestionButtonContainer/SuggestionButtonContainer.cjs} +4 -102
  49. package/dist/SuggestionButtonContainer/SuggestionButtonContainer.d.cts +6 -0
  50. package/dist/SuggestionButtonContainer/SuggestionButtonContainer.d.ts +6 -0
  51. package/dist/{SuggestionButtonContainer-s2e9YGW_.js → SuggestionButtonContainer/SuggestionButtonContainer.js} +3 -96
  52. package/dist/SuggestionButtonContainer/index.cjs +1 -1
  53. package/dist/SuggestionButtonContainer/index.d.cts +3 -0
  54. package/dist/SuggestionButtonContainer/index.d.ts +3 -0
  55. package/dist/SuggestionButtonContainer/index.js +1 -1
  56. package/dist/SuggestionButtonContainer/{index-B_X537jw.d.cts → types.d.cts} +3 -6
  57. package/dist/SuggestionButtonContainer/{index-vwelzDzM.d.ts → types.d.ts} +3 -6
  58. package/dist/{chunk-DSlc6foC.cjs → _virtual/rolldown_runtime.cjs} +2 -12
  59. package/dist/hooks/dist/contexts/types.d.cts +52 -0
  60. package/dist/hooks/dist/types/test-types.d.cts +8 -0
  61. package/dist/{SuggestionBar-CK5aU2bb.cjs → node_modules/react-indiana-drag-scroll/dist/index.cjs} +6 -132
  62. package/dist/node_modules/uuid/dist/native.js +6 -0
  63. package/dist/node_modules/uuid/dist/rng.js +13 -0
  64. package/dist/node_modules/uuid/dist/stringify.js +9 -0
  65. package/dist/node_modules/uuid/dist/v4.js +27 -0
  66. package/dist/node_modules/uuid/dist-node/native.cjs +8 -0
  67. package/dist/node_modules/uuid/dist-node/rng.cjs +16 -0
  68. package/dist/node_modules/uuid/dist-node/stringify.cjs +10 -0
  69. package/dist/node_modules/uuid/dist-node/v4.cjs +27 -0
  70. package/dist/packages/hooks/dist/contexts/types.d.ts +52 -0
  71. package/dist/packages/hooks/dist/types/test-types.d.ts +8 -0
  72. package/dist/packages/icons/dist/AiSearchBold.cjs +38 -0
  73. package/dist/packages/icons/dist/AiSearchBold.js +38 -0
  74. package/dist/packages/icons/dist/AiSearchThin.cjs +35 -0
  75. package/dist/packages/icons/dist/AiSearchThin.js +35 -0
  76. package/dist/packages/icons/dist/IconCloseVariant.cjs +22 -0
  77. package/dist/packages/icons/dist/IconCloseVariant.js +22 -0
  78. package/dist/packages/icons/dist/Sparkles.cjs +43 -0
  79. package/dist/packages/icons/dist/Sparkles.js +43 -0
  80. package/dist/packages/icons/dist/_virtual/rolldown_runtime.cjs +29 -0
  81. package/dist/packages/icons/dist/_virtual/rolldown_runtime.js +27 -0
  82. package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs +696 -0
  83. package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.development.js +696 -0
  84. package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.production.min.cjs +43 -0
  85. package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +43 -0
  86. package/dist/packages/icons/dist/node_modules/react/cjs/react.development.cjs +1528 -0
  87. package/dist/packages/icons/dist/node_modules/react/cjs/react.development.js +1528 -0
  88. package/dist/packages/icons/dist/node_modules/react/cjs/react.production.min.cjs +329 -0
  89. package/dist/packages/icons/dist/node_modules/react/cjs/react.production.min.js +329 -0
  90. package/dist/packages/icons/dist/node_modules/react/index.cjs +13 -0
  91. package/dist/packages/icons/dist/node_modules/react/index.js +13 -0
  92. package/dist/packages/icons/dist/node_modules/react/jsx-runtime.cjs +13 -0
  93. package/dist/packages/icons/dist/node_modules/react/jsx-runtime.js +13 -0
  94. package/dist/util/useHorizontalScrollAnimation.cjs +88 -0
  95. package/dist/util/useHorizontalScrollAnimation.js +87 -0
  96. package/dist/util/useReducedMotionWithOverride.cjs +15 -0
  97. package/dist/util/useReducedMotionWithOverride.js +14 -0
  98. package/package.json +5 -5
  99. package/src/SearchZeroState/SearchZeroState.tsx +1 -1
  100. package/src/SuggestionBar/SuggestionBar.tsx +2 -2
  101. package/dist/SearchResults/index-DCTxvwmv.d.cts +0 -6
  102. package/dist/SearchZeroState/index-DSFtalZR.d.ts +0 -27
  103. package/dist/SearchZeroState/index-bEcxYOSF.d.cts +0 -27
  104. /package/dist/SearchResults/{index-CYPV3XE0.d.ts → SearchResultsWidget.d.cts} +0 -0
@@ -0,0 +1,13 @@
1
+ import { __commonJS } from "../../_virtual/rolldown_runtime.js";
2
+ import { require_react_jsx_runtime_production_min } from "./cjs/react-jsx-runtime.production.min.js";
3
+ import { require_react_jsx_runtime_development } from "./cjs/react-jsx-runtime.development.js";
4
+
5
+ //#region ../icons/dist/node_modules/react/jsx-runtime.js
6
+ var require_jsx_runtime = /* @__PURE__ */ __commonJS({ "../../node_modules/react/jsx-runtime.js": ((exports, module) => {
7
+ if (process.env.NODE_ENV === "production") module.exports = require_react_jsx_runtime_production_min();
8
+ else module.exports = require_react_jsx_runtime_development();
9
+ }) });
10
+ var jsx_runtime_default = require_jsx_runtime();
11
+
12
+ //#endregion
13
+ export { require_jsx_runtime };
@@ -0,0 +1,88 @@
1
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
+ const require_useReducedMotionWithOverride = require('./useReducedMotionWithOverride.cjs');
3
+ let react = require("react");
4
+
5
+ //#region src/util/useHorizontalScrollAnimation.ts
6
+ function useHorizontalScrollAnimation({ scrollContainerRef, animationSpeed = "standard" }) {
7
+ const reducedMotion = require_useReducedMotionWithOverride.useReducedMotionWithOverride();
8
+ const resumeTimeoutRef = (0, react.useRef)(null);
9
+ const scrollAnimationRef = (0, react.useRef)(null);
10
+ const pauseOnHover = true;
11
+ let PIXELS_PER_SECOND = 40;
12
+ switch (animationSpeed) {
13
+ case "standard":
14
+ PIXELS_PER_SECOND = 40;
15
+ break;
16
+ case "slow":
17
+ PIXELS_PER_SECOND = 25;
18
+ break;
19
+ case "none":
20
+ PIXELS_PER_SECOND = 0;
21
+ break;
22
+ default: PIXELS_PER_SECOND = 40;
23
+ }
24
+ const RESUME_DELAY_MS = 2e3;
25
+ const isAnimated = animationSpeed !== "none";
26
+ (0, react.useEffect)(() => {
27
+ if (!isAnimated || reducedMotion || !scrollContainerRef) return () => {};
28
+ const container = scrollContainerRef.current;
29
+ if (!container) return () => {};
30
+ if (container.scrollWidth <= container.clientWidth) return () => {};
31
+ let isPaused = false;
32
+ let lastTimestamp = null;
33
+ let accumulatedScroll = 0;
34
+ const step = (timestamp) => {
35
+ if (lastTimestamp === null) lastTimestamp = timestamp;
36
+ if (!isPaused) {
37
+ const delta = timestamp - lastTimestamp;
38
+ lastTimestamp = timestamp;
39
+ accumulatedScroll += PIXELS_PER_SECOND * (delta / 1e3);
40
+ const pixelsToScroll = Math.floor(accumulatedScroll);
41
+ if (pixelsToScroll > 0) {
42
+ container.scrollLeft += pixelsToScroll;
43
+ accumulatedScroll -= pixelsToScroll;
44
+ if (Math.ceil(container.scrollLeft) >= container.scrollWidth - container.clientWidth) {
45
+ container.scrollLeft = 0;
46
+ accumulatedScroll = 0;
47
+ }
48
+ }
49
+ }
50
+ scrollAnimationRef.current = requestAnimationFrame(step);
51
+ };
52
+ scrollAnimationRef.current = requestAnimationFrame(step);
53
+ const pauseAnimation = () => {
54
+ isPaused = true;
55
+ if (resumeTimeoutRef.current) {
56
+ clearTimeout(resumeTimeoutRef.current);
57
+ resumeTimeoutRef.current = null;
58
+ }
59
+ };
60
+ const scheduleResumeAnimation = () => {
61
+ resumeTimeoutRef.current = setTimeout(() => {
62
+ isPaused = false;
63
+ lastTimestamp = null;
64
+ }, RESUME_DELAY_MS);
65
+ };
66
+ container.addEventListener("mouseenter", pauseAnimation);
67
+ container.addEventListener("mouseleave", scheduleResumeAnimation);
68
+ container.addEventListener("touchstart", pauseAnimation);
69
+ container.addEventListener("touchend", scheduleResumeAnimation);
70
+ return function cleanup() {
71
+ if (scrollAnimationRef.current) cancelAnimationFrame(scrollAnimationRef.current);
72
+ container.removeEventListener("mouseenter", pauseAnimation);
73
+ container.removeEventListener("mouseleave", scheduleResumeAnimation);
74
+ container.removeEventListener("touchstart", pauseAnimation);
75
+ container.removeEventListener("touchend", scheduleResumeAnimation);
76
+ if (resumeTimeoutRef.current) clearTimeout(resumeTimeoutRef.current);
77
+ };
78
+ }, [
79
+ isAnimated,
80
+ reducedMotion,
81
+ PIXELS_PER_SECOND,
82
+ pauseOnHover,
83
+ scrollContainerRef
84
+ ]);
85
+ }
86
+
87
+ //#endregion
88
+ exports.useHorizontalScrollAnimation = useHorizontalScrollAnimation;
@@ -0,0 +1,87 @@
1
+ import { useReducedMotionWithOverride } from "./useReducedMotionWithOverride.js";
2
+ import { useEffect, useRef } from "react";
3
+
4
+ //#region src/util/useHorizontalScrollAnimation.ts
5
+ function useHorizontalScrollAnimation({ scrollContainerRef, animationSpeed = "standard" }) {
6
+ const reducedMotion = useReducedMotionWithOverride();
7
+ const resumeTimeoutRef = useRef(null);
8
+ const scrollAnimationRef = useRef(null);
9
+ const pauseOnHover = true;
10
+ let PIXELS_PER_SECOND = 40;
11
+ switch (animationSpeed) {
12
+ case "standard":
13
+ PIXELS_PER_SECOND = 40;
14
+ break;
15
+ case "slow":
16
+ PIXELS_PER_SECOND = 25;
17
+ break;
18
+ case "none":
19
+ PIXELS_PER_SECOND = 0;
20
+ break;
21
+ default: PIXELS_PER_SECOND = 40;
22
+ }
23
+ const RESUME_DELAY_MS = 2e3;
24
+ const isAnimated = animationSpeed !== "none";
25
+ useEffect(() => {
26
+ if (!isAnimated || reducedMotion || !scrollContainerRef) return () => {};
27
+ const container = scrollContainerRef.current;
28
+ if (!container) return () => {};
29
+ if (container.scrollWidth <= container.clientWidth) return () => {};
30
+ let isPaused = false;
31
+ let lastTimestamp = null;
32
+ let accumulatedScroll = 0;
33
+ const step = (timestamp) => {
34
+ if (lastTimestamp === null) lastTimestamp = timestamp;
35
+ if (!isPaused) {
36
+ const delta = timestamp - lastTimestamp;
37
+ lastTimestamp = timestamp;
38
+ accumulatedScroll += PIXELS_PER_SECOND * (delta / 1e3);
39
+ const pixelsToScroll = Math.floor(accumulatedScroll);
40
+ if (pixelsToScroll > 0) {
41
+ container.scrollLeft += pixelsToScroll;
42
+ accumulatedScroll -= pixelsToScroll;
43
+ if (Math.ceil(container.scrollLeft) >= container.scrollWidth - container.clientWidth) {
44
+ container.scrollLeft = 0;
45
+ accumulatedScroll = 0;
46
+ }
47
+ }
48
+ }
49
+ scrollAnimationRef.current = requestAnimationFrame(step);
50
+ };
51
+ scrollAnimationRef.current = requestAnimationFrame(step);
52
+ const pauseAnimation = () => {
53
+ isPaused = true;
54
+ if (resumeTimeoutRef.current) {
55
+ clearTimeout(resumeTimeoutRef.current);
56
+ resumeTimeoutRef.current = null;
57
+ }
58
+ };
59
+ const scheduleResumeAnimation = () => {
60
+ resumeTimeoutRef.current = setTimeout(() => {
61
+ isPaused = false;
62
+ lastTimestamp = null;
63
+ }, RESUME_DELAY_MS);
64
+ };
65
+ container.addEventListener("mouseenter", pauseAnimation);
66
+ container.addEventListener("mouseleave", scheduleResumeAnimation);
67
+ container.addEventListener("touchstart", pauseAnimation);
68
+ container.addEventListener("touchend", scheduleResumeAnimation);
69
+ return function cleanup() {
70
+ if (scrollAnimationRef.current) cancelAnimationFrame(scrollAnimationRef.current);
71
+ container.removeEventListener("mouseenter", pauseAnimation);
72
+ container.removeEventListener("mouseleave", scheduleResumeAnimation);
73
+ container.removeEventListener("touchstart", pauseAnimation);
74
+ container.removeEventListener("touchend", scheduleResumeAnimation);
75
+ if (resumeTimeoutRef.current) clearTimeout(resumeTimeoutRef.current);
76
+ };
77
+ }, [
78
+ isAnimated,
79
+ reducedMotion,
80
+ PIXELS_PER_SECOND,
81
+ pauseOnHover,
82
+ scrollContainerRef
83
+ ]);
84
+ }
85
+
86
+ //#endregion
87
+ export { useHorizontalScrollAnimation };
@@ -0,0 +1,15 @@
1
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
+ let react = require("react");
3
+ let framer_motion = require("framer-motion");
4
+
5
+ //#region src/util/useReducedMotionWithOverride.ts
6
+ const useReducedMotionWithOverride = () => {
7
+ const reducedMotionConfig = (0, framer_motion.useReducedMotionConfig)();
8
+ return (0, react.useMemo)(() => {
9
+ if (window?._spiffy?.reducedMotionOverride) return window?._spiffy?.reducedMotionOverride;
10
+ return reducedMotionConfig;
11
+ }, [reducedMotionConfig]);
12
+ };
13
+
14
+ //#endregion
15
+ exports.useReducedMotionWithOverride = useReducedMotionWithOverride;
@@ -0,0 +1,14 @@
1
+ import { useMemo } from "react";
2
+ import { useReducedMotionConfig } from "framer-motion";
3
+
4
+ //#region src/util/useReducedMotionWithOverride.ts
5
+ const useReducedMotionWithOverride = () => {
6
+ const reducedMotionConfig = useReducedMotionConfig();
7
+ return useMemo(() => {
8
+ if (window?._spiffy?.reducedMotionOverride) return window?._spiffy?.reducedMotionOverride;
9
+ return reducedMotionConfig;
10
+ }, [reducedMotionConfig]);
11
+ };
12
+
13
+ //#endregion
14
+ export { useReducedMotionWithOverride };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@envive-ai/react-widgets",
3
- "version": "0.1.2",
3
+ "version": "0.3.0",
4
4
  "description": "React widget library for Envive services.",
5
5
  "keywords": [
6
6
  "react",
@@ -25,21 +25,21 @@
25
25
  "build:watch": "tsdown --watch",
26
26
  "dev": "npm run get-merchants && storybook dev -p 6006",
27
27
  "prepublish": "npm run build",
28
- "build-storybook": "npm run get-merchants && storybook build",
29
- "storybook": "npm run get-merchants && storybook dev -p 6006",
28
+ "storybook": "tsx ./.storybook/getMerchants.ts && storybook dev -p 6006",
29
+ "storybook:build": "npm run get-merchants && storybook build",
30
30
  "storybook:get-merchants": "tsx ./.storybook/getMerchants.ts",
31
31
  "typecheck": "tsc",
32
32
  "test": "vitest"
33
33
  },
34
34
  "dependencies": {
35
- "@envive-ai/react-hooks": "0.2.9",
36
- "@envive-ai/react-toolkit": "*",
37
35
  "@tailwindcss/typography": "^0.5.15",
38
36
  "classnames": "^2.5.1",
39
37
  "framer-motion": "^12.23.24",
40
38
  "jotai": "^2.15.1"
41
39
  },
42
40
  "peerDependencies": {
41
+ "@envive-ai/react-hooks": "*",
42
+ "@envive-ai/react-toolkit": "*",
43
43
  "react": ">=18.3.1",
44
44
  "react-dom": ">=18.3.1"
45
45
  },
@@ -202,7 +202,7 @@ export const SearchZeroState: React.FC<SearchZeroStateProps> = ({
202
202
  onKeyDown={onKeyDown}
203
203
  onAutocompleteSelect={onAutocompleteSelect}
204
204
  onSearchInputChange={searchChange}
205
- onSearchSubmit={submitSearchString}
205
+ onSearchSubmit={() => submitSearchString}
206
206
  onSearchInputFocus={onSearchInputFocus}
207
207
  onSearchInputBlur={onSearchInputBlur}
208
208
  />
@@ -8,7 +8,6 @@ import { PerfMetricsEvents, logPerfMetricAtom } from '@envive-ai/react-hooks/ato
8
8
  import { SUGGESTION_BAR_TESTID } from '@envive-ai/react-hooks/config';
9
9
  import { useIsSmallScreen } from '@envive-ai/react-hooks/hooks/IsSmallScreen';
10
10
  import { useTrackComponentVisibleEvent } from '@envive-ai/react-hooks/hooks/TrackComponentVisibleEvent';
11
- import { TestProps } from '@envive-ai/react-hooks/types';
12
11
  import { Message } from 'postcss';
13
12
 
14
13
  import { SuggestionButtonVariant } from '@envive-ai/react-hooks/contexts/types';
@@ -16,7 +15,7 @@ import { SuggestionBarLocationForMetrics } from './types';
16
15
  import { SuggestionButtonContainer } from '../SuggestionButtonContainer';
17
16
 
18
17
  // SuggestionBarV2 Props
19
- interface SuggestionBarProps extends TestProps {
18
+ interface SuggestionBarProps {
20
19
  id: string;
21
20
  locationForMetrics: SuggestionBarLocationForMetrics;
22
21
  buttonTexts: string[];
@@ -27,6 +26,7 @@ interface SuggestionBarProps extends TestProps {
27
26
  twoRowsOnMobile?: boolean | undefined;
28
27
  animationSpeed?: 'standard' | 'slow' | 'none';
29
28
  buttonBorderRadius?: 'sm' | 'md' | 'lg';
29
+ dataTestId?: string;
30
30
  }
31
31
 
32
32
  // SuggestionBar functional component
@@ -1,6 +0,0 @@
1
- import * as react_jsx_runtime1 from "react/jsx-runtime";
2
-
3
- //#region src/SearchResults/SearchResultsWidget.d.ts
4
- declare const SearchResultsWidget: () => react_jsx_runtime1.JSX.Element;
5
- //#endregion
6
- export { SearchResultsWidget };
@@ -1,27 +0,0 @@
1
- import React$1 from "react";
2
- import * as react_jsx_runtime1 from "react/jsx-runtime";
3
- import { SearchEntryPointWidgetConfig, SearchInputVariant } from "@envive-ai/react-hooks/contexts/types";
4
-
5
- //#region src/SearchZeroState/types.d.ts
6
- interface SearchZeroStateProps {
7
- widgetConfig: SearchEntryPointWidgetConfig;
8
- initialIsOpen?: boolean;
9
- entryPointRef?: React.Ref<HTMLButtonElement>;
10
- }
11
- //#endregion
12
- //#region src/SearchZeroState/SearchZeroState.d.ts
13
- declare const SearchZeroState: React$1.FC<SearchZeroStateProps>;
14
- //#endregion
15
- //#region src/SearchZeroState/SearchZeroStateWidget.d.ts
16
- type SearchZeroStateWidgetProps = {
17
- initialIsOpen: boolean;
18
- widgetConfigId?: string;
19
- entryPointRef: React.Ref<HTMLButtonElement>;
20
- };
21
- declare const SearchZeroStateWidget: ({
22
- initialIsOpen,
23
- widgetConfigId,
24
- entryPointRef
25
- }: SearchZeroStateWidgetProps) => react_jsx_runtime1.JSX.Element;
26
- //#endregion
27
- export { type SearchEntryPointWidgetConfig, type SearchInputVariant, SearchZeroState, SearchZeroStateProps, SearchZeroStateWidget };
@@ -1,27 +0,0 @@
1
- import * as react_jsx_runtime0 from "react/jsx-runtime";
2
- import { SearchEntryPointWidgetConfig, SearchInputVariant } from "@envive-ai/react-hooks/contexts/types";
3
- import React$1 from "react";
4
-
5
- //#region src/SearchZeroState/types.d.ts
6
- interface SearchZeroStateProps {
7
- widgetConfig: SearchEntryPointWidgetConfig;
8
- initialIsOpen?: boolean;
9
- entryPointRef?: React.Ref<HTMLButtonElement>;
10
- }
11
- //#endregion
12
- //#region src/SearchZeroState/SearchZeroState.d.ts
13
- declare const SearchZeroState: React$1.FC<SearchZeroStateProps>;
14
- //#endregion
15
- //#region src/SearchZeroState/SearchZeroStateWidget.d.ts
16
- type SearchZeroStateWidgetProps = {
17
- initialIsOpen: boolean;
18
- widgetConfigId?: string;
19
- entryPointRef: React.Ref<HTMLButtonElement>;
20
- };
21
- declare const SearchZeroStateWidget: ({
22
- initialIsOpen,
23
- widgetConfigId,
24
- entryPointRef
25
- }: SearchZeroStateWidgetProps) => react_jsx_runtime0.JSX.Element;
26
- //#endregion
27
- export { type SearchEntryPointWidgetConfig, type SearchInputVariant, SearchZeroState, SearchZeroStateProps, SearchZeroStateWidget };