@akinon/projectzero 1.96.0-rc.62 → 1.96.0-rc.64

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,24 @@
1
1
  # @akinon/projectzero
2
2
 
3
+ ## 1.96.0-rc.64
4
+
5
+ ### Minor Changes
6
+
7
+ - d8be48fb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
8
+ - c67942a4: ZERO-3423: Updated version control and debug messages for the package
9
+ - 143be2b9: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
10
+ - 16aff543: ZERO-3431: Add test script for redirect utility in package.json
11
+ - 64699d3ff: ZERO-2761: Fix invalid import for plugin module
12
+ - e974d8e8: ZERO-3406: Fix rc build
13
+ - 7eb51ca9: ZERO-3424 :Update package versions
14
+ - 7727ae55: ZERO-3073: Refactor basket page to use server-side data fetching and simplify component structure
15
+ - 8b1d24eb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
16
+ - 34578efc: ZERO-3419 :Add new payment plugins and update existing ones in the plugin list
17
+ - d99a6a7d: ZERO-3457: Fixed the settings prop and made sure everything is customizable.
18
+ - 33377cfd: ZERO-3267: Refactor import statement for ROUTES in error-page component
19
+
20
+ ## 1.96.0-rc.63
21
+
3
22
  ## 1.96.0-rc.62
4
23
 
5
24
  ## 1.96.0-rc.61
@@ -1,5 +1,166 @@
1
1
  # projectzeronext
2
2
 
3
+ ## 1.96.0-rc.64
4
+
5
+ ### Minor Changes
6
+
7
+ - 63774a6a: ZERO-3351: Add commerce redirection ignore list functionality and related utility
8
+ - 1a8622a9: ZERO-3392: Implemented AI Search functionality and update env
9
+ - d8be48fb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
10
+ - d841fcf3: ZERO-3565: Fix rc build
11
+ - 0014305: ZERO-3629 :edit warnings in build
12
+ - b55acb76: ZERO-2577: Fix pagination bug and update usePagination hook and ensure pagination controls rendering correctly
13
+ - 82174637: ZERO-2887: Add LoaderSpinner to Filters component
14
+ - 0ad91bbd: ZERO-3489: Improve error handling in data fetching across multiple pages and server functions
15
+ - 143be2b9: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
16
+ - 3670f522: ZERO-3301 :Upgrade react-number-format to the latest version
17
+ - 16aff543: ZERO-3431: Add test script for redirect utility in package.json
18
+ - 64699d3ff: ZERO-2761: Fix invalid import for plugin module
19
+ - 9f8cd3bc: ZERO-3449: AI Search Active Filters & Crop Style changes have been implemented
20
+ - e974d8e8: ZERO-3406: Fix rc build
21
+ - 7eb51ca9: ZERO-3424 :Update package versions
22
+ - 7727ae55: ZERO-3073: Refactor basket page to use server-side data fetching and simplify component structure
23
+ - 8b1d24eb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
24
+ - c39c7000: ZERO-3420: Refactor Modal component
25
+ - d99a6a7d: ZERO-3457: Fixed the settings prop and made sure everything is customizable.
26
+ - 9dc7298a: ZERO-3416: Refactor Accordion component to enhance props and improve styling flexibility
27
+ - 33377cfd: ZERO-3267: Refactor import statement for ROUTES in error-page component
28
+ - 1606f335: ZERO-3527: Refactor ProductInfo component to streamline state management and improve variant handling.
29
+ - d600c056: ZERO-3389: Add data-testid attributes for testing in CurrencySelect and ActionMenu components
30
+ - 2d3f1788: ZERO-3417: Enhance FileInput component with additional props for customization
31
+ - b05c3543: ZERO-2570: Category filters routes to absolute url
32
+
33
+ ### Patch Changes
34
+
35
+ - Updated dependencies [4c23847]
36
+ - Updated dependencies [67308f0]
37
+ - Updated dependencies [4ca44c7]
38
+ - Updated dependencies [5dfeea04]
39
+ - Updated dependencies [823d82f9]
40
+ - Updated dependencies [d0853b3b]
41
+ - Updated dependencies [28c7ea79]
42
+ - Updated dependencies [e1aa030d]
43
+ - Updated dependencies [54e31792]
44
+ - Updated dependencies [63774a6a]
45
+ - Updated dependencies [2d9b2b2c9]
46
+ - Updated dependencies [5e1feca6]
47
+ - Updated dependencies [72bfcbf2]
48
+ - Updated dependencies [d35e8ac1]
49
+ - Updated dependencies [40a46853]
50
+ - Updated dependencies [b09e5e3d]
51
+ - Updated dependencies [5f7edd6]
52
+ - Updated dependencies [174bf3a5]
53
+ - Updated dependencies [68bbcb27]
54
+ - Updated dependencies [d8be48fb]
55
+ - Updated dependencies [2ba89b3c]
56
+ - Updated dependencies [0014305]
57
+ - Updated dependencies [b55acb76]
58
+ - Updated dependencies [f49bb74f]
59
+ - Updated dependencies [155cd231]
60
+ - Updated dependencies [0ad91bbd]
61
+ - Updated dependencies [143be2b9]
62
+ - Updated dependencies [e9541a13d]
63
+ - Updated dependencies [ad0bec92]
64
+ - Updated dependencies [9b7d0de6]
65
+ - Updated dependencies [72fd4d67]
66
+ - Updated dependencies [c53ef7b95]
67
+ - Updated dependencies [310556ec]
68
+ - Updated dependencies [a8539c8c]
69
+ - Updated dependencies [16aff543]
70
+ - Updated dependencies [64699d3ff]
71
+ - Updated dependencies [9f8cd3bc]
72
+ - Updated dependencies [e974d8e8]
73
+ - Updated dependencies [89ce46fc]
74
+ - Updated dependencies [b31333ed]
75
+ - Updated dependencies [8645d90]
76
+ - Updated dependencies [7eb51ca9]
77
+ - Updated dependencies [7727ae55]
78
+ - Updated dependencies [8b1d24eb]
79
+ - Updated dependencies [d552629f]
80
+ - Updated dependencies [17f87524e]
81
+ - Updated dependencies [65d3b862]
82
+ - Updated dependencies [c39c7000]
83
+ - Updated dependencies [bbe18b9ff]
84
+ - Updated dependencies [4920742c2]
85
+ - Updated dependencies [b6e5b624]
86
+ - Updated dependencies [0de55738]
87
+ - Updated dependencies [2e436c13]
88
+ - Updated dependencies [7e56d6b6b]
89
+ - Updated dependencies [ae010f0b]
90
+ - Updated dependencies [9cfbf6cd]
91
+ - Updated dependencies [d99a6a7d]
92
+ - Updated dependencies [9dc7298a]
93
+ - Updated dependencies [33377cfd]
94
+ - Updated dependencies [43c182ee]
95
+ - Updated dependencies [c480272c]
96
+ - Updated dependencies [08c3cae]
97
+ - Updated dependencies [b00a90b1]
98
+ - Updated dependencies [facf1ada]
99
+ - Updated dependencies [26b2d0b]
100
+ - Updated dependencies [eeb20bea]
101
+ - Updated dependencies [5b50079]
102
+ - Updated dependencies [3bf63c8a]
103
+ - Updated dependencies [59b275ca]
104
+ - Updated dependencies [9be2c081]
105
+ - Updated dependencies [f7fd459b]
106
+ - Updated dependencies [4de5303c]
107
+ - Updated dependencies [dc678c31]
108
+ - Updated dependencies [f2c92d5c7]
109
+ - Updated dependencies [b16a3700]
110
+ - Updated dependencies [d606f4ac]
111
+ - Updated dependencies [7bd3d9928]
112
+ - Updated dependencies [acd2afdf]
113
+ - Updated dependencies [2d3f1788]
114
+ - Updated dependencies [fdd255ee]
115
+ - Updated dependencies [8bc82f02]
116
+ - Updated dependencies [49eeebfa]
117
+ - Updated dependencies [3f9b8d7e7]
118
+ - Updated dependencies [0e823010]
119
+ - Updated dependencies [e9af4e2]
120
+ - @akinon/pz-gpay@1.96.0-rc.64
121
+ - @akinon/next@1.96.0-rc.64
122
+ - @akinon/pz-saved-card@1.96.0-rc.64
123
+ - @akinon/pz-pay-on-delivery@1.96.0-rc.64
124
+ - @akinon/pz-similar-products@1.96.0-rc.64
125
+ - @akinon/pz-basket-gift-pack@1.96.0-rc.64
126
+ - @akinon/pz-bkm@1.96.0-rc.64
127
+ - @akinon/pz-hepsipay@1.96.0-rc.64
128
+ - @akinon/pz-checkout-gift-pack@1.96.0-rc.64
129
+ - @akinon/pz-one-click-checkout@1.96.0-rc.64
130
+ - @akinon/pz-tamara-extension@1.96.0-rc.64
131
+ - @akinon/pz-tabby-extension@1.96.0-rc.64
132
+ - @akinon/pz-credit-payment@1.96.0-rc.64
133
+ - @akinon/pz-click-collect@1.96.0-rc.64
134
+ - @akinon/pz-masterpass@1.96.0-rc.64
135
+ - @akinon/pz-akifast@1.96.0-rc.64
136
+ - @akinon/pz-b2b@1.96.0-rc.64
137
+ - @akinon/pz-otp@1.96.0-rc.64
138
+
139
+ ## 1.96.0-rc.63
140
+
141
+ ### Patch Changes
142
+
143
+ - Updated dependencies [4ca44c7]
144
+ - Updated dependencies [5b50079]
145
+ - @akinon/pz-saved-card@1.96.0-rc.63
146
+ - @akinon/next@1.96.0-rc.63
147
+ - @akinon/pz-akifast@1.96.0-rc.63
148
+ - @akinon/pz-b2b@1.96.0-rc.63
149
+ - @akinon/pz-basket-gift-pack@1.96.0-rc.63
150
+ - @akinon/pz-bkm@1.96.0-rc.63
151
+ - @akinon/pz-checkout-gift-pack@1.96.0-rc.63
152
+ - @akinon/pz-click-collect@1.96.0-rc.63
153
+ - @akinon/pz-credit-payment@1.96.0-rc.63
154
+ - @akinon/pz-gpay@1.96.0-rc.63
155
+ - @akinon/pz-hepsipay@1.96.0-rc.63
156
+ - @akinon/pz-masterpass@1.96.0-rc.63
157
+ - @akinon/pz-one-click-checkout@1.96.0-rc.63
158
+ - @akinon/pz-otp@1.96.0-rc.63
159
+ - @akinon/pz-pay-on-delivery@1.96.0-rc.63
160
+ - @akinon/pz-similar-products@1.96.0-rc.63
161
+ - @akinon/pz-tabby-extension@1.96.0-rc.63
162
+ - @akinon/pz-tamara-extension@1.96.0-rc.63
163
+
3
164
  ## 1.96.0-rc.62
4
165
 
5
166
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "projectzeronext",
3
- "version": "1.96.0-rc.62",
3
+ "version": "1.96.0-rc.64",
4
4
  "private": true,
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -24,24 +24,24 @@
24
24
  "test:middleware": "jest middleware-matcher.test.ts --bail"
25
25
  },
26
26
  "dependencies": {
27
- "@akinon/next": "1.96.0-rc.62",
28
- "@akinon/pz-akifast": "1.96.0-rc.62",
29
- "@akinon/pz-b2b": "1.96.0-rc.62",
30
- "@akinon/pz-basket-gift-pack": "1.96.0-rc.62",
31
- "@akinon/pz-bkm": "1.96.0-rc.62",
32
- "@akinon/pz-checkout-gift-pack": "1.96.0-rc.62",
33
- "@akinon/pz-click-collect": "1.96.0-rc.62",
34
- "@akinon/pz-credit-payment": "1.96.0-rc.62",
35
- "@akinon/pz-gpay": "1.96.0-rc.62",
36
- "@akinon/pz-hepsipay": "1.96.0-rc.62",
37
- "@akinon/pz-masterpass": "1.96.0-rc.62",
38
- "@akinon/pz-one-click-checkout": "1.96.0-rc.62",
39
- "@akinon/pz-otp": "1.96.0-rc.62",
40
- "@akinon/pz-pay-on-delivery": "1.96.0-rc.62",
41
- "@akinon/pz-saved-card": "1.96.0-rc.62",
42
- "@akinon/pz-similar-products": "1.96.0-rc.62",
43
- "@akinon/pz-tabby-extension": "1.96.0-rc.62",
44
- "@akinon/pz-tamara-extension": "1.96.0-rc.62",
27
+ "@akinon/next": "1.96.0-rc.64",
28
+ "@akinon/pz-akifast": "1.96.0-rc.64",
29
+ "@akinon/pz-b2b": "1.96.0-rc.64",
30
+ "@akinon/pz-basket-gift-pack": "1.96.0-rc.64",
31
+ "@akinon/pz-bkm": "1.96.0-rc.64",
32
+ "@akinon/pz-checkout-gift-pack": "1.96.0-rc.64",
33
+ "@akinon/pz-click-collect": "1.96.0-rc.64",
34
+ "@akinon/pz-credit-payment": "1.96.0-rc.64",
35
+ "@akinon/pz-gpay": "1.96.0-rc.64",
36
+ "@akinon/pz-hepsipay": "1.96.0-rc.64",
37
+ "@akinon/pz-masterpass": "1.96.0-rc.64",
38
+ "@akinon/pz-one-click-checkout": "1.96.0-rc.64",
39
+ "@akinon/pz-otp": "1.96.0-rc.64",
40
+ "@akinon/pz-pay-on-delivery": "1.96.0-rc.64",
41
+ "@akinon/pz-saved-card": "1.96.0-rc.64",
42
+ "@akinon/pz-similar-products": "1.96.0-rc.64",
43
+ "@akinon/pz-tabby-extension": "1.96.0-rc.64",
44
+ "@akinon/pz-tamara-extension": "1.96.0-rc.64",
45
45
  "@hookform/resolvers": "2.9.0",
46
46
  "@next/third-parties": "14.1.0",
47
47
  "@react-google-maps/api": "2.17.1",
@@ -64,7 +64,7 @@
64
64
  "yup": "0.32.11"
65
65
  },
66
66
  "devDependencies": {
67
- "@akinon/eslint-plugin-projectzero": "1.96.0-rc.62",
67
+ "@akinon/eslint-plugin-projectzero": "1.96.0-rc.64",
68
68
  "@semantic-release/changelog": "6.0.2",
69
69
  "@semantic-release/exec": "6.0.3",
70
70
  "@semantic-release/git": "10.0.1",
@@ -30,6 +30,8 @@ describe('Link Component', () => {
30
30
  wrapper = container;
31
31
  });
32
32
 
33
+ wrapper;
34
+
33
35
  it('should render without error', () => {
34
36
  const link = screen.getByRole('link');
35
37
 
@@ -48,7 +48,13 @@ export const Input = forwardRef<
48
48
  props.className
49
49
  );
50
50
 
51
- const inputProps: any = {
51
+ const inputProps: {
52
+ id?: string;
53
+ ref?: Ref<HTMLInputElement>;
54
+ className?: string;
55
+ onFocus?: () => void;
56
+ onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
57
+ } = {
52
58
  id,
53
59
  ref,
54
60
  className: inputClass,
@@ -125,6 +125,7 @@ export const Pagination = (props: PaginationProps) => {
125
125
  setPrevPage(1);
126
126
  setNextPage(1);
127
127
  }
128
+ // eslint-disable-next-line react-hooks/exhaustive-deps
128
129
  }, [page]);
129
130
 
130
131
  useEffect(() => {
@@ -111,7 +111,7 @@ const ContactForm = () => {
111
111
  resolver: yupResolver(contactFormSchema(t))
112
112
  });
113
113
 
114
- const onSubmit: SubmitHandler<ContactFormType> = (data, event) => {
114
+ const onSubmit: SubmitHandler<ContactFormType> = (data) => {
115
115
  const formData = new FormData();
116
116
 
117
117
  Object.keys(data ?? {}).forEach((key) => {
@@ -3,6 +3,7 @@
3
3
  import { Accordion, LoaderSpinner, TabPanel, Tabs } from '@theme/components';
4
4
  import React from 'react';
5
5
  import { useGetWidgetQuery } from '@akinon/next/data/client/misc';
6
+ import { useLocalization } from '@akinon/next/hooks';
6
7
 
7
8
  interface Props {
8
9
  searchKey?: string;
@@ -11,6 +12,7 @@ interface Props {
11
12
  export function FaqTabs(props: Props) {
12
13
  const { searchKey } = props;
13
14
  const { data, isLoading } = useGetWidgetQuery('faq');
15
+ const { locale } = useLocalization();
14
16
 
15
17
  if (isLoading) {
16
18
  return <LoaderSpinner className="mt-4" />;
@@ -29,8 +31,12 @@ export function FaqTabs(props: Props) {
29
31
  {data?.attributes?.faq_contents
30
32
  ?.filter(
31
33
  (faq) =>
32
- faq.value.content.toLocaleLowerCase().includes(searchKey) ||
33
- faq.value.title.toLocaleLowerCase().includes(searchKey)
34
+ faq.value.content
35
+ .toLocaleLowerCase(locale)
36
+ .includes(searchKey) ||
37
+ faq.value.title
38
+ .toLocaleLowerCase(locale)
39
+ .includes(searchKey)
34
40
  )
35
41
  .map((faq, index) => {
36
42
  if (faq.value.category == item.value.category_id) {
@@ -40,7 +40,12 @@ export const BasketItem = (props: Props) => {
40
40
  quantity: number,
41
41
  attributes: object = {}
42
42
  ) => {
43
- const requestParams: any = {
43
+ const requestParams: {
44
+ product: number;
45
+ quantity: number;
46
+ attributes: object;
47
+ namespace?: string;
48
+ } = {
44
49
  product: productPk,
45
50
  quantity,
46
51
  attributes
@@ -12,7 +12,7 @@ export interface BreadcrumbProps {
12
12
  }
13
13
 
14
14
  export default function Breadcrumb(props: BreadcrumbProps) {
15
- const { t } = useLocalization();
15
+ const { t, locale } = useLocalization();
16
16
  const { breadcrumbList = [] } = props;
17
17
 
18
18
  const list = [
@@ -28,7 +28,7 @@ export default function Breadcrumb(props: BreadcrumbProps) {
28
28
  {list.map((item, index) => (
29
29
  <Fragment key={index}>
30
30
  <Link href={item.url}>
31
- {capitalize(item.text.toLocaleLowerCase())}
31
+ {capitalize(item.text.toLocaleLowerCase(locale))}
32
32
  </Link>
33
33
  {index !== list.length - 1 && <Icon name="chevron-end" size={8} />}
34
34
  </Fragment>
@@ -57,6 +57,7 @@ export default function ListPage(props: ListPageProps) {
57
57
  newUrl.searchParams.delete('page');
58
58
  router.push(newUrl.pathname + newUrl.search, undefined);
59
59
  }
60
+ // eslint-disable-next-line react-hooks/exhaustive-deps
60
61
  }, [searchParams, data.products, page]);
61
62
 
62
63
  const { t } = useLocalization();
@@ -6,7 +6,7 @@ import { useLocalization } from '@akinon/next/hooks';
6
6
  import { useAppDispatch, useAppSelector } from '@akinon/next/redux/hooks';
7
7
  import { resetSelectedFacets } from '@theme/redux/reducers/category';
8
8
  import CategoryActiveFilters from '@theme/views/category/category-active-filters';
9
- import { useMemo, useState, useTransition } from 'react';
9
+ import { useMemo, useTransition } from 'react';
10
10
  import { FilterItem } from './filter-item';
11
11
 
12
12
  interface Props {
@@ -58,6 +58,7 @@ export default function ProductInfo({ data }: ProductPageProps) {
58
58
  if (isVariantLoading) {
59
59
  clearProductError();
60
60
  }
61
+ // eslint-disable-next-line react-hooks/exhaustive-deps
61
62
  }, [isVariantLoading]);
62
63
 
63
64
  useEffect(() => {
@@ -2,6 +2,7 @@ import 'server-only';
2
2
 
3
3
  import { Link, Accordion } from '@theme/components';
4
4
  import { getWidgetData } from '@akinon/next/data/server';
5
+ import { ServerVariables } from '@akinon/next/utils/server-variables';
5
6
 
6
7
  type SideItem = {
7
8
  value: string;
@@ -47,6 +48,7 @@ type FooterMenuType = {
47
48
 
48
49
  export default async function FooterMenu() {
49
50
  const data = await getWidgetData<FooterMenuType>({ slug: 'footer-menu' });
51
+ const { locale } = ServerVariables;
50
52
 
51
53
  return (
52
54
  <div className="flex-1">
@@ -72,7 +74,7 @@ export default async function FooterMenu() {
72
74
  : '_self'
73
75
  }
74
76
  data-testid={`footer-categories-${item?.value?.name
75
- ?.toLocaleLowerCase()
77
+ ?.toLocaleLowerCase(locale)
76
78
  .split(' ')
77
79
  .join('')}`}
78
80
  >
@@ -96,7 +98,9 @@ export default async function FooterMenu() {
96
98
  ? '_blank'
97
99
  : '_self'
98
100
  }
99
- data-testid={`footer-categories-${item?.value?.name?.toLocaleLowerCase()}`}
101
+ data-testid={`footer-categories-${item?.value?.name?.toLocaleLowerCase(
102
+ locale
103
+ )}`}
100
104
  >
101
105
  {item?.value?.name}
102
106
  </Link>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/projectzero",
3
- "version": "1.96.0-rc.62",
3
+ "version": "1.96.0-rc.64",
4
4
  "private": false,
5
5
  "description": "CLI tool to manage your Project Zero Next project",
6
6
  "bin": {