@akinon/next 1.37.0-rc.1 → 1.37.0-rc.3

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.3
4
+
5
+ ### Minor Changes
6
+
7
+ - 75080fd: ZERO-2630: Add max limit to postcode area
8
+
9
+ ## 1.37.0-rc.2
10
+
11
+ ### Minor Changes
12
+
13
+ - 1448a96: ZERO-2612: add errors type in CheckoutState
14
+
3
15
  ## 1.37.0-rc.1
4
16
 
5
17
  ## 1.37.0-rc.0
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.1",
4
+ "version": "1.37.0-rc.3",
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.1",
38
+ "@akinon/eslint-plugin-projectzero": "1.37.0-rc.3",
39
39
  "eslint-config-prettier": "8.5.0"
40
40
  }
41
41
  }
@@ -29,7 +29,7 @@ import { showMobile3dIframe } from '../../utils/mobile-3d-iframe';
29
29
 
30
30
  interface CheckoutResult {
31
31
  payload: {
32
- errors?: any;
32
+ errors?: Record<string, string[]>;
33
33
  pre_order?: PreOrder;
34
34
  context_list?: CheckoutContext[];
35
35
  };
@@ -18,8 +18,7 @@ import {
18
18
  } from '../../types';
19
19
 
20
20
  export interface CheckoutState {
21
- // TODO: Add types
22
- errors: any;
21
+ errors: Record<string, string[]>;
23
22
  hasGiftBox: boolean;
24
23
  canGuestPurchase: boolean;
25
24
  steps: {
@@ -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;