@riosst100/pwa-marketplace 3.1.3 → 3.1.4

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 (72) hide show
  1. package/package.json +1 -1
  2. package/src/components/BrandLandingPage/brandLanding.js +0 -5
  3. package/src/components/CheckoutHeader/accountTrigger.js +104 -0
  4. package/src/components/CheckoutHeader/cartTrigger.js +110 -0
  5. package/src/components/CheckoutHeader/cartTrigger.module.css +47 -0
  6. package/src/components/CheckoutHeader/storeSwitcher.js +119 -0
  7. package/src/components/CheckoutHeader/storeSwitcher.module.css +107 -0
  8. package/src/components/CheckoutHeader/switcherItem.js +47 -0
  9. package/src/components/CheckoutHeader/wishlistTrigger.js +23 -0
  10. package/src/components/FilterListContent/filterListPage.js +0 -25
  11. package/src/components/FilterTop/filterTop.js +1 -1
  12. package/src/components/ProductContent/productContent.js +1 -1
  13. package/src/components/RMAPage/components/productItem.css +15 -0
  14. package/src/components/RMAPage/components/productItem.module.css +15 -0
  15. package/src/components/RelatedProducts/index.js +1 -0
  16. package/src/components/RelatedProducts/relatedProducts.js +44 -0
  17. package/src/components/SellerMegaMenu/__tests__/MegaMenu.spec.js +91 -0
  18. package/src/components/SellerMegaMenu/__tests__/MegaMenuItem.spec.js +123 -0
  19. package/src/components/SellerMegaMenu/__tests__/Submenu.spec.js +61 -0
  20. package/src/components/SellerMegaMenu/__tests__/SubmenuColumn.spec.js +50 -0
  21. package/src/components/SellerMegaMenu/__tests__/__snapshots__/MegaMenu.spec.js.snap +114 -0
  22. package/src/components/SellerMegaMenu/__tests__/__snapshots__/MegaMenuItem.spec.js.snap +71 -0
  23. package/src/components/SellerMegaMenu/__tests__/__snapshots__/Submenu.spec.js.snap +59 -0
  24. package/src/components/SellerMegaMenu/__tests__/__snapshots__/SubmenuColumn.spec.js.snap +34 -0
  25. package/src/components/SellerMegaMenu/customSubmenuColumn.js +75 -0
  26. package/src/components/SellerMegaMenu/customSubmenuColumn.module.css +29 -0
  27. package/src/components/SellerMegaMenu/shopByColumn.js +121 -0
  28. package/src/components/SellerProducts/productContent.js +2 -4
  29. package/src/components/SetsData/setsData.js +0 -25
  30. package/src/components/ShopBy/shopBy.js +3 -78
  31. package/src/components/ShopBySets/shopBySets.js +2 -2
  32. package/src/components/ShowMore/showMore.js +3 -49
  33. package/src/intercept.js +0 -14
  34. package/src/overwrites/peregrine/lib/talons/OrderHistoryPage/orderHistoryPage.gql.js +1 -15
  35. package/src/overwrites/peregrine/lib/talons/OrderHistoryPage/orderRow.gql.js +0 -11
  36. package/src/overwrites/peregrine/lib/talons/RelatedProducts/productReview.gql.js +89 -0
  37. package/src/overwrites/peregrine/lib/talons/RelatedProducts/useRelatedProducts.js +833 -0
  38. package/src/overwrites/peregrine/lib/talons/RootComponents/Category/categoryContent.gql.js +0 -16
  39. package/src/overwrites/peregrine/lib/talons/RootComponents/Category/useCategoryContent.js +1 -5
  40. package/src/overwrites/venia-ui/lib/RootComponents/Category/category.js +118 -62
  41. package/src/overwrites/venia-ui/lib/RootComponents/Category/categoryContent.js +3 -50
  42. package/src/overwrites/venia-ui/lib/components/Breadcrumbs/breadcrumbs.js +1 -7
  43. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListingBySeller/EditModal/editModal.js +41 -0
  44. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListingBySeller/EditModal/index.js +1 -0
  45. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListingBySeller/EditModal/productDetail.js +80 -0
  46. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListingBySeller/EditModal/productDetail.module.css +33 -0
  47. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListingBySeller/EditModal/productForm.js +153 -0
  48. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListingBySeller/EditModal/productForm.module.css +52 -0
  49. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListingBySeller/errorMessage.js +31 -0
  50. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListingBySeller/errorMessage.module.css +13 -0
  51. package/src/overwrites/venia-ui/lib/components/CartPage/ProductListingBySeller/quantity.js +40 -0
  52. package/src/overwrites/venia-ui/lib/components/FilterSidebar/filterSidebar.js +21 -92
  53. package/src/overwrites/venia-ui/lib/components/Footer/sampleData.js +1 -1
  54. package/src/overwrites/venia-ui/lib/components/MegaMenu/megaMenuItem.js +6 -2
  55. package/src/overwrites/venia-ui/lib/components/MegaMenu/submenu.js +0 -21
  56. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/Reviews/reviewModal.js +8 -0
  57. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderHistoryPage.js +3 -3
  58. package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderRow.js +4 -85
  59. package/src/talons/ProductContent/productContent.gql.js +0 -16
  60. package/src/talons/ProductContent/useProductContent.js +0 -4
  61. package/src/talons/RelatedProducts/relatedProducts.gql.js +209 -0
  62. package/src/talons/RelatedProducts/useRelatedProducts.js +112 -0
  63. package/src/talons/SellerProducts/productContent.gql.js +1 -17
  64. package/src/talons/SellerProducts/useProductContent.js +1 -36
  65. package/src/components/AttributesBlock/attributesBlock.js +0 -54
  66. package/src/components/AttributesBlock/attributesBlock.module.css +0 -28
  67. package/src/components/ShopBy/shopBy copy.js +0 -172
  68. package/src/components/SubCategory/customSubCategory.js +0 -45
  69. package/src/components/SubCategory/customSubCategory.module.css +0 -22
  70. package/src/talons/AttributesBlock/attributesBlock.gql.js +0 -15
  71. package/src/talons/AttributesBlock/useAttributesBlock.js +0 -38
  72. package/src/talons/SubCategory/useCustomSubCategory.js +0 -50
@@ -0,0 +1,89 @@
1
+ import { gql } from '@apollo/client';
2
+
3
+ const GET_PRODUCT_REVIEW_RATINGS_METADATA = gql`
4
+ query getProductReviewRatingsMetadata {
5
+ productReviewRatingsMetadata {
6
+ items {
7
+ id
8
+ name
9
+ values {
10
+ value
11
+ value_id
12
+ }
13
+ }
14
+ }
15
+ }
16
+ `;
17
+
18
+ const CREATE_PRODUCT_REVIEW = gql`
19
+ mutation CreateProductReview($input: CreateProductReviewInput!) {
20
+ createProductReview(input: $input) {
21
+ review {
22
+ average_rating
23
+ created_at
24
+ nickname
25
+ product {
26
+ uuid: uid
27
+ uid
28
+ name
29
+ sku
30
+ }
31
+ ratings_breakdown {
32
+ name
33
+ value
34
+ }
35
+ summary
36
+ text
37
+ }
38
+ }
39
+ }
40
+ `;
41
+
42
+ const GET_PRODUCT_REVIEWS = gql`
43
+ query getProductReviews($url_key: String) {
44
+ products(
45
+ filter: { url_key: { eq: $url_key } }
46
+ pageSize: 20
47
+ currentPage: 1
48
+ ) {
49
+ items {
50
+ uid
51
+ rating_summary
52
+ review_count
53
+ reviews(pageSize: 20, currentPage: 1){
54
+ items {
55
+ average_rating
56
+ created_at
57
+ nickname
58
+ summary
59
+ text
60
+ product {
61
+ uid
62
+ name
63
+ sku
64
+ }
65
+ ratings_breakdown {
66
+ name
67
+ value
68
+ }
69
+ }
70
+ page_info {
71
+ total_pages
72
+ current_page
73
+ page_size
74
+ }
75
+ }
76
+ }
77
+ page_info {
78
+ total_pages
79
+ current_page
80
+ }
81
+ }
82
+ }
83
+ `;
84
+
85
+ export default {
86
+ getProductReviews: GET_PRODUCT_REVIEWS,
87
+ createProductReview: CREATE_PRODUCT_REVIEW,
88
+ getProductReviewRatingsMetadata: GET_PRODUCT_REVIEW_RATINGS_METADATA
89
+ };