@fast-simon/dashboard-utilities 1.0.96 → 1.0.97
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/@types/autocomplete.d.ts +58 -58
- package/dist/@types/autocomplete.js +1 -1
- package/dist/@types/autocomplete.js.map +1 -1
- package/dist/@types/banner.d.ts +7 -7
- package/dist/@types/banner.js +1 -1
- package/dist/@types/banner.js.map +1 -1
- package/dist/@types/categories.d.ts +113 -113
- package/dist/@types/categories.js +1 -1
- package/dist/@types/categories.js.map +1 -1
- package/dist/@types/categoriesNavigation.d.ts +27 -27
- package/dist/@types/categoriesNavigation.js +1 -1
- package/dist/@types/categoriesNavigation.js.map +1 -1
- package/dist/@types/context.d.ts +49 -49
- package/dist/@types/context.js +1 -1
- package/dist/@types/context.js.map +1 -1
- package/dist/@types/currency.d.ts +1 -1
- package/dist/@types/currency.js +1 -1
- package/dist/@types/currency.js.map +1 -1
- package/dist/@types/editorProduct.d.ts +26 -26
- package/dist/@types/editorProduct.js +5 -5
- package/dist/@types/editorProduct.js.map +1 -1
- package/dist/@types/facets.d.ts +59 -59
- package/dist/@types/facets.js +18 -18
- package/dist/@types/facets.js.map +1 -1
- package/dist/@types/iconProps.d.ts +9 -9
- package/dist/@types/iconProps.js +1 -1
- package/dist/@types/iconProps.js.map +1 -1
- package/dist/@types/narrow.d.ts +7 -7
- package/dist/@types/narrow.js +1 -1
- package/dist/@types/narrow.js.map +1 -1
- package/dist/@types/product.d.ts +160 -160
- package/dist/@types/product.js +7 -7
- package/dist/@types/product.js.map +1 -1
- package/dist/@types/productLabel.d.ts +1 -1
- package/dist/@types/productLabel.js +1 -1
- package/dist/@types/promoTile.d.ts +11 -11
- package/dist/@types/promoTile.js +1 -1
- package/dist/@types/promoTile.js.map +1 -1
- package/dist/@types/results.d.ts +142 -142
- package/dist/@types/results.js +1 -1
- package/dist/@types/results.js.map +1 -1
- package/dist/@types/sideMenu.d.ts +19 -19
- package/dist/@types/sideMenu.js +1 -1
- package/dist/@types/sideMenu.js.map +1 -1
- package/dist/@types/sortBy.d.ts +3 -3
- package/dist/@types/sortBy.js +1 -1
- package/dist/@types/sortBy.js.map +1 -1
- package/dist/@types/widget.d.ts +8 -8
- package/dist/@types/widget.js +1 -1
- package/dist/@types/widget.js.map +1 -1
- package/dist/App.d.ts +3 -3
- package/dist/App.js +14 -14
- package/dist/App.js.map +1 -1
- package/dist/components/BackOfficeFiltersMenu/BackOfficeFiltersMenu.d.ts +9 -9
- package/dist/components/BackOfficeFiltersMenu/BackOfficeFiltersMenu.js +73 -73
- package/dist/components/BackOfficeFiltersMenu/BackOfficeFiltersMenu.js.map +1 -1
- package/dist/components/BackOfficeFiltersMenu/index.d.ts +1 -1
- package/dist/components/BackOfficeFiltersMenu/index.js +1 -1
- package/dist/components/BackOfficeFiltersMenu/index.js.map +1 -1
- package/dist/components/BackOfficeFiltersMenu/styles.module.css +9 -9
- package/dist/components/BackOfficeFiltersMenu/utils.d.ts +7 -7
- package/dist/components/BackOfficeFiltersMenu/utils.js +238 -238
- package/dist/components/BackOfficeFiltersMenu/utils.js.map +1 -1
- package/dist/components/CheckboxFilter/Checkbox/Checkbox.d.ts +10 -10
- package/dist/components/CheckboxFilter/Checkbox/Checkbox.js +6 -6
- package/dist/components/CheckboxFilter/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/CheckboxFilter/Checkbox/styles.module.css +142 -142
- package/dist/components/CheckboxFilter/CheckboxFilter.d.ts +6 -6
- package/dist/components/CheckboxFilter/CheckboxFilter.js +8 -8
- package/dist/components/CheckboxFilter/CheckboxFilter.js.map +1 -1
- package/dist/components/CheckboxFilter/styles.module.css +4 -4
- package/dist/components/DragAndDrop/DndContextWrapper.d.ts +19 -19
- package/dist/components/DragAndDrop/DndContextWrapper.js +30 -30
- package/dist/components/DragAndDrop/DndContextWrapper.js.map +1 -1
- package/dist/components/DragAndDrop/Droppable.d.ts +7 -7
- package/dist/components/DragAndDrop/Droppable.js +9 -9
- package/dist/components/DragAndDrop/Droppable.js.map +1 -1
- package/dist/components/DragAndDrop/SortableItem.d.ts +13 -13
- package/dist/components/DragAndDrop/SortableItem.js +38 -38
- package/dist/components/DragAndDrop/SortableItem.js.map +1 -1
- package/dist/components/DragAndDrop/styles.module.css +15 -15
- package/dist/components/FacetItem/FacetItem.d.ts +13 -13
- package/dist/components/FacetItem/FacetItem.js +39 -39
- package/dist/components/FacetItem/FacetItem.js.map +1 -1
- package/dist/components/FacetItem/styles.module.css +54 -54
- package/dist/components/FastSimonApi/FastSimonApi.d.ts +39 -39
- package/dist/components/FastSimonApi/FastSimonApi.js +605 -605
- package/dist/components/FastSimonApi/FastSimonApi.js.map +1 -1
- package/dist/components/FastSimonApi/context.d.ts +62 -62
- package/dist/components/FastSimonApi/context.js +9 -9
- package/dist/components/FastSimonApi/context.js.map +1 -1
- package/dist/components/FastSimonApi/index.d.ts +3 -3
- package/dist/components/FastSimonApi/index.js +2 -2
- package/dist/components/FastSimonApi/index.js.map +1 -1
- package/dist/components/FastSimonApi/reducer.d.ts +458 -458
- package/dist/components/FastSimonApi/reducer.js +76 -76
- package/dist/components/FastSimonApi/reducer.js.map +1 -1
- package/dist/components/FromToFilter/From/From.d.ts +17 -17
- package/dist/components/FromToFilter/From/From.js +21 -21
- package/dist/components/FromToFilter/From/From.js.map +1 -1
- package/dist/components/FromToFilter/From/styles.module.css +8 -8
- package/dist/components/FromToFilter/FromToFilter.d.ts +14 -14
- package/dist/components/FromToFilter/FromToFilter.js +57 -57
- package/dist/components/FromToFilter/FromToFilter.js.map +1 -1
- package/dist/components/FromToFilter/To/To.d.ts +18 -18
- package/dist/components/FromToFilter/To/To.js +22 -22
- package/dist/components/FromToFilter/To/To.js.map +1 -1
- package/dist/components/FromToFilter/To/styles.module.css +8 -8
- package/dist/components/FromToFilter/styles.module.css +33 -33
- package/dist/components/FromToFilter/utils.d.ts +25 -25
- package/dist/components/FromToFilter/utils.js +6 -6
- package/dist/components/FromToFilter/utils.js.map +1 -1
- package/dist/components/InStoreFiltersMenu/InStoreFiltersMenu.d.ts +10 -10
- package/dist/components/InStoreFiltersMenu/InStoreFiltersMenu.js +33 -33
- package/dist/components/InStoreFiltersMenu/InStoreFiltersMenu.js.map +1 -1
- package/dist/components/InStoreFiltersMenu/index.d.ts +1 -1
- package/dist/components/InStoreFiltersMenu/index.js +1 -1
- package/dist/components/InStoreFiltersMenu/index.js.map +1 -1
- package/dist/components/InStoreFiltersMenu/styles.module.css +9 -9
- package/dist/components/Input/Input.d.ts +22 -22
- package/dist/components/Input/Input.js +48 -48
- package/dist/components/Input/Input.js.map +1 -1
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/Input/index.js.map +1 -1
- package/dist/components/Input/styles.module.css +2 -2
- package/dist/components/LastReceivedDateFilter/LastReceivedDate.d.ts +9 -9
- package/dist/components/LastReceivedDateFilter/LastReceivedDate.js +87 -87
- package/dist/components/LastReceivedDateFilter/LastReceivedDate.js.map +1 -1
- package/dist/components/LastReceivedDateFilter/styles.module.css +40 -40
- package/dist/components/LastReceivedDateFilter/utils.d.ts +3 -3
- package/dist/components/LastReceivedDateFilter/utils.js +42 -42
- package/dist/components/LastReceivedDateFilter/utils.js.map +1 -1
- package/dist/components/ProductLabel/ProductLabel.d.ts +11 -11
- package/dist/components/ProductLabel/ProductLabel.js +10 -10
- package/dist/components/ProductLabel/ProductLabel.js.map +1 -1
- package/dist/components/ProductLabel/index.d.ts +1 -1
- package/dist/components/ProductLabel/index.js +1 -1
- package/dist/components/ProductLabel/index.js.map +1 -1
- package/dist/components/ProductLabel/styles.module.css +41 -41
- package/dist/components/ProductLabel/utils.d.ts +8 -8
- package/dist/components/ProductLabel/utils.js +8 -8
- package/dist/components/ProductLabel/utils.js.map +1 -1
- package/dist/components/RadioFilter/Radio/Radio.d.ts +10 -10
- package/dist/components/RadioFilter/Radio/Radio.js +6 -6
- package/dist/components/RadioFilter/Radio/Radio.js.map +1 -1
- package/dist/components/RadioFilter/Radio/styles.module.css +144 -144
- package/dist/components/RadioFilter/RadioFilter.d.ts +9 -9
- package/dist/components/RadioFilter/RadioFilter.js +44 -44
- package/dist/components/RadioFilter/RadioFilter.js.map +1 -1
- package/dist/components/RadioFilter/styles.module.css +22 -22
- package/dist/components/RadioFilter/utils.d.ts +1 -1
- package/dist/components/RadioFilter/utils.js +7 -7
- package/dist/components/RadioFilter/utils.js.map +1 -1
- package/dist/components/ReactDatePicker/ReactDatePicker.d.ts +11 -11
- package/dist/components/ReactDatePicker/ReactDatePicker.js +15 -15
- package/dist/components/ReactDatePicker/ReactDatePicker.js.map +1 -1
- package/dist/components/ReactDatePicker/index.d.ts +1 -1
- package/dist/components/ReactDatePicker/index.js +1 -1
- package/dist/components/ReactDatePicker/index.js.map +1 -1
- package/dist/components/ReactDatePicker/styles.module.css +2 -2
- package/dist/components/RenderIfVisible/RenderIfVisible.d.ts +12 -12
- package/dist/components/RenderIfVisible/RenderIfVisible.js +58 -58
- package/dist/components/RenderIfVisible/RenderIfVisible.js.map +1 -1
- package/dist/components/RenderIfVisible/index.d.ts +1 -1
- package/dist/components/RenderIfVisible/index.js +1 -1
- package/dist/components/RenderIfVisible/index.js.map +1 -1
- package/dist/components/ScrollToTop/ScrollToTop.d.ts +6 -6
- package/dist/components/ScrollToTop/ScrollToTop.js +27 -27
- package/dist/components/ScrollToTop/ScrollToTop.js.map +1 -1
- package/dist/components/ScrollToTop/styles.module.css +18 -18
- package/dist/components/SelectCard/SelectCard.d.ts +5 -5
- package/dist/components/SelectCard/SelectCard.js +6 -6
- package/dist/components/SelectCard/SelectCard.js.map +1 -1
- package/dist/components/SelectCard/index.d.ts +1 -1
- package/dist/components/SelectCard/index.js +1 -1
- package/dist/components/SelectCard/index.js.map +1 -1
- package/dist/components/SelectCard/styles.module.css +20 -20
- package/dist/components/SingleFilter/SingleFilter.d.ts +11 -11
- package/dist/components/SingleFilter/SingleFilter.js +89 -89
- package/dist/components/SingleFilter/SingleFilter.js.map +1 -1
- package/dist/components/SingleFilter/styles.module.css +23 -23
- package/dist/components/SingleFilter/utils.d.ts +3 -3
- package/dist/components/SingleFilter/utils.js +41 -41
- package/dist/components/SingleFilter/utils.js.map +1 -1
- package/dist/components/SliderFilter/SliderFilter.d.ts +20 -20
- package/dist/components/SliderFilter/SliderFilter.js +45 -45
- package/dist/components/SliderFilter/SliderFilter.js.map +1 -1
- package/dist/components/SliderFilter/index.d.ts +1 -1
- package/dist/components/SliderFilter/index.js +1 -1
- package/dist/components/SliderFilter/index.js.map +1 -1
- package/dist/components/SliderFilter/styles.module.css +15 -15
- package/dist/components/Tooltip/Tooltip.d.ts +8 -8
- package/dist/components/Tooltip/Tooltip.js +8 -8
- package/dist/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/components/Tooltip/styles.module.css +33 -33
- package/dist/components/common.d.ts +23 -23
- package/dist/components/common.js +30 -30
- package/dist/components/common.js.map +1 -1
- package/dist/components/productGrid/ProductGrid.d.ts +11 -11
- package/dist/components/productGrid/ProductGrid.js +32 -32
- package/dist/components/productGrid/ProductGrid.js.map +1 -1
- package/dist/components/productGrid/index.d.ts +1 -1
- package/dist/components/productGrid/index.js +1 -1
- package/dist/components/productGrid/index.js.map +1 -1
- package/dist/components/productGrid/styles.module.css +25 -25
- package/dist/icons/BackOfficeFiltersIcon.d.ts +2 -2
- package/dist/icons/BackOfficeFiltersIcon.js +6 -6
- package/dist/icons/BackOfficeFiltersIcon.js.map +1 -1
- package/dist/icons/BannersIcon.d.ts +2 -2
- package/dist/icons/BannersIcon.js +6 -6
- package/dist/icons/BannersIcon.js.map +1 -1
- package/dist/icons/GeneralIcon.d.ts +2 -2
- package/dist/icons/GeneralIcon.js +6 -6
- package/dist/icons/GeneralIcon.js.map +1 -1
- package/dist/icons/HelpIcon.d.ts +7 -7
- package/dist/icons/HelpIcon.js +4 -4
- package/dist/icons/HelpIcon.js.map +1 -1
- package/dist/icons/InStoreFiltersIcon.d.ts +2 -2
- package/dist/icons/InStoreFiltersIcon.js +6 -6
- package/dist/icons/InStoreFiltersIcon.js.map +1 -1
- package/dist/icons/PromoteIcon.d.ts +2 -2
- package/dist/icons/PromoteIcon.js +6 -6
- package/dist/icons/PromoteIcon.js.map +1 -1
- package/dist/icons/RemoveIcon.d.ts +2 -2
- package/dist/icons/RemoveIcon.js +6 -6
- package/dist/icons/RemoveIcon.js.map +1 -1
- package/dist/icons/RestoreIcon.d.ts +2 -2
- package/dist/icons/RestoreIcon.js +6 -6
- package/dist/icons/RestoreIcon.js.map +1 -1
- package/dist/icons/styles.module.css +60 -60
- package/dist/index.css +13 -0
- package/dist/index.d.ts +41 -41
- package/dist/index.js +32 -32
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts +1 -1
- package/dist/main.js +5 -5
- package/dist/main.js.map +1 -1
- package/dist/services/API.d.ts +21 -21
- package/dist/services/API.js +49 -49
- package/dist/services/API.js.map +1 -1
- package/dist/services/autocomplete.d.ts +4 -4
- package/dist/services/autocomplete.js +25 -25
- package/dist/services/autocomplete.js.map +1 -1
- package/dist/services/getFormatProducts.d.ts +13 -13
- package/dist/services/getFormatProducts.js +43 -43
- package/dist/services/getFormatProducts.js.map +1 -1
- package/dist/services/landingPage.d.ts +28 -28
- package/dist/services/landingPage.js +86 -86
- package/dist/services/landingPage.js.map +1 -1
- package/dist/services/products.d.ts +9 -9
- package/dist/services/products.js +30 -30
- package/dist/services/products.js.map +1 -1
- package/dist/services/search.d.ts +13 -13
- package/dist/services/search.js +113 -113
- package/dist/services/search.js.map +1 -1
- package/dist/services/smartCollections.d.ts +5 -5
- package/dist/services/smartCollections.js +44 -44
- package/dist/services/smartCollections.js.map +1 -1
- package/dist/utils/customTagsFilters.d.ts +4 -4
- package/dist/utils/customTagsFilters.js +9 -9
- package/dist/utils/customTagsFilters.js.map +1 -1
- package/dist/utils/getCacheSettings.d.ts +16 -16
- package/dist/utils/getCacheSettings.js +25 -25
- package/dist/utils/getCacheSettings.js.map +1 -1
- package/dist/utils/getInternalURL.d.ts +1 -1
- package/dist/utils/getInternalURL.js +7 -7
- package/dist/utils/getInternalURL.js.map +1 -1
- package/dist/utils/getLSVectorSearch.d.ts +4 -4
- package/dist/utils/getLSVectorSearch.js +8 -8
- package/dist/utils/getLSVectorSearch.js.map +1 -1
- package/dist/utils/useDragToSelect.d.ts +13 -13
- package/dist/utils/useDragToSelect.js +172 -172
- package/dist/utils/useDragToSelect.js.map +1 -1
- package/dist/utils/useProductsPerRow.d.ts +3 -3
- package/dist/utils/useProductsPerRow.js +18 -18
- package/dist/utils/useProductsPerRow.js.map +1 -1
- package/package.json +64 -64
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
import { ServerProduct } from "./product";
|
|
2
|
-
import { Facet, FastCategory, FastTurbolinks } from "./facets";
|
|
3
|
-
import { PopularSearch, ContextFilteringData, QueryUnderstanding } from "./results";
|
|
4
|
-
import { SortBy } from "./sortBy";
|
|
5
|
-
export interface AutocompleteResults {
|
|
6
|
-
totalResults: number;
|
|
7
|
-
categories?: FastCategory[];
|
|
8
|
-
products: ServerProduct[];
|
|
9
|
-
turbolinks?: FastTurbolinks[];
|
|
10
|
-
popularSearches: PopularSearch[];
|
|
11
|
-
query: string;
|
|
12
|
-
}
|
|
13
|
-
export interface autocompleteProps {
|
|
14
|
-
storeID: number;
|
|
15
|
-
uuid: string;
|
|
16
|
-
siteKey?: string;
|
|
17
|
-
cdn?: number;
|
|
18
|
-
term: string;
|
|
19
|
-
userToken: string;
|
|
20
|
-
sessionStart: number;
|
|
21
|
-
withAttributes?: boolean;
|
|
22
|
-
segments?: string[];
|
|
23
|
-
hasShopifyMarkets?: boolean;
|
|
24
|
-
disable_turbolinks?: boolean;
|
|
25
|
-
disable_strategies?: boolean;
|
|
26
|
-
disable_merchandising?: boolean;
|
|
27
|
-
disable_semantics?: boolean;
|
|
28
|
-
disable_merchandising_rules?: boolean;
|
|
29
|
-
disable_antonyms?: boolean;
|
|
30
|
-
market_context?: string | null;
|
|
31
|
-
}
|
|
32
|
-
export interface AutocompleteReasoningResponse {
|
|
33
|
-
auto_facets?: boolean;
|
|
34
|
-
isp_quick_view_mode?: number;
|
|
35
|
-
products: ServerProduct[];
|
|
36
|
-
merch: {
|
|
37
|
-
prorduct: any;
|
|
38
|
-
rules: any;
|
|
39
|
-
strategy: any;
|
|
40
|
-
visual: any;
|
|
41
|
-
};
|
|
42
|
-
personalized_products: any[];
|
|
43
|
-
term: string;
|
|
44
|
-
totalResults: number;
|
|
45
|
-
uuid: string;
|
|
46
|
-
sortBy?: SortBy;
|
|
47
|
-
within_search_results_for?: string;
|
|
48
|
-
isNoResults?: any;
|
|
49
|
-
pageCount?: number;
|
|
50
|
-
narrow?: [string, string, string][];
|
|
51
|
-
facets?: Facet[];
|
|
52
|
-
page?: number;
|
|
53
|
-
results_for?: string;
|
|
54
|
-
id_list?: number[];
|
|
55
|
-
turbolink?: string;
|
|
56
|
-
context?: ContextFilteringData;
|
|
57
|
-
query_understanding?: QueryUnderstanding;
|
|
58
|
-
}
|
|
1
|
+
import { ServerProduct } from "./product";
|
|
2
|
+
import { Facet, FastCategory, FastTurbolinks } from "./facets";
|
|
3
|
+
import { PopularSearch, ContextFilteringData, QueryUnderstanding } from "./results";
|
|
4
|
+
import { SortBy } from "./sortBy";
|
|
5
|
+
export interface AutocompleteResults {
|
|
6
|
+
totalResults: number;
|
|
7
|
+
categories?: FastCategory[];
|
|
8
|
+
products: ServerProduct[];
|
|
9
|
+
turbolinks?: FastTurbolinks[];
|
|
10
|
+
popularSearches: PopularSearch[];
|
|
11
|
+
query: string;
|
|
12
|
+
}
|
|
13
|
+
export interface autocompleteProps {
|
|
14
|
+
storeID: number;
|
|
15
|
+
uuid: string;
|
|
16
|
+
siteKey?: string;
|
|
17
|
+
cdn?: number;
|
|
18
|
+
term: string;
|
|
19
|
+
userToken: string;
|
|
20
|
+
sessionStart: number;
|
|
21
|
+
withAttributes?: boolean;
|
|
22
|
+
segments?: string[];
|
|
23
|
+
hasShopifyMarkets?: boolean;
|
|
24
|
+
disable_turbolinks?: boolean;
|
|
25
|
+
disable_strategies?: boolean;
|
|
26
|
+
disable_merchandising?: boolean;
|
|
27
|
+
disable_semantics?: boolean;
|
|
28
|
+
disable_merchandising_rules?: boolean;
|
|
29
|
+
disable_antonyms?: boolean;
|
|
30
|
+
market_context?: string | null;
|
|
31
|
+
}
|
|
32
|
+
export interface AutocompleteReasoningResponse {
|
|
33
|
+
auto_facets?: boolean;
|
|
34
|
+
isp_quick_view_mode?: number;
|
|
35
|
+
products: ServerProduct[];
|
|
36
|
+
merch: {
|
|
37
|
+
prorduct: any;
|
|
38
|
+
rules: any;
|
|
39
|
+
strategy: any;
|
|
40
|
+
visual: any;
|
|
41
|
+
};
|
|
42
|
+
personalized_products: any[];
|
|
43
|
+
term: string;
|
|
44
|
+
totalResults: number;
|
|
45
|
+
uuid: string;
|
|
46
|
+
sortBy?: SortBy;
|
|
47
|
+
within_search_results_for?: string;
|
|
48
|
+
isNoResults?: any;
|
|
49
|
+
pageCount?: number;
|
|
50
|
+
narrow?: [string, string, string][];
|
|
51
|
+
facets?: Facet[];
|
|
52
|
+
page?: number;
|
|
53
|
+
results_for?: string;
|
|
54
|
+
id_list?: number[];
|
|
55
|
+
turbolink?: string;
|
|
56
|
+
context?: ContextFilteringData;
|
|
57
|
+
query_understanding?: QueryUnderstanding;
|
|
58
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=autocomplete.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete.js","sourceRoot":"","sources":["../../src/@types/autocomplete.ts"],"names":[],"mappings":"","sourcesContent":["import {ServerProduct} from \"./product\";\
|
|
1
|
+
{"version":3,"file":"autocomplete.js","sourceRoot":"","sources":["../../src/@types/autocomplete.ts"],"names":[],"mappings":"","sourcesContent":["import {ServerProduct} from \"./product\";\nimport {Facet, FastCategory, FastTurbolinks} from \"./facets\";\nimport {PopularSearch, ContextFilteringData, QueryUnderstanding} from \"./results\";\nimport {SortBy} from \"./sortBy\";\n\n\n\nexport interface AutocompleteResults {\n totalResults: number,\n categories?: FastCategory[],\n products: ServerProduct[]\n turbolinks?: FastTurbolinks[]\n popularSearches: PopularSearch[]\n query: string\n}\n\nexport interface autocompleteProps {\n storeID: number\n uuid: string\n siteKey?:string\n cdn?: number\n term: string,\n userToken: string,\n sessionStart: number,\n withAttributes?: boolean\n segments?: string[],\n hasShopifyMarkets?: boolean,\n disable_turbolinks?:boolean\n disable_strategies?:boolean\n disable_merchandising?:boolean\n disable_semantics?:boolean\n disable_merchandising_rules?:boolean\n disable_antonyms?:boolean\n market_context?: string | null // Region code for market-specific filtering (e.g., \"US\", \"CA\", \"UK\")\n}\nexport interface AutocompleteReasoningResponse {\n auto_facets?: boolean\n isp_quick_view_mode?: number\n products: ServerProduct[]\n merch: {\n prorduct:any,\n rules:any,\n strategy:any,\n visual:any\n }\n personalized_products:any[]\n term:string\n totalResults: number\n uuid:string\n\n //all bellow wont be never field but to keep consistent with all the AIExplainer implementation\n sortBy?:SortBy\n within_search_results_for?: string,\n isNoResults?:any,\n pageCount?:number,\n narrow?: [string, string, string][],\n facets?: Facet[],\n page?: number,\n results_for?: string,\n id_list?:number[]\n turbolink?: string\n context?: ContextFilteringData // Context-based filtering data (market contexts)\n query_understanding?: QueryUnderstanding\n}"]}
|
package/dist/@types/banner.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface Banner {
|
|
2
|
-
title: string;
|
|
3
|
-
image: string;
|
|
4
|
-
mobileImage?: string;
|
|
5
|
-
id: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const videoFormats: string[];
|
|
1
|
+
export interface Banner {
|
|
2
|
+
title: string;
|
|
3
|
+
image: string;
|
|
4
|
+
mobileImage?: string;
|
|
5
|
+
id: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const videoFormats: string[];
|
package/dist/@types/banner.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const videoFormats = [".mp4", ".mov", ".avi", ".wmv", ".mkv", ".webm", ".flv", ".m4v", ".mpg", ".mpeg"];
|
|
1
|
+
export const videoFormats = [".mp4", ".mov", ".avi", ".wmv", ".mkv", ".webm", ".flv", ".m4v", ".mpg", ".mpeg"];
|
|
2
2
|
//# sourceMappingURL=banner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"banner.js","sourceRoot":"","sources":["../../src/@types/banner.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC","sourcesContent":["export interface Banner {\
|
|
1
|
+
{"version":3,"file":"banner.js","sourceRoot":"","sources":["../../src/@types/banner.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC","sourcesContent":["export interface Banner {\n title: string;\n image: string;\n mobileImage?: string;\n id: string;\n}\n\nexport const videoFormats = [\".mp4\", \".mov\", \".avi\", \".wmv\", \".mkv\", \".webm\", \".flv\", \".m4v\", \".mpg\", \".mpeg\"];\n"]}
|
|
@@ -1,113 +1,113 @@
|
|
|
1
|
-
import { SortBy } from "./sortBy";
|
|
2
|
-
import { Narrow, ServerNarrow } from "./narrow";
|
|
3
|
-
import { ServerProduct } from "./product";
|
|
4
|
-
import { ServerFacet } from "./facets";
|
|
5
|
-
import { ContextFilteringData, QueryUnderstanding } from "./results";
|
|
6
|
-
export type AncestorCategory = [string, string, string];
|
|
7
|
-
export interface RelatedCategory {
|
|
8
|
-
id: string;
|
|
9
|
-
l: string;
|
|
10
|
-
t: string;
|
|
11
|
-
u: string;
|
|
12
|
-
}
|
|
13
|
-
export type CategoryAncestor = [string, string, string];
|
|
14
|
-
export interface Category {
|
|
15
|
-
d: string;
|
|
16
|
-
id: string;
|
|
17
|
-
l: string;
|
|
18
|
-
p_id: string;
|
|
19
|
-
t: string;
|
|
20
|
-
u: string;
|
|
21
|
-
parent_name?: string;
|
|
22
|
-
}
|
|
23
|
-
export interface FastCategory {
|
|
24
|
-
d: string;
|
|
25
|
-
id: string;
|
|
26
|
-
l: string;
|
|
27
|
-
p_id: string;
|
|
28
|
-
t: string;
|
|
29
|
-
u: string;
|
|
30
|
-
parent_name?: string;
|
|
31
|
-
}
|
|
32
|
-
export interface smartCollectionsProps {
|
|
33
|
-
storeID: number;
|
|
34
|
-
uuid: string;
|
|
35
|
-
siteKey?: string;
|
|
36
|
-
cdn: number;
|
|
37
|
-
categoryID: string;
|
|
38
|
-
userToken: string;
|
|
39
|
-
sessionStart: number;
|
|
40
|
-
page?: number;
|
|
41
|
-
productsPerPage?: number;
|
|
42
|
-
sortBy?: SortBy;
|
|
43
|
-
narrowBy?: ServerNarrow[];
|
|
44
|
-
facetRequired?: FacetRequired;
|
|
45
|
-
withAttributes?: boolean;
|
|
46
|
-
recent?: string;
|
|
47
|
-
rec?: boolean;
|
|
48
|
-
searchWithinSearch?: string;
|
|
49
|
-
segments?: string[];
|
|
50
|
-
hasShopifyMarkets?: boolean;
|
|
51
|
-
disable_turbolinks?: boolean;
|
|
52
|
-
disable_strategies?: boolean;
|
|
53
|
-
disable_merchandising?: boolean;
|
|
54
|
-
disable_semantics?: boolean;
|
|
55
|
-
disable_merchandising_rules?: boolean;
|
|
56
|
-
disable_antonyms?: boolean;
|
|
57
|
-
custom_sort_settings?: {
|
|
58
|
-
personalization_rank: number;
|
|
59
|
-
creation_date: number;
|
|
60
|
-
popularity: number;
|
|
61
|
-
inventory: number;
|
|
62
|
-
};
|
|
63
|
-
with_product_analytics?: boolean;
|
|
64
|
-
market_context?: string | null;
|
|
65
|
-
}
|
|
66
|
-
export type FacetRequired = 0 | 1 | 2;
|
|
67
|
-
export type smartCollectionsCallback = ({}: {
|
|
68
|
-
action: "products" | "facets and products";
|
|
69
|
-
payload: smartCollectionsResults;
|
|
70
|
-
}) => void;
|
|
71
|
-
export interface smartCollectionsResults {
|
|
72
|
-
ancestors: CategoryAncestor[];
|
|
73
|
-
categoryID: string;
|
|
74
|
-
name: string;
|
|
75
|
-
category_name: string;
|
|
76
|
-
products: ServerProduct[];
|
|
77
|
-
facets?: ServerFacet[];
|
|
78
|
-
totalResults: number;
|
|
79
|
-
sortBy?: SortBy;
|
|
80
|
-
narrow?: Narrow[];
|
|
81
|
-
isNoResults?: boolean;
|
|
82
|
-
page?: number;
|
|
83
|
-
pageCount?: number;
|
|
84
|
-
avoidPrefixList?: string[];
|
|
85
|
-
merch?: any;
|
|
86
|
-
bannerHTML?: string;
|
|
87
|
-
turbolink?: string;
|
|
88
|
-
hiddenProducts?: ServerProduct[];
|
|
89
|
-
within_search_results_for?: string;
|
|
90
|
-
results_for?: string;
|
|
91
|
-
id_list?: number[];
|
|
92
|
-
context?: ContextFilteringData;
|
|
93
|
-
analytics?: {
|
|
94
|
-
badges?: {
|
|
95
|
-
winners?: Record<string, string>;
|
|
96
|
-
overexposed?: Record<string, string>;
|
|
97
|
-
new_arrivals?: string[];
|
|
98
|
-
};
|
|
99
|
-
key_hidden_winners?: string;
|
|
100
|
-
key_overexposed?: string;
|
|
101
|
-
};
|
|
102
|
-
query_understanding?: QueryUnderstanding;
|
|
103
|
-
}
|
|
104
|
-
export type inventoryCallback = ({}: {
|
|
105
|
-
action: "products inventory";
|
|
106
|
-
payload: {
|
|
107
|
-
productsInventory: productsInventoryResults[];
|
|
108
|
-
};
|
|
109
|
-
}) => void;
|
|
110
|
-
export interface productsInventoryResults {
|
|
111
|
-
id: string;
|
|
112
|
-
totalInventory: number;
|
|
113
|
-
}
|
|
1
|
+
import { SortBy } from "./sortBy";
|
|
2
|
+
import { Narrow, ServerNarrow } from "./narrow";
|
|
3
|
+
import { ServerProduct } from "./product";
|
|
4
|
+
import { ServerFacet } from "./facets";
|
|
5
|
+
import { ContextFilteringData, QueryUnderstanding } from "./results";
|
|
6
|
+
export type AncestorCategory = [string, string, string];
|
|
7
|
+
export interface RelatedCategory {
|
|
8
|
+
id: string;
|
|
9
|
+
l: string;
|
|
10
|
+
t: string;
|
|
11
|
+
u: string;
|
|
12
|
+
}
|
|
13
|
+
export type CategoryAncestor = [string, string, string];
|
|
14
|
+
export interface Category {
|
|
15
|
+
d: string;
|
|
16
|
+
id: string;
|
|
17
|
+
l: string;
|
|
18
|
+
p_id: string;
|
|
19
|
+
t: string;
|
|
20
|
+
u: string;
|
|
21
|
+
parent_name?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface FastCategory {
|
|
24
|
+
d: string;
|
|
25
|
+
id: string;
|
|
26
|
+
l: string;
|
|
27
|
+
p_id: string;
|
|
28
|
+
t: string;
|
|
29
|
+
u: string;
|
|
30
|
+
parent_name?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface smartCollectionsProps {
|
|
33
|
+
storeID: number;
|
|
34
|
+
uuid: string;
|
|
35
|
+
siteKey?: string;
|
|
36
|
+
cdn: number;
|
|
37
|
+
categoryID: string;
|
|
38
|
+
userToken: string;
|
|
39
|
+
sessionStart: number;
|
|
40
|
+
page?: number;
|
|
41
|
+
productsPerPage?: number;
|
|
42
|
+
sortBy?: SortBy;
|
|
43
|
+
narrowBy?: ServerNarrow[];
|
|
44
|
+
facetRequired?: FacetRequired;
|
|
45
|
+
withAttributes?: boolean;
|
|
46
|
+
recent?: string;
|
|
47
|
+
rec?: boolean;
|
|
48
|
+
searchWithinSearch?: string;
|
|
49
|
+
segments?: string[];
|
|
50
|
+
hasShopifyMarkets?: boolean;
|
|
51
|
+
disable_turbolinks?: boolean;
|
|
52
|
+
disable_strategies?: boolean;
|
|
53
|
+
disable_merchandising?: boolean;
|
|
54
|
+
disable_semantics?: boolean;
|
|
55
|
+
disable_merchandising_rules?: boolean;
|
|
56
|
+
disable_antonyms?: boolean;
|
|
57
|
+
custom_sort_settings?: {
|
|
58
|
+
personalization_rank: number;
|
|
59
|
+
creation_date: number;
|
|
60
|
+
popularity: number;
|
|
61
|
+
inventory: number;
|
|
62
|
+
};
|
|
63
|
+
with_product_analytics?: boolean;
|
|
64
|
+
market_context?: string | null;
|
|
65
|
+
}
|
|
66
|
+
export type FacetRequired = 0 | 1 | 2;
|
|
67
|
+
export type smartCollectionsCallback = ({}: {
|
|
68
|
+
action: "products" | "facets and products";
|
|
69
|
+
payload: smartCollectionsResults;
|
|
70
|
+
}) => void;
|
|
71
|
+
export interface smartCollectionsResults {
|
|
72
|
+
ancestors: CategoryAncestor[];
|
|
73
|
+
categoryID: string;
|
|
74
|
+
name: string;
|
|
75
|
+
category_name: string;
|
|
76
|
+
products: ServerProduct[];
|
|
77
|
+
facets?: ServerFacet[];
|
|
78
|
+
totalResults: number;
|
|
79
|
+
sortBy?: SortBy;
|
|
80
|
+
narrow?: Narrow[];
|
|
81
|
+
isNoResults?: boolean;
|
|
82
|
+
page?: number;
|
|
83
|
+
pageCount?: number;
|
|
84
|
+
avoidPrefixList?: string[];
|
|
85
|
+
merch?: any;
|
|
86
|
+
bannerHTML?: string;
|
|
87
|
+
turbolink?: string;
|
|
88
|
+
hiddenProducts?: ServerProduct[];
|
|
89
|
+
within_search_results_for?: string;
|
|
90
|
+
results_for?: string;
|
|
91
|
+
id_list?: number[];
|
|
92
|
+
context?: ContextFilteringData;
|
|
93
|
+
analytics?: {
|
|
94
|
+
badges?: {
|
|
95
|
+
winners?: Record<string, string>;
|
|
96
|
+
overexposed?: Record<string, string>;
|
|
97
|
+
new_arrivals?: string[];
|
|
98
|
+
};
|
|
99
|
+
key_hidden_winners?: string;
|
|
100
|
+
key_overexposed?: string;
|
|
101
|
+
};
|
|
102
|
+
query_understanding?: QueryUnderstanding;
|
|
103
|
+
}
|
|
104
|
+
export type inventoryCallback = ({}: {
|
|
105
|
+
action: "products inventory";
|
|
106
|
+
payload: {
|
|
107
|
+
productsInventory: productsInventoryResults[];
|
|
108
|
+
};
|
|
109
|
+
}) => void;
|
|
110
|
+
export interface productsInventoryResults {
|
|
111
|
+
id: string;
|
|
112
|
+
totalInventory: number;
|
|
113
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=categories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"categories.js","sourceRoot":"","sources":["../../src/@types/categories.ts"],"names":[],"mappings":"","sourcesContent":["import {SortBy} from \"./sortBy\";\
|
|
1
|
+
{"version":3,"file":"categories.js","sourceRoot":"","sources":["../../src/@types/categories.ts"],"names":[],"mappings":"","sourcesContent":["import {SortBy} from \"./sortBy\";\nimport {Narrow, ServerNarrow} from \"./narrow\";\nimport { ServerProduct} from \"./product\";\nimport {ServerFacet} from \"./facets\";\nimport {ContextFilteringData, QueryUnderstanding} from \"./results\";\n\n\nexport type AncestorCategory = [string, string, string] // category_id, category_name, category_url\nexport interface RelatedCategory {\n id: string\n l: string\n t: string\n u: string\n}\nexport type CategoryAncestor = [string, string, string]\nexport interface Category {\n d: string\n id: string\n l: string\n p_id: string\n t: string\n u: string\n parent_name?: string\n}\nexport interface FastCategory {\n d: string\n id: string\n l: string\n p_id: string\n t: string\n u: string\n parent_name?: string\n}\nexport interface smartCollectionsProps {\n storeID: number\n uuid: string\n siteKey?:string\n cdn: number\n categoryID: string,\n userToken: string,\n sessionStart: number,\n page?: number\n productsPerPage?: number\n sortBy?: SortBy\n narrowBy?: ServerNarrow[]\n facetRequired?: FacetRequired\n withAttributes?: boolean\n recent?: string\n rec?: boolean\n searchWithinSearch?: string,\n segments?: string[],\n hasShopifyMarkets?: boolean,\n disable_turbolinks?:boolean\n disable_strategies?:boolean\n disable_merchandising?:boolean\n disable_semantics?:boolean\n disable_merchandising_rules?:boolean\n disable_antonyms?:boolean\n custom_sort_settings?:{personalization_rank: number, creation_date: number, popularity: number, inventory: number}\n with_product_analytics?:boolean\n market_context?: string | null // Region code for market-specific filtering (e.g., \"US\", \"CA\", \"UK\")\n}\nexport type FacetRequired = 0 | 1 | 2\nexport type smartCollectionsCallback = ({}: {\n action: \"products\" | \"facets and products\"\n payload: smartCollectionsResults\n}) => void\nexport interface smartCollectionsResults {\n ancestors: CategoryAncestor[]\n categoryID: string\n name: string\n category_name: string\n products: ServerProduct[]\n facets?: ServerFacet[]\n totalResults: number\n sortBy?: SortBy,\n narrow?: Narrow[],\n isNoResults?: boolean\n page?: number\n pageCount?: number\n avoidPrefixList?: string[]\n merch?: any\n bannerHTML?: string\n turbolink?:string\n hiddenProducts?:ServerProduct[]\n within_search_results_for?:string\n results_for?: string\n id_list?:number[]\n context?: ContextFilteringData // Context-based filtering data (market contexts)\n analytics?: {\n badges?: {\n winners?: Record<string, string> // Product ID -> tooltip message\n overexposed?: Record<string, string> // Product ID -> tooltip message\n new_arrivals?: string[]\n }\n key_hidden_winners?: string\n key_overexposed?: string\n }\n query_understanding?: QueryUnderstanding\n\n}\nexport type inventoryCallback = ({}: {\n action: \"products inventory\"\n payload: {productsInventory: productsInventoryResults[]}\n}) => void\nexport interface productsInventoryResults {\n id: string;\n totalInventory: number;\n}"]}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { EditorProduct } from "./editorProduct";
|
|
2
|
-
import { ServerFacet } from "@fast-simon/utilities";
|
|
3
|
-
import { ServerNarrow } from "@fast-simon/utilities";
|
|
4
|
-
import { Narrow } from "./narrow";
|
|
5
|
-
import { SortBy } from "./sortBy";
|
|
6
|
-
export interface CategoryNavigationResponse {
|
|
7
|
-
items: EditorProduct[];
|
|
8
|
-
facets_completed: boolean;
|
|
9
|
-
narrow?: Narrow[];
|
|
10
|
-
p: number;
|
|
11
|
-
total_p: number;
|
|
12
|
-
total_results: number;
|
|
13
|
-
category_id: string;
|
|
14
|
-
facets: ServerFacet[];
|
|
15
|
-
sort_by: SortBy;
|
|
16
|
-
category_description: string;
|
|
17
|
-
category_name: string;
|
|
18
|
-
category_url: string | null;
|
|
19
|
-
avoid_tag_prefixes?: string;
|
|
20
|
-
}
|
|
21
|
-
export interface CategoryNavigationServerResponseFacetsOnly {
|
|
22
|
-
total_results: number;
|
|
23
|
-
term: string;
|
|
24
|
-
narrow?: ServerNarrow;
|
|
25
|
-
facets_completed: true;
|
|
26
|
-
facets: ServerFacet[];
|
|
27
|
-
}
|
|
1
|
+
import { EditorProduct } from "./editorProduct";
|
|
2
|
+
import { ServerFacet } from "@fast-simon/utilities";
|
|
3
|
+
import { ServerNarrow } from "@fast-simon/utilities";
|
|
4
|
+
import { Narrow } from "./narrow";
|
|
5
|
+
import { SortBy } from "./sortBy";
|
|
6
|
+
export interface CategoryNavigationResponse {
|
|
7
|
+
items: EditorProduct[];
|
|
8
|
+
facets_completed: boolean;
|
|
9
|
+
narrow?: Narrow[];
|
|
10
|
+
p: number;
|
|
11
|
+
total_p: number;
|
|
12
|
+
total_results: number;
|
|
13
|
+
category_id: string;
|
|
14
|
+
facets: ServerFacet[];
|
|
15
|
+
sort_by: SortBy;
|
|
16
|
+
category_description: string;
|
|
17
|
+
category_name: string;
|
|
18
|
+
category_url: string | null;
|
|
19
|
+
avoid_tag_prefixes?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface CategoryNavigationServerResponseFacetsOnly {
|
|
22
|
+
total_results: number;
|
|
23
|
+
term: string;
|
|
24
|
+
narrow?: ServerNarrow;
|
|
25
|
+
facets_completed: true;
|
|
26
|
+
facets: ServerFacet[];
|
|
27
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=categoriesNavigation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"categoriesNavigation.js","sourceRoot":"","sources":["../../src/@types/categoriesNavigation.ts"],"names":[],"mappings":"","sourcesContent":["import {EditorProduct} from \"./editorProduct\";\
|
|
1
|
+
{"version":3,"file":"categoriesNavigation.js","sourceRoot":"","sources":["../../src/@types/categoriesNavigation.ts"],"names":[],"mappings":"","sourcesContent":["import {EditorProduct} from \"./editorProduct\";\n\nimport {ServerFacet} from \"@fast-simon/utilities\";\nimport {ServerNarrow} from \"@fast-simon/utilities\"\nimport {Narrow} from \"./narrow\";\nimport {SortBy} from \"./sortBy\";\n\n\nexport interface CategoryNavigationResponse {\n items: EditorProduct[]\n facets_completed: boolean\n narrow?: Narrow[]\n p: number\n total_p: number\n total_results: number\n category_id: string\n facets: ServerFacet[]\n sort_by: SortBy\n category_description: string\n category_name: string\n category_url: string | null\n avoid_tag_prefixes?: string\n}\nexport interface CategoryNavigationServerResponseFacetsOnly {\n total_results: number\n term: string\n narrow?: ServerNarrow\n facets_completed: true\n facets: ServerFacet[]\n}"]}
|
package/dist/@types/context.d.ts
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { EditorProduct } from "./editorProduct";
|
|
3
|
-
import { Facet, Narrow } from "@fast-simon/utilities";
|
|
4
|
-
import { MenuItemName } from "./sideMenu";
|
|
5
|
-
export type PinnedProduct = [number, string];
|
|
6
|
-
export interface ContextDataLoading {
|
|
7
|
-
products: boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface VisualEditorContextDataType {
|
|
10
|
-
products: EditorProduct[];
|
|
11
|
-
loading: ContextDataLoading;
|
|
12
|
-
page: number;
|
|
13
|
-
narrow: Narrow;
|
|
14
|
-
searchWithinResultsQuery?: string;
|
|
15
|
-
selectedNavItemName: MenuItemName;
|
|
16
|
-
totalResults: number;
|
|
17
|
-
totalPages: number;
|
|
18
|
-
facets: Facet[];
|
|
19
|
-
selectedProductIds: Record<string, number>;
|
|
20
|
-
selectedProductIdsArray: string[];
|
|
21
|
-
allProductsIds: string[];
|
|
22
|
-
sideMenuSelectedProductIds: Record<string, number>;
|
|
23
|
-
sideMenuSearchInput: string;
|
|
24
|
-
isDragAndDropActive: boolean;
|
|
25
|
-
isDragToSelectActive: boolean;
|
|
26
|
-
isCutting: boolean;
|
|
27
|
-
selectedProducts: EditorProduct[];
|
|
28
|
-
landingPageID?: string;
|
|
29
|
-
uuid: string;
|
|
30
|
-
storeID: number;
|
|
31
|
-
query?: string;
|
|
32
|
-
}
|
|
33
|
-
export interface VisualEditorDispatcherContextType {
|
|
34
|
-
setProducts: React.Dispatch<React.SetStateAction<EditorProduct[]>>;
|
|
35
|
-
setLoading: React.Dispatch<React.SetStateAction<ContextDataLoading>>;
|
|
36
|
-
setPage: React.Dispatch<React.SetStateAction<number>>;
|
|
37
|
-
setNarrow: React.Dispatch<React.SetStateAction<Narrow>>;
|
|
38
|
-
setSearchWithinResultsQuery: React.Dispatch<React.SetStateAction<string>>;
|
|
39
|
-
setSelectedNavItemName: React.Dispatch<React.SetStateAction<MenuItemName>>;
|
|
40
|
-
setFacets: React.Dispatch<React.SetStateAction<Facet[]>>;
|
|
41
|
-
setSelectedProductIds: React.Dispatch<React.SetStateAction<Record<string, number>>>;
|
|
42
|
-
setSideMenuSelectedProductIds: React.Dispatch<React.SetStateAction<Record<string, number>>>;
|
|
43
|
-
setSideMenuSearchInput: React.Dispatch<React.SetStateAction<string>>;
|
|
44
|
-
setIsDragAndDropActive: React.Dispatch<React.SetStateAction<boolean>>;
|
|
45
|
-
setIsDragToSelectActive: React.Dispatch<React.SetStateAction<boolean>>;
|
|
46
|
-
setIsCutting: React.Dispatch<React.SetStateAction<boolean>>;
|
|
47
|
-
setSelectedProducts: React.Dispatch<React.SetStateAction<EditorProduct[]>>;
|
|
48
|
-
setSelectedProductIdsArray: React.Dispatch<React.SetStateAction<string[]>>;
|
|
49
|
-
}
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { EditorProduct } from "./editorProduct";
|
|
3
|
+
import { Facet, Narrow } from "@fast-simon/utilities";
|
|
4
|
+
import { MenuItemName } from "./sideMenu";
|
|
5
|
+
export type PinnedProduct = [number, string];
|
|
6
|
+
export interface ContextDataLoading {
|
|
7
|
+
products: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface VisualEditorContextDataType {
|
|
10
|
+
products: EditorProduct[];
|
|
11
|
+
loading: ContextDataLoading;
|
|
12
|
+
page: number;
|
|
13
|
+
narrow: Narrow;
|
|
14
|
+
searchWithinResultsQuery?: string;
|
|
15
|
+
selectedNavItemName: MenuItemName;
|
|
16
|
+
totalResults: number;
|
|
17
|
+
totalPages: number;
|
|
18
|
+
facets: Facet[];
|
|
19
|
+
selectedProductIds: Record<string, number>;
|
|
20
|
+
selectedProductIdsArray: string[];
|
|
21
|
+
allProductsIds: string[];
|
|
22
|
+
sideMenuSelectedProductIds: Record<string, number>;
|
|
23
|
+
sideMenuSearchInput: string;
|
|
24
|
+
isDragAndDropActive: boolean;
|
|
25
|
+
isDragToSelectActive: boolean;
|
|
26
|
+
isCutting: boolean;
|
|
27
|
+
selectedProducts: EditorProduct[];
|
|
28
|
+
landingPageID?: string;
|
|
29
|
+
uuid: string;
|
|
30
|
+
storeID: number;
|
|
31
|
+
query?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface VisualEditorDispatcherContextType {
|
|
34
|
+
setProducts: React.Dispatch<React.SetStateAction<EditorProduct[]>>;
|
|
35
|
+
setLoading: React.Dispatch<React.SetStateAction<ContextDataLoading>>;
|
|
36
|
+
setPage: React.Dispatch<React.SetStateAction<number>>;
|
|
37
|
+
setNarrow: React.Dispatch<React.SetStateAction<Narrow>>;
|
|
38
|
+
setSearchWithinResultsQuery: React.Dispatch<React.SetStateAction<string>>;
|
|
39
|
+
setSelectedNavItemName: React.Dispatch<React.SetStateAction<MenuItemName>>;
|
|
40
|
+
setFacets: React.Dispatch<React.SetStateAction<Facet[]>>;
|
|
41
|
+
setSelectedProductIds: React.Dispatch<React.SetStateAction<Record<string, number>>>;
|
|
42
|
+
setSideMenuSelectedProductIds: React.Dispatch<React.SetStateAction<Record<string, number>>>;
|
|
43
|
+
setSideMenuSearchInput: React.Dispatch<React.SetStateAction<string>>;
|
|
44
|
+
setIsDragAndDropActive: React.Dispatch<React.SetStateAction<boolean>>;
|
|
45
|
+
setIsDragToSelectActive: React.Dispatch<React.SetStateAction<boolean>>;
|
|
46
|
+
setIsCutting: React.Dispatch<React.SetStateAction<boolean>>;
|
|
47
|
+
setSelectedProducts: React.Dispatch<React.SetStateAction<EditorProduct[]>>;
|
|
48
|
+
setSelectedProductIdsArray: React.Dispatch<React.SetStateAction<string[]>>;
|
|
49
|
+
}
|
package/dist/@types/context.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/@types/context.ts"],"names":[],"mappings":"","sourcesContent":["import React from \"react\";\
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/@types/context.ts"],"names":[],"mappings":"","sourcesContent":["import React from \"react\";\nimport {EditorProduct} from \"./editorProduct\";\nimport {Facet, Narrow} from \"@fast-simon/utilities\";\nimport {MenuItemName} from \"./sideMenu\";\n\n\nimport {Category} from \"./categories\";\nexport type PinnedProduct = [number, string];\n\nexport interface ContextDataLoading {\n products: boolean\n}\n\nexport interface VisualEditorContextDataType {\n products: EditorProduct[];\n loading: ContextDataLoading;\n page: number;\n narrow: Narrow;\n searchWithinResultsQuery?: string;\n selectedNavItemName: MenuItemName;\n totalResults: number;\n totalPages: number;\n facets: Facet[];\n // actualUnpublishedProducts: EditorProduct[];\n selectedProductIds: Record<string, number>;\n selectedProductIdsArray: string[]; // for order as the record is not ordered\n // originalPositions?: Record<string, number>;\n allProductsIds: string[];\n sideMenuSelectedProductIds: Record<string, number>;\n sideMenuSearchInput: string;\n isDragAndDropActive: boolean;\n isDragToSelectActive: boolean;\n isCutting: boolean;\n selectedProducts: EditorProduct[];\n\n landingPageID?: string;\n uuid: string;\n storeID: number;\n query?: string;\n}\n\nexport interface VisualEditorDispatcherContextType {\n setProducts: React.Dispatch<React.SetStateAction<EditorProduct[]>>;\n\n setLoading: React.Dispatch<React.SetStateAction<ContextDataLoading>>;\n\n setPage: React.Dispatch<React.SetStateAction<number>>;\n\n setNarrow: React.Dispatch<React.SetStateAction<Narrow>>;\n\n setSearchWithinResultsQuery: React.Dispatch<React.SetStateAction<string>>;\n\n setSelectedNavItemName: React.Dispatch<React.SetStateAction<MenuItemName>>;\n\n // setCategories: React.Dispatch<React.SetStateAction<Category[]>>;\n // setRelatedCollections: React.Dispatch<React.SetStateAction<Category[]>>;\n\n // setPinned: React.Dispatch<React.SetStateAction<PinnedProduct[]>>;\n\n // setPromotilesPositions: React.Dispatch<React.SetStateAction<Map<string, Promotile[]>>>;\n\n // setPromoted: React.Dispatch<React.SetStateAction<string[]>>;\n //\n // setBuried: React.Dispatch<React.SetStateAction<string[]>>;\n //\n // setHidden: React.Dispatch<React.SetStateAction<string[]>>;\n\n setFacets: React.Dispatch<React.SetStateAction<Facet[]>>;\n\n // setActualBuriedProducts: React.Dispatch<React.SetStateAction<EditorProduct[]>>;\n\n // setActualHiddenProducts: React.Dispatch<React.SetStateAction<EditorProduct[]>>;\n\n // setActualUnpublishedProducts: React.Dispatch<React.SetStateAction<EditorProduct[]>>;\n\n setSelectedProductIds: React.Dispatch<React.SetStateAction<Record<string, number>>>;\n\n // setPromotiles: React.Dispatch<React.SetStateAction<Promotile[]>>;\n\n // setServerPinned: React.Dispatch<React.SetStateAction<PinnedProduct[]>>;\n //\n //\n // setServerPromoted: React.Dispatch<React.SetStateAction<string[]>>;\n //\n // setServerBuried: React.Dispatch<React.SetStateAction<string[]>>;\n //\n // setServerHidden: React.Dispatch<React.SetStateAction<string[]>>;\n //\n // setSelectedBannerId: React.Dispatch<React.SetStateAction<string>>;\n\n setSideMenuSelectedProductIds: React.Dispatch<React.SetStateAction<Record<string, number>>>;\n\n setSideMenuSearchInput: React.Dispatch<React.SetStateAction<string>>;\n setIsDragAndDropActive: React.Dispatch<React.SetStateAction<boolean>>;\n setIsDragToSelectActive: React.Dispatch<React.SetStateAction<boolean>>;\n setIsCutting: React.Dispatch<React.SetStateAction<boolean>>;\n setSelectedProducts: React.Dispatch<React.SetStateAction<EditorProduct[]>>;\n setSelectedProductIdsArray: React.Dispatch<React.SetStateAction<string[]>>;\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type Currency = string | 'USD' | 'CRC' | 'AUD' | 'AZN' | 'NZD' | 'CAD' | 'VES' | 'SGD' | 'COP' | 'GBP' | 'BRL' | 'ILS' | 'AED' | 'JMD' | 'MYR' | 'THB' | 'DKK' | 'EGP' | 'NOK' | 'SEK' | 'HKD' | 'ZAR' | 'CHF' | 'HRK' | 'INR' | 'UAH' | 'RUB' | 'BYR' | 'IRR' | 'MXN' | 'TWD' | 'TRY' | 'TRL' | 'TL' | 'PLN' | 'HUF' | 'BGN' | 'EUR' | 'NGN' | 'RON' | 'VND' | 'BDT' | 'XOF' | 'JPY' | 'CNY' | 'KRW' | 'ARS';
|
|
1
|
+
export type Currency = string | 'USD' | 'CRC' | 'AUD' | 'AZN' | 'NZD' | 'CAD' | 'VES' | 'SGD' | 'COP' | 'GBP' | 'BRL' | 'ILS' | 'AED' | 'JMD' | 'MYR' | 'THB' | 'DKK' | 'EGP' | 'NOK' | 'SEK' | 'HKD' | 'ZAR' | 'CHF' | 'HRK' | 'INR' | 'UAH' | 'RUB' | 'BYR' | 'IRR' | 'MXN' | 'TWD' | 'TRY' | 'TRL' | 'TL' | 'PLN' | 'HUF' | 'BGN' | 'EUR' | 'NGN' | 'RON' | 'VND' | 'BDT' | 'XOF' | 'JPY' | 'CNY' | 'KRW' | 'ARS';
|
package/dist/@types/currency.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=currency.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"currency.js","sourceRoot":"","sources":["../../src/@types/currency.ts"],"names":[],"mappings":"","sourcesContent":["export type Currency =\
|
|
1
|
+
{"version":3,"file":"currency.js","sourceRoot":"","sources":["../../src/@types/currency.ts"],"names":[],"mappings":"","sourcesContent":["export type Currency =\n string\n | 'USD'\n | 'CRC'\n | 'AUD'\n | 'AZN'\n | 'NZD'\n | 'CAD'\n | 'VES'\n | 'SGD'\n | 'COP'\n | 'GBP'\n | 'BRL'\n | 'ILS'\n | 'AED'\n | 'JMD'\n | 'MYR'\n | 'THB'\n | 'DKK'\n | 'EGP'\n | 'NOK'\n | 'SEK'\n | 'HKD'\n | 'ZAR'\n | 'CHF'\n | 'HRK'\n | 'INR'\n | 'UAH'\n | 'RUB'\n | 'BYR'\n | 'IRR'\n | 'MXN'\n | 'TWD'\n | 'TRY'\n | 'TRL'\n | 'TL'\n | 'PLN'\n | 'HUF'\n | 'BGN'\n | 'EUR'\n | 'NGN'\n | 'RON'\n | 'VND'\n | 'BDT'\n | 'XOF'\n | 'JPY'\n | 'CNY'\n | 'KRW'\n | 'ARS'\n"]}
|