@faststore/core 2.1.75 → 2.1.77

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.
@@ -25,7 +25,7 @@ Route (pages) Size First Load JS
25
25
  ├ /_app 0 B 77.9 kB
26
26
  ├ ● /[...slug] 4.06 kB 208 kB
27
27
  ├ └ css/527e334fa69cf40a.css 1.85 kB
28
- ├ ● /[slug]/p 10.8 kB 205 kB
28
+ ├ ● /[slug]/p 10.4 kB 204 kB
29
29
  ├ └ css/c110411bf3c3f5d1.css 11.3 kB
30
30
  ├ ○ /404 1.19 kB 114 kB
31
31
  ├ ● /500 1.21 kB 114 kB
@@ -33,13 +33,13 @@ Route (pages) Size First Load JS
33
33
  ├ λ /api/graphql 0 B 77.9 kB
34
34
  ├ λ /api/preview 0 B 77.9 kB
35
35
  ├ ● /checkout 657 B 113 kB
36
- ├ ● /login 1.08 kB 114 kB
37
- └ ● /s 4.55 kB 127 kB
36
+ ├ ● /login 1.09 kB 114 kB
37
+ └ ● /s 4.57 kB 127 kB
38
38
  + First Load JS shared by all 81 kB
39
39
  ├ chunks/framework-dfd14d7ce6600b03.js 45.3 kB
40
40
  ├ chunks/main-fd466221927468fd.js 23.9 kB
41
- ├ chunks/pages/_app-aa068e481630f73b.js 6.45 kB
42
- ├ chunks/webpack-32079fece11c1e05.js 2.3 kB
41
+ ├ chunks/pages/_app-895781b1c7b5bf56.js 6.45 kB
42
+ ├ chunks/webpack-a076b4e56af09d34.js 2.29 kB
43
43
  └ css/9e76fef1c9ca89af.css 3.06 kB
44
44
 
45
45
  λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
@@ -17,7 +17,7 @@ module.exports = {
17
17
  storeId: 'storeframework',
18
18
  workspace: 'master',
19
19
  environment: 'vtexcommercestable',
20
- hideUnavailableItems: true,
20
+ hideUnavailableItems: false,
21
21
  incrementAddress: true,
22
22
  },
23
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/core",
3
- "version": "2.1.75",
3
+ "version": "2.1.77",
4
4
  "license": "MIT",
5
5
  "browserslist": "supports es6-module and not dead",
6
6
  "scripts": {
@@ -30,10 +30,10 @@
30
30
  "@envelop/parser-cache": "^2.2.0",
31
31
  "@envelop/validation-cache": "^2.2.0",
32
32
  "@faststore/api": "^2.1.68",
33
- "@faststore/components": "^2.1.67",
33
+ "@faststore/components": "^2.1.77",
34
34
  "@faststore/graphql-utils": "^2.1.53",
35
35
  "@faststore/sdk": "^2.1.53",
36
- "@faststore/ui": "^2.1.72",
36
+ "@faststore/ui": "^2.1.77",
37
37
  "@types/react": "^18.0.14",
38
38
  "@vtex/client-cms": "^0.2.12",
39
39
  "autoprefixer": "^10.4.0",
@@ -110,5 +110,5 @@
110
110
  "msw": {
111
111
  "workerDirectory": "public"
112
112
  },
113
- "gitHead": "b76596ea192bd2101be191d10f1ee46b1fe4d5fb"
113
+ "gitHead": "e0e12e579c7f581162cca65d18028fe50324a85a"
114
114
  }
@@ -11,7 +11,6 @@ import { useFormattedPrice } from 'src/sdk/product/useFormattedPrice'
11
11
  import type { AnalyticsItem } from 'src/sdk/analytics/types'
12
12
 
13
13
  import Section from '../Section'
14
- import OutOfStock from 'src/components/product/OutOfStock'
15
14
  import ProductDescription from 'src/components/ui/ProductDescription'
16
15
  import { ProductDetailsSettings } from 'src/components/ui/ProductDetails'
17
16
 
@@ -152,6 +151,8 @@ function ProductDetails({
152
151
  gtin,
153
152
  ])
154
153
 
154
+ const outOfStock = availability == 'https://schema.org/OutOfStock'
155
+
155
156
  return (
156
157
  <Section className={`${styles.section} section-product-details`}>
157
158
  <section data-fs-product-details>
@@ -188,7 +189,7 @@ function ProductDetails({
188
189
  data-fs-product-details-settings
189
190
  data-fs-product-details-section
190
191
  >
191
- {availability ? (
192
+ {!outOfStock ? (
192
193
  <ProductDetailsSettings
193
194
  product={data.product}
194
195
  isValidating={isValidating}
@@ -198,11 +199,12 @@ function ProductDetails({
198
199
  buyButtonIcon={buyButtonIcon}
199
200
  />
200
201
  ) : (
201
- <OutOfStock />
202
+ // TODO: Adds <OutOfStock /> when component is ready to use
203
+ <p>Not Available</p>
202
204
  )}
203
205
  </section>
204
206
 
205
- {availability && (
207
+ {!outOfStock && (
206
208
  <ShippingSimulation.Component
207
209
  data-fs-product-details-section
208
210
  data-fs-product-details-shipping