@envive-ai/react-toolkit 0.3.5 → 0.3.6
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.cts +3 -3
- package/dist/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.d.ts +3 -3
- package/dist/components/ButtonBase/ButtonBase.d.cts +2 -2
- package/dist/components/ButtonBase/ButtonBase.d.ts +2 -2
- package/dist/components/DynamicFiltersScrollbar/DynamicFiltersScrollbar.d.cts +2 -2
- package/dist/components/DynamicFiltersScrollbar/DynamicFiltersScrollbar.d.ts +2 -2
- package/dist/components/FilterScrollbar/AppliedFiltersScrollbar.d.cts +3 -3
- package/dist/components/FilterScrollbar/AppliedFiltersScrollbar.d.ts +3 -3
- 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 -2
- 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 -2
- package/dist/components/ProductGrid/ProductGrid.d.cts +3 -3
- package/dist/components/ProductGrid/ProductGrid.d.ts +3 -3
- package/dist/components/RadioButton/RadioButton.d.cts +3 -4
- package/dist/components/RadioButton/RadioButton.d.ts +3 -4
- package/dist/components/RadioButtonGroup/RadioButtonGroup.d.cts +3 -4
- package/dist/components/RadioButtonGroup/RadioButtonGroup.d.ts +3 -4
- package/dist/components/RecommendedProducts/RecommendedProducts.d.cts +2 -2
- package/dist/components/RecommendedProducts/RecommendedProducts.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.d.cts +2 -2
- package/dist/components/SearchFilter/SearchFilter.d.ts +2 -2
- package/dist/components/SearchFilter/SearchFilterFooter.d.cts +3 -4
- package/dist/components/SearchFilter/SearchFilterFooter.d.ts +3 -4
- 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/SearchFilter/types.d.cts +1 -2
- package/dist/components/SearchFilter/types.d.ts +1 -2
- package/dist/components/SearchFilter/utils.d.cts +3 -4
- package/dist/components/SearchFilter/utils.d.ts +3 -4
- package/dist/components/SearchInput/SearchInput.d.cts +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +1 -1
- package/dist/components/SearchInputForm/SearchInputForm.d.cts +2 -2
- package/dist/components/SearchInputForm/SearchInputForm.d.ts +2 -2
- package/dist/components/SearchResultsContent/SearchResultsContent.d.cts +4 -4
- package/dist/components/SearchResultsContent/SearchResultsContent.d.ts +4 -4
- 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 +3 -4
- package/dist/components/SearchResultsFilterModal/SearchResultsFilterModal.d.ts +3 -4
- package/dist/components/SearchResultsFilterSidebar/SearchResultsFilter.d.cts +3 -4
- package/dist/components/SearchResultsFilterSidebar/SearchResultsFilter.d.ts +3 -4
- package/dist/components/SearchResultsStates/NoSearchResultsFound.d.cts +3 -3
- package/dist/components/SearchResultsStates/NoSearchResultsFound.d.ts +3 -3
- package/dist/components/SearchResultsStates/SearchResultsGrid.d.cts +3 -3
- package/dist/components/SearchResultsStates/SearchResultsGrid.d.ts +3 -3
- 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 +3 -3
- package/dist/components/SearchResultsToolbar/SearchResultsToolbar.d.ts +3 -3
- 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/util/colorVar.d.cts +1 -1
- package/dist/util/colorVar.d.ts +1 -1
- package/package.json +1 -1
- package/dist/hooks/dist/application/models/api/response.d.cts +0 -11
- package/dist/hooks/dist/application/models/api/response.d.ts +0 -11
- package/dist/hooks/dist/application/models/chatElementDisplayLocation.d.cts +0 -27
- package/dist/hooks/dist/application/models/chatElementDisplayLocation.d.ts +0 -27
- package/dist/hooks/dist/application/models/colorsConfig.d.cts +0 -24
- package/dist/hooks/dist/application/models/colorsConfig.d.ts +0 -24
- package/dist/hooks/dist/application/models/featureGates.d.cts +0 -30
- package/dist/hooks/dist/application/models/featureGates.d.ts +0 -30
- package/dist/hooks/dist/application/models/frontendConfig.d.cts +0 -17
- package/dist/hooks/dist/application/models/frontendConfig.d.ts +0 -17
- package/dist/hooks/dist/application/models/utilityTypes/camelCase.d.cts +0 -71
- package/dist/hooks/dist/application/models/utilityTypes/camelCase.d.ts +0 -71
- package/dist/hooks/dist/application/models/utilityTypes/camelCasedPropertiesDeep.d.cts +0 -58
- package/dist/hooks/dist/application/models/utilityTypes/camelCasedPropertiesDeep.d.ts +0 -58
- package/dist/hooks/dist/application/models/utilityTypes/internal.d.cts +0 -22
- package/dist/hooks/dist/application/models/utilityTypes/internal.d.ts +0 -22
- package/dist/hooks/dist/application/models/utilityTypes/splitWords.d.cts +0 -31
- package/dist/hooks/dist/application/models/utilityTypes/splitWords.d.ts +0 -31
- package/dist/hooks/dist/application/models/utilityTypes/trim.d.cts +0 -30
- package/dist/hooks/dist/application/models/utilityTypes/trim.d.ts +0 -30
- package/dist/hooks/dist/application/models/utilityTypes/unknownArray.d.cts +0 -30
- package/dist/hooks/dist/application/models/utilityTypes/unknownArray.d.ts +0 -30
- package/dist/hooks/dist/application/models/variantInfo/pageVisitInfo.d.cts +0 -11
- package/dist/hooks/dist/application/models/variantInfo/pageVisitInfo.d.ts +0 -11
- package/dist/hooks/dist/application/models/variantInfo/plpInfo.d.cts +0 -8
- package/dist/hooks/dist/application/models/variantInfo/plpInfo.d.ts +0 -8
- package/dist/hooks/dist/application/models/variantInfo/productInfo.d.cts +0 -10
- package/dist/hooks/dist/application/models/variantInfo/productInfo.d.ts +0 -10
- package/dist/hooks/dist/application/models/variantInfo/variantInfo.d.cts +0 -31
- package/dist/hooks/dist/application/models/variantInfo/variantInfo.d.ts +0 -31
- package/dist/hooks/dist/application/utils/overrides.d.cts +0 -22
- package/dist/hooks/dist/application/utils/overrides.d.ts +0 -22
- package/dist/hooks/dist/atoms/search/searchAPI.d.cts +0 -11
- package/dist/hooks/dist/atoms/search/searchAPI.d.ts +0 -11
- package/dist/hooks/dist/contexts/types.d.cts +0 -672
- package/dist/hooks/dist/contexts/types.d.ts +0 -672
- package/dist/hooks/dist/hooks/utils.d.cts +0 -9
- package/dist/hooks/dist/hooks/utils.d.ts +0 -9
- package/dist/hooks/dist/merchants/domInsertion.d.cts +0 -15
- package/dist/hooks/dist/merchants/domInsertion.d.ts +0 -15
- package/dist/hooks/dist/merchants/gridInsertion.d.cts +0 -22
- package/dist/hooks/dist/merchants/gridInsertion.d.ts +0 -22
- package/dist/hooks/dist/types/customerService.d.cts +0 -24
- package/dist/hooks/dist/types/customerService.d.ts +0 -24
- package/dist/hooks/dist/types/custservice-types.d.cts +0 -10
- package/dist/hooks/dist/types/custservice-types.d.ts +0 -10
- package/dist/hooks/dist/types/enviveConfig.d.cts +0 -30
- package/dist/hooks/dist/types/enviveConfig.d.ts +0 -30
- package/dist/hooks/dist/types/index.d.cts +0 -6
- package/dist/hooks/dist/types/index.d.ts +0 -6
- package/dist/hooks/dist/types/search-filter-types.d.cts +0 -36
- package/dist/hooks/dist/types/search-filter-types.d.ts +0 -36
- package/dist/hooks/dist/types/suggestionBarV2-types.d.cts +0 -9
- package/dist/hooks/dist/types/suggestionBarV2-types.d.ts +0 -9
- package/dist/hooks/dist/types/test-types.d.cts +0 -8
- package/dist/hooks/dist/types/test-types.d.ts +0 -8
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PageVisitCategory } from "@spiffy-ai/commerce-api-client";
|
|
2
|
-
|
|
3
|
-
//#region ../hooks/dist/application/models/variantInfo/pageVisitInfo.d.ts
|
|
4
|
-
//#region src/application/models/variantInfo/pageVisitInfo.d.ts
|
|
5
|
-
interface PageVisitInfo {
|
|
6
|
-
url: string;
|
|
7
|
-
pageVisitCategory: PageVisitCategory;
|
|
8
|
-
}
|
|
9
|
-
//#endregion
|
|
10
|
-
//#endregion
|
|
11
|
-
export { PageVisitInfo };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
//#region ../hooks/dist/application/models/variantInfo/productInfo.d.ts
|
|
2
|
-
//#region src/application/models/variantInfo/productInfo.d.ts
|
|
3
|
-
interface ProductInfo {
|
|
4
|
-
productId: string;
|
|
5
|
-
parentProductId?: string;
|
|
6
|
-
url?: string;
|
|
7
|
-
}
|
|
8
|
-
//#endregion
|
|
9
|
-
//#endregion
|
|
10
|
-
export { ProductInfo };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
//#region ../hooks/dist/application/models/variantInfo/productInfo.d.ts
|
|
2
|
-
//#region src/application/models/variantInfo/productInfo.d.ts
|
|
3
|
-
interface ProductInfo {
|
|
4
|
-
productId: string;
|
|
5
|
-
parentProductId?: string;
|
|
6
|
-
url?: string;
|
|
7
|
-
}
|
|
8
|
-
//#endregion
|
|
9
|
-
//#endregion
|
|
10
|
-
export { ProductInfo };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { PLPInfo } from "./plpInfo.cjs";
|
|
2
|
-
import { PageVisitInfo } from "./pageVisitInfo.cjs";
|
|
3
|
-
import { ProductInfo } from "./productInfo.cjs";
|
|
4
|
-
|
|
5
|
-
//#region ../hooks/dist/application/models/variantInfo/variantInfo.d.ts
|
|
6
|
-
//#region src/application/models/variantInfo/variantInfo.d.ts
|
|
7
|
-
declare enum VariantTypeEnum {
|
|
8
|
-
Pdp = "pdp",
|
|
9
|
-
Plp = "plp",
|
|
10
|
-
PageVisit = "page_visit",
|
|
11
|
-
Home = "home",
|
|
12
|
-
Search = "search",
|
|
13
|
-
Other = "other",
|
|
14
|
-
}
|
|
15
|
-
type VariantInfo = PDPVariantInfo | PLPVariantInfo | PageVisitVariantInfo;
|
|
16
|
-
type PDPVariantInfo = {
|
|
17
|
-
variantId: string;
|
|
18
|
-
variant: VariantTypeEnum.Pdp;
|
|
19
|
-
} & ProductInfo;
|
|
20
|
-
type PLPVariantInfo = {
|
|
21
|
-
variantId: string;
|
|
22
|
-
variant: VariantTypeEnum.Plp;
|
|
23
|
-
url?: string;
|
|
24
|
-
} & PLPInfo;
|
|
25
|
-
type PageVisitVariantInfo = {
|
|
26
|
-
variantId: string;
|
|
27
|
-
variant: VariantTypeEnum.PageVisit;
|
|
28
|
-
} & PageVisitInfo;
|
|
29
|
-
//#endregion
|
|
30
|
-
//#endregion
|
|
31
|
-
export { VariantInfo };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { PLPInfo } from "./plpInfo.js";
|
|
2
|
-
import { PageVisitInfo } from "./pageVisitInfo.js";
|
|
3
|
-
import { ProductInfo } from "./productInfo.js";
|
|
4
|
-
|
|
5
|
-
//#region ../hooks/dist/application/models/variantInfo/variantInfo.d.ts
|
|
6
|
-
//#region src/application/models/variantInfo/variantInfo.d.ts
|
|
7
|
-
declare enum VariantTypeEnum {
|
|
8
|
-
Pdp = "pdp",
|
|
9
|
-
Plp = "plp",
|
|
10
|
-
PageVisit = "page_visit",
|
|
11
|
-
Home = "home",
|
|
12
|
-
Search = "search",
|
|
13
|
-
Other = "other",
|
|
14
|
-
}
|
|
15
|
-
type VariantInfo = PDPVariantInfo | PLPVariantInfo | PageVisitVariantInfo;
|
|
16
|
-
type PDPVariantInfo = {
|
|
17
|
-
variantId: string;
|
|
18
|
-
variant: VariantTypeEnum.Pdp;
|
|
19
|
-
} & ProductInfo;
|
|
20
|
-
type PLPVariantInfo = {
|
|
21
|
-
variantId: string;
|
|
22
|
-
variant: VariantTypeEnum.Plp;
|
|
23
|
-
url?: string;
|
|
24
|
-
} & PLPInfo;
|
|
25
|
-
type PageVisitVariantInfo = {
|
|
26
|
-
variantId: string;
|
|
27
|
-
variant: VariantTypeEnum.PageVisit;
|
|
28
|
-
} & PageVisitInfo;
|
|
29
|
-
//#endregion
|
|
30
|
-
//#endregion
|
|
31
|
-
export { VariantInfo };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
//#region ../hooks/dist/application/utils/overrides.d.ts
|
|
2
|
-
//#region src/application/utils/overrides.d.ts
|
|
3
|
-
type ReplaceOp<T> = {
|
|
4
|
-
$replace: T;
|
|
5
|
-
};
|
|
6
|
-
type DeleteOp = {
|
|
7
|
-
$delete: true;
|
|
8
|
-
};
|
|
9
|
-
type Builtin = Date | RegExp | ((...args: unknown[]) => unknown);
|
|
10
|
-
type Primitive = string | number | boolean | bigint | symbol | null | undefined;
|
|
11
|
-
/**
|
|
12
|
-
* Override<T> is a DeepPartial-like type with special operators:
|
|
13
|
-
* - { $replace: T } to replace an entire subtree/array
|
|
14
|
-
* - { $delete: true } to delete an object key
|
|
15
|
-
*
|
|
16
|
-
* Arrays behavior:
|
|
17
|
-
* - Arrays of objects: merge-by-index by default (unless `arrayStrategy: 'replace'` or `$replace` is used)
|
|
18
|
-
* - Arrays of primitives (string/number/boolean/...): replaced by default when a patch array is provided
|
|
19
|
-
*/
|
|
20
|
-
type Override<T> = T extends Primitive | Builtin ? T | ReplaceOp<T> | DeleteOp : T extends (infer U)[] ? Array<Override<U> | undefined> | ReplaceOp<T> : T extends Map<unknown, unknown> | Set<unknown> ? ReplaceOp<T> : T extends object ? { [K in keyof T]?: Override<T[K]> | DeleteOp | null } | ReplaceOp<T> : T;
|
|
21
|
-
//#endregion
|
|
22
|
-
export { Override };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
//#region ../hooks/dist/application/utils/overrides.d.ts
|
|
2
|
-
//#region src/application/utils/overrides.d.ts
|
|
3
|
-
type ReplaceOp<T> = {
|
|
4
|
-
$replace: T;
|
|
5
|
-
};
|
|
6
|
-
type DeleteOp = {
|
|
7
|
-
$delete: true;
|
|
8
|
-
};
|
|
9
|
-
type Builtin = Date | RegExp | ((...args: unknown[]) => unknown);
|
|
10
|
-
type Primitive = string | number | boolean | bigint | symbol | null | undefined;
|
|
11
|
-
/**
|
|
12
|
-
* Override<T> is a DeepPartial-like type with special operators:
|
|
13
|
-
* - { $replace: T } to replace an entire subtree/array
|
|
14
|
-
* - { $delete: true } to delete an object key
|
|
15
|
-
*
|
|
16
|
-
* Arrays behavior:
|
|
17
|
-
* - Arrays of objects: merge-by-index by default (unless `arrayStrategy: 'replace'` or `$replace` is used)
|
|
18
|
-
* - Arrays of primitives (string/number/boolean/...): replaced by default when a patch array is provided
|
|
19
|
-
*/
|
|
20
|
-
type Override<T> = T extends Primitive | Builtin ? T | ReplaceOp<T> | DeleteOp : T extends (infer U)[] ? Array<Override<U> | undefined> | ReplaceOp<T> : T extends Map<unknown, unknown> | Set<unknown> ? ReplaceOp<T> : T extends object ? { [K in keyof T]?: Override<T[K]> | DeleteOp | null } | ReplaceOp<T> : T;
|
|
21
|
-
//#endregion
|
|
22
|
-
export { Override };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
//#region ../hooks/dist/atoms/search/searchAPI.d.ts
|
|
2
|
-
|
|
3
|
-
//#region src/atoms/search/searchAPI.d.ts
|
|
4
|
-
type SelectedFilterOption = {
|
|
5
|
-
id: string;
|
|
6
|
-
displayName: string;
|
|
7
|
-
filterId: string;
|
|
8
|
-
filterItemId: string;
|
|
9
|
-
};
|
|
10
|
-
//#endregion
|
|
11
|
-
export { SelectedFilterOption };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
//#region ../hooks/dist/atoms/search/searchAPI.d.ts
|
|
2
|
-
|
|
3
|
-
//#region src/atoms/search/searchAPI.d.ts
|
|
4
|
-
type SelectedFilterOption = {
|
|
5
|
-
id: string;
|
|
6
|
-
displayName: string;
|
|
7
|
-
filterId: string;
|
|
8
|
-
filterItemId: string;
|
|
9
|
-
};
|
|
10
|
-
//#endregion
|
|
11
|
-
export { SelectedFilterOption };
|