@faststore/core 2.0.120-alpha.0 → 2.0.121-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.
@@ -41,22 +41,22 @@ Route (pages) Size First Load JS
41
41
  ├ /_app 0 B 77.8 kB
42
42
  ├ ● /[...slug] 2.29 kB 130 kB
43
43
  ├ └ css/c302d203b46499ff.css 2.52 kB
44
- ├ ● /[slug]/p 12.3 kB 130 kB
44
+ ├ ● /[slug]/p 12.3 kB 131 kB
45
45
  ├ └ css/384a7a015bca80d6.css 3.01 kB
46
46
  ├ ○ /404 950 B 110 kB
47
- ├ ● /500 718 B 109 kB
48
- ├ ● /account 670 B 109 kB
47
+ ├ ● /500 718 B 110 kB
48
+ ├ ● /account 671 B 110 kB
49
49
  ├ λ /api/graphql 0 B 77.8 kB
50
50
  ├ λ /api/preview 0 B 77.8 kB
51
51
  ├ ● /checkout 659 B 109 kB
52
- ├ ● /login 870 B 110 kB
52
+ ├ ● /login 869 B 110 kB
53
53
  └ ● /s 2.77 kB 121 kB
54
54
  └ css/57c1885d16efdc73.css 2.48 kB
55
55
  + First Load JS shared by all 100 kB
56
56
  ├ chunks/framework-dfd14d7ce6600b03.js 45.3 kB
57
- ├ chunks/main-bf297268d707456d.js 23.9 kB
58
- ├ chunks/pages/_app-3cf84159cce4c8ef.js 6.41 kB
59
- ├ chunks/webpack-e105e23dccb05796.js 2.2 kB
57
+ ├ chunks/main-9746772201fe3ac1.js 23.9 kB
58
+ ├ chunks/pages/_app-c3a2ae2beed7c7e5.js 6.43 kB
59
+ ├ chunks/webpack-4b9a36060b4c8160.js 2.22 kB
60
60
  └ css/4e34a56a38b0d9d5.css 22.5 kB
61
61
 
62
62
  λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
@@ -91,6 +91,13 @@ export type IStoreCurrency = {
91
91
  symbol: Scalars['String']
92
92
  }
93
93
 
94
+ export type IStoreGeoCoordinates = {
95
+ /** The latitude of the geographic coordinates. */
96
+ latitude: Scalars['Float']
97
+ /** The longitude of the geographic coordinates. */
98
+ longitude: Scalars['Float']
99
+ }
100
+
94
101
  /** Image input. */
95
102
  export type IStoreImage = {
96
103
  /** Alias for the input image. */
@@ -180,9 +187,11 @@ export type IStoreSession = {
180
187
  country: Scalars['String']
181
188
  /** Session input currency. */
182
189
  currency: IStoreCurrency
190
+ /** Session input geoCoordinates. */
191
+ geoCoordinates: InputMaybe<IStoreGeoCoordinates>
183
192
  /** Session input locale. */
184
193
  locale: Scalars['String']
185
- /** Session input postal code. */
194
+ /** Session input person. */
186
195
  person: InputMaybe<IStorePerson>
187
196
  /** Session input postal code. */
188
197
  postalCode: InputMaybe<Scalars['String']>
@@ -628,6 +637,14 @@ export type StoreFacetValueRange = {
628
637
  selected: Scalars['Float']
629
638
  }
630
639
 
640
+ /** Geographic coordinates information. */
641
+ export type StoreGeoCoordinates = {
642
+ /** The latitude of the geographic coordinates. */
643
+ latitude: Scalars['Float']
644
+ /** The longitude of the geographic coordinates. */
645
+ longitude: Scalars['Float']
646
+ }
647
+
631
648
  /** Image. */
632
649
  export type StoreImage = {
633
650
  /** Alias for the image. */
@@ -840,9 +857,11 @@ export type StoreSession = {
840
857
  country: Scalars['String']
841
858
  /** Session currency. */
842
859
  currency: StoreCurrency
860
+ /** Session input geoCoordinates. */
861
+ geoCoordinates: Maybe<StoreGeoCoordinates>
843
862
  /** Session locale. */
844
863
  locale: Scalars['String']
845
- /** Session postal code. */
864
+ /** Session input person. */
846
865
  person: Maybe<StorePerson>
847
866
  /** Session postal code. */
848
867
  postalCode: Maybe<Scalars['String']>
@@ -1304,6 +1323,7 @@ export type ValidateSessionMutation = {
1304
1323
  channel: string | null
1305
1324
  country: string
1306
1325
  postalCode: string | null
1326
+ geoCoordinates: { latitude: number; longitude: number } | null
1307
1327
  currency: { code: string; symbol: string }
1308
1328
  person: {
1309
1329
  id: string
@@ -8,6 +8,6 @@
8
8
  "ProductsQuery": "query ProductsQuery($first: Int!, $after: String, $sort: StoreSort!, $term: String!, $selectedFacets: [IStoreSelectedFacet!]!) {\n search(\n first: $first\n after: $after\n sort: $sort\n term: $term\n selectedFacets: $selectedFacets\n ) {\n products {\n pageInfo {\n totalCount\n }\n edges {\n node {\n id: productID\n slug\n sku\n brand {\n brandName: name\n name\n }\n name\n gtin\n isVariantOf {\n productGroupID\n name\n }\n image {\n url\n alternateName\n }\n offers {\n lowPrice\n offers {\n availability\n price\n listPrice\n quantity\n seller {\n identifier\n }\n }\n }\n }\n }\n }\n }\n}\n",
9
9
  "SearchSuggestionsQuery": "query SearchSuggestionsQuery($term: String!, $selectedFacets: [IStoreSelectedFacet!]) {\n search(first: 5, term: $term, selectedFacets: $selectedFacets) {\n suggestions {\n terms {\n value\n }\n products {\n id: productID\n slug\n sku\n brand {\n brandName: name\n name\n }\n name\n gtin\n isVariantOf {\n productGroupID\n name\n }\n image {\n url\n alternateName\n }\n offers {\n lowPrice\n offers {\n availability\n price\n listPrice\n quantity\n seller {\n identifier\n }\n }\n }\n }\n }\n }\n}\n",
10
10
  "TopSearchSuggestionsQuery": "query TopSearchSuggestionsQuery($term: String!, $selectedFacets: [IStoreSelectedFacet!]) {\n search(first: 5, term: $term, selectedFacets: $selectedFacets) {\n suggestions {\n terms {\n value\n }\n }\n }\n}\n",
11
- "ValidateSession": "mutation ValidateSession($session: IStoreSession!, $search: String!) {\n validateSession(session: $session, search: $search) {\n locale\n channel\n country\n postalCode\n currency {\n code\n symbol\n }\n person {\n id\n email\n givenName\n familyName\n }\n }\n}\n",
11
+ "ValidateSession": "mutation ValidateSession($session: IStoreSession!, $search: String!) {\n validateSession(session: $session, search: $search) {\n locale\n channel\n country\n postalCode\n geoCoordinates {\n latitude\n longitude\n }\n currency {\n code\n symbol\n }\n person {\n id\n email\n givenName\n familyName\n }\n }\n}\n",
12
12
  "ShippingSimulationQuery": "query ShippingSimulationQuery($postalCode: String!, $country: String!, $items: [IShippingItem!]!) {\n shipping(items: $items, postalCode: $postalCode, country: $country) {\n logisticsInfo {\n slas {\n carrier\n price\n shippingEstimate\n localizedEstimates\n }\n }\n address {\n city\n neighborhood\n }\n }\n}\n"
13
13
  }
package/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
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.121-alpha.0](https://github.com/vtex/faststore/compare/v2.0.120-alpha.0...v2.0.121-alpha.0) (2023-04-27)
7
+
8
+ **Note:** Version bump only for package @faststore/core
9
+
6
10
  ## [2.0.120-alpha.0](https://github.com/vtex/faststore/compare/v2.0.119-alpha.0...v2.0.120-alpha.0) (2023-04-27)
7
11
 
8
12
  ### Features
@@ -30,6 +30,7 @@ module.exports = {
30
30
  channel: '{"salesChannel":"1","regionId":""}',
31
31
  country: 'USA',
32
32
  postalCode: null,
33
+ geoCoordinates: null,
33
34
  person: null,
34
35
  },
35
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/core",
3
- "version": "2.0.120-alpha.0",
3
+ "version": "2.0.121-alpha.0",
4
4
  "license": "MIT",
5
5
  "browserslist": "supports es6-module and not dead",
6
6
  "scripts": {
@@ -32,7 +32,7 @@
32
32
  "@faststore/api": "^2.0.118-alpha.0",
33
33
  "@faststore/components": "^2.0.117-alpha.0",
34
34
  "@faststore/graphql-utils": "^2.0.3-alpha.0",
35
- "@faststore/sdk": "^2.0.3-alpha.0",
35
+ "@faststore/sdk": "^2.0.118-alpha.0",
36
36
  "@faststore/ui": "^2.0.117-alpha.0",
37
37
  "@types/react": "^18.0.14",
38
38
  "@vtex/client-cms": "^0.2.12",
@@ -108,5 +108,5 @@
108
108
  "msw": {
109
109
  "workerDirectory": "public"
110
110
  },
111
- "gitHead": "7c7da070b4a307b9c158fef70b22234831a97756"
111
+ "gitHead": "2571f06b295c21d4046b26760852d7e87057d5e7"
112
112
  }
@@ -19,6 +19,10 @@ export const mutation = gql`
19
19
  channel
20
20
  country
21
21
  postalCode
22
+ geoCoordinates {
23
+ latitude
24
+ longitude
25
+ }
22
26
  currency {
23
27
  code
24
28
  symbol