@akinon/projectzero 1.43.0-rc.12 → 1.43.0-rc.13
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/CHANGELOG.md +2 -0
- package/app-template/CHANGELOG.md +23 -0
- package/app-template/package.json +15 -15
- package/app-template/src/app/[commerce]/[locale]/[currency]/category/[pk]/page.tsx +5 -2
- package/app-template/src/views/breadcrumb.tsx +4 -1
- package/app-template/src/views/category/layout.tsx +5 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# projectzeronext
|
|
2
2
|
|
|
3
|
+
## 1.43.0-rc.13
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 9e25a64: ZERO-2835: Update category page layout with breadcrumb
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [9e25a64]
|
|
12
|
+
- @akinon/next@1.43.0-rc.13
|
|
13
|
+
- @akinon/pz-akifast@1.43.0-rc.13
|
|
14
|
+
- @akinon/pz-b2b@1.43.0-rc.13
|
|
15
|
+
- @akinon/pz-basket-gift-pack@1.43.0-rc.13
|
|
16
|
+
- @akinon/pz-bkm@1.43.0-rc.13
|
|
17
|
+
- @akinon/pz-checkout-gift-pack@1.43.0-rc.13
|
|
18
|
+
- @akinon/pz-click-collect@1.43.0-rc.13
|
|
19
|
+
- @akinon/pz-credit-payment@1.43.0-rc.13
|
|
20
|
+
- @akinon/pz-gpay@1.43.0-rc.13
|
|
21
|
+
- @akinon/pz-masterpass@1.43.0-rc.13
|
|
22
|
+
- @akinon/pz-one-click-checkout@1.43.0-rc.13
|
|
23
|
+
- @akinon/pz-otp@1.43.0-rc.13
|
|
24
|
+
- @akinon/pz-pay-on-delivery@1.43.0-rc.13
|
|
25
|
+
|
|
3
26
|
## 1.43.0-rc.12
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "projectzeronext",
|
|
3
|
-
"version": "1.43.0-rc.
|
|
3
|
+
"version": "1.43.0-rc.13",
|
|
4
4
|
"private": true,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -22,19 +22,19 @@
|
|
|
22
22
|
"prestart": "pz-prestart"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@akinon/next": "1.43.0-rc.
|
|
26
|
-
"@akinon/pz-akifast": "1.43.0-rc.
|
|
27
|
-
"@akinon/pz-b2b": "1.43.0-rc.
|
|
28
|
-
"@akinon/pz-basket-gift-pack": "1.43.0-rc.
|
|
29
|
-
"@akinon/pz-bkm": "1.43.0-rc.
|
|
30
|
-
"@akinon/pz-checkout-gift-pack": "1.43.0-rc.
|
|
31
|
-
"@akinon/pz-click-collect": "1.43.0-rc.
|
|
32
|
-
"@akinon/pz-credit-payment": "1.43.0-rc.
|
|
33
|
-
"@akinon/pz-gpay": "1.43.0-rc.
|
|
34
|
-
"@akinon/pz-masterpass": "1.43.0-rc.
|
|
35
|
-
"@akinon/pz-one-click-checkout": "1.43.0-rc.
|
|
36
|
-
"@akinon/pz-otp": "1.43.0-rc.
|
|
37
|
-
"@akinon/pz-pay-on-delivery": "1.43.0-rc.
|
|
25
|
+
"@akinon/next": "1.43.0-rc.13",
|
|
26
|
+
"@akinon/pz-akifast": "1.43.0-rc.13",
|
|
27
|
+
"@akinon/pz-b2b": "1.43.0-rc.13",
|
|
28
|
+
"@akinon/pz-basket-gift-pack": "1.43.0-rc.13",
|
|
29
|
+
"@akinon/pz-bkm": "1.43.0-rc.13",
|
|
30
|
+
"@akinon/pz-checkout-gift-pack": "1.43.0-rc.13",
|
|
31
|
+
"@akinon/pz-click-collect": "1.43.0-rc.13",
|
|
32
|
+
"@akinon/pz-credit-payment": "1.43.0-rc.13",
|
|
33
|
+
"@akinon/pz-gpay": "1.43.0-rc.13",
|
|
34
|
+
"@akinon/pz-masterpass": "1.43.0-rc.13",
|
|
35
|
+
"@akinon/pz-one-click-checkout": "1.43.0-rc.13",
|
|
36
|
+
"@akinon/pz-otp": "1.43.0-rc.13",
|
|
37
|
+
"@akinon/pz-pay-on-delivery": "1.43.0-rc.13",
|
|
38
38
|
"@hookform/resolvers": "2.9.0",
|
|
39
39
|
"@next/third-parties": "14.1.0",
|
|
40
40
|
"@react-google-maps/api": "2.17.1",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"yup": "0.32.11"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@akinon/eslint-plugin-projectzero": "1.43.0-rc.
|
|
61
|
+
"@akinon/eslint-plugin-projectzero": "1.43.0-rc.13",
|
|
62
62
|
"@semantic-release/changelog": "6.0.2",
|
|
63
63
|
"@semantic-release/exec": "6.0.3",
|
|
64
64
|
"@semantic-release/git": "10.0.1",
|
|
@@ -4,11 +4,14 @@ import { PageProps } from '@akinon/next/types';
|
|
|
4
4
|
import CategoryLayout from '@theme/views/category/layout';
|
|
5
5
|
|
|
6
6
|
async function Page({ params, searchParams }: PageProps<{ pk: number }>) {
|
|
7
|
-
const { data } = await getCategoryData({
|
|
7
|
+
const { data, breadcrumbData } = await getCategoryData({
|
|
8
|
+
pk: params.pk,
|
|
9
|
+
searchParams
|
|
10
|
+
});
|
|
8
11
|
|
|
9
12
|
return (
|
|
10
13
|
<>
|
|
11
|
-
<CategoryLayout data={data} />
|
|
14
|
+
<CategoryLayout data={data} breadcrumbData={breadcrumbData} />
|
|
12
15
|
</>
|
|
13
16
|
);
|
|
14
17
|
}
|
|
@@ -5,6 +5,7 @@ import { Icon, Link } from '@theme/components';
|
|
|
5
5
|
import { ROUTES } from '@theme/routes';
|
|
6
6
|
import { useLocalization } from '@akinon/next/hooks';
|
|
7
7
|
import { BreadcrumbResultType } from '@akinon/next/types';
|
|
8
|
+
import { capitalize } from '@akinon/next/utils';
|
|
8
9
|
|
|
9
10
|
export interface BreadcrumbProps {
|
|
10
11
|
breadcrumbList?: BreadcrumbResultType[];
|
|
@@ -26,7 +27,9 @@ export default function Breadcrumb(props: BreadcrumbProps) {
|
|
|
26
27
|
<div className="flex items-center gap-3 text-xs leading-4 text-gray-950">
|
|
27
28
|
{list.map((item, index) => (
|
|
28
29
|
<Fragment key={index}>
|
|
29
|
-
<Link href={item.url}>
|
|
30
|
+
<Link href={item.url}>
|
|
31
|
+
{capitalize(item.text.toLocaleLowerCase())}
|
|
32
|
+
</Link>
|
|
30
33
|
{index !== list.length - 1 && <Icon name="chevron-end" size={8} />}
|
|
31
34
|
</Fragment>
|
|
32
35
|
))}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import clsx from 'clsx';
|
|
2
|
-
import { GetCategoryResponse } from '@akinon/next/types';
|
|
2
|
+
import { BreadcrumbResultType, GetCategoryResponse } from '@akinon/next/types';
|
|
3
3
|
import Breadcrumb from '@theme/views/breadcrumb';
|
|
4
4
|
import { CategoryBanner } from '@theme/views/category/category-banner';
|
|
5
5
|
import ListPage from '@theme/views/category/category-info';
|
|
6
6
|
|
|
7
7
|
export default async function Layout({
|
|
8
8
|
data,
|
|
9
|
-
children
|
|
9
|
+
children,
|
|
10
|
+
breadcrumbData
|
|
10
11
|
}: {
|
|
11
12
|
data: GetCategoryResponse;
|
|
12
13
|
children?: React.ReactNode;
|
|
14
|
+
breadcrumbData?: BreadcrumbResultType[];
|
|
13
15
|
}) {
|
|
14
16
|
return (
|
|
15
17
|
<>
|
|
@@ -28,7 +30,7 @@ export default async function Layout({
|
|
|
28
30
|
'lg:absolute lg:inset-x-0 z-10 container lg:my-4 mx-auto'
|
|
29
31
|
)}
|
|
30
32
|
>
|
|
31
|
-
<Breadcrumb />
|
|
33
|
+
<Breadcrumb breadcrumbList={breadcrumbData} />
|
|
32
34
|
</div>
|
|
33
35
|
<CategoryBanner {...data.category?.attributes?.category_banner} />
|
|
34
36
|
</div>
|