@akinon/pz-bkm 1.91.0 → 1.92.0-rc.11

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 +42 -1
  2. package/package.json +1 -1
  3. package/readme.md +35 -11
package/CHANGELOG.md CHANGED
@@ -1,6 +1,47 @@
1
1
  # @akinon/pz-bkm
2
2
 
3
- ## 1.91.0
3
+ ## 1.92.0-rc.11
4
+
5
+ ## 1.92.0-rc.10
6
+
7
+ ## 1.92.0-rc.9
8
+
9
+ ## 1.92.0-rc.8
10
+
11
+ ## 1.92.0-rc.7
12
+
13
+ ## 1.91.0-rc.6
14
+
15
+ ## 1.91.0-rc.5
16
+
17
+ ## 1.91.0-rc.4
18
+
19
+ ### Minor Changes
20
+
21
+ - d35e8ac: ZERO-3402 :Update README.md to enhance props documentation and usage examples for customUIRender
22
+ - 7eb51ca: ZERO-3424 :Update package versions
23
+
24
+ ## 1.91.0-rc.3
25
+
26
+ ### Minor Changes
27
+
28
+ - 64699d3f: ZERO-2761: Fix invalid import for plugin module
29
+ - e974d8e8: ZERO-3406: Fix rc build
30
+ - 7727ae55: ZERO-3073: Refactor basket page to use server-side data fetching and simplify component structure
31
+ - 33377cfd: ZERO-3267: Refactor import statement for ROUTES in error-page component
32
+
33
+ ## 1.91.0-rc.2
34
+
35
+ ## 1.91.0-rc.1
36
+
37
+ ## 1.91.0-rc.0
38
+
39
+ ### Minor Changes
40
+
41
+ - 64699d3f: ZERO-2761: Fix invalid import for plugin module
42
+ - e974d8e: ZERO-3406: Fix rc build
43
+ - 7727ae55: ZERO-3073: Refactor basket page to use server-side data fetching and simplify component structure
44
+ - 33377cfd: ZERO-3267: Refactor import statement for ROUTES in error-page component
4
45
 
5
46
  ## 1.90.0
6
47
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/pz-bkm",
3
- "version": "1.91.0",
3
+ "version": "1.92.0-rc.11",
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';