@glacislabs/stablegenie-zerodelta 4.5.0 → 4.6.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.
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
- export { B as BankPayoutAccount, E as Eip1193Provider, a as ExchangeMode, L as LinkIdentity, M as MountConfig, P as PaymentIsland, b as PaymentIslandKind, c as PaymentIslandProps, S as SettlementMethod, d as StableGenieConfig, e as StableGenieExchange, f as StableGenieExchangeProps, g as StableGeniePay, h as StableGeniePayProps, i as StableGenieProvider, j as StableGenieRwaExchange, k as StableGenieSwap, l as StableGenieSwapProps, m as StableGenieTheme, n as SuccessInfo, o as SupportedAsset, p as darkTheme, q as lightTheme, r as mount, s as resolveTheme } from './mount-BnAD7hWX.cjs';
1
+ export { B as BankPayoutAccount, E as Eip1193Provider, a as ExchangeMode, L as LinkIdentity, M as MountConfig, P as PaymentIsland, b as PaymentIslandKind, c as PaymentIslandProps, d as PillOpenAs, S as SettlementMethod, e as StableGenieConfig, f as StableGenieExchange, g as StableGenieExchangeProps, h as StableGeniePay, i as StableGeniePayProps, j as StableGenieProvider, k as StableGenieRwaExchange, l as StableGenieSwap, m as StableGenieSwapProps, n as StableGenieTheme, o as SuccessInfo, p as SupportedAsset, q as darkTheme, r as lightTheme, s as mount, t as resolveTheme } from './mount-DjeyxZcy.cjs';
2
2
  import * as react from 'react';
3
- import { C as Compliance } from './verify-D722uRwZ.cjs';
4
- export { A as Availability, B as BrokenLane, a as Catalogue, b as Chain, c as ComplianceCheck, d as ComplianceTone, e as ComplianceView, E as EngineConfig, f as ExchangeProduct, L as LaneLimit, P as Plan, R as Route, g as RouteLeg, h as RouteResult, S as SanitizedTxEntry, T as Token, i as TxHistoryEntry, V as VerifyResult, W as WalletScreen, j as assetClassOf, k as brokenLaneReason, l as complianceChecks, m as complianceControlsLine, n as complianceView, o as counterpartTokens, p as destinationAvailability, q as humanizeComplianceReason } from './verify-D722uRwZ.cjs';
3
+ import { C as Compliance } from './verify-DSCljQtK.cjs';
4
+ export { A as Availability, B as BrokenLane, a as Catalogue, b as Chain, c as ComplianceCheck, d as ComplianceTone, e as ComplianceView, E as EngineConfig, f as ExchangeProduct, L as LaneLimit, P as Plan, R as Route, g as RouteLeg, h as RouteResult, S as SanitizedTxEntry, T as Token, i as TxHistoryEntry, V as VerifyResult, W as WalletScreen, j as assetClassOf, k as brokenLaneReason, l as complianceChecks, m as complianceControlsLine, n as complianceView, o as counterpartTokens, p as destinationAvailability, q as humanizeComplianceReason } from './verify-DSCljQtK.cjs';
5
5
  export { EXECUTABLE_STABLE_ASSETS, Engine, STABLE_ASSETS, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, TRADEABLE_RWA_ASSETS, createEngine, symbolKey } from './core/index.cjs';
6
6
 
7
7
  declare function CompliancePanel(props: {
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { B as BankPayoutAccount, E as Eip1193Provider, a as ExchangeMode, L as LinkIdentity, M as MountConfig, P as PaymentIsland, b as PaymentIslandKind, c as PaymentIslandProps, S as SettlementMethod, d as StableGenieConfig, e as StableGenieExchange, f as StableGenieExchangeProps, g as StableGeniePay, h as StableGeniePayProps, i as StableGenieProvider, j as StableGenieRwaExchange, k as StableGenieSwap, l as StableGenieSwapProps, m as StableGenieTheme, n as SuccessInfo, o as SupportedAsset, p as darkTheme, q as lightTheme, r as mount, s as resolveTheme } from './mount-DcbU1gqd.js';
1
+ export { B as BankPayoutAccount, E as Eip1193Provider, a as ExchangeMode, L as LinkIdentity, M as MountConfig, P as PaymentIsland, b as PaymentIslandKind, c as PaymentIslandProps, d as PillOpenAs, S as SettlementMethod, e as StableGenieConfig, f as StableGenieExchange, g as StableGenieExchangeProps, h as StableGeniePay, i as StableGeniePayProps, j as StableGenieProvider, k as StableGenieRwaExchange, l as StableGenieSwap, m as StableGenieSwapProps, n as StableGenieTheme, o as SuccessInfo, p as SupportedAsset, q as darkTheme, r as lightTheme, s as mount, t as resolveTheme } from './mount-qV6l3ZuG.js';
2
2
  import * as react from 'react';
3
- import { C as Compliance } from './verify-D722uRwZ.js';
4
- export { A as Availability, B as BrokenLane, a as Catalogue, b as Chain, c as ComplianceCheck, d as ComplianceTone, e as ComplianceView, E as EngineConfig, f as ExchangeProduct, L as LaneLimit, P as Plan, R as Route, g as RouteLeg, h as RouteResult, S as SanitizedTxEntry, T as Token, i as TxHistoryEntry, V as VerifyResult, W as WalletScreen, j as assetClassOf, k as brokenLaneReason, l as complianceChecks, m as complianceControlsLine, n as complianceView, o as counterpartTokens, p as destinationAvailability, q as humanizeComplianceReason } from './verify-D722uRwZ.js';
3
+ import { C as Compliance } from './verify-DSCljQtK.js';
4
+ export { A as Availability, B as BrokenLane, a as Catalogue, b as Chain, c as ComplianceCheck, d as ComplianceTone, e as ComplianceView, E as EngineConfig, f as ExchangeProduct, L as LaneLimit, P as Plan, R as Route, g as RouteLeg, h as RouteResult, S as SanitizedTxEntry, T as Token, i as TxHistoryEntry, V as VerifyResult, W as WalletScreen, j as assetClassOf, k as brokenLaneReason, l as complianceChecks, m as complianceControlsLine, n as complianceView, o as counterpartTokens, p as destinationAvailability, q as humanizeComplianceReason } from './verify-DSCljQtK.js';
5
5
  export { EXECUTABLE_STABLE_ASSETS, Engine, STABLE_ASSETS, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, TRADEABLE_RWA_ASSETS, createEngine, symbolKey } from './core/index.js';
6
6
 
7
7
  declare function CompliancePanel(props: {
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { CompliancePanel, PaymentIsland, StableGenieExchange, StableGeniePay, StableGenieProvider, StableGenieRwaExchange, StableGenieSwap, darkTheme, lightTheme, mount, resolveTheme } from './chunk-COBXR362.js';
2
- export { EXECUTABLE_STABLE_ASSETS, STABLE_ASSETS, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, TRADEABLE_RWA_ASSETS, assetClassOf, brokenLaneReason, complianceChecks, complianceControlsLine, complianceView, counterpartTokens, createEngine, destinationAvailability, humanizeComplianceReason, symbolKey } from './chunk-447DEZ5S.js';
1
+ export { CompliancePanel, PaymentIsland, StableGenieExchange, StableGeniePay, StableGenieProvider, StableGenieRwaExchange, StableGenieSwap, darkTheme, lightTheme, mount, resolveTheme } from './chunk-GBV2QVCH.js';
2
+ export { EXECUTABLE_STABLE_ASSETS, STABLE_ASSETS, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, TRADEABLE_RWA_ASSETS, assetClassOf, brokenLaneReason, complianceChecks, complianceControlsLine, complianceView, counterpartTokens, createEngine, destinationAvailability, humanizeComplianceReason, symbolKey } from './chunk-CEBEMZHZ.js';
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { P as Plan, V as VerifyResult, h as RouteResult, S as SanitizedTxEntry, f as ExchangeProduct } from './verify-D722uRwZ.cjs';
3
+ import { P as Plan, V as VerifyResult, h as RouteResult, S as SanitizedTxEntry, f as ExchangeProduct } from './verify-DSCljQtK.cjs';
4
4
 
5
5
  interface Eip1193Provider {
6
6
  request(args: {
@@ -26,6 +26,15 @@ interface StableGenieTheme {
26
26
  radiusControl: string;
27
27
  radiusCta: string;
28
28
  font: string;
29
+ /** Face for the big numbers (the amounts in "You pay" / "You receive"). Optional: omitted, the
30
+ * amounts use `font`. The default names Benzin first — the ZeroDelta display face — and falls back
31
+ * to `font` on a host that does not load it, so nothing is fetched on the widget's behalf. */
32
+ fontDisplay?: string;
33
+ /** Colour of the Quote row's icon and its route pill. Optional: omitted, it follows `accent` — except
34
+ * in the default dark palette, which uses a lighter lavender (#8c9bff) that reads on the dark card.
35
+ * A theme whose accent means something else (a green that would read as "passed") can set a neutral
36
+ * here instead. */
37
+ info?: string;
29
38
  motionFast: string;
30
39
  motionBase: string;
31
40
  motionSlow: string;
@@ -68,6 +77,9 @@ declare function StableGenieProvider({ children, ...config }: StableGenieConfig
68
77
  children: ReactNode;
69
78
  }): react.JSX.Element;
70
79
 
80
+ /** How the pill opens its card: centred over the page, or docked to the right edge. */
81
+ type PillOpenAs = "modal" | "drawer";
82
+
71
83
  type ExchangeMode = "exchange" | "onramp" | "offramp";
72
84
  interface StableGenieExchangeProps extends StableGenieConfig {
73
85
  mode?: ExchangeMode;
@@ -85,8 +97,11 @@ interface StableGenieExchangeProps extends StableGenieConfig {
85
97
  * dapp reaches the same conclusion with one `mode` prop on one Swap page.
86
98
  */
87
99
  product?: ExchangeProduct;
88
- /** "pill" → ZeroDelta Link express checkout (the shared PaymentIsland). */
100
+ /** "pill" → one "Exchange with ZeroDelta" button that opens the compact card (see `openAs`). */
89
101
  variant?: "compact" | "wide" | "pill";
102
+ /** With `variant="pill"`: open the card centred over the page ("modal", default) or docked to the
103
+ * right edge ("drawer"). Ignored by the other variants. */
104
+ openAs?: PillOpenAs;
90
105
  /** Fixed widget height in px (content scrolls). Omit for fit-content. */
91
106
  heightPx?: number;
92
107
  /** Narrows the product's universe further. Omit for everything the product carries. */
@@ -199,16 +214,20 @@ interface StableGeniePayProps extends StableGenieConfig {
199
214
  fundingAssets?: SupportedAsset[];
200
215
  /** Fixed widget height in px (content scrolls). Omit for fit-content. */
201
216
  heightPx?: number;
202
- /** "pill" → ZeroDelta Link: a collapsed express-checkout button that morphs into a 1-click card
203
- * (the shared PaymentIsland). Omit for the standard full card. */
217
+ /** "pill" → one "Pay with ZeroDelta" button that opens the payment card (see `openAs`). Omit for
218
+ * the standard full card. */
204
219
  variant?: "pill";
205
- /** The money shown on the collapsed pill face, e.g. "$99.00" (pill variant only). */
220
+ /** With `variant="pill"`: open the card centred over the page ("modal", default) or docked to the
221
+ * right edge ("drawer"). */
222
+ openAs?: PillOpenAs;
223
+ /** The money shown on the pill face, e.g. "$99.00" (pill variant only). */
206
224
  moneyDisplay?: string;
207
- /** Start the pill's 1-click card expanded instead of collapsed (pill variant only). */
225
+ /** Start with the pill's card already open (pill variant only). */
208
226
  defaultExpanded?: boolean;
209
227
  /** How YOU (the integrator) want to be settled — never a payer choice. "stablecoin" (default)
210
228
  * settles on-chain to `recipient`. "bank" is a roadmap rail, so the card parks with an honest
211
- * coming-soon panel instead of quoting a settlement the engine cannot perform. Pill only. */
229
+ * coming-soon panel instead of quoting a settlement the engine cannot perform. Pill only — and
230
+ * a "bank" pill keeps the ZeroDelta Link island, the one surface that renders that panel. */
212
231
  settlement?: SettlementMethod;
213
232
  /** Your payout account, shown when `settlement === "bank"`. Display-only — pass a masked tail,
214
233
  * never a full account number. Pill only. */
@@ -241,4 +260,4 @@ type MountConfig = ({
241
260
  /** Imperatively mount a widget into an element (for non-JSX / vanilla React hosts). Returns unmount. */
242
261
  declare function mount(el: HTMLElement, config: MountConfig): () => void;
243
262
 
244
- export { type BankPayoutAccount as B, type Eip1193Provider as E, type LinkIdentity as L, type MountConfig as M, PaymentIsland as P, type SettlementMethod as S, type ExchangeMode as a, type PaymentIslandKind as b, type PaymentIslandProps as c, type StableGenieConfig as d, StableGenieExchange as e, type StableGenieExchangeProps as f, StableGeniePay as g, type StableGeniePayProps as h, StableGenieProvider as i, StableGenieRwaExchange as j, StableGenieSwap as k, type StableGenieSwapProps as l, type StableGenieTheme as m, type SuccessInfo as n, type SupportedAsset as o, darkTheme as p, lightTheme as q, mount as r, resolveTheme as s };
263
+ export { type BankPayoutAccount as B, type Eip1193Provider as E, type LinkIdentity as L, type MountConfig as M, PaymentIsland as P, type SettlementMethod as S, type ExchangeMode as a, type PaymentIslandKind as b, type PaymentIslandProps as c, type PillOpenAs as d, type StableGenieConfig as e, StableGenieExchange as f, type StableGenieExchangeProps as g, StableGeniePay as h, type StableGeniePayProps as i, StableGenieProvider as j, StableGenieRwaExchange as k, StableGenieSwap as l, type StableGenieSwapProps as m, type StableGenieTheme as n, type SuccessInfo as o, type SupportedAsset as p, darkTheme as q, lightTheme as r, mount as s, resolveTheme as t };
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { P as Plan, V as VerifyResult, h as RouteResult, S as SanitizedTxEntry, f as ExchangeProduct } from './verify-D722uRwZ.js';
3
+ import { P as Plan, V as VerifyResult, h as RouteResult, S as SanitizedTxEntry, f as ExchangeProduct } from './verify-DSCljQtK.js';
4
4
 
5
5
  interface Eip1193Provider {
6
6
  request(args: {
@@ -26,6 +26,15 @@ interface StableGenieTheme {
26
26
  radiusControl: string;
27
27
  radiusCta: string;
28
28
  font: string;
29
+ /** Face for the big numbers (the amounts in "You pay" / "You receive"). Optional: omitted, the
30
+ * amounts use `font`. The default names Benzin first — the ZeroDelta display face — and falls back
31
+ * to `font` on a host that does not load it, so nothing is fetched on the widget's behalf. */
32
+ fontDisplay?: string;
33
+ /** Colour of the Quote row's icon and its route pill. Optional: omitted, it follows `accent` — except
34
+ * in the default dark palette, which uses a lighter lavender (#8c9bff) that reads on the dark card.
35
+ * A theme whose accent means something else (a green that would read as "passed") can set a neutral
36
+ * here instead. */
37
+ info?: string;
29
38
  motionFast: string;
30
39
  motionBase: string;
31
40
  motionSlow: string;
@@ -68,6 +77,9 @@ declare function StableGenieProvider({ children, ...config }: StableGenieConfig
68
77
  children: ReactNode;
69
78
  }): react.JSX.Element;
70
79
 
80
+ /** How the pill opens its card: centred over the page, or docked to the right edge. */
81
+ type PillOpenAs = "modal" | "drawer";
82
+
71
83
  type ExchangeMode = "exchange" | "onramp" | "offramp";
72
84
  interface StableGenieExchangeProps extends StableGenieConfig {
73
85
  mode?: ExchangeMode;
@@ -85,8 +97,11 @@ interface StableGenieExchangeProps extends StableGenieConfig {
85
97
  * dapp reaches the same conclusion with one `mode` prop on one Swap page.
86
98
  */
87
99
  product?: ExchangeProduct;
88
- /** "pill" → ZeroDelta Link express checkout (the shared PaymentIsland). */
100
+ /** "pill" → one "Exchange with ZeroDelta" button that opens the compact card (see `openAs`). */
89
101
  variant?: "compact" | "wide" | "pill";
102
+ /** With `variant="pill"`: open the card centred over the page ("modal", default) or docked to the
103
+ * right edge ("drawer"). Ignored by the other variants. */
104
+ openAs?: PillOpenAs;
90
105
  /** Fixed widget height in px (content scrolls). Omit for fit-content. */
91
106
  heightPx?: number;
92
107
  /** Narrows the product's universe further. Omit for everything the product carries. */
@@ -199,16 +214,20 @@ interface StableGeniePayProps extends StableGenieConfig {
199
214
  fundingAssets?: SupportedAsset[];
200
215
  /** Fixed widget height in px (content scrolls). Omit for fit-content. */
201
216
  heightPx?: number;
202
- /** "pill" → ZeroDelta Link: a collapsed express-checkout button that morphs into a 1-click card
203
- * (the shared PaymentIsland). Omit for the standard full card. */
217
+ /** "pill" → one "Pay with ZeroDelta" button that opens the payment card (see `openAs`). Omit for
218
+ * the standard full card. */
204
219
  variant?: "pill";
205
- /** The money shown on the collapsed pill face, e.g. "$99.00" (pill variant only). */
220
+ /** With `variant="pill"`: open the card centred over the page ("modal", default) or docked to the
221
+ * right edge ("drawer"). */
222
+ openAs?: PillOpenAs;
223
+ /** The money shown on the pill face, e.g. "$99.00" (pill variant only). */
206
224
  moneyDisplay?: string;
207
- /** Start the pill's 1-click card expanded instead of collapsed (pill variant only). */
225
+ /** Start with the pill's card already open (pill variant only). */
208
226
  defaultExpanded?: boolean;
209
227
  /** How YOU (the integrator) want to be settled — never a payer choice. "stablecoin" (default)
210
228
  * settles on-chain to `recipient`. "bank" is a roadmap rail, so the card parks with an honest
211
- * coming-soon panel instead of quoting a settlement the engine cannot perform. Pill only. */
229
+ * coming-soon panel instead of quoting a settlement the engine cannot perform. Pill only — and
230
+ * a "bank" pill keeps the ZeroDelta Link island, the one surface that renders that panel. */
212
231
  settlement?: SettlementMethod;
213
232
  /** Your payout account, shown when `settlement === "bank"`. Display-only — pass a masked tail,
214
233
  * never a full account number. Pill only. */
@@ -241,4 +260,4 @@ type MountConfig = ({
241
260
  /** Imperatively mount a widget into an element (for non-JSX / vanilla React hosts). Returns unmount. */
242
261
  declare function mount(el: HTMLElement, config: MountConfig): () => void;
243
262
 
244
- export { type BankPayoutAccount as B, type Eip1193Provider as E, type LinkIdentity as L, type MountConfig as M, PaymentIsland as P, type SettlementMethod as S, type ExchangeMode as a, type PaymentIslandKind as b, type PaymentIslandProps as c, type StableGenieConfig as d, StableGenieExchange as e, type StableGenieExchangeProps as f, StableGeniePay as g, type StableGeniePayProps as h, StableGenieProvider as i, StableGenieRwaExchange as j, StableGenieSwap as k, type StableGenieSwapProps as l, type StableGenieTheme as m, type SuccessInfo as n, type SupportedAsset as o, darkTheme as p, lightTheme as q, mount as r, resolveTheme as s };
263
+ export { type BankPayoutAccount as B, type Eip1193Provider as E, type LinkIdentity as L, type MountConfig as M, PaymentIsland as P, type SettlementMethod as S, type ExchangeMode as a, type PaymentIslandKind as b, type PaymentIslandProps as c, type PillOpenAs as d, type StableGenieConfig as e, StableGenieExchange as f, type StableGenieExchangeProps as g, StableGeniePay as h, type StableGeniePayProps as i, StableGenieProvider as j, StableGenieRwaExchange as k, StableGenieSwap as l, type StableGenieSwapProps as m, type StableGenieTheme as n, type SuccessInfo as o, type SupportedAsset as p, darkTheme as q, lightTheme as r, mount as s, resolveTheme as t };