@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.
Files changed (278) hide show
  1. package/dist/@types/autocomplete.d.ts +58 -58
  2. package/dist/@types/autocomplete.js +1 -1
  3. package/dist/@types/autocomplete.js.map +1 -1
  4. package/dist/@types/banner.d.ts +7 -7
  5. package/dist/@types/banner.js +1 -1
  6. package/dist/@types/banner.js.map +1 -1
  7. package/dist/@types/categories.d.ts +113 -113
  8. package/dist/@types/categories.js +1 -1
  9. package/dist/@types/categories.js.map +1 -1
  10. package/dist/@types/categoriesNavigation.d.ts +27 -27
  11. package/dist/@types/categoriesNavigation.js +1 -1
  12. package/dist/@types/categoriesNavigation.js.map +1 -1
  13. package/dist/@types/context.d.ts +49 -49
  14. package/dist/@types/context.js +1 -1
  15. package/dist/@types/context.js.map +1 -1
  16. package/dist/@types/currency.d.ts +1 -1
  17. package/dist/@types/currency.js +1 -1
  18. package/dist/@types/currency.js.map +1 -1
  19. package/dist/@types/editorProduct.d.ts +26 -26
  20. package/dist/@types/editorProduct.js +5 -5
  21. package/dist/@types/editorProduct.js.map +1 -1
  22. package/dist/@types/facets.d.ts +59 -59
  23. package/dist/@types/facets.js +18 -18
  24. package/dist/@types/facets.js.map +1 -1
  25. package/dist/@types/iconProps.d.ts +9 -9
  26. package/dist/@types/iconProps.js +1 -1
  27. package/dist/@types/iconProps.js.map +1 -1
  28. package/dist/@types/narrow.d.ts +7 -7
  29. package/dist/@types/narrow.js +1 -1
  30. package/dist/@types/narrow.js.map +1 -1
  31. package/dist/@types/product.d.ts +160 -160
  32. package/dist/@types/product.js +7 -7
  33. package/dist/@types/product.js.map +1 -1
  34. package/dist/@types/productLabel.d.ts +1 -1
  35. package/dist/@types/productLabel.js +1 -1
  36. package/dist/@types/promoTile.d.ts +11 -11
  37. package/dist/@types/promoTile.js +1 -1
  38. package/dist/@types/promoTile.js.map +1 -1
  39. package/dist/@types/results.d.ts +142 -142
  40. package/dist/@types/results.js +1 -1
  41. package/dist/@types/results.js.map +1 -1
  42. package/dist/@types/sideMenu.d.ts +19 -19
  43. package/dist/@types/sideMenu.js +1 -1
  44. package/dist/@types/sideMenu.js.map +1 -1
  45. package/dist/@types/sortBy.d.ts +3 -3
  46. package/dist/@types/sortBy.js +1 -1
  47. package/dist/@types/sortBy.js.map +1 -1
  48. package/dist/@types/widget.d.ts +8 -8
  49. package/dist/@types/widget.js +1 -1
  50. package/dist/@types/widget.js.map +1 -1
  51. package/dist/App.d.ts +3 -3
  52. package/dist/App.js +14 -14
  53. package/dist/App.js.map +1 -1
  54. package/dist/components/BackOfficeFiltersMenu/BackOfficeFiltersMenu.d.ts +9 -9
  55. package/dist/components/BackOfficeFiltersMenu/BackOfficeFiltersMenu.js +73 -73
  56. package/dist/components/BackOfficeFiltersMenu/BackOfficeFiltersMenu.js.map +1 -1
  57. package/dist/components/BackOfficeFiltersMenu/index.d.ts +1 -1
  58. package/dist/components/BackOfficeFiltersMenu/index.js +1 -1
  59. package/dist/components/BackOfficeFiltersMenu/index.js.map +1 -1
  60. package/dist/components/BackOfficeFiltersMenu/styles.module.css +9 -9
  61. package/dist/components/BackOfficeFiltersMenu/utils.d.ts +7 -7
  62. package/dist/components/BackOfficeFiltersMenu/utils.js +238 -238
  63. package/dist/components/BackOfficeFiltersMenu/utils.js.map +1 -1
  64. package/dist/components/CheckboxFilter/Checkbox/Checkbox.d.ts +10 -10
  65. package/dist/components/CheckboxFilter/Checkbox/Checkbox.js +6 -6
  66. package/dist/components/CheckboxFilter/Checkbox/Checkbox.js.map +1 -1
  67. package/dist/components/CheckboxFilter/Checkbox/styles.module.css +142 -142
  68. package/dist/components/CheckboxFilter/CheckboxFilter.d.ts +6 -6
  69. package/dist/components/CheckboxFilter/CheckboxFilter.js +8 -8
  70. package/dist/components/CheckboxFilter/CheckboxFilter.js.map +1 -1
  71. package/dist/components/CheckboxFilter/styles.module.css +4 -4
  72. package/dist/components/DragAndDrop/DndContextWrapper.d.ts +19 -19
  73. package/dist/components/DragAndDrop/DndContextWrapper.js +30 -30
  74. package/dist/components/DragAndDrop/DndContextWrapper.js.map +1 -1
  75. package/dist/components/DragAndDrop/Droppable.d.ts +7 -7
  76. package/dist/components/DragAndDrop/Droppable.js +9 -9
  77. package/dist/components/DragAndDrop/Droppable.js.map +1 -1
  78. package/dist/components/DragAndDrop/SortableItem.d.ts +13 -13
  79. package/dist/components/DragAndDrop/SortableItem.js +38 -38
  80. package/dist/components/DragAndDrop/SortableItem.js.map +1 -1
  81. package/dist/components/DragAndDrop/styles.module.css +15 -15
  82. package/dist/components/FacetItem/FacetItem.d.ts +13 -13
  83. package/dist/components/FacetItem/FacetItem.js +39 -39
  84. package/dist/components/FacetItem/FacetItem.js.map +1 -1
  85. package/dist/components/FacetItem/styles.module.css +54 -54
  86. package/dist/components/FastSimonApi/FastSimonApi.d.ts +39 -39
  87. package/dist/components/FastSimonApi/FastSimonApi.js +605 -605
  88. package/dist/components/FastSimonApi/FastSimonApi.js.map +1 -1
  89. package/dist/components/FastSimonApi/context.d.ts +62 -62
  90. package/dist/components/FastSimonApi/context.js +9 -9
  91. package/dist/components/FastSimonApi/context.js.map +1 -1
  92. package/dist/components/FastSimonApi/index.d.ts +3 -3
  93. package/dist/components/FastSimonApi/index.js +2 -2
  94. package/dist/components/FastSimonApi/index.js.map +1 -1
  95. package/dist/components/FastSimonApi/reducer.d.ts +458 -458
  96. package/dist/components/FastSimonApi/reducer.js +76 -76
  97. package/dist/components/FastSimonApi/reducer.js.map +1 -1
  98. package/dist/components/FromToFilter/From/From.d.ts +17 -17
  99. package/dist/components/FromToFilter/From/From.js +21 -21
  100. package/dist/components/FromToFilter/From/From.js.map +1 -1
  101. package/dist/components/FromToFilter/From/styles.module.css +8 -8
  102. package/dist/components/FromToFilter/FromToFilter.d.ts +14 -14
  103. package/dist/components/FromToFilter/FromToFilter.js +57 -57
  104. package/dist/components/FromToFilter/FromToFilter.js.map +1 -1
  105. package/dist/components/FromToFilter/To/To.d.ts +18 -18
  106. package/dist/components/FromToFilter/To/To.js +22 -22
  107. package/dist/components/FromToFilter/To/To.js.map +1 -1
  108. package/dist/components/FromToFilter/To/styles.module.css +8 -8
  109. package/dist/components/FromToFilter/styles.module.css +33 -33
  110. package/dist/components/FromToFilter/utils.d.ts +25 -25
  111. package/dist/components/FromToFilter/utils.js +6 -6
  112. package/dist/components/FromToFilter/utils.js.map +1 -1
  113. package/dist/components/InStoreFiltersMenu/InStoreFiltersMenu.d.ts +10 -10
  114. package/dist/components/InStoreFiltersMenu/InStoreFiltersMenu.js +33 -33
  115. package/dist/components/InStoreFiltersMenu/InStoreFiltersMenu.js.map +1 -1
  116. package/dist/components/InStoreFiltersMenu/index.d.ts +1 -1
  117. package/dist/components/InStoreFiltersMenu/index.js +1 -1
  118. package/dist/components/InStoreFiltersMenu/index.js.map +1 -1
  119. package/dist/components/InStoreFiltersMenu/styles.module.css +9 -9
  120. package/dist/components/Input/Input.d.ts +22 -22
  121. package/dist/components/Input/Input.js +48 -48
  122. package/dist/components/Input/Input.js.map +1 -1
  123. package/dist/components/Input/index.d.ts +1 -1
  124. package/dist/components/Input/index.js +1 -1
  125. package/dist/components/Input/index.js.map +1 -1
  126. package/dist/components/Input/styles.module.css +2 -2
  127. package/dist/components/LastReceivedDateFilter/LastReceivedDate.d.ts +9 -9
  128. package/dist/components/LastReceivedDateFilter/LastReceivedDate.js +87 -87
  129. package/dist/components/LastReceivedDateFilter/LastReceivedDate.js.map +1 -1
  130. package/dist/components/LastReceivedDateFilter/styles.module.css +40 -40
  131. package/dist/components/LastReceivedDateFilter/utils.d.ts +3 -3
  132. package/dist/components/LastReceivedDateFilter/utils.js +42 -42
  133. package/dist/components/LastReceivedDateFilter/utils.js.map +1 -1
  134. package/dist/components/ProductLabel/ProductLabel.d.ts +11 -11
  135. package/dist/components/ProductLabel/ProductLabel.js +10 -10
  136. package/dist/components/ProductLabel/ProductLabel.js.map +1 -1
  137. package/dist/components/ProductLabel/index.d.ts +1 -1
  138. package/dist/components/ProductLabel/index.js +1 -1
  139. package/dist/components/ProductLabel/index.js.map +1 -1
  140. package/dist/components/ProductLabel/styles.module.css +41 -41
  141. package/dist/components/ProductLabel/utils.d.ts +8 -8
  142. package/dist/components/ProductLabel/utils.js +8 -8
  143. package/dist/components/ProductLabel/utils.js.map +1 -1
  144. package/dist/components/RadioFilter/Radio/Radio.d.ts +10 -10
  145. package/dist/components/RadioFilter/Radio/Radio.js +6 -6
  146. package/dist/components/RadioFilter/Radio/Radio.js.map +1 -1
  147. package/dist/components/RadioFilter/Radio/styles.module.css +144 -144
  148. package/dist/components/RadioFilter/RadioFilter.d.ts +9 -9
  149. package/dist/components/RadioFilter/RadioFilter.js +44 -44
  150. package/dist/components/RadioFilter/RadioFilter.js.map +1 -1
  151. package/dist/components/RadioFilter/styles.module.css +22 -22
  152. package/dist/components/RadioFilter/utils.d.ts +1 -1
  153. package/dist/components/RadioFilter/utils.js +7 -7
  154. package/dist/components/RadioFilter/utils.js.map +1 -1
  155. package/dist/components/ReactDatePicker/ReactDatePicker.d.ts +11 -11
  156. package/dist/components/ReactDatePicker/ReactDatePicker.js +15 -15
  157. package/dist/components/ReactDatePicker/ReactDatePicker.js.map +1 -1
  158. package/dist/components/ReactDatePicker/index.d.ts +1 -1
  159. package/dist/components/ReactDatePicker/index.js +1 -1
  160. package/dist/components/ReactDatePicker/index.js.map +1 -1
  161. package/dist/components/ReactDatePicker/styles.module.css +2 -2
  162. package/dist/components/RenderIfVisible/RenderIfVisible.d.ts +12 -12
  163. package/dist/components/RenderIfVisible/RenderIfVisible.js +58 -58
  164. package/dist/components/RenderIfVisible/RenderIfVisible.js.map +1 -1
  165. package/dist/components/RenderIfVisible/index.d.ts +1 -1
  166. package/dist/components/RenderIfVisible/index.js +1 -1
  167. package/dist/components/RenderIfVisible/index.js.map +1 -1
  168. package/dist/components/ScrollToTop/ScrollToTop.d.ts +6 -6
  169. package/dist/components/ScrollToTop/ScrollToTop.js +27 -27
  170. package/dist/components/ScrollToTop/ScrollToTop.js.map +1 -1
  171. package/dist/components/ScrollToTop/styles.module.css +18 -18
  172. package/dist/components/SelectCard/SelectCard.d.ts +5 -5
  173. package/dist/components/SelectCard/SelectCard.js +6 -6
  174. package/dist/components/SelectCard/SelectCard.js.map +1 -1
  175. package/dist/components/SelectCard/index.d.ts +1 -1
  176. package/dist/components/SelectCard/index.js +1 -1
  177. package/dist/components/SelectCard/index.js.map +1 -1
  178. package/dist/components/SelectCard/styles.module.css +20 -20
  179. package/dist/components/SingleFilter/SingleFilter.d.ts +11 -11
  180. package/dist/components/SingleFilter/SingleFilter.js +89 -89
  181. package/dist/components/SingleFilter/SingleFilter.js.map +1 -1
  182. package/dist/components/SingleFilter/styles.module.css +23 -23
  183. package/dist/components/SingleFilter/utils.d.ts +3 -3
  184. package/dist/components/SingleFilter/utils.js +41 -41
  185. package/dist/components/SingleFilter/utils.js.map +1 -1
  186. package/dist/components/SliderFilter/SliderFilter.d.ts +20 -20
  187. package/dist/components/SliderFilter/SliderFilter.js +45 -45
  188. package/dist/components/SliderFilter/SliderFilter.js.map +1 -1
  189. package/dist/components/SliderFilter/index.d.ts +1 -1
  190. package/dist/components/SliderFilter/index.js +1 -1
  191. package/dist/components/SliderFilter/index.js.map +1 -1
  192. package/dist/components/SliderFilter/styles.module.css +15 -15
  193. package/dist/components/Tooltip/Tooltip.d.ts +8 -8
  194. package/dist/components/Tooltip/Tooltip.js +8 -8
  195. package/dist/components/Tooltip/Tooltip.js.map +1 -1
  196. package/dist/components/Tooltip/styles.module.css +33 -33
  197. package/dist/components/common.d.ts +23 -23
  198. package/dist/components/common.js +30 -30
  199. package/dist/components/common.js.map +1 -1
  200. package/dist/components/productGrid/ProductGrid.d.ts +11 -11
  201. package/dist/components/productGrid/ProductGrid.js +32 -32
  202. package/dist/components/productGrid/ProductGrid.js.map +1 -1
  203. package/dist/components/productGrid/index.d.ts +1 -1
  204. package/dist/components/productGrid/index.js +1 -1
  205. package/dist/components/productGrid/index.js.map +1 -1
  206. package/dist/components/productGrid/styles.module.css +25 -25
  207. package/dist/icons/BackOfficeFiltersIcon.d.ts +2 -2
  208. package/dist/icons/BackOfficeFiltersIcon.js +6 -6
  209. package/dist/icons/BackOfficeFiltersIcon.js.map +1 -1
  210. package/dist/icons/BannersIcon.d.ts +2 -2
  211. package/dist/icons/BannersIcon.js +6 -6
  212. package/dist/icons/BannersIcon.js.map +1 -1
  213. package/dist/icons/GeneralIcon.d.ts +2 -2
  214. package/dist/icons/GeneralIcon.js +6 -6
  215. package/dist/icons/GeneralIcon.js.map +1 -1
  216. package/dist/icons/HelpIcon.d.ts +7 -7
  217. package/dist/icons/HelpIcon.js +4 -4
  218. package/dist/icons/HelpIcon.js.map +1 -1
  219. package/dist/icons/InStoreFiltersIcon.d.ts +2 -2
  220. package/dist/icons/InStoreFiltersIcon.js +6 -6
  221. package/dist/icons/InStoreFiltersIcon.js.map +1 -1
  222. package/dist/icons/PromoteIcon.d.ts +2 -2
  223. package/dist/icons/PromoteIcon.js +6 -6
  224. package/dist/icons/PromoteIcon.js.map +1 -1
  225. package/dist/icons/RemoveIcon.d.ts +2 -2
  226. package/dist/icons/RemoveIcon.js +6 -6
  227. package/dist/icons/RemoveIcon.js.map +1 -1
  228. package/dist/icons/RestoreIcon.d.ts +2 -2
  229. package/dist/icons/RestoreIcon.js +6 -6
  230. package/dist/icons/RestoreIcon.js.map +1 -1
  231. package/dist/icons/styles.module.css +60 -60
  232. package/dist/index.css +13 -0
  233. package/dist/index.d.ts +41 -41
  234. package/dist/index.js +32 -32
  235. package/dist/index.js.map +1 -1
  236. package/dist/main.d.ts +1 -1
  237. package/dist/main.js +5 -5
  238. package/dist/main.js.map +1 -1
  239. package/dist/services/API.d.ts +21 -21
  240. package/dist/services/API.js +49 -49
  241. package/dist/services/API.js.map +1 -1
  242. package/dist/services/autocomplete.d.ts +4 -4
  243. package/dist/services/autocomplete.js +25 -25
  244. package/dist/services/autocomplete.js.map +1 -1
  245. package/dist/services/getFormatProducts.d.ts +13 -13
  246. package/dist/services/getFormatProducts.js +43 -43
  247. package/dist/services/getFormatProducts.js.map +1 -1
  248. package/dist/services/landingPage.d.ts +28 -28
  249. package/dist/services/landingPage.js +86 -86
  250. package/dist/services/landingPage.js.map +1 -1
  251. package/dist/services/products.d.ts +9 -9
  252. package/dist/services/products.js +30 -30
  253. package/dist/services/products.js.map +1 -1
  254. package/dist/services/search.d.ts +13 -13
  255. package/dist/services/search.js +113 -113
  256. package/dist/services/search.js.map +1 -1
  257. package/dist/services/smartCollections.d.ts +5 -5
  258. package/dist/services/smartCollections.js +44 -44
  259. package/dist/services/smartCollections.js.map +1 -1
  260. package/dist/utils/customTagsFilters.d.ts +4 -4
  261. package/dist/utils/customTagsFilters.js +9 -9
  262. package/dist/utils/customTagsFilters.js.map +1 -1
  263. package/dist/utils/getCacheSettings.d.ts +16 -16
  264. package/dist/utils/getCacheSettings.js +25 -25
  265. package/dist/utils/getCacheSettings.js.map +1 -1
  266. package/dist/utils/getInternalURL.d.ts +1 -1
  267. package/dist/utils/getInternalURL.js +7 -7
  268. package/dist/utils/getInternalURL.js.map +1 -1
  269. package/dist/utils/getLSVectorSearch.d.ts +4 -4
  270. package/dist/utils/getLSVectorSearch.js +8 -8
  271. package/dist/utils/getLSVectorSearch.js.map +1 -1
  272. package/dist/utils/useDragToSelect.d.ts +13 -13
  273. package/dist/utils/useDragToSelect.js +172 -172
  274. package/dist/utils/useDragToSelect.js.map +1 -1
  275. package/dist/utils/useProductsPerRow.d.ts +3 -3
  276. package/dist/utils/useProductsPerRow.js +18 -18
  277. package/dist/utils/useProductsPerRow.js.map +1 -1
  278. package/package.json +64 -64
@@ -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
@@ -1 +1 @@
1
- {"version":3,"file":"editorProduct.js","sourceRoot":"","sources":["../../src/@types/editorProduct.ts"],"names":[],"mappings":"AA6BA,MAAM,UAAU,eAAe,CAAC,QAAwB;IACpD,IAAI,QAAQ,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACzC,OAAQ,QAA0B,CAAC,CAAC,KAAK,SAAS,CAAC;AACvD,CAAC","sourcesContent":["\r\nimport { ProductLabelType } from \"./productLabel\";\r\nimport { ServerProduct} from \"./product\";\r\n\r\nexport interface EditorProduct extends ServerProduct {\r\n org_pos: number | \"\";\r\n inv_sale: ProductInvSale;\r\n productLabel?: ProductLabelType;\r\n is_unpublished?: boolean;\r\n isFilteredProduct?: boolean;\r\n // chatbotAction?: ChatbotAction;\r\n pin_to_position?: number;\r\n}\r\ninterface ProductInvSale {\r\n cost: number;\r\n d: number[];\r\n i: number;\r\n s: number;\r\n tags: string[];\r\n v: Record<string, any>;\r\n}\r\n\r\nexport interface ChatbotAction {\r\n actionName: \"promote\" | \"hide\" | \"bury\" | \"position\";\r\n srcPosition: number;\r\n destPosition: number;\r\n disabled: boolean;\r\n}\r\n\r\nexport function isEditorProduct(gridItem?: EditorProduct): gridItem is EditorProduct {\r\n if (gridItem === undefined) return false;\r\n return (gridItem as EditorProduct).l !== undefined;\r\n}"]}
1
+ {"version":3,"file":"editorProduct.js","sourceRoot":"","sources":["../../src/@types/editorProduct.ts"],"names":[],"mappings":"AA6BA,MAAM,UAAU,eAAe,CAAC,QAAwB;IACpD,IAAI,QAAQ,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACzC,OAAQ,QAA0B,CAAC,CAAC,KAAK,SAAS,CAAC;AACvD,CAAC","sourcesContent":["\nimport { ProductLabelType } from \"./productLabel\";\nimport { ServerProduct} from \"./product\";\n\nexport interface EditorProduct extends ServerProduct {\n org_pos: number | \"\";\n inv_sale: ProductInvSale;\n productLabel?: ProductLabelType;\n is_unpublished?: boolean;\n isFilteredProduct?: boolean;\n // chatbotAction?: ChatbotAction;\n pin_to_position?: number;\n}\ninterface ProductInvSale {\n cost: number;\n d: number[];\n i: number;\n s: number;\n tags: string[];\n v: Record<string, any>;\n}\n\nexport interface ChatbotAction {\n actionName: \"promote\" | \"hide\" | \"bury\" | \"position\";\n srcPosition: number;\n destPosition: number;\n disabled: boolean;\n}\n\nexport function isEditorProduct(gridItem?: EditorProduct): gridItem is EditorProduct {\n if (gridItem === undefined) return false;\n return (gridItem as EditorProduct).l !== undefined;\n}"]}
@@ -1,59 +1,59 @@
1
- export type ServerFacet = [string, FacetServerValue[], string, boolean, number];
2
- export type FacetServerValue = GeneralFacetServerValue | CategoryServerFacetValue | ColorFamilyFacetServerValue;
3
- export type GeneralFacetServerValue = [string, number];
4
- export type CategoryServerFacetValue = [string, number, string, string];
5
- export type ColorFamilyFacetServerValue = [string, number, string];
6
- export declare enum SpecialFacetID {
7
- Category = "Categories",
8
- OnSale = "Isp-on-sale",
9
- Price = "Price",
10
- PriceRange = "Price_from_to",
11
- PriceMax = "Price_max",
12
- PriceMin = "Price_min",
13
- InStock = "Isp-in-stock",
14
- Color = "Color",
15
- ColorFamily = "Isp-color-family",
16
- Rating = "Isp-review-stars"
17
- }
18
- export interface FastCategory {
19
- d: string;
20
- id: string;
21
- l: string;
22
- p_id: string;
23
- t: string;
24
- u: string;
25
- parent_name?: string;
26
- }
27
- export interface FastTurbolinks {
28
- l: string;
29
- t: string;
30
- u: string;
31
- }
32
- export type FilterID = SpecialFacetID | string;
33
- export type Facet = {
34
- id: FilterID;
35
- name: string;
36
- values: FacetValue[];
37
- meta?: Record<string, string | number | boolean>;
38
- };
39
- export interface FacetValue {
40
- name: string;
41
- displayName: string;
42
- count: number;
43
- meta?: Record<string, string | number | boolean>;
44
- }
45
- export type Ancestor = {
46
- id: string;
47
- name: string;
48
- url: string;
49
- doNavigate?: boolean;
50
- };
51
- export interface PriceRange {
52
- min: number;
53
- max: number;
54
- }
55
- export declare const MUTUAL_FACETS: Set<SpecialFacetID>;
56
- export declare const CHECKBOX_FACETS: Set<SpecialFacetID>;
57
- export declare const SWITCH_FACETS: Set<SpecialFacetID>;
58
- export declare const NONE_SEARCHABLE_FACETS: Set<SpecialFacetID>;
59
- export declare const COLOR_FACETS: Set<string>;
1
+ export type ServerFacet = [string, FacetServerValue[], string, boolean, number];
2
+ export type FacetServerValue = GeneralFacetServerValue | CategoryServerFacetValue | ColorFamilyFacetServerValue;
3
+ export type GeneralFacetServerValue = [string, number];
4
+ export type CategoryServerFacetValue = [string, number, string, string];
5
+ export type ColorFamilyFacetServerValue = [string, number, string];
6
+ export declare enum SpecialFacetID {
7
+ Category = "Categories",
8
+ OnSale = "Isp-on-sale",
9
+ Price = "Price",
10
+ PriceRange = "Price_from_to",
11
+ PriceMax = "Price_max",
12
+ PriceMin = "Price_min",
13
+ InStock = "Isp-in-stock",
14
+ Color = "Color",
15
+ ColorFamily = "Isp-color-family",
16
+ Rating = "Isp-review-stars"
17
+ }
18
+ export interface FastCategory {
19
+ d: string;
20
+ id: string;
21
+ l: string;
22
+ p_id: string;
23
+ t: string;
24
+ u: string;
25
+ parent_name?: string;
26
+ }
27
+ export interface FastTurbolinks {
28
+ l: string;
29
+ t: string;
30
+ u: string;
31
+ }
32
+ export type FilterID = SpecialFacetID | string;
33
+ export type Facet = {
34
+ id: FilterID;
35
+ name: string;
36
+ values: FacetValue[];
37
+ meta?: Record<string, string | number | boolean>;
38
+ };
39
+ export interface FacetValue {
40
+ name: string;
41
+ displayName: string;
42
+ count: number;
43
+ meta?: Record<string, string | number | boolean>;
44
+ }
45
+ export type Ancestor = {
46
+ id: string;
47
+ name: string;
48
+ url: string;
49
+ doNavigate?: boolean;
50
+ };
51
+ export interface PriceRange {
52
+ min: number;
53
+ max: number;
54
+ }
55
+ export declare const MUTUAL_FACETS: Set<SpecialFacetID>;
56
+ export declare const CHECKBOX_FACETS: Set<SpecialFacetID>;
57
+ export declare const SWITCH_FACETS: Set<SpecialFacetID>;
58
+ export declare const NONE_SEARCHABLE_FACETS: Set<SpecialFacetID>;
59
+ export declare const COLOR_FACETS: Set<string>;
@@ -1,19 +1,19 @@
1
- export var SpecialFacetID;
2
- (function (SpecialFacetID) {
3
- SpecialFacetID["Category"] = "Categories";
4
- SpecialFacetID["OnSale"] = "Isp-on-sale";
5
- SpecialFacetID["Price"] = "Price";
6
- SpecialFacetID["PriceRange"] = "Price_from_to";
7
- SpecialFacetID["PriceMax"] = "Price_max";
8
- SpecialFacetID["PriceMin"] = "Price_min";
9
- SpecialFacetID["InStock"] = "Isp-in-stock";
10
- SpecialFacetID["Color"] = "Color";
11
- SpecialFacetID["ColorFamily"] = "Isp-color-family";
12
- SpecialFacetID["Rating"] = "Isp-review-stars";
13
- })(SpecialFacetID || (SpecialFacetID = {}));
14
- export const MUTUAL_FACETS = new Set([SpecialFacetID.InStock, SpecialFacetID.OnSale]);
15
- export const CHECKBOX_FACETS = new Set([SpecialFacetID.InStock, SpecialFacetID.OnSale]);
16
- export const SWITCH_FACETS = new Set([SpecialFacetID.InStock, SpecialFacetID.OnSale]);
17
- export const NONE_SEARCHABLE_FACETS = new Set([SpecialFacetID.InStock, SpecialFacetID.OnSale, SpecialFacetID.Price, SpecialFacetID.Rating]);
18
- export const COLOR_FACETS = new Set([SpecialFacetID.Color.toLowerCase(), SpecialFacetID.ColorFamily.toLowerCase(), 'colour', 'cor', 'couleur', 'farbe', 'box color', 'colore']);
1
+ export var SpecialFacetID;
2
+ (function (SpecialFacetID) {
3
+ SpecialFacetID["Category"] = "Categories";
4
+ SpecialFacetID["OnSale"] = "Isp-on-sale";
5
+ SpecialFacetID["Price"] = "Price";
6
+ SpecialFacetID["PriceRange"] = "Price_from_to";
7
+ SpecialFacetID["PriceMax"] = "Price_max";
8
+ SpecialFacetID["PriceMin"] = "Price_min";
9
+ SpecialFacetID["InStock"] = "Isp-in-stock";
10
+ SpecialFacetID["Color"] = "Color";
11
+ SpecialFacetID["ColorFamily"] = "Isp-color-family";
12
+ SpecialFacetID["Rating"] = "Isp-review-stars";
13
+ })(SpecialFacetID || (SpecialFacetID = {}));
14
+ export const MUTUAL_FACETS = new Set([SpecialFacetID.InStock, SpecialFacetID.OnSale]);
15
+ export const CHECKBOX_FACETS = new Set([SpecialFacetID.InStock, SpecialFacetID.OnSale]);
16
+ export const SWITCH_FACETS = new Set([SpecialFacetID.InStock, SpecialFacetID.OnSale]);
17
+ export const NONE_SEARCHABLE_FACETS = new Set([SpecialFacetID.InStock, SpecialFacetID.OnSale, SpecialFacetID.Price, SpecialFacetID.Rating]);
18
+ export const COLOR_FACETS = new Set([SpecialFacetID.Color.toLowerCase(), SpecialFacetID.ColorFamily.toLowerCase(), 'colour', 'cor', 'couleur', 'farbe', 'box color', 'colore']);
19
19
  //# sourceMappingURL=facets.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"facets.js","sourceRoot":"","sources":["../../src/@types/facets.ts"],"names":[],"mappings":"AAQA,MAAM,CAAN,IAAY,cAWX;AAXD,WAAY,cAAc;IACtB,yCAAuB,CAAA;IACvB,wCAAsB,CAAA;IACtB,iCAAe,CAAA;IACf,8CAA4B,CAAA;IAC5B,wCAAsB,CAAA;IACtB,wCAAsB,CAAA;IACtB,0CAAwB,CAAA;IACxB,iCAAe,CAAA;IACf,kDAAgC,CAAA;IAChC,6CAA2B,CAAA;AAC/B,CAAC,EAXW,cAAc,KAAd,cAAc,QAWzB;AA4CD,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,GAAG,CAAiB,CAAC,cAAc,CAAC,OAAO,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC,CAAA;AACrG,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,GAAG,CAAiB,CAAC,cAAc,CAAC,OAAO,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC,CAAA;AACvG,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,GAAG,CAAiB,CAAC,cAAc,CAAC,OAAO,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC,CAAA;AACrG,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,GAAG,CAAiB,CAAC,cAAc,CAAC,OAAO,EAAE,cAAc,CAAC,MAAM,EAAE,cAAc,CAAC,KAAK,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC,CAAA;AAC3J,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,GAAG,CAAS,CAAC,cAAc,CAAC,KAAK,CAAC,WAAW,EAAE,EAAE,cAAc,CAAC,WAAW,CAAC,WAAW,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAA","sourcesContent":["\r\nexport type ServerFacet = [string, FacetServerValue[], string, boolean, number] // [id, values, name, ?? ,??]\r\nexport type FacetServerValue = GeneralFacetServerValue | CategoryServerFacetValue | ColorFamilyFacetServerValue\r\nexport type GeneralFacetServerValue = [string, number] // [name, count]\r\nexport type CategoryServerFacetValue = [string, number, string, string] // [category_id, count, category_name, category_url]\r\nexport type ColorFamilyFacetServerValue = [string, number, string] // [name, count, hex_value]\r\n\r\n\r\nexport enum SpecialFacetID {\r\n Category = \"Categories\",\r\n OnSale = \"Isp-on-sale\",\r\n Price = 'Price',\r\n PriceRange = 'Price_from_to',\r\n PriceMax = 'Price_max',\r\n PriceMin = 'Price_min',\r\n InStock = \"Isp-in-stock\",\r\n Color = 'Color',\r\n ColorFamily = 'Isp-color-family',\r\n Rating = 'Isp-review-stars'\r\n}\r\nexport interface FastCategory {\r\n d: string\r\n id: string\r\n l: string\r\n p_id: string\r\n t: string\r\n u: string\r\n parent_name?: string\r\n}\r\nexport interface FastTurbolinks {\r\n l: string\r\n t: string\r\n u: string\r\n}\r\n\r\nexport type FilterID = SpecialFacetID | string\r\n\r\nexport type Facet = {\r\n id: FilterID\r\n name: string\r\n values: FacetValue[]\r\n meta?: Record<string, string | number | boolean>\r\n}\r\n\r\n\r\nexport interface FacetValue {\r\n name: string,\r\n displayName: string\r\n count: number,\r\n meta?: Record<string, string | number | boolean>\r\n}\r\n\r\nexport type Ancestor = {\r\n id: string\r\n name: string\r\n url: string\r\n doNavigate?: boolean\r\n}\r\n\r\nexport interface PriceRange {\r\n min: number;\r\n max: number;\r\n}\r\nexport const MUTUAL_FACETS = new Set<SpecialFacetID>([SpecialFacetID.InStock, SpecialFacetID.OnSale])\r\nexport const CHECKBOX_FACETS = new Set<SpecialFacetID>([SpecialFacetID.InStock, SpecialFacetID.OnSale])\r\nexport const SWITCH_FACETS = new Set<SpecialFacetID>([SpecialFacetID.InStock, SpecialFacetID.OnSale])\r\nexport const NONE_SEARCHABLE_FACETS = new Set<SpecialFacetID>([SpecialFacetID.InStock, SpecialFacetID.OnSale, SpecialFacetID.Price, SpecialFacetID.Rating])\r\nexport const COLOR_FACETS = new Set<string>([SpecialFacetID.Color.toLowerCase(), SpecialFacetID.ColorFamily.toLowerCase(), 'colour', 'cor', 'couleur', 'farbe', 'box color', 'colore'])"]}
1
+ {"version":3,"file":"facets.js","sourceRoot":"","sources":["../../src/@types/facets.ts"],"names":[],"mappings":"AAQA,MAAM,CAAN,IAAY,cAWX;AAXD,WAAY,cAAc;IACtB,yCAAuB,CAAA;IACvB,wCAAsB,CAAA;IACtB,iCAAe,CAAA;IACf,8CAA4B,CAAA;IAC5B,wCAAsB,CAAA;IACtB,wCAAsB,CAAA;IACtB,0CAAwB,CAAA;IACxB,iCAAe,CAAA;IACf,kDAAgC,CAAA;IAChC,6CAA2B,CAAA;AAC/B,CAAC,EAXW,cAAc,KAAd,cAAc,QAWzB;AA4CD,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,GAAG,CAAiB,CAAC,cAAc,CAAC,OAAO,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC,CAAA;AACrG,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,GAAG,CAAiB,CAAC,cAAc,CAAC,OAAO,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC,CAAA;AACvG,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,GAAG,CAAiB,CAAC,cAAc,CAAC,OAAO,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC,CAAA;AACrG,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,GAAG,CAAiB,CAAC,cAAc,CAAC,OAAO,EAAE,cAAc,CAAC,MAAM,EAAE,cAAc,CAAC,KAAK,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC,CAAA;AAC3J,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,GAAG,CAAS,CAAC,cAAc,CAAC,KAAK,CAAC,WAAW,EAAE,EAAE,cAAc,CAAC,WAAW,CAAC,WAAW,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAA","sourcesContent":["\nexport type ServerFacet = [string, FacetServerValue[], string, boolean, number] // [id, values, name, ?? ,??]\nexport type FacetServerValue = GeneralFacetServerValue | CategoryServerFacetValue | ColorFamilyFacetServerValue\nexport type GeneralFacetServerValue = [string, number] // [name, count]\nexport type CategoryServerFacetValue = [string, number, string, string] // [category_id, count, category_name, category_url]\nexport type ColorFamilyFacetServerValue = [string, number, string] // [name, count, hex_value]\n\n\nexport enum SpecialFacetID {\n Category = \"Categories\",\n OnSale = \"Isp-on-sale\",\n Price = 'Price',\n PriceRange = 'Price_from_to',\n PriceMax = 'Price_max',\n PriceMin = 'Price_min',\n InStock = \"Isp-in-stock\",\n Color = 'Color',\n ColorFamily = 'Isp-color-family',\n Rating = 'Isp-review-stars'\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 FastTurbolinks {\n l: string\n t: string\n u: string\n}\n\nexport type FilterID = SpecialFacetID | string\n\nexport type Facet = {\n id: FilterID\n name: string\n values: FacetValue[]\n meta?: Record<string, string | number | boolean>\n}\n\n\nexport interface FacetValue {\n name: string,\n displayName: string\n count: number,\n meta?: Record<string, string | number | boolean>\n}\n\nexport type Ancestor = {\n id: string\n name: string\n url: string\n doNavigate?: boolean\n}\n\nexport interface PriceRange {\n min: number;\n max: number;\n}\nexport const MUTUAL_FACETS = new Set<SpecialFacetID>([SpecialFacetID.InStock, SpecialFacetID.OnSale])\nexport const CHECKBOX_FACETS = new Set<SpecialFacetID>([SpecialFacetID.InStock, SpecialFacetID.OnSale])\nexport const SWITCH_FACETS = new Set<SpecialFacetID>([SpecialFacetID.InStock, SpecialFacetID.OnSale])\nexport const NONE_SEARCHABLE_FACETS = new Set<SpecialFacetID>([SpecialFacetID.InStock, SpecialFacetID.OnSale, SpecialFacetID.Price, SpecialFacetID.Rating])\nexport const COLOR_FACETS = new Set<string>([SpecialFacetID.Color.toLowerCase(), SpecialFacetID.ColorFamily.toLowerCase(), 'colour', 'cor', 'couleur', 'farbe', 'box color', 'colore'])"]}
@@ -1,9 +1,9 @@
1
- export interface IconProps {
2
- width?: number;
3
- height?: number;
4
- customClasses?: {
5
- wrapper?: string;
6
- svg?: string;
7
- path?: string;
8
- };
9
- }
1
+ export interface IconProps {
2
+ width?: number;
3
+ height?: number;
4
+ customClasses?: {
5
+ wrapper?: string;
6
+ svg?: string;
7
+ path?: string;
8
+ };
9
+ }
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=iconProps.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"iconProps.js","sourceRoot":"","sources":["../../src/@types/iconProps.ts"],"names":[],"mappings":"","sourcesContent":["export interface IconProps {\r\n width?: number;\r\n height?: number;\r\n\r\n customClasses?: {\r\n wrapper?: string,\r\n svg?: string,\r\n path?: string\r\n };\r\n}"]}
1
+ {"version":3,"file":"iconProps.js","sourceRoot":"","sources":["../../src/@types/iconProps.ts"],"names":[],"mappings":"","sourcesContent":["export interface IconProps {\n width?: number;\n height?: number;\n\n customClasses?: {\n wrapper?: string,\n svg?: string,\n path?: string\n };\n}"]}
@@ -1,7 +1,7 @@
1
- export type ServerNarrow = [FilterGroupName, FilterValue];
2
- type FilterGroupName = string;
3
- type FilterValue = string;
4
- export interface Narrow {
5
- [FilterGroupName: string]: Set<FilterValue>;
6
- }
7
- export {};
1
+ export type ServerNarrow = [FilterGroupName, FilterValue];
2
+ type FilterGroupName = string;
3
+ type FilterValue = string;
4
+ export interface Narrow {
5
+ [FilterGroupName: string]: Set<FilterValue>;
6
+ }
7
+ export {};
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=narrow.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"narrow.js","sourceRoot":"","sources":["../../src/@types/narrow.ts"],"names":[],"mappings":"","sourcesContent":["export type ServerNarrow = [FilterGroupName, FilterValue]\r\ntype FilterGroupName = string\r\ntype FilterValue = string\r\n\r\n\r\nexport interface Narrow {\r\n [FilterGroupName: string]: Set<FilterValue>\r\n}"]}
1
+ {"version":3,"file":"narrow.js","sourceRoot":"","sources":["../../src/@types/narrow.ts"],"names":[],"mappings":"","sourcesContent":["export type ServerNarrow = [FilterGroupName, FilterValue]\ntype FilterGroupName = string\ntype FilterValue = string\n\n\nexport interface Narrow {\n [FilterGroupName: string]: Set<FilterValue>\n}"]}
@@ -1,160 +1,160 @@
1
- import type { Currency } from "./currency";
2
- import { PromoTileConfig } from "./promoTile";
3
- export declare enum FeaturedRanking {
4
- FEATURED_RANK_NO = 0,
5
- FEATURED_RANK_ON_MATCH = 1,
6
- FEATURED_RANK_ALWAYS = 2,
7
- FEATURED_RANK_NEVER = 3
8
- }
9
- export interface ServerProduct {
10
- c: Currency;
11
- d: string;
12
- f: FeaturedRanking;
13
- id: productID;
14
- iso: boolean;
15
- l: string;
16
- p: string;
17
- p_c: string;
18
- p_max: string;
19
- p_max_c: string;
20
- p_min: string;
21
- p_min_c: string;
22
- p_spl: number;
23
- p_spl_id?: string;
24
- review?: number;
25
- reviews_count?: number;
26
- s: string;
27
- sku: string;
28
- skus: string[];
29
- t: string;
30
- t2: string;
31
- u: string;
32
- v_c: number;
33
- v: string;
34
- vra: ServerVariant[];
35
- vrc: object;
36
- att?: Attribute[];
37
- real_sku?: string;
38
- image_id?: string;
39
- alt?: AlternativeColor[];
40
- inventory_lvl?: number;
41
- promotile?: boolean;
42
- imageID?: string;
43
- rec_src?: number;
44
- }
45
- export type ServerVariant = [number, VariantData[]];
46
- export type VariantData = [string, string[]];
47
- export type Attribute = [string, AttributeData[]];
48
- export type AttributeData = string[] | string[][];
49
- export interface ServerAltProductVariant {
50
- sellable: boolean;
51
- size: string;
52
- v_id: number;
53
- }
54
- export interface ServerAltProductData {
55
- l: string;
56
- p: string;
57
- p_c: string;
58
- p_spl: number;
59
- p_spl_id?: number;
60
- sku?: string;
61
- t: string[];
62
- vra: ServerAltProductVariant[];
63
- review?: number;
64
- reviews_count?: number;
65
- att?: any[];
66
- s?: string;
67
- p_min: string;
68
- p_max: string;
69
- }
70
- export type AlternativeColor = [AlternativeColorName, AlternativeColorURL, productID?, ServerAltProductData?];
71
- type AlternativeColorName = string;
72
- type AlternativeColorURL = string;
73
- type productID = number;
74
- export interface Badge {
75
- tag: string;
76
- url: string;
77
- }
78
- export interface TextBadge {
79
- badgeText: string;
80
- tag: string;
81
- badgeStyle: {
82
- backgroundColor: string;
83
- borderColor: string;
84
- borderRadius: number;
85
- horizontal: string;
86
- vertical: string;
87
- size: number;
88
- textColor: string;
89
- };
90
- }
91
- export interface Products {
92
- [id: string]: Product;
93
- }
94
- export interface Product {
95
- currency: Currency;
96
- id: string;
97
- title: string;
98
- description: string;
99
- variants: Variants;
100
- isSoldOut: boolean;
101
- price: number;
102
- minPrice: number;
103
- maxPrice: number;
104
- maxCompare: number;
105
- comparePrice: number;
106
- maxFormattedCompare: string;
107
- reviewScore: number | undefined;
108
- reviewCount: number | undefined;
109
- imageURL: string;
110
- imageURL2: string;
111
- optimizedURL?: string;
112
- formattedPrice: string;
113
- formattedCompare: string | undefined;
114
- vendor: string;
115
- sku: string;
116
- s: string;
117
- inventory_lvl?: number;
118
- imagesSrcset: string;
119
- productURL: string;
120
- productBadges: Badge[];
121
- productTextBadges?: TextBadge[];
122
- alternativeProducts?: AlternativeProduct[];
123
- tags?: string[];
124
- promoTileConfig?: PromoTileConfig;
125
- attributes?: Attribute[];
126
- p_spl?: number;
127
- p_spl_id?: string;
128
- isIspNoPrice?: boolean;
129
- imageID?: string;
130
- vrc?: object;
131
- }
132
- export interface Variant {
133
- id: number;
134
- attributes: {
135
- [key: string]: VariantsAttribute;
136
- };
137
- }
138
- export type Variants = Variant[];
139
- export type VariantsAttribute = string | number | boolean | string[] | undefined;
140
- export interface AlternativeProduct {
141
- color: string;
142
- url: string;
143
- id: string;
144
- variants?: Variants;
145
- s?: string;
146
- price: number;
147
- comparePrice: number;
148
- formattedCompare?: string;
149
- formattedPrice?: string;
150
- attributes?: Attribute[] | undefined;
151
- }
152
- export interface ServerPromotile {
153
- height: number;
154
- id: string;
155
- image: string;
156
- link: string;
157
- width: number;
158
- title: string;
159
- }
160
- export {};
1
+ import type { Currency } from "./currency";
2
+ import { PromoTileConfig } from "./promoTile";
3
+ export declare enum FeaturedRanking {
4
+ FEATURED_RANK_NO = 0,
5
+ FEATURED_RANK_ON_MATCH = 1,
6
+ FEATURED_RANK_ALWAYS = 2,
7
+ FEATURED_RANK_NEVER = 3
8
+ }
9
+ export interface ServerProduct {
10
+ c: Currency;
11
+ d: string;
12
+ f: FeaturedRanking;
13
+ id: productID;
14
+ iso: boolean;
15
+ l: string;
16
+ p: string;
17
+ p_c: string;
18
+ p_max: string;
19
+ p_max_c: string;
20
+ p_min: string;
21
+ p_min_c: string;
22
+ p_spl: number;
23
+ p_spl_id?: string;
24
+ review?: number;
25
+ reviews_count?: number;
26
+ s: string;
27
+ sku: string;
28
+ skus: string[];
29
+ t: string;
30
+ t2: string;
31
+ u: string;
32
+ v_c: number;
33
+ v: string;
34
+ vra: ServerVariant[];
35
+ vrc: object;
36
+ att?: Attribute[];
37
+ real_sku?: string;
38
+ image_id?: string;
39
+ alt?: AlternativeColor[];
40
+ inventory_lvl?: number;
41
+ promotile?: boolean;
42
+ imageID?: string;
43
+ rec_src?: number;
44
+ }
45
+ export type ServerVariant = [number, VariantData[]];
46
+ export type VariantData = [string, string[]];
47
+ export type Attribute = [string, AttributeData[]];
48
+ export type AttributeData = string[] | string[][];
49
+ export interface ServerAltProductVariant {
50
+ sellable: boolean;
51
+ size: string;
52
+ v_id: number;
53
+ }
54
+ export interface ServerAltProductData {
55
+ l: string;
56
+ p: string;
57
+ p_c: string;
58
+ p_spl: number;
59
+ p_spl_id?: number;
60
+ sku?: string;
61
+ t: string[];
62
+ vra: ServerAltProductVariant[];
63
+ review?: number;
64
+ reviews_count?: number;
65
+ att?: any[];
66
+ s?: string;
67
+ p_min: string;
68
+ p_max: string;
69
+ }
70
+ export type AlternativeColor = [AlternativeColorName, AlternativeColorURL, productID?, ServerAltProductData?];
71
+ type AlternativeColorName = string;
72
+ type AlternativeColorURL = string;
73
+ type productID = number;
74
+ export interface Badge {
75
+ tag: string;
76
+ url: string;
77
+ }
78
+ export interface TextBadge {
79
+ badgeText: string;
80
+ tag: string;
81
+ badgeStyle: {
82
+ backgroundColor: string;
83
+ borderColor: string;
84
+ borderRadius: number;
85
+ horizontal: string;
86
+ vertical: string;
87
+ size: number;
88
+ textColor: string;
89
+ };
90
+ }
91
+ export interface Products {
92
+ [id: string]: Product;
93
+ }
94
+ export interface Product {
95
+ currency: Currency;
96
+ id: string;
97
+ title: string;
98
+ description: string;
99
+ variants: Variants;
100
+ isSoldOut: boolean;
101
+ price: number;
102
+ minPrice: number;
103
+ maxPrice: number;
104
+ maxCompare: number;
105
+ comparePrice: number;
106
+ maxFormattedCompare: string;
107
+ reviewScore: number | undefined;
108
+ reviewCount: number | undefined;
109
+ imageURL: string;
110
+ imageURL2: string;
111
+ optimizedURL?: string;
112
+ formattedPrice: string;
113
+ formattedCompare: string | undefined;
114
+ vendor: string;
115
+ sku: string;
116
+ s: string;
117
+ inventory_lvl?: number;
118
+ imagesSrcset: string;
119
+ productURL: string;
120
+ productBadges: Badge[];
121
+ productTextBadges?: TextBadge[];
122
+ alternativeProducts?: AlternativeProduct[];
123
+ tags?: string[];
124
+ promoTileConfig?: PromoTileConfig;
125
+ attributes?: Attribute[];
126
+ p_spl?: number;
127
+ p_spl_id?: string;
128
+ isIspNoPrice?: boolean;
129
+ imageID?: string;
130
+ vrc?: object;
131
+ }
132
+ export interface Variant {
133
+ id: number;
134
+ attributes: {
135
+ [key: string]: VariantsAttribute;
136
+ };
137
+ }
138
+ export type Variants = Variant[];
139
+ export type VariantsAttribute = string | number | boolean | string[] | undefined;
140
+ export interface AlternativeProduct {
141
+ color: string;
142
+ url: string;
143
+ id: string;
144
+ variants?: Variants;
145
+ s?: string;
146
+ price: number;
147
+ comparePrice: number;
148
+ formattedCompare?: string;
149
+ formattedPrice?: string;
150
+ attributes?: Attribute[] | undefined;
151
+ }
152
+ export interface ServerPromotile {
153
+ height: number;
154
+ id: string;
155
+ image: string;
156
+ link: string;
157
+ width: number;
158
+ title: string;
159
+ }
160
+ export {};
@@ -1,8 +1,8 @@
1
- export var FeaturedRanking;
2
- (function (FeaturedRanking) {
3
- FeaturedRanking[FeaturedRanking["FEATURED_RANK_NO"] = 0] = "FEATURED_RANK_NO";
4
- FeaturedRanking[FeaturedRanking["FEATURED_RANK_ON_MATCH"] = 1] = "FEATURED_RANK_ON_MATCH";
5
- FeaturedRanking[FeaturedRanking["FEATURED_RANK_ALWAYS"] = 2] = "FEATURED_RANK_ALWAYS";
6
- FeaturedRanking[FeaturedRanking["FEATURED_RANK_NEVER"] = 3] = "FEATURED_RANK_NEVER";
7
- })(FeaturedRanking || (FeaturedRanking = {}));
1
+ export var FeaturedRanking;
2
+ (function (FeaturedRanking) {
3
+ FeaturedRanking[FeaturedRanking["FEATURED_RANK_NO"] = 0] = "FEATURED_RANK_NO";
4
+ FeaturedRanking[FeaturedRanking["FEATURED_RANK_ON_MATCH"] = 1] = "FEATURED_RANK_ON_MATCH";
5
+ FeaturedRanking[FeaturedRanking["FEATURED_RANK_ALWAYS"] = 2] = "FEATURED_RANK_ALWAYS";
6
+ FeaturedRanking[FeaturedRanking["FEATURED_RANK_NEVER"] = 3] = "FEATURED_RANK_NEVER";
7
+ })(FeaturedRanking || (FeaturedRanking = {}));
8
8
  //# sourceMappingURL=product.js.map