@akinon/pz-bkm 1.107.0-rc.86 → 1.107.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +1 -14
  2. package/package.json +1 -1
  3. package/readme.md +11 -35
package/CHANGELOG.md CHANGED
@@ -1,19 +1,6 @@
1
1
  # @akinon/pz-bkm
2
2
 
3
- ## 1.107.0-rc.86
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
- - 33d4d0c: ZERO-3615: remove custom not found
3
+ ## 1.107.0
17
4
 
18
5
  ## 1.106.0
19
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/pz-bkm",
3
- "version": "1.107.0-rc.86",
3
+ "version": "1.107.0",
4
4
  "license": "MIT",
5
5
  "main": "src/index.tsx",
6
6
  "peerDependencies": {
package/readme.md CHANGED
@@ -10,41 +10,9 @@ npx @akinon/projectzero@latest --plugins
10
10
 
11
11
  ```
12
12
 
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. |
13
+ ### Example Usage
31
14
 
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
15
+ ##### File Path: src/views/checkout/steps/payment/options/bkm.tsx
48
16
 
49
17
  ```javascript
50
18
  const Bkm = () => {
@@ -65,7 +33,15 @@ const Bkm = () => {
65
33
  export default Bkm;
66
34
  ```
67
35
 
68
- #### Customized Usage with customUIRender
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
69
45
 
70
46
  ```javascript
71
47
  import PluginModule, { Component } from '@akinon/next/components/plugin-module';