@akinon/pz-bkm 2.0.0-beta.0 → 2.0.0-beta.10
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 +41 -0
- package/package.json +9 -9
- package/readme.md +10 -8
- package/src/views/bkm-option.tsx +2 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,46 @@
|
|
1
1
|
# @akinon/pz-bkm
|
2
2
|
|
3
|
+
## 2.0.0-beta.10
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- 2806320: ZERO-3390: Update version tailwindcss, autoprefixer, tailwind-merge, postcss
|
8
|
+
|
9
|
+
## 2.0.0-beta.9
|
10
|
+
|
11
|
+
### Minor Changes
|
12
|
+
|
13
|
+
- 0fe7711: ZERO-3387: Upgrade nextjs, eslint-config-next
|
14
|
+
|
15
|
+
## 2.0.0-beta.8
|
16
|
+
|
17
|
+
## 2.0.0-beta.7
|
18
|
+
|
19
|
+
## 2.0.0-beta.6
|
20
|
+
|
21
|
+
### Minor Changes
|
22
|
+
|
23
|
+
- 8f05f9b: ZERO-3250: Beta branch synchronized with Main branch
|
24
|
+
|
25
|
+
## 2.0.0-beta.5
|
26
|
+
|
27
|
+
## 2.0.0-beta.4
|
28
|
+
|
29
|
+
## 2.0.0-beta.3
|
30
|
+
|
31
|
+
## 2.0.0-beta.2
|
32
|
+
|
33
|
+
### Minor Changes
|
34
|
+
|
35
|
+
- a006015: ZERO-3116: Add not-found page and update default middleware.
|
36
|
+
- 1eeb3d8: ZERO-3116: Add not found page
|
37
|
+
|
38
|
+
## 2.0.0-beta.1
|
39
|
+
|
40
|
+
### Minor Changes
|
41
|
+
|
42
|
+
- ZERO-3091: Upgrade Next.js to v15 and React to v19
|
43
|
+
|
3
44
|
## 2.0.0-beta.0
|
4
45
|
|
5
46
|
### Major Changes
|
package/package.json
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
{
|
2
2
|
"name": "@akinon/pz-bkm",
|
3
|
-
"version": "2.0.0-beta.
|
3
|
+
"version": "2.0.0-beta.10",
|
4
4
|
"license": "MIT",
|
5
5
|
"main": "src/index.tsx",
|
6
6
|
"peerDependencies": {
|
7
|
-
"react": "^
|
8
|
-
"react-dom": "^
|
7
|
+
"react": "^19.0.0",
|
8
|
+
"react-dom": "^19.0.0"
|
9
9
|
},
|
10
10
|
"devDependencies": {
|
11
|
-
"@types/node": "^
|
12
|
-
"@types/react": "^
|
13
|
-
"@types/react-dom": "^
|
14
|
-
"react": "^
|
15
|
-
"react-dom": "^
|
16
|
-
"typescript": "5.
|
11
|
+
"@types/node": "^22.10.2",
|
12
|
+
"@types/react": "^19.0.2",
|
13
|
+
"@types/react-dom": "^19.0.2",
|
14
|
+
"react": "^19.0.0",
|
15
|
+
"react-dom": "^19.0.0",
|
16
|
+
"typescript": "^5.7.2"
|
17
17
|
},
|
18
18
|
"dependencies": {
|
19
19
|
"@hookform/resolvers": "2.9.0",
|
package/readme.md
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
# @akinon/pz-bkm
|
2
2
|
|
3
|
-
|
3
|
+
## Installation method
|
4
|
+
|
5
|
+
You can use the following command to install the extension with the latest plugins:
|
4
6
|
|
5
7
|
```bash
|
6
|
-
# For latest version
|
7
|
-
yarn add @akinon/pz-bkm
|
8
8
|
|
9
|
-
# Preferred installation method
|
10
9
|
npx @akinon/projectzero@latest --plugins
|
10
|
+
|
11
11
|
```
|
12
12
|
|
13
13
|
### Example Usage
|
14
|
+
|
14
15
|
##### File Path: src/views/checkout/steps/payment/options/bkm.tsx
|
15
16
|
|
16
17
|
```javascript
|
@@ -33,7 +34,8 @@ export default Bkm;
|
|
33
34
|
```
|
34
35
|
|
35
36
|
### Props
|
36
|
-
|
37
|
-
|
38
|
-
|
|
39
|
-
| `
|
37
|
+
|
38
|
+
| Property | Type | Description |
|
39
|
+
| -------------- | -------- | ----------------------------------------- |
|
40
|
+
| `translations` | `object` | Object containing translation strings. |
|
41
|
+
| `classes` | `object` | Object containing custom CSS class names. |
|
package/src/views/bkm-option.tsx
CHANGED
@@ -118,6 +118,7 @@ const BKMOption = ({
|
|
118
118
|
<div className="flex items-start flex-col border-t border-solid border-gray-400 py-4 space-y-4">
|
119
119
|
{agreementCheckbox &&
|
120
120
|
React.cloneElement(agreementCheckbox, {
|
121
|
+
// @ts-ignore
|
121
122
|
control: control,
|
122
123
|
error: errors.agreement,
|
123
124
|
fieldId: 'agreement'
|
@@ -137,7 +138,7 @@ const BKMOption = ({
|
|
137
138
|
</form>
|
138
139
|
<div
|
139
140
|
id={`js-bkm-frame-${id}`}
|
140
|
-
className="bkm-frame !
|
141
|
+
className="bkm-frame flex! justify-center items-center pt-0!"
|
141
142
|
></div>
|
142
143
|
<Script src="https://js.bkmexpress.com.tr/v1/javascripts/bex.js" defer />
|
143
144
|
</>
|