@pollar/react 0.10.1-rc.0 → 0.10.1-rc.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/README.md +27 -27
- package/dist/index.css +278 -182
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +73 -9
- package/dist/index.d.ts +73 -9
- package/dist/index.js +1659 -516
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1659 -517
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -244,19 +244,19 @@ provider:
|
|
|
244
244
|
Every modal mounts itself when its `openXModal()` action is called. You don't need to render these directly — they're
|
|
245
245
|
already wired inside `<PollarProvider>` — but they're exported in case you want to mount them yourself.
|
|
246
246
|
|
|
247
|
-
| Component
|
|
248
|
-
|
|
|
249
|
-
| `<WalletButton>`
|
|
250
|
-
| `<SendModal>`
|
|
251
|
-
| `<SwapModal>`
|
|
252
|
-
| `<ReceiveModal>`
|
|
253
|
-
| `<TxHistoryModal>`
|
|
254
|
-
| `<WalletBalanceModal>`
|
|
255
|
-
| `<EnabledAssetsModal>`
|
|
256
|
-
| `<DistributionRulesModal>` | Manage the wallet's distribution rules
|
|
257
|
-
| `<SessionsModal>`
|
|
258
|
-
| `<KycModal>`
|
|
259
|
-
| `<RampWidget>`
|
|
247
|
+
| Component | Purpose |
|
|
248
|
+
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
249
|
+
| `<WalletButton>` | Drop-in button. Opens login when signed out; signed in, shows the wallet address with a dropdown (Send, Receive, copy address, balance, history, ramp, KYC, distribution rules, sessions, sign out). Inline arc spinner during in-progress transactions |
|
|
250
|
+
| `<SendModal>` | Full send flow: asset picker, amount, destination, inline build > sign > success/error |
|
|
251
|
+
| `<SwapModal>` | On-chain asset-to-asset swap: pick from/to assets and amount, quote across venues, execute (auto-trustline on the buy asset when needed) |
|
|
252
|
+
| `<ReceiveModal>` | Wallet address as QR code with copy-to-clipboard (no external QR dependency required) |
|
|
253
|
+
| `<TxHistoryModal>` | Paginated transaction history with auto-fetch on open and stellar.expert explorer links |
|
|
254
|
+
| `<WalletBalanceModal>` | Stellar account balances with refresh button |
|
|
255
|
+
| `<EnabledAssetsModal>` | The application's dashboard-enabled assets with per-asset trustline state; establish/remove trustlines |
|
|
256
|
+
| `<DistributionRulesModal>` | Manage the wallet's distribution rules |
|
|
257
|
+
| `<SessionsModal>` | **New in 0.7.0.** Lists every active refresh-token family for the current user with device metadata, marks the local session, per-row revoke, and a "Sign out everywhere" button |
|
|
258
|
+
| `<KycModal>` | Identity verification flow - provider selection + status polling _(UI preview - backend coming soon)_ |
|
|
259
|
+
| `<RampWidget>` | Buy/sell crypto via SEP-24 - direction tabs, route comparison, payment instructions (wired to `client.createOnRamp` / `client.createOffRamp`) |
|
|
260
260
|
|
|
261
261
|
```tsx
|
|
262
262
|
import { WalletButton } from '@pollar/react';
|
|
@@ -273,21 +273,21 @@ export function Header() {
|
|
|
273
273
|
Every modal ships a pure presentational "template" companion — same name with a `Template` suffix. Use these when you
|
|
274
274
|
want to swap the chrome but keep the data wiring from `usePollar()`.
|
|
275
275
|
|
|
276
|
-
| Wrapper
|
|
277
|
-
|
|
|
278
|
-
| `<WalletButton>`
|
|
279
|
-
| _(internal LoginModal)_
|
|
280
|
-
| `<SendModal>`
|
|
281
|
-
| `<SwapModal>`
|
|
282
|
-
| `<ReceiveModal>`
|
|
283
|
-
| `<TransactionModal>`
|
|
284
|
-
| `<TxHistoryModal>`
|
|
285
|
-
| `<WalletBalanceModal>`
|
|
286
|
-
| `<EnabledAssetsModal>`
|
|
276
|
+
| Wrapper | Template |
|
|
277
|
+
| -------------------------- | ---------------------------------- |
|
|
278
|
+
| `<WalletButton>` | `<WalletButtonTemplate>` |
|
|
279
|
+
| _(internal LoginModal)_ | `<LoginModalTemplate>` |
|
|
280
|
+
| `<SendModal>` | `<SendModalTemplate>` |
|
|
281
|
+
| `<SwapModal>` | `<SwapModalTemplate>` |
|
|
282
|
+
| `<ReceiveModal>` | `<ReceiveModalTemplate>` |
|
|
283
|
+
| `<TransactionModal>` | `<TransactionModalTemplate>` |
|
|
284
|
+
| `<TxHistoryModal>` | `<TxHistoryModalTemplate>` |
|
|
285
|
+
| `<WalletBalanceModal>` | `<WalletBalanceModalTemplate>` |
|
|
286
|
+
| `<EnabledAssetsModal>` | `<EnabledAssetsModalTemplate>` |
|
|
287
287
|
| `<DistributionRulesModal>` | `<DistributionRulesModalTemplate>` |
|
|
288
|
-
| `<KycModal>`
|
|
289
|
-
| `<RampWidget>`
|
|
290
|
-
| `<SessionsModal>`
|
|
288
|
+
| `<KycModal>` | `<KycModalTemplate>` |
|
|
289
|
+
| `<RampWidget>` | `<RampWidgetTemplate>` |
|
|
290
|
+
| `<SessionsModal>` | `<SessionsModalTemplate>` |
|
|
291
291
|
|
|
292
292
|
`<TxStatusView>` is the shared status component (build → sign → success/error) reused by `TransactionModal` and
|
|
293
293
|
`SendModal`; it's exported on its own for consumers that want to embed the lifecycle elsewhere.
|