@faststore/core 3.93.0-dev.3 → 3.93.0-dev.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.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +22 -22
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/config.json +3 -3
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/prerender-manifest.js +1 -1
- package/.next/prerender-manifest.json +1 -1
- package/.next/react-loadable-manifest.json +6 -6
- package/.next/routes-manifest.json +1 -1
- package/.next/server/chunks/9563.js +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/.next/server/pages/[slug]/p.js +1 -1
- package/.next/server/pages/api/graphql.js +1 -1
- package/.next/server/pages/en-US/404.html +1 -1
- package/.next/server/pages/en-US/500.html +1 -1
- package/.next/server/pages/en-US/checkout.html +1 -1
- package/.next/server/pages/en-US/login.html +1 -1
- package/.next/server/pages/en-US/s.html +1 -1
- package/.next/server/pages/en-US.html +1 -1
- package/.next/server/pages-manifest.json +1 -1
- package/.next/static/{CeWoZMY82Pj6r4_Xn_-E8 → MboIr-zsCT7bH5aMl_ZPZ}/_buildManifest.js +1 -1
- package/.next/static/chunks/{9119.7c04db0834ab03e3.js → 9119.35c4fd1d22ff9635.js} +1 -1
- package/.next/static/chunks/{UIToast.2c00b9b5c62f9e33.js → UIToast.06abb13e005a0ba3.js} +1 -1
- package/.next/static/chunks/pages/[slug]/{p-7306839a04b9f1e2.js → p-2ef4d7b4e17e0dd6.js} +1 -1
- package/.next/static/chunks/{webpack-de5087bb872dc77e.js → webpack-9fbeba3895e9ad97.js} +1 -1
- package/.next/trace +138 -138
- package/.turbo/turbo-build.log +9 -9
- package/.turbo/turbo-test.log +5 -5
- package/CHANGELOG.md +6 -0
- package/package.json +2 -2
- package/src/components/ui/ProductDetails/ProductDetailsSettings.tsx +54 -50
- /package/.next/static/{CeWoZMY82Pj6r4_Xn_-E8 → MboIr-zsCT7bH5aMl_ZPZ}/_ssgManifest.js +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
> @faststore/core@3.93.0-dev.
|
|
2
|
+
> @faststore/core@3.93.0-dev.3 prebuild /home/runner/work/faststore/faststore/packages/core
|
|
3
3
|
> na run partytown && na run generate
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @faststore/core@3.93.0-dev.
|
|
6
|
+
> @faststore/core@3.93.0-dev.3 partytown /home/runner/work/faststore/faststore/packages/core
|
|
7
7
|
> partytown copylib ./public/~partytown
|
|
8
8
|
|
|
9
9
|
Partytown lib copied to: /home/runner/work/faststore/faststore/packages/core/public/~partytown
|
|
10
10
|
|
|
11
|
-
> @faststore/core@3.93.0-dev.
|
|
11
|
+
> @faststore/core@3.93.0-dev.3 generate /home/runner/work/faststore/faststore/packages/core
|
|
12
12
|
> na run generate:schema && na run generate:codegen && na run format:generated
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
> @faststore/core@3.93.0-dev.
|
|
15
|
+
> @faststore/core@3.93.0-dev.3 generate:schema /home/runner/work/faststore/faststore/packages/core
|
|
16
16
|
> tsx src/server/generator/generateGraphQLSchemaFile.ts
|
|
17
17
|
|
|
18
18
|
Schema GraphQL file generated successfully
|
|
19
19
|
|
|
20
|
-
> @faststore/core@3.93.0-dev.
|
|
20
|
+
> @faststore/core@3.93.0-dev.3 generate:codegen /home/runner/work/faststore/faststore/packages/core
|
|
21
21
|
> graphql-codegen
|
|
22
22
|
|
|
23
23
|
[STARTED] Parse Configuration
|
|
@@ -37,11 +37,11 @@ Running lifecycle hook "afterStart" scripts...
|
|
|
37
37
|
[CLI] Loading Documents
|
|
38
38
|
[CLI] Generating output
|
|
39
39
|
|
|
40
|
-
> @faststore/core@3.93.0-dev.
|
|
40
|
+
> @faststore/core@3.93.0-dev.3 format:generated /home/runner/work/faststore/faststore/packages/core
|
|
41
41
|
> prettier --write "@generated/**/*.{ts,js,tsx,jsx,json}" --loglevel error
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
> @faststore/core@3.93.0-dev.
|
|
44
|
+
> @faststore/core@3.93.0-dev.3 build /home/runner/work/faststore/faststore/packages/core
|
|
45
45
|
> next build
|
|
46
46
|
|
|
47
47
|
⚠ No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
|
|
@@ -80,8 +80,8 @@ Import trace for requested module:
|
|
|
80
80
|
Collecting page data ...
|
|
81
81
|
Generating static pages (0/6) ...
|
|
82
82
|
|
|
83
83
|
Generating static pages (1/6)
|
|
84
|
-
Warning: Dynamic Content not found for the page: home. Refer to the Dynamic Content documentation at https://developers.vtex.com/docs/guides/faststore/dynamic-content-overview for mapping the page and the corresponding data-fetching function.
|
|
85
84
|
|
|
86
85
|
Generating static pages (2/6)
|
|
86
|
+
Warning: Dynamic Content not found for the page: home. Refer to the Dynamic Content documentation at https://developers.vtex.com/docs/guides/faststore/dynamic-content-overview for mapping the page and the corresponding data-fetching function.
|
|
87
87
|
|
|
88
88
|
Generating static pages (4/6)
|
|
89
89
|
|
|
90
90
|
✓ Generating static pages (6/6)
|
|
91
91
|
Finalizing page optimization ...
|
|
@@ -123,7 +123,7 @@ Route (pages) Size First Load JS
|
|
|
123
123
|
├ chunks/framework-d514426edf885c68.js 45.4 kB
|
|
124
124
|
├ chunks/main-ec03882c4375091d.js 33.2 kB
|
|
125
125
|
├ chunks/pages/_app-3cc57c1ad13155aa.js 25.6 kB
|
|
126
|
-
├ chunks/webpack-
|
|
126
|
+
├ chunks/webpack-9fbeba3895e9ad97.js 3.87 kB
|
|
127
127
|
└ css/0f070d03aacd9cc5.css 3.57 kB
|
|
128
128
|
|
|
129
129
|
λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
|
-
> @faststore/core@3.93.0-dev.
|
|
2
|
+
> @faststore/core@3.93.0-dev.3 test /home/runner/work/faststore/faststore/packages/core
|
|
3
3
|
> jest
|
|
4
4
|
|
|
5
|
-
PASS test/server/cms/global.test.ts (
|
|
6
|
-
PASS test/utils/multipleTemplates.test.ts (
|
|
5
|
+
PASS test/server/cms/global.test.ts (24.883 s)
|
|
6
|
+
PASS test/utils/multipleTemplates.test.ts (26.098 s)
|
|
7
7
|
PASS test/server/cms/index.test.ts
|
|
8
|
-
PASS test/server/index.test.ts (
|
|
8
|
+
PASS test/server/index.test.ts (29.332 s)
|
|
9
9
|
|
|
10
10
|
Test Suites: 4 passed, 4 total
|
|
11
11
|
Tests: 22 passed, 22 total
|
|
12
12
|
Snapshots: 0 total
|
|
13
|
-
Time:
|
|
13
|
+
Time: 30.151 s
|
|
14
14
|
Ran all test suites.
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.93.0-dev.4](https://github.com/vtex/faststore/compare/v3.93.0-dev.3...v3.93.0-dev.4) (2025-11-17)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- Show skeleton when product price is validating ([#3112](https://github.com/vtex/faststore/issues/3112)) ([1acb303](https://github.com/vtex/faststore/commit/1acb30334e2a17fe81630d3b0d631152c4e635f3))
|
|
11
|
+
|
|
6
12
|
# 3.93.0-dev.3 (2025-11-17)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/core",
|
|
3
|
-
"version": "3.93.0-dev.
|
|
3
|
+
"version": "3.93.0-dev.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "vtex/faststore",
|
|
6
6
|
"browserslist": "supports es6-module and not dead",
|
|
@@ -116,5 +116,5 @@
|
|
|
116
116
|
"ts-jest": "29.1.1",
|
|
117
117
|
"typescript": "5.3.2"
|
|
118
118
|
},
|
|
119
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "7d84a6a882433051c4fad79752b72431d7c3767f"
|
|
120
120
|
}
|
|
@@ -2,6 +2,7 @@ import type { Dispatch, SetStateAction } from 'react'
|
|
|
2
2
|
import { useMemo } from 'react'
|
|
3
3
|
|
|
4
4
|
import type { ProductDetailsFragment_ProductFragment } from '@generated/graphql'
|
|
5
|
+
import { Skeleton as UISkeleton } from '@faststore/ui'
|
|
5
6
|
|
|
6
7
|
import { useBuyButton } from 'src/sdk/cart/useBuyButton'
|
|
7
8
|
import { useFormattedPrice } from 'src/sdk/product/useFormattedPrice'
|
|
@@ -103,57 +104,60 @@ function ProductDetailsSettings({
|
|
|
103
104
|
|
|
104
105
|
return (
|
|
105
106
|
<>
|
|
106
|
-
{!outOfStock &&
|
|
107
|
-
|
|
108
|
-
<
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
107
|
+
{!outOfStock &&
|
|
108
|
+
(isValidating ? (
|
|
109
|
+
<UISkeleton size={{ width: '100%', height: '50px' }} />
|
|
110
|
+
) : (
|
|
111
|
+
<section data-fs-product-details-values>
|
|
112
|
+
<div data-fs-product-details-values-wrapper>
|
|
113
|
+
<ProductPrice.Component
|
|
114
|
+
data-fs-product-details-prices
|
|
115
|
+
value={
|
|
116
|
+
(taxesConfiguration?.usePriceWithTaxes
|
|
117
|
+
? priceWithTaxes
|
|
118
|
+
: price) * (unitMultiplier ?? 1)
|
|
119
|
+
}
|
|
120
|
+
listPrice={
|
|
121
|
+
(taxesConfiguration?.usePriceWithTaxes
|
|
122
|
+
? listPriceWithTaxes
|
|
123
|
+
: listPrice) * (unitMultiplier ?? 1)
|
|
124
|
+
}
|
|
125
|
+
formatter={useFormattedPrice}
|
|
126
|
+
{...ProductPrice.props}
|
|
127
|
+
/>
|
|
128
|
+
{taxesConfiguration?.usePriceWithTaxes && (
|
|
129
|
+
<UILabel data-fs-product-details-taxes-label>
|
|
130
|
+
{taxesConfiguration?.taxesLabel}
|
|
131
|
+
</UILabel>
|
|
132
|
+
)}
|
|
133
|
+
</div>
|
|
134
|
+
<QuantitySelector.Component
|
|
135
|
+
min={1}
|
|
136
|
+
max={10}
|
|
137
|
+
unitMultiplier={useUnitMultiplier ? unitMultiplier : 1}
|
|
138
|
+
useUnitMultiplier={useUnitMultiplier}
|
|
139
|
+
{...QuantitySelector.props}
|
|
140
|
+
// Dynamic props shouldn't be overridable
|
|
141
|
+
// This decision can be reviewed later if needed
|
|
142
|
+
onChange={setQuantity}
|
|
143
|
+
// TODO: we should get the Toast values from the hCMS
|
|
144
|
+
onValidateBlur={(
|
|
145
|
+
min: number,
|
|
146
|
+
maxValue: number,
|
|
147
|
+
quantity: number
|
|
148
|
+
) => {
|
|
149
|
+
pushToast({
|
|
150
|
+
title: 'Invalid quantity!',
|
|
151
|
+
message: `The quantity you entered is outside the range of ${min} to ${maxValue}. The quantity was set to ${quantity}.`,
|
|
152
|
+
status: 'INFO',
|
|
153
|
+
icon: (
|
|
154
|
+
<UIIcon name="CircleWavyWarning" width={30} height={30} />
|
|
155
|
+
),
|
|
156
|
+
})
|
|
157
|
+
}}
|
|
123
158
|
/>
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
{taxesConfiguration?.taxesLabel}
|
|
127
|
-
</UILabel>
|
|
128
|
-
)}
|
|
129
|
-
</div>
|
|
130
|
-
<QuantitySelector.Component
|
|
131
|
-
min={1}
|
|
132
|
-
max={10}
|
|
133
|
-
unitMultiplier={useUnitMultiplier ? unitMultiplier : 1}
|
|
134
|
-
useUnitMultiplier={useUnitMultiplier}
|
|
135
|
-
{...QuantitySelector.props}
|
|
136
|
-
// Dynamic props shouldn't be overridable
|
|
137
|
-
// This decision can be reviewed later if needed
|
|
138
|
-
onChange={setQuantity}
|
|
139
|
-
// TODO: we should get the Toast values from the hCMS
|
|
140
|
-
onValidateBlur={(
|
|
141
|
-
min: number,
|
|
142
|
-
maxValue: number,
|
|
143
|
-
quantity: number
|
|
144
|
-
) => {
|
|
145
|
-
pushToast({
|
|
146
|
-
title: 'Invalid quantity!',
|
|
147
|
-
message: `The quantity you entered is outside the range of ${min} to ${maxValue}. The quantity was set to ${quantity}.`,
|
|
148
|
-
status: 'INFO',
|
|
149
|
-
icon: (
|
|
150
|
-
<UIIcon name="CircleWavyWarning" width={30} height={30} />
|
|
151
|
-
),
|
|
152
|
-
})
|
|
153
|
-
}}
|
|
154
|
-
/>
|
|
155
|
-
</section>
|
|
156
|
-
)}
|
|
159
|
+
</section>
|
|
160
|
+
))}
|
|
157
161
|
{skuVariants && (
|
|
158
162
|
<Selectors
|
|
159
163
|
slugsMap={skuVariants.slugsMap}
|
|
File without changes
|