@0xmonaco/react 1.0.42-develop.791e6f3 → 1.0.43

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.
@@ -178,9 +178,19 @@ function updateOrderFromEvent(order, event) {
178
178
  if ("averageFillPrice" in data && data.averageFillPrice) {
179
179
  avgFillPrice = data.averageFillPrice;
180
180
  }
181
+ // A partial cancel reduces the order's TOTAL in place while it keeps
182
+ // resting; without applying it the UI shows a resting size the book no
183
+ // longer has. (`Order` has no remainingQuantity field — consumers derive
184
+ // it as quantity - filledQuantity, which stays correct once the total
185
+ // updates.)
186
+ let quantity = order.quantity;
187
+ if ("quantity" in data && data.quantity) {
188
+ quantity = data.quantity;
189
+ }
181
190
  return {
182
191
  ...order,
183
192
  status: newStatus,
193
+ quantity,
184
194
  filledQuantity: filledQuantity,
185
195
  averageFillPrice: avgFillPrice,
186
196
  updatedAt: event.timestamp,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xmonaco/react",
3
- "version": "1.0.42-develop.791e6f3",
3
+ "version": "1.0.43",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,8 +20,8 @@
20
20
  "lint": "biome lint ."
21
21
  },
22
22
  "dependencies": {
23
- "@0xmonaco/core": "1.0.42-develop.791e6f3",
24
- "@0xmonaco/types": "1.0.42-develop.791e6f3"
23
+ "@0xmonaco/core": "1.0.43",
24
+ "@0xmonaco/types": "1.0.43"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/react": "^19.1.12",
@@ -29,8 +29,8 @@
29
29
  },
30
30
  "peerDependencies": {
31
31
  "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
32
- "viem": "^2.45.2",
33
- "wagmi": "^2.0.0 || ^3.0.0"
32
+ "wagmi": "^2.0.0 || ^3.0.0",
33
+ "viem": "^2.45.2"
34
34
  },
35
35
  "exports": {
36
36
  ".": {