@graphcommerce/next-ui 6.0.2-canary.8 → 6.1.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,47 @@
1
1
  # Change Log
2
2
 
3
+ ## 6.1.0
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1867](https://github.com/graphcommerce-org/graphcommerce/pull/1867) [`8e4bf4ca7`](https://github.com/graphcommerce-org/graphcommerce/commit/8e4bf4ca7d0c32525df50df4a350ab19a2fbf620) - Overlay would show an incorrect box-shadow for the variant=bottom ([@bramvanderholst](https://github.com/bramvanderholst))
8
+
9
+ - [#1895](https://github.com/graphcommerce-org/graphcommerce/pull/1895) [`49d34bda4`](https://github.com/graphcommerce-org/graphcommerce/commit/49d34bda4b4426ad97272ce0a28e17f52e9f4e06) - When opening the overlay while darkmode was enabled, it would close immediately ([@paales](https://github.com/paales))
10
+
11
+ - [#1867](https://github.com/graphcommerce-org/graphcommerce/pull/1867) [`9b7e4414c`](https://github.com/graphcommerce-org/graphcommerce/commit/9b7e4414c537e775c1f2d5de65ffde6fc39b7f3b) - Disallow overscrolling on overlays on mobile ([@bramvanderholst](https://github.com/bramvanderholst))
12
+
13
+ ## 6.0.2-canary.22
14
+
15
+ ## 6.0.2-canary.21
16
+
17
+ ## 6.0.2-canary.20
18
+
19
+ ## 6.0.2-canary.19
20
+
21
+ ## 6.0.2-canary.18
22
+
23
+ ## 6.0.2-canary.17
24
+
25
+ ### Patch Changes
26
+
27
+ - [#1895](https://github.com/graphcommerce-org/graphcommerce/pull/1895) [`49d34bda4`](https://github.com/graphcommerce-org/graphcommerce/commit/49d34bda4b4426ad97272ce0a28e17f52e9f4e06) - When opening the overlay while darkmode was enabled, it would close immediately ([@paales](https://github.com/paales))
28
+
29
+ ## 6.0.2-canary.16
30
+
31
+ ## 6.0.2-canary.15
32
+
33
+ ## 6.0.2-canary.14
34
+
35
+ ## 6.0.2-canary.13
36
+
37
+ ## 6.0.2-canary.12
38
+
39
+ ## 6.0.2-canary.11
40
+
41
+ ## 6.0.2-canary.10
42
+
43
+ ## 6.0.2-canary.9
44
+
3
45
  ## 6.0.2-canary.8
4
46
 
5
47
  ## 6.0.2-canary.7
@@ -277,11 +277,11 @@ export function OverlayBase(incomingProps: LayoutOverlayBaseProps) {
277
277
 
278
278
  if (variant() === 'right') document.body.style.overflow = 'hidden'
279
279
 
280
- if (position.get() !== OverlayPosition.OPENED) {
280
+ if (position.get() !== OverlayPosition.OPENED && !scroll.animating.get()) {
281
281
  // eslint-disable-next-line @typescript-eslint/no-floating-promises
282
282
  scrollTo(openClosePositions().open).then(() => position.set(OverlayPosition.OPENED))
283
283
  }
284
- }, [isPresent, openClosePositions, position, scrollTo, scrollerRef, variant])
284
+ }, [isPresent, openClosePositions, position, scroll.animating, scrollTo, scrollerRef, variant])
285
285
 
286
286
  // When the overlay is closed by navigating away, we're closing the overlay.
287
287
  useEffect(() => {
@@ -16,7 +16,10 @@ export function filterNonNullableKeys<
16
16
  if (!items) return []
17
17
 
18
18
  const result = items.filter(
19
- (item) => item !== null && typeof item !== 'undefined' && values.every((v) => item?.[v]),
19
+ (item) =>
20
+ item !== null &&
21
+ typeof item !== 'undefined' &&
22
+ values.every((v) => item?.[v] !== null && typeof item?.[v] !== 'undefined'),
20
23
  )
21
24
 
22
25
  return result as RequiredKeys<T, Keys>[]
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": "6.0.2-canary.8",
5
+ "version": "6.1.0",
6
6
  "author": "",
7
7
  "license": "MIT",
8
8
  "sideEffects": false,
@@ -18,18 +18,18 @@
18
18
  "@emotion/react": "^11.10.6",
19
19
  "@emotion/server": "^11.4.0",
20
20
  "@emotion/styled": "^11.10.6",
21
- "@graphcommerce/framer-next-pages": "6.0.2-canary.8",
22
- "@graphcommerce/framer-scroller": "6.0.2-canary.8",
23
- "@graphcommerce/framer-utils": "6.0.2-canary.8",
24
- "@graphcommerce/image": "6.0.2-canary.8",
21
+ "@graphcommerce/framer-next-pages": "6.1.0",
22
+ "@graphcommerce/framer-scroller": "6.1.0",
23
+ "@graphcommerce/framer-utils": "6.1.0",
24
+ "@graphcommerce/image": "6.1.0",
25
25
  "cookie": "^0.5.0",
26
26
  "react-is": "^18.2.0",
27
27
  "schema-dts": "^1.1.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@graphcommerce/eslint-config-pwa": "6.0.2-canary.8",
31
- "@graphcommerce/prettier-config-pwa": "6.0.2-canary.8",
32
- "@graphcommerce/typescript-config-pwa": "6.0.2-canary.8",
30
+ "@graphcommerce/eslint-config-pwa": "6.1.0",
31
+ "@graphcommerce/prettier-config-pwa": "6.1.0",
32
+ "@graphcommerce/typescript-config-pwa": "6.1.0",
33
33
  "@types/cookie": "^0.5.1",
34
34
  "@types/react-is": "^17.0.3",
35
35
  "typescript": "4.9.5"