@graphcommerce/magento-product 11.0.0-canary.72 → 11.0.0-canary.73

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,7 @@
1
1
  # Change Log
2
2
 
3
+ ## 11.0.0-canary.73
4
+
3
5
  ## 11.0.0-canary.72
4
6
 
5
7
  ## 11.0.0-canary.71
@@ -1,11 +1,10 @@
1
- import { TextFieldElement, useWatch } from '@graphcommerce/ecommerce-ui'
1
+ import { TextFieldElement } from '@graphcommerce/ecommerce-ui'
2
2
  import type { CurrencyEnum } from '@graphcommerce/graphql-mesh'
3
- import { Money } from '@graphcommerce/magento-store'
4
3
  import type { TypeRenderer } from '@graphcommerce/next-ui'
5
4
  import { SectionHeader } from '@graphcommerce/next-ui'
6
5
  import { t } from '@lingui/core/macro'
7
6
  import { Box } from '@mui/material'
8
- import React from 'react'
7
+ import type React from 'react'
9
8
  import { useFormAddProductsToCart } from '../AddProductsToCart'
10
9
  import { CustomizablePrice } from './CustomizablePrice'
11
10
  import type { ProductCustomizableFragment } from './ProductCustomizable.gql'
@@ -1,5 +1,4 @@
1
- import { TextFieldElement, useWatch } from '@graphcommerce/ecommerce-ui'
2
- import { Money } from '@graphcommerce/magento-store'
1
+ import { TextFieldElement } from '@graphcommerce/ecommerce-ui'
3
2
  import { SectionHeader } from '@graphcommerce/next-ui'
4
3
  import { t } from '@lingui/core/macro'
5
4
  import { Box } from '@mui/material'
@@ -1,5 +1,5 @@
1
- import type { Control, FieldName, FieldPath } from '@graphcommerce/ecommerce-ui'
2
- import { useWatch, type FieldValues } from '@graphcommerce/ecommerce-ui'
1
+ import type { FieldPath } from '@graphcommerce/ecommerce-ui'
2
+ import { useWatch } from '@graphcommerce/ecommerce-ui'
3
3
  import type { PriceTypeEnum } from '@graphcommerce/graphql-mesh'
4
4
  import { Money, type MoneyFragment } from '@graphcommerce/magento-store'
5
5
  import { sxx } from '@graphcommerce/next-ui'
@@ -12,7 +12,8 @@ import { useEventCallback, useMediaQuery, useTheme } from '@mui/material'
12
12
  import { m, useTransform } from 'motion/react'
13
13
  import { useRouter } from 'next/router'
14
14
  import type { BaseSyntheticEvent, MutableRefObject } from 'react'
15
- import React, { createContext, useContext, useEffect, useMemo, useRef } from 'react'
15
+ import type React from 'react'
16
+ import { createContext, useContext, useEffect, useMemo, useRef } from 'react'
16
17
  import { productListLinkFromFilter } from '../../hooks/useProductListLink'
17
18
  import type { ProductListFiltersFragment } from '../ProductListFilters/ProductListFilters.gql'
18
19
  import type { ProductFilterParams, ProductListParams } from '../ProductListItems/filterTypes'
@@ -3,7 +3,7 @@ import { extendableComponent, StickyBelowHeader } from '@graphcommerce/next-ui'
3
3
  import type { Theme } from '@mui/material'
4
4
  // eslint-disable-next-line @typescript-eslint/no-restricted-imports
5
5
  import { Box, Container, useMediaQuery } from '@mui/material'
6
- import React from 'react'
6
+ import type React from 'react'
7
7
  import { useProductFiltersPro } from './ProductFiltersPro'
8
8
 
9
9
  export type ProductFiltersProLayoutSidebarProps = {
@@ -10,7 +10,8 @@ import {
10
10
  import type { SxProps, Theme } from '@mui/material'
11
11
  import { Box, styled } from '@mui/material'
12
12
  import { m, useTransform } from 'motion/react'
13
- import React, { useEffect, useRef, useState } from 'react'
13
+ import type React from 'react'
14
+ import { useEffect, useRef, useState } from 'react'
14
15
 
15
16
  const MotionDiv = styled(m.div)({})
16
17
 
@@ -1,5 +1,5 @@
1
1
  import { breakpointVal, NextLink, sxx } from '@graphcommerce/next-ui'
2
- import type { BoxProps, ButtonBaseProps, SxProps, Theme } from '@mui/material'
2
+ import type { BoxProps, ButtonBaseProps } from '@mui/material'
3
3
  import { Box, ButtonBase } from '@mui/material'
4
4
  import React from 'react'
5
5
 
@@ -2,7 +2,7 @@ import type { ImageProps } from '@graphcommerce/image'
2
2
  import { extendableComponent, sxx } from '@graphcommerce/next-ui'
3
3
  import type { SxProps, Theme } from '@mui/material'
4
4
  import { Skeleton } from '@mui/material'
5
- import React from 'react'
5
+ import type React from 'react'
6
6
  import type { ProductListItemFragment } from '../../graphql'
7
7
  import { productLink } from '../../hooks/useProductLink'
8
8
  import { ProductListPrice } from '../ProductListPrice/ProductListPrice'
@@ -26,14 +26,7 @@ const parts = ['root', 'description'] as const
26
26
  const { classes } = extendableComponent(componentName, parts)
27
27
 
28
28
  export function ProductPageDescription(props: ProductPageDescriptionProps) {
29
- const {
30
- product,
31
- right,
32
- fontSize = 'subtitle1',
33
- maxWidth = 'lg',
34
- sx = [],
35
- productListRenderer,
36
- } = props
29
+ const { product, right, fontSize = 'subtitle1', maxWidth = 'lg', sx = [] } = props
37
30
 
38
31
  return (
39
32
  <LazyHydrate height={500}>
@@ -1,6 +1,6 @@
1
1
  import type { MotionImageAspectProps } from '@graphcommerce/framer-scroller'
2
2
  import type { SidebarGalleryProps, TypeRenderer } from '@graphcommerce/next-ui'
3
- import { filterNonNullableKeys, nonNullable, SidebarGallery } from '@graphcommerce/next-ui'
3
+ import { filterNonNullableKeys, SidebarGallery } from '@graphcommerce/next-ui'
4
4
  import type { ProductPageGalleryFragment } from './ProductPageGallery.gql'
5
5
  import { ProductVideo, type ProductVideoProps } from './ProductVideo'
6
6
 
@@ -1,8 +1,9 @@
1
1
  import type { MotionImageAspectPropsAdditional } from '@graphcommerce/framer-scroller'
2
- import { Fab, iconPlay, IconSvg, sxx, YoutubeEmbed, type FabProps } from '@graphcommerce/next-ui'
3
- import { Avatar, Box, IconButton, styled, type SxProps, type Theme } from '@mui/material'
4
- import { m, type MotionProps, type MotionStyle } from 'motion/react'
5
- import React, { useState } from 'react'
2
+ import { Fab, iconPlay, sxx, YoutubeEmbed, type FabProps } from '@graphcommerce/next-ui'
3
+ import { Box, styled, type SxProps, type Theme } from '@mui/material'
4
+ import { m } from 'motion/react'
5
+ import type React from 'react'
6
+ import { useState } from 'react'
6
7
  import type { ProductVideoFragment } from './ProductVideo.gql'
7
8
 
8
9
  const youtubeRegExp = new RegExp(
@@ -96,7 +97,7 @@ function extractYoutubeId(src: string): string | null {
96
97
  }
97
98
 
98
99
  export function ProductVideo(props: ProductVideoProps) {
99
- const { video, autoplay, iframeProps, videoProps, sx, style, layout, width, height } = props
100
+ const { video, autoplay, iframeProps, videoProps, sx, style, width, height } = props
100
101
 
101
102
  const [play, setPlay] = useState(autoplay)
102
103
 
@@ -134,7 +135,7 @@ export function ProductVideo(props: ProductVideoProps) {
134
135
  )
135
136
  }
136
137
 
137
- const baseSx: SxProps<Theme> = (theme) => ({
138
+ const baseSx: SxProps<Theme> = () => ({
138
139
  display: 'block',
139
140
  maxWidth: '99.6%',
140
141
  maxHeight: '100%',
@@ -13,7 +13,7 @@ export type ProductPagePriceLowestProps = {
13
13
  UseCustomizableOptionPriceProps
14
14
 
15
15
  export function ProductPagePriceLowest(props: ProductPagePriceLowestProps) {
16
- const { product, sx, index = 0 } = props
16
+ const { product, sx } = props
17
17
  const priceTiers = filterNonNullableKeys(product.price_tiers, ['quantity', 'final_price'])
18
18
  const lastTier = priceTiers[priceTiers.length - 1]
19
19
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-product",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "11.0.0-canary.72",
5
+ "version": "11.0.0-canary.73",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -18,18 +18,18 @@
18
18
  "typescript": "6.0.3"
19
19
  },
20
20
  "peerDependencies": {
21
- "@graphcommerce/ecommerce-ui": "^11.0.0-canary.72",
22
- "@graphcommerce/eslint-config-pwa": "^11.0.0-canary.72",
23
- "@graphcommerce/framer-next-pages": "^11.0.0-canary.72",
24
- "@graphcommerce/framer-scroller": "^11.0.0-canary.72",
25
- "@graphcommerce/graphql": "^11.0.0-canary.72",
26
- "@graphcommerce/graphql-mesh": "^11.0.0-canary.72",
27
- "@graphcommerce/image": "^11.0.0-canary.72",
28
- "@graphcommerce/magento-cart": "^11.0.0-canary.72",
29
- "@graphcommerce/magento-store": "^11.0.0-canary.72",
30
- "@graphcommerce/next-ui": "^11.0.0-canary.72",
31
- "@graphcommerce/prettier-config-pwa": "^11.0.0-canary.72",
32
- "@graphcommerce/typescript-config-pwa": "^11.0.0-canary.72",
21
+ "@graphcommerce/ecommerce-ui": "^11.0.0-canary.73",
22
+ "@graphcommerce/eslint-config-pwa": "^11.0.0-canary.73",
23
+ "@graphcommerce/framer-next-pages": "^11.0.0-canary.73",
24
+ "@graphcommerce/framer-scroller": "^11.0.0-canary.73",
25
+ "@graphcommerce/graphql": "^11.0.0-canary.73",
26
+ "@graphcommerce/graphql-mesh": "^11.0.0-canary.73",
27
+ "@graphcommerce/image": "^11.0.0-canary.73",
28
+ "@graphcommerce/magento-cart": "^11.0.0-canary.73",
29
+ "@graphcommerce/magento-store": "^11.0.0-canary.73",
30
+ "@graphcommerce/next-ui": "^11.0.0-canary.73",
31
+ "@graphcommerce/prettier-config-pwa": "^11.0.0-canary.73",
32
+ "@graphcommerce/typescript-config-pwa": "^11.0.0-canary.73",
33
33
  "@lingui/core": "^6",
34
34
  "@lingui/react": "^6",
35
35
  "@mui/material": "^7.0.0",