@faststore/core 3.1.2 → 3.1.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.
Files changed (42) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +13 -13
  3. package/.next/cache/.tsbuildinfo +1 -1
  4. package/.next/cache/config.json +3 -3
  5. package/.next/cache/eslint/.cache_1gneedd +1 -1
  6. package/.next/cache/webpack/client-production/0.pack +0 -0
  7. package/.next/cache/webpack/client-production/index.pack +0 -0
  8. package/.next/cache/webpack/server-production/0.pack +0 -0
  9. package/.next/cache/webpack/server-production/index.pack +0 -0
  10. package/.next/next-minimal-server.js.nft.json +1 -1
  11. package/.next/next-server.js.nft.json +1 -1
  12. package/.next/prerender-manifest.js +1 -1
  13. package/.next/prerender-manifest.json +1 -1
  14. package/.next/react-loadable-manifest.json +2 -2
  15. package/.next/routes-manifest.json +1 -1
  16. package/.next/server/chunks/5754.js +1 -1
  17. package/.next/server/chunks/8096.js +1 -1
  18. package/.next/server/middleware-build-manifest.js +1 -1
  19. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  20. package/.next/server/pages/api/graphql.js +1 -1
  21. package/.next/server/pages/en-US/404.html +1 -1
  22. package/.next/server/pages/en-US/500.html +1 -1
  23. package/.next/server/pages/en-US/account.html +1 -1
  24. package/.next/server/pages/en-US/checkout.html +1 -1
  25. package/.next/server/pages/en-US/login.html +1 -1
  26. package/.next/server/pages/en-US/s.html +1 -1
  27. package/.next/server/pages/en-US.html +1 -1
  28. package/.next/server/pages-manifest.json +1 -1
  29. package/.next/static/chunks/{1153.d7522522b6c917ed.js → 1153.7f616071da309cf5.js} +1 -1
  30. package/.next/static/chunks/{2032.5cd9c0854edb6b16.js → 2032.83b631dbb251fcc6.js} +1 -1
  31. package/.next/static/chunks/{webpack-5c2cbf0d104592ed.js → webpack-fcd6fda2fae47824.js} +1 -1
  32. package/.next/trace +97 -97
  33. package/.turbo/turbo-build.log +3 -3
  34. package/.turbo/turbo-lint.log +1 -1
  35. package/.turbo/turbo-test.log +5 -5
  36. package/CHANGELOG.md +8 -0
  37. package/README.md +6 -9
  38. package/package.json +9 -9
  39. package/src/components/product/ProductGrid/ProductGrid.tsx +5 -2
  40. package/pull_request_template.md +0 -36
  41. /package/.next/static/{Joon-fzFpeM4APyIWUsdO → PMZY7SK3rlasP5cBTu_aR}/_buildManifest.js +0 -0
  42. /package/.next/static/{Joon-fzFpeM4APyIWUsdO → PMZY7SK3rlasP5cBTu_aR}/_ssgManifest.js +0 -0
@@ -38,8 +38,8 @@ https://nextjs.org/telemetry
38
38
  Collecting page data ...
39
39
  Generating static pages (0/7) ...
40
40
 
41
41
  Generating static pages (1/7)
42
-
43
42
  Generating static pages (3/7)
44
43
  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.
44
+
45
45
  Generating static pages (3/7)
46
46
 
47
47
  Generating static pages (5/7)
48
48
 
49
49
  ✓ Generating static pages (7/7)
50
50
  Finalizing page optimization ...
@@ -68,11 +68,11 @@ Route (pages) Size First Load JS
68
68
  ├ chunks/framework-12a146e94cfcf7c4.js 45.4 kB
69
69
  ├ chunks/main-209ac4974b020af1.js 33.1 kB
70
70
  ├ chunks/pages/_app-15d247b2153b1dc4.js 9.84 kB
71
- ├ chunks/webpack-5c2cbf0d104592ed.js 3.39 kB
71
+ ├ chunks/webpack-fcd6fda2fae47824.js 3.39 kB
72
72
  └ css/ee0556daedda6306.css 3.07 kB
73
73
 
74
74
  λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
75
75
  ○ (Static) automatically rendered as static HTML (uses no initial props)
76
76
  ● (SSG) automatically generated as static HTML + JSON (uses getStaticProps)
77
77
 
78
- Done in 69.45s.
78
+ Done in 70.03s.
@@ -1,4 +1,4 @@
1
1
  yarn run v1.22.22
2
2
  $ next lint
3
3
  ✔ No ESLint warnings or errors
4
- Done in 5.91s.
4
+ Done in 5.93s.
@@ -1,12 +1,12 @@
1
1
  yarn run v1.22.22
2
2
  $ jest
3
- PASS test/utils/multipleTemplates.test.ts (34.643 s)
4
- PASS test/server/cms/index.test.ts (35.284 s)
5
- PASS test/server/index.test.ts (38.49 s)
3
+ PASS test/utils/multipleTemplates.test.ts (35.806 s)
4
+ PASS test/server/cms/index.test.ts (36.749 s)
5
+ PASS test/server/index.test.ts (39.788 s)
6
6
 
7
7
  Test Suites: 3 passed, 3 total
8
8
  Tests: 19 passed, 19 total
9
9
  Snapshots: 0 total
10
- Time: 39.72 s
10
+ Time: 40.944 s
11
11
  Ran all test suites.
12
- Done in 40.95s.
12
+ Done in 43.19s.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
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.1.4](https://github.com/vtex/faststore/compare/v3.1.3...v3.1.4) (2024-12-16)
7
+
8
+ **Note:** Version bump only for package @faststore/core
9
+
10
+ ## 3.1.3 (2024-12-13)
11
+
12
+ **Note:** Version bump only for package @faststore/core
13
+
6
14
  ## [3.1.2](https://github.com/vtex/faststore/compare/v3.1.1...v3.1.2) (2024-12-11)
7
15
 
8
16
  ### Bug Fixes
package/README.md CHANGED
@@ -16,11 +16,11 @@ This starter ships the main FastStore configuration files to get your store up a
16
16
 
17
17
  > PS: you can install dependencies using the package manager of your choosing. In this guide, we'll be using `yarn` as an example.
18
18
 
19
- Install dependencies with yarn
19
+ Install dependencies with yarn
20
20
 
21
- ```shell
22
- yarn
23
- ```
21
+ ```shell
22
+ yarn
23
+ ```
24
24
 
25
25
  2. **Start developing**
26
26
 
@@ -67,7 +67,6 @@ A quick look at the top-level files and directories you'll see in a this NextJS
67
67
  ├── tsconfig.json
68
68
  ├── postcss.config.js
69
69
  ├── postinstall.js
70
- ├── pull_request_template.md
71
70
  ├── README.md
72
71
  ├── stylelint.config.js
73
72
  ├── tsconfig.json
@@ -97,11 +96,9 @@ A quick look at the top-level files and directories you'll see in a this NextJS
97
96
 
98
97
  12. **`lighthouserc.js`**: Configures [Google Lighthouse CI](https://github.com/GoogleChrome/lighthouse-ci). This is where you can turn on/off lighthouse assertions to be used by Lighthouse CI Bot/hook
99
98
 
100
- 13. **`pull_request_template.md`**: Template used when creating your Pull Requests
101
-
102
- 14. **`.prettierignore`**: Ignore listed files when applying prettier rules
99
+ 13. **`.prettierignore`**: Ignore listed files when applying prettier rules
103
100
 
104
- 15. **`.eslintignore`**: Ignore listed files when applying eslint rules
101
+ 14. **`.eslintignore`**: Ignore listed files when applying eslint rules
105
102
 
106
103
  ## 💻 Code Structure
107
104
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/core",
3
- "version": "3.1.2",
3
+ "version": "3.1.4",
4
4
  "license": "MIT",
5
5
  "repository": "vtex/faststore",
6
6
  "browserslist": "supports es6-module and not dead",
@@ -43,12 +43,12 @@
43
43
  "@envelop/graphql-jit": "^8.0.3",
44
44
  "@envelop/parser-cache": "^6.0.2",
45
45
  "@envelop/validation-cache": "^6.0.2",
46
- "@faststore/api": "^3.0.160",
47
- "@faststore/components": "^3.1.0",
48
- "@faststore/graphql-utils": "^3.0.160",
49
- "@faststore/lighthouse": "^3.0.160",
50
- "@faststore/sdk": "^3.0.160",
51
- "@faststore/ui": "^3.1.0",
46
+ "@faststore/api": "^3.1.3",
47
+ "@faststore/components": "^3.1.3",
48
+ "@faststore/graphql-utils": "^3.1.3",
49
+ "@faststore/lighthouse": "^3.1.3",
50
+ "@faststore/sdk": "^3.1.3",
51
+ "@faststore/ui": "^3.1.4",
52
52
  "@graphql-codegen/cli": "5.0.2",
53
53
  "@graphql-codegen/client-preset": "4.2.6",
54
54
  "@graphql-codegen/typescript": "4.0.7",
@@ -87,7 +87,7 @@
87
87
  "devDependencies": {
88
88
  "@cypress/code-coverage": "^3.12.1",
89
89
  "@envelop/testing": "^6.0.0",
90
- "@faststore/eslint-config": "^3.0.160",
90
+ "@faststore/eslint-config": "^3.1.3",
91
91
  "@lhci/cli": "^0.9.0",
92
92
  "@testing-library/cypress": "^10.0.1",
93
93
  "@types/cypress": "^1.1.3",
@@ -128,5 +128,5 @@
128
128
  "node": "18.19.0",
129
129
  "yarn": "1.19.1"
130
130
  },
131
- "gitHead": "d2987773691eb3c5a958d59b769fc6ba2847909a"
131
+ "gitHead": "f3ffdf2b5ac6b7fb3687bfa773d8cb081a954a17"
132
132
  }
@@ -16,6 +16,9 @@ interface Props {
16
16
  * Products listed on the grid.
17
17
  */
18
18
  products: ClientManyProductsQueryQuery['search']['products']['edges']
19
+ /**
20
+ * The page's number that is being rendered.
21
+ */
19
22
  page: number
20
23
  /**
21
24
  * Quantity of products listed.
@@ -29,7 +32,7 @@ interface Props {
29
32
  'showDiscountBadge' | 'bordered' | 'taxesConfiguration' | 'sponsoredLabel'
30
33
  >
31
34
  /**
32
- * Identify the number of firstPage
35
+ * Determine if the current page is the first page.
33
36
  */
34
37
  firstPage?: number
35
38
  }
@@ -60,6 +63,7 @@ function ProductGrid({
60
63
  >
61
64
  <UIProductGrid>
62
65
  {isGridWithViewportObserver ? (
66
+ // In mobile, the ProductGrid initially renders the first 2 items, the rest of the items are rendered when they come into the viewport.
63
67
  <>
64
68
  {products.slice(0, 2).map(({ node: product }, idx) => (
65
69
  <UIProductGridItem key={`${product.id}`}>
@@ -83,7 +87,6 @@ function ProductGrid({
83
87
  />
84
88
  </UIProductGridItem>
85
89
  ))}
86
- <></>
87
90
  <ViewportObserver sectionName="UIProductGrid-out-viewport">
88
91
  {products.slice(2).map(({ node: product }, idx) => (
89
92
  <UIProductGridItem key={`${product.id}`}>
@@ -1,36 +0,0 @@
1
- ## What's the purpose of this pull request?
2
-
3
- <em>Considering the context, what is the problem we'll solve? Where in VTEX's big picture our issue fits in? Write a tweet about the context and the problem itself.</em>
4
-
5
- ## How does it work?
6
-
7
- <em>Tell us the role of the new feature, or component, in its context.</em>
8
-
9
- ## How to test it?
10
-
11
- <em>Describe the steps with bullet points. Is there any external reference, link, or example?</em>
12
-
13
- ## References
14
-
15
- <em>Spread the knowledge: is any content you used to create this PR worth sharing?</em>
16
-
17
- <em>Extra tip: add references to related issues or mention people important to this PR may be good for the documentation and reviewing process</em>
18
-
19
- ## Checklist
20
-
21
- <em>You may erase this after checking them all :wink:</em>
22
-
23
- **PR Title and Commit Messages**
24
- - [ ] PR title and commit messages follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification
25
- - Available prefixes: `feat`, `fix`, `chore`, `docs`, `style`, `refactor`, `perf`, and `test`
26
-
27
- **PR Description**
28
- - [ ] Added a label according to the PR goal - `Breaking change`, `Features`, `Bug fixes`, `Chore`, `Documentation`, `Style changes`, `Refactoring`, `Performance`, and `Test`
29
- - [ ] Added the component, hook, or path name in-between backticks (\`\`) - *if applicable, e.g., `ComponentName` component, `useWindowDimensions` hook*
30
-
31
- **Dependencies**
32
- - [ ] Committed the `yarn.lock` and `bun.lockb` file when there were changes to the packages
33
-
34
- **Documentation**
35
- - [ ] PR description
36
- - [ ] For documentation changes, ping `@carolinamenezes` or `@PedroAntunesCosta` to review and update