@faststore/core 2.0.145-alpha.0 → 2.0.147-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.
- package/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +12 -0
- package/cms/faststore/sections.json +1 -2
- package/package.json +2 -2
- package/src/pages/[...slug].tsx +1 -10
package/.turbo/turbo-build.log
CHANGED
|
@@ -26,7 +26,7 @@ Route (pages) Size First Load JS
|
|
|
26
26
|
┌ ● / 2.97 kB 126 kB
|
|
27
27
|
├ └ css/13a4da555ff5e3be.css 7.19 kB
|
|
28
28
|
├ /_app 0 B 77.9 kB
|
|
29
|
-
├ ● /[...slug]
|
|
29
|
+
├ ● /[...slug] 9.9 kB 133 kB
|
|
30
30
|
├ └ css/2e9de35e0cb999e0.css 7.9 kB
|
|
31
31
|
├ ● /[slug]/p 11.4 kB 134 kB
|
|
32
32
|
├ └ css/7701d01af31e31d1.css 10.9 kB
|
|
@@ -42,7 +42,7 @@ Route (pages) Size First Load JS
|
|
|
42
42
|
├ chunks/framework-dfd14d7ce6600b03.js 45.3 kB
|
|
43
43
|
├ chunks/main-fd466221927468fd.js 23.9 kB
|
|
44
44
|
├ chunks/pages/_app-3e4e7e579cb0681a.js 6.43 kB
|
|
45
|
-
├ chunks/webpack-
|
|
45
|
+
├ chunks/webpack-4e162ac7f81d85d4.js 2.27 kB
|
|
46
46
|
└ css/923c4a942e57bc91.css 2.81 kB
|
|
47
47
|
|
|
48
48
|
λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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.147-alpha.0](https://github.com/vtex/faststore/compare/v2.0.146-alpha.0...v2.0.147-alpha.0) (2023-05-19)
|
|
7
|
+
|
|
8
|
+
### Chores
|
|
9
|
+
|
|
10
|
+
- removes required button props ([#1781](https://github.com/vtex/faststore/issues/1781)) ([b2758ee](https://github.com/vtex/faststore/commit/b2758ee37ae4737b3b59a7b6634baec138fe02f6))
|
|
11
|
+
|
|
12
|
+
## [2.0.146-alpha.0](https://github.com/vtex/faststore/compare/v2.0.145-alpha.0...v2.0.146-alpha.0) (2023-05-19)
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
- Hero from CMS in PLP ([#1767](https://github.com/vtex/faststore/issues/1767)) ([7cff1a5](https://github.com/vtex/faststore/commit/7cff1a55e7ce0c3a7fb1bdcb6c3f88c56fc387e2))
|
|
17
|
+
|
|
6
18
|
## [2.0.145-alpha.0](https://github.com/vtex/faststore/compare/v2.0.144-alpha.0...v2.0.145-alpha.0) (2023-05-18)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @faststore/core
|
|
@@ -648,7 +648,7 @@
|
|
|
648
648
|
"title": "Hero",
|
|
649
649
|
"description": "Add a quick promotion with an image/action pair",
|
|
650
650
|
"type": "object",
|
|
651
|
-
"required": ["title"
|
|
651
|
+
"required": ["title"],
|
|
652
652
|
"properties": {
|
|
653
653
|
"title": {
|
|
654
654
|
"title": "Title",
|
|
@@ -661,7 +661,6 @@
|
|
|
661
661
|
"link": {
|
|
662
662
|
"title": "Call to Action",
|
|
663
663
|
"type": "object",
|
|
664
|
-
"required": ["text", "url"],
|
|
665
664
|
"properties": {
|
|
666
665
|
"text": {
|
|
667
666
|
"type": "string",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.147-alpha.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"browserslist": "supports es6-module and not dead",
|
|
6
6
|
"scripts": {
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"msw": {
|
|
109
109
|
"workerDirectory": "public"
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "fce88b4469b722f4477e1f64f66ecce9c947c28d"
|
|
112
112
|
}
|
package/src/pages/[...slug].tsx
CHANGED
|
@@ -46,6 +46,7 @@ type Props = ServerCollectionPageQueryQuery &
|
|
|
46
46
|
* Do not import or render components from any other folder in here.
|
|
47
47
|
*/
|
|
48
48
|
const COMPONENTS: Record<string, ComponentType<any>> = {
|
|
49
|
+
Hero,
|
|
49
50
|
Breadcrumb,
|
|
50
51
|
...CUSTOM_COMPONENTS,
|
|
51
52
|
}
|
|
@@ -123,16 +124,6 @@ function Page({ sections, globalSections, ...otherProps }: Props) {
|
|
|
123
124
|
components={COMPONENTS}
|
|
124
125
|
/>
|
|
125
126
|
|
|
126
|
-
<Hero
|
|
127
|
-
variant="secondary"
|
|
128
|
-
title={title}
|
|
129
|
-
subtitle={`All the amazing ${title} from the brands we partner with.`}
|
|
130
|
-
image={{
|
|
131
|
-
src: 'https://storeframework.vtexassets.com/arquivos/ids/190897/Photo.jpg',
|
|
132
|
-
alt: 'Quest 2 Controller on a table',
|
|
133
|
-
}}
|
|
134
|
-
/>
|
|
135
|
-
|
|
136
127
|
<ProductGallery title={title} />
|
|
137
128
|
|
|
138
129
|
<ProductShelf
|