@fast-simon/dashboard-utilities 1.0.88 → 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 -57
- 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/categories.d.ts +113 -112
- 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/context.d.ts +49 -49
- package/dist/@types/context.js +1 -1
- package/dist/@types/currency.d.ts +1 -1
- package/dist/@types/currency.js +1 -1
- package/dist/@types/editorProduct.d.ts +26 -26
- package/dist/@types/editorProduct.js +5 -5
- package/dist/@types/facets.d.ts +59 -59
- package/dist/@types/facets.js +18 -18
- package/dist/@types/iconProps.d.ts +9 -9
- package/dist/@types/iconProps.js +1 -1
- package/dist/@types/narrow.d.ts +7 -7
- package/dist/@types/narrow.js +1 -1
- package/dist/@types/product.d.ts +160 -160
- package/dist/@types/product.js +7 -7
- 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/results.d.ts +142 -134
- 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/sortBy.d.ts +3 -3
- package/dist/@types/sortBy.js +1 -1
- package/dist/@types/widget.d.ts +8 -8
- package/dist/@types/widget.js +1 -1
- package/dist/App.d.ts +3 -3
- package/dist/App.js +14 -14
- package/dist/components/BackOfficeFiltersMenu/BackOfficeFiltersMenu.d.ts +9 -9
- package/dist/components/BackOfficeFiltersMenu/BackOfficeFiltersMenu.js +73 -73
- package/dist/components/BackOfficeFiltersMenu/index.d.ts +1 -1
- package/dist/components/BackOfficeFiltersMenu/index.js +1 -1
- package/dist/components/BackOfficeFiltersMenu/utils.d.ts +7 -7
- package/dist/components/BackOfficeFiltersMenu/utils.js +238 -238
- package/dist/components/CheckboxFilter/Checkbox/Checkbox.d.ts +10 -10
- package/dist/components/CheckboxFilter/Checkbox/Checkbox.js +6 -6
- package/dist/components/CheckboxFilter/CheckboxFilter.d.ts +6 -6
- package/dist/components/CheckboxFilter/CheckboxFilter.js +8 -8
- package/dist/components/DragAndDrop/DndContextWrapper.d.ts +19 -19
- package/dist/components/DragAndDrop/DndContextWrapper.js +30 -30
- package/dist/components/DragAndDrop/Droppable.d.ts +7 -7
- package/dist/components/DragAndDrop/Droppable.js +9 -9
- package/dist/components/DragAndDrop/SortableItem.d.ts +13 -13
- package/dist/components/DragAndDrop/SortableItem.js +38 -38
- package/dist/components/FacetItem/FacetItem.d.ts +13 -13
- package/dist/components/FacetItem/FacetItem.js +39 -39
- package/dist/components/FastSimonApi/FastSimonApi.d.ts +39 -39
- package/dist/components/FastSimonApi/FastSimonApi.js +605 -605
- package/dist/components/FastSimonApi/context.d.ts +62 -62
- package/dist/components/FastSimonApi/context.js +9 -9
- package/dist/components/FastSimonApi/index.d.ts +3 -3
- package/dist/components/FastSimonApi/index.js +2 -2
- package/dist/components/FastSimonApi/reducer.d.ts +458 -450
- package/dist/components/FastSimonApi/reducer.js +76 -76
- package/dist/components/FromToFilter/From/From.d.ts +17 -17
- package/dist/components/FromToFilter/From/From.js +21 -21
- package/dist/components/FromToFilter/FromToFilter.d.ts +14 -14
- package/dist/components/FromToFilter/FromToFilter.js +57 -57
- package/dist/components/FromToFilter/To/To.d.ts +18 -18
- package/dist/components/FromToFilter/To/To.js +22 -22
- package/dist/components/FromToFilter/utils.d.ts +25 -25
- package/dist/components/FromToFilter/utils.js +6 -6
- package/dist/components/InStoreFiltersMenu/InStoreFiltersMenu.d.ts +10 -10
- package/dist/components/InStoreFiltersMenu/InStoreFiltersMenu.js +33 -33
- package/dist/components/InStoreFiltersMenu/index.d.ts +1 -1
- package/dist/components/InStoreFiltersMenu/index.js +1 -1
- package/dist/components/Input/Input.d.ts +22 -22
- package/dist/components/Input/Input.js +48 -48
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/LastReceivedDateFilter/LastReceivedDate.d.ts +9 -9
- package/dist/components/LastReceivedDateFilter/LastReceivedDate.js +87 -87
- package/dist/components/LastReceivedDateFilter/utils.d.ts +3 -3
- package/dist/components/LastReceivedDateFilter/utils.js +42 -42
- package/dist/components/ProductLabel/ProductLabel.d.ts +11 -11
- package/dist/components/ProductLabel/ProductLabel.js +10 -10
- package/dist/components/ProductLabel/index.d.ts +1 -1
- package/dist/components/ProductLabel/index.js +1 -1
- package/dist/components/ProductLabel/utils.d.ts +8 -8
- package/dist/components/ProductLabel/utils.js +8 -8
- package/dist/components/RadioFilter/Radio/Radio.d.ts +10 -10
- package/dist/components/RadioFilter/Radio/Radio.js +6 -6
- package/dist/components/RadioFilter/RadioFilter.d.ts +9 -9
- package/dist/components/RadioFilter/RadioFilter.js +44 -44
- package/dist/components/RadioFilter/utils.d.ts +1 -1
- package/dist/components/RadioFilter/utils.js +7 -7
- package/dist/components/ReactDatePicker/ReactDatePicker.d.ts +11 -11
- package/dist/components/ReactDatePicker/ReactDatePicker.js +15 -15
- package/dist/components/ReactDatePicker/index.d.ts +1 -1
- package/dist/components/ReactDatePicker/index.js +1 -1
- package/dist/components/RenderIfVisible/RenderIfVisible.d.ts +12 -12
- package/dist/components/RenderIfVisible/RenderIfVisible.js +58 -58
- package/dist/components/RenderIfVisible/index.d.ts +1 -1
- package/dist/components/RenderIfVisible/index.js +1 -1
- package/dist/components/ScrollToTop/ScrollToTop.d.ts +6 -6
- package/dist/components/ScrollToTop/ScrollToTop.js +27 -27
- package/dist/components/SelectCard/SelectCard.d.ts +5 -5
- package/dist/components/SelectCard/SelectCard.js +6 -6
- package/dist/components/SelectCard/index.d.ts +1 -1
- package/dist/components/SelectCard/index.js +1 -1
- package/dist/components/SingleFilter/SingleFilter.d.ts +11 -11
- package/dist/components/SingleFilter/SingleFilter.js +89 -89
- package/dist/components/SingleFilter/utils.d.ts +3 -3
- package/dist/components/SingleFilter/utils.js +41 -41
- package/dist/components/SliderFilter/SliderFilter.d.ts +20 -20
- package/dist/components/SliderFilter/SliderFilter.js +45 -45
- package/dist/components/SliderFilter/index.d.ts +1 -1
- package/dist/components/SliderFilter/index.js +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +8 -8
- package/dist/components/Tooltip/Tooltip.js +8 -8
- package/dist/components/common.d.ts +23 -23
- package/dist/components/common.js +30 -30
- package/dist/components/productGrid/ProductGrid.d.ts +11 -11
- package/dist/components/productGrid/ProductGrid.js +32 -32
- package/dist/components/productGrid/index.d.ts +1 -1
- package/dist/components/productGrid/index.js +1 -1
- package/dist/icons/BackOfficeFiltersIcon.d.ts +2 -2
- package/dist/icons/BackOfficeFiltersIcon.js +6 -6
- package/dist/icons/BannersIcon.d.ts +2 -2
- package/dist/icons/BannersIcon.js +6 -6
- package/dist/icons/GeneralIcon.d.ts +2 -2
- package/dist/icons/GeneralIcon.js +6 -6
- package/dist/icons/HelpIcon.d.ts +7 -7
- package/dist/icons/HelpIcon.js +4 -4
- package/dist/icons/InStoreFiltersIcon.d.ts +2 -2
- package/dist/icons/InStoreFiltersIcon.js +6 -6
- package/dist/icons/PromoteIcon.d.ts +2 -2
- package/dist/icons/PromoteIcon.js +6 -6
- package/dist/icons/RemoveIcon.d.ts +2 -2
- package/dist/icons/RemoveIcon.js +6 -6
- package/dist/icons/RestoreIcon.d.ts +2 -2
- package/dist/icons/RestoreIcon.js +6 -6
- 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/services/API.d.ts +21 -21
- package/dist/services/API.js +49 -49
- package/dist/services/autocomplete.d.ts +4 -4
- package/dist/services/autocomplete.js +25 -25
- package/dist/services/getFormatProducts.d.ts +13 -13
- package/dist/services/getFormatProducts.js +43 -43
- package/dist/services/landingPage.d.ts +28 -28
- package/dist/services/landingPage.js +86 -86
- package/dist/services/products.d.ts +9 -9
- package/dist/services/products.js +30 -30
- package/dist/services/search.d.ts +13 -13
- package/dist/services/search.js +113 -113
- package/dist/services/smartCollections.d.ts +5 -5
- package/dist/services/smartCollections.js +44 -44
- package/dist/utils/customTagsFilters.d.ts +4 -4
- package/dist/utils/customTagsFilters.js +9 -9
- package/dist/utils/getCacheSettings.d.ts +16 -16
- package/dist/utils/getCacheSettings.js +25 -25
- package/dist/utils/getInternalURL.d.ts +1 -1
- package/dist/utils/getInternalURL.js +7 -7
- package/dist/utils/getLSVectorSearch.d.ts +4 -4
- package/dist/utils/getLSVectorSearch.js +8 -8
- package/dist/utils/useDragToSelect.d.ts +13 -13
- package/dist/utils/useDragToSelect.js +172 -172
- package/dist/utils/useProductsPerRow.d.ts +3 -3
- package/dist/utils/useProductsPerRow.js +18 -18
- package/package.json +1 -1
|
@@ -1,57 +1,58 @@
|
|
|
1
|
-
import { ServerProduct } from "./product";
|
|
2
|
-
import { Facet, FastCategory, FastTurbolinks } from "./facets";
|
|
3
|
-
import { PopularSearch, ContextFilteringData } 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
|
-
|
|
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\";\nimport {Facet, FastCategory, FastTurbolinks} from \"./facets\";\nimport {PopularSearch, ContextFilteringData} 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}"]}
|
|
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,112 +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 } 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
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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\";\nimport {Narrow, ServerNarrow} from \"./narrow\";\nimport { ServerProduct} from \"./product\";\nimport {ServerFacet} from \"./facets\";\nimport {ContextFilteringData} 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\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
|
+
{"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
|
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
|
-
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,26 +1,26 @@
|
|
|
1
|
-
import { ProductLabelType } from "./productLabel";
|
|
2
|
-
import { ServerProduct } from "./product";
|
|
3
|
-
export interface EditorProduct extends ServerProduct {
|
|
4
|
-
org_pos: number | "";
|
|
5
|
-
inv_sale: ProductInvSale;
|
|
6
|
-
productLabel?: ProductLabelType;
|
|
7
|
-
is_unpublished?: boolean;
|
|
8
|
-
isFilteredProduct?: boolean;
|
|
9
|
-
pin_to_position?: number;
|
|
10
|
-
}
|
|
11
|
-
interface ProductInvSale {
|
|
12
|
-
cost: number;
|
|
13
|
-
d: number[];
|
|
14
|
-
i: number;
|
|
15
|
-
s: number;
|
|
16
|
-
tags: string[];
|
|
17
|
-
v: Record<string, any>;
|
|
18
|
-
}
|
|
19
|
-
export interface ChatbotAction {
|
|
20
|
-
actionName: "promote" | "hide" | "bury" | "position";
|
|
21
|
-
srcPosition: number;
|
|
22
|
-
destPosition: number;
|
|
23
|
-
disabled: boolean;
|
|
24
|
-
}
|
|
25
|
-
export declare function isEditorProduct(gridItem?: EditorProduct): gridItem is EditorProduct;
|
|
26
|
-
export {};
|
|
1
|
+
import { ProductLabelType } from "./productLabel";
|
|
2
|
+
import { ServerProduct } from "./product";
|
|
3
|
+
export interface EditorProduct extends ServerProduct {
|
|
4
|
+
org_pos: number | "";
|
|
5
|
+
inv_sale: ProductInvSale;
|
|
6
|
+
productLabel?: ProductLabelType;
|
|
7
|
+
is_unpublished?: boolean;
|
|
8
|
+
isFilteredProduct?: boolean;
|
|
9
|
+
pin_to_position?: number;
|
|
10
|
+
}
|
|
11
|
+
interface ProductInvSale {
|
|
12
|
+
cost: number;
|
|
13
|
+
d: number[];
|
|
14
|
+
i: number;
|
|
15
|
+
s: number;
|
|
16
|
+
tags: string[];
|
|
17
|
+
v: Record<string, any>;
|
|
18
|
+
}
|
|
19
|
+
export interface ChatbotAction {
|
|
20
|
+
actionName: "promote" | "hide" | "bury" | "position";
|
|
21
|
+
srcPosition: number;
|
|
22
|
+
destPosition: number;
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
}
|
|
25
|
+
export declare function isEditorProduct(gridItem?: EditorProduct): gridItem is EditorProduct;
|
|
26
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export function isEditorProduct(gridItem) {
|
|
2
|
-
if (gridItem === undefined)
|
|
3
|
-
return false;
|
|
4
|
-
return gridItem.l !== undefined;
|
|
5
|
-
}
|
|
1
|
+
export function isEditorProduct(gridItem) {
|
|
2
|
+
if (gridItem === undefined)
|
|
3
|
+
return false;
|
|
4
|
+
return gridItem.l !== undefined;
|
|
5
|
+
}
|
|
6
6
|
//# sourceMappingURL=editorProduct.js.map
|