diff --git a/.changeset/missing-exports.md b/.changeset/missing-exports.md new file mode 100644 index 0000000000..3158434225 --- /dev/null +++ b/.changeset/missing-exports.md @@ -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. diff --git a/packages/ecommerce-ui/components/FormComponents/SelectElement.tsx b/packages/ecommerce-ui/components/FormComponents/SelectElement.tsx index dd7c8ebfa6..eb93064d0a 100644 --- a/packages/ecommerce-ui/components/FormComponents/SelectElement.tsx +++ b/packages/ecommerce-ui/components/FormComponents/SelectElement.tsx @@ -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 = { options: O[] } diff --git a/packages/google-datalayer/index.ts b/packages/google-datalayer/index.ts index 626a2e8e62..c05fecf5e0 100644 --- a/packages/google-datalayer/index.ts +++ b/packages/google-datalayer/index.ts @@ -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' diff --git a/packages/hygraph-ui/components/RichText/index.ts b/packages/hygraph-ui/components/RichText/index.ts index c7ee960529..4e9bd443ce 100644 --- a/packages/hygraph-ui/components/RichText/index.ts +++ b/packages/hygraph-ui/components/RichText/index.ts @@ -1,3 +1,4 @@ export * from './RichText' +export * from './defaultRenderers' export * from './getNodeLength' export * from './types' diff --git a/packages/hygraph-ui/lib/index.ts b/packages/hygraph-ui/lib/index.ts index 0a07780b75..46f6b654b8 100644 --- a/packages/hygraph-ui/lib/index.ts +++ b/packages/hygraph-ui/lib/index.ts @@ -1,2 +1,3 @@ export * from './hygraphPageContent' export * from './getHygraphPaths' +export * from './getAllHygraphPages' diff --git a/packages/image/components/Image.tsx b/packages/image/components/Image.tsx index 93ae18947c..3c27eafe77 100644 --- a/packages/image/components/Image.tsx +++ b/packages/image/components/Image.tsx @@ -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 diff --git a/packages/image/index.ts b/packages/image/index.ts index 723b4758da..e322690740 100644 --- a/packages/image/index.ts +++ b/packages/image/index.ts @@ -1,2 +1,2 @@ export * from './components/Image' -export { imageUrl } from './config/config' +export * from './config/config' diff --git a/packages/magento-cart-coupon/index.ts b/packages/magento-cart-coupon/index.ts index 50cff2f31d..aa12fc15a6 100644 --- a/packages/magento-cart-coupon/index.ts +++ b/packages/magento-cart-coupon/index.ts @@ -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' diff --git a/packages/magento-cart-pickup/index.ts b/packages/magento-cart-pickup/index.ts index 336ce12bb9..c99cff33e1 100644 --- a/packages/magento-cart-pickup/index.ts +++ b/packages/magento-cart-pickup/index.ts @@ -1 +1 @@ -export {} +export * from './components/PickupLocationSelector' diff --git a/packages/magento-cart-shipping-address/index.ts b/packages/magento-cart-shipping-address/index.ts index 5d4ebbbeb3..20954a3dbb 100644 --- a/packages/magento-cart-shipping-address/index.ts +++ b/packages/magento-cart-shipping-address/index.ts @@ -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' diff --git a/packages/magento-cart-shipping-method/index.ts b/packages/magento-cart-shipping-method/index.ts index ab0b4e5687..197127d4f1 100644 --- a/packages/magento-cart-shipping-method/index.ts +++ b/packages/magento-cart-shipping-method/index.ts @@ -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' diff --git a/packages/magento-cart/components/index.ts b/packages/magento-cart/components/index.ts index f2d7599865..b407a24125 100644 --- a/packages/magento-cart/components/index.ts +++ b/packages/magento-cart/components/index.ts @@ -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' diff --git a/packages/magento-cart/hooks/index.ts b/packages/magento-cart/hooks/index.ts index 374ee47227..bf8c8d6698 100644 --- a/packages/magento-cart/hooks/index.ts +++ b/packages/magento-cart/hooks/index.ts @@ -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' diff --git a/packages/magento-cart/hooks/useCartPermissions.ts b/packages/magento-cart/hooks/useCartPermissions.ts index 921b19843d..546f8600a5 100644 --- a/packages/magento-cart/hooks/useCartPermissions.ts +++ b/packages/magento-cart/hooks/useCartPermissions.ts @@ -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' } diff --git a/packages/magento-category/index.ts b/packages/magento-category/index.ts index 03d63c9c52..58153f33fc 100644 --- a/packages/magento-category/index.ts +++ b/packages/magento-category/index.ts @@ -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' diff --git a/packages/magento-customer/components/index.ts b/packages/magento-customer/components/index.ts index c92409122d..8f6518b776 100644 --- a/packages/magento-customer/components/index.ts +++ b/packages/magento-customer/components/index.ts @@ -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' @@ -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' diff --git a/packages/magento-graphql/package.json b/packages/magento-graphql/package.json index 5871194477..daefb7bb84 100644 --- a/packages/magento-graphql/package.json +++ b/packages/magento-graphql/package.json @@ -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", diff --git a/packages/magento-newsletter/components/index.ts b/packages/magento-newsletter/components/index.ts index 0bb92d832a..f0799a557a 100644 --- a/packages/magento-newsletter/components/index.ts +++ b/packages/magento-newsletter/components/index.ts @@ -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' diff --git a/packages/magento-product-configurable/index.ts b/packages/magento-product-configurable/index.ts index 6754496293..7c50647375 100644 --- a/packages/magento-product-configurable/index.ts +++ b/packages/magento-product-configurable/index.ts @@ -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' diff --git a/packages/magento-product-simple/index.ts b/packages/magento-product-simple/index.ts index 50eb75a583..d8d65ae81d 100644 --- a/packages/magento-product-simple/index.ts +++ b/packages/magento-product-simple/index.ts @@ -1 +1,2 @@ export * from './ProductListItemSimple' +export * from './ProductListItemSimple.gql' diff --git a/packages/magento-product/components/ProductCustomizable/index.ts b/packages/magento-product/components/ProductCustomizable/index.ts index 1eb2fe019b..cdcc465258 100644 --- a/packages/magento-product/components/ProductCustomizable/index.ts +++ b/packages/magento-product/components/ProductCustomizable/index.ts @@ -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' diff --git a/packages/magento-product/components/ProductListItem/index.ts b/packages/magento-product/components/ProductListItem/index.ts index 0208f0853f..f0b1746148 100644 --- a/packages/magento-product/components/ProductListItem/index.ts +++ b/packages/magento-product/components/ProductListItem/index.ts @@ -4,3 +4,5 @@ export * from './ProductListItemImage' export * from './ProductListItemTitleAndPrice' export * from './ProductListItemImageContainer' export * from './ProductListItemLinkOrDiv' +export * from './ProductDiscountLabel' +export * from './ProductNewLabel' diff --git a/packages/magento-product/components/index.ts b/packages/magento-product/components/index.ts index 6b8d86a5cb..4637950733 100644 --- a/packages/magento-product/components/index.ts +++ b/packages/magento-product/components/index.ts @@ -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' diff --git a/packages/magento-review/components/index.ts b/packages/magento-review/components/index.ts index 12a35f5d01..6957bbf2c0 100644 --- a/packages/magento-review/components/index.ts +++ b/packages/magento-review/components/index.ts @@ -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' diff --git a/packages/magento-search-overlay/components/SearchOverlayBodyBase.tsx b/packages/magento-search-overlay/components/SearchOverlayBodyBase.tsx index fb0de31c0e..352c604671 100644 --- a/packages/magento-search-overlay/components/SearchOverlayBodyBase.tsx +++ b/packages/magento-search-overlay/components/SearchOverlayBodyBase.tsx @@ -1,4 +1,5 @@ import { styled } from '@mui/material' +import type { ComponentPropsWithoutRef } from 'react' import { useEffect, useState } from 'react' type StyledDivProps = { @@ -23,7 +24,9 @@ const StyledDiv = styled('div', { ], })) -export function SearchOverlayBodyBase(props) { +export type SearchOverlayBodyBaseProps = ComponentPropsWithoutRef + +export function SearchOverlayBodyBase(props: SearchOverlayBodyBaseProps) { const [keyboardOpen, setKeyboardOpen] = useState(false) useEffect(() => { diff --git a/packages/magento-search-overlay/components/SearchOverlayCategories.tsx b/packages/magento-search-overlay/components/SearchOverlayCategories.tsx index 41ab67eaf8..cb61899645 100644 --- a/packages/magento-search-overlay/components/SearchOverlayCategories.tsx +++ b/packages/magento-search-overlay/components/SearchOverlayCategories.tsx @@ -14,7 +14,7 @@ import { forwardRef } from 'react' import { SearchOverlayItem } from './SearchOverlayItem' import { useSearchOverlay } from './SearchOverlayProvider' -type SearchOverlayCategoriesProps = { +export type SearchOverlayCategoriesProps = { slotProps?: { link?: Omit breadcrumbs?: BreadcrumbsProps diff --git a/packages/magento-search-overlay/components/SearchOverlayHeader.tsx b/packages/magento-search-overlay/components/SearchOverlayHeader.tsx index 83dbe84ec0..37126c7f4c 100644 --- a/packages/magento-search-overlay/components/SearchOverlayHeader.tsx +++ b/packages/magento-search-overlay/components/SearchOverlayHeader.tsx @@ -23,7 +23,7 @@ const SearchOverlayHeaderRoot = styled(Box, { name: 'SearchOverlayHeader', slot: }), ) -type SearchOverlayHeaderProps = React.ComponentProps & { +export type SearchOverlayHeaderProps = React.ComponentProps & { slotProps?: { input?: Omit, 'params'> close?: React.ComponentProps diff --git a/packages/magento-wishlist/index.ts b/packages/magento-wishlist/index.ts index 7aea380be8..33da9b1878 100644 --- a/packages/magento-wishlist/index.ts +++ b/packages/magento-wishlist/index.ts @@ -1,2 +1,3 @@ export * from './components' export * from './hooks' +export * from './queries/WishlistItem.gql' diff --git a/packages/next-ui/Navigation/index.ts b/packages/next-ui/Navigation/index.ts index b753980d80..9ea5b3d4d4 100644 --- a/packages/next-ui/Navigation/index.ts +++ b/packages/next-ui/Navigation/index.ts @@ -1,4 +1,5 @@ export * from './components/NavigationOverlay' export * from './components/NavigationFab' +export * from './components/NavigationItem' export * from './hooks/useNavigation' export * from './components/NavigationProvider' diff --git a/packages/react-hook-form/src/ComposedForm/index.ts b/packages/react-hook-form/src/ComposedForm/index.ts index 65ac0c04c5..45fae08428 100644 --- a/packages/react-hook-form/src/ComposedForm/index.ts +++ b/packages/react-hook-form/src/ComposedForm/index.ts @@ -1,4 +1,5 @@ export * from './ComposedForm' export * from './ComposedSubmit' +export * from './context' export * from './types' export * from './useFormCompose'