@envive-ai/react-toolkit 0.3.2 → 0.3.5
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 +4 -3
- package/dist/components/RadioButton/RadioButton.d.ts +4 -3
- package/dist/components/RadioButtonGroup/RadioButtonGroup.d.cts +4 -3
- package/dist/components/RadioButtonGroup/RadioButtonGroup.d.ts +4 -3
- 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 +4 -3
- package/dist/components/SearchFilter/SearchFilterFooter.d.ts +4 -3
- 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 +2 -1
- package/dist/components/SearchFilter/types.d.ts +2 -1
- package/dist/components/SearchFilter/utils.d.cts +4 -3
- package/dist/components/SearchFilter/utils.d.ts +4 -3
- 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 +4 -3
- package/dist/components/SearchResultsFilterModal/SearchResultsFilterModal.d.ts +4 -3
- package/dist/components/SearchResultsFilterSidebar/SearchResultsFilter.d.cts +2 -1
- package/dist/components/SearchResultsFilterSidebar/SearchResultsFilter.d.ts +4 -3
- 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.ts +2 -2
- package/dist/components/ToggleButton/ToggleButton.d.cts +2 -2
- package/dist/components/ToggleButton/ToggleButton.d.ts +2 -2
- package/dist/hooks/dist/application/models/api/response.d.cts +11 -0
- package/dist/hooks/dist/application/models/api/response.d.ts +11 -0
- package/dist/hooks/dist/application/models/chatElementDisplayLocation.d.cts +27 -0
- package/dist/hooks/dist/application/models/chatElementDisplayLocation.d.ts +27 -0
- package/dist/hooks/dist/application/models/colorsConfig.d.cts +24 -0
- package/dist/hooks/dist/application/models/colorsConfig.d.ts +24 -0
- package/dist/hooks/dist/application/models/featureGates.d.cts +30 -0
- package/dist/hooks/dist/application/models/featureGates.d.ts +30 -0
- package/dist/hooks/dist/application/models/frontendConfig.d.cts +17 -0
- package/dist/hooks/dist/application/models/frontendConfig.d.ts +17 -0
- package/dist/hooks/dist/application/models/utilityTypes/camelCase.d.cts +71 -0
- package/dist/hooks/dist/application/models/utilityTypes/camelCase.d.ts +71 -0
- package/dist/hooks/dist/application/models/utilityTypes/camelCasedPropertiesDeep.d.cts +58 -0
- package/dist/hooks/dist/application/models/utilityTypes/camelCasedPropertiesDeep.d.ts +58 -0
- package/dist/hooks/dist/application/models/utilityTypes/internal.d.cts +22 -0
- package/dist/hooks/dist/application/models/utilityTypes/internal.d.ts +22 -0
- package/dist/hooks/dist/application/models/utilityTypes/splitWords.d.cts +31 -0
- package/dist/hooks/dist/application/models/utilityTypes/splitWords.d.ts +31 -0
- package/dist/hooks/dist/application/models/utilityTypes/trim.d.cts +30 -0
- package/dist/hooks/dist/application/models/utilityTypes/trim.d.ts +30 -0
- package/dist/hooks/dist/application/models/utilityTypes/unknownArray.d.cts +30 -0
- package/dist/hooks/dist/application/models/utilityTypes/unknownArray.d.ts +30 -0
- package/dist/hooks/dist/application/models/variantInfo/pageVisitInfo.d.cts +11 -0
- package/dist/hooks/dist/application/models/variantInfo/pageVisitInfo.d.ts +11 -0
- package/dist/hooks/dist/application/models/variantInfo/plpInfo.d.cts +8 -0
- package/dist/hooks/dist/application/models/variantInfo/plpInfo.d.ts +8 -0
- package/dist/hooks/dist/application/models/variantInfo/productInfo.d.cts +10 -0
- package/dist/hooks/dist/application/models/variantInfo/productInfo.d.ts +10 -0
- package/dist/hooks/dist/application/models/variantInfo/variantInfo.d.cts +31 -0
- package/dist/hooks/dist/application/models/variantInfo/variantInfo.d.ts +31 -0
- package/dist/hooks/dist/application/utils/overrides.d.cts +22 -0
- package/dist/hooks/dist/application/utils/overrides.d.ts +22 -0
- package/dist/hooks/dist/atoms/search/searchAPI.d.cts +11 -0
- package/dist/hooks/dist/atoms/search/searchAPI.d.ts +11 -0
- package/dist/hooks/dist/contexts/types.d.cts +672 -0
- package/dist/hooks/dist/contexts/types.d.ts +672 -0
- package/dist/hooks/dist/hooks/utils.d.cts +9 -0
- package/dist/hooks/dist/hooks/utils.d.ts +9 -0
- package/dist/hooks/dist/merchants/domInsertion.d.cts +15 -0
- package/dist/hooks/dist/merchants/domInsertion.d.ts +15 -0
- package/dist/hooks/dist/merchants/gridInsertion.d.cts +22 -0
- package/dist/hooks/dist/merchants/gridInsertion.d.ts +22 -0
- package/dist/hooks/dist/types/customerService.d.cts +24 -0
- package/dist/hooks/dist/types/customerService.d.ts +24 -0
- package/dist/hooks/dist/types/custservice-types.d.cts +10 -0
- package/dist/hooks/dist/types/custservice-types.d.ts +10 -0
- package/dist/hooks/dist/types/enviveConfig.d.cts +30 -0
- package/dist/hooks/dist/types/enviveConfig.d.ts +30 -0
- package/dist/hooks/dist/types/index.d.cts +6 -0
- package/dist/hooks/dist/types/index.d.ts +6 -0
- package/dist/hooks/dist/types/search-filter-types.d.cts +36 -0
- package/dist/hooks/dist/types/search-filter-types.d.ts +36 -0
- package/dist/hooks/dist/types/suggestionBarV2-types.d.cts +9 -0
- package/dist/hooks/dist/types/suggestionBarV2-types.d.ts +9 -0
- package/dist/hooks/dist/types/test-types.d.cts +8 -0
- package/dist/hooks/dist/types/test-types.d.ts +8 -0
- package/dist/util/colorVar.d.cts +1 -1
- package/dist/util/colorVar.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
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 };
|
|
@@ -0,0 +1,10 @@
|
|
|
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 };
|
|
@@ -0,0 +1,31 @@
|
|
|
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 };
|
|
@@ -0,0 +1,31 @@
|
|
|
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 };
|
|
@@ -0,0 +1,22 @@
|
|
|
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 };
|
|
@@ -0,0 +1,22 @@
|
|
|
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 };
|
|
@@ -0,0 +1,11 @@
|
|
|
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 };
|
|
@@ -0,0 +1,11 @@
|
|
|
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 };
|