aegis-swap-widget 0.3.4 → 0.3.5

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
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 155f6d5: Route Connect wallet and network-switch CTAs through wallet actions before swap validation. Derive the aggregated widget's submit `data-action` from the wallet connection state so it reports `connect` instead of `swap` while the CTA reads "Connect wallet".
8
+
9
+ Confirm the wallet actually moved to the target chain before the network-switch
10
+ CTA advances, instead of optimistically marking it switched.
11
+
12
+ - Updated dependencies [d38966f]
13
+ - @aegis-engine/core@0.1.3
14
+
3
15
  ## 0.3.4
4
16
 
5
17
  ### Patch Changes
package/README.md CHANGED
@@ -20,7 +20,8 @@ npm install aegis-swap-widget
20
20
  ```
21
21
 
22
22
  Peer dependencies (provided by the host app): `react >=18 <20`, `react-dom >=18 <20`,
23
- and `viem ^2`. The package is ESM-only and ships no runtime dependencies of its own.
23
+ and `viem ^2`. The package is ESM-only. Its only runtime dependencies are
24
+ `@aegis-engine/core` (the swap engine) and `lucide-react` (icons).
24
25
 
25
26
  ## Basic Usage
26
27
 
@@ -46,6 +47,9 @@ Token icons are hydrated from the same metadata table used by the Aegis website:
46
47
 
47
48
  `aegis-swap-widget` is the production widget SDK. It uses real providers, RPCs,
48
49
  pool config, approvals, Permit2 authorization, swap submission, and callbacks.
50
+ Pull requests publish the package demo to the Cloudflare Pages branch URL
51
+ reported by Wrangler, for example
52
+ `https://pr-<number>.aegis-widget-preview.pages.dev`.
49
53
 
50
54
  Demo wallets, fake transaction flows, scenario controls, and mock host shells
51
55
  belong in the playground app (`apps/playground` in this monorepo). They are not