@graphcommerce/next-ui 4.16.0 → 4.17.0

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,16 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.17.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1583](https://github.com/graphcommerce-org/graphcommerce/pull/1583) [`b6ce5548c`](https://github.com/graphcommerce-org/graphcommerce/commit/b6ce5548c66a8ca62d3aee29467045f7f07f30c8) Thanks [@ErwinOtten](https://github.com/ErwinOtten)! - Navigation fixes
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies []:
12
+ - @graphcommerce/framer-scroller@2.1.28
13
+
3
14
  ## 4.16.0
4
15
 
5
16
  ### Minor Changes
@@ -102,7 +102,7 @@ export function NavigationItem(props: NavigationItemProps) {
102
102
  select(itemPath)
103
103
  }
104
104
  }}
105
- onMouseEnter={
105
+ onMouseMove={
106
106
  itemPath.length > 1 && mouseEvent === 'hover'
107
107
  ? (e) => {
108
108
  if (isDesktop && animating.current === false && !isSelected) {
@@ -3,7 +3,7 @@ import { i18n } from '@lingui/core'
3
3
  import { Trans } from '@lingui/react'
4
4
  import { Box, Fab, SxProps, Theme, useEventCallback, useMediaQuery } from '@mui/material'
5
5
  import { m } from 'framer-motion'
6
- import { useState } from 'react'
6
+ import { useEffect, useState } from 'react'
7
7
  import { IconSvg, useIconSvgSize } from '../../IconSvg'
8
8
  import { LayoutHeaderContent } from '../../Layout/components/LayoutHeaderContent'
9
9
  import { LayoutTitle } from '../../Layout/components/LayoutTitle'
@@ -93,6 +93,10 @@ export function NavigationOverlay(props: NavigationOverlayProps) {
93
93
  else select([])
94
94
  })
95
95
 
96
+ useEffect(() => {
97
+ animating.current = false
98
+ }, [active, animating])
99
+
96
100
  const showBack = selected.length > 0
97
101
 
98
102
  return (
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/next-ui",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "4.16.0",
5
+ "version": "4.17.0",
6
6
  "author": "",
7
7
  "license": "MIT",
8
8
  "sideEffects": false,
@@ -20,7 +20,7 @@
20
20
  "@emotion/server": "^11.4.0",
21
21
  "@emotion/styled": "^11.9.3",
22
22
  "@graphcommerce/framer-next-pages": "3.2.4",
23
- "@graphcommerce/framer-scroller": "2.1.27",
23
+ "@graphcommerce/framer-scroller": "2.1.28",
24
24
  "@graphcommerce/framer-utils": "3.1.4",
25
25
  "@graphcommerce/image": "3.1.7",
26
26
  "cookie": "^0.5.0",