@akinon/pz-bkm 1.96.0-snapshot-ZERO-35861-20250908151109 → 1.96.0-snapshot-ZERO-3620-20250915165755

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +51 -1
  2. package/package.json +1 -1
  3. package/readme.md +35 -11
package/CHANGELOG.md CHANGED
@@ -1,6 +1,56 @@
1
1
  # @akinon/pz-bkm
2
2
 
3
- ## 1.96.0-snapshot-ZERO-35861-20250908151109
3
+ ## 1.96.0-snapshot-ZERO-3620-20250915165755
4
+
5
+ ### Minor Changes
6
+
7
+ - d35e8ac1: ZERO-3402 :Update README.md to enhance props documentation and usage examples for customUIRender
8
+ - d8be48fb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
9
+ - 16aff543: ZERO-3431: Add test script for redirect utility in package.json
10
+ - 64699d3ff: ZERO-2761: Fix invalid import for plugin module
11
+ - e974d8e8: ZERO-3406: Fix rc build
12
+ - 7eb51ca9: ZERO-3424 :Update package versions
13
+ - 7727ae55: ZERO-3073: Refactor basket page to use server-side data fetching and simplify component structure
14
+ - 8b1d24eb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
15
+ - 33377cfd: ZERO-3267: Refactor import statement for ROUTES in error-page component
16
+
17
+ ## 1.96.0-rc.61
18
+
19
+ ### Minor Changes
20
+
21
+ - d35e8ac1: ZERO-3402 :Update README.md to enhance props documentation and usage examples for customUIRender
22
+ - d8be48fb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
23
+ - 16aff543: ZERO-3431: Add test script for redirect utility in package.json
24
+ - 64699d3ff: ZERO-2761: Fix invalid import for plugin module
25
+ - e974d8e8: ZERO-3406: Fix rc build
26
+ - 7eb51ca9: ZERO-3424 :Update package versions
27
+ - 7727ae55: ZERO-3073: Refactor basket page to use server-side data fetching and simplify component structure
28
+ - 8b1d24eb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
29
+ - 33377cfd: ZERO-3267: Refactor import statement for ROUTES in error-page component
30
+
31
+ ## 1.96.0-rc.60
32
+
33
+ ## 1.96.0-rc.59
34
+
35
+ ## 1.96.0-rc.58
36
+
37
+ ## 1.96.0-rc.57
38
+
39
+ ## 1.96.0-rc.56
40
+
41
+ ## 1.96.0-rc.55
42
+
43
+ ### Minor Changes
44
+
45
+ - d35e8ac1: ZERO-3402 :Update README.md to enhance props documentation and usage examples for customUIRender
46
+ - d8be48fb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
47
+ - 16aff543: ZERO-3431: Add test script for redirect utility in package.json
48
+ - 64699d3ff: ZERO-2761: Fix invalid import for plugin module
49
+ - e974d8e8: ZERO-3406: Fix rc build
50
+ - 7eb51ca9: ZERO-3424 :Update package versions
51
+ - 7727ae55: ZERO-3073: Refactor basket page to use server-side data fetching and simplify component structure
52
+ - 8b1d24eb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
53
+ - 33377cfd: ZERO-3267: Refactor import statement for ROUTES in error-page component
4
54
 
5
55
  ## 1.95.0
6
56
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/pz-bkm",
3
- "version": "1.96.0-snapshot-ZERO-35861-20250908151109",
3
+ "version": "1.96.0-snapshot-ZERO-3620-20250915165755",
4
4
  "license": "MIT",
5
5
  "main": "src/index.tsx",
6
6
  "peerDependencies": {
package/readme.md CHANGED
@@ -10,9 +10,41 @@ npx @akinon/projectzero@latest --plugins
10
10
 
11
11
  ```
12
12
 
13
- ### Example Usage
13
+ ### Props
14
+
15
+ | Property | Type | Required | Description |
16
+ | --- | --- | --- | --- |
17
+ | `translations` | `object` | Optional | Object containing translation strings. |
18
+ | `classes` | `object` | Optional | Object containing custom CSS class names. |
19
+ | `customUIRender` | `React.ReactNode` | Optional | Custom rendering functions. |
20
+
21
+ ### customUIRender Props
22
+
23
+ | Property | Type | Required | Description |
24
+ | --- | --- | --- | --- |
25
+ | `handleSubmit` | `UseFormHandleSubmit<BKMOptionForm>` | Required | Form submission handler from `react-hook-form`. Wraps the `handleSubmit` method. |
26
+ | `onSubmit` | `SubmitHandler<BKMOptionForm>` | Required | Callback function executed on successful form submission. |
27
+ | `control` | `Control<BKMOptionForm>` | Required | Control object used to register form inputs with `react-hook-form`. |
28
+ | `errors` | `FieldErrors<BKMOptionForm>` | Required | Contains validation errors for form fields. |
29
+ | `translations` | `BKMOptionProps['translations']` | Optional | Optional prop for providing localized strings like title and description. |
30
+ | `bkmFrameId` | `string` | Required | The DOM `id` attribute for the embedded BKM iframe element. |
14
31
 
15
- ##### File Path: src/views/checkout/steps/payment/options/bkm.tsx
32
+ ### Translations Properties
33
+
34
+ | Key | Type | Description |
35
+ | --- | --- | --- |
36
+ | `title` | `string` | The title text displayed at the top of the component. |
37
+ | `description` | `string` | A short description or informative message for the user. |
38
+ | `button` | `string` | Text displayed on the submit button. |
39
+ | `required` | `string` | Validation message shown when a required field is empty. |
40
+
41
+ ### Usage Examples
42
+
43
+ ```bash
44
+ src/views/checkout/steps/payment/options/bkm.tsx
45
+ ```
46
+
47
+ #### Default Usage
16
48
 
17
49
  ```javascript
18
50
  const Bkm = () => {
@@ -33,15 +65,7 @@ const Bkm = () => {
33
65
  export default Bkm;
34
66
  ```
35
67
 
36
- ### Props
37
-
38
- | Property | Type | Description |
39
- | --- | --- | --- |
40
- | `translations` | `object` | Object containing translation strings. |
41
- | `classes` | `object` | Object containing custom CSS class names. |
42
- | `customUIRender` | `React.ReactNode` | Optional function to fully customize the bkm express. Receives control, errors, translations, bkmFrameId and handleSubmit props. |
43
-
44
- ### Customizing BKM Express
68
+ #### Customized Usage with customUIRender
45
69
 
46
70
  ```javascript
47
71
  import PluginModule, { Component } from '@akinon/next/components/plugin-module';