@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.
package/.turbo/turbo-build.log
CHANGED
|
@@ -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.
|
|
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.
|
|
37
|
-
└ ● /s 4.
|
|
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-
|
|
42
|
-
├ chunks/webpack-
|
|
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)
|
package/faststore.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/core",
|
|
3
|
-
"version": "2.1.
|
|
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.
|
|
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.
|
|
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": "
|
|
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
|
-
{
|
|
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
|
-
{
|
|
207
|
+
{!outOfStock && (
|
|
206
208
|
<ShippingSimulation.Component
|
|
207
209
|
data-fs-product-details-section
|
|
208
210
|
data-fs-product-details-shipping
|