Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .changeset/missing-exports.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
'@graphcommerce/ecommerce-ui': patch
'@graphcommerce/google-datalayer': patch
'@graphcommerce/hygraph-ui': patch
'@graphcommerce/image': patch
'@graphcommerce/magento-cart': patch
'@graphcommerce/magento-cart-coupon': patch
'@graphcommerce/magento-cart-pickup': patch
'@graphcommerce/magento-cart-shipping-address': patch
'@graphcommerce/magento-cart-shipping-method': patch
'@graphcommerce/magento-category': patch
'@graphcommerce/magento-customer': patch
'@graphcommerce/magento-graphql': patch
'@graphcommerce/magento-newsletter': patch
'@graphcommerce/magento-product': patch
'@graphcommerce/magento-product-configurable': patch
'@graphcommerce/magento-product-simple': patch
'@graphcommerce/magento-review': patch
'@graphcommerce/magento-search-overlay': patch
'@graphcommerce/magento-wishlist': patch
'@graphcommerce/next-ui': patch
'@graphcommerce/react-hook-form': patch
---

Add missing exports.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { TextFieldProps } from '@mui/material'
import { MenuItem } from '@mui/material'
import { TextFieldElement, type TextFieldElementProps } from './TextFieldElement'

type OptionBase = { id: string | number; label: string | number }
export type OptionBase = { id: string | number; label: string | number }

type AdditionalProps<O extends OptionBase = OptionBase> = { options: O[] }

Expand Down
6 changes: 6 additions & 0 deletions packages/google-datalayer/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
export * from './api/sendEvent'
export * from './hooks/useSendEvent'
export * from './api/googleEventNames'
export * from './mapping/cartToAddShippingInfo/cartToAddShippingInfo'
export * from './mapping/cartToPurchase/cartToPurchase'
export * from './mapping/cartToViewCart/cartToViewCart'
export * from './mapping/productToDatalayerItem/Product_DatalayerItem.gql'
export * from './mapping/productToDatalayerItem/productToDatalayerItem'
export { useViewItemList } from './components/DatalayerViewItemList'
1 change: 1 addition & 0 deletions packages/hygraph-ui/components/RichText/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './RichText'
export * from './defaultRenderers'
export * from './getNodeLength'
export * from './types'
1 change: 1 addition & 0 deletions packages/hygraph-ui/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './hygraphPageContent'
export * from './getHygraphPaths'
export * from './getAllHygraphPages'
2 changes: 1 addition & 1 deletion packages/image/components/Image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if (typeof window === 'undefined') {

export type { ImageLoaderProps, ImageLoader }

type ImageConfig = ImageConfigComplete & { allSizes: number[] }
export type ImageConfig = ImageConfigComplete & { allSizes: number[] }

type ImageLoaderWithConfig = (resolverProps: ImageLoaderPropsWithConfig) => string

Expand Down
2 changes: 1 addition & 1 deletion packages/image/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './components/Image'
export { imageUrl } from './config/config'
export * from './config/config'
2 changes: 2 additions & 0 deletions packages/magento-cart-coupon/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export * from './Api/Coupon.gql'
export * from './ApplyCouponForm/ApplyCouponForm'
export * from './ApplyCouponForm/ApplyCouponForm.gql'
export * from './CouponAccordion/CouponAccordion'
export * from './RemoveCouponForm/RemoveCouponForm'
export * from './RemoveCouponForm/RemoveCouponForm.gql'
2 changes: 1 addition & 1 deletion packages/magento-cart-pickup/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export {}
export * from './components/PickupLocationSelector'
1 change: 1 addition & 0 deletions packages/magento-cart-shipping-address/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export * from './Api/BillingAddress.gql'
export * from './Api/ShippingAddress.gql'
export * from './components/CustomerAddressForm/CustomerAddressActionCard'
export * from './components/CustomerAddressForm/CustomerAddressForm'
export * from './components/CustomerAddressForm/SetCustomerBillingAddressOnCart.gql'
export * from './components/CustomerAddressForm/SetCustomerShippingAddressOnCart.gql'
Expand Down
1 change: 1 addition & 0 deletions packages/magento-cart-shipping-method/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export * from './Api/AvailableShippingMethods.gql'
export * from './Api/ShippingMethodSelected.gql'
export * from './components/ShippingMethodForm/AvailableShippingMethod.gql'
export * from './components/ShippingMethodForm/ShippingMethodActionCard'
export * from './components/ShippingMethodForm/ShippingMethodForm'
export * from './components/ShippingMethodForm/ShippingMethodForm.gql'
export * from './components/ShippingMethodForm/GetShippingMethods.gql'
1 change: 1 addition & 0 deletions packages/magento-cart/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export * from './CartItemSummary/CartItemSummary'
export * from './CartStartCheckout'
export * from './CartSummary/CartSummary'
export * from './CartSummary/CartSummary.gql'
export * from './CartSummary/GetCartSummary.gql'
export * from './CartTotals/CartTotals'
export * from './CartTotals/GetCartTotals.gql'
export * from './EditBillingAddressForm/EditBillingAddressForm'
Expand Down
4 changes: 4 additions & 0 deletions packages/magento-cart/hooks/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
export * from './CreateEmptyCart.gql'
export * from './CurrentCartId.gql'
export * from './CustomerCart.gql'
export * from './MergeCarts.gql'
export * from './useAssignCurrentCartId'
export * from './useCartIdCreate'
export * from './useCartPermissions'
Expand Down
2 changes: 1 addition & 1 deletion packages/magento-cart/hooks/useCartPermissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useCustomerSession } from '@graphcommerce/magento-customer/hooks/useCus
import { permissions } from '@graphcommerce/next-config/config'
import { useStorefrontConfig } from '@graphcommerce/next-ui'

function useCartPermissions() {
export function useCartPermissions() {
return useStorefrontConfig().permissions?.cart ?? permissions?.cart ?? 'ENABLED'
}

Expand Down
1 change: 1 addition & 0 deletions packages/magento-category/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export * from './components/CategoryChildren/CategoryChildren'
export * from './components/CategoryChildren/CategoryChildren.gql'
export * from './components/CategoryChildren/CategorySiblings.gql'
export * from './components/CategoryDescription/CategoryDescription'
export * from './components/CategoryDescription/CategoryDescription.gql'
export * from './components/CategoryHeroNav/CategoryHeroNav'
export * from './components/CategoryHeroNav/CategoryHeroNavTitle'
export * from './components/CategoryMeta/CategoryMeta'
Expand Down
4 changes: 4 additions & 0 deletions packages/magento-customer/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ export * from './AccountAddress/AccountAddress'
export * from './AccountAddress/AccountAddress.gql'
export * from './AccountAddresses/AccountAddresses'
export * from './AccountAddresses/AccountAddresses.gql'
export * from './AccountAddresses/UpdateDefaultAddress.gql'
export * from './AccountDeleteForm/AccountDeleteForm'
export * from './AccountDeleteForm/DeleteCustomer.gql'
export * from './AccountLatestOrder/AccountLatestOrder'
export * from './AccountMenu/AccountMenu'
export * from './AccountMenuItem/AccountMenuItem'
Expand Down Expand Up @@ -44,9 +46,11 @@ export * from './SignInForm/SignIn.gql'
export * from './SignInForm/SignInForm'
export * from './SignInForm/SignInFormInline'
export * from './SignOutForm/SignOutForm'
export * from './SignOutForm/signOut'
export * from './SignUpForm/SignUp.gql'
export * from './SignUpForm/SignUpForm'
export * from './SignUpForm/SignUpFormInline'
export * from './TrackingLink/TrackingLink'
export * from './UpdateCustomerEmailForm/UpdateCustomerEmailForm'
export * from './UpdateDefaultAddressForm/UpdateDefaultAddressForm'
export * from './ValidatedPasswordElement/ValidatedPasswordElement'
Expand Down
5 changes: 3 additions & 2 deletions packages/magento-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@
"./mesh/customAttributeV2Resolver.ts": "./mesh/customAttributeV2Resolver.ts",
"./mesh/attributeValueResolver.ts": "./mesh/attributeValueResolver.ts",
"./mesh/scopedUidResolver.ts": "./mesh/scopedUidResolver.ts",
"./mesh/magentoOrdersResolver.ts": "./mesh/magentoOrdersResolver.ts",
"./mesh/magentoOrderItemResolvers.ts": "./mesh/magentoOrderItemResolvers.ts"
"./mesh/magentoOrdersResolvers.ts": "./mesh/magentoOrdersResolvers.ts",
"./mesh/magentoOrderItemResolvers.ts": "./mesh/magentoOrderItemResolvers.ts",
"./mesh/customAttributeMetadataV2": "./mesh/customAttributeMetadataV2.ts"
},
"peerDependencies": {
"@graphcommerce/eslint-config-pwa": "^11.0.0-canary.73",
Expand Down
1 change: 1 addition & 0 deletions packages/magento-newsletter/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export * from './CustomerNewsletterToggle/CustomerNewsletterToggle'
export * from './SignupNewsletter/SignupNewsletter'
export * from './CheckoutNewsletter/CheckoutNewsletter'
export * from './GuestNewsletter/GuestNewsletter'
export * from './GuestNewsletterToggle/GuestNewsletterToggle.gql'
1 change: 1 addition & 0 deletions packages/magento-product-configurable/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export * from './components'
export * from './ConfigurableCartItem/ConfigurableCartItem'
export * from './ConfigurableProductPage.gql'
export * from './SwatchList'
export * from './graphql'
export * from './hooks'
export * from './utils'
1 change: 1 addition & 0 deletions packages/magento-product-simple/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './ProductListItemSimple'
export * from './ProductListItemSimple.gql'
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
export * from './ProductCustomizable'
export * from './productCustomizableSelectors'
export * from './CustomizableAreaOption'
export * from './CustomizableCheckboxOption'
export * from './CustomizableDateOption'
export * from './CustomizableDropDownOption'
export * from './CustomizableFieldOption'
export * from './CustomizableMultipleOption'
export * from './CustomizablePrice'
export * from './CustomizableRadioOption'
2 changes: 2 additions & 0 deletions packages/magento-product/components/ProductListItem/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ export * from './ProductListItemImage'
export * from './ProductListItemTitleAndPrice'
export * from './ProductListItemImageContainer'
export * from './ProductListItemLinkOrDiv'
export * from './ProductDiscountLabel'
export * from './ProductNewLabel'
1 change: 1 addition & 0 deletions packages/magento-product/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export * from './ProductPageBreadcrumb'
export * from './ProductPageCategory/productPageCategory'
export * from './ProductPageDescription/ProductPageDescription'
export * from './ProductPageGallery/ProductPageGallery'
export * from './ProductPageGallery/ProductPageGallery.gql'
export * from './ProductPageMeta/ProductPageMeta'
export * from './ProductPageMeta/ProductPageMeta.gql'
export * from './ProductPageName'
Expand Down
2 changes: 2 additions & 0 deletions packages/magento-review/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ export * from './ProductReviewChip/ProductReviewChip'
export * from './ProductReviewChip/ProductReviewSummaryChip.gql'
export * from './ProductReviews/ProductReviewProductName.gql'
export * from './ProductReviews/ProductReviews'
export * from './ProductReviews/ProductReviews.gql'
export * from './ProductReviews/ProductReviewsPage.gql'
export * from './ProductReviewSummary/ProductReviewSummary'
export * from './ProductReviewSummary/ProductReviewSummary.gql'
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { styled } from '@mui/material'
import type { ComponentPropsWithoutRef } from 'react'
import { useEffect, useState } from 'react'

type StyledDivProps = {
Expand All @@ -23,7 +24,9 @@ const StyledDiv = styled('div', {
],
}))

export function SearchOverlayBodyBase(props) {
export type SearchOverlayBodyBaseProps = ComponentPropsWithoutRef<typeof StyledDiv>

export function SearchOverlayBodyBase(props: SearchOverlayBodyBaseProps) {
const [keyboardOpen, setKeyboardOpen] = useState(false)

useEffect(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { forwardRef } from 'react'
import { SearchOverlayItem } from './SearchOverlayItem'
import { useSearchOverlay } from './SearchOverlayProvider'

type SearchOverlayCategoriesProps = {
export type SearchOverlayCategoriesProps = {
slotProps?: {
link?: Omit<LinkProps, 'href'>
breadcrumbs?: BreadcrumbsProps
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const SearchOverlayHeaderRoot = styled(Box, { name: 'SearchOverlayHeader', slot:
}),
)

type SearchOverlayHeaderProps = React.ComponentProps<typeof SearchOverlayHeaderRoot> & {
export type SearchOverlayHeaderProps = React.ComponentProps<typeof SearchOverlayHeaderRoot> & {
slotProps?: {
input?: Omit<React.ComponentProps<typeof SearchInput>, 'params'>
close?: React.ComponentProps<typeof LayoutHeaderClose>
Expand Down
1 change: 1 addition & 0 deletions packages/magento-wishlist/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './components'
export * from './hooks'
export * from './queries/WishlistItem.gql'
1 change: 1 addition & 0 deletions packages/next-ui/Navigation/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export * from './components/NavigationOverlay'
export * from './components/NavigationFab'
export * from './components/NavigationItem'
export * from './hooks/useNavigation'
export * from './components/NavigationProvider'
1 change: 1 addition & 0 deletions packages/react-hook-form/src/ComposedForm/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export * from './ComposedForm'
export * from './ComposedSubmit'
export * from './context'
export * from './types'
export * from './useFormCompose'
Loading