@graphcommerce/algolia-insights 9.1.0-canary.26 → 9.1.0-canary.28

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @graphcommerce/algolia-personalization
2
2
 
3
+ ## 9.1.0-canary.28
4
+
5
+ ### Patch Changes
6
+
7
+ - [#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))
8
+
9
+ ## 9.1.0-canary.27
10
+
3
11
  ## 9.1.0-canary.26
4
12
 
5
13
  ## 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.26",
5
+ "version": "9.1.0-canary.28",
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.26",
19
- "@graphcommerce/google-datalayer": "^9.1.0-canary.26",
20
- "@graphcommerce/graphql": "^9.1.0-canary.26",
21
- "@graphcommerce/graphql-mesh": "^9.1.0-canary.26",
22
- "@graphcommerce/magento-customer": "^9.1.0-canary.26",
23
- "@graphcommerce/magento-product": "^9.1.0-canary.26",
24
- "@graphcommerce/next-config": "^9.1.0-canary.26",
25
- "@graphcommerce/next-ui": "^9.1.0-canary.26",
26
- "@graphcommerce/react-hook-form": "^9.1.0-canary.26",
18
+ "@graphcommerce/algolia-products": "^9.1.0-canary.28",
19
+ "@graphcommerce/google-datalayer": "^9.1.0-canary.28",
20
+ "@graphcommerce/graphql": "^9.1.0-canary.28",
21
+ "@graphcommerce/graphql-mesh": "^9.1.0-canary.28",
22
+ "@graphcommerce/magento-customer": "^9.1.0-canary.28",
23
+ "@graphcommerce/magento-product": "^9.1.0-canary.28",
24
+ "@graphcommerce/next-config": "^9.1.0-canary.28",
25
+ "@graphcommerce/next-ui": "^9.1.0-canary.28",
26
+ "@graphcommerce/react-hook-form": "^9.1.0-canary.28",
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'