@graphcommerce/magento-product 4.0.3 → 4.0.6

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +242 -429
  2. package/components/JsonLdProduct/{index.tsx → jsonLdProduct.tsx} +0 -0
  3. package/components/ProductAddToCart/ProductAddToCart.tsx +24 -9
  4. package/components/ProductListFilters/FilterCheckboxType.tsx +4 -4
  5. package/components/ProductListFilters/FilterEqualType.tsx +2 -2
  6. package/components/ProductListFilters/FilterRangeType.tsx +1 -1
  7. package/components/ProductListFilters/ProductListFilters.tsx +5 -5
  8. package/components/ProductListFiltersContainer/{index.tsx → ProductListFiltersContainer.tsx} +24 -21
  9. package/components/ProductListItem/{index.tsx → ProductListItem.tsx} +2 -2
  10. package/components/ProductListItems/ProductListItems.tsx +6 -0
  11. package/components/ProductListItems/ProductListItemsBase.tsx +2 -2
  12. package/components/ProductListItems/ProductListParamsProvider.tsx +1 -1
  13. package/components/ProductListItems/filterTypes.tsx +1 -1
  14. package/components/ProductListItems/getFilterTypes.ts +1 -2
  15. package/components/ProductListItems/renderer.tsx +2 -4
  16. package/components/ProductListLink/ProductListLink.tsx +35 -35
  17. package/components/ProductListPagination/{index.tsx → ProductListPagination.tsx} +3 -7
  18. package/components/ProductListPrice/{index.tsx → ProductListPrice.tsx} +1 -1
  19. package/components/ProductListSort/{index.tsx → ProductListSort.tsx} +2 -2
  20. package/components/ProductPageCategory/{index.ts → productPageCategory.ts} +1 -1
  21. package/components/ProductPageDescription/{index.tsx → ProductPageDescription.tsx} +1 -1
  22. package/components/ProductPageGallery/ProductImage.tsx +1 -1
  23. package/components/ProductPageGallery/{index.tsx → ProductPageGallery.tsx} +1 -1
  24. package/components/ProductPageGallery/ProductVideo.tsx +1 -2
  25. package/components/ProductPageMeta/{index.tsx → ProductPageMeta.tsx} +1 -2
  26. package/components/ProductShortDescription/{index.tsx → ProductShortDescription.tsx} +1 -1
  27. package/components/ProductSidebarDelivery/{index.tsx → ProductSidebarDelivery.tsx} +3 -3
  28. package/components/ProductSpecs/{index.tsx → ProductSpecs.tsx} +1 -1
  29. package/components/ProductWeight/{index.tsx → ProductWeight.tsx} +1 -1
  30. package/components/index.ts +16 -26
  31. package/index.ts +0 -2
  32. package/package.json +11 -11
  33. package/components/ProductListItems/index.tsx +0 -6
@@ -1,40 +1,30 @@
1
- export * from './JsonLdProduct'
1
+ export * from './JsonLdProduct/jsonLdProduct'
2
2
  export * from './ProductAddToCart/ProductAddToCart'
3
- export { default as ProductAddToCart } from './ProductAddToCart/ProductAddToCart'
4
3
  export * from './ProductList/ProductList.gql'
5
4
  export * from './ProductListCount/ProductListCount'
6
5
  export * from './ProductListFilters/ProductListFilters'
7
- export { default as ProductListFilters } from './ProductListFilters/ProductListFilters'
8
- export * from './ProductListFiltersContainer'
9
- export { default as ProductListFiltersContainer } from './ProductListFiltersContainer'
10
- export * from './ProductListItem'
11
- export { default as ProductListItem } from './ProductListItem'
12
- export { default as ProductListItems } from './ProductListItems'
6
+ export * from './ProductListFiltersContainer/ProductListFiltersContainer'
7
+ export * from './ProductListItem/ProductListItem'
8
+ export * from './ProductListItems/ProductListItems'
13
9
  export * from './ProductListItems/filteredProductList'
14
10
  export * from './ProductListItems/filterTypes'
15
11
  export * from './ProductListItems/getFilterTypes'
16
12
  export * from './ProductListItems/ProductListItems.gql'
17
13
  export * from './ProductListItems/ProductListItemsBase'
18
- export { default as ProductListItemsBase } from './ProductListItems/ProductListItemsBase'
19
- export { default as ProductListParamsProvider } from './ProductListItems/ProductListParamsProvider'
14
+ export * from './ProductListItems/ProductListParamsProvider'
20
15
  export * from './ProductListItems/renderer'
21
16
  export * from './ProductListLink/ProductListLink'
22
- export { default as ProductListLink } from './ProductListLink/ProductListLink'
23
- export * from './ProductListPagination'
24
- export { default as ProductListPagination } from './ProductListPagination'
25
- export * from './ProductListSort'
26
- export { default as ProductListSort } from './ProductListSort'
27
- export { default as productPageCategory } from './ProductPageCategory'
28
- export * from './ProductPageDescription'
29
- export { default as ProductPageDescription } from './ProductPageDescription'
30
- export { default as ProductPageGallery } from './ProductPageGallery'
31
- export { default as ProductPageMeta } from './ProductPageMeta'
17
+ export * from './ProductListPagination/ProductListPagination'
18
+ export * from './ProductListSort/ProductListSort'
19
+ export * from './ProductPageCategory/productPageCategory'
20
+ export * from './ProductPageDescription/ProductPageDescription'
21
+ export * from './ProductPageGallery/ProductPageGallery'
22
+ export * from './ProductPageMeta/ProductPageMeta'
32
23
  export * from './ProductRelated/RelatedProducts.gql'
33
- export { default as ProductShortDescription } from './ProductShortDescription'
24
+ export * from './ProductShortDescription/ProductShortDescription'
34
25
  export * from './ProductShortDescription/ProductShortDescription.gql'
35
- export { default as ProductSidebarDelivery } from './ProductSidebarDelivery'
36
- export * from './ProductSpecs'
37
- export { default as ProductSpecs } from './ProductSpecs'
38
- export { getProductStaticPaths } from './ProductStaticPaths/getProductStaticPaths'
26
+ export * from './ProductSidebarDelivery/ProductSidebarDelivery'
27
+ export * from './ProductSpecs/ProductSpecs'
28
+ export * from './ProductStaticPaths/getProductStaticPaths'
39
29
  export * from './ProductUpsells/UpsellProducts.gql'
40
- export { default as ProductWeight } from './ProductWeight'
30
+ export * from './ProductWeight/ProductWeight'
package/index.ts CHANGED
@@ -1,8 +1,6 @@
1
1
  export * from './components'
2
-
3
2
  export * from './Api/ProductListItem.gql'
4
3
  export * from './Api/ProductPageItem.gql'
5
-
6
4
  export * from './hooks/useProductLink'
7
5
  export * from './hooks/useProductListLinkReplace'
8
6
  export * from './hooks/useProductListParamsContext'
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": "4.0.3",
5
+ "version": "4.0.6",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,19 +12,19 @@
12
12
  }
13
13
  },
14
14
  "devDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^4.0.3",
16
- "@graphcommerce/prettier-config-pwa": "^4.0.2",
15
+ "@graphcommerce/eslint-config-pwa": "^4.0.5",
16
+ "@graphcommerce/prettier-config-pwa": "^4.0.3",
17
17
  "@graphcommerce/typescript-config-pwa": "^4.0.2",
18
- "@playwright/test": "^1.19.1"
18
+ "@playwright/test": "^1.19.2"
19
19
  },
20
20
  "dependencies": {
21
- "@graphcommerce/framer-scroller": "^2.0.3",
22
- "@graphcommerce/graphql": "^3.0.3",
23
- "@graphcommerce/image": "^3.1.0",
24
- "@graphcommerce/magento-cart": "^4.1.2",
25
- "@graphcommerce/magento-store": "^4.0.3",
26
- "@graphcommerce/next-ui": "^4.1.2",
27
- "schema-dts": "^1.0.0",
21
+ "@graphcommerce/framer-scroller": "^2.0.6",
22
+ "@graphcommerce/graphql": "^3.0.4",
23
+ "@graphcommerce/image": "^3.1.1",
24
+ "@graphcommerce/magento-cart": "^4.1.4",
25
+ "@graphcommerce/magento-store": "^4.1.2",
26
+ "@graphcommerce/next-ui": "^4.2.4",
27
+ "schema-dts": "^1.1.0",
28
28
  "type-fest": "^2.12.0"
29
29
  },
30
30
  "peerDependencies": {
@@ -1,6 +0,0 @@
1
- import ProductListItemsBase, { ProductItemsGridProps } from './ProductListItemsBase'
2
- import renderer from './renderer'
3
-
4
- export default function ProductListItems(props: Omit<ProductItemsGridProps, 'renderers'>) {
5
- return <ProductListItemsBase renderers={renderer} {...props} />
6
- }