aegis-swap-widget 0.3.1 → 0.3.2

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 CHANGED
@@ -5,6 +5,14 @@ All notable changes to this project are documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.3.2] - 2026-06-08
9
+
10
+ ### Added
11
+ - Added controlled Trade details drawer state via `executionDetailsOpen` and
12
+ `onExecutionDetailsOpenChange`. Hosts can now coordinate the drawer with
13
+ their own layout while the widget keeps its existing uncontrolled
14
+ `defaultExecutionDetailsOpen` behavior when the controlled prop is omitted.
15
+
8
16
  ## [0.3.1] - 2026-06-08
9
17
 
10
18
  ### Added
@@ -214,7 +222,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
214
222
  - Initial embeddable direct-pool Aegis swap widget for WATER, WOOD, GRASS, and STONE.
215
223
  - Generic pool widget API; ERC-20 → Permit2 approval and Permit2 batch signing.
216
224
 
217
- [Unreleased]: https://github.com/amplifi-liquidity/aegis-widget/compare/v0.3.1...HEAD
225
+ [Unreleased]: https://github.com/amplifi-liquidity/aegis-widget/compare/v0.3.2...HEAD
226
+ [0.3.2]: https://github.com/amplifi-liquidity/aegis-widget/compare/v0.3.1...v0.3.2
218
227
  [0.3.1]: https://github.com/amplifi-liquidity/aegis-widget/compare/v0.3.0...v0.3.1
219
228
  [0.3.0]: https://github.com/amplifi-liquidity/aegis-widget/compare/v0.2.0...v0.3.0
220
229
  [0.2.0]: https://github.com/amplifi-liquidity/aegis-widget/compare/v0.1.3...v0.2.0
package/README.md CHANGED
@@ -548,6 +548,8 @@ No other props changed. See the [CHANGELOG](./CHANGELOG.md) for the full entry.
548
548
  - `showApprovalMode`: whether the details drawer exposes the Exact/Max approval toggle. Defaults to `true`.
549
549
  - `showExecutionDetails`: whether to render the collapsible drawer for trade details and, after a confirmed swap, the session-local Latest tx receipt. Defaults to `true`.
550
550
  - `defaultExecutionDetailsOpen`: whether that settings drawer starts expanded. Defaults to `false`.
551
+ - `executionDetailsOpen`: controlled open state for the Trade details drawer. Omit this for the widget's internal open/closed state.
552
+ - `onExecutionDetailsOpenChange`: fired when the user toggles the drawer, switches to `Trade` / `Latest tx`, or a successful swap requests the Latest tx view. In controlled mode, update `executionDetailsOpen` in response to actually open or close the drawer.
551
553
  - `statusSurface`: where transaction status is surfaced — `'rail'` (default), `'toast'`, `'both'`, or `'none'`. The root `data-progress-state` attribute stays on regardless (see Toasts).
552
554
  - `toastPosition`: viewport corner for the widget-provided toaster. Defaults to `'bottom-right'`; ignored once a host mounts `<AegisSwapToaster />`.
553
555