@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.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +22 -22
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/config.json +3 -3
- package/.next/cache/eslint/.cache_1gneedd +1 -1
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/next-minimal-server.js.nft.json +1 -1
- package/.next/next-server.js.nft.json +1 -1
- package/.next/prerender-manifest.js +1 -1
- package/.next/prerender-manifest.json +1 -1
- package/.next/routes-manifest.json +1 -1
- package/.next/server/chunks/24.js +1 -1
- package/.next/server/chunks/350.js +1 -1
- package/.next/server/chunks/485.js +1 -1
- package/.next/server/chunks/498.js +1 -1
- package/.next/server/chunks/646.js +6 -2
- package/.next/server/chunks/82.js +2 -2
- package/.next/server/chunks/933.js +1 -1
- package/.next/server/chunks/997.js +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/pages/[...slug].js +1 -1
- package/.next/server/pages/[slug]/p.js +1 -1
- package/.next/server/pages/_error.js +1 -1
- package/.next/server/pages/api/graphql.js +1 -1
- package/.next/server/pages/en-US/404.html +2 -2
- package/.next/server/pages/en-US/404.json +1 -1
- package/.next/server/pages/en-US/500.html +2 -2
- package/.next/server/pages/en-US/500.json +1 -1
- package/.next/server/pages/en-US/account.html +2 -2
- package/.next/server/pages/en-US/account.json +1 -1
- package/.next/server/pages/en-US/checkout.html +2 -2
- package/.next/server/pages/en-US/checkout.json +1 -1
- package/.next/server/pages/en-US/login.html +2 -2
- package/.next/server/pages/en-US/login.json +1 -1
- package/.next/server/pages/en-US/s.html +2 -2
- package/.next/server/pages/en-US/s.json +1 -1
- package/.next/server/pages/en-US.html +3 -3
- package/.next/server/pages/en-US.json +1 -1
- package/.next/server/pages/index.js +1 -1
- package/.next/server/pages/s.js +1 -1
- package/.next/server/pages-manifest.json +1 -1
- package/.next/static/{Phsiu2MTzhG7Yo-7F06VY → ZcioUQf53yK_7-v4Io2W-}/_buildManifest.js +1 -1
- package/.next/static/chunks/629-0cb613f9bcc4f486.js +1 -0
- package/.next/static/chunks/661-64696c6b69aad0cd.js +1 -0
- package/.next/static/chunks/968-3ed71db484b2d4e6.js +1 -0
- package/.next/static/chunks/pages/[...slug]-dd7f247ab9486429.js +1 -0
- package/.next/static/chunks/pages/[slug]/p-e7077156f76f4cef.js +1 -0
- package/.next/static/chunks/pages/{_app-5d553d859f2f0ef5.js → _app-c735dc8671b02901.js} +1 -1
- package/.next/static/chunks/pages/index-d7ef84d142b53200.js +1 -0
- package/.next/static/chunks/pages/s-5f2e23d107382a98.js +1 -0
- package/.next/trace +95 -95
- package/.turbo/turbo-build.log +5 -5
- package/.turbo/turbo-test.log +4 -4
- package/@generated/gql.ts +2 -2
- package/@generated/graphql.ts +25 -2
- package/@generated/persisted-documents.json +2 -2
- package/@generated/schema.graphql +16 -0
- package/faststore.config.default.js +1 -0
- package/package.json +9 -9
- package/src/components/common/Alert/Alert.tsx +1 -3
- package/src/components/common/Footer/Footer.tsx +1 -3
- package/src/components/navigation/Navbar/Navbar.tsx +1 -4
- package/src/components/navigation/NavbarLinks/NavbarLinks.tsx +1 -2
- package/src/components/navigation/NavbarSlider/NavbarSlider.tsx +1 -2
- package/src/components/product/ProductCard/ProductCard.tsx +15 -0
- package/src/components/sections/ProductGallery/ProductGallery.tsx +2 -7
- package/src/pages/[...slug].tsx +1 -3
- package/src/pages/[slug]/p.tsx +1 -4
- package/src/pages/_document.tsx +9 -0
- package/src/pages/index.tsx +1 -4
- package/src/pages/s.tsx +1 -4
- package/src/server/options.ts +1 -0
- package/.next/static/chunks/629-2035a739f8a77882.js +0 -1
- package/.next/static/chunks/661-37d224da8cd18a0d.js +0 -1
- package/.next/static/chunks/968-d09ce43a57f43460.js +0 -1
- package/.next/static/chunks/pages/[...slug]-71b879bc2fe42f9c.js +0 -1
- package/.next/static/chunks/pages/[slug]/p-e34db2401c5476f8.js +0 -1
- package/.next/static/chunks/pages/index-31ed9b1d5e358000.js +0 -1
- package/.next/static/chunks/pages/s-42e7637b150b1768.js +0 -1
- package/cypress/integration/performance.test.js +0 -65
- package/src/sdk/tests/mark.tsx +0 -10
- /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
|
-
})
|
package/src/sdk/tests/mark.tsx
DELETED
|
@@ -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
|
-
}
|
|
File without changes
|