@faststore/core 2.0.96-alpha.0 → 2.0.98-alpha.0
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
|
@@ -31,17 +31,17 @@ Route (pages) Size First Load JS
|
|
|
31
31
|
├ └ css/4899c3cc356704f9.css 2.82 kB
|
|
32
32
|
├ ○ /404 431 B 110 kB
|
|
33
33
|
├ ○ /500 439 B 110 kB
|
|
34
|
-
├ ○ /account
|
|
34
|
+
├ ○ /account 383 B 110 kB
|
|
35
35
|
├ λ /api/graphql 0 B 105 kB
|
|
36
36
|
├ λ /api/preview 0 B 105 kB
|
|
37
37
|
├ ○ /checkout 371 B 110 kB
|
|
38
|
-
├ ○ /login
|
|
38
|
+
├ ○ /login 385 B 110 kB
|
|
39
39
|
└ ○ /s 896 B 122 kB
|
|
40
40
|
└ css/db63ea05e98cb7e8.css 1.63 kB
|
|
41
41
|
+ First Load JS shared by all 127 kB
|
|
42
42
|
├ chunks/framework-dfd14d7ce6600b03.js 45.3 kB
|
|
43
43
|
├ chunks/main-9746772201fe3ac1.js 23.9 kB
|
|
44
|
-
├ chunks/pages/_app-
|
|
44
|
+
├ chunks/pages/_app-c30dfc55a86c1363.js 33.4 kB
|
|
45
45
|
├ chunks/webpack-f1a1b4bcfa6b66bb.js 2.18 kB
|
|
46
46
|
└ css/5f1958d8dece68c7.css 22 kB
|
|
47
47
|
|
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
|
+
## [2.0.98-alpha.0](https://github.com/vtex/faststore/compare/v2.0.97-alpha.0...v2.0.98-alpha.0) (2023-04-03)
|
|
7
|
+
|
|
8
|
+
### Chores
|
|
9
|
+
|
|
10
|
+
- updates api version in core package ([#1702](https://github.com/vtex/faststore/issues/1702)) ([d2bbfae](https://github.com/vtex/faststore/commit/d2bbfae551417cd6ac525fa2fe8768956254b6ec))
|
|
11
|
+
|
|
12
|
+
## [2.0.97-alpha.0](https://github.com/vtex/faststore/compare/v2.0.96-alpha.0...v2.0.97-alpha.0) (2023-04-03)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @faststore/core
|
|
15
|
+
|
|
6
16
|
## [2.0.96-alpha.0](https://github.com/vtex/faststore/compare/v2.0.95-alpha.0...v2.0.96-alpha.0) (2023-04-03)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @faststore/core
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.98-alpha.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"browserslist": "supports es6-module and not dead",
|
|
6
6
|
"scripts": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@envelop/graphql-jit": "^1.1.1",
|
|
30
30
|
"@envelop/parser-cache": "^2.2.0",
|
|
31
31
|
"@envelop/validation-cache": "^2.2.0",
|
|
32
|
-
"@faststore/api": "^2.0.
|
|
32
|
+
"@faststore/api": "^2.0.97-alpha.0",
|
|
33
33
|
"@faststore/components": "^2.0.96-alpha.0",
|
|
34
34
|
"@faststore/graphql-utils": "^2.0.3-alpha.0",
|
|
35
35
|
"@faststore/sdk": "^2.0.3-alpha.0",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"msw": {
|
|
109
109
|
"workerDirectory": "public"
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "cf265c588b39b94d06f9d40be7d94b409c9c9553"
|
|
112
112
|
}
|
|
@@ -3,14 +3,18 @@ import { LinkButton } from '@faststore/ui'
|
|
|
3
3
|
import styles from 'src/components/ui/Button/button.module.scss'
|
|
4
4
|
import Icon from 'src/components/ui/Icon'
|
|
5
5
|
import { useSession } from 'src/sdk/session'
|
|
6
|
+
import { useCart } from '../../../../sdk/cart/index'
|
|
6
7
|
|
|
7
8
|
const ButtonSignIn = () => {
|
|
9
|
+
const { id } = useCart()
|
|
8
10
|
const { person } = useSession()
|
|
9
11
|
|
|
10
12
|
return (
|
|
11
13
|
<LinkButton
|
|
12
14
|
data-fs-button-signin-link
|
|
13
|
-
href={
|
|
15
|
+
href={
|
|
16
|
+
person?.id ? `/account?orderFormId=${id}` : `/login?orderFormId=${id}`
|
|
17
|
+
}
|
|
14
18
|
className={`${styles.fsButton} text__title-mini`}
|
|
15
19
|
variant="tertiary"
|
|
16
20
|
icon={<Icon name="User" width={18} height={18} weight="bold" />}
|
package/src/pages/account.tsx
CHANGED
package/src/pages/login.tsx
CHANGED