@riosst100/pwa-marketplace 2.1.7 → 2.1.9

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@riosst100/pwa-marketplace",
3
3
  "author": "riosst100@gmail.com",
4
- "version": "2.1.7",
4
+ "version": "2.1.9",
5
5
  "main": "src/index.js",
6
6
  "pwa-studio": {
7
7
  "targets": {
@@ -589,6 +589,7 @@ export const useProductFullDetail = props => {
589
589
  price: productPrice?.final_price,
590
590
  price_range: product?.price_range,
591
591
  sku: product.sku,
592
+ publish_status: product.publish_status,
592
593
  term_and_conditions: product.term_and_conditions,
593
594
  link_to_other_stores: product.link_to_other_stores,
594
595
  shipping_policy: product.shipping_policy,
@@ -74,6 +74,7 @@ export const ProductDetailsFragment = gql`
74
74
  }
75
75
  }
76
76
  }
77
+ publish_status
77
78
  sku
78
79
  auction_data {
79
80
  is_auction
@@ -7,7 +7,7 @@ import ErrorView from '@magento/venia-ui/lib/components/ErrorView';
7
7
  import { StoreTitle, Meta } from '@magento/venia-ui/lib/components/Head';
8
8
  import ProductFullDetail from '@magento/venia-ui/lib/components/ProductFullDetail';
9
9
  import mapProduct from '@magento/venia-ui/lib/util/mapProduct';
10
- import ProductShimmer from './product.shimmer';
10
+ import ProductShimmer from '@magento/venia-ui/lib/RootComponents/Product/product.shimmer';
11
11
 
12
12
  /*
13
13
  * As of this writing, there is no single Product query type in the M2.3 schema.
@@ -444,7 +444,7 @@ const ProductFullDetail = props => {
444
444
  return result;
445
445
  }
446
446
 
447
- const productPreviewMessages = isPreview ? (
447
+ const productPreviewMessages = isPreview && productDetails?.publish_status != 1 ? (
448
448
  <div
449
449
  style={{
450
450
  backgroundColor: "white", // Light gray background