@fast-simon/shopify-hydrogen 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/README.md +186 -179
  2. package/dist/esnext/@types/Tab.d.ts +9 -9
  3. package/dist/esnext/@types/Tab.js +5 -5
  4. package/dist/esnext/@types/appServerProps.d.ts +12 -12
  5. package/dist/esnext/@types/appServerProps.js +1 -1
  6. package/dist/esnext/@types/articles.d.ts +12 -12
  7. package/dist/esnext/@types/articles.js +1 -1
  8. package/dist/esnext/@types/categories.d.ts +10 -10
  9. package/dist/esnext/@types/categories.js +1 -1
  10. package/dist/esnext/@types/currency.d.ts +1 -1
  11. package/dist/esnext/@types/currency.js +1 -1
  12. package/dist/esnext/@types/device.d.ts +1 -1
  13. package/dist/esnext/@types/device.js +1 -1
  14. package/dist/esnext/@types/editor.d.ts +418 -416
  15. package/dist/esnext/@types/editor.js +6 -6
  16. package/dist/esnext/@types/facets.d.ts +37 -37
  17. package/dist/esnext/@types/facets.js +16 -16
  18. package/dist/esnext/@types/ispOptions.d.ts +6 -6
  19. package/dist/esnext/@types/ispOptions.js +1 -1
  20. package/dist/esnext/@types/narrow.d.ts +7 -7
  21. package/dist/esnext/@types/narrow.js +1 -1
  22. package/dist/esnext/@types/product.d.ts +134 -134
  23. package/dist/esnext/@types/product.js +7 -7
  24. package/dist/esnext/@types/promoTile.d.ts +11 -11
  25. package/dist/esnext/@types/promoTile.js +1 -1
  26. package/dist/esnext/@types/results.d.ts +38 -36
  27. package/dist/esnext/@types/results.js +1 -1
  28. package/dist/esnext/@types/routing.d.ts +11 -11
  29. package/dist/esnext/@types/routing.js +1 -1
  30. package/dist/esnext/@types/siteSetup.d.ts +52 -52
  31. package/dist/esnext/@types/siteSetup.js +1 -1
  32. package/dist/esnext/@types/siteStatus.d.ts +5 -5
  33. package/dist/esnext/@types/siteStatus.js +1 -1
  34. package/dist/esnext/@types/sortBy.d.ts +12 -12
  35. package/dist/esnext/@types/sortBy.js +1 -1
  36. package/dist/esnext/@types/translations.d.ts +12 -12
  37. package/dist/esnext/@types/translations.js +6 -6
  38. package/dist/esnext/components/FastSimonApp.server.d.ts +9 -9
  39. package/dist/esnext/components/FastSimonApp.server.js +45 -45
  40. package/dist/esnext/components/FastSimonProvider.server.d.ts +10 -10
  41. package/dist/esnext/components/FastSimonProvider.server.js +9 -9
  42. package/dist/esnext/components/Filters/DesktopFilters/DesktopFilters.server.d.ts +8 -8
  43. package/dist/esnext/components/Filters/DesktopFilters/DesktopFilters.server.js +5 -5
  44. package/dist/esnext/components/Filters/FacetOption.client.d.ts +9 -9
  45. package/dist/esnext/components/Filters/FacetOption.client.js +39 -39
  46. package/dist/esnext/components/Filters/Filters.server.d.ts +12 -12
  47. package/dist/esnext/components/Filters/Filters.server.js +11 -11
  48. package/dist/esnext/components/Filters/FiltersList.server.d.ts +8 -8
  49. package/dist/esnext/components/Filters/FiltersList.server.js +11 -11
  50. package/dist/esnext/components/Filters/FiltersSkeleton.d.ts +3 -3
  51. package/dist/esnext/components/Filters/FiltersSkeleton.js +32 -32
  52. package/dist/esnext/components/Filters/MobileFilters/MobileFilters.client.d.ts +6 -6
  53. package/dist/esnext/components/Filters/MobileFilters/MobileFilters.client.js +20 -20
  54. package/dist/esnext/components/Filters/RemovableTags/RemovableTag.client.d.ts +8 -8
  55. package/dist/esnext/components/Filters/RemovableTags/RemovableTag.client.js +11 -11
  56. package/dist/esnext/components/Filters/RemovableTags/RemovableTags.client.d.ts +8 -8
  57. package/dist/esnext/components/Filters/RemovableTags/RemovableTags.client.js +51 -51
  58. package/dist/esnext/components/PageTitle/PageTitle.server.d.ts +7 -7
  59. package/dist/esnext/components/PageTitle/PageTitle.server.js +4 -4
  60. package/dist/esnext/components/Pagination/Pagination.client.d.ts +9 -9
  61. package/dist/esnext/components/Pagination/Pagination.client.js +43 -43
  62. package/dist/esnext/components/Pagination/utils.d.ts +1 -1
  63. package/dist/esnext/components/Pagination/utils.js +4 -4
  64. package/dist/esnext/components/ProductCard/ProductCard.d.ts +10 -10
  65. package/dist/esnext/components/ProductCard/ProductCard.js +31 -31
  66. package/dist/esnext/components/ProductCard/components/AddToCart/AddToCart.client.d.ts +10 -10
  67. package/dist/esnext/components/ProductCard/components/AddToCart/AddToCart.client.js +23 -23
  68. package/dist/esnext/components/ProductCard/components/Compare/Compare.d.ts +6 -6
  69. package/dist/esnext/components/ProductCard/components/Compare/Compare.js +6 -6
  70. package/dist/esnext/components/ProductCard/components/Info/ProductInfo.d.ts +9 -9
  71. package/dist/esnext/components/ProductCard/components/Info/ProductInfo.js +11 -11
  72. package/dist/esnext/components/ProductCard/components/Price/Price.d.ts +7 -7
  73. package/dist/esnext/components/ProductCard/components/Price/Price.js +6 -6
  74. package/dist/esnext/components/ProductCard/components/ProductImage/ProductImage.d.ts +8 -8
  75. package/dist/esnext/components/ProductCard/components/ProductImage/ProductImage.js +7 -7
  76. package/dist/esnext/components/ProductCard/components/Title/Title.d.ts +7 -7
  77. package/dist/esnext/components/ProductCard/components/Title/Title.js +4 -4
  78. package/dist/esnext/components/ProductGrid/ProductGrid.server.d.ts +10 -10
  79. package/dist/esnext/components/ProductGrid/ProductGrid.server.js +10 -10
  80. package/dist/esnext/components/ProductGrid/stylesUtil.d.ts +138 -138
  81. package/dist/esnext/components/ProductGrid/stylesUtil.js +122 -122
  82. package/dist/esnext/components/ResultsSummary/ResultsSummary.server.d.ts +7 -7
  83. package/dist/esnext/components/ResultsSummary/ResultsSummary.server.js +8 -8
  84. package/dist/esnext/components/SortBy/SortBy.client.d.ts +10 -10
  85. package/dist/esnext/components/SortBy/SortBy.client.js +8 -8
  86. package/dist/esnext/components/SortBy/components/DesktopSortBy.client.d.ts +8 -8
  87. package/dist/esnext/components/SortBy/components/DesktopSortBy.client.js +30 -30
  88. package/dist/esnext/components/SortBy/utils.d.ts +8 -8
  89. package/dist/esnext/components/SortBy/utils.js +28 -28
  90. package/dist/esnext/components/index.d.ts +2 -2
  91. package/dist/esnext/components/index.js +2 -2
  92. package/dist/esnext/context/setRoutingContext.d.ts +2 -2
  93. package/dist/esnext/context/setRoutingContext.js +14 -14
  94. package/dist/esnext/context/setSiteContext.d.ts +6 -6
  95. package/dist/esnext/context/setSiteContext.js +18 -18
  96. package/dist/esnext/hooks/ResizeDetect.client.d.ts +2 -2
  97. package/dist/esnext/hooks/ResizeDetect.client.js +6 -6
  98. package/dist/esnext/hooks/useClickOutside.d.ts +1 -1
  99. package/dist/esnext/hooks/useClickOutside.js +12 -12
  100. package/dist/esnext/hooks/useScreenSize.d.ts +1 -1
  101. package/dist/esnext/hooks/useScreenSize.js +19 -19
  102. package/dist/esnext/icons/DownArrowIcon.d.ts +9 -9
  103. package/dist/esnext/icons/DownArrowIcon.js +5 -5
  104. package/dist/esnext/icons/LeftArrowIcon.d.ts +8 -8
  105. package/dist/esnext/icons/LeftArrowIcon.js +5 -5
  106. package/dist/esnext/icons/RejectIcon.d.ts +8 -8
  107. package/dist/esnext/icons/RejectIcon.js +5 -5
  108. package/dist/esnext/icons/RightArrowIcon.d.ts +8 -8
  109. package/dist/esnext/icons/RightArrowIcon.js +5 -5
  110. package/dist/esnext/icons/Spinner.d.ts +11 -11
  111. package/dist/esnext/icons/Spinner.js +6 -6
  112. package/dist/esnext/index.d.ts +1 -1
  113. package/dist/esnext/index.js +1 -1
  114. package/dist/esnext/services/__tests__/categories_navigation.test.d.ts +1 -0
  115. package/dist/esnext/services/__tests__/categories_navigation.test.js +90 -0
  116. package/dist/esnext/services/categories_navigation.d.ts +69 -48
  117. package/dist/esnext/services/categories_navigation.js +53 -51
  118. package/dist/esnext/services/search.d.ts +47 -47
  119. package/dist/esnext/services/search.js +51 -51
  120. package/dist/esnext/services/site_setup.d.ts +7 -7
  121. package/dist/esnext/services/site_setup.js +69 -69
  122. package/dist/esnext/utils/DynamicStyle.d.ts +7 -7
  123. package/dist/esnext/utils/DynamicStyle.js +5 -5
  124. package/dist/esnext/utils/defaults.d.ts +8 -8
  125. package/dist/esnext/utils/defaults.js +9 -9
  126. package/dist/esnext/utils/getDynamicStylesVar.d.ts +1 -1
  127. package/dist/esnext/utils/getDynamicStylesVar.js +5 -5
  128. package/dist/esnext/utils/getRoutingState.d.ts +9 -9
  129. package/dist/esnext/utils/getRoutingState.js +13 -13
  130. package/dist/esnext/utils/makeServingRequests.d.ts +6 -6
  131. package/dist/esnext/utils/makeServingRequests.js +32 -32
  132. package/dist/node/plugin/extendOptimizeDeps.d.ts +2 -2
  133. package/dist/node/plugin/extendOptimizeDeps.js +14 -14
  134. package/dist/node/plugin/index.d.ts +3 -3
  135. package/dist/node/plugin/index.js +13 -13
  136. package/dist/node/plugin/injectCSS.d.ts +2 -2
  137. package/dist/node/plugin/injectCSS.js +25 -25
  138. package/dist/node/plugin/suppressWarnings.d.ts +2 -2
  139. package/dist/node/plugin/suppressWarnings.js +21 -21
  140. package/package.json +37 -34
  141. package/dist/esnext/styles/fast-simon.css +0 -622
@@ -1,6 +1,6 @@
1
- export var SwatchType;
2
- (function (SwatchType) {
3
- SwatchType[SwatchType["Color"] = 0] = "Color";
4
- SwatchType[SwatchType["Image"] = 1] = "Image";
5
- SwatchType[SwatchType["Text"] = 2] = "Text";
6
- })(SwatchType || (SwatchType = {}));
1
+ export var SwatchType;
2
+ (function (SwatchType) {
3
+ SwatchType[SwatchType["Color"] = 0] = "Color";
4
+ SwatchType[SwatchType["Image"] = 1] = "Image";
5
+ SwatchType[SwatchType["Text"] = 2] = "Text";
6
+ })(SwatchType || (SwatchType = {}));
@@ -1,37 +1,37 @@
1
- export declare type ServerFacet = [string, FacetServerValue[], string, boolean, number];
2
- export declare type FacetServerValue = GeneralFacetServerValue | CategoryServerFacetValue | ColorFamilyFacetServerValue;
3
- export declare type GeneralFacetServerValue = [string, number];
4
- export declare type CategoryServerFacetValue = [string, number, string, string];
5
- export declare 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 declare type FilterID = SpecialFacetID | string;
19
- export declare type Facet = {
20
- id: FilterID;
21
- name: string;
22
- values: FacetValue[];
23
- meta?: Record<string, string | number | boolean>;
24
- };
25
- export interface FacetValue {
26
- name: string;
27
- displayName: string;
28
- count: number;
29
- meta?: Record<string, string | number | boolean>;
30
- }
31
- export interface PriceRange {
32
- min: number;
33
- max: number;
34
- }
35
- export declare const SWITCH_FACETS: Set<SpecialFacetID>;
36
- export declare const NONE_SEARCHABLE_FACETS: Set<SpecialFacetID>;
37
- export declare const COLOR_FACETS: Set<string>;
1
+ export declare type ServerFacet = [string, FacetServerValue[], string, boolean, number];
2
+ export declare type FacetServerValue = GeneralFacetServerValue | CategoryServerFacetValue | ColorFamilyFacetServerValue;
3
+ export declare type GeneralFacetServerValue = [string, number];
4
+ export declare type CategoryServerFacetValue = [string, number, string, string];
5
+ export declare 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 declare type FilterID = SpecialFacetID | string;
19
+ export declare type Facet = {
20
+ id: FilterID;
21
+ name: string;
22
+ values: FacetValue[];
23
+ meta?: Record<string, string | number | boolean>;
24
+ };
25
+ export interface FacetValue {
26
+ name: string;
27
+ displayName: string;
28
+ count: number;
29
+ meta?: Record<string, string | number | boolean>;
30
+ }
31
+ export interface PriceRange {
32
+ min: number;
33
+ max: number;
34
+ }
35
+ export declare const SWITCH_FACETS: Set<SpecialFacetID>;
36
+ export declare const NONE_SEARCHABLE_FACETS: Set<SpecialFacetID>;
37
+ export declare const COLOR_FACETS: Set<string>;
@@ -1,16 +1,16 @@
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 SWITCH_FACETS = new Set([SpecialFacetID.InStock, SpecialFacetID.OnSale]);
15
- export const NONE_SEARCHABLE_FACETS = new Set([SpecialFacetID.InStock, SpecialFacetID.OnSale, SpecialFacetID.Price, SpecialFacetID.Rating]);
16
- export const COLOR_FACETS = new Set([SpecialFacetID.Color.toLowerCase(), SpecialFacetID.ColorFamily.toLowerCase(), 'colour', 'cor', 'couleur', 'farbe', 'box color']);
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 SWITCH_FACETS = new Set([SpecialFacetID.InStock, SpecialFacetID.OnSale]);
15
+ export const NONE_SEARCHABLE_FACETS = new Set([SpecialFacetID.InStock, SpecialFacetID.OnSale, SpecialFacetID.Price, SpecialFacetID.Rating]);
16
+ export const COLOR_FACETS = new Set([SpecialFacetID.Color.toLowerCase(), SpecialFacetID.ColorFamily.toLowerCase(), 'colour', 'cor', 'couleur', 'farbe', 'box color']);
@@ -1,6 +1,6 @@
1
- export interface IspOptions {
2
- with_product_attributes: boolean;
3
- full_product_url_path_redirect: boolean;
4
- color_attribute_names: string[];
5
- relatedCollectionsConfiguration: Record<string, string[]>;
6
- }
1
+ export interface IspOptions {
2
+ with_product_attributes: boolean;
3
+ full_product_url_path_redirect: boolean;
4
+ color_attribute_names: string[];
5
+ relatedCollectionsConfiguration: Record<string, string[]>;
6
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,7 +1,7 @@
1
- export declare type ServerNarrow = [FilterGroupName, FilterValue];
2
- declare type FilterGroupName = string;
3
- declare type FilterValue = string;
4
- export interface Narrow {
5
- [FilterGroupName: string]: Set<FilterValue>;
6
- }
7
- export {};
1
+ export declare type ServerNarrow = [FilterGroupName, FilterValue];
2
+ declare type FilterGroupName = string;
3
+ declare type FilterValue = string;
4
+ export interface Narrow {
5
+ [FilterGroupName: string]: Set<FilterValue>;
6
+ }
7
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,134 +1,134 @@
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
- imageID?: string;
39
- alt?: AlternativeColor[];
40
- inventory_lvl?: number;
41
- }
42
- export declare type ServerVariant = [number, VariantData[]];
43
- export declare type VariantData = [string, string[]];
44
- export declare type Attribute = [string, AttributeData[]];
45
- export declare type AttributeData = string[] | string[][];
46
- export interface ServerAltProductVariant {
47
- sellable: boolean;
48
- size: string;
49
- v_id: number;
50
- }
51
- export interface ServerAltProductData {
52
- l: string;
53
- p: number;
54
- p_c: number;
55
- p_spl: number;
56
- p_spl_id?: number;
57
- sku?: string;
58
- t: string[];
59
- vra: ServerAltProductVariant[];
60
- review?: number;
61
- reviews_count?: number;
62
- }
63
- export declare type AlternativeColor = [AlternativeColorName, AlternativeColorURL, productID?, ServerAltProductData?];
64
- declare type AlternativeColorName = string;
65
- declare type AlternativeColorURL = string;
66
- declare type productID = number;
67
- export interface Badge {
68
- tag: string;
69
- url: string;
70
- }
71
- export interface TextBadge {
72
- badgeText: string;
73
- tag: string;
74
- badgeStyle: {
75
- backgroundColor: string;
76
- borderColor: string;
77
- borderRadius: number;
78
- horizontal: string;
79
- vertical: string;
80
- size: number;
81
- textColor: string;
82
- };
83
- }
84
- export interface Products {
85
- [id: string]: Product;
86
- }
87
- export interface Product {
88
- currency: Currency;
89
- id: string;
90
- title: string;
91
- description: string;
92
- variants: Variants;
93
- isSoldOut: boolean;
94
- price: number;
95
- minPrice: number;
96
- maxPrice: number;
97
- comparePrice: number;
98
- reviewScore: number | undefined;
99
- reviewCount: number | undefined;
100
- imageURL: string;
101
- imageURL2: string;
102
- optimizedURL?: string;
103
- formattedPrice: string;
104
- formattedCompare: string | undefined;
105
- vendor: string;
106
- sku: string;
107
- s: string;
108
- inventory_lvl?: number;
109
- imagesSrcset: string;
110
- productURL: string;
111
- productBadges: Badge[];
112
- productTextBadges?: TextBadge[];
113
- alternativeProducts?: AlternativeProduct[];
114
- tags?: string[];
115
- promoTileConfig?: PromoTileConfig;
116
- attributes?: Attribute[];
117
- p_spl?: number;
118
- p_spl_id?: string;
119
- }
120
- export interface Variant {
121
- id: number;
122
- attributes: {
123
- [key: string]: VariantsAttribute;
124
- };
125
- }
126
- export declare type Variants = Variant[];
127
- export declare type VariantsAttribute = string | number | boolean | string[] | undefined;
128
- export interface AlternativeProduct {
129
- color: string;
130
- url: string;
131
- id: string;
132
- variants?: Variants;
133
- }
134
- 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
+ imageID?: string;
39
+ alt?: AlternativeColor[];
40
+ inventory_lvl?: number;
41
+ }
42
+ export declare type ServerVariant = [number, VariantData[]];
43
+ export declare type VariantData = [string, string[]];
44
+ export declare type Attribute = [string, AttributeData[]];
45
+ export declare type AttributeData = string[] | string[][];
46
+ export interface ServerAltProductVariant {
47
+ sellable: boolean;
48
+ size: string;
49
+ v_id: number;
50
+ }
51
+ export interface ServerAltProductData {
52
+ l: string;
53
+ p: number;
54
+ p_c: number;
55
+ p_spl: number;
56
+ p_spl_id?: number;
57
+ sku?: string;
58
+ t: string[];
59
+ vra: ServerAltProductVariant[];
60
+ review?: number;
61
+ reviews_count?: number;
62
+ }
63
+ export declare type AlternativeColor = [AlternativeColorName, AlternativeColorURL, productID?, ServerAltProductData?];
64
+ declare type AlternativeColorName = string;
65
+ declare type AlternativeColorURL = string;
66
+ declare type productID = number;
67
+ export interface Badge {
68
+ tag: string;
69
+ url: string;
70
+ }
71
+ export interface TextBadge {
72
+ badgeText: string;
73
+ tag: string;
74
+ badgeStyle: {
75
+ backgroundColor: string;
76
+ borderColor: string;
77
+ borderRadius: number;
78
+ horizontal: string;
79
+ vertical: string;
80
+ size: number;
81
+ textColor: string;
82
+ };
83
+ }
84
+ export interface Products {
85
+ [id: string]: Product;
86
+ }
87
+ export interface Product {
88
+ currency: Currency;
89
+ id: string;
90
+ title: string;
91
+ description: string;
92
+ variants: Variants;
93
+ isSoldOut: boolean;
94
+ price: number;
95
+ minPrice: number;
96
+ maxPrice: number;
97
+ comparePrice: number;
98
+ reviewScore: number | undefined;
99
+ reviewCount: number | undefined;
100
+ imageURL: string;
101
+ imageURL2: string;
102
+ optimizedURL?: string;
103
+ formattedPrice: string;
104
+ formattedCompare: string | undefined;
105
+ vendor: string;
106
+ sku: string;
107
+ s: string;
108
+ inventory_lvl?: number;
109
+ imagesSrcset: string;
110
+ productURL: string;
111
+ productBadges: Badge[];
112
+ productTextBadges?: TextBadge[];
113
+ alternativeProducts?: AlternativeProduct[];
114
+ tags?: string[];
115
+ promoTileConfig?: PromoTileConfig;
116
+ attributes?: Attribute[];
117
+ p_spl?: number;
118
+ p_spl_id?: string;
119
+ }
120
+ export interface Variant {
121
+ id: number;
122
+ attributes: {
123
+ [key: string]: VariantsAttribute;
124
+ };
125
+ }
126
+ export declare type Variants = Variant[];
127
+ export declare type VariantsAttribute = string | number | boolean | string[] | undefined;
128
+ export interface AlternativeProduct {
129
+ color: string;
130
+ url: string;
131
+ id: string;
132
+ variants?: Variants;
133
+ }
134
+ export {};
@@ -1,7 +1,7 @@
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 = {}));
@@ -1,11 +1,11 @@
1
- interface Size {
2
- x: number;
3
- y: number;
4
- }
5
- export interface PromoTileConfig {
6
- size: Size;
7
- url: string;
8
- image: string;
9
- title: string;
10
- }
11
- export {};
1
+ interface Size {
2
+ x: number;
3
+ y: number;
4
+ }
5
+ export interface PromoTileConfig {
6
+ size: Size;
7
+ url: string;
8
+ image: string;
9
+ title: string;
10
+ }
11
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,36 +1,38 @@
1
- import type { Narrow } from "./narrow";
2
- import type { SortBy } from "./sortBy";
3
- import type { Products } from "./product";
4
- import type { Facet } from "./facets";
5
- interface Base {
6
- narrow: Narrow;
7
- sortBy: SortBy;
8
- totalResults: number;
9
- page: number;
10
- totalPages: number;
11
- products: Products;
12
- facets: Facet[];
13
- avoidTagPrefixes: string[];
14
- sort: SortBy;
15
- productIDS: string[];
16
- bannerHTML: string;
17
- bannerHTMLMobile: string;
18
- }
19
- export interface SearchResults extends Base {
20
- query: string;
21
- totalCMS: number;
22
- didYouMean?: string[];
23
- personalizedProductIds: number[];
24
- }
25
- export interface CategoryResults extends Base {
26
- categoryID: string;
27
- categoryName: string;
28
- personalizationRecencyLimit?: number;
29
- personalizedProductIds: number[];
30
- }
31
- export interface LandingPageResults extends Base {
32
- lpSlug: string;
33
- title: string;
34
- indexPage: number;
35
- }
36
- export {};
1
+ import type { Narrow } from "./narrow";
2
+ import type { SortBy } from "./sortBy";
3
+ import type { Products } from "./product";
4
+ import type { Facet } from "./facets";
5
+ interface Base {
6
+ narrow: Narrow;
7
+ sortBy: SortBy;
8
+ totalResults: number;
9
+ page: number;
10
+ totalPages: number;
11
+ products: Products;
12
+ facets: Facet[];
13
+ avoidTagPrefixes: string[];
14
+ sort: SortBy;
15
+ productIDS: string[];
16
+ bannerHTML: string;
17
+ bannerHTMLMobile: string;
18
+ }
19
+ export interface SearchResults extends Base {
20
+ query: string;
21
+ totalCMS: number;
22
+ didYouMean?: string[];
23
+ personalizedProductIds: number[];
24
+ sessionProductIds: number[];
25
+ }
26
+ export interface CategoryResults extends Base {
27
+ categoryID: string;
28
+ categoryName: string;
29
+ personalizationRecencyLimit?: number;
30
+ personalizedProductIds: number[];
31
+ sessionProductIds: number[];
32
+ }
33
+ export interface LandingPageResults extends Base {
34
+ lpSlug: string;
35
+ title: string;
36
+ indexPage: number;
37
+ }
38
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,11 +1,11 @@
1
- import type { SortBy } from "./sortBy";
2
- import type { Narrow } from "./narrow";
3
- export interface RoutingState {
4
- page?: number;
5
- sortBy?: SortBy;
6
- narrow?: Narrow;
7
- searchWithinSearch?: string;
8
- query?: string;
9
- collectionID?: string;
10
- narrowString?: string;
11
- }
1
+ import type { SortBy } from "./sortBy";
2
+ import type { Narrow } from "./narrow";
3
+ export interface RoutingState {
4
+ page?: number;
5
+ sortBy?: SortBy;
6
+ narrow?: Narrow;
7
+ searchWithinSearch?: string;
8
+ query?: string;
9
+ collectionID?: string;
10
+ narrowString?: string;
11
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};