@envive-ai/react-toolkit 0.3.18 → 0.3.20
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/components/Accordion/Accordion.d.cts +2 -2
- package/dist/components/Accordion/Accordion.d.ts +2 -2
- package/dist/components/AnimatedChevron/AnimatedChevron.d.cts +2 -2
- package/dist/components/AnimatedChevron/AnimatedChevron.d.ts +2 -2
- package/dist/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.d.ts +2 -2
- package/dist/components/ButtonBase/ButtonBase.d.cts +2 -2
- package/dist/components/ButtonBase/ButtonBase.d.ts +2 -2
- package/dist/components/DynamicFiltersScrollbar/DynamicFiltersScrollbar.d.ts +2 -2
- package/dist/components/FilterScrollbar/AppliedFiltersScrollbar.d.cts +2 -2
- package/dist/components/FilterScrollbar/AppliedFiltersScrollbar.d.ts +2 -2
- package/dist/components/FilterScrollbar/DynamicFiltersScrollbar.d.cts +2 -2
- package/dist/components/FilterScrollbar/DynamicFiltersScrollbar.d.ts +2 -2
- package/dist/components/ImageWithFallback/ImageWithFallback.d.cts +2 -2
- package/dist/components/ImageWithFallback/ImageWithFallback.d.ts +2 -2
- package/dist/components/ModalSheet/ModalSheet.d.cts +2 -2
- package/dist/components/ModalSheet/ModalSheet.d.ts +2 -2
- package/dist/components/ProductCard/ProductCard.cjs +2 -1
- package/dist/components/ProductCard/ProductCard.d.cts +4 -4
- package/dist/components/ProductCard/ProductCard.d.ts +4 -4
- package/dist/components/ProductCard/ProductCard.js +2 -1
- package/dist/components/ProductGrid/ProductGrid.d.cts +2 -2
- package/dist/components/ProductGrid/ProductGrid.d.ts +2 -2
- package/dist/components/RadioButton/RadioButton.d.cts +2 -2
- package/dist/components/RadioButton/RadioButton.d.ts +2 -2
- package/dist/components/RadioButtonGroup/RadioButtonGroup.d.cts +2 -2
- package/dist/components/RadioButtonGroup/RadioButtonGroup.d.ts +2 -2
- package/dist/components/SearchAutocomplete/SearchAutocomplete.d.cts +2 -2
- package/dist/components/SearchAutocomplete/SearchAutocomplete.d.ts +2 -2
- package/dist/components/SearchFilter/SearchFilter.cjs +2 -2
- package/dist/components/SearchFilter/SearchFilter.d.cts +2 -2
- package/dist/components/SearchFilter/SearchFilter.d.ts +2 -2
- package/dist/components/SearchFilter/SearchFilter.js +2 -2
- package/dist/components/SearchFilter/SearchFilterFooter.d.cts +2 -2
- package/dist/components/SearchFilter/SearchFilterFooter.d.ts +2 -2
- package/dist/components/SearchFilter/SearchFilterHeader.d.cts +2 -2
- package/dist/components/SearchFilter/SearchFilterHeader.d.ts +2 -2
- package/dist/components/SearchFilter/SearchFilterItem.d.cts +2 -2
- package/dist/components/SearchFilter/SearchFilterItem.d.ts +2 -2
- package/dist/components/SearchInputForm/SearchInputForm.d.cts +2 -2
- package/dist/components/SearchInputForm/SearchInputForm.d.ts +2 -2
- package/dist/components/SearchResultsFilterButton/SearchResultsFilterButton.d.cts +2 -2
- package/dist/components/SearchResultsFilterButton/SearchResultsFilterButton.d.ts +2 -2
- package/dist/components/SearchResultsFilterModal/SearchResultsFilterModal.d.cts +2 -2
- package/dist/components/SearchResultsFilterModal/SearchResultsFilterModal.d.ts +2 -2
- package/dist/components/SearchResultsFilterSidebar/SearchResultsFilter.d.cts +2 -2
- package/dist/components/SearchResultsFilterSidebar/SearchResultsFilter.d.ts +2 -2
- package/dist/components/SearchResultsStates/NoSearchResultsFound.d.cts +2 -2
- package/dist/components/SearchResultsStates/NoSearchResultsFound.d.ts +2 -2
- package/dist/components/SearchResultsStates/SearchResultsGrid.d.cts +2 -2
- package/dist/components/SearchResultsStates/SearchResultsGrid.d.ts +2 -2
- package/dist/components/SearchResultsStates/SearchResultsLoadingGrid.d.cts +2 -2
- package/dist/components/SearchResultsStates/SearchResultsLoadingGrid.d.ts +2 -2
- package/dist/components/SearchResultsToolbar/SearchResultsToolbar.d.cts +2 -2
- package/dist/components/SearchResultsToolbar/SearchResultsToolbar.d.ts +2 -2
- package/dist/components/SparkleAnimation/SparkleAnimation.d.cts +2 -2
- package/dist/components/SparkleAnimation/SparkleAnimation.d.ts +2 -2
- package/dist/components/Spinner/Spinner.d.cts +2 -2
- package/dist/components/Spinner/Spinner.d.ts +2 -2
- package/dist/components/SuggestionButton/SuggestionButton.d.cts +2 -2
- package/dist/components/SuggestionButton/SuggestionButton.d.ts +2 -2
- package/dist/components/ToggleButton/ToggleButton.d.cts +2 -2
- package/dist/components/ToggleButton/ToggleButton.d.ts +2 -2
- package/dist/logging/logger.cjs +15 -9
- package/dist/logging/logger.js +15 -9
- package/package.json +1 -1
- package/src/components/ProductCard/ProductCard.tsx +3 -1
- package/src/logging/logger.ts +33 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime23 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/Accordion/Accordion.d.ts
|
|
4
4
|
interface AccordionProps {
|
|
@@ -8,6 +8,6 @@ interface AccordionProps {
|
|
|
8
8
|
declare const Accordion: ({
|
|
9
9
|
title,
|
|
10
10
|
content
|
|
11
|
-
}: AccordionProps) =>
|
|
11
|
+
}: AccordionProps) => react_jsx_runtime23.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { Accordion };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime17 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/Accordion/Accordion.d.ts
|
|
4
4
|
interface AccordionProps {
|
|
@@ -8,6 +8,6 @@ interface AccordionProps {
|
|
|
8
8
|
declare const Accordion: ({
|
|
9
9
|
title,
|
|
10
10
|
content
|
|
11
|
-
}: AccordionProps) =>
|
|
11
|
+
}: AccordionProps) => react_jsx_runtime17.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { Accordion };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime26 from "react/jsx-runtime";
|
|
2
2
|
import { MotionValue } from "framer-motion";
|
|
3
3
|
|
|
4
4
|
//#region src/components/AnimatedChevron/AnimatedChevron.d.ts
|
|
@@ -9,6 +9,6 @@ interface AnimatedChevronProps {
|
|
|
9
9
|
declare const AnimatedChevron: ({
|
|
10
10
|
animationKey,
|
|
11
11
|
chevronColor
|
|
12
|
-
}: AnimatedChevronProps) =>
|
|
12
|
+
}: AnimatedChevronProps) => react_jsx_runtime26.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { AnimatedChevron };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MotionValue } from "framer-motion";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime29 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/AnimatedChevron/AnimatedChevron.d.ts
|
|
5
5
|
interface AnimatedChevronProps {
|
|
@@ -9,6 +9,6 @@ interface AnimatedChevronProps {
|
|
|
9
9
|
declare const AnimatedChevron: ({
|
|
10
10
|
animationKey,
|
|
11
11
|
chevronColor
|
|
12
|
-
}: AnimatedChevronProps) =>
|
|
12
|
+
}: AnimatedChevronProps) => react_jsx_runtime29.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { AnimatedChevron };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
2
2
|
import { SelectedFilterOption } from "@envive-ai/react-hooks/atoms/search";
|
|
3
3
|
|
|
4
4
|
//#region src/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.d.ts
|
|
@@ -17,6 +17,6 @@ declare const AppliedFiltersScrollbar: ({
|
|
|
17
17
|
filterHoverClasses,
|
|
18
18
|
appliedFilterBackgroundClasses,
|
|
19
19
|
onRemoveFilter
|
|
20
|
-
}: AppliedFiltersScrollbarProps) =>
|
|
20
|
+
}: AppliedFiltersScrollbarProps) => react_jsx_runtime16.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { AppliedFiltersScrollbar };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonBaseProps } from "./types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime25 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ButtonBase/ButtonBase.d.ts
|
|
5
5
|
declare const ButtonBase: ({
|
|
@@ -13,6 +13,6 @@ declare const ButtonBase: ({
|
|
|
13
13
|
dataTestId,
|
|
14
14
|
onClick,
|
|
15
15
|
disablePadding
|
|
16
|
-
}: ButtonBaseProps) =>
|
|
16
|
+
}: ButtonBaseProps) => react_jsx_runtime25.JSX.Element;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { ButtonBase };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonBaseProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime22 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ButtonBase/ButtonBase.d.ts
|
|
5
5
|
declare const ButtonBase: ({
|
|
@@ -13,6 +13,6 @@ declare const ButtonBase: ({
|
|
|
13
13
|
dataTestId,
|
|
14
14
|
onClick,
|
|
15
15
|
disablePadding
|
|
16
|
-
}: ButtonBaseProps) =>
|
|
16
|
+
}: ButtonBaseProps) => react_jsx_runtime22.JSX.Element;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { ButtonBase };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/DynamicFiltersScrollbar/DynamicFiltersScrollbar.d.ts
|
|
4
4
|
interface DynamicFiltersScrollbarProps {
|
|
@@ -23,6 +23,6 @@ declare const DynamicFiltersScrollbar: ({
|
|
|
23
23
|
filterDefaultClasses,
|
|
24
24
|
filterHoverClasses,
|
|
25
25
|
onToggleDynamicFilter
|
|
26
|
-
}: DynamicFiltersScrollbarProps) =>
|
|
26
|
+
}: DynamicFiltersScrollbarProps) => react_jsx_runtime19.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { DynamicFiltersScrollbar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
2
2
|
import { SelectedFilterOption } from "@envive-ai/react-hooks/atoms/search";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FilterScrollbar/AppliedFiltersScrollbar.d.ts
|
|
@@ -17,6 +17,6 @@ declare const AppliedFiltersScrollbar: ({
|
|
|
17
17
|
filterHoverClasses,
|
|
18
18
|
appliedFilterBackgroundClasses,
|
|
19
19
|
onRemoveFilter
|
|
20
|
-
}: AppliedFiltersScrollbarProps) =>
|
|
20
|
+
}: AppliedFiltersScrollbarProps) => react_jsx_runtime15.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { AppliedFiltersScrollbar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime28 from "react/jsx-runtime";
|
|
2
2
|
import { SelectedFilterOption } from "@envive-ai/react-hooks/atoms/search";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FilterScrollbar/AppliedFiltersScrollbar.d.ts
|
|
@@ -17,6 +17,6 @@ declare const AppliedFiltersScrollbar: ({
|
|
|
17
17
|
filterHoverClasses,
|
|
18
18
|
appliedFilterBackgroundClasses,
|
|
19
19
|
onRemoveFilter
|
|
20
|
-
}: AppliedFiltersScrollbarProps) =>
|
|
20
|
+
}: AppliedFiltersScrollbarProps) => react_jsx_runtime28.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { AppliedFiltersScrollbar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/FilterScrollbar/DynamicFiltersScrollbar.d.ts
|
|
4
4
|
interface DynamicFiltersScrollbarProps {
|
|
@@ -23,6 +23,6 @@ declare const DynamicFiltersScrollbar: ({
|
|
|
23
23
|
filterDefaultClasses,
|
|
24
24
|
filterHoverClasses,
|
|
25
25
|
onToggleDynamicFilter
|
|
26
|
-
}: DynamicFiltersScrollbarProps) =>
|
|
26
|
+
}: DynamicFiltersScrollbarProps) => react_jsx_runtime14.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { DynamicFiltersScrollbar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime27 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/FilterScrollbar/DynamicFiltersScrollbar.d.ts
|
|
4
4
|
interface DynamicFiltersScrollbarProps {
|
|
@@ -23,6 +23,6 @@ declare const DynamicFiltersScrollbar: ({
|
|
|
23
23
|
filterDefaultClasses,
|
|
24
24
|
filterHoverClasses,
|
|
25
25
|
onToggleDynamicFilter
|
|
26
|
-
}: DynamicFiltersScrollbarProps) =>
|
|
26
|
+
}: DynamicFiltersScrollbarProps) => react_jsx_runtime27.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { DynamicFiltersScrollbar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ImageWithFallback/ImageWithFallback.d.ts
|
|
@@ -21,6 +21,6 @@ declare const ImageWithFallback: ({
|
|
|
21
21
|
imageClassnames,
|
|
22
22
|
onLoad,
|
|
23
23
|
onError
|
|
24
|
-
}: ImageWithFallbackProps) =>
|
|
24
|
+
}: ImageWithFallbackProps) => react_jsx_runtime12.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { ImageWithFallback, ImageWithFallbackProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime30 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ImageWithFallback/ImageWithFallback.d.ts
|
|
5
5
|
interface ImageWithFallbackProps {
|
|
@@ -21,6 +21,6 @@ declare const ImageWithFallback: ({
|
|
|
21
21
|
imageClassnames,
|
|
22
22
|
onLoad,
|
|
23
23
|
onError
|
|
24
|
-
}: ImageWithFallbackProps) =>
|
|
24
|
+
}: ImageWithFallbackProps) => react_jsx_runtime30.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { ImageWithFallback, ImageWithFallbackProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ModalSheetProps } from "./types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ModalSheet/ModalSheet.d.ts
|
|
5
5
|
declare const ModalSheet: ({
|
|
@@ -10,6 +10,6 @@ declare const ModalSheet: ({
|
|
|
10
10
|
desktopWidth,
|
|
11
11
|
headerProps,
|
|
12
12
|
footerProps
|
|
13
|
-
}: ModalSheetProps) =>
|
|
13
|
+
}: ModalSheetProps) => react_jsx_runtime16.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { ModalSheet };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ModalSheetProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime26 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ModalSheet/ModalSheet.d.ts
|
|
5
5
|
declare const ModalSheet: ({
|
|
@@ -10,6 +10,6 @@ declare const ModalSheet: ({
|
|
|
10
10
|
desktopWidth,
|
|
11
11
|
headerProps,
|
|
12
12
|
footerProps
|
|
13
|
-
}: ModalSheetProps) =>
|
|
13
|
+
}: ModalSheetProps) => react_jsx_runtime26.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { ModalSheet };
|
|
@@ -16,6 +16,7 @@ let __envive_ai_react_hooks_hooks_ImageResolver = require("@envive-ai/react-hook
|
|
|
16
16
|
let __envive_ai_react_hooks_config = require("@envive-ai/react-hooks/config");
|
|
17
17
|
|
|
18
18
|
//#region src/components/ProductCard/ProductCard.tsx
|
|
19
|
+
const logger = new require_logger.default("ProductCard");
|
|
19
20
|
const formatReviews = (stars) => String(Number(stars).toLocaleString("en-US", {
|
|
20
21
|
minimumFractionDigits: 1,
|
|
21
22
|
maximumFractionDigits: 1
|
|
@@ -67,7 +68,7 @@ const ProductCard = ({ productCardConfig, merchantShortName, imageUrl, title, ur
|
|
|
67
68
|
const pricePrefix = productCardConfig?.pricePrefix;
|
|
68
69
|
const handleClick = () => onClick();
|
|
69
70
|
if (productCardConfig == null) {
|
|
70
|
-
|
|
71
|
+
logger.logError("[ProductCard] productCardConfig is null", void 0, { merchant: merchantShortName });
|
|
71
72
|
return null;
|
|
72
73
|
}
|
|
73
74
|
const layoutClasses = require_productCardVariants.productCardLayoutVariantClasses[finalLayoutVariant];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProductCardConfig, ProductCardHoverVariant, ProductCardLayoutVariant, ProductCardVariant } from "./types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ProductCard/ProductCard.d.ts
|
|
5
5
|
interface RatingSummaryProps {
|
|
@@ -11,7 +11,7 @@ declare const RatingSummary: ({
|
|
|
11
11
|
stars,
|
|
12
12
|
reviewCount,
|
|
13
13
|
className
|
|
14
|
-
}: RatingSummaryProps) =>
|
|
14
|
+
}: RatingSummaryProps) => react_jsx_runtime20.JSX.Element;
|
|
15
15
|
interface PriceSectionProps {
|
|
16
16
|
originalPrice?: string;
|
|
17
17
|
salePrice?: string;
|
|
@@ -21,7 +21,7 @@ declare const PriceSection: ({
|
|
|
21
21
|
originalPrice,
|
|
22
22
|
salePrice,
|
|
23
23
|
pricePrefix
|
|
24
|
-
}: PriceSectionProps) =>
|
|
24
|
+
}: PriceSectionProps) => react_jsx_runtime20.JSX.Element;
|
|
25
25
|
interface ProductCardProps {
|
|
26
26
|
productCardConfig?: ProductCardConfig;
|
|
27
27
|
merchantShortName: string;
|
|
@@ -59,6 +59,6 @@ declare const ProductCard: ({
|
|
|
59
59
|
aspectRatio,
|
|
60
60
|
growWithContainer,
|
|
61
61
|
onClick
|
|
62
|
-
}: ProductCardProps) =>
|
|
62
|
+
}: ProductCardProps) => react_jsx_runtime20.JSX.Element;
|
|
63
63
|
//#endregion
|
|
64
64
|
export { PriceSection, ProductCard, RatingSummary, RatingSummaryProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProductCardConfig, ProductCardHoverVariant, ProductCardLayoutVariant, ProductCardVariant } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime23 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ProductCard/ProductCard.d.ts
|
|
5
5
|
interface RatingSummaryProps {
|
|
@@ -11,7 +11,7 @@ declare const RatingSummary: ({
|
|
|
11
11
|
stars,
|
|
12
12
|
reviewCount,
|
|
13
13
|
className
|
|
14
|
-
}: RatingSummaryProps) =>
|
|
14
|
+
}: RatingSummaryProps) => react_jsx_runtime23.JSX.Element;
|
|
15
15
|
interface PriceSectionProps {
|
|
16
16
|
originalPrice?: string;
|
|
17
17
|
salePrice?: string;
|
|
@@ -21,7 +21,7 @@ declare const PriceSection: ({
|
|
|
21
21
|
originalPrice,
|
|
22
22
|
salePrice,
|
|
23
23
|
pricePrefix
|
|
24
|
-
}: PriceSectionProps) =>
|
|
24
|
+
}: PriceSectionProps) => react_jsx_runtime23.JSX.Element;
|
|
25
25
|
interface ProductCardProps {
|
|
26
26
|
productCardConfig?: ProductCardConfig;
|
|
27
27
|
merchantShortName: string;
|
|
@@ -59,6 +59,6 @@ declare const ProductCard: ({
|
|
|
59
59
|
aspectRatio,
|
|
60
60
|
growWithContainer,
|
|
61
61
|
onClick
|
|
62
|
-
}: ProductCardProps) =>
|
|
62
|
+
}: ProductCardProps) => react_jsx_runtime23.JSX.Element;
|
|
63
63
|
//#endregion
|
|
64
64
|
export { PriceSection, ProductCard, RatingSummary, RatingSummaryProps };
|
|
@@ -14,6 +14,7 @@ import { useImageResolver } from "@envive-ai/react-hooks/hooks/ImageResolver";
|
|
|
14
14
|
import { PRODUCT_CARD_TESTID } from "@envive-ai/react-hooks/config";
|
|
15
15
|
|
|
16
16
|
//#region src/components/ProductCard/ProductCard.tsx
|
|
17
|
+
const logger = new logger_default("ProductCard");
|
|
17
18
|
const formatReviews = (stars) => String(Number(stars).toLocaleString("en-US", {
|
|
18
19
|
minimumFractionDigits: 1,
|
|
19
20
|
maximumFractionDigits: 1
|
|
@@ -65,7 +66,7 @@ const ProductCard = ({ productCardConfig, merchantShortName, imageUrl, title, ur
|
|
|
65
66
|
const pricePrefix = productCardConfig?.pricePrefix;
|
|
66
67
|
const handleClick = () => onClick();
|
|
67
68
|
if (productCardConfig == null) {
|
|
68
|
-
|
|
69
|
+
logger.logError("[ProductCard] productCardConfig is null", void 0, { merchant: merchantShortName });
|
|
69
70
|
return null;
|
|
70
71
|
}
|
|
71
72
|
const layoutClasses = productCardLayoutVariantClasses[finalLayoutVariant];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProductCardConfig, ProductGridVariant } from "../ProductCard/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
3
3
|
import { SearchResponseProductAttributes } from "@envive-ai/react-hooks/application/models";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ProductGrid/ProductGrid.d.ts
|
|
@@ -20,6 +20,6 @@ declare const ProductGrid: ({
|
|
|
20
20
|
merchantShortName,
|
|
21
21
|
cardsGrowWithContainer,
|
|
22
22
|
onProductClick
|
|
23
|
-
}: ProductGridProps) =>
|
|
23
|
+
}: ProductGridProps) => react_jsx_runtime10.JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { ProductGrid };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProductCardConfig, ProductGridVariant } from "../ProductCard/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
3
3
|
import { SearchResponseProductAttributes } from "@envive-ai/react-hooks/application/models";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ProductGrid/ProductGrid.d.ts
|
|
@@ -20,6 +20,6 @@ declare const ProductGrid: ({
|
|
|
20
20
|
merchantShortName,
|
|
21
21
|
cardsGrowWithContainer,
|
|
22
22
|
onProductClick
|
|
23
|
-
}: ProductGridProps) =>
|
|
23
|
+
}: ProductGridProps) => react_jsx_runtime20.JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { ProductGrid };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
2
2
|
import { TestProps } from "@envive-ai/react-hooks/types";
|
|
3
3
|
|
|
4
4
|
//#region src/components/RadioButton/RadioButton.d.ts
|
|
@@ -27,6 +27,6 @@ declare const RadioButton: ({
|
|
|
27
27
|
checked,
|
|
28
28
|
onChange,
|
|
29
29
|
id
|
|
30
|
-
}: RadioButtonProps) =>
|
|
30
|
+
}: RadioButtonProps) => react_jsx_runtime13.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { RadioButton };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime21 from "react/jsx-runtime";
|
|
2
2
|
import { TestProps } from "@envive-ai/react-hooks/types";
|
|
3
3
|
|
|
4
4
|
//#region src/components/RadioButton/RadioButton.d.ts
|
|
@@ -27,6 +27,6 @@ declare const RadioButton: ({
|
|
|
27
27
|
checked,
|
|
28
28
|
onChange,
|
|
29
29
|
id
|
|
30
|
-
}: RadioButtonProps) =>
|
|
30
|
+
}: RadioButtonProps) => react_jsx_runtime21.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { RadioButton };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
2
2
|
import { TestProps } from "@envive-ai/react-hooks/types";
|
|
3
3
|
|
|
4
4
|
//#region src/components/RadioButtonGroup/RadioButtonGroup.d.ts
|
|
@@ -31,6 +31,6 @@ declare const RadioButtonGroup: ({
|
|
|
31
31
|
gap,
|
|
32
32
|
textButtonGap,
|
|
33
33
|
onChange
|
|
34
|
-
}: RadioButtonGroupProps) =>
|
|
34
|
+
}: RadioButtonGroupProps) => react_jsx_runtime11.JSX.Element;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { RadioButtonGroup, SPIFFY_RADIO_BUTTON_GROUP_CLASS };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime18 from "react/jsx-runtime";
|
|
2
2
|
import { TestProps } from "@envive-ai/react-hooks/types";
|
|
3
3
|
|
|
4
4
|
//#region src/components/RadioButtonGroup/RadioButtonGroup.d.ts
|
|
@@ -31,6 +31,6 @@ declare const RadioButtonGroup: ({
|
|
|
31
31
|
gap,
|
|
32
32
|
textButtonGap,
|
|
33
33
|
onChange
|
|
34
|
-
}: RadioButtonGroupProps) =>
|
|
34
|
+
}: RadioButtonGroupProps) => react_jsx_runtime18.JSX.Element;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { RadioButtonGroup, SPIFFY_RADIO_BUTTON_GROUP_CLASS };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime18 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/SearchAutocomplete/SearchAutocomplete.d.ts
|
|
4
4
|
interface GlobalSearchAutocompleteProps {
|
|
@@ -16,6 +16,6 @@ declare const SearchAutocomplete: ({
|
|
|
16
16
|
searchText,
|
|
17
17
|
onSuggestionSelect,
|
|
18
18
|
iconColor
|
|
19
|
-
}: GlobalSearchAutocompleteProps) =>
|
|
19
|
+
}: GlobalSearchAutocompleteProps) => react_jsx_runtime18.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { SearchAutocomplete };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/SearchAutocomplete/SearchAutocomplete.d.ts
|
|
4
4
|
interface GlobalSearchAutocompleteProps {
|
|
@@ -16,6 +16,6 @@ declare const SearchAutocomplete: ({
|
|
|
16
16
|
searchText,
|
|
17
17
|
onSuggestionSelect,
|
|
18
18
|
iconColor
|
|
19
|
-
}: GlobalSearchAutocompleteProps) =>
|
|
19
|
+
}: GlobalSearchAutocompleteProps) => react_jsx_runtime7.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { SearchAutocomplete };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_Accordion = require('../Accordion/Accordion.cjs');
|
|
3
3
|
require('../Accordion/index.cjs');
|
|
4
|
+
const require_ModalSheet = require('../ModalSheet/ModalSheet.cjs');
|
|
5
|
+
require('../ModalSheet/index.cjs');
|
|
4
6
|
const require_RadioButtonGroup = require('../RadioButtonGroup/RadioButtonGroup.cjs');
|
|
5
7
|
require('../RadioButtonGroup/index.cjs');
|
|
6
8
|
const require_SearchFilterHeader = require('./SearchFilterHeader.cjs');
|
|
7
9
|
const require_useHasFilterStateChanged = require('./useHasFilterStateChanged.cjs');
|
|
8
10
|
const require_utils = require('./utils.cjs');
|
|
9
|
-
const require_ModalSheet = require('../ModalSheet/ModalSheet.cjs');
|
|
10
|
-
require('../ModalSheet/index.cjs');
|
|
11
11
|
const require_ToggleButton = require('../ToggleButton/ToggleButton.cjs');
|
|
12
12
|
require('../ToggleButton/index.cjs');
|
|
13
13
|
const require_SearchFilterFooter = require('./SearchFilterFooter.cjs');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SearchFilterProps } from "./types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SearchFilter/SearchFilter.d.ts
|
|
5
5
|
declare const SearchFilter: ({
|
|
@@ -18,6 +18,6 @@ declare const SearchFilter: ({
|
|
|
18
18
|
radioButtonHoverColor,
|
|
19
19
|
radioButtonUncheckedBorderColor,
|
|
20
20
|
filterCloseIconVariant
|
|
21
|
-
}: SearchFilterProps) =>
|
|
21
|
+
}: SearchFilterProps) => react_jsx_runtime7.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { SearchFilter };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SearchFilterProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SearchFilter/SearchFilter.d.ts
|
|
5
5
|
declare const SearchFilter: ({
|
|
@@ -18,6 +18,6 @@ declare const SearchFilter: ({
|
|
|
18
18
|
radioButtonHoverColor,
|
|
19
19
|
radioButtonUncheckedBorderColor,
|
|
20
20
|
filterCloseIconVariant
|
|
21
|
-
}: SearchFilterProps) =>
|
|
21
|
+
}: SearchFilterProps) => react_jsx_runtime0.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { SearchFilter };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Accordion } from "../Accordion/Accordion.js";
|
|
2
2
|
import "../Accordion/index.js";
|
|
3
|
+
import { ModalSheet } from "../ModalSheet/ModalSheet.js";
|
|
4
|
+
import "../ModalSheet/index.js";
|
|
3
5
|
import { RadioButtonGroup } from "../RadioButtonGroup/RadioButtonGroup.js";
|
|
4
6
|
import "../RadioButtonGroup/index.js";
|
|
5
7
|
import { SearchFilterHeader } from "./SearchFilterHeader.js";
|
|
6
8
|
import { useHasFilterStateChanged } from "./useHasFilterStateChanged.js";
|
|
7
9
|
import { getSelectedFilterItemsCount, getTotalSelectedFilterItemsCount } from "./utils.js";
|
|
8
|
-
import { ModalSheet } from "../ModalSheet/ModalSheet.js";
|
|
9
|
-
import "../ModalSheet/index.js";
|
|
10
10
|
import { ToggleButton } from "../ToggleButton/ToggleButton.js";
|
|
11
11
|
import "../ToggleButton/index.js";
|
|
12
12
|
import { SearchFilterFooter } from "./SearchFilterFooter.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
2
2
|
import { FilterFooterProps } from "@envive-ai/react-hooks/types";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SearchFilter/SearchFilterFooter.d.ts
|
|
@@ -9,6 +9,6 @@ declare const SearchFilterFooter: ({
|
|
|
9
9
|
applyFiltersUnchangedClasses,
|
|
10
10
|
applyFiltersChangedClasses,
|
|
11
11
|
hasFiltersChanged
|
|
12
|
-
}: FilterFooterProps) =>
|
|
12
|
+
}: FilterFooterProps) => react_jsx_runtime9.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { SearchFilterFooter };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
2
2
|
import { FilterFooterProps } from "@envive-ai/react-hooks/types";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SearchFilter/SearchFilterFooter.d.ts
|
|
@@ -9,6 +9,6 @@ declare const SearchFilterFooter: ({
|
|
|
9
9
|
applyFiltersUnchangedClasses,
|
|
10
10
|
applyFiltersChangedClasses,
|
|
11
11
|
hasFiltersChanged
|
|
12
|
-
}: FilterFooterProps) =>
|
|
12
|
+
}: FilterFooterProps) => react_jsx_runtime2.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { SearchFilterFooter };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SearchFilterHeaderProps } from "./types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SearchFilter/SearchFilterHeader.d.ts
|
|
5
5
|
declare const SearchFilterHeader: ({
|
|
@@ -7,6 +7,6 @@ declare const SearchFilterHeader: ({
|
|
|
7
7
|
productCount,
|
|
8
8
|
headerClassName,
|
|
9
9
|
filterCloseIconVariant
|
|
10
|
-
}: SearchFilterHeaderProps) =>
|
|
10
|
+
}: SearchFilterHeaderProps) => react_jsx_runtime6.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { SearchFilterHeader };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SearchFilterHeaderProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SearchFilter/SearchFilterHeader.d.ts
|
|
5
5
|
declare const SearchFilterHeader: ({
|
|
@@ -7,6 +7,6 @@ declare const SearchFilterHeader: ({
|
|
|
7
7
|
productCount,
|
|
8
8
|
headerClassName,
|
|
9
9
|
filterCloseIconVariant
|
|
10
|
-
}: SearchFilterHeaderProps) =>
|
|
10
|
+
}: SearchFilterHeaderProps) => react_jsx_runtime1.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { SearchFilterHeader };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SearchFilterItemProps } from "./types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SearchFilter/SearchFilterItem.d.ts
|
|
5
5
|
declare const SearchFilterItem: ({
|
|
@@ -8,6 +8,6 @@ declare const SearchFilterItem: ({
|
|
|
8
8
|
radioButtonFillColor,
|
|
9
9
|
radioButtonHoverColor,
|
|
10
10
|
radioButtonUncheckedBorderColor
|
|
11
|
-
}: SearchFilterItemProps) =>
|
|
11
|
+
}: SearchFilterItemProps) => react_jsx_runtime8.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { SearchFilterItem };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SearchFilterItemProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SearchFilter/SearchFilterItem.d.ts
|
|
5
5
|
declare const SearchFilterItem: ({
|
|
@@ -8,6 +8,6 @@ declare const SearchFilterItem: ({
|
|
|
8
8
|
radioButtonFillColor,
|
|
9
9
|
radioButtonHoverColor,
|
|
10
10
|
radioButtonUncheckedBorderColor
|
|
11
|
-
}: SearchFilterItemProps) =>
|
|
11
|
+
}: SearchFilterItemProps) => react_jsx_runtime3.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { SearchFilterItem };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SearchInputVariant } from "../../atoms/search/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime17 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SearchInputForm/SearchInputForm.d.ts
|
|
5
5
|
interface SearchInputFormProps {
|
|
@@ -33,6 +33,6 @@ declare const SearchInputForm: ({
|
|
|
33
33
|
onSearchInputFocus,
|
|
34
34
|
onSearchInputBlur,
|
|
35
35
|
searchInputRef
|
|
36
|
-
}: SearchInputFormProps) =>
|
|
36
|
+
}: SearchInputFormProps) => react_jsx_runtime17.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { SearchInputForm };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SearchInputVariant } from "../../atoms/search/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SearchInputForm/SearchInputForm.d.ts
|
|
5
5
|
interface SearchInputFormProps {
|
|
@@ -33,6 +33,6 @@ declare const SearchInputForm: ({
|
|
|
33
33
|
onSearchInputFocus,
|
|
34
34
|
onSearchInputBlur,
|
|
35
35
|
searchInputRef
|
|
36
|
-
}: SearchInputFormProps) =>
|
|
36
|
+
}: SearchInputFormProps) => react_jsx_runtime0.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { SearchInputForm };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/SearchResultsFilterButton/SearchResultsFilterButton.d.ts
|
|
4
4
|
type SearchResultsFilterButtonProps = {
|
|
@@ -8,6 +8,6 @@ type SearchResultsFilterButtonProps = {
|
|
|
8
8
|
declare const SearchResultsFilterButton: ({
|
|
9
9
|
setIsOpen,
|
|
10
10
|
filterButtonText
|
|
11
|
-
}: SearchResultsFilterButtonProps) =>
|
|
11
|
+
}: SearchResultsFilterButtonProps) => react_jsx_runtime0.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { SearchResultsFilterButton, SearchResultsFilterButtonProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/SearchResultsFilterButton/SearchResultsFilterButton.d.ts
|
|
4
4
|
type SearchResultsFilterButtonProps = {
|
|
@@ -8,6 +8,6 @@ type SearchResultsFilterButtonProps = {
|
|
|
8
8
|
declare const SearchResultsFilterButton: ({
|
|
9
9
|
setIsOpen,
|
|
10
10
|
filterButtonText
|
|
11
|
-
}: SearchResultsFilterButtonProps) =>
|
|
11
|
+
}: SearchResultsFilterButtonProps) => react_jsx_runtime15.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { SearchResultsFilterButton, SearchResultsFilterButtonProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SearchFilterSidebarVariant } from "../SearchResultsFilterSidebar/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
3
3
|
import { SearchFilterDatum, SelectFilterItem } from "@envive-ai/react-hooks/types";
|
|
4
4
|
|
|
5
5
|
//#region src/components/SearchResultsFilterModal/SearchResultsFilterModal.d.ts
|
|
@@ -22,6 +22,6 @@ declare const SearchResultsFilterModal: ({
|
|
|
22
22
|
onSelectFilterItem,
|
|
23
23
|
onClearAllFilters,
|
|
24
24
|
filterButtonText
|
|
25
|
-
}: SearchResultsFilterModalProps) =>
|
|
25
|
+
}: SearchResultsFilterModalProps) => react_jsx_runtime5.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { SearchResultsFilterModal, SearchResultsFilterModalProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SearchFilterSidebarVariant } from "../SearchResultsFilterSidebar/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
3
3
|
import { SearchFilterDatum, SelectFilterItem } from "@envive-ai/react-hooks/types";
|
|
4
4
|
|
|
5
5
|
//#region src/components/SearchResultsFilterModal/SearchResultsFilterModal.d.ts
|
|
@@ -22,6 +22,6 @@ declare const SearchResultsFilterModal: ({
|
|
|
22
22
|
onSelectFilterItem,
|
|
23
23
|
onClearAllFilters,
|
|
24
24
|
filterButtonText
|
|
25
|
-
}: SearchResultsFilterModalProps) =>
|
|
25
|
+
}: SearchResultsFilterModalProps) => react_jsx_runtime12.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { SearchResultsFilterModal, SearchResultsFilterModalProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SearchFilterSidebarVariant } from "./types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
3
3
|
import { SearchFilterDatum, SelectFilterItem } from "@envive-ai/react-hooks/types";
|
|
4
4
|
|
|
5
5
|
//#region src/components/SearchResultsFilterSidebar/SearchResultsFilter.d.ts
|
|
@@ -22,6 +22,6 @@ declare const SearchResultsFilter: ({
|
|
|
22
22
|
onSelectFilterItem,
|
|
23
23
|
onClearAllFilters,
|
|
24
24
|
filterButtonText
|
|
25
|
-
}: SearchResultsFilterProps) =>
|
|
25
|
+
}: SearchResultsFilterProps) => react_jsx_runtime4.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { SearchResultsFilter, SearchResultsFilterProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SearchFilterSidebarVariant } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
3
3
|
import { SearchFilterDatum, SelectFilterItem } from "@envive-ai/react-hooks/types";
|
|
4
4
|
|
|
5
5
|
//#region src/components/SearchResultsFilterSidebar/SearchResultsFilter.d.ts
|
|
@@ -22,6 +22,6 @@ declare const SearchResultsFilter: ({
|
|
|
22
22
|
onSelectFilterItem,
|
|
23
23
|
onClearAllFilters,
|
|
24
24
|
filterButtonText
|
|
25
|
-
}: SearchResultsFilterProps) =>
|
|
25
|
+
}: SearchResultsFilterProps) => react_jsx_runtime14.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { SearchResultsFilter, SearchResultsFilterProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProductGridVariant } from "../ProductCard/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime27 from "react/jsx-runtime";
|
|
3
3
|
import { SearchResponseProductAttributes } from "@envive-ai/react-hooks/application/models";
|
|
4
4
|
|
|
5
5
|
//#region src/components/SearchResultsStates/NoSearchResultsFound.d.ts
|
|
@@ -20,6 +20,6 @@ declare const NoSearchResultsFound: ({
|
|
|
20
20
|
searchText,
|
|
21
21
|
merchantShortName,
|
|
22
22
|
productGridVariant
|
|
23
|
-
}: NoSearchResultsFoundProps) =>
|
|
23
|
+
}: NoSearchResultsFoundProps) => react_jsx_runtime27.JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { NoSearchResultsFound };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProductGridVariant } from "../ProductCard/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
3
3
|
import { SearchResponseProductAttributes } from "@envive-ai/react-hooks/application/models";
|
|
4
4
|
|
|
5
5
|
//#region src/components/SearchResultsStates/NoSearchResultsFound.d.ts
|
|
@@ -20,6 +20,6 @@ declare const NoSearchResultsFound: ({
|
|
|
20
20
|
searchText,
|
|
21
21
|
merchantShortName,
|
|
22
22
|
productGridVariant
|
|
23
|
-
}: NoSearchResultsFoundProps) =>
|
|
23
|
+
}: NoSearchResultsFoundProps) => react_jsx_runtime10.JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { NoSearchResultsFound };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProductCardConfig, ProductGridVariant } from "../ProductCard/types.cjs";
|
|
2
2
|
import { SearchFilterSidebarVariant } from "../SearchResultsFilterSidebar/types.cjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime28 from "react/jsx-runtime";
|
|
4
4
|
import { SelectedFilterOption } from "@envive-ai/react-hooks/atoms/search";
|
|
5
5
|
import { SearchResponseProduct } from "@spiffy-ai/commerce-api-client";
|
|
6
6
|
|
|
@@ -41,6 +41,6 @@ declare const SearchResultsGrid: ({
|
|
|
41
41
|
onRemoveFilter,
|
|
42
42
|
onToggleDynamicFilter,
|
|
43
43
|
onProductClick
|
|
44
|
-
}: SearchResultsGridProps) =>
|
|
44
|
+
}: SearchResultsGridProps) => react_jsx_runtime28.JSX.Element;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { SearchResultsGrid };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProductCardConfig, ProductGridVariant } from "../ProductCard/types.js";
|
|
2
2
|
import { SearchFilterSidebarVariant } from "../SearchResultsFilterSidebar/types.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
4
4
|
import { SelectedFilterOption } from "@envive-ai/react-hooks/atoms/search";
|
|
5
5
|
import { SearchResponseProduct } from "@spiffy-ai/commerce-api-client";
|
|
6
6
|
|
|
@@ -41,6 +41,6 @@ declare const SearchResultsGrid: ({
|
|
|
41
41
|
onRemoveFilter,
|
|
42
42
|
onToggleDynamicFilter,
|
|
43
43
|
onProductClick
|
|
44
|
-
}: SearchResultsGridProps) =>
|
|
44
|
+
}: SearchResultsGridProps) => react_jsx_runtime11.JSX.Element;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { SearchResultsGrid };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProductGridVariant } from "../ProductCard/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime30 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SearchResultsStates/SearchResultsLoadingGrid.d.ts
|
|
5
5
|
declare const SearchResultsLoadingGrid: ({
|
|
@@ -10,6 +10,6 @@ declare const SearchResultsLoadingGrid: ({
|
|
|
10
10
|
productGridVariant: ProductGridVariant;
|
|
11
11
|
productGridClasses: string;
|
|
12
12
|
sparkleIconColor?: string;
|
|
13
|
-
}) =>
|
|
13
|
+
}) => react_jsx_runtime30.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { SearchResultsLoadingGrid };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProductGridVariant } from "../ProductCard/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SearchResultsStates/SearchResultsLoadingGrid.d.ts
|
|
5
5
|
declare const SearchResultsLoadingGrid: ({
|
|
@@ -10,6 +10,6 @@ declare const SearchResultsLoadingGrid: ({
|
|
|
10
10
|
productGridVariant: ProductGridVariant;
|
|
11
11
|
productGridClasses: string;
|
|
12
12
|
sparkleIconColor?: string;
|
|
13
|
-
}) =>
|
|
13
|
+
}) => react_jsx_runtime9.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { SearchResultsLoadingGrid };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { SearchInputVariant } from "@envive-ai/react-hooks/contexts/types";
|
|
4
4
|
|
|
@@ -44,6 +44,6 @@ declare const SearchResultsToolbar: ({
|
|
|
44
44
|
toolbarRef,
|
|
45
45
|
isVisible,
|
|
46
46
|
className
|
|
47
|
-
}: SearchResultsToolbarProps) =>
|
|
47
|
+
}: SearchResultsToolbarProps) => react_jsx_runtime2.JSX.Element;
|
|
48
48
|
//#endregion
|
|
49
49
|
export { SearchResultsToolbar };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
3
3
|
import { SearchInputVariant } from "@envive-ai/react-hooks/contexts/types";
|
|
4
4
|
|
|
5
5
|
//#region src/components/SearchResultsToolbar/SearchResultsToolbar.d.ts
|
|
@@ -44,6 +44,6 @@ declare const SearchResultsToolbar: ({
|
|
|
44
44
|
toolbarRef,
|
|
45
45
|
isVisible,
|
|
46
46
|
className
|
|
47
|
-
}: SearchResultsToolbarProps) =>
|
|
47
|
+
}: SearchResultsToolbarProps) => react_jsx_runtime8.JSX.Element;
|
|
48
48
|
//#endregion
|
|
49
49
|
export { SearchResultsToolbar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/SparkleAnimation/SparkleAnimation.d.ts
|
|
4
4
|
interface SparkleAnimationProps {
|
|
@@ -10,6 +10,6 @@ declare const SparkleAnimation: ({
|
|
|
10
10
|
color,
|
|
11
11
|
className,
|
|
12
12
|
animate
|
|
13
|
-
}: SparkleAnimationProps) =>
|
|
13
|
+
}: SparkleAnimationProps) => react_jsx_runtime3.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { SparkleAnimation };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime31 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/SparkleAnimation/SparkleAnimation.d.ts
|
|
4
4
|
interface SparkleAnimationProps {
|
|
@@ -10,6 +10,6 @@ declare const SparkleAnimation: ({
|
|
|
10
10
|
color,
|
|
11
11
|
className,
|
|
12
12
|
animate
|
|
13
|
-
}: SparkleAnimationProps) =>
|
|
13
|
+
}: SparkleAnimationProps) => react_jsx_runtime31.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { SparkleAnimation };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/Spinner/Spinner.d.ts
|
|
4
4
|
type SpinnerProps = {
|
|
@@ -6,6 +6,6 @@ type SpinnerProps = {
|
|
|
6
6
|
};
|
|
7
7
|
declare const Spinner: ({
|
|
8
8
|
className
|
|
9
|
-
}: SpinnerProps) =>
|
|
9
|
+
}: SpinnerProps) => react_jsx_runtime1.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Spinner };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/Spinner/Spinner.d.ts
|
|
4
4
|
type SpinnerProps = {
|
|
@@ -6,6 +6,6 @@ type SpinnerProps = {
|
|
|
6
6
|
};
|
|
7
7
|
declare const Spinner: ({
|
|
8
8
|
className
|
|
9
|
-
}: SpinnerProps) =>
|
|
9
|
+
}: SpinnerProps) => react_jsx_runtime5.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Spinner };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SuggestionButtonVariant } from "./types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime29 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SuggestionButton/SuggestionButton.d.ts
|
|
5
5
|
declare const SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS = "spiffy-suggestion-button-question-class";
|
|
@@ -28,6 +28,6 @@ declare const SuggestionButton: ({
|
|
|
28
28
|
dataAttributes,
|
|
29
29
|
dataTestId,
|
|
30
30
|
onClick
|
|
31
|
-
}: SuggestionButtonProps) =>
|
|
31
|
+
}: SuggestionButtonProps) => react_jsx_runtime29.JSX.Element;
|
|
32
32
|
//#endregion
|
|
33
33
|
export { SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS, SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS, SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS, SuggestionButton };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SuggestionButtonVariant } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SuggestionButton/SuggestionButton.d.ts
|
|
5
5
|
declare const SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS = "spiffy-suggestion-button-question-class";
|
|
@@ -28,6 +28,6 @@ declare const SuggestionButton: ({
|
|
|
28
28
|
dataAttributes,
|
|
29
29
|
dataTestId,
|
|
30
30
|
onClick
|
|
31
|
-
}: SuggestionButtonProps) =>
|
|
31
|
+
}: SuggestionButtonProps) => react_jsx_runtime4.JSX.Element;
|
|
32
32
|
//#endregion
|
|
33
33
|
export { SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS, SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS, SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS, SuggestionButton };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime31 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/ToggleButton/ToggleButton.d.ts
|
|
4
4
|
type ToggleButtonProps = {
|
|
@@ -25,6 +25,6 @@ declare const ToggleButton: ({
|
|
|
25
25
|
icon,
|
|
26
26
|
iconClassName,
|
|
27
27
|
variant
|
|
28
|
-
}: ToggleButtonProps) =>
|
|
28
|
+
}: ToggleButtonProps) => react_jsx_runtime31.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { ToggleButton, ToggleButtonProps, ToggleButtonVariant };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/ToggleButton/ToggleButton.d.ts
|
|
4
4
|
type ToggleButtonProps = {
|
|
@@ -25,6 +25,6 @@ declare const ToggleButton: ({
|
|
|
25
25
|
icon,
|
|
26
26
|
iconClassName,
|
|
27
27
|
variant
|
|
28
|
-
}: ToggleButtonProps) =>
|
|
28
|
+
}: ToggleButtonProps) => react_jsx_runtime6.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { ToggleButton, ToggleButtonProps, ToggleButtonVariant };
|
package/dist/logging/logger.cjs
CHANGED
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/logging/logger.ts
|
|
3
|
-
var Logger = class {
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
var Logger = class Logger {
|
|
4
|
+
constructor(caller) {
|
|
5
|
+
this.caller = caller;
|
|
6
6
|
}
|
|
7
|
-
static
|
|
8
|
-
|
|
7
|
+
static getTimestamp() {
|
|
8
|
+
return (/* @__PURE__ */ new Date()).toISOString();
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
console.
|
|
10
|
+
logInfo(message, ...args) {
|
|
11
|
+
console.info(`INFO: [envive-ai] ${Logger.getTimestamp()} - ${this.caller} - ${message}`, ...args);
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
console.
|
|
13
|
+
logDebug(message, ...args) {
|
|
14
|
+
console.debug(`DEBUG: [envive-ai] ${Logger.getTimestamp()} - ${this.caller} - ${message}`, ...args);
|
|
15
|
+
}
|
|
16
|
+
logError(message, error, ...args) {
|
|
17
|
+
console.error(`ERROR: [envive-ai] ${Logger.getTimestamp()} - ${this.caller} - ${message} error=${error}`, args);
|
|
18
|
+
}
|
|
19
|
+
logWarn(message, error, ...args) {
|
|
20
|
+
console.warn(`WARN: [envive-ai] ${Logger.getTimestamp()} - ${this.caller} - ${message} error=${error}`, args);
|
|
15
21
|
}
|
|
16
22
|
};
|
|
17
23
|
var logger_default = Logger;
|
package/dist/logging/logger.js
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
//#region src/logging/logger.ts
|
|
2
|
-
var Logger = class {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
var Logger = class Logger {
|
|
3
|
+
constructor(caller) {
|
|
4
|
+
this.caller = caller;
|
|
5
5
|
}
|
|
6
|
-
static
|
|
7
|
-
|
|
6
|
+
static getTimestamp() {
|
|
7
|
+
return (/* @__PURE__ */ new Date()).toISOString();
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
console.
|
|
9
|
+
logInfo(message, ...args) {
|
|
10
|
+
console.info(`INFO: [envive-ai] ${Logger.getTimestamp()} - ${this.caller} - ${message}`, ...args);
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
console.
|
|
12
|
+
logDebug(message, ...args) {
|
|
13
|
+
console.debug(`DEBUG: [envive-ai] ${Logger.getTimestamp()} - ${this.caller} - ${message}`, ...args);
|
|
14
|
+
}
|
|
15
|
+
logError(message, error, ...args) {
|
|
16
|
+
console.error(`ERROR: [envive-ai] ${Logger.getTimestamp()} - ${this.caller} - ${message} error=${error}`, args);
|
|
17
|
+
}
|
|
18
|
+
logWarn(message, error, ...args) {
|
|
19
|
+
console.warn(`WARN: [envive-ai] ${Logger.getTimestamp()} - ${this.caller} - ${message} error=${error}`, args);
|
|
14
20
|
}
|
|
15
21
|
};
|
|
16
22
|
var logger_default = Logger;
|
package/package.json
CHANGED
|
@@ -20,6 +20,8 @@ import {
|
|
|
20
20
|
ProductCardVariant,
|
|
21
21
|
} from './types';
|
|
22
22
|
|
|
23
|
+
const logger = new Logger('ProductCard');
|
|
24
|
+
|
|
23
25
|
const formatReviews = (stars: number) =>
|
|
24
26
|
String(
|
|
25
27
|
Number(stars).toLocaleString('en-US', { minimumFractionDigits: 1, maximumFractionDigits: 1 }),
|
|
@@ -145,7 +147,7 @@ export const ProductCard = ({
|
|
|
145
147
|
const handleClick = () => onClick();
|
|
146
148
|
|
|
147
149
|
if (productCardConfig == null) {
|
|
148
|
-
|
|
150
|
+
logger.logError('[ProductCard] productCardConfig is null', undefined, {
|
|
149
151
|
merchant: merchantShortName,
|
|
150
152
|
});
|
|
151
153
|
|
package/src/logging/logger.ts
CHANGED
|
@@ -1,20 +1,45 @@
|
|
|
1
1
|
/* eslint-disable no-console */
|
|
2
2
|
|
|
3
3
|
class Logger {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
private readonly caller: string;
|
|
5
|
+
|
|
6
|
+
/* Creates a new Logger instance.
|
|
7
|
+
* @param caller - The caller of the logger.
|
|
8
|
+
*/
|
|
9
|
+
constructor(caller: string) {
|
|
10
|
+
this.caller = caller;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
static getTimestamp(): string {
|
|
14
|
+
return new Date().toISOString();
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
logInfo(message: string, ...args: unknown[]): void {
|
|
18
|
+
console.info(
|
|
19
|
+
`INFO: [envive-ai] ${Logger.getTimestamp()} - ${this.caller} - ${message}`,
|
|
20
|
+
...args,
|
|
21
|
+
);
|
|
6
22
|
}
|
|
7
23
|
|
|
8
|
-
|
|
9
|
-
console.debug(
|
|
24
|
+
logDebug(message: string, ...args: unknown[]): void {
|
|
25
|
+
console.debug(
|
|
26
|
+
`DEBUG: [envive-ai] ${Logger.getTimestamp()} - ${this.caller} - ${message}`,
|
|
27
|
+
...args,
|
|
28
|
+
);
|
|
10
29
|
}
|
|
11
30
|
|
|
12
|
-
|
|
13
|
-
console.error(
|
|
31
|
+
logError(message: string, error: unknown | undefined, ...args: unknown[]): void {
|
|
32
|
+
console.error(
|
|
33
|
+
`ERROR: [envive-ai] ${Logger.getTimestamp()} - ${this.caller} - ${message} error=${error}`,
|
|
34
|
+
args,
|
|
35
|
+
);
|
|
14
36
|
}
|
|
15
37
|
|
|
16
|
-
|
|
17
|
-
console.warn(
|
|
38
|
+
logWarn(message: string, error: unknown | undefined, ...args: unknown[]): void {
|
|
39
|
+
console.warn(
|
|
40
|
+
`WARN: [envive-ai] ${Logger.getTimestamp()} - ${this.caller} - ${message} error=${error}`,
|
|
41
|
+
args,
|
|
42
|
+
);
|
|
18
43
|
}
|
|
19
44
|
}
|
|
20
45
|
|