@faststore/core 3.88.3 → 3.88.5
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 +1 -1
- package/.next/routes-manifest.json +1 -1
- package/.next/server/chunks/4168.js +1 -1
- package/.next/server/chunks/870.js +1 -1
- package/.next/server/chunks/ButtonSignIn.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/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/chunks/ButtonSignIn.f6e210eaca873e48.js +1 -0
- package/.next/static/chunks/pages/{_app-8b7d8e9c9021b0cf.js → _app-7df8dc37869d32e8.js} +1 -1
- package/.next/static/chunks/{webpack-94be4e4289ec1a5e.js → webpack-c7f9b413b744dbe4.js} +1 -1
- package/.next/trace +137 -137
- package/.turbo/turbo-build.log +10 -10
- package/.turbo/turbo-test.log +5 -5
- package/CHANGELOG.md +10 -0
- package/discovery.config.default.js +1 -1
- package/package.json +2 -2
- package/src/components/ui/Button/ButtonSignIn/ButtonSignIn.tsx +10 -1
- package/.next/static/chunks/ButtonSignIn.308336a54a58f436.js +0 -1
- /package/.next/static/{Yl9s6YO3hFR2wqba4nuSG → iqcrhwU7dkNsCBnGmd1Cf}/_buildManifest.js +0 -0
- /package/.next/static/{Yl9s6YO3hFR2wqba4nuSG → iqcrhwU7dkNsCBnGmd1Cf}/_ssgManifest.js +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
> @faststore/core@3.88.
|
|
2
|
+
> @faststore/core@3.88.4 prebuild /home/runner/work/faststore/faststore/packages/core
|
|
3
3
|
> na run partytown && na run generate
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @faststore/core@3.88.
|
|
6
|
+
> @faststore/core@3.88.4 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.88.
|
|
11
|
+
> @faststore/core@3.88.4 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.88.
|
|
15
|
+
> @faststore/core@3.88.4 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.88.
|
|
20
|
+
> @faststore/core@3.88.4 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.88.
|
|
40
|
+
> @faststore/core@3.88.4 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.88.
|
|
44
|
+
> @faststore/core@3.88.4 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
|
|
@@ -65,8 +65,8 @@ Browserslist: browsers data (caniuse-lite) is 8 months old. Please run:
|
|
|
65
65
|
Collecting page data ...
|
|
66
66
|
Generating static pages (0/6) ...
|
|
67
67
|
|
|
68
68
|
Generating static pages (1/6)
|
|
69
|
-
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.
|
|
70
69
|
|
|
71
70
|
Generating static pages (2/6)
|
|
71
|
+
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.
|
|
72
72
|
|
|
73
73
|
Generating static pages (4/6)
|
|
74
74
|
|
|
75
75
|
✓ Generating static pages (6/6)
|
|
76
76
|
Finalizing page optimization ...
|
|
@@ -108,8 +108,8 @@ Route (pages) Size First Load JS
|
|
|
108
108
|
+ First Load JS shared by all 111 kB
|
|
109
109
|
├ chunks/framework-d514426edf885c68.js 45.4 kB
|
|
110
110
|
├ chunks/main-595f5e3b626b9fff.js 33.2 kB
|
|
111
|
-
├ chunks/pages/_app-
|
|
112
|
-
├ chunks/webpack-
|
|
111
|
+
├ chunks/pages/_app-7df8dc37869d32e8.js 25 kB
|
|
112
|
+
├ chunks/webpack-c7f9b413b744dbe4.js 3.85 kB
|
|
113
113
|
└ css/24a5e8f6808266fe.css 3.53 kB
|
|
114
114
|
|
|
115
115
|
λ (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.88.
|
|
2
|
+
> @faststore/core@3.88.4 test /home/runner/work/faststore/faststore/packages/core
|
|
3
3
|
> jest
|
|
4
4
|
|
|
5
|
-
PASS test/
|
|
6
|
-
PASS test/
|
|
5
|
+
PASS test/server/cms/global.test.ts (27.636 s)
|
|
6
|
+
PASS test/utils/multipleTemplates.test.ts (28.05 s)
|
|
7
7
|
PASS test/server/cms/index.test.ts
|
|
8
|
-
PASS test/server/index.test.ts (31.
|
|
8
|
+
PASS test/server/index.test.ts (31.057 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: 32.
|
|
13
|
+
Time: 32.321 s
|
|
14
14
|
Ran all test suites.
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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.88.5](https://github.com/vtex/faststore/compare/v3.88.4...v3.88.5) (2025-09-22)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- update account URL logic in ButtonSignIn component ([#3049](https://github.com/vtex/faststore/issues/3049)) ([df2a3a5](https://github.com/vtex/faststore/commit/df2a3a55e1960d63351147232009bceea786aca5))
|
|
11
|
+
|
|
12
|
+
## [3.88.4](https://github.com/vtex/faststore/compare/v3.88.3...v3.88.4) (2025-09-22)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @faststore/core
|
|
15
|
+
|
|
6
16
|
## [3.88.3](https://github.com/vtex/faststore/compare/v3.88.2...v3.88.3) (2025-09-22)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @faststore/core
|
|
@@ -145,7 +145,7 @@ module.exports = {
|
|
|
145
145
|
preact: false,
|
|
146
146
|
enableRedirects: false,
|
|
147
147
|
enableSearchSSR: false,
|
|
148
|
-
enableFaststoreMyAccount:
|
|
148
|
+
enableFaststoreMyAccount: false,
|
|
149
149
|
enableVtexAssetsLoader: false,
|
|
150
150
|
graphqlCacheControl: {
|
|
151
151
|
maxAge: 0, // 0 disables cache, 5 * 60 enable cache control maxAge 5 minutes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/core",
|
|
3
|
-
"version": "3.88.
|
|
3
|
+
"version": "3.88.5",
|
|
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": "3c61fabb464adaa1dccdd14f55c3c4c640bce555"
|
|
120
120
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Icon, LinkButton } from '@faststore/ui'
|
|
2
2
|
|
|
3
|
+
import storeConfig from 'discovery.config'
|
|
3
4
|
import { useSession } from 'src/sdk/session'
|
|
4
5
|
|
|
5
6
|
const ButtonSignIn = ({
|
|
@@ -13,10 +14,18 @@ const ButtonSignIn = ({
|
|
|
13
14
|
}) => {
|
|
14
15
|
const { person } = useSession()
|
|
15
16
|
|
|
17
|
+
const getAccountUrl = () => {
|
|
18
|
+
if (!person?.id) return '/login'
|
|
19
|
+
|
|
20
|
+
const enableFaststoreMyAccount =
|
|
21
|
+
storeConfig.experimental?.enableFaststoreMyAccount
|
|
22
|
+
return enableFaststoreMyAccount ? '/pvt/account' : storeConfig.accountUrl
|
|
23
|
+
}
|
|
24
|
+
|
|
16
25
|
return (
|
|
17
26
|
<LinkButton
|
|
18
27
|
data-fs-button-signin-link
|
|
19
|
-
href={
|
|
28
|
+
href={getAccountUrl()}
|
|
20
29
|
className="text__title-mini"
|
|
21
30
|
aria-label={alt}
|
|
22
31
|
variant="tertiary"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5647],{95558:function(t,n,e){var i=e(13922),a=e(2614),r=e(31549);n.Z=function(){return(0,r.jsx)(i.Z,{"data-fs-button-signin-link":!0,href:"/login",className:"text__title-mini",variant:"tertiary",icon:(0,r.jsx)(a.Z,{name:"User",width:18,height:18,weight:"bold"}),iconPosition:"left",children:(0,r.jsx)("span",{children:"Sign In"})})}},65107:function(t,n,e){e.r(n),e.d(n,{ButtonSignIn:function(){return ButtonSignIn_ButtonSignIn},ButtonSignInFallback:function(){return o.Z}});var i=e(13922),a=e(2614),r=e(97358),u=e(31549),ButtonSignIn_ButtonSignIn=t=>{var{label:n,myAccountLabel:e,icon:{alt:o,icon:l}}=t,{person:s}=(0,r.kP)();return(0,u.jsx)(i.Z,{"data-fs-button-signin-link":!0,href:null!=s&&s.id?"/pvt/account":"/login",className:"text__title-mini","aria-label":o,variant:"tertiary",icon:(0,u.jsx)(a.Z,{name:l,width:18,height:18,weight:"bold"}),iconPosition:"left",children:null!=s&&s.id?e:n})},o=e(95558)},13922:function(t,n,e){var i=e(44194);n.Z=function({icon:t,inverse:n,children:e,disabled:a,iconPosition:r,size:u="regular",variant:o="primary",testId:l="fs-link-button",...s}){let c=(0,i.useRef)(null);return i.createElement("a",{ref:c,"data-fs-button":!0,"data-fs-link-button":!0,"data-fs-button-size":u,"data-fs-button-variant":o,"data-fs-button-inverse":n,"data-fs-button-disabled":a,onFocus:function(t){t.preventDefault(),a&&c.current?.blur()},"data-testid":l,...s},i.createElement("div",{"data-fs-button-wrapper":!0},!!t&&"left"===r&&i.createElement("span",{"data-fs-button-icon":!0},t),e&&i.createElement("span",null,e),!!t&&"right"===r&&i.createElement("span",{"data-fs-button-icon":!0},t)))}}}]);
|
|
File without changes
|
|
File without changes
|