@graphcommerce/algolia-insights 9.1.0-canary.26 → 9.1.0-canary.29
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 +10 -0
- package/hooks/useSendAlgoliaEvent.ts +1 -1
- package/package.json +10 -10
- package/plugins/useSendEventAlgolia.ts +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @graphcommerce/algolia-personalization
|
|
2
2
|
|
|
3
|
+
## 9.1.0-canary.29
|
|
4
|
+
|
|
5
|
+
## 9.1.0-canary.28
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- [#2505](https://github.com/graphcommerce-org/graphcommerce/pull/2505) [`59c8877`](https://github.com/graphcommerce-org/graphcommerce/commit/59c8877db343450547da3e200d904c15f5b8e94f) - Update useSendAlgoliaEvent.ts ([@FrankHarland](https://github.com/FrankHarland))
|
|
10
|
+
|
|
11
|
+
## 9.1.0-canary.27
|
|
12
|
+
|
|
3
13
|
## 9.1.0-canary.26
|
|
4
14
|
|
|
5
15
|
## 9.1.0-canary.25
|
|
@@ -249,7 +249,7 @@ const dataLayerToAlgoliaMap: {
|
|
|
249
249
|
const events: AlgoliaEventsItems_Input[] = []
|
|
250
250
|
|
|
251
251
|
const objectIDs = eventData.items.map((item) => atob(item.item_uid))
|
|
252
|
-
const relevant = objectIDs.map((objectID) => mapping[objectID])
|
|
252
|
+
const relevant = objectIDs.map((objectID) => mapping[objectID]).filter(Boolean)
|
|
253
253
|
const filters = [...new Set(...relevant.map((item) => item?.filters ?? []))]
|
|
254
254
|
|
|
255
255
|
if (filters.length > 0) {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/algolia-insights",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "9.1.0-canary.
|
|
5
|
+
"version": "9.1.0-canary.29",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
"generate": "tsx scripts/generate-insights-spec.mts"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@graphcommerce/algolia-products": "^9.1.0-canary.
|
|
19
|
-
"@graphcommerce/google-datalayer": "^9.1.0-canary.
|
|
20
|
-
"@graphcommerce/graphql": "^9.1.0-canary.
|
|
21
|
-
"@graphcommerce/graphql-mesh": "^9.1.0-canary.
|
|
22
|
-
"@graphcommerce/magento-customer": "^9.1.0-canary.
|
|
23
|
-
"@graphcommerce/magento-product": "^9.1.0-canary.
|
|
24
|
-
"@graphcommerce/next-config": "^9.1.0-canary.
|
|
25
|
-
"@graphcommerce/next-ui": "^9.1.0-canary.
|
|
26
|
-
"@graphcommerce/react-hook-form": "^9.1.0-canary.
|
|
18
|
+
"@graphcommerce/algolia-products": "^9.1.0-canary.29",
|
|
19
|
+
"@graphcommerce/google-datalayer": "^9.1.0-canary.29",
|
|
20
|
+
"@graphcommerce/graphql": "^9.1.0-canary.29",
|
|
21
|
+
"@graphcommerce/graphql-mesh": "^9.1.0-canary.29",
|
|
22
|
+
"@graphcommerce/magento-customer": "^9.1.0-canary.29",
|
|
23
|
+
"@graphcommerce/magento-product": "^9.1.0-canary.29",
|
|
24
|
+
"@graphcommerce/next-config": "^9.1.0-canary.29",
|
|
25
|
+
"@graphcommerce/next-ui": "^9.1.0-canary.29",
|
|
26
|
+
"@graphcommerce/react-hook-form": "^9.1.0-canary.29",
|
|
27
27
|
"@mui/material": "*",
|
|
28
28
|
"react": "^18.2.0"
|
|
29
29
|
},
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
sendEvent,
|
|
3
|
-
useSendEvent as useSendEventBase,
|
|
4
|
-
} from '@graphcommerce/google-datalayer/api/sendEvent'
|
|
1
|
+
import type { sendEvent, useSendEvent as useSendEventBase } from '@graphcommerce/google-datalayer'
|
|
5
2
|
import type { FunctionPlugin, PluginConfig } from '@graphcommerce/next-config'
|
|
6
3
|
import { useEventCallback } from '@mui/material'
|
|
7
4
|
import { useSendAlgoliaEvent } from '../hooks/useSendAlgoliaEvent'
|