@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 +2 -0
- package/components/ProductCustomizable/CustomizableAreaOption.tsx +2 -3
- package/components/ProductCustomizable/CustomizableFieldOption.tsx +1 -2
- package/components/ProductCustomizable/CustomizablePrice.tsx +2 -2
- package/components/ProductFiltersPro/ProductFiltersPro.tsx +2 -1
- package/components/ProductFiltersPro/ProductFiltersProLayoutSidebar.tsx +1 -1
- package/components/ProductListFiltersContainer/ProductListFiltersContainer.tsx +2 -1
- package/components/ProductListItem/ProductListItemLinkOrDiv.tsx +1 -1
- package/components/ProductListItem/ProductListItemParts.tsx +1 -1
- package/components/ProductPageDescription/ProductPageDescription.tsx +1 -8
- package/components/ProductPageGallery/ProductPageGallery.tsx +1 -1
- package/components/ProductPageGallery/ProductVideo.tsx +7 -6
- package/components/ProductPagePrice/ProductPagePriceLowest.tsx +1 -1
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { TextFieldElement
|
|
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
|
|
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 {
|
|
2
|
-
import { useWatch
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
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,
|
|
3
|
-
import {
|
|
4
|
-
import { m
|
|
5
|
-
import 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,
|
|
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> = (
|
|
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
|
|
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.
|
|
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.
|
|
22
|
-
"@graphcommerce/eslint-config-pwa": "^11.0.0-canary.
|
|
23
|
-
"@graphcommerce/framer-next-pages": "^11.0.0-canary.
|
|
24
|
-
"@graphcommerce/framer-scroller": "^11.0.0-canary.
|
|
25
|
-
"@graphcommerce/graphql": "^11.0.0-canary.
|
|
26
|
-
"@graphcommerce/graphql-mesh": "^11.0.0-canary.
|
|
27
|
-
"@graphcommerce/image": "^11.0.0-canary.
|
|
28
|
-
"@graphcommerce/magento-cart": "^11.0.0-canary.
|
|
29
|
-
"@graphcommerce/magento-store": "^11.0.0-canary.
|
|
30
|
-
"@graphcommerce/next-ui": "^11.0.0-canary.
|
|
31
|
-
"@graphcommerce/prettier-config-pwa": "^11.0.0-canary.
|
|
32
|
-
"@graphcommerce/typescript-config-pwa": "^11.0.0-canary.
|
|
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",
|