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