@akinon/next 1.37.0-rc.2 → 1.37.0-rc.4

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,17 @@
1
1
  # @akinon/next
2
2
 
3
+ ## 1.37.0-rc.4
4
+
5
+ ### Minor Changes
6
+
7
+ - 05b1fe1: ZERO-2674: Update getMenu query to accept depth and parent parameters
8
+
9
+ ## 1.37.0-rc.3
10
+
11
+ ### Minor Changes
12
+
13
+ - 75080fd: ZERO-2630: Add max limit to postcode area
14
+
3
15
  ## 1.37.0-rc.2
4
16
 
5
17
  ### Minor Changes
@@ -31,6 +31,11 @@ export interface AutocompleteResponse {
31
31
  }>;
32
32
  }
33
33
 
34
+ export interface GetMenuParams {
35
+ depth: number;
36
+ parent?: string;
37
+ }
38
+
34
39
  export interface GetLanguageResponse {
35
40
  active_language: string;
36
41
  default_language: string;
@@ -80,9 +85,9 @@ export const miscApi = api.injectEndpoints({
80
85
  url: buildClientRequestUrl(widgets.getWidget(slug))
81
86
  })
82
87
  }),
83
- getMenu: builder.query<MenuItemType[], number>({
84
- query: (depth) => ({
85
- url: buildClientRequestUrl(misc.menus(depth))
88
+ getMenu: builder.query<MenuItemType[], GetMenuParams>({
89
+ query: ({ depth, parent }) => ({
90
+ url: buildClientRequestUrl(misc.menus(depth, parent))
86
91
  }),
87
92
  transformResponse: (response: { menu: MenuItemType[] }) => {
88
93
  return response.menu;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@akinon/next",
3
3
  "description": "Core package for Project Zero Next",
4
- "version": "1.37.0-rc.2",
4
+ "version": "1.37.0-rc.4",
5
5
  "private": false,
6
6
  "license": "MIT",
7
7
  "bin": {
@@ -35,7 +35,7 @@
35
35
  "@typescript-eslint/eslint-plugin": "6.7.4",
36
36
  "@typescript-eslint/parser": "6.7.4",
37
37
  "eslint": "^8.14.0",
38
- "@akinon/eslint-plugin-projectzero": "1.37.0-rc.2",
38
+ "@akinon/eslint-plugin-projectzero": "1.37.0-rc.4",
39
39
  "eslint-config-prettier": "8.5.0"
40
40
  }
41
41
  }
@@ -6,6 +6,8 @@ import { Config } from '../../types';
6
6
  const initialState: Config = {
7
7
  user_phone_regex: '^(05)\\d{9}$',
8
8
  user_phone_format: '05999999999',
9
+ user_post_code_regex: '^\\d{5}$',
10
+ user_post_code_format: '99999',
9
11
  country: {
10
12
  pk: 1,
11
13
  name: 'Türkiye',
@@ -2,6 +2,8 @@ import { District } from './address';
2
2
  export interface Config {
3
3
  user_phone_regex: string;
4
4
  user_phone_format: string;
5
+ user_post_code_regex: string;
6
+ user_post_code_format: string;
5
7
  country: {
6
8
  pk: number;
7
9
  name: string;