@pollar/react 0.12.1-rc.15 → 0.12.1-rc.16

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.mts CHANGED
@@ -1298,7 +1298,9 @@ interface TxDetailRow {
1298
1298
  interface TxReviewData {
1299
1299
  /** The action in plain words: what a user without crypto background reads first. */
1300
1300
  title: string;
1301
- kind: 'send' | 'bridge' | 'approve' | 'swap' | 'payment' | 'create_account' | 'deposit' | 'withdraw' | 'sign_in' | 'other';
1301
+ kind: 'send' | 'bridge' | 'approve' | 'swap' | 'payment' | 'create_account' | 'activate_wallet' | 'add_asset' | 'deposit' | 'withdraw' | 'sign_in' | 'other';
1302
+ /** One line under the title that says what the action is for, when the title alone does not. */
1303
+ lead?: string;
1302
1304
  from?: TxParty;
1303
1305
  to?: TxParty;
1304
1306
  /**
@@ -1307,6 +1309,7 @@ interface TxReviewData {
1307
1309
  */
1308
1310
  fee?: {
1309
1311
  sponsored: boolean;
1312
+ free?: boolean;
1310
1313
  };
1311
1314
  rows: TxDetailRow[];
1312
1315
  raw?: string;
@@ -1563,9 +1566,14 @@ interface CosignModalTemplateProps {
1563
1566
  onSelect: (request: CosignRequest) => void;
1564
1567
  onApprove: (request: CosignRequest) => void;
1565
1568
  onReject: (request: CosignRequest) => void;
1569
+ /** The user asked to close (the X): the container closes or asks first. */
1566
1570
  onClose: () => void;
1571
+ /** Closing was asked while a request waits: the modal asks before leaving it unsigned. */
1572
+ confirmingClose?: boolean;
1573
+ onKeepOpen?: () => void;
1574
+ onCloseAnyway?: () => void;
1567
1575
  }
1568
- declare function CosignModalTemplate({ theme, accentColor, styleOverrides, pending, current, verification, busy, error, approveBlocked, deviceNotLinked, onLinkDevice, lastResolved, explorerUrl, closesIn, nextStep, language: languageProp, network, onSelect, onApprove, onReject, onClose, }: CosignModalTemplateProps): react_jsx_runtime.JSX.Element;
1576
+ declare function CosignModalTemplate({ theme, accentColor, styleOverrides, pending, current, verification, busy, error, approveBlocked, deviceNotLinked, onLinkDevice, lastResolved, explorerUrl, closesIn, nextStep, language: languageProp, network, onSelect, onApprove, onReject, onClose, confirmingClose, onKeepOpen, onCloseAnyway, }: CosignModalTemplateProps): react_jsx_runtime.JSX.Element;
1569
1577
 
1570
1578
  interface CustodyMigrationModalProps {
1571
1579
  state: CustodyMigrationState;
package/dist/index.d.ts CHANGED
@@ -1298,7 +1298,9 @@ interface TxDetailRow {
1298
1298
  interface TxReviewData {
1299
1299
  /** The action in plain words: what a user without crypto background reads first. */
1300
1300
  title: string;
1301
- kind: 'send' | 'bridge' | 'approve' | 'swap' | 'payment' | 'create_account' | 'deposit' | 'withdraw' | 'sign_in' | 'other';
1301
+ kind: 'send' | 'bridge' | 'approve' | 'swap' | 'payment' | 'create_account' | 'activate_wallet' | 'add_asset' | 'deposit' | 'withdraw' | 'sign_in' | 'other';
1302
+ /** One line under the title that says what the action is for, when the title alone does not. */
1303
+ lead?: string;
1302
1304
  from?: TxParty;
1303
1305
  to?: TxParty;
1304
1306
  /**
@@ -1307,6 +1309,7 @@ interface TxReviewData {
1307
1309
  */
1308
1310
  fee?: {
1309
1311
  sponsored: boolean;
1312
+ free?: boolean;
1310
1313
  };
1311
1314
  rows: TxDetailRow[];
1312
1315
  raw?: string;
@@ -1563,9 +1566,14 @@ interface CosignModalTemplateProps {
1563
1566
  onSelect: (request: CosignRequest) => void;
1564
1567
  onApprove: (request: CosignRequest) => void;
1565
1568
  onReject: (request: CosignRequest) => void;
1569
+ /** The user asked to close (the X): the container closes or asks first. */
1566
1570
  onClose: () => void;
1571
+ /** Closing was asked while a request waits: the modal asks before leaving it unsigned. */
1572
+ confirmingClose?: boolean;
1573
+ onKeepOpen?: () => void;
1574
+ onCloseAnyway?: () => void;
1567
1575
  }
1568
- declare function CosignModalTemplate({ theme, accentColor, styleOverrides, pending, current, verification, busy, error, approveBlocked, deviceNotLinked, onLinkDevice, lastResolved, explorerUrl, closesIn, nextStep, language: languageProp, network, onSelect, onApprove, onReject, onClose, }: CosignModalTemplateProps): react_jsx_runtime.JSX.Element;
1576
+ declare function CosignModalTemplate({ theme, accentColor, styleOverrides, pending, current, verification, busy, error, approveBlocked, deviceNotLinked, onLinkDevice, lastResolved, explorerUrl, closesIn, nextStep, language: languageProp, network, onSelect, onApprove, onReject, onClose, confirmingClose, onKeepOpen, onCloseAnyway, }: CosignModalTemplateProps): react_jsx_runtime.JSX.Element;
1569
1577
 
1570
1578
  interface CustodyMigrationModalProps {
1571
1579
  state: CustodyMigrationState;