@akinon/projectzero 1.34.0 → 1.35.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/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @akinon/projectzero
2
2
 
3
+ ## 1.35.0
4
+
3
5
  ## 1.34.0
4
6
 
5
7
  ### Minor Changes
@@ -1,5 +1,30 @@
1
1
  # projectzeronext
2
2
 
3
+ ## 1.35.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 567e4c1: ZERO-2580:Add checked attribute from props to checkbox
8
+ - d09b677: ZERO-2577: Fix pagination bug and update usePagination hook and ensure pagination controls rendering correctly
9
+ - f0c23bc: ZERO-2135: add custom not found page
10
+ - f084819: ZERO-2576: Update next version to 14.2.1
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [d09b677]
15
+ - Updated dependencies [6d4aadb]
16
+ - Updated dependencies [f3b595e]
17
+ - Updated dependencies [f0c23bc]
18
+ - Updated dependencies [f488ea8]
19
+ - Updated dependencies [6b2972b]
20
+ - @akinon/next@1.35.0
21
+ - @akinon/pz-masterpass@1.35.0
22
+ - @akinon/pz-b2b@1.35.0
23
+ - @akinon/pz-gpay@1.35.0
24
+ - @akinon/pz-one-click-checkout@1.35.0
25
+ - @akinon/pz-otp@1.35.0
26
+ - @akinon/pz-pay-on-delivery@1.35.0
27
+
3
28
  ## 1.34.0
4
29
 
5
30
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "projectzeronext",
3
- "version": "1.34.0",
3
+ "version": "1.35.0",
4
4
  "private": true,
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -22,20 +22,21 @@
22
22
  "prestart": "pz-prestart"
23
23
  },
24
24
  "dependencies": {
25
- "@akinon/next": "1.34.0",
26
- "@akinon/pz-b2b": "1.34.0",
27
- "@akinon/pz-gpay": "1.34.0",
28
- "@akinon/pz-masterpass": "1.34.0",
29
- "@akinon/pz-one-click-checkout": "1.34.0",
30
- "@akinon/pz-otp": "1.34.0",
31
- "@akinon/pz-pay-on-delivery": "1.34.0",
25
+ "@akinon/next": "1.35.0",
26
+ "@akinon/pz-b2b": "1.35.0",
27
+ "@akinon/pz-gpay": "1.35.0",
28
+ "@akinon/pz-masterpass": "1.35.0",
29
+ "@akinon/pz-one-click-checkout": "1.35.0",
30
+ "@akinon/pz-otp": "1.35.0",
31
+ "@akinon/pz-pay-on-delivery": "1.35.0",
32
32
  "@hookform/resolvers": "2.9.0",
33
33
  "@next/third-parties": "14.1.0",
34
34
  "@react-google-maps/api": "2.17.1",
35
35
  "@sentry/nextjs": "7.105.0",
36
36
  "dayjs": "1.11.5",
37
+ "eslint-config-next": "14.2.2",
37
38
  "lossless-json": "2.0.5",
38
- "next": "14.1.3",
39
+ "next": "14.2.2",
39
40
  "next-auth": "4.24.5",
40
41
  "next-pwa": "5.6.0",
41
42
  "pino": "8.11.0",
@@ -52,7 +53,7 @@
52
53
  "yup": "0.32.11"
53
54
  },
54
55
  "devDependencies": {
55
- "@akinon/eslint-plugin-projectzero": "1.34.0",
56
+ "@akinon/eslint-plugin-projectzero": "1.35.0",
56
57
  "@semantic-release/changelog": "6.0.2",
57
58
  "@semantic-release/exec": "6.0.3",
58
59
  "@semantic-release/git": "10.0.1",
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "Page Not Found",
3
+ "sub_title": "It looks like the page you're looking for doesn't exist.",
4
+ "button": "Return to Home Page"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "Sayfa Bulunamadı",
3
+ "sub_title": "Aradığınız sayfa bulunamadı gibi görünüyor.",
4
+ "button": "Ana Sayfaya Dön"
5
+ }
@@ -0,0 +1,24 @@
1
+ 'use client';
2
+
3
+ import React from 'react';
4
+ import { Button, Link } from '@theme/components';
5
+ import { useLocalization } from '@akinon/next/hooks';
6
+
7
+ const NotFound = () => {
8
+ const { t } = useLocalization();
9
+
10
+ return (
11
+ <div className="py-6 flex flex-col items-center justify-center">
12
+ <div className="text-8xl font-bold">404</div>
13
+ <h1 className="text-4xl font-bold mb-4">{t('not_found.title')}</h1>
14
+ <p className="text-lg mb-6">{t('not_found.sub_title')}</p>
15
+ <Link href={'/'}>
16
+ <Button className="h-auto mt-4 text-base py-3 px-6">
17
+ {t('not_found.button')}
18
+ </Button>
19
+ </Link>
20
+ </div>
21
+ );
22
+ };
23
+
24
+ export default NotFound;
@@ -3,7 +3,7 @@ import { CheckboxProps } from '@theme/components/types';
3
3
  import { twMerge } from 'tailwind-merge';
4
4
 
5
5
  const Checkbox = forwardRef<HTMLInputElement, CheckboxProps>((props, ref) => {
6
- const { children, error, ...rest } = props;
6
+ const { children, checked, error, ...rest } = props;
7
7
 
8
8
  return (
9
9
  <label className={twMerge('flex flex-col text-xs', props.className)}>
@@ -12,6 +12,7 @@ const Checkbox = forwardRef<HTMLInputElement, CheckboxProps>((props, ref) => {
12
12
  type="checkbox"
13
13
  {...rest}
14
14
  ref={ref}
15
+ checked={checked ?? false}
15
16
  className="w-4 h-4 shrink-0"
16
17
  />
17
18
  {children && <span className="ml-2">{children}</span>}
@@ -198,7 +198,7 @@ export const Pagination = (props: PaginationProps) => {
198
198
  containerClassName
199
199
  )}
200
200
  >
201
- {prev && (
201
+ {prev && currentPage !== 1 && (
202
202
  <li>
203
203
  <Link
204
204
  onClick={(e) => handleClick(e, prev)}
@@ -58,5 +58,6 @@ module.exports = {
58
58
  ],
59
59
  redis: {
60
60
  defaultExpirationTime: 900 // 15 min
61
- }
61
+ },
62
+ customNotFoundEnabled: false
62
63
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/projectzero",
3
- "version": "1.34.0",
3
+ "version": "1.35.0",
4
4
  "private": false,
5
5
  "description": "CLI tool to manage your Project Zero Next project",
6
6
  "bin": {