@xpayeg/react 2.0.0 → 2.1.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 (2) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @xpayeg/react
2
2
 
3
+ ## 2.1.0
4
+ ### Minor Changes
5
+
6
+
7
+
8
+ - [#224](https://github.com/xpayeg/xpay/pull/224) [`40beff5`](https://github.com/xpayeg/xpay/commit/40beff5ee4660914dff5c0f7c43480083bf331c4) Thanks [@mariamkamel](https://github.com/mariamkamel)! - `CheckoutCompleteResult` (drop-in `onComplete`) and the `session` in `confirmPayment()`'s success result now carry `paymentStatus`. Methods the customer pays afterwards, such as Fawry, complete checkout as `unpaid` and are paid later. Fulfil on `paymentStatus: "paid"`, never on completion alone.
9
+
10
+ Drop-in `onError` now fires when an attempt fails (declined, canceled, processing error) and when the session is expired or already complete on load. The modal unlocks after a failed attempt so the customer can close it; previously it stayed locked until a successful payment.
11
+
12
+ ### Patch Changes
13
+
14
+
15
+
16
+ - [#453](https://github.com/xpayeg/xpay/pull/453) [`5445718`](https://github.com/xpayeg/xpay/commit/5445718b5027cba56f1d645cba6f42904d2c2f2c) Thanks [@Elmosh](https://github.com/Elmosh)! - `@xpayeg/react` now declares its `@xpayeg/sdk` peer dependency as `^2.0.0` instead of an exact pinned version, so the two packages no longer have to be upgraded in lockstep within a major.
17
+
3
18
  ## 2.0.0
4
19
  ### Major Changes
5
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xpayeg/react",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "XPay React components — PaymentElement, CheckoutButton, and hooks",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -33,9 +33,9 @@
33
33
  "LICENSE"
34
34
  ],
35
35
  "peerDependencies": {
36
+ "@xpayeg/sdk": "^2.0.0",
36
37
  "react": "^18 || ^19",
37
- "react-dom": "^18 || ^19",
38
- "@xpayeg/sdk": "2.0.0"
38
+ "react-dom": "^18 || ^19"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@arethetypeswrong/cli": "^0.18.2",
@@ -50,7 +50,7 @@
50
50
  "tsdown": "^0.22.0",
51
51
  "typescript": "5.9.3",
52
52
  "@xpay/tsconfig": "0.0.0",
53
- "@xpayeg/sdk": "2.0.0"
53
+ "@xpayeg/sdk": "2.1.0"
54
54
  },
55
55
  "repository": {
56
56
  "type": "git",