@faststore/core 3.0.115 → 3.0.117

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 (85) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +22 -22
  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/routes-manifest.json +1 -1
  15. package/.next/server/chunks/24.js +1 -1
  16. package/.next/server/chunks/350.js +1 -1
  17. package/.next/server/chunks/485.js +1 -1
  18. package/.next/server/chunks/498.js +1 -1
  19. package/.next/server/chunks/646.js +6 -2
  20. package/.next/server/chunks/82.js +2 -2
  21. package/.next/server/chunks/933.js +1 -1
  22. package/.next/server/chunks/997.js +1 -1
  23. package/.next/server/middleware-build-manifest.js +1 -1
  24. package/.next/server/pages/[...slug].js +1 -1
  25. package/.next/server/pages/[slug]/p.js +1 -1
  26. package/.next/server/pages/_error.js +1 -1
  27. package/.next/server/pages/api/graphql.js +1 -1
  28. package/.next/server/pages/en-US/404.html +2 -2
  29. package/.next/server/pages/en-US/404.json +1 -1
  30. package/.next/server/pages/en-US/500.html +2 -2
  31. package/.next/server/pages/en-US/500.json +1 -1
  32. package/.next/server/pages/en-US/account.html +2 -2
  33. package/.next/server/pages/en-US/account.json +1 -1
  34. package/.next/server/pages/en-US/checkout.html +2 -2
  35. package/.next/server/pages/en-US/checkout.json +1 -1
  36. package/.next/server/pages/en-US/login.html +2 -2
  37. package/.next/server/pages/en-US/login.json +1 -1
  38. package/.next/server/pages/en-US/s.html +2 -2
  39. package/.next/server/pages/en-US/s.json +1 -1
  40. package/.next/server/pages/en-US.html +3 -3
  41. package/.next/server/pages/en-US.json +1 -1
  42. package/.next/server/pages/index.js +1 -1
  43. package/.next/server/pages/s.js +1 -1
  44. package/.next/server/pages-manifest.json +1 -1
  45. package/.next/static/{Phsiu2MTzhG7Yo-7F06VY → ZcioUQf53yK_7-v4Io2W-}/_buildManifest.js +1 -1
  46. package/.next/static/chunks/629-0cb613f9bcc4f486.js +1 -0
  47. package/.next/static/chunks/661-64696c6b69aad0cd.js +1 -0
  48. package/.next/static/chunks/968-3ed71db484b2d4e6.js +1 -0
  49. package/.next/static/chunks/pages/[...slug]-dd7f247ab9486429.js +1 -0
  50. package/.next/static/chunks/pages/[slug]/p-e7077156f76f4cef.js +1 -0
  51. package/.next/static/chunks/pages/{_app-5d553d859f2f0ef5.js → _app-c735dc8671b02901.js} +1 -1
  52. package/.next/static/chunks/pages/index-d7ef84d142b53200.js +1 -0
  53. package/.next/static/chunks/pages/s-5f2e23d107382a98.js +1 -0
  54. package/.next/trace +95 -95
  55. package/.turbo/turbo-build.log +5 -5
  56. package/.turbo/turbo-test.log +4 -4
  57. package/@generated/gql.ts +2 -2
  58. package/@generated/graphql.ts +25 -2
  59. package/@generated/persisted-documents.json +2 -2
  60. package/@generated/schema.graphql +16 -0
  61. package/faststore.config.default.js +1 -0
  62. package/package.json +9 -9
  63. package/src/components/common/Alert/Alert.tsx +1 -3
  64. package/src/components/common/Footer/Footer.tsx +1 -3
  65. package/src/components/navigation/Navbar/Navbar.tsx +1 -4
  66. package/src/components/navigation/NavbarLinks/NavbarLinks.tsx +1 -2
  67. package/src/components/navigation/NavbarSlider/NavbarSlider.tsx +1 -2
  68. package/src/components/product/ProductCard/ProductCard.tsx +15 -0
  69. package/src/components/sections/ProductGallery/ProductGallery.tsx +2 -7
  70. package/src/pages/[...slug].tsx +1 -3
  71. package/src/pages/[slug]/p.tsx +1 -4
  72. package/src/pages/_document.tsx +9 -0
  73. package/src/pages/index.tsx +1 -4
  74. package/src/pages/s.tsx +1 -4
  75. package/src/server/options.ts +1 -0
  76. package/.next/static/chunks/629-2035a739f8a77882.js +0 -1
  77. package/.next/static/chunks/661-37d224da8cd18a0d.js +0 -1
  78. package/.next/static/chunks/968-d09ce43a57f43460.js +0 -1
  79. package/.next/static/chunks/pages/[...slug]-71b879bc2fe42f9c.js +0 -1
  80. package/.next/static/chunks/pages/[slug]/p-e34db2401c5476f8.js +0 -1
  81. package/.next/static/chunks/pages/index-31ed9b1d5e358000.js +0 -1
  82. package/.next/static/chunks/pages/s-42e7637b150b1768.js +0 -1
  83. package/cypress/integration/performance.test.js +0 -65
  84. package/src/sdk/tests/mark.tsx +0 -10
  85. /package/.next/static/{Phsiu2MTzhG7Yo-7F06VY → ZcioUQf53yK_7-v4Io2W-}/_ssgManifest.js +0 -0
@@ -1,65 +0,0 @@
1
- // eslint-disable-next-line spaced-comment
2
- /// <reference types="cypress" />
3
- /**
4
- * Cypress tests for testing the Cart module
5
- */
6
-
7
- import { options } from '../global'
8
- import { cypress } from '../../faststore.config'
9
-
10
- const { pages } = cypress
11
-
12
- const paths = [pages.home, pages.pdp, pages.collection]
13
-
14
- const testMark = (path, mark) => {
15
- cy.visit(path, options)
16
- cy.waitForHydration()
17
-
18
- cy.window().should((win) => {
19
- expect(win.performance.getEntriesByName(mark)).to.have.length(1)
20
- })
21
- }
22
-
23
- describe('React rendering performance', () => {
24
- beforeEach(() => {
25
- cy.clearIDB()
26
- })
27
-
28
- it.skip('Renders Navbar component once', () => {
29
- const mark = 'Navbar'
30
-
31
- for (const path of paths) {
32
- testMark(path, mark)
33
- }
34
- })
35
-
36
- it.skip('Renders Footer component once', () => {
37
- const mark = 'Footer'
38
-
39
- for (const path of paths) {
40
- testMark(path, mark)
41
- }
42
- })
43
-
44
- it.skip('Renders Alert component once', () => {
45
- const mark = 'Alert'
46
-
47
- for (const path of paths) {
48
- testMark(path, mark)
49
- }
50
- })
51
-
52
- it.skip('Renders Page component once', () => {
53
- const mark = 'Page'
54
-
55
- for (const path of paths) {
56
- testMark(path, mark)
57
- }
58
- })
59
-
60
- it.skip('Renders ProductGallery component once on PLP', () => {
61
- const mark = 'ProductGallery'
62
-
63
- testMark(pages.collection, mark)
64
- })
65
- })
@@ -1,10 +0,0 @@
1
- import type { ComponentType } from 'react'
2
-
3
- export const mark = <P,>(Component: ComponentType<P>): ComponentType<P> =>
4
- function marked(props: P) {
5
- if (typeof window !== 'undefined') {
6
- performance.mark(Component.displayName ?? Component.name ?? 'unknown')
7
- }
8
-
9
- return <Component {...props} />
10
- }