@graphcommerce/next-ui 3.21.4 → 3.21.5

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.
@@ -10,7 +10,7 @@ export default function AnimatedRow(props: AnimatedRowProps) {
10
10
  return (
11
11
  <m.div
12
12
  {...props}
13
- layout
13
+ layout='size'
14
14
  initial={{ opacity: 0, height: 0 }}
15
15
  animate={{ opacity: 1, height: 'auto' }}
16
16
  exit={{ opacity: 0, height: 0 }}
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.21.5](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.21.4...@graphcommerce/next-ui@3.21.5) (2021-12-20)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * animations would run on background page, make sure animations are not running when page is not active ([2fcf4b8](https://github.com/ho-nl/m2-pwa/commit/2fcf4b8a853108147477e3a67c7ea202abb2842f))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [3.21.4](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.21.3...@graphcommerce/next-ui@3.21.4) (2021-12-20)
7
18
 
8
19
 
@@ -80,12 +80,12 @@ export default function SidebarSlider(props: SidebarSliderProps) {
80
80
  {children}
81
81
  </Scroller>
82
82
  <div className={classes.centerLeft}>
83
- <ScrollerButton layout direction='left' className={classes.sliderButtons}>
83
+ <ScrollerButton direction='left' className={classes.sliderButtons}>
84
84
  <SvgImageSimple src={iconChevronLeft} />
85
85
  </ScrollerButton>
86
86
  </div>
87
87
  <div className={classes.centerRight}>
88
- <ScrollerButton layout direction='right' className={classes.sliderButtons}>
88
+ <ScrollerButton direction='right' className={classes.sliderButtons}>
89
89
  <SvgImageSimple src={iconChevronRight} />
90
90
  </ScrollerButton>
91
91
  </div>
@@ -1,4 +1,4 @@
1
- import { usePageRouter, useScrollOffset } from '@graphcommerce/framer-next-pages'
1
+ import { useScrollOffset } from '@graphcommerce/framer-next-pages'
2
2
  import { makeStyles, Theme } from '@material-ui/core'
3
3
  import clsx from 'clsx'
4
4
  import { useTransform, useViewportScroll } from 'framer-motion'
@@ -2,14 +2,7 @@ import { usePageContext, usePageRouter, useScrollOffset } from '@graphcommerce/f
2
2
  import { Scroller, useScrollerContext, useScrollTo } from '@graphcommerce/framer-scroller'
3
3
  import { useElementScroll, useIsomorphicLayoutEffect } from '@graphcommerce/framer-utils'
4
4
  import { makeStyles, Theme, ClickAwayListener } from '@material-ui/core'
5
- import {
6
- m,
7
- MotionValue,
8
- useDomEvent,
9
- useMotionValue,
10
- usePresence,
11
- useTransform,
12
- } from 'framer-motion'
5
+ import { m, useDomEvent, useMotionValue, usePresence, useTransform } from 'framer-motion'
13
6
  import React, { useCallback, useEffect, useRef } from 'react'
14
7
  import LayoutProvider from '../../Layout/components/LayoutProvider'
15
8
  import { UseStyles } from '../../Styles'
@@ -335,7 +328,7 @@ export function LayoutOverlayBase(props: LayoutOverlayBaseProps) {
335
328
  // Create the exact position for the LayoutProvider which offsets the top of the overlay
336
329
  const offsetPageY = useScrollOffset().y
337
330
  const scrollWithoffset = useTransform(
338
- [scroll.y, positions.open.y, offsetY] as MotionValue<number | string>[],
331
+ [scroll.y, positions.open.y, offsetY],
339
332
  ([y, openY, offsetYv]: number[]) => Math.max(0, y - openY - offsetYv + offsetPageY),
340
333
  )
341
334
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/next-ui",
3
- "version": "3.21.4",
3
+ "version": "3.21.5",
4
4
  "author": "",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -10,8 +10,8 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@apollo/client": "^3.5.6",
13
- "@graphcommerce/framer-next-pages": "^2.108.6",
14
- "@graphcommerce/framer-scroller": "^1.1.14",
13
+ "@graphcommerce/framer-next-pages": "^2.108.7",
14
+ "@graphcommerce/framer-scroller": "^1.1.15",
15
15
  "@graphcommerce/framer-utils": "^2.103.20",
16
16
  "@graphcommerce/graphql": "^2.105.11",
17
17
  "@graphcommerce/image": "^2.105.10",
@@ -52,5 +52,5 @@
52
52
  "project": "./tsconfig.json"
53
53
  }
54
54
  },
55
- "gitHead": "cac49a2bf6cdcbb6131dc7b64172e90aad257c6d"
55
+ "gitHead": "ecbde6cbcb36e0e2429b6d777972c12c47822385"
56
56
  }