@faststore/core 2.2.39 → 2.2.41

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.
@@ -1,6 +1,6 @@
1
1
  $ yarn partytown & yarn generate && next build
2
- $ faststore generate-graphql -c
3
2
  $ partytown copylib ./public/~partytown
3
+ $ faststore generate-graphql -c
4
4
  Partytown lib copied to: /home/runner/work/faststore/faststore/packages/core/public/~partytown
5
5
  success - GraphQL schema, types, and optimizations successfully generated 🎉
6
6
  warn - You have enabled experimental feature (scrollRestoration) in next.config.js.
@@ -27,25 +27,25 @@ info - Finalizing page optimization...
27
27
 
28
28
  Route (pages) Size First Load JS
29
29
  ┌ ● / 3.21 kB 128 kB
30
- ├ /_app 0 B 78.7 kB
31
- ├ ● /[...slug] 4.33 kB 139 kB
30
+ ├ /_app 0 B 83.7 kB
31
+ ├ ● /[...slug] 4.33 kB 140 kB
32
32
  ├ └ css/527e334fa69cf40a.css 1.85 kB
33
- ├ ● /[slug]/p 10.9 kB 135 kB
33
+ ├ ● /[slug]/p 10.9 kB 136 kB
34
34
  ├ └ css/d7bbfbd552f407e9.css 11.3 kB
35
- ├ ○ /404 1.19 kB 111 kB
36
- ├ ● /500 1.21 kB 111 kB
35
+ ├ ○ /404 1.19 kB 112 kB
36
+ ├ ● /500 1.21 kB 112 kB
37
37
  ├ ● /account 669 B 111 kB
38
- ├ λ /api/graphql 0 B 78.7 kB
39
- ├ λ /api/health/live 0 B 78.7 kB
40
- ├ λ /api/health/ready 0 B 78.7 kB
41
- ├ λ /api/preview 0 B 78.7 kB
38
+ ├ λ /api/graphql 0 B 83.7 kB
39
+ ├ λ /api/health/live 0 B 83.7 kB
40
+ ├ λ /api/health/ready 0 B 83.7 kB
41
+ ├ λ /api/preview 0 B 83.7 kB
42
42
  ├ ● /checkout 657 B 111 kB
43
- ├ ● /login 1.14 kB 111 kB
43
+ ├ ● /login 1.14 kB 112 kB
44
44
  └ ● /s 4.57 kB 126 kB
45
- + First Load JS shared by all 81.7 kB
45
+ + First Load JS shared by all 86.8 kB
46
46
  ├ chunks/framework-dfd14d7ce6600b03.js 45.3 kB
47
47
  ├ chunks/main-e4e873ee741162eb.js 24.1 kB
48
- ├ chunks/pages/_app-fea7ed14d8f4d0c6.js 7.02 kB
48
+ ├ chunks/pages/_app-30b9666307e4b3b1.js 12.1 kB
49
49
  ├ chunks/webpack-4ccaf6613cbd7224.js 2.25 kB
50
50
  └ css/5d1f64b61ea581f4.css 3.06 kB
51
51
 
@@ -1,25 +1,25 @@
1
1
  $ tsdx test
2
2
  ts-jest[versions] (WARN) Version 29.1.0 of jest installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=25.0.0 <26.0.0). Please do not report issues in ts-jest if you are using unsupported versions.
3
3
  ts-jest[versions] (WARN) Version 4.9.4 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=3.4.0 <4.0.0). Please do not report issues in ts-jest if you are using unsupported versions.
4
- PASS test/server/index.test.ts (6.103s)
4
+ PASS test/server/index.test.ts (6.082s)
5
5
  FastStore GraphQL Layer
6
6
  @faststore/api
7
7
  ✓ should return a valid GraphQL schema (5ms)
8
- ✓ should return a valid GraphQL schema contain all expected types (11ms)
8
+ ✓ should return a valid GraphQL schema contain all expected types (4ms)
9
9
  ✓ should return a valid GraphQL schema contain all expected queries (1ms)
10
- ✓ should return a valid GraphQL schema contain all expected mutations
10
+ ✓ should return a valid GraphQL schema contain all expected mutations (1ms)
11
11
  VTEX API Extension
12
12
  ✓ getTypeDefsFromFolder function should return an Array (6ms)
13
13
  Third Party API Extension
14
14
  ✓ getTypeDefsFromFolder function should return an Array (5ms)
15
15
  Final Schema after merging
16
- ✓ should return a valid merged GraphQL schema (26ms)
16
+ ✓ should return a valid merged GraphQL schema (27ms)
17
17
  Envelop
18
- ✓ should exist with its plugins (25ms)
19
- ✓ should handle options and execute (340ms)
18
+ ✓ should exist with its plugins (30ms)
19
+ ✓ should handle options and execute (322ms)
20
20
 
21
21
  Test Suites: 1 passed, 1 total
22
22
  Tests: 9 passed, 9 total
23
23
  Snapshots: 0 total
24
- Time: 6.529s
24
+ Time: 6.515s
25
25
  Ran all test suites.
@@ -852,6 +852,12 @@
852
852
  "default": 5,
853
853
  "description": "Total number of items. The quantity may be smaller if the query returns fewer products."
854
854
  },
855
+ "itemsPerPage": {
856
+ "type": "integer",
857
+ "title": "Number of items per page",
858
+ "default": 5,
859
+ "description": "Number of items to display per page in carousel"
860
+ },
855
861
  "after": {
856
862
  "type": "integer",
857
863
  "title": "After",
@@ -947,6 +953,12 @@
947
953
  "default": 5,
948
954
  "description": "Total number of items. The quantity may be smaller if the query returns fewer products."
949
955
  },
956
+ "itemsPerPage": {
957
+ "type": "integer",
958
+ "title": "Number of items per page",
959
+ "default": 5,
960
+ "description": "Number of items to display per page in carousel"
961
+ },
950
962
  "kind": {
951
963
  "title": "Kind",
952
964
  "description": "Change cross selling types",
@@ -91,5 +91,6 @@ module.exports = {
91
91
  experimental: {
92
92
  cypressVersion: 12,
93
93
  enableCypressExtension: false,
94
+ noRobots: false,
94
95
  },
95
96
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/core",
3
- "version": "2.2.39",
3
+ "version": "2.2.41",
4
4
  "license": "MIT",
5
5
  "repository": "vtex/faststore",
6
6
  "browserslist": "supports es6-module and not dead",
@@ -60,7 +60,7 @@
60
60
  "include-media": "^1.4.10",
61
61
  "msw": "^0.43.1",
62
62
  "next": "^12.3.1",
63
- "next-seo": "^5.4.0",
63
+ "next-seo": "^6.4.0",
64
64
  "nextjs-progressbar": "^0.0.14",
65
65
  "postcss": "^8.4.4",
66
66
  "prettier": "^2.2.0",
@@ -119,5 +119,5 @@
119
119
  "msw": {
120
120
  "workerDirectory": "public"
121
121
  },
122
- "gitHead": "6d758aec1c4e6cd3f4bc48a3f69457f9f577d527"
122
+ "gitHead": "b5f186103014bc51b4fbc5e1f3b5ef8b98a33b73"
123
123
  }
@@ -8,11 +8,16 @@ import Section from '../Section'
8
8
 
9
9
  interface Props {
10
10
  numberOfItems: number
11
+ itemsPerPage?: number
11
12
  title: string
12
13
  kind: 'buy' | 'view'
13
14
  }
14
-
15
- const CrossSellingShelf = ({ numberOfItems, title, kind }: Props) => {
15
+ const CrossSellingShelf = ({
16
+ numberOfItems,
17
+ itemsPerPage,
18
+ title,
19
+ kind,
20
+ }: Props) => {
16
21
  const { ref, inView } = useInView()
17
22
  const context = usePDP()
18
23
  const productGroupID = context?.data?.product?.isVariantOf?.productGroupID
@@ -30,6 +35,7 @@ const CrossSellingShelf = ({ numberOfItems, title, kind }: Props) => {
30
35
  <UIProductShelf
31
36
  inView={inView}
32
37
  numberOfItems={numberOfItems}
38
+ itemsPerPage={itemsPerPage}
33
39
  title={title}
34
40
  selectedFacets={selectedFacets}
35
41
  />
@@ -11,6 +11,10 @@ import Layout from 'src/Layout'
11
11
  import AnalyticsHandler from 'src/sdk/analytics'
12
12
  import ErrorBoundary from 'src/sdk/error/ErrorBoundary'
13
13
 
14
+ import storeConfig from '../../faststore.config'
15
+
16
+ import { DefaultSeo } from 'next-seo'
17
+
14
18
  function App({ Component, pageProps }: AppProps) {
15
19
  return (
16
20
  <ErrorBoundary>
@@ -20,6 +24,8 @@ function App({ Component, pageProps }: AppProps) {
20
24
  options={{ showSpinner: false }}
21
25
  />
22
26
 
27
+ <DefaultSeo norobots={storeConfig.experimental.noRobots} />
28
+
23
29
  <AnalyticsHandler />
24
30
 
25
31
  <UIProvider>