@akinon/pz-bkm 1.92.0-rc.9 → 1.92.0-snapshot-ZERO-3449-20250618101111

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