@graphcommerce/algolia-products 9.0.4-canary.8 → 9.0.4
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/CHANGELOG.md +7 -11
- package/mesh/algoliaHitToMagentoProduct.ts +3 -6
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,22 +1,18 @@
|
|
|
1
1
|
# @graphcommerce/algolia-products
|
|
2
2
|
|
|
3
|
-
## 9.0.4
|
|
3
|
+
## 9.0.4
|
|
4
4
|
|
|
5
|
-
## 9.0.
|
|
5
|
+
## 9.0.3
|
|
6
6
|
|
|
7
|
-
## 9.0.
|
|
7
|
+
## 9.0.3-canary.0
|
|
8
8
|
|
|
9
|
-
## 9.0.
|
|
9
|
+
## 9.0.2
|
|
10
10
|
|
|
11
|
-
## 9.0.
|
|
11
|
+
## 9.0.2-canary.0
|
|
12
12
|
|
|
13
|
-
## 9.0.
|
|
13
|
+
## 9.0.1
|
|
14
14
|
|
|
15
|
-
## 9.0.
|
|
16
|
-
|
|
17
|
-
## 9.0.4-canary.1
|
|
18
|
-
|
|
19
|
-
## 9.0.4-canary.0
|
|
15
|
+
## 9.0.1-canary.1
|
|
20
16
|
|
|
21
17
|
## 9.0.0
|
|
22
18
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type {
|
|
2
|
-
Algoliahit,
|
|
3
2
|
AlgoliaPrice,
|
|
4
3
|
AlgoliaProductHitAdditionalProperties,
|
|
4
|
+
Algoliahit,
|
|
5
5
|
CurrencyEnum,
|
|
6
6
|
MeshContext,
|
|
7
7
|
PriceRange,
|
|
@@ -87,10 +87,8 @@ export function algoliaUrlToUrlKey(url?: string | null, base?: string | null): s
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
/**
|
|
90
|
-
* For the URL
|
|
91
|
-
* https://configurator.reachdigital.dev/media/catalog/product/cache/d911de87cf9e562637815cc5a14b1b05/1/0/1087_1_3.jpg
|
|
90
|
+
* For the URL https://configurator.reachdigital.dev/media/catalog/product/cache/d911de87cf9e562637815cc5a14b1b05/1/0/1087_1_3.jpg
|
|
92
91
|
* Remove /cache/HASH from the URL but only if the url contains media/catalog/product
|
|
93
|
-
*
|
|
94
92
|
* @param url
|
|
95
93
|
*/
|
|
96
94
|
function getOriginalImage(url?: string | undefined | null) {
|
|
@@ -116,8 +114,7 @@ export type ProductsItemsItem = NonNullable<
|
|
|
116
114
|
/**
|
|
117
115
|
* Mapping function to map Algolia hit to Magento product.
|
|
118
116
|
*
|
|
119
|
-
* You can create a FunctionPlugin to modify the behavior of this function or implement brand
|
|
120
|
-
* specific code.
|
|
117
|
+
* You can create a FunctionPlugin to modify the behavior of this function or implement brand specific code.
|
|
121
118
|
*/
|
|
122
119
|
export function algoliaHitToMagentoProduct(
|
|
123
120
|
hit: Algoliahit,
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/algolia-products",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "9.0.4
|
|
5
|
+
"version": "9.0.4",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
"generate": "tsx scripts/generate-spec.mts"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@graphcommerce/google-datalayer": "^9.0.4
|
|
19
|
-
"@graphcommerce/graphql": "^9.0.4
|
|
20
|
-
"@graphcommerce/graphql-mesh": "^9.0.4
|
|
21
|
-
"@graphcommerce/magento-customer": "^9.0.4
|
|
22
|
-
"@graphcommerce/magento-product": "^9.0.4
|
|
23
|
-
"@graphcommerce/magento-search": "^9.0.4
|
|
24
|
-
"@graphcommerce/next-config": "^9.0.4
|
|
25
|
-
"@graphcommerce/next-ui": "^9.0.4
|
|
18
|
+
"@graphcommerce/google-datalayer": "^9.0.4",
|
|
19
|
+
"@graphcommerce/graphql": "^9.0.4",
|
|
20
|
+
"@graphcommerce/graphql-mesh": "^9.0.4",
|
|
21
|
+
"@graphcommerce/magento-customer": "^9.0.4",
|
|
22
|
+
"@graphcommerce/magento-product": "^9.0.4",
|
|
23
|
+
"@graphcommerce/magento-search": "^9.0.4",
|
|
24
|
+
"@graphcommerce/next-config": "^9.0.4",
|
|
25
|
+
"@graphcommerce/next-ui": "^9.0.4",
|
|
26
26
|
"react": "^18.2.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|