@tuwaio/nova-transactions 0.4.0 → 0.4.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.
@@ -91,7 +91,7 @@ type NovaTransactionsLabels = {
91
91
  /** Labels related to toast notifications. */
92
92
  toast: {
93
93
  /** Text for the button/link within a toast to open the wallet modal. */
94
- openTransactionsInfo: string;
94
+ openTransaction: string;
95
95
  };
96
96
  /** Standard labels for transaction statuses. */
97
97
  statuses: {
@@ -189,6 +189,83 @@ type NovaTransactionsLabels = {
189
189
  /** Text for a generic "Speed up" action. */
190
190
  speedUp: string;
191
191
  };
192
+ /** Labels for the detailed transaction view. */
193
+ transactionDetails: {
194
+ /** Main title for the detailed view. */
195
+ title: string;
196
+ /** Subtitle for the detailed view. */
197
+ subtitle: string;
198
+ /** Label for the metadata section. */
199
+ metadata: string;
200
+ /** Label for the execution data section. */
201
+ executionData: string;
202
+ /** Label for the adapter type. */
203
+ adapter: string;
204
+ /** Label for the submission time. */
205
+ submittedAt: string;
206
+ /** Label for the completion time. */
207
+ finishedAt: string;
208
+ /** Label for the tracker name. */
209
+ tracker: string;
210
+ /** Label for the connector type. */
211
+ connector: string;
212
+ /** Label for the confirmations count. */
213
+ confirmations: string;
214
+ /** Label for the internal transaction key. */
215
+ txKey: string;
216
+ /** Label for the origin address. */
217
+ from: string;
218
+ /** Label for the recipient address. */
219
+ to: string;
220
+ /** Label for the transaction hash. */
221
+ hash: string;
222
+ /** Label for the network name. */
223
+ network: string;
224
+ /** Label for the raw input data. */
225
+ inputData: string;
226
+ /** Label for the payload data section. */
227
+ payload: string;
228
+ /** Label for the context block. */
229
+ context: string;
230
+ /** Label for the nonce. */
231
+ nonce: string;
232
+ /** Label for the raw value. */
233
+ value: string;
234
+ /** Label for the max fee per gas. */
235
+ maxFee: string;
236
+ /** Label for the max priority fee per gas. */
237
+ maxPriorityFee: string;
238
+ /** Label for the Solana section title. */
239
+ solanaTitle: string;
240
+ /** Label for the Starknet section title. */
241
+ starknetTitle: string;
242
+ /** Label for the Context section title. */
243
+ contextTitle: string;
244
+ /** Label for the Fee. */
245
+ fee: string;
246
+ /** Label for the Slot. */
247
+ slot: string;
248
+ /** Label for the Instructions. */
249
+ instructions: string;
250
+ /** Label for the Recent Blockhash. */
251
+ recentBlockhash: string;
252
+ /** Label for the Contract Address. */
253
+ contractAddress: string;
254
+ /** Label for the Actual Fee. */
255
+ actualFee: string;
256
+ /** Label for the Title Context. */
257
+ titleContext: string;
258
+ /** Label for the Description Context. */
259
+ descriptionContext: string;
260
+ /** Label for the Error Context. */
261
+ errorContext: string;
262
+ /** Label for the Full Payload. */
263
+ fullPayload: string;
264
+ /** Label for the RPC URL. */
265
+ rpcUrl: string;
266
+ /** Label for the Replaced Hash. */
267
+ replacedHash: string;
268
+ };
192
269
  };
193
270
 
194
271
  /**
@@ -266,6 +343,10 @@ type ToastTransactionCustomization<T extends Transaction> = {
266
343
  TxInfoButton?: ComponentType<CustomActionButtonProps>;
267
344
  SpeedUpButton?: ComponentType<CustomActionButtonProps>;
268
345
  CancelButton?: ComponentType<CustomActionButtonProps>;
346
+ ConfirmationsBadge?: ComponentType<{
347
+ count: number | string;
348
+ className?: string;
349
+ }>;
269
350
  };
270
351
  /** Granular classNames for all sub-elements */
271
352
  classNames?: {
@@ -311,11 +392,13 @@ type ToastTransactionCustomization<T extends Transaction> = {
311
392
  cancelButton?: string;
312
393
  /** Classes for the TxInfo button */
313
394
  txInfoButton?: string;
395
+ /** Classes for the confirmations badge */
396
+ confirmationsBadge?: string;
314
397
  };
315
398
  };
316
399
  type ToastTransactionProps<T extends Transaction> = {
317
400
  tx: T;
318
- openTxInfoModal?: () => void;
401
+ openTxInfoModal?: (txKey?: string) => void;
319
402
  icon?: ReactNode;
320
403
  className?: string;
321
404
  customization?: ToastTransactionCustomization<T>;
@@ -556,6 +639,99 @@ type TxStatusVisualProps = {
556
639
  */
557
640
  declare function TxStatusVisual({ isProcessing, isSucceed, isFailed, isReplaced, className: containerClassName, iconClassNames, }: TxStatusVisualProps): react_jsx_runtime.JSX.Element;
558
641
 
642
+ /** Props for a copyable field block */
643
+ type CopyableFieldProps = {
644
+ label: string;
645
+ value: string;
646
+ mono?: boolean;
647
+ className?: string;
648
+ children?: ReactNode;
649
+ classNames?: {
650
+ label?: string;
651
+ container?: string;
652
+ code?: string;
653
+ copyButton?: string;
654
+ };
655
+ };
656
+ /** Props for a single detail item (Label + Value) */
657
+ type DetailItemProps = {
658
+ label: string;
659
+ value: string | number | null | undefined;
660
+ mono?: boolean;
661
+ className?: string;
662
+ classNames?: {
663
+ label?: string;
664
+ value?: string;
665
+ };
666
+ };
667
+ /** Props for a row in the metadata section */
668
+ type MetadataRowProps = {
669
+ icon: ComponentType<{
670
+ className?: string;
671
+ }>;
672
+ label: string;
673
+ children: ReactNode;
674
+ className?: string;
675
+ classNames?: {
676
+ icon?: string;
677
+ label?: string;
678
+ value?: string;
679
+ };
680
+ };
681
+ /** Props for a JSON/Code block */
682
+ type JsonBlockProps = {
683
+ label: string;
684
+ data: unknown;
685
+ className?: string;
686
+ classNames?: {
687
+ header?: string;
688
+ label?: string;
689
+ copyButton?: string;
690
+ container?: string;
691
+ pre?: string;
692
+ };
693
+ };
694
+ type TransactionDetailsCustomization = {
695
+ /** Custom class names for all sub-elements */
696
+ classNames?: {
697
+ container?: string;
698
+ header?: string;
699
+ backButton?: string;
700
+ statusIconContainer?: string;
701
+ title?: string;
702
+ subtitle?: string;
703
+ coreInfoCard?: string;
704
+ networkBadge?: string;
705
+ metadataSection?: string;
706
+ executionSection?: string;
707
+ };
708
+ /** Custom components to override default elements */
709
+ components?: {
710
+ SectionCard?: ComponentType<{
711
+ children: ReactNode;
712
+ className?: string;
713
+ }>;
714
+ SectionHeading?: ComponentType<{
715
+ children: ReactNode;
716
+ className?: string;
717
+ }>;
718
+ CopyableField?: ComponentType<CopyableFieldProps>;
719
+ DetailItem?: ComponentType<DetailItemProps>;
720
+ MetadataRow?: ComponentType<MetadataRowProps>;
721
+ JsonBlock?: ComponentType<JsonBlockProps>;
722
+ };
723
+ };
724
+ type TransactionDetailsProps<T extends Transaction> = Pick<NovaTransactionsProviderProps<T>, 'adapter'> & {
725
+ tx: T;
726
+ onBack: () => void;
727
+ className?: string;
728
+ customization?: TransactionDetailsCustomization;
729
+ };
730
+ /**
731
+ * TransactionDetails component provides a deep look into a specific transaction's metadata and execution state.
732
+ */
733
+ declare function TransactionDetails<T extends Transaction>({ tx, onBack, adapter, className, customization, }: TransactionDetailsProps<T>): react_jsx_runtime.JSX.Element;
734
+
559
735
  /**
560
736
  * @file This file contains the `TransactionHistoryItem` component, which renders a single transaction
561
737
  * in a list format for the transaction history view.
@@ -628,8 +804,12 @@ type TransactionHistoryItemProps<T extends Transaction> = {
628
804
  customization?: TransactionHistoryItemCustomization<T>;
629
805
  /** Optional additional CSS classes for the container. */
630
806
  className?: string;
807
+ /** Callback triggered when the item is selected to view details. */
808
+ onSelectTx?: () => void;
809
+ /** Whether transaction details can be viewed by clicking on history items. */
810
+ canViewDetails?: boolean;
631
811
  } & Pick<NovaTransactionsProviderProps<T>, 'adapter'>;
632
- declare function TransactionHistoryItem<T extends Transaction>({ tx, adapter, className, customization, }: TransactionHistoryItemProps<T>): JSX.Element;
812
+ declare function TransactionHistoryItem<T extends Transaction>({ tx, adapter, className, customization, onSelectTx, canViewDetails, }: TransactionHistoryItemProps<T>): JSX.Element;
633
813
 
634
814
  type CustomPlaceholderProps = {
635
815
  title: string;
@@ -714,14 +894,20 @@ type TransactionsHistoryCustomization<T extends Transaction> = {
714
894
  /** Custom loader component rendered at the bottom during pagination loading */
715
895
  Loader?: ComponentType<TransactionsHistoryLoaderProps>;
716
896
  };
897
+ /** Customization for the detailed transaction view */
898
+ detailsCustomization?: TransactionDetailsCustomization;
717
899
  };
718
900
  type TransactionsHistoryProps<T extends Transaction> = Pick<NovaTransactionsProviderProps<T>, 'adapter' | 'transactionsPool' | 'connectedWalletAddress'> & {
719
901
  className?: string;
720
902
  customization?: TransactionsHistoryCustomization<T>;
721
903
  /** Pagination state for infinite scroll. Uses TxInMemoryPagination from @tuwaio/pulsar-core. */
722
904
  pagination?: TxInMemoryPagination;
905
+ /** Optional transaction key to open directly in detail view */
906
+ initialTxKey?: string | null;
907
+ /** Whether transaction details can be viewed by clicking on history items. Defaults to true. */
908
+ canViewDetails?: boolean;
723
909
  };
724
- declare function TransactionsHistory<T extends Transaction>({ adapter, connectedWalletAddress, transactionsPool, className, customization, pagination, }: TransactionsHistoryProps<T>): react_jsx_runtime.JSX.Element;
910
+ declare function TransactionsHistory<T extends Transaction>({ adapter, connectedWalletAddress, transactionsPool, className, customization, pagination, initialTxKey, canViewDetails, }: TransactionsHistoryProps<T>): react_jsx_runtime.JSX.Element;
725
911
 
726
912
  type CustomHeaderProps = {
727
913
  closeModal: () => void;
@@ -753,7 +939,9 @@ type TransactionsInfoModalProps<T extends Transaction> = Pick<NovaTransactionsPr
753
939
  customization?: TransactionsInfoModalCustomization<T>;
754
940
  /** Pagination state for infinite scroll, forwarded to TransactionsHistory. */
755
941
  pagination?: TxInMemoryPagination;
942
+ /** Optional transaction key to open directly in detail view */
943
+ selectedTxKey?: string | null;
756
944
  };
757
- declare function TransactionsInfoModal<T extends Transaction>({ isOpen, setIsOpen, customization, adapter, connectedWalletAddress, transactionsPool, pagination, }: TransactionsInfoModalProps<T>): react_jsx_runtime.JSX.Element;
945
+ declare function TransactionsInfoModal<T extends Transaction>({ isOpen, setIsOpen, customization, adapter, connectedWalletAddress, transactionsPool, pagination, selectedTxKey, }: TransactionsInfoModalProps<T>): react_jsx_runtime.JSX.Element;
758
946
 
759
- export { type TransactionsHistoryLoaderProps as A, type TransactionsHistoryCustomization as B, type TransactionsHistoryProps as C, TransactionsHistory as D, type TransactionsInfoModalCustomization as E, type TransactionsInfoModalProps as F, TransactionsInfoModal as G, type HashLinkProps as H, type TransactionStatusBadgeProps as I, TransactionStatusBadge as J, type NovaTransactionsProviderProps as K, NovaTransactionsProvider as L, type NovaTransactionsLabels as N, type StatusAwareTextProps as S, type ToastTransactionCustomization as T, HashLink as a, StatusAwareText as b, type ToastTransactionProps as c, ToastTransaction as d, type TrackingTxModalCustomization as e, type TrackingTxModalProps as f, TrackingTxModal as g, type TxErrorBlockClassNames as h, type TxErrorBlockProps as i, TxErrorBlock as j, type TxInfoBlockCustomization as k, type TxInfoBlockProps as l, TxInfoBlock as m, type StepStatus as n, type StepClassNames as o, type StepProps as p, type TxProgressIndicatorProps as q, TxProgressIndicator as r, type TxStatusVisualClassNames as s, type TxStatusVisualProps as t, TxStatusVisual as u, type TransactionHistoryItemCustomization as v, type TransactionHistoryItemProps as w, TransactionHistoryItem as x, type TransactionKeyProps as y, TransactionKey as z };
947
+ export { TransactionHistoryItem as A, type TransactionKeyProps as B, type CopyableFieldProps as C, type DetailItemProps as D, TransactionKey as E, type TransactionsHistoryLoaderProps as F, type TransactionsHistoryCustomization as G, type HashLinkProps as H, type TransactionsHistoryProps as I, type JsonBlockProps as J, TransactionsHistory as K, type TransactionsInfoModalCustomization as L, type MetadataRowProps as M, type NovaTransactionsLabels as N, type TransactionsInfoModalProps as O, TransactionsInfoModal as P, type TransactionStatusBadgeProps as Q, TransactionStatusBadge as R, type StatusAwareTextProps as S, type ToastTransactionCustomization as T, type NovaTransactionsProviderProps as U, NovaTransactionsProvider as V, HashLink as a, StatusAwareText as b, type ToastTransactionProps as c, ToastTransaction as d, type TrackingTxModalCustomization as e, type TrackingTxModalProps as f, TrackingTxModal as g, type TxErrorBlockClassNames as h, type TxErrorBlockProps as i, TxErrorBlock as j, type TxInfoBlockCustomization as k, type TxInfoBlockProps as l, TxInfoBlock as m, type StepStatus as n, type StepClassNames as o, type StepProps as p, type TxProgressIndicatorProps as q, TxProgressIndicator as r, type TxStatusVisualClassNames as s, type TxStatusVisualProps as t, TxStatusVisual as u, type TransactionDetailsCustomization as v, type TransactionDetailsProps as w, TransactionDetails as x, type TransactionHistoryItemCustomization as y, type TransactionHistoryItemProps as z };
@@ -91,7 +91,7 @@ type NovaTransactionsLabels = {
91
91
  /** Labels related to toast notifications. */
92
92
  toast: {
93
93
  /** Text for the button/link within a toast to open the wallet modal. */
94
- openTransactionsInfo: string;
94
+ openTransaction: string;
95
95
  };
96
96
  /** Standard labels for transaction statuses. */
97
97
  statuses: {
@@ -189,6 +189,83 @@ type NovaTransactionsLabels = {
189
189
  /** Text for a generic "Speed up" action. */
190
190
  speedUp: string;
191
191
  };
192
+ /** Labels for the detailed transaction view. */
193
+ transactionDetails: {
194
+ /** Main title for the detailed view. */
195
+ title: string;
196
+ /** Subtitle for the detailed view. */
197
+ subtitle: string;
198
+ /** Label for the metadata section. */
199
+ metadata: string;
200
+ /** Label for the execution data section. */
201
+ executionData: string;
202
+ /** Label for the adapter type. */
203
+ adapter: string;
204
+ /** Label for the submission time. */
205
+ submittedAt: string;
206
+ /** Label for the completion time. */
207
+ finishedAt: string;
208
+ /** Label for the tracker name. */
209
+ tracker: string;
210
+ /** Label for the connector type. */
211
+ connector: string;
212
+ /** Label for the confirmations count. */
213
+ confirmations: string;
214
+ /** Label for the internal transaction key. */
215
+ txKey: string;
216
+ /** Label for the origin address. */
217
+ from: string;
218
+ /** Label for the recipient address. */
219
+ to: string;
220
+ /** Label for the transaction hash. */
221
+ hash: string;
222
+ /** Label for the network name. */
223
+ network: string;
224
+ /** Label for the raw input data. */
225
+ inputData: string;
226
+ /** Label for the payload data section. */
227
+ payload: string;
228
+ /** Label for the context block. */
229
+ context: string;
230
+ /** Label for the nonce. */
231
+ nonce: string;
232
+ /** Label for the raw value. */
233
+ value: string;
234
+ /** Label for the max fee per gas. */
235
+ maxFee: string;
236
+ /** Label for the max priority fee per gas. */
237
+ maxPriorityFee: string;
238
+ /** Label for the Solana section title. */
239
+ solanaTitle: string;
240
+ /** Label for the Starknet section title. */
241
+ starknetTitle: string;
242
+ /** Label for the Context section title. */
243
+ contextTitle: string;
244
+ /** Label for the Fee. */
245
+ fee: string;
246
+ /** Label for the Slot. */
247
+ slot: string;
248
+ /** Label for the Instructions. */
249
+ instructions: string;
250
+ /** Label for the Recent Blockhash. */
251
+ recentBlockhash: string;
252
+ /** Label for the Contract Address. */
253
+ contractAddress: string;
254
+ /** Label for the Actual Fee. */
255
+ actualFee: string;
256
+ /** Label for the Title Context. */
257
+ titleContext: string;
258
+ /** Label for the Description Context. */
259
+ descriptionContext: string;
260
+ /** Label for the Error Context. */
261
+ errorContext: string;
262
+ /** Label for the Full Payload. */
263
+ fullPayload: string;
264
+ /** Label for the RPC URL. */
265
+ rpcUrl: string;
266
+ /** Label for the Replaced Hash. */
267
+ replacedHash: string;
268
+ };
192
269
  };
193
270
 
194
271
  /**
@@ -266,6 +343,10 @@ type ToastTransactionCustomization<T extends Transaction> = {
266
343
  TxInfoButton?: ComponentType<CustomActionButtonProps>;
267
344
  SpeedUpButton?: ComponentType<CustomActionButtonProps>;
268
345
  CancelButton?: ComponentType<CustomActionButtonProps>;
346
+ ConfirmationsBadge?: ComponentType<{
347
+ count: number | string;
348
+ className?: string;
349
+ }>;
269
350
  };
270
351
  /** Granular classNames for all sub-elements */
271
352
  classNames?: {
@@ -311,11 +392,13 @@ type ToastTransactionCustomization<T extends Transaction> = {
311
392
  cancelButton?: string;
312
393
  /** Classes for the TxInfo button */
313
394
  txInfoButton?: string;
395
+ /** Classes for the confirmations badge */
396
+ confirmationsBadge?: string;
314
397
  };
315
398
  };
316
399
  type ToastTransactionProps<T extends Transaction> = {
317
400
  tx: T;
318
- openTxInfoModal?: () => void;
401
+ openTxInfoModal?: (txKey?: string) => void;
319
402
  icon?: ReactNode;
320
403
  className?: string;
321
404
  customization?: ToastTransactionCustomization<T>;
@@ -556,6 +639,99 @@ type TxStatusVisualProps = {
556
639
  */
557
640
  declare function TxStatusVisual({ isProcessing, isSucceed, isFailed, isReplaced, className: containerClassName, iconClassNames, }: TxStatusVisualProps): react_jsx_runtime.JSX.Element;
558
641
 
642
+ /** Props for a copyable field block */
643
+ type CopyableFieldProps = {
644
+ label: string;
645
+ value: string;
646
+ mono?: boolean;
647
+ className?: string;
648
+ children?: ReactNode;
649
+ classNames?: {
650
+ label?: string;
651
+ container?: string;
652
+ code?: string;
653
+ copyButton?: string;
654
+ };
655
+ };
656
+ /** Props for a single detail item (Label + Value) */
657
+ type DetailItemProps = {
658
+ label: string;
659
+ value: string | number | null | undefined;
660
+ mono?: boolean;
661
+ className?: string;
662
+ classNames?: {
663
+ label?: string;
664
+ value?: string;
665
+ };
666
+ };
667
+ /** Props for a row in the metadata section */
668
+ type MetadataRowProps = {
669
+ icon: ComponentType<{
670
+ className?: string;
671
+ }>;
672
+ label: string;
673
+ children: ReactNode;
674
+ className?: string;
675
+ classNames?: {
676
+ icon?: string;
677
+ label?: string;
678
+ value?: string;
679
+ };
680
+ };
681
+ /** Props for a JSON/Code block */
682
+ type JsonBlockProps = {
683
+ label: string;
684
+ data: unknown;
685
+ className?: string;
686
+ classNames?: {
687
+ header?: string;
688
+ label?: string;
689
+ copyButton?: string;
690
+ container?: string;
691
+ pre?: string;
692
+ };
693
+ };
694
+ type TransactionDetailsCustomization = {
695
+ /** Custom class names for all sub-elements */
696
+ classNames?: {
697
+ container?: string;
698
+ header?: string;
699
+ backButton?: string;
700
+ statusIconContainer?: string;
701
+ title?: string;
702
+ subtitle?: string;
703
+ coreInfoCard?: string;
704
+ networkBadge?: string;
705
+ metadataSection?: string;
706
+ executionSection?: string;
707
+ };
708
+ /** Custom components to override default elements */
709
+ components?: {
710
+ SectionCard?: ComponentType<{
711
+ children: ReactNode;
712
+ className?: string;
713
+ }>;
714
+ SectionHeading?: ComponentType<{
715
+ children: ReactNode;
716
+ className?: string;
717
+ }>;
718
+ CopyableField?: ComponentType<CopyableFieldProps>;
719
+ DetailItem?: ComponentType<DetailItemProps>;
720
+ MetadataRow?: ComponentType<MetadataRowProps>;
721
+ JsonBlock?: ComponentType<JsonBlockProps>;
722
+ };
723
+ };
724
+ type TransactionDetailsProps<T extends Transaction> = Pick<NovaTransactionsProviderProps<T>, 'adapter'> & {
725
+ tx: T;
726
+ onBack: () => void;
727
+ className?: string;
728
+ customization?: TransactionDetailsCustomization;
729
+ };
730
+ /**
731
+ * TransactionDetails component provides a deep look into a specific transaction's metadata and execution state.
732
+ */
733
+ declare function TransactionDetails<T extends Transaction>({ tx, onBack, adapter, className, customization, }: TransactionDetailsProps<T>): react_jsx_runtime.JSX.Element;
734
+
559
735
  /**
560
736
  * @file This file contains the `TransactionHistoryItem` component, which renders a single transaction
561
737
  * in a list format for the transaction history view.
@@ -628,8 +804,12 @@ type TransactionHistoryItemProps<T extends Transaction> = {
628
804
  customization?: TransactionHistoryItemCustomization<T>;
629
805
  /** Optional additional CSS classes for the container. */
630
806
  className?: string;
807
+ /** Callback triggered when the item is selected to view details. */
808
+ onSelectTx?: () => void;
809
+ /** Whether transaction details can be viewed by clicking on history items. */
810
+ canViewDetails?: boolean;
631
811
  } & Pick<NovaTransactionsProviderProps<T>, 'adapter'>;
632
- declare function TransactionHistoryItem<T extends Transaction>({ tx, adapter, className, customization, }: TransactionHistoryItemProps<T>): JSX.Element;
812
+ declare function TransactionHistoryItem<T extends Transaction>({ tx, adapter, className, customization, onSelectTx, canViewDetails, }: TransactionHistoryItemProps<T>): JSX.Element;
633
813
 
634
814
  type CustomPlaceholderProps = {
635
815
  title: string;
@@ -714,14 +894,20 @@ type TransactionsHistoryCustomization<T extends Transaction> = {
714
894
  /** Custom loader component rendered at the bottom during pagination loading */
715
895
  Loader?: ComponentType<TransactionsHistoryLoaderProps>;
716
896
  };
897
+ /** Customization for the detailed transaction view */
898
+ detailsCustomization?: TransactionDetailsCustomization;
717
899
  };
718
900
  type TransactionsHistoryProps<T extends Transaction> = Pick<NovaTransactionsProviderProps<T>, 'adapter' | 'transactionsPool' | 'connectedWalletAddress'> & {
719
901
  className?: string;
720
902
  customization?: TransactionsHistoryCustomization<T>;
721
903
  /** Pagination state for infinite scroll. Uses TxInMemoryPagination from @tuwaio/pulsar-core. */
722
904
  pagination?: TxInMemoryPagination;
905
+ /** Optional transaction key to open directly in detail view */
906
+ initialTxKey?: string | null;
907
+ /** Whether transaction details can be viewed by clicking on history items. Defaults to true. */
908
+ canViewDetails?: boolean;
723
909
  };
724
- declare function TransactionsHistory<T extends Transaction>({ adapter, connectedWalletAddress, transactionsPool, className, customization, pagination, }: TransactionsHistoryProps<T>): react_jsx_runtime.JSX.Element;
910
+ declare function TransactionsHistory<T extends Transaction>({ adapter, connectedWalletAddress, transactionsPool, className, customization, pagination, initialTxKey, canViewDetails, }: TransactionsHistoryProps<T>): react_jsx_runtime.JSX.Element;
725
911
 
726
912
  type CustomHeaderProps = {
727
913
  closeModal: () => void;
@@ -753,7 +939,9 @@ type TransactionsInfoModalProps<T extends Transaction> = Pick<NovaTransactionsPr
753
939
  customization?: TransactionsInfoModalCustomization<T>;
754
940
  /** Pagination state for infinite scroll, forwarded to TransactionsHistory. */
755
941
  pagination?: TxInMemoryPagination;
942
+ /** Optional transaction key to open directly in detail view */
943
+ selectedTxKey?: string | null;
756
944
  };
757
- declare function TransactionsInfoModal<T extends Transaction>({ isOpen, setIsOpen, customization, adapter, connectedWalletAddress, transactionsPool, pagination, }: TransactionsInfoModalProps<T>): react_jsx_runtime.JSX.Element;
945
+ declare function TransactionsInfoModal<T extends Transaction>({ isOpen, setIsOpen, customization, adapter, connectedWalletAddress, transactionsPool, pagination, selectedTxKey, }: TransactionsInfoModalProps<T>): react_jsx_runtime.JSX.Element;
758
946
 
759
- export { type TransactionsHistoryLoaderProps as A, type TransactionsHistoryCustomization as B, type TransactionsHistoryProps as C, TransactionsHistory as D, type TransactionsInfoModalCustomization as E, type TransactionsInfoModalProps as F, TransactionsInfoModal as G, type HashLinkProps as H, type TransactionStatusBadgeProps as I, TransactionStatusBadge as J, type NovaTransactionsProviderProps as K, NovaTransactionsProvider as L, type NovaTransactionsLabels as N, type StatusAwareTextProps as S, type ToastTransactionCustomization as T, HashLink as a, StatusAwareText as b, type ToastTransactionProps as c, ToastTransaction as d, type TrackingTxModalCustomization as e, type TrackingTxModalProps as f, TrackingTxModal as g, type TxErrorBlockClassNames as h, type TxErrorBlockProps as i, TxErrorBlock as j, type TxInfoBlockCustomization as k, type TxInfoBlockProps as l, TxInfoBlock as m, type StepStatus as n, type StepClassNames as o, type StepProps as p, type TxProgressIndicatorProps as q, TxProgressIndicator as r, type TxStatusVisualClassNames as s, type TxStatusVisualProps as t, TxStatusVisual as u, type TransactionHistoryItemCustomization as v, type TransactionHistoryItemProps as w, TransactionHistoryItem as x, type TransactionKeyProps as y, TransactionKey as z };
947
+ export { TransactionHistoryItem as A, type TransactionKeyProps as B, type CopyableFieldProps as C, type DetailItemProps as D, TransactionKey as E, type TransactionsHistoryLoaderProps as F, type TransactionsHistoryCustomization as G, type HashLinkProps as H, type TransactionsHistoryProps as I, type JsonBlockProps as J, TransactionsHistory as K, type TransactionsInfoModalCustomization as L, type MetadataRowProps as M, type NovaTransactionsLabels as N, type TransactionsInfoModalProps as O, TransactionsInfoModal as P, type TransactionStatusBadgeProps as Q, TransactionStatusBadge as R, type StatusAwareTextProps as S, type ToastTransactionCustomization as T, type NovaTransactionsProviderProps as U, NovaTransactionsProvider as V, HashLink as a, StatusAwareText as b, type ToastTransactionProps as c, ToastTransaction as d, type TrackingTxModalCustomization as e, type TrackingTxModalProps as f, TrackingTxModal as g, type TxErrorBlockClassNames as h, type TxErrorBlockProps as i, TxErrorBlock as j, type TxInfoBlockCustomization as k, type TxInfoBlockProps as l, TxInfoBlock as m, type StepStatus as n, type StepClassNames as o, type StepProps as p, type TxProgressIndicatorProps as q, TxProgressIndicator as r, type TxStatusVisualClassNames as s, type TxStatusVisualProps as t, TxStatusVisual as u, type TransactionDetailsCustomization as v, type TransactionDetailsProps as w, TransactionDetails as x, type TransactionHistoryItemCustomization as y, type TransactionHistoryItemProps as z };