@n1xyz/wallet-widget 0.0.32 → 0.0.33-alpha.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/hooks/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/Logic/getPseudoName.d.ts +0 -1
- package/dist/Logic/getPseudoName.js +0 -5826
- package/dist/Logic/getPseudoName.js.map +0 -1
- package/dist/Logic/sessionManager.d.ts +0 -17
- package/dist/Logic/sessionManager.js +0 -38
- package/dist/Logic/sessionManager.js.map +0 -1
- package/dist/Logic/transactionManager.d.ts +0 -19
- package/dist/Logic/transactionManager.js +0 -8
- package/dist/Logic/transactionManager.js.map +0 -1
- package/dist/Logic/utils.d.ts +0 -19
- package/dist/Logic/utils.js +0 -66
- package/dist/Logic/utils.js.map +0 -1
- package/dist/Logic/words.d.ts +0 -9
- package/dist/Logic/words.js +0 -93572
- package/dist/Logic/words.js.map +0 -1
- package/dist/Modal/LoadingFallback.d.ts +0 -2
- package/dist/Modal/LoadingFallback.js +0 -3
- package/dist/Modal/LoadingFallback.js.map +0 -1
- package/dist/Modal/N1WalletModal.d.ts +0 -2
- package/dist/Modal/N1WalletModal.js +0 -93
- package/dist/Modal/N1WalletModal.js.map +0 -1
- package/dist/Modal/NTSFlow/LoadingFallback.d.ts +0 -2
- package/dist/Modal/NTSFlow/LoadingFallback.js +0 -3
- package/dist/Modal/NTSFlow/LoadingFallback.js.map +0 -1
- package/dist/Modal/NTSFlow/NTSFlow.d.ts +0 -4
- package/dist/Modal/NTSFlow/NTSFlow.js +0 -35
- package/dist/Modal/NTSFlow/NTSFlow.js.map +0 -1
- package/dist/Modal/NTSFlow/components/BackButton.d.ts +0 -3
- package/dist/Modal/NTSFlow/components/BackButton.js +0 -26
- package/dist/Modal/NTSFlow/components/BackButton.js.map +0 -1
- package/dist/Modal/NTSFlow/components/ModalHeader.d.ts +0 -1
- package/dist/Modal/NTSFlow/components/ModalHeader.js +0 -21
- package/dist/Modal/NTSFlow/components/ModalHeader.js.map +0 -1
- package/dist/Modal/NTSFlow/index.d.ts +0 -1
- package/dist/Modal/NTSFlow/index.js +0 -2
- package/dist/Modal/NTSFlow/index.js.map +0 -1
- package/dist/Modal/NTSFlow/views/ConnectView.d.ts +0 -1
- package/dist/Modal/NTSFlow/views/ConnectView.js +0 -68
- package/dist/Modal/NTSFlow/views/ConnectView.js.map +0 -1
- package/dist/Modal/NTSFlow/views/CreateSessionView.d.ts +0 -1
- package/dist/Modal/NTSFlow/views/CreateSessionView.js +0 -246
- package/dist/Modal/NTSFlow/views/CreateSessionView.js.map +0 -1
- package/dist/Modal/NTSFlow/views/CreateUserView.d.ts +0 -1
- package/dist/Modal/NTSFlow/views/CreateUserView.js +0 -106
- package/dist/Modal/NTSFlow/views/CreateUserView.js.map +0 -1
- package/dist/Modal/NTSFlow/views/NoWhitelistView.d.ts +0 -1
- package/dist/Modal/NTSFlow/views/NoWhitelistView.js +0 -43
- package/dist/Modal/NTSFlow/views/NoWhitelistView.js.map +0 -1
- package/dist/Modal/NTSFlow/views/SigningView.d.ts +0 -1
- package/dist/Modal/NTSFlow/views/SigningView.js +0 -6
- package/dist/Modal/NTSFlow/views/SigningView.js.map +0 -1
- package/dist/Modal/NTSFlow/views/SuccessView.d.ts +0 -1
- package/dist/Modal/NTSFlow/views/SuccessView.js +0 -11
- package/dist/Modal/NTSFlow/views/SuccessView.js.map +0 -1
- package/dist/Modal/NordFlow/NordFlow.d.ts +0 -9
- package/dist/Modal/NordFlow/NordFlow.js +0 -98
- package/dist/Modal/NordFlow/NordFlow.js.map +0 -1
- package/dist/Modal/NordFlow/components/ChainButton.d.ts +0 -10
- package/dist/Modal/NordFlow/components/ChainButton.js +0 -21
- package/dist/Modal/NordFlow/components/ChainButton.js.map +0 -1
- package/dist/Modal/NordFlow/components/EVMChainsButton.d.ts +0 -9
- package/dist/Modal/NordFlow/components/EVMChainsButton.js +0 -21
- package/dist/Modal/NordFlow/components/EVMChainsButton.js.map +0 -1
- package/dist/Modal/NordFlow/components/Header.d.ts +0 -12
- package/dist/Modal/NordFlow/components/Header.js +0 -45
- package/dist/Modal/NordFlow/components/Header.js.map +0 -1
- package/dist/Modal/NordFlow/components/ImageWithFallback.d.ts +0 -17
- package/dist/Modal/NordFlow/components/ImageWithFallback.js +0 -33
- package/dist/Modal/NordFlow/components/ImageWithFallback.js.map +0 -1
- package/dist/Modal/NordFlow/components/LoadingSquares.d.ts +0 -1
- package/dist/Modal/NordFlow/components/LoadingSquares.js +0 -6
- package/dist/Modal/NordFlow/components/LoadingSquares.js.map +0 -1
- package/dist/Modal/NordFlow/components/MoreButton.d.ts +0 -8
- package/dist/Modal/NordFlow/components/MoreButton.js +0 -19
- package/dist/Modal/NordFlow/components/MoreButton.js.map +0 -1
- package/dist/Modal/NordFlow/components/TransactionTable.d.ts +0 -13
- package/dist/Modal/NordFlow/components/TransactionTable.js +0 -83
- package/dist/Modal/NordFlow/components/TransactionTable.js.map +0 -1
- package/dist/Modal/NordFlow/components/WaitingMessage.d.ts +0 -8
- package/dist/Modal/NordFlow/components/WaitingMessage.js +0 -17
- package/dist/Modal/NordFlow/components/WaitingMessage.js.map +0 -1
- package/dist/Modal/NordFlow/components/index.d.ts +0 -5
- package/dist/Modal/NordFlow/components/index.js +0 -6
- package/dist/Modal/NordFlow/components/index.js.map +0 -1
- package/dist/Modal/NordFlow/constants.d.ts +0 -31
- package/dist/Modal/NordFlow/constants.js +0 -56
- package/dist/Modal/NordFlow/constants.js.map +0 -1
- package/dist/Modal/NordFlow/context/DepositContext.d.ts +0 -29
- package/dist/Modal/NordFlow/context/DepositContext.js +0 -526
- package/dist/Modal/NordFlow/context/DepositContext.js.map +0 -1
- package/dist/Modal/NordFlow/context/FlowContext.d.ts +0 -50
- package/dist/Modal/NordFlow/context/FlowContext.js +0 -192
- package/dist/Modal/NordFlow/context/FlowContext.js.map +0 -1
- package/dist/Modal/NordFlow/context/NordProvider.d.ts +0 -10
- package/dist/Modal/NordFlow/context/NordProvider.js +0 -14
- package/dist/Modal/NordFlow/context/NordProvider.js.map +0 -1
- package/dist/Modal/NordFlow/context/WalletConnectContext.d.ts +0 -20
- package/dist/Modal/NordFlow/context/WalletConnectContext.js +0 -394
- package/dist/Modal/NordFlow/context/WalletConnectContext.js.map +0 -1
- package/dist/Modal/NordFlow/context/flowMachine.d.ts +0 -48
- package/dist/Modal/NordFlow/context/flowMachine.js +0 -83
- package/dist/Modal/NordFlow/context/flowMachine.js.map +0 -1
- package/dist/Modal/NordFlow/context/index.d.ts +0 -5
- package/dist/Modal/NordFlow/context/index.js +0 -8
- package/dist/Modal/NordFlow/context/index.js.map +0 -1
- package/dist/Modal/NordFlow/hoc/index.d.ts +0 -1
- package/dist/Modal/NordFlow/hoc/index.js +0 -2
- package/dist/Modal/NordFlow/hoc/index.js.map +0 -1
- package/dist/Modal/NordFlow/hoc/withImageFallback.d.ts +0 -7
- package/dist/Modal/NordFlow/hoc/withImageFallback.js +0 -61
- package/dist/Modal/NordFlow/hoc/withImageFallback.js.map +0 -1
- package/dist/Modal/NordFlow/hooks/useTestnetFaucet.d.ts +0 -18
- package/dist/Modal/NordFlow/hooks/useTestnetFaucet.js +0 -181
- package/dist/Modal/NordFlow/hooks/useTestnetFaucet.js.map +0 -1
- package/dist/Modal/NordFlow/index.d.ts +0 -1
- package/dist/Modal/NordFlow/index.js +0 -2
- package/dist/Modal/NordFlow/index.js.map +0 -1
- package/dist/Modal/NordFlow/screens/00-IdleScreen.d.ts +0 -6
- package/dist/Modal/NordFlow/screens/00-IdleScreen.js +0 -9
- package/dist/Modal/NordFlow/screens/00-IdleScreen.js.map +0 -1
- package/dist/Modal/NordFlow/screens/01-ConnectWalletScreen.d.ts +0 -1
- package/dist/Modal/NordFlow/screens/01-ConnectWalletScreen.js +0 -19
- package/dist/Modal/NordFlow/screens/01-ConnectWalletScreen.js.map +0 -1
- package/dist/Modal/NordFlow/screens/02-ChainSelectionScreen.d.ts +0 -1
- package/dist/Modal/NordFlow/screens/02-ChainSelectionScreen.js +0 -65
- package/dist/Modal/NordFlow/screens/02-ChainSelectionScreen.js.map +0 -1
- package/dist/Modal/NordFlow/screens/02-EvmWalletAuthScreen.d.ts +0 -2
- package/dist/Modal/NordFlow/screens/02-EvmWalletAuthScreen.js +0 -45
- package/dist/Modal/NordFlow/screens/02-EvmWalletAuthScreen.js.map +0 -1
- package/dist/Modal/NordFlow/screens/03-AmountInputScreen.d.ts +0 -4
- package/dist/Modal/NordFlow/screens/03-AmountInputScreen.js +0 -358
- package/dist/Modal/NordFlow/screens/03-AmountInputScreen.js.map +0 -1
- package/dist/Modal/NordFlow/screens/03-ChainSelectionScreen.d.ts +0 -1
- package/dist/Modal/NordFlow/screens/03-ChainSelectionScreen.js +0 -66
- package/dist/Modal/NordFlow/screens/03-ChainSelectionScreen.js.map +0 -1
- package/dist/Modal/NordFlow/screens/04-AmountInputScreen.d.ts +0 -1
- package/dist/Modal/NordFlow/screens/04-AmountInputScreen.js +0 -204
- package/dist/Modal/NordFlow/screens/04-AmountInputScreen.js.map +0 -1
- package/dist/Modal/NordFlow/screens/04-DepositProgressScreen.d.ts +0 -1
- package/dist/Modal/NordFlow/screens/04-DepositProgressScreen.js +0 -26
- package/dist/Modal/NordFlow/screens/04-DepositProgressScreen.js.map +0 -1
- package/dist/Modal/NordFlow/screens/05-DepositProgressScreen.d.ts +0 -1
- package/dist/Modal/NordFlow/screens/05-DepositProgressScreen.js +0 -51
- package/dist/Modal/NordFlow/screens/05-DepositProgressScreen.js.map +0 -1
- package/dist/Modal/NordFlow/screens/05-DepositSuccessScreen.d.ts +0 -1
- package/dist/Modal/NordFlow/screens/05-DepositSuccessScreen.js +0 -137
- package/dist/Modal/NordFlow/screens/05-DepositSuccessScreen.js.map +0 -1
- package/dist/Modal/NordFlow/screens/06-AuthLoadingScreen.d.ts +0 -1
- package/dist/Modal/NordFlow/screens/06-AuthLoadingScreen.js +0 -31
- package/dist/Modal/NordFlow/screens/06-AuthLoadingScreen.js.map +0 -1
- package/dist/Modal/NordFlow/screens/06-DepositSuccessScreen.d.ts +0 -1
- package/dist/Modal/NordFlow/screens/06-DepositSuccessScreen.js +0 -132
- package/dist/Modal/NordFlow/screens/06-DepositSuccessScreen.js.map +0 -1
- package/dist/Modal/NordFlow/screens/07-AuthLoadingScreen.d.ts +0 -1
- package/dist/Modal/NordFlow/screens/07-AuthLoadingScreen.js +0 -30
- package/dist/Modal/NordFlow/screens/07-AuthLoadingScreen.js.map +0 -1
- package/dist/Modal/NordFlow/screens/07-ErrorScreen.d.ts +0 -1
- package/dist/Modal/NordFlow/screens/07-ErrorScreen.js +0 -14
- package/dist/Modal/NordFlow/screens/07-ErrorScreen.js.map +0 -1
- package/dist/Modal/NordFlow/screens/07-FinalSuccessScreen.d.ts +0 -5
- package/dist/Modal/NordFlow/screens/07-FinalSuccessScreen.js +0 -39
- package/dist/Modal/NordFlow/screens/07-FinalSuccessScreen.js.map +0 -1
- package/dist/Modal/NordFlow/screens/08-ErrorScreen.d.ts +0 -1
- package/dist/Modal/NordFlow/screens/08-ErrorScreen.js +0 -68
- package/dist/Modal/NordFlow/screens/08-ErrorScreen.js.map +0 -1
- package/dist/Modal/NordFlow/screens/08-FinalSuccessScreen.d.ts +0 -5
- package/dist/Modal/NordFlow/screens/08-FinalSuccessScreen.js +0 -52
- package/dist/Modal/NordFlow/screens/08-FinalSuccessScreen.js.map +0 -1
- package/dist/Modal/NordFlow/screens/09-ErrorScreen.d.ts +0 -1
- package/dist/Modal/NordFlow/screens/09-ErrorScreen.js +0 -68
- package/dist/Modal/NordFlow/screens/09-ErrorScreen.js.map +0 -1
- package/dist/Modal/NordFlow/screens/index.d.ts +0 -7
- package/dist/Modal/NordFlow/screens/index.js +0 -8
- package/dist/Modal/NordFlow/screens/index.js.map +0 -1
- package/dist/Modal/NordFlow/types.d.ts +0 -113
- package/dist/Modal/NordFlow/types.js +0 -34
- package/dist/Modal/NordFlow/types.js.map +0 -1
- package/dist/Modal/NordFlow/utils/depositStorage.d.ts +0 -4
- package/dist/Modal/NordFlow/utils/depositStorage.js +0 -48
- package/dist/Modal/NordFlow/utils/depositStorage.js.map +0 -1
- package/dist/Modal/NordFlow/utils/imageUtils.d.ts +0 -21
- package/dist/Modal/NordFlow/utils/imageUtils.js +0 -110
- package/dist/Modal/NordFlow/utils/imageUtils.js.map +0 -1
- package/dist/Modal/NordFlow/utils/index.d.ts +0 -2
- package/dist/Modal/NordFlow/utils/index.js +0 -3
- package/dist/Modal/NordFlow/utils/index.js.map +0 -1
- package/dist/Modal/NordFlow/utils/nordUtils.d.ts +0 -40
- package/dist/Modal/NordFlow/utils/nordUtils.js +0 -64
- package/dist/Modal/NordFlow/utils/nordUtils.js.map +0 -1
- package/dist/Modal/Sidebar/N1Sidebar.d.ts +0 -1
- package/dist/Modal/Sidebar/N1Sidebar.js +0 -203
- package/dist/Modal/Sidebar/N1Sidebar.js.map +0 -1
- package/dist/Modal/Sidebar/NordTradingView/MarketOverview/MarketOverview.d.ts +0 -12
- package/dist/Modal/Sidebar/NordTradingView/MarketOverview/MarketOverview.js +0 -90
- package/dist/Modal/Sidebar/NordTradingView/MarketOverview/MarketOverview.js.map +0 -1
- package/dist/Modal/Sidebar/NordTradingView/MarketOverview/MarketSelector.d.ts +0 -6
- package/dist/Modal/Sidebar/NordTradingView/MarketOverview/MarketSelector.js +0 -43
- package/dist/Modal/Sidebar/NordTradingView/MarketOverview/MarketSelector.js.map +0 -1
- package/dist/Modal/Sidebar/NordTradingView/MarketOverview/MarketStats.d.ts +0 -11
- package/dist/Modal/Sidebar/NordTradingView/MarketOverview/MarketStats.js +0 -20
- package/dist/Modal/Sidebar/NordTradingView/MarketOverview/MarketStats.js.map +0 -1
- package/dist/Modal/Sidebar/NordTradingView/NordTradingView.d.ts +0 -1
- package/dist/Modal/Sidebar/NordTradingView/NordTradingView.js +0 -143
- package/dist/Modal/Sidebar/NordTradingView/NordTradingView.js.map +0 -1
- package/dist/Modal/Sidebar/NordTradingView/OrderBook/OrderBook.d.ts +0 -0
- package/dist/Modal/Sidebar/NordTradingView/OrderBook/OrderBook.js +0 -248
- package/dist/Modal/Sidebar/NordTradingView/OrderBook/OrderBook.js.map +0 -1
- package/dist/Modal/Sidebar/NordTradingView/OrderBook/OrderBookDepthVisualizer.d.ts +0 -10
- package/dist/Modal/Sidebar/NordTradingView/OrderBook/OrderBookDepthVisualizer.js +0 -62
- package/dist/Modal/Sidebar/NordTradingView/OrderBook/OrderBookDepthVisualizer.js.map +0 -1
- package/dist/Modal/Sidebar/NordTradingView/OrderBook/OrderBookHeader.d.ts +0 -7
- package/dist/Modal/Sidebar/NordTradingView/OrderBook/OrderBookHeader.js +0 -30
- package/dist/Modal/Sidebar/NordTradingView/OrderBook/OrderBookHeader.js.map +0 -1
- package/dist/Modal/Sidebar/NordTradingView/OrderBook/OrderBookTable.d.ts +0 -11
- package/dist/Modal/Sidebar/NordTradingView/OrderBook/OrderBookTable.js +0 -22
- package/dist/Modal/Sidebar/NordTradingView/OrderBook/OrderBookTable.js.map +0 -1
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/AmountInput.d.ts +0 -7
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/AmountInput.js +0 -20
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/AmountInput.js.map +0 -1
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/BuySellTabs.d.ts +0 -7
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/BuySellTabs.js +0 -24
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/BuySellTabs.js.map +0 -1
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/FillModeSelector.d.ts +0 -7
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/FillModeSelector.js +0 -80
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/FillModeSelector.js.map +0 -1
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/OrderTypeSelector.d.ts +0 -9
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/OrderTypeSelector.js +0 -110
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/OrderTypeSelector.js.map +0 -1
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/PriceInput.d.ts +0 -7
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/PriceInput.js +0 -30
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/PriceInput.js.map +0 -1
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/SubmitButton.d.ts +0 -9
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/SubmitButton.js +0 -40
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/SubmitButton.js.map +0 -1
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/TotalCalculator.d.ts +0 -7
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/TotalCalculator.js +0 -10
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/TotalCalculator.js.map +0 -1
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/TradeForm.d.ts +0 -13
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/TradeForm.js +0 -264
- package/dist/Modal/Sidebar/NordTradingView/TradeForm/TradeForm.js.map +0 -1
- package/dist/Modal/Sidebar/NordTradingView/UserBalances/UserBalances.d.ts +0 -5
- package/dist/Modal/Sidebar/NordTradingView/UserBalances/UserBalances.js +0 -113
- package/dist/Modal/Sidebar/NordTradingView/UserBalances/UserBalances.js.map +0 -1
- package/dist/Modal/Sidebar/NordTradingView/UserOrders/UserOrders.d.ts +0 -1
- package/dist/Modal/Sidebar/NordTradingView/UserOrders/UserOrders.js +0 -183
- package/dist/Modal/Sidebar/NordTradingView/UserOrders/UserOrders.js.map +0 -1
- package/dist/Modal/Sidebar/NordTradingView/UserPositions/UserPositions.d.ts +0 -0
- package/dist/Modal/Sidebar/NordTradingView/UserPositions/UserPositions.js +0 -278
- package/dist/Modal/Sidebar/NordTradingView/UserPositions/UserPositions.js.map +0 -1
- package/dist/Provider/LazyWalletProvider.d.ts +0 -1
- package/dist/Provider/LazyWalletProvider.js +0 -230
- package/dist/Provider/LazyWalletProvider.js.map +0 -1
- package/dist/Provider/N1WalletProvider.d.ts +0 -3
- package/dist/Provider/N1WalletProvider.js +0 -266
- package/dist/Provider/N1WalletProvider.js.map +0 -1
- package/dist/Provider/ShadowRootWrapper.d.ts +0 -7
- package/dist/Provider/ShadowRootWrapper.js +0 -7
- package/dist/Provider/ShadowRootWrapper.js.map +0 -1
- package/dist/Provider/WalletErrorBoundary.d.ts +0 -17
- package/dist/Provider/WalletErrorBoundary.js +0 -57
- package/dist/Provider/WalletErrorBoundary.js.map +0 -1
- package/dist/Provider/context.d.ts +0 -5
- package/dist/Provider/context.js +0 -5
- package/dist/Provider/context.js.map +0 -1
- package/dist/Provider/hooks/useNordUserInitialization.d.ts +0 -1
- package/dist/Provider/hooks/useNordUserInitialization.js +0 -306
- package/dist/Provider/hooks/useNordUserInitialization.js.map +0 -1
- package/dist/Provider/hooks.d.ts +0 -2
- package/dist/Provider/hooks.js +0 -17
- package/dist/Provider/hooks.js.map +0 -1
- package/dist/Provider/icons/CoinbaseWalletIcon.d.ts +0 -1
- package/dist/Provider/icons/CoinbaseWalletIcon.js +0 -5
- package/dist/Provider/icons/CoinbaseWalletIcon.js.map +0 -1
- package/dist/Provider/icons/ConnectionDotsSVG.d.ts +0 -1
- package/dist/Provider/icons/ConnectionDotsSVG.js +0 -5
- package/dist/Provider/icons/ConnectionDotsSVG.js.map +0 -1
- package/dist/Provider/icons/MetamaskIcon.d.ts +0 -1
- package/dist/Provider/icons/MetamaskIcon.js +0 -5
- package/dist/Provider/icons/MetamaskIcon.js.map +0 -1
- package/dist/Provider/icons/PhantomIcon.d.ts +0 -1
- package/dist/Provider/icons/PhantomIcon.js +0 -5
- package/dist/Provider/icons/PhantomIcon.js.map +0 -1
- package/dist/Provider/icons/UserIcon.d.ts +0 -1
- package/dist/Provider/icons/UserIcon.js +0 -5
- package/dist/Provider/icons/UserIcon.js.map +0 -1
- package/dist/Provider/icons/WalletConnectIcon.d.ts +0 -1
- package/dist/Provider/icons/WalletConnectIcon.js +0 -5
- package/dist/Provider/icons/WalletConnectIcon.js.map +0 -1
- package/dist/Provider/index.d.ts +0 -3
- package/dist/Provider/index.js +0 -4
- package/dist/Provider/index.js.map +0 -1
- package/dist/Provider/types.d.ts +0 -152
- package/dist/Provider/types.js +0 -21
- package/dist/Provider/types.js.map +0 -1
- package/dist/WidgetButton/N1ConnectButton.d.ts +0 -5
- package/dist/WidgetButton/N1ConnectButton.js +0 -49
- package/dist/WidgetButton/N1ConnectButton.js.map +0 -1
- package/dist/components/QRCodeLoader.d.ts +0 -4
- package/dist/components/QRCodeLoader.js +0 -9
- package/dist/components/QRCodeLoader.js.map +0 -1
- package/dist/components/logos/EVMChainsGroup.d.ts +0 -7
- package/dist/components/logos/EVMChainsGroup.js +0 -19
- package/dist/components/logos/EVMChainsGroup.js.map +0 -1
- package/dist/components/logos/MoreChainsGroup.d.ts +0 -7
- package/dist/components/logos/MoreChainsGroup.js +0 -19
- package/dist/components/logos/MoreChainsGroup.js.map +0 -1
- package/dist/config/nordFlow.d.ts +0 -6
- package/dist/config/nordFlow.js +0 -63
- package/dist/config/nordFlow.js.map +0 -1
- package/dist/embedded-main-css.d.ts +0 -2
- package/dist/embedded-main-css.js +0 -3
- package/dist/embedded-main-css.js.map +0 -1
- package/dist/features/nord-flow/N1WalletModal.d.ts +0 -2
- package/dist/features/nord-flow/N1WalletModal.js +0 -92
- package/dist/features/nord-flow/N1WalletModal.js.map +0 -1
- package/dist/features/nord-flow/NordFlow.d.ts +0 -9
- package/dist/features/nord-flow/NordFlow.js +0 -98
- package/dist/features/nord-flow/NordFlow.js.map +0 -1
- package/dist/features/nord-flow/components/ChainButton.d.ts +0 -10
- package/dist/features/nord-flow/components/ChainButton.js +0 -21
- package/dist/features/nord-flow/components/ChainButton.js.map +0 -1
- package/dist/features/nord-flow/components/Header.d.ts +0 -12
- package/dist/features/nord-flow/components/Header.js +0 -45
- package/dist/features/nord-flow/components/Header.js.map +0 -1
- package/dist/features/nord-flow/components/ImageWithFallback.d.ts +0 -17
- package/dist/features/nord-flow/components/ImageWithFallback.js +0 -33
- package/dist/features/nord-flow/components/ImageWithFallback.js.map +0 -1
- package/dist/features/nord-flow/components/TransactionTable.d.ts +0 -13
- package/dist/features/nord-flow/components/TransactionTable.js +0 -83
- package/dist/features/nord-flow/components/TransactionTable.js.map +0 -1
- package/dist/features/nord-flow/components/WaitingMessage.d.ts +0 -8
- package/dist/features/nord-flow/components/WaitingMessage.js +0 -17
- package/dist/features/nord-flow/components/WaitingMessage.js.map +0 -1
- package/dist/features/nord-flow/components/index.d.ts +0 -5
- package/dist/features/nord-flow/components/index.js +0 -6
- package/dist/features/nord-flow/components/index.js.map +0 -1
- package/dist/features/nord-flow/context/DepositContext.d.ts +0 -29
- package/dist/features/nord-flow/context/DepositContext.js +0 -525
- package/dist/features/nord-flow/context/DepositContext.js.map +0 -1
- package/dist/features/nord-flow/context/FlowContext.d.ts +0 -50
- package/dist/features/nord-flow/context/FlowContext.js +0 -192
- package/dist/features/nord-flow/context/FlowContext.js.map +0 -1
- package/dist/features/nord-flow/context/NordProvider.d.ts +0 -10
- package/dist/features/nord-flow/context/NordProvider.js +0 -14
- package/dist/features/nord-flow/context/NordProvider.js.map +0 -1
- package/dist/features/nord-flow/context/WalletConnectContext.d.ts +0 -21
- package/dist/features/nord-flow/context/WalletConnectContext.js +0 -394
- package/dist/features/nord-flow/context/WalletConnectContext.js.map +0 -1
- package/dist/features/nord-flow/context/debug.d.ts +0 -6
- package/dist/features/nord-flow/context/debug.js +0 -63
- package/dist/features/nord-flow/context/debug.js.map +0 -1
- package/dist/features/nord-flow/context/flowMachine.d.ts +0 -48
- package/dist/features/nord-flow/context/flowMachine.js +0 -83
- package/dist/features/nord-flow/context/flowMachine.js.map +0 -1
- package/dist/features/nord-flow/context/index.d.ts +0 -5
- package/dist/features/nord-flow/context/index.js +0 -8
- package/dist/features/nord-flow/context/index.js.map +0 -1
- package/dist/features/nord-flow/hoc/index.d.ts +0 -1
- package/dist/features/nord-flow/hoc/index.js +0 -2
- package/dist/features/nord-flow/hoc/index.js.map +0 -1
- package/dist/features/nord-flow/hoc/withImageFallback.d.ts +0 -7
- package/dist/features/nord-flow/hoc/withImageFallback.js +0 -61
- package/dist/features/nord-flow/hoc/withImageFallback.js.map +0 -1
- package/dist/features/nord-flow/index.d.ts +0 -1
- package/dist/features/nord-flow/index.js +0 -2
- package/dist/features/nord-flow/index.js.map +0 -1
- package/dist/features/nord-flow/screens/01-ConnectWalletScreen.d.ts +0 -1
- package/dist/features/nord-flow/screens/01-ConnectWalletScreen.js +0 -19
- package/dist/features/nord-flow/screens/01-ConnectWalletScreen.js.map +0 -1
- package/dist/features/nord-flow/screens/02-ChainSelectionScreen.d.ts +0 -31
- package/dist/features/nord-flow/screens/02-ChainSelectionScreen.js +0 -101
- package/dist/features/nord-flow/screens/02-ChainSelectionScreen.js.map +0 -1
- package/dist/features/nord-flow/screens/03-AmountInputScreen.d.ts +0 -6
- package/dist/features/nord-flow/screens/03-AmountInputScreen.js +0 -361
- package/dist/features/nord-flow/screens/03-AmountInputScreen.js.map +0 -1
- package/dist/features/nord-flow/screens/04-DepositProgressScreen.d.ts +0 -3
- package/dist/features/nord-flow/screens/04-DepositProgressScreen.js +0 -31
- package/dist/features/nord-flow/screens/04-DepositProgressScreen.js.map +0 -1
- package/dist/features/nord-flow/screens/05-DepositSuccessScreen.d.ts +0 -1
- package/dist/features/nord-flow/screens/05-DepositSuccessScreen.js +0 -137
- package/dist/features/nord-flow/screens/05-DepositSuccessScreen.js.map +0 -1
- package/dist/features/nord-flow/screens/06-AuthLoadingScreen.d.ts +0 -1
- package/dist/features/nord-flow/screens/06-AuthLoadingScreen.js +0 -31
- package/dist/features/nord-flow/screens/06-AuthLoadingScreen.js.map +0 -1
- package/dist/features/nord-flow/screens/07-ErrorScreen.d.ts +0 -1
- package/dist/features/nord-flow/screens/07-ErrorScreen.js +0 -14
- package/dist/features/nord-flow/screens/07-ErrorScreen.js.map +0 -1
- package/dist/features/nord-flow/screens/index.d.ts +0 -7
- package/dist/features/nord-flow/screens/index.js +0 -8
- package/dist/features/nord-flow/screens/index.js.map +0 -1
- package/dist/features/nord-flow/types.d.ts +0 -113
- package/dist/features/nord-flow/types.js +0 -34
- package/dist/features/nord-flow/types.js.map +0 -1
- package/dist/features/nord-flow/utils/depositStorage.d.ts +0 -4
- package/dist/features/nord-flow/utils/depositStorage.js +0 -48
- package/dist/features/nord-flow/utils/depositStorage.js.map +0 -1
- package/dist/features/nord-flow/utils/imageUtils.d.ts +0 -21
- package/dist/features/nord-flow/utils/imageUtils.js +0 -110
- package/dist/features/nord-flow/utils/imageUtils.js.map +0 -1
- package/dist/features/nord-flow/utils/index.d.ts +0 -2
- package/dist/features/nord-flow/utils/index.js +0 -3
- package/dist/features/nord-flow/utils/index.js.map +0 -1
- package/dist/features/nord-flow/utils/nordUser.d.ts +0 -1
- package/dist/features/nord-flow/utils/nordUser.js +0 -48
- package/dist/features/nord-flow/utils/nordUser.js.map +0 -1
- package/dist/features/nord-flow/utils/nordUtils.d.ts +0 -40
- package/dist/features/nord-flow/utils/nordUtils.js +0 -64
- package/dist/features/nord-flow/utils/nordUtils.js.map +0 -1
- package/dist/features/nord-flow/utils/session.d.ts +0 -17
- package/dist/features/nord-flow/utils/session.js +0 -69
- package/dist/features/nord-flow/utils/session.js.map +0 -1
- package/dist/features/nord-flow/utils/transaction.d.ts +0 -19
- package/dist/features/nord-flow/utils/transaction.js +0 -8
- package/dist/features/nord-flow/utils/transaction.js.map +0 -1
- package/dist/features/nord-flow/utils/utils.d.ts +0 -19
- package/dist/features/nord-flow/utils/utils.js +0 -66
- package/dist/features/nord-flow/utils/utils.js.map +0 -1
- package/dist/features/nord-flow/utils/withImageFallback.d.ts +0 -7
- package/dist/features/nord-flow/utils/withImageFallback.js +0 -61
- package/dist/features/nord-flow/utils/withImageFallback.js.map +0 -1
- package/dist/features/onboarding-flow/providers/FlowStateProvider.d.ts +0 -50
- package/dist/features/onboarding-flow/providers/FlowStateProvider.js +0 -192
- package/dist/features/onboarding-flow/providers/FlowStateProvider.js.map +0 -1
- package/dist/features/onboarding-flow/providers/OnboardingProvider.d.ts +0 -10
- package/dist/features/onboarding-flow/providers/OnboardingProvider.js +0 -14
- package/dist/features/onboarding-flow/providers/OnboardingProvider.js.map +0 -1
- package/dist/features/onboarding-flow/providers/flowMachine.d.ts +0 -48
- package/dist/features/onboarding-flow/providers/flowMachine.js +0 -83
- package/dist/features/onboarding-flow/providers/flowMachine.js.map +0 -1
- package/dist/features/wallet/components/N1ConnectButton.d.ts +0 -5
- package/dist/features/wallet/components/N1ConnectButton.js +0 -49
- package/dist/features/wallet/components/N1ConnectButton.js.map +0 -1
- package/dist/features/wallet/logic/getPseudoName.d.ts +0 -1
- package/dist/features/wallet/logic/getPseudoName.js +0 -5826
- package/dist/features/wallet/logic/getPseudoName.js.map +0 -1
- package/dist/features/wallet/logic/sessionManager.d.ts +0 -17
- package/dist/features/wallet/logic/sessionManager.js +0 -38
- package/dist/features/wallet/logic/sessionManager.js.map +0 -1
- package/dist/features/wallet/logic/transactionManager.d.ts +0 -19
- package/dist/features/wallet/logic/transactionManager.js +0 -8
- package/dist/features/wallet/logic/transactionManager.js.map +0 -1
- package/dist/features/wallet/logic/utils.d.ts +0 -19
- package/dist/features/wallet/logic/utils.js +0 -66
- package/dist/features/wallet/logic/utils.js.map +0 -1
- package/dist/features/wallet/logic/words.d.ts +0 -9
- package/dist/features/wallet/logic/words.js +0 -93572
- package/dist/features/wallet/logic/words.js.map +0 -1
- package/dist/features/wallet/modal/LoadingFallback.d.ts +0 -2
- package/dist/features/wallet/modal/LoadingFallback.js +0 -3
- package/dist/features/wallet/modal/LoadingFallback.js.map +0 -1
- package/dist/features/wallet/modal/N1WalletModal.d.ts +0 -2
- package/dist/features/wallet/modal/N1WalletModal.js +0 -93
- package/dist/features/wallet/modal/N1WalletModal.js.map +0 -1
- package/dist/features/wallet/modal/NordFlow/NordFlow.d.ts +0 -9
- package/dist/features/wallet/modal/NordFlow/NordFlow.js +0 -98
- package/dist/features/wallet/modal/NordFlow/NordFlow.js.map +0 -1
- package/dist/features/wallet/modal/NordFlow/components/ChainButton.d.ts +0 -10
- package/dist/features/wallet/modal/NordFlow/components/ChainButton.js +0 -21
- package/dist/features/wallet/modal/NordFlow/components/ChainButton.js.map +0 -1
- package/dist/features/wallet/modal/NordFlow/components/Header.d.ts +0 -12
- package/dist/features/wallet/modal/NordFlow/components/Header.js +0 -45
- package/dist/features/wallet/modal/NordFlow/components/Header.js.map +0 -1
- package/dist/features/wallet/modal/NordFlow/components/ImageWithFallback.d.ts +0 -17
- package/dist/features/wallet/modal/NordFlow/components/ImageWithFallback.js +0 -33
- package/dist/features/wallet/modal/NordFlow/components/ImageWithFallback.js.map +0 -1
- package/dist/features/wallet/modal/NordFlow/components/TransactionTable.d.ts +0 -13
- package/dist/features/wallet/modal/NordFlow/components/TransactionTable.js +0 -83
- package/dist/features/wallet/modal/NordFlow/components/TransactionTable.js.map +0 -1
- package/dist/features/wallet/modal/NordFlow/components/WaitingMessage.d.ts +0 -8
- package/dist/features/wallet/modal/NordFlow/components/WaitingMessage.js +0 -17
- package/dist/features/wallet/modal/NordFlow/components/WaitingMessage.js.map +0 -1
- package/dist/features/wallet/modal/NordFlow/components/index.d.ts +0 -5
- package/dist/features/wallet/modal/NordFlow/components/index.js +0 -6
- package/dist/features/wallet/modal/NordFlow/components/index.js.map +0 -1
- package/dist/features/wallet/modal/NordFlow/constants.d.ts +0 -31
- package/dist/features/wallet/modal/NordFlow/constants.js +0 -56
- package/dist/features/wallet/modal/NordFlow/constants.js.map +0 -1
- package/dist/features/wallet/modal/NordFlow/context/DepositContext.d.ts +0 -29
- package/dist/features/wallet/modal/NordFlow/context/DepositContext.js +0 -526
- package/dist/features/wallet/modal/NordFlow/context/DepositContext.js.map +0 -1
- package/dist/features/wallet/modal/NordFlow/context/FlowContext.d.ts +0 -50
- package/dist/features/wallet/modal/NordFlow/context/FlowContext.js +0 -192
- package/dist/features/wallet/modal/NordFlow/context/FlowContext.js.map +0 -1
- package/dist/features/wallet/modal/NordFlow/context/NordProvider.d.ts +0 -10
- package/dist/features/wallet/modal/NordFlow/context/NordProvider.js +0 -14
- package/dist/features/wallet/modal/NordFlow/context/NordProvider.js.map +0 -1
- package/dist/features/wallet/modal/NordFlow/context/WalletConnectContext.d.ts +0 -20
- package/dist/features/wallet/modal/NordFlow/context/WalletConnectContext.js +0 -394
- package/dist/features/wallet/modal/NordFlow/context/WalletConnectContext.js.map +0 -1
- package/dist/features/wallet/modal/NordFlow/context/flowMachine.d.ts +0 -48
- package/dist/features/wallet/modal/NordFlow/context/flowMachine.js +0 -83
- package/dist/features/wallet/modal/NordFlow/context/flowMachine.js.map +0 -1
- package/dist/features/wallet/modal/NordFlow/context/index.d.ts +0 -5
- package/dist/features/wallet/modal/NordFlow/context/index.js +0 -8
- package/dist/features/wallet/modal/NordFlow/context/index.js.map +0 -1
- package/dist/features/wallet/modal/NordFlow/hoc/index.d.ts +0 -1
- package/dist/features/wallet/modal/NordFlow/hoc/index.js +0 -2
- package/dist/features/wallet/modal/NordFlow/hoc/index.js.map +0 -1
- package/dist/features/wallet/modal/NordFlow/hoc/withImageFallback.d.ts +0 -7
- package/dist/features/wallet/modal/NordFlow/hoc/withImageFallback.js +0 -61
- package/dist/features/wallet/modal/NordFlow/hoc/withImageFallback.js.map +0 -1
- package/dist/features/wallet/modal/NordFlow/index.d.ts +0 -1
- package/dist/features/wallet/modal/NordFlow/index.js +0 -2
- package/dist/features/wallet/modal/NordFlow/index.js.map +0 -1
- package/dist/features/wallet/modal/NordFlow/screens/01-ConnectWalletScreen.d.ts +0 -1
- package/dist/features/wallet/modal/NordFlow/screens/01-ConnectWalletScreen.js +0 -19
- package/dist/features/wallet/modal/NordFlow/screens/01-ConnectWalletScreen.js.map +0 -1
- package/dist/features/wallet/modal/NordFlow/screens/02-ChainSelectionScreen.d.ts +0 -1
- package/dist/features/wallet/modal/NordFlow/screens/02-ChainSelectionScreen.js +0 -65
- package/dist/features/wallet/modal/NordFlow/screens/02-ChainSelectionScreen.js.map +0 -1
- package/dist/features/wallet/modal/NordFlow/screens/03-AmountInputScreen.d.ts +0 -4
- package/dist/features/wallet/modal/NordFlow/screens/03-AmountInputScreen.js +0 -358
- package/dist/features/wallet/modal/NordFlow/screens/03-AmountInputScreen.js.map +0 -1
- package/dist/features/wallet/modal/NordFlow/screens/04-DepositProgressScreen.d.ts +0 -1
- package/dist/features/wallet/modal/NordFlow/screens/04-DepositProgressScreen.js +0 -26
- package/dist/features/wallet/modal/NordFlow/screens/04-DepositProgressScreen.js.map +0 -1
- package/dist/features/wallet/modal/NordFlow/screens/05-DepositSuccessScreen.d.ts +0 -1
- package/dist/features/wallet/modal/NordFlow/screens/05-DepositSuccessScreen.js +0 -137
- package/dist/features/wallet/modal/NordFlow/screens/05-DepositSuccessScreen.js.map +0 -1
- package/dist/features/wallet/modal/NordFlow/screens/06-AuthLoadingScreen.d.ts +0 -1
- package/dist/features/wallet/modal/NordFlow/screens/06-AuthLoadingScreen.js +0 -31
- package/dist/features/wallet/modal/NordFlow/screens/06-AuthLoadingScreen.js.map +0 -1
- package/dist/features/wallet/modal/NordFlow/screens/07-ErrorScreen.d.ts +0 -1
- package/dist/features/wallet/modal/NordFlow/screens/07-ErrorScreen.js +0 -14
- package/dist/features/wallet/modal/NordFlow/screens/07-ErrorScreen.js.map +0 -1
- package/dist/features/wallet/modal/NordFlow/screens/index.d.ts +0 -7
- package/dist/features/wallet/modal/NordFlow/screens/index.js +0 -8
- package/dist/features/wallet/modal/NordFlow/screens/index.js.map +0 -1
- package/dist/features/wallet/modal/NordFlow/types.d.ts +0 -113
- package/dist/features/wallet/modal/NordFlow/types.js +0 -34
- package/dist/features/wallet/modal/NordFlow/types.js.map +0 -1
- package/dist/features/wallet/modal/NordFlow/utils/depositStorage.d.ts +0 -4
- package/dist/features/wallet/modal/NordFlow/utils/depositStorage.js +0 -48
- package/dist/features/wallet/modal/NordFlow/utils/depositStorage.js.map +0 -1
- package/dist/features/wallet/modal/NordFlow/utils/imageUtils.d.ts +0 -21
- package/dist/features/wallet/modal/NordFlow/utils/imageUtils.js +0 -110
- package/dist/features/wallet/modal/NordFlow/utils/imageUtils.js.map +0 -1
- package/dist/features/wallet/modal/NordFlow/utils/index.d.ts +0 -2
- package/dist/features/wallet/modal/NordFlow/utils/index.js +0 -3
- package/dist/features/wallet/modal/NordFlow/utils/index.js.map +0 -1
- package/dist/features/wallet/modal/NordFlow/utils/nordUtils.d.ts +0 -40
- package/dist/features/wallet/modal/NordFlow/utils/nordUtils.js +0 -64
- package/dist/features/wallet/modal/NordFlow/utils/nordUtils.js.map +0 -1
- package/dist/features/wallet/provider/LazyWalletProvider.d.ts +0 -1
- package/dist/features/wallet/provider/LazyWalletProvider.js +0 -230
- package/dist/features/wallet/provider/LazyWalletProvider.js.map +0 -1
- package/dist/features/wallet/provider/N1WalletProvider.d.ts +0 -3
- package/dist/features/wallet/provider/N1WalletProvider.js +0 -266
- package/dist/features/wallet/provider/N1WalletProvider.js.map +0 -1
- package/dist/features/wallet/provider/ShadowRootWrapper.d.ts +0 -7
- package/dist/features/wallet/provider/ShadowRootWrapper.js +0 -7
- package/dist/features/wallet/provider/ShadowRootWrapper.js.map +0 -1
- package/dist/features/wallet/provider/WalletErrorBoundary.d.ts +0 -17
- package/dist/features/wallet/provider/WalletErrorBoundary.js +0 -57
- package/dist/features/wallet/provider/WalletErrorBoundary.js.map +0 -1
- package/dist/features/wallet/provider/context.d.ts +0 -5
- package/dist/features/wallet/provider/context.js +0 -5
- package/dist/features/wallet/provider/context.js.map +0 -1
- package/dist/features/wallet/provider/hooks/useNordUserInitialization.d.ts +0 -1
- package/dist/features/wallet/provider/hooks/useNordUserInitialization.js +0 -306
- package/dist/features/wallet/provider/hooks/useNordUserInitialization.js.map +0 -1
- package/dist/features/wallet/provider/hooks.d.ts +0 -2
- package/dist/features/wallet/provider/hooks.js +0 -17
- package/dist/features/wallet/provider/hooks.js.map +0 -1
- package/dist/features/wallet/provider/index.d.ts +0 -3
- package/dist/features/wallet/provider/index.js +0 -4
- package/dist/features/wallet/provider/index.js.map +0 -1
- package/dist/features/wallet/provider/types.d.ts +0 -152
- package/dist/features/wallet/provider/types.js +0 -21
- package/dist/features/wallet/provider/types.js.map +0 -1
- package/dist/features/wallet/styles/embeddedStyles.d.ts +0 -2
- package/dist/features/wallet/styles/embeddedStyles.js +0 -3
- package/dist/features/wallet/styles/embeddedStyles.js.map +0 -1
- package/dist/lib/nord/index.d.ts +0 -2
- package/dist/lib/nord/index.js +0 -59
- package/dist/lib/nord/index.js.map +0 -1
- package/dist/lib/session/index.d.ts +0 -18
- package/dist/lib/session/index.js +0 -70
- package/dist/lib/session/index.js.map +0 -1
- package/dist/lib/session/utils.d.ts +0 -19
- package/dist/lib/session/utils.js +0 -66
- package/dist/lib/session/utils.js.map +0 -1
- package/dist/lib/transaction/index.d.ts +0 -19
- package/dist/lib/transaction/index.js +0 -8
- package/dist/lib/transaction/index.js.map +0 -1
- package/dist/shared/animations/N1Loader.d.ts +0 -11
- package/dist/shared/animations/N1Loader.js +0 -42
- package/dist/shared/animations/N1Loader.js.map +0 -1
- package/dist/shared/animations/N1Loader.json +0 -1
- package/dist/shared/animations/Processing.d.ts +0 -11
- package/dist/shared/animations/Processing.js +0 -42
- package/dist/shared/animations/Processing.js.map +0 -1
- package/dist/shared/animations/Processing.json +0 -1
- package/dist/shared/config/chains.d.ts +0 -29
- package/dist/shared/config/chains.js +0 -39
- package/dist/shared/config/chains.js.map +0 -1
- package/dist/shared/config/nordFlow.d.ts +0 -9
- package/dist/shared/config/nordFlow.js +0 -71
- package/dist/shared/config/nordFlow.js.map +0 -1
- package/dist/shared/config/public.d.ts +0 -2
- package/dist/shared/config/public.js +0 -3
- package/dist/shared/config/public.js.map +0 -1
- package/dist/shared/config/solana.d.ts +0 -13
- package/dist/shared/config/solana.js +0 -19
- package/dist/shared/config/solana.js.map +0 -1
- package/dist/shared/errors/types.d.ts +0 -25
- package/dist/shared/errors/types.js +0 -77
- package/dist/shared/errors/types.js.map +0 -1
- package/dist/shared/polyfills/windowEthereumGuard.d.ts +0 -6
- package/dist/shared/polyfills/windowEthereumGuard.js +0 -28
- package/dist/shared/polyfills/windowEthereumGuard.js.map +0 -1
- package/dist/shared/ui/Logo.d.ts +0 -8
- package/dist/shared/ui/Logo.js +0 -122
- package/dist/shared/ui/Logo.js.map +0 -1
- package/dist/shared/ui/logos/ArbitrumLogo.d.ts +0 -8
- package/dist/shared/ui/logos/ArbitrumLogo.js +0 -6
- package/dist/shared/ui/logos/ArbitrumLogo.js.map +0 -1
- package/dist/shared/ui/logos/BaseLogo.d.ts +0 -8
- package/dist/shared/ui/logos/BaseLogo.js +0 -6
- package/dist/shared/ui/logos/BaseLogo.js.map +0 -1
- package/dist/shared/ui/logos/BeraLogo.d.ts +0 -8
- package/dist/shared/ui/logos/BeraLogo.js +0 -6
- package/dist/shared/ui/logos/BeraLogo.js.map +0 -1
- package/dist/shared/ui/logos/BitcoinLogo.d.ts +0 -8
- package/dist/shared/ui/logos/BitcoinLogo.js +0 -6
- package/dist/shared/ui/logos/BitcoinLogo.js.map +0 -1
- package/dist/shared/ui/logos/EthereumLogo.d.ts +0 -8
- package/dist/shared/ui/logos/EthereumLogo.js +0 -6
- package/dist/shared/ui/logos/EthereumLogo.js.map +0 -1
- package/dist/shared/ui/logos/HyperliquidLogo.d.ts +0 -8
- package/dist/shared/ui/logos/HyperliquidLogo.js +0 -6
- package/dist/shared/ui/logos/HyperliquidLogo.js.map +0 -1
- package/dist/shared/ui/logos/OptimismLogo.d.ts +0 -8
- package/dist/shared/ui/logos/OptimismLogo.js +0 -6
- package/dist/shared/ui/logos/OptimismLogo.js.map +0 -1
- package/dist/shared/ui/logos/SolanaLogo.d.ts +0 -8
- package/dist/shared/ui/logos/SolanaLogo.js +0 -6
- package/dist/shared/ui/logos/SolanaLogo.js.map +0 -1
- package/dist/shared/ui/logos/ZeroOneLogo.d.ts +0 -8
- package/dist/shared/ui/logos/ZeroOneLogo.js +0 -6
- package/dist/shared/ui/logos/ZeroOneLogo.js.map +0 -1
- package/dist/shared/ui/logos/index.d.ts +0 -9
- package/dist/shared/ui/logos/index.js +0 -10
- package/dist/shared/ui/logos/index.js.map +0 -1
- package/dist/shared/utils/dynamicNord.d.ts +0 -2
- package/dist/shared/utils/dynamicNord.js +0 -59
- package/dist/shared/utils/dynamicNord.js.map +0 -1
- package/dist/shared/utils/ed25519.d.ts +0 -8
- package/dist/shared/utils/ed25519.js +0 -87
- package/dist/shared/utils/ed25519.js.map +0 -1
- package/dist/shared/utils/logger.d.ts +0 -21
- package/dist/shared/utils/logger.js +0 -130
- package/dist/shared/utils/logger.js.map +0 -1
- package/dist/shared/utils/shortenString.d.ts +0 -2
- package/dist/shared/utils/shortenString.js +0 -9
- package/dist/shared/utils/shortenString.js.map +0 -1
- package/dist/utils/dynamicImports.js +0 -42
- package/dist/utils/dynamicImports.js.map +0 -1
- package/dist/utils/dynamicNord.d.ts +0 -2
- package/dist/utils/dynamicNord.js +0 -59
- package/dist/utils/dynamicNord.js.map +0 -1
- package/dist/wallet/components/N1ConnectButton.d.ts +0 -5
- package/dist/wallet/components/N1ConnectButton.js +0 -49
- package/dist/wallet/components/N1ConnectButton.js.map +0 -1
- package/dist/wallet/logic/getPseudoName.d.ts +0 -1
- package/dist/wallet/logic/getPseudoName.js +0 -5826
- package/dist/wallet/logic/getPseudoName.js.map +0 -1
- package/dist/wallet/logic/sessionManager.d.ts +0 -17
- package/dist/wallet/logic/sessionManager.js +0 -38
- package/dist/wallet/logic/sessionManager.js.map +0 -1
- package/dist/wallet/logic/transactionManager.d.ts +0 -19
- package/dist/wallet/logic/transactionManager.js +0 -8
- package/dist/wallet/logic/transactionManager.js.map +0 -1
- package/dist/wallet/logic/utils.d.ts +0 -19
- package/dist/wallet/logic/utils.js +0 -66
- package/dist/wallet/logic/utils.js.map +0 -1
- package/dist/wallet/logic/words.d.ts +0 -9
- package/dist/wallet/logic/words.js +0 -93572
- package/dist/wallet/logic/words.js.map +0 -1
- package/dist/wallet/modal/LoadingFallback.d.ts +0 -2
- package/dist/wallet/modal/LoadingFallback.js +0 -3
- package/dist/wallet/modal/LoadingFallback.js.map +0 -1
- package/dist/wallet/modal/N1WalletModal.d.ts +0 -2
- package/dist/wallet/modal/N1WalletModal.js +0 -93
- package/dist/wallet/modal/N1WalletModal.js.map +0 -1
- package/dist/wallet/modal/NordFlow/NordFlow.d.ts +0 -9
- package/dist/wallet/modal/NordFlow/NordFlow.js +0 -98
- package/dist/wallet/modal/NordFlow/NordFlow.js.map +0 -1
- package/dist/wallet/modal/NordFlow/components/ChainButton.d.ts +0 -10
- package/dist/wallet/modal/NordFlow/components/ChainButton.js +0 -21
- package/dist/wallet/modal/NordFlow/components/ChainButton.js.map +0 -1
- package/dist/wallet/modal/NordFlow/components/Header.d.ts +0 -12
- package/dist/wallet/modal/NordFlow/components/Header.js +0 -45
- package/dist/wallet/modal/NordFlow/components/Header.js.map +0 -1
- package/dist/wallet/modal/NordFlow/components/ImageWithFallback.d.ts +0 -17
- package/dist/wallet/modal/NordFlow/components/ImageWithFallback.js +0 -33
- package/dist/wallet/modal/NordFlow/components/ImageWithFallback.js.map +0 -1
- package/dist/wallet/modal/NordFlow/components/TransactionTable.d.ts +0 -13
- package/dist/wallet/modal/NordFlow/components/TransactionTable.js +0 -83
- package/dist/wallet/modal/NordFlow/components/TransactionTable.js.map +0 -1
- package/dist/wallet/modal/NordFlow/components/WaitingMessage.d.ts +0 -8
- package/dist/wallet/modal/NordFlow/components/WaitingMessage.js +0 -17
- package/dist/wallet/modal/NordFlow/components/WaitingMessage.js.map +0 -1
- package/dist/wallet/modal/NordFlow/components/index.d.ts +0 -5
- package/dist/wallet/modal/NordFlow/components/index.js +0 -6
- package/dist/wallet/modal/NordFlow/components/index.js.map +0 -1
- package/dist/wallet/modal/NordFlow/constants.d.ts +0 -31
- package/dist/wallet/modal/NordFlow/constants.js +0 -56
- package/dist/wallet/modal/NordFlow/constants.js.map +0 -1
- package/dist/wallet/modal/NordFlow/context/DepositContext.d.ts +0 -29
- package/dist/wallet/modal/NordFlow/context/DepositContext.js +0 -526
- package/dist/wallet/modal/NordFlow/context/DepositContext.js.map +0 -1
- package/dist/wallet/modal/NordFlow/context/FlowContext.d.ts +0 -50
- package/dist/wallet/modal/NordFlow/context/FlowContext.js +0 -192
- package/dist/wallet/modal/NordFlow/context/FlowContext.js.map +0 -1
- package/dist/wallet/modal/NordFlow/context/NordProvider.d.ts +0 -10
- package/dist/wallet/modal/NordFlow/context/NordProvider.js +0 -14
- package/dist/wallet/modal/NordFlow/context/NordProvider.js.map +0 -1
- package/dist/wallet/modal/NordFlow/context/WalletConnectContext.d.ts +0 -20
- package/dist/wallet/modal/NordFlow/context/WalletConnectContext.js +0 -394
- package/dist/wallet/modal/NordFlow/context/WalletConnectContext.js.map +0 -1
- package/dist/wallet/modal/NordFlow/context/flowMachine.d.ts +0 -48
- package/dist/wallet/modal/NordFlow/context/flowMachine.js +0 -83
- package/dist/wallet/modal/NordFlow/context/flowMachine.js.map +0 -1
- package/dist/wallet/modal/NordFlow/context/index.d.ts +0 -5
- package/dist/wallet/modal/NordFlow/context/index.js +0 -8
- package/dist/wallet/modal/NordFlow/context/index.js.map +0 -1
- package/dist/wallet/modal/NordFlow/hoc/index.d.ts +0 -1
- package/dist/wallet/modal/NordFlow/hoc/index.js +0 -2
- package/dist/wallet/modal/NordFlow/hoc/index.js.map +0 -1
- package/dist/wallet/modal/NordFlow/hoc/withImageFallback.d.ts +0 -7
- package/dist/wallet/modal/NordFlow/hoc/withImageFallback.js +0 -61
- package/dist/wallet/modal/NordFlow/hoc/withImageFallback.js.map +0 -1
- package/dist/wallet/modal/NordFlow/index.d.ts +0 -1
- package/dist/wallet/modal/NordFlow/index.js +0 -2
- package/dist/wallet/modal/NordFlow/index.js.map +0 -1
- package/dist/wallet/modal/NordFlow/screens/01-ConnectWalletScreen.d.ts +0 -1
- package/dist/wallet/modal/NordFlow/screens/01-ConnectWalletScreen.js +0 -19
- package/dist/wallet/modal/NordFlow/screens/01-ConnectWalletScreen.js.map +0 -1
- package/dist/wallet/modal/NordFlow/screens/02-ChainSelectionScreen.d.ts +0 -1
- package/dist/wallet/modal/NordFlow/screens/02-ChainSelectionScreen.js +0 -65
- package/dist/wallet/modal/NordFlow/screens/02-ChainSelectionScreen.js.map +0 -1
- package/dist/wallet/modal/NordFlow/screens/03-AmountInputScreen.d.ts +0 -4
- package/dist/wallet/modal/NordFlow/screens/03-AmountInputScreen.js +0 -358
- package/dist/wallet/modal/NordFlow/screens/03-AmountInputScreen.js.map +0 -1
- package/dist/wallet/modal/NordFlow/screens/04-DepositProgressScreen.d.ts +0 -1
- package/dist/wallet/modal/NordFlow/screens/04-DepositProgressScreen.js +0 -26
- package/dist/wallet/modal/NordFlow/screens/04-DepositProgressScreen.js.map +0 -1
- package/dist/wallet/modal/NordFlow/screens/05-DepositSuccessScreen.d.ts +0 -1
- package/dist/wallet/modal/NordFlow/screens/05-DepositSuccessScreen.js +0 -137
- package/dist/wallet/modal/NordFlow/screens/05-DepositSuccessScreen.js.map +0 -1
- package/dist/wallet/modal/NordFlow/screens/06-AuthLoadingScreen.d.ts +0 -1
- package/dist/wallet/modal/NordFlow/screens/06-AuthLoadingScreen.js +0 -31
- package/dist/wallet/modal/NordFlow/screens/06-AuthLoadingScreen.js.map +0 -1
- package/dist/wallet/modal/NordFlow/screens/07-ErrorScreen.d.ts +0 -1
- package/dist/wallet/modal/NordFlow/screens/07-ErrorScreen.js +0 -14
- package/dist/wallet/modal/NordFlow/screens/07-ErrorScreen.js.map +0 -1
- package/dist/wallet/modal/NordFlow/screens/index.d.ts +0 -7
- package/dist/wallet/modal/NordFlow/screens/index.js +0 -8
- package/dist/wallet/modal/NordFlow/screens/index.js.map +0 -1
- package/dist/wallet/modal/NordFlow/types.d.ts +0 -113
- package/dist/wallet/modal/NordFlow/types.js +0 -34
- package/dist/wallet/modal/NordFlow/types.js.map +0 -1
- package/dist/wallet/modal/NordFlow/utils/depositStorage.d.ts +0 -4
- package/dist/wallet/modal/NordFlow/utils/depositStorage.js +0 -48
- package/dist/wallet/modal/NordFlow/utils/depositStorage.js.map +0 -1
- package/dist/wallet/modal/NordFlow/utils/imageUtils.d.ts +0 -21
- package/dist/wallet/modal/NordFlow/utils/imageUtils.js +0 -110
- package/dist/wallet/modal/NordFlow/utils/imageUtils.js.map +0 -1
- package/dist/wallet/modal/NordFlow/utils/index.d.ts +0 -2
- package/dist/wallet/modal/NordFlow/utils/index.js +0 -3
- package/dist/wallet/modal/NordFlow/utils/index.js.map +0 -1
- package/dist/wallet/modal/NordFlow/utils/nordUtils.d.ts +0 -40
- package/dist/wallet/modal/NordFlow/utils/nordUtils.js +0 -64
- package/dist/wallet/modal/NordFlow/utils/nordUtils.js.map +0 -1
- package/dist/wallet/modal/flow/NordFlow.d.ts +0 -9
- package/dist/wallet/modal/flow/NordFlow.js +0 -98
- package/dist/wallet/modal/flow/NordFlow.js.map +0 -1
- package/dist/wallet/modal/flow/components/ChainButton.d.ts +0 -10
- package/dist/wallet/modal/flow/components/ChainButton.js +0 -21
- package/dist/wallet/modal/flow/components/ChainButton.js.map +0 -1
- package/dist/wallet/modal/flow/components/Header.d.ts +0 -12
- package/dist/wallet/modal/flow/components/Header.js +0 -45
- package/dist/wallet/modal/flow/components/Header.js.map +0 -1
- package/dist/wallet/modal/flow/components/ImageWithFallback.d.ts +0 -17
- package/dist/wallet/modal/flow/components/ImageWithFallback.js +0 -33
- package/dist/wallet/modal/flow/components/ImageWithFallback.js.map +0 -1
- package/dist/wallet/modal/flow/components/TransactionTable.d.ts +0 -13
- package/dist/wallet/modal/flow/components/TransactionTable.js +0 -83
- package/dist/wallet/modal/flow/components/TransactionTable.js.map +0 -1
- package/dist/wallet/modal/flow/components/WaitingMessage.d.ts +0 -8
- package/dist/wallet/modal/flow/components/WaitingMessage.js +0 -17
- package/dist/wallet/modal/flow/components/WaitingMessage.js.map +0 -1
- package/dist/wallet/modal/flow/components/index.d.ts +0 -5
- package/dist/wallet/modal/flow/components/index.js +0 -6
- package/dist/wallet/modal/flow/components/index.js.map +0 -1
- package/dist/wallet/modal/flow/constants.d.ts +0 -31
- package/dist/wallet/modal/flow/constants.js +0 -56
- package/dist/wallet/modal/flow/constants.js.map +0 -1
- package/dist/wallet/modal/flow/context/DepositContext.d.ts +0 -29
- package/dist/wallet/modal/flow/context/DepositContext.js +0 -526
- package/dist/wallet/modal/flow/context/DepositContext.js.map +0 -1
- package/dist/wallet/modal/flow/context/FlowContext.d.ts +0 -50
- package/dist/wallet/modal/flow/context/FlowContext.js +0 -192
- package/dist/wallet/modal/flow/context/FlowContext.js.map +0 -1
- package/dist/wallet/modal/flow/context/NordProvider.d.ts +0 -10
- package/dist/wallet/modal/flow/context/NordProvider.js +0 -14
- package/dist/wallet/modal/flow/context/NordProvider.js.map +0 -1
- package/dist/wallet/modal/flow/context/WalletConnectContext.d.ts +0 -20
- package/dist/wallet/modal/flow/context/WalletConnectContext.js +0 -394
- package/dist/wallet/modal/flow/context/WalletConnectContext.js.map +0 -1
- package/dist/wallet/modal/flow/context/flowMachine.d.ts +0 -48
- package/dist/wallet/modal/flow/context/flowMachine.js +0 -83
- package/dist/wallet/modal/flow/context/flowMachine.js.map +0 -1
- package/dist/wallet/modal/flow/context/index.d.ts +0 -5
- package/dist/wallet/modal/flow/context/index.js +0 -8
- package/dist/wallet/modal/flow/context/index.js.map +0 -1
- package/dist/wallet/modal/flow/hoc/index.d.ts +0 -1
- package/dist/wallet/modal/flow/hoc/index.js +0 -2
- package/dist/wallet/modal/flow/hoc/index.js.map +0 -1
- package/dist/wallet/modal/flow/hoc/withImageFallback.d.ts +0 -7
- package/dist/wallet/modal/flow/hoc/withImageFallback.js +0 -61
- package/dist/wallet/modal/flow/hoc/withImageFallback.js.map +0 -1
- package/dist/wallet/modal/flow/index.d.ts +0 -1
- package/dist/wallet/modal/flow/index.js +0 -2
- package/dist/wallet/modal/flow/index.js.map +0 -1
- package/dist/wallet/modal/flow/screens/01-ConnectWalletScreen.d.ts +0 -1
- package/dist/wallet/modal/flow/screens/01-ConnectWalletScreen.js +0 -19
- package/dist/wallet/modal/flow/screens/01-ConnectWalletScreen.js.map +0 -1
- package/dist/wallet/modal/flow/screens/02-ChainSelectionScreen.d.ts +0 -1
- package/dist/wallet/modal/flow/screens/02-ChainSelectionScreen.js +0 -65
- package/dist/wallet/modal/flow/screens/02-ChainSelectionScreen.js.map +0 -1
- package/dist/wallet/modal/flow/screens/03-AmountInputScreen.d.ts +0 -4
- package/dist/wallet/modal/flow/screens/03-AmountInputScreen.js +0 -358
- package/dist/wallet/modal/flow/screens/03-AmountInputScreen.js.map +0 -1
- package/dist/wallet/modal/flow/screens/04-DepositProgressScreen.d.ts +0 -1
- package/dist/wallet/modal/flow/screens/04-DepositProgressScreen.js +0 -26
- package/dist/wallet/modal/flow/screens/04-DepositProgressScreen.js.map +0 -1
- package/dist/wallet/modal/flow/screens/05-DepositSuccessScreen.d.ts +0 -1
- package/dist/wallet/modal/flow/screens/05-DepositSuccessScreen.js +0 -137
- package/dist/wallet/modal/flow/screens/05-DepositSuccessScreen.js.map +0 -1
- package/dist/wallet/modal/flow/screens/06-AuthLoadingScreen.d.ts +0 -1
- package/dist/wallet/modal/flow/screens/06-AuthLoadingScreen.js +0 -31
- package/dist/wallet/modal/flow/screens/06-AuthLoadingScreen.js.map +0 -1
- package/dist/wallet/modal/flow/screens/07-ErrorScreen.d.ts +0 -1
- package/dist/wallet/modal/flow/screens/07-ErrorScreen.js +0 -14
- package/dist/wallet/modal/flow/screens/07-ErrorScreen.js.map +0 -1
- package/dist/wallet/modal/flow/screens/index.d.ts +0 -7
- package/dist/wallet/modal/flow/screens/index.js +0 -8
- package/dist/wallet/modal/flow/screens/index.js.map +0 -1
- package/dist/wallet/modal/flow/state/constants.d.ts +0 -31
- package/dist/wallet/modal/flow/state/constants.js +0 -56
- package/dist/wallet/modal/flow/state/constants.js.map +0 -1
- package/dist/wallet/modal/flow/state/context/DepositContext.d.ts +0 -29
- package/dist/wallet/modal/flow/state/context/DepositContext.js +0 -526
- package/dist/wallet/modal/flow/state/context/DepositContext.js.map +0 -1
- package/dist/wallet/modal/flow/state/context/FlowContext.d.ts +0 -50
- package/dist/wallet/modal/flow/state/context/FlowContext.js +0 -192
- package/dist/wallet/modal/flow/state/context/FlowContext.js.map +0 -1
- package/dist/wallet/modal/flow/state/context/NordProvider.d.ts +0 -10
- package/dist/wallet/modal/flow/state/context/NordProvider.js +0 -14
- package/dist/wallet/modal/flow/state/context/NordProvider.js.map +0 -1
- package/dist/wallet/modal/flow/state/context/WalletConnectContext.d.ts +0 -20
- package/dist/wallet/modal/flow/state/context/WalletConnectContext.js +0 -394
- package/dist/wallet/modal/flow/state/context/WalletConnectContext.js.map +0 -1
- package/dist/wallet/modal/flow/state/context/flowMachine.d.ts +0 -48
- package/dist/wallet/modal/flow/state/context/flowMachine.js +0 -83
- package/dist/wallet/modal/flow/state/context/flowMachine.js.map +0 -1
- package/dist/wallet/modal/flow/state/context/index.d.ts +0 -5
- package/dist/wallet/modal/flow/state/context/index.js +0 -8
- package/dist/wallet/modal/flow/state/context/index.js.map +0 -1
- package/dist/wallet/modal/flow/state/types.d.ts +0 -113
- package/dist/wallet/modal/flow/state/types.js +0 -34
- package/dist/wallet/modal/flow/state/types.js.map +0 -1
- package/dist/wallet/modal/flow/state/utils/depositStorage.d.ts +0 -4
- package/dist/wallet/modal/flow/state/utils/depositStorage.js +0 -48
- package/dist/wallet/modal/flow/state/utils/depositStorage.js.map +0 -1
- package/dist/wallet/modal/flow/state/utils/nordUtils.d.ts +0 -40
- package/dist/wallet/modal/flow/state/utils/nordUtils.js +0 -64
- package/dist/wallet/modal/flow/state/utils/nordUtils.js.map +0 -1
- package/dist/wallet/modal/flow/types.d.ts +0 -113
- package/dist/wallet/modal/flow/types.js +0 -34
- package/dist/wallet/modal/flow/types.js.map +0 -1
- package/dist/wallet/modal/flow/ui/NordFlow.d.ts +0 -9
- package/dist/wallet/modal/flow/ui/NordFlow.js +0 -98
- package/dist/wallet/modal/flow/ui/NordFlow.js.map +0 -1
- package/dist/wallet/modal/flow/ui/components/ChainButton.d.ts +0 -10
- package/dist/wallet/modal/flow/ui/components/ChainButton.js +0 -21
- package/dist/wallet/modal/flow/ui/components/ChainButton.js.map +0 -1
- package/dist/wallet/modal/flow/ui/components/Header.d.ts +0 -12
- package/dist/wallet/modal/flow/ui/components/Header.js +0 -45
- package/dist/wallet/modal/flow/ui/components/Header.js.map +0 -1
- package/dist/wallet/modal/flow/ui/components/ImageWithFallback.d.ts +0 -17
- package/dist/wallet/modal/flow/ui/components/ImageWithFallback.js +0 -33
- package/dist/wallet/modal/flow/ui/components/ImageWithFallback.js.map +0 -1
- package/dist/wallet/modal/flow/ui/components/TransactionTable.d.ts +0 -13
- package/dist/wallet/modal/flow/ui/components/TransactionTable.js +0 -83
- package/dist/wallet/modal/flow/ui/components/TransactionTable.js.map +0 -1
- package/dist/wallet/modal/flow/ui/components/WaitingMessage.d.ts +0 -8
- package/dist/wallet/modal/flow/ui/components/WaitingMessage.js +0 -17
- package/dist/wallet/modal/flow/ui/components/WaitingMessage.js.map +0 -1
- package/dist/wallet/modal/flow/ui/components/index.d.ts +0 -5
- package/dist/wallet/modal/flow/ui/components/index.js +0 -6
- package/dist/wallet/modal/flow/ui/components/index.js.map +0 -1
- package/dist/wallet/modal/flow/ui/hoc/index.d.ts +0 -1
- package/dist/wallet/modal/flow/ui/hoc/index.js +0 -2
- package/dist/wallet/modal/flow/ui/hoc/index.js.map +0 -1
- package/dist/wallet/modal/flow/ui/hoc/withImageFallback.d.ts +0 -7
- package/dist/wallet/modal/flow/ui/hoc/withImageFallback.js +0 -61
- package/dist/wallet/modal/flow/ui/hoc/withImageFallback.js.map +0 -1
- package/dist/wallet/modal/flow/ui/screens/01-ConnectWalletScreen.d.ts +0 -1
- package/dist/wallet/modal/flow/ui/screens/01-ConnectWalletScreen.js +0 -19
- package/dist/wallet/modal/flow/ui/screens/01-ConnectWalletScreen.js.map +0 -1
- package/dist/wallet/modal/flow/ui/screens/02-ChainSelectionScreen.d.ts +0 -1
- package/dist/wallet/modal/flow/ui/screens/02-ChainSelectionScreen.js +0 -65
- package/dist/wallet/modal/flow/ui/screens/02-ChainSelectionScreen.js.map +0 -1
- package/dist/wallet/modal/flow/ui/screens/03-AmountInputScreen.d.ts +0 -4
- package/dist/wallet/modal/flow/ui/screens/03-AmountInputScreen.js +0 -358
- package/dist/wallet/modal/flow/ui/screens/03-AmountInputScreen.js.map +0 -1
- package/dist/wallet/modal/flow/ui/screens/04-DepositProgressScreen.d.ts +0 -1
- package/dist/wallet/modal/flow/ui/screens/04-DepositProgressScreen.js +0 -26
- package/dist/wallet/modal/flow/ui/screens/04-DepositProgressScreen.js.map +0 -1
- package/dist/wallet/modal/flow/ui/screens/05-DepositSuccessScreen.d.ts +0 -1
- package/dist/wallet/modal/flow/ui/screens/05-DepositSuccessScreen.js +0 -137
- package/dist/wallet/modal/flow/ui/screens/05-DepositSuccessScreen.js.map +0 -1
- package/dist/wallet/modal/flow/ui/screens/06-AuthLoadingScreen.d.ts +0 -1
- package/dist/wallet/modal/flow/ui/screens/06-AuthLoadingScreen.js +0 -31
- package/dist/wallet/modal/flow/ui/screens/06-AuthLoadingScreen.js.map +0 -1
- package/dist/wallet/modal/flow/ui/screens/07-ErrorScreen.d.ts +0 -1
- package/dist/wallet/modal/flow/ui/screens/07-ErrorScreen.js +0 -14
- package/dist/wallet/modal/flow/ui/screens/07-ErrorScreen.js.map +0 -1
- package/dist/wallet/modal/flow/ui/screens/index.d.ts +0 -7
- package/dist/wallet/modal/flow/ui/screens/index.js +0 -8
- package/dist/wallet/modal/flow/ui/screens/index.js.map +0 -1
- package/dist/wallet/modal/flow/ui/utils/imageUtils.d.ts +0 -21
- package/dist/wallet/modal/flow/ui/utils/imageUtils.js +0 -110
- package/dist/wallet/modal/flow/ui/utils/imageUtils.js.map +0 -1
- package/dist/wallet/modal/flow/utils/depositStorage.d.ts +0 -4
- package/dist/wallet/modal/flow/utils/depositStorage.js +0 -48
- package/dist/wallet/modal/flow/utils/depositStorage.js.map +0 -1
- package/dist/wallet/modal/flow/utils/imageUtils.d.ts +0 -21
- package/dist/wallet/modal/flow/utils/imageUtils.js +0 -110
- package/dist/wallet/modal/flow/utils/imageUtils.js.map +0 -1
- package/dist/wallet/modal/flow/utils/index.d.ts +0 -2
- package/dist/wallet/modal/flow/utils/index.js +0 -3
- package/dist/wallet/modal/flow/utils/index.js.map +0 -1
- package/dist/wallet/modal/flow/utils/nordUtils.d.ts +0 -40
- package/dist/wallet/modal/flow/utils/nordUtils.js +0 -64
- package/dist/wallet/modal/flow/utils/nordUtils.js.map +0 -1
- package/dist/wallet/provider/LazyWalletProvider.d.ts +0 -1
- package/dist/wallet/provider/LazyWalletProvider.js +0 -230
- package/dist/wallet/provider/LazyWalletProvider.js.map +0 -1
- package/dist/wallet/provider/N1WalletProvider.d.ts +0 -3
- package/dist/wallet/provider/N1WalletProvider.js +0 -266
- package/dist/wallet/provider/N1WalletProvider.js.map +0 -1
- package/dist/wallet/provider/ShadowRootWrapper.d.ts +0 -7
- package/dist/wallet/provider/ShadowRootWrapper.js +0 -7
- package/dist/wallet/provider/ShadowRootWrapper.js.map +0 -1
- package/dist/wallet/provider/WalletErrorBoundary.d.ts +0 -17
- package/dist/wallet/provider/WalletErrorBoundary.js +0 -57
- package/dist/wallet/provider/WalletErrorBoundary.js.map +0 -1
- package/dist/wallet/provider/context.d.ts +0 -3
- package/dist/wallet/provider/context.js +0 -5
- package/dist/wallet/provider/context.js.map +0 -1
- package/dist/wallet/provider/hooks/useNordUserInitialization.d.ts +0 -1
- package/dist/wallet/provider/hooks/useNordUserInitialization.js +0 -306
- package/dist/wallet/provider/hooks/useNordUserInitialization.js.map +0 -1
- package/dist/wallet/provider/hooks.d.ts +0 -2
- package/dist/wallet/provider/hooks.js +0 -17
- package/dist/wallet/provider/hooks.js.map +0 -1
- package/dist/wallet/provider/index.d.ts +0 -3
- package/dist/wallet/provider/index.js +0 -4
- package/dist/wallet/provider/index.js.map +0 -1
- package/dist/wallet/provider/types.d.ts +0 -152
- package/dist/wallet/provider/types.js +0 -21
- package/dist/wallet/provider/types.js.map +0 -1
- package/dist/wallet/state/flow/constants.d.ts +0 -31
- package/dist/wallet/state/flow/constants.js +0 -56
- package/dist/wallet/state/flow/constants.js.map +0 -1
- package/dist/wallet/state/flow/context/DepositContext.d.ts +0 -29
- package/dist/wallet/state/flow/context/DepositContext.js +0 -525
- package/dist/wallet/state/flow/context/DepositContext.js.map +0 -1
- package/dist/wallet/state/flow/context/FlowContext.d.ts +0 -50
- package/dist/wallet/state/flow/context/FlowContext.js +0 -191
- package/dist/wallet/state/flow/context/FlowContext.js.map +0 -1
- package/dist/wallet/state/flow/context/NordProvider.d.ts +0 -10
- package/dist/wallet/state/flow/context/NordProvider.js +0 -14
- package/dist/wallet/state/flow/context/NordProvider.js.map +0 -1
- package/dist/wallet/state/flow/context/WalletConnectContext.d.ts +0 -20
- package/dist/wallet/state/flow/context/WalletConnectContext.js +0 -393
- package/dist/wallet/state/flow/context/WalletConnectContext.js.map +0 -1
- package/dist/wallet/state/flow/context/flowMachine.d.ts +0 -48
- package/dist/wallet/state/flow/context/flowMachine.js +0 -83
- package/dist/wallet/state/flow/context/flowMachine.js.map +0 -1
- package/dist/wallet/state/flow/context/index.d.ts +0 -5
- package/dist/wallet/state/flow/context/index.js +0 -8
- package/dist/wallet/state/flow/context/index.js.map +0 -1
- package/dist/wallet/state/flow/types.d.ts +0 -113
- package/dist/wallet/state/flow/types.js +0 -34
- package/dist/wallet/state/flow/types.js.map +0 -1
- package/dist/wallet/state/flow/utils/depositStorage.d.ts +0 -4
- package/dist/wallet/state/flow/utils/depositStorage.js +0 -48
- package/dist/wallet/state/flow/utils/depositStorage.js.map +0 -1
- package/dist/wallet/state/flow/utils/nordUtils.d.ts +0 -40
- package/dist/wallet/state/flow/utils/nordUtils.js +0 -64
- package/dist/wallet/state/flow/utils/nordUtils.js.map +0 -1
- package/dist/wallet/state/logic/getPseudoName.d.ts +0 -1
- package/dist/wallet/state/logic/getPseudoName.js +0 -5826
- package/dist/wallet/state/logic/getPseudoName.js.map +0 -1
- package/dist/wallet/state/logic/sessionManager.d.ts +0 -17
- package/dist/wallet/state/logic/sessionManager.js +0 -38
- package/dist/wallet/state/logic/sessionManager.js.map +0 -1
- package/dist/wallet/state/logic/transactionManager.d.ts +0 -19
- package/dist/wallet/state/logic/transactionManager.js +0 -8
- package/dist/wallet/state/logic/transactionManager.js.map +0 -1
- package/dist/wallet/state/logic/utils.d.ts +0 -19
- package/dist/wallet/state/logic/utils.js +0 -66
- package/dist/wallet/state/logic/utils.js.map +0 -1
- package/dist/wallet/state/logic/words.d.ts +0 -9
- package/dist/wallet/state/logic/words.js +0 -93572
- package/dist/wallet/state/logic/words.js.map +0 -1
- package/dist/wallet/state/provider/LazyWalletProvider.d.ts +0 -1
- package/dist/wallet/state/provider/LazyWalletProvider.js +0 -230
- package/dist/wallet/state/provider/LazyWalletProvider.js.map +0 -1
- package/dist/wallet/state/provider/N1WalletProvider.d.ts +0 -3
- package/dist/wallet/state/provider/N1WalletProvider.js +0 -266
- package/dist/wallet/state/provider/N1WalletProvider.js.map +0 -1
- package/dist/wallet/state/provider/WalletErrorBoundary.d.ts +0 -17
- package/dist/wallet/state/provider/WalletErrorBoundary.js +0 -57
- package/dist/wallet/state/provider/WalletErrorBoundary.js.map +0 -1
- package/dist/wallet/state/provider/context.d.ts +0 -5
- package/dist/wallet/state/provider/context.js +0 -5
- package/dist/wallet/state/provider/context.js.map +0 -1
- package/dist/wallet/state/provider/hooks/useNordUserInitialization.d.ts +0 -1
- package/dist/wallet/state/provider/hooks/useNordUserInitialization.js +0 -306
- package/dist/wallet/state/provider/hooks/useNordUserInitialization.js.map +0 -1
- package/dist/wallet/state/provider/hooks.d.ts +0 -2
- package/dist/wallet/state/provider/hooks.js +0 -17
- package/dist/wallet/state/provider/hooks.js.map +0 -1
- package/dist/wallet/state/provider/index.d.ts +0 -3
- package/dist/wallet/state/provider/index.js +0 -4
- package/dist/wallet/state/provider/index.js.map +0 -1
- package/dist/wallet/state/provider/types.d.ts +0 -152
- package/dist/wallet/state/provider/types.js +0 -21
- package/dist/wallet/state/provider/types.js.map +0 -1
- package/dist/wallet/state/utils/getPseudoName.d.ts +0 -1
- package/dist/wallet/state/utils/getPseudoName.js +0 -5826
- package/dist/wallet/state/utils/getPseudoName.js.map +0 -1
- package/dist/wallet/state/utils/sessionManager.d.ts +0 -17
- package/dist/wallet/state/utils/sessionManager.js +0 -38
- package/dist/wallet/state/utils/sessionManager.js.map +0 -1
- package/dist/wallet/state/utils/transactionManager.d.ts +0 -19
- package/dist/wallet/state/utils/transactionManager.js +0 -8
- package/dist/wallet/state/utils/transactionManager.js.map +0 -1
- package/dist/wallet/state/utils/utils.d.ts +0 -18
- package/dist/wallet/state/utils/utils.js +0 -66
- package/dist/wallet/state/utils/utils.js.map +0 -1
- package/dist/wallet/state/utils/words.d.ts +0 -9
- package/dist/wallet/state/utils/words.js +0 -93572
- package/dist/wallet/state/utils/words.js.map +0 -1
- package/dist/wallet/styles/embeddedStyles.d.ts +0 -2
- package/dist/wallet/styles/embeddedStyles.js +0 -3
- package/dist/wallet/styles/embeddedStyles.js.map +0 -1
- package/dist/wallet/ui/N1ConnectButton.d.ts +0 -5
- package/dist/wallet/ui/N1ConnectButton.js +0 -49
- package/dist/wallet/ui/N1ConnectButton.js.map +0 -1
- package/dist/wallet/ui/ShadowRootWrapper.d.ts +0 -7
- package/dist/wallet/ui/ShadowRootWrapper.js +0 -7
- package/dist/wallet/ui/ShadowRootWrapper.js.map +0 -1
- package/dist/wallet/ui/modal/LoadingFallback.d.ts +0 -2
- package/dist/wallet/ui/modal/LoadingFallback.js +0 -3
- package/dist/wallet/ui/modal/LoadingFallback.js.map +0 -1
- package/dist/wallet/ui/modal/N1WalletModal.d.ts +0 -2
- package/dist/wallet/ui/modal/N1WalletModal.js +0 -93
- package/dist/wallet/ui/modal/N1WalletModal.js.map +0 -1
- package/dist/wallet/ui/modal/flow/NordFlow.d.ts +0 -9
- package/dist/wallet/ui/modal/flow/NordFlow.js +0 -98
- package/dist/wallet/ui/modal/flow/NordFlow.js.map +0 -1
- package/dist/wallet/ui/modal/flow/components/ChainButton.d.ts +0 -10
- package/dist/wallet/ui/modal/flow/components/ChainButton.js +0 -21
- package/dist/wallet/ui/modal/flow/components/ChainButton.js.map +0 -1
- package/dist/wallet/ui/modal/flow/components/Header.d.ts +0 -12
- package/dist/wallet/ui/modal/flow/components/Header.js +0 -45
- package/dist/wallet/ui/modal/flow/components/Header.js.map +0 -1
- package/dist/wallet/ui/modal/flow/components/ImageWithFallback.d.ts +0 -17
- package/dist/wallet/ui/modal/flow/components/ImageWithFallback.js +0 -33
- package/dist/wallet/ui/modal/flow/components/ImageWithFallback.js.map +0 -1
- package/dist/wallet/ui/modal/flow/components/TransactionTable.d.ts +0 -13
- package/dist/wallet/ui/modal/flow/components/TransactionTable.js +0 -83
- package/dist/wallet/ui/modal/flow/components/TransactionTable.js.map +0 -1
- package/dist/wallet/ui/modal/flow/components/WaitingMessage.d.ts +0 -8
- package/dist/wallet/ui/modal/flow/components/WaitingMessage.js +0 -17
- package/dist/wallet/ui/modal/flow/components/WaitingMessage.js.map +0 -1
- package/dist/wallet/ui/modal/flow/components/index.d.ts +0 -5
- package/dist/wallet/ui/modal/flow/components/index.js +0 -6
- package/dist/wallet/ui/modal/flow/components/index.js.map +0 -1
- package/dist/wallet/ui/modal/flow/hoc/index.d.ts +0 -1
- package/dist/wallet/ui/modal/flow/hoc/index.js +0 -2
- package/dist/wallet/ui/modal/flow/hoc/index.js.map +0 -1
- package/dist/wallet/ui/modal/flow/hoc/withImageFallback.d.ts +0 -7
- package/dist/wallet/ui/modal/flow/hoc/withImageFallback.js +0 -61
- package/dist/wallet/ui/modal/flow/hoc/withImageFallback.js.map +0 -1
- package/dist/wallet/ui/modal/flow/index.d.ts +0 -1
- package/dist/wallet/ui/modal/flow/index.js +0 -2
- package/dist/wallet/ui/modal/flow/index.js.map +0 -1
- package/dist/wallet/ui/modal/flow/screens/01-ConnectWalletScreen.d.ts +0 -1
- package/dist/wallet/ui/modal/flow/screens/01-ConnectWalletScreen.js +0 -19
- package/dist/wallet/ui/modal/flow/screens/01-ConnectWalletScreen.js.map +0 -1
- package/dist/wallet/ui/modal/flow/screens/02-ChainSelectionScreen.d.ts +0 -1
- package/dist/wallet/ui/modal/flow/screens/02-ChainSelectionScreen.js +0 -65
- package/dist/wallet/ui/modal/flow/screens/02-ChainSelectionScreen.js.map +0 -1
- package/dist/wallet/ui/modal/flow/screens/03-AmountInputScreen.d.ts +0 -4
- package/dist/wallet/ui/modal/flow/screens/03-AmountInputScreen.js +0 -358
- package/dist/wallet/ui/modal/flow/screens/03-AmountInputScreen.js.map +0 -1
- package/dist/wallet/ui/modal/flow/screens/04-DepositProgressScreen.d.ts +0 -1
- package/dist/wallet/ui/modal/flow/screens/04-DepositProgressScreen.js +0 -26
- package/dist/wallet/ui/modal/flow/screens/04-DepositProgressScreen.js.map +0 -1
- package/dist/wallet/ui/modal/flow/screens/05-DepositSuccessScreen.d.ts +0 -1
- package/dist/wallet/ui/modal/flow/screens/05-DepositSuccessScreen.js +0 -137
- package/dist/wallet/ui/modal/flow/screens/05-DepositSuccessScreen.js.map +0 -1
- package/dist/wallet/ui/modal/flow/screens/06-AuthLoadingScreen.d.ts +0 -1
- package/dist/wallet/ui/modal/flow/screens/06-AuthLoadingScreen.js +0 -31
- package/dist/wallet/ui/modal/flow/screens/06-AuthLoadingScreen.js.map +0 -1
- package/dist/wallet/ui/modal/flow/screens/07-ErrorScreen.d.ts +0 -1
- package/dist/wallet/ui/modal/flow/screens/07-ErrorScreen.js +0 -14
- package/dist/wallet/ui/modal/flow/screens/07-ErrorScreen.js.map +0 -1
- package/dist/wallet/ui/modal/flow/screens/index.d.ts +0 -7
- package/dist/wallet/ui/modal/flow/screens/index.js +0 -8
- package/dist/wallet/ui/modal/flow/screens/index.js.map +0 -1
- package/dist/wallet/ui/modal/flow/utils/imageUtils.d.ts +0 -21
- package/dist/wallet/ui/modal/flow/utils/imageUtils.js +0 -110
- package/dist/wallet/ui/modal/flow/utils/imageUtils.js.map +0 -1
- /package/dist/{fonts → assets/fonts}/apk-galeria/APK-Galeria-Bold-Italic-Trial.otf +0 -0
- /package/dist/{fonts → assets/fonts}/apk-galeria/APK-Galeria-Bold-Trial.otf +0 -0
- /package/dist/{fonts → assets/fonts}/apk-galeria/APK-Galeria-Extra-Bold-Italic-Trial.otf +0 -0
- /package/dist/{fonts → assets/fonts}/apk-galeria/APK-Galeria-Extra-Bold-Trial.otf +0 -0
- /package/dist/{fonts → assets/fonts}/apk-galeria/APK-Galeria-Light-Italic-Trial.otf +0 -0
- /package/dist/{fonts → assets/fonts}/apk-galeria/APK-Galeria-Light-Trial.otf +0 -0
- /package/dist/{fonts → assets/fonts}/apk-galeria/APK-Galeria-Medium-Italic-Trial.otf +0 -0
- /package/dist/{fonts → assets/fonts}/apk-galeria/APK-Galeria-Medium-Trial.otf +0 -0
- /package/dist/{fonts → assets/fonts}/apk-galeria/APK-Galeria-Regular-Italic-Trial.otf +0 -0
- /package/dist/{fonts → assets/fonts}/apk-galeria/APK-Galeria-Regular-Trial.otf +0 -0
- /package/dist/{fonts → assets/fonts}/apk-galeria/APK-Galeria-Semi-Bold-Italic-Trial.otf +0 -0
- /package/dist/{fonts → assets/fonts}/apk-galeria/APK-Galeria-Semi-Bold-Trial.otf +0 -0
- /package/dist/{fonts → assets/fonts}/apk-galeria/APK-Galeria-Thin-Italic-Trial.otf +0 -0
- /package/dist/{fonts → assets/fonts}/apk-galeria/APK-Galeria-Thin-Trial.otf +0 -0
- /package/dist/{main.css → styles/main.css} +0 -0
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
-
var t = {};
|
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
-
t[p] = s[p];
|
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
-
t[p[i]] = s[p[i]];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
-
import React from 'react';
|
|
25
|
-
import { ImageWithFallback } from '../components';
|
|
26
|
-
/**
|
|
27
|
-
* A Higher-Order Component (HOC) that adds image fallback functionality to a component
|
|
28
|
-
* @param WrappedComponent The component to wrap
|
|
29
|
-
* @returns A new component with image fallback functionality
|
|
30
|
-
*/
|
|
31
|
-
export function withImageFallback(WrappedComponent) {
|
|
32
|
-
// Create a new component that wraps the original component
|
|
33
|
-
var WithImageFallback = function (props) {
|
|
34
|
-
// Function to recursively process React elements
|
|
35
|
-
var processNode = function (node) {
|
|
36
|
-
if (!React.isValidElement(node)) {
|
|
37
|
-
return node;
|
|
38
|
-
}
|
|
39
|
-
var element = node;
|
|
40
|
-
// If it's an img element, replace it with ImageWithFallback
|
|
41
|
-
if (element.type === 'img') {
|
|
42
|
-
var _a = element.props, src = _a.src, alt = _a.alt, width = _a.width, height = _a.height, className = _a.className, rest = __rest(_a, ["src", "alt", "width", "height", "className"]);
|
|
43
|
-
return (_jsx(ImageWithFallback, __assign({ src: src, alt: alt || 'Image', width: width, height: height, className: className }, rest)));
|
|
44
|
-
}
|
|
45
|
-
// If it has children, process them recursively
|
|
46
|
-
if (element.props && element.props.children) {
|
|
47
|
-
var children = React.Children.map(element.props.children, processNode);
|
|
48
|
-
return React.cloneElement(element, __assign({}, element.props), children);
|
|
49
|
-
}
|
|
50
|
-
return element;
|
|
51
|
-
};
|
|
52
|
-
// Render the wrapped component and process its output
|
|
53
|
-
var renderedComponent = _jsx(WrappedComponent, __assign({}, props));
|
|
54
|
-
return processNode(renderedComponent);
|
|
55
|
-
};
|
|
56
|
-
// Set display name for debugging
|
|
57
|
-
var wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
|
|
58
|
-
WithImageFallback.displayName = "withImageFallback(".concat(wrappedComponentName, ")");
|
|
59
|
-
return WithImageFallback;
|
|
60
|
-
}
|
|
61
|
-
//# sourceMappingURL=withImageFallback.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withImageFallback.js","sourceRoot":"","sources":["../../../../src/Modal/NordFlow/hoc/withImageFallback.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAElD;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAC/B,gBAAkC;IAElC,2DAA2D;IAC3D,IAAM,iBAAiB,GAAgB,UAAC,KAAK;QAC3C,iDAAiD;QACjD,IAAM,WAAW,GAAG,UAAC,IAAqB;YACxC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC;gBAChC,OAAO,IAAI,CAAC;YACd,CAAC;YAED,IAAM,OAAO,GAAG,IAA0B,CAAC;YAE3C,4DAA4D;YAC5D,IAAI,OAAO,CAAC,IAAI,KAAK,KAAK,EAAE,CAAC;gBAC3B,IAAM,KAAkD,OAAO,CAAC,KAAK,EAA7D,GAAG,SAAA,EAAE,GAAG,SAAA,EAAE,KAAK,WAAA,EAAE,MAAM,YAAA,EAAE,SAAS,eAAA,EAAK,IAAI,cAA7C,8CAA+C,CAAgB,CAAC;gBAEtE,OAAO,CACL,KAAC,iBAAiB,aAChB,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,IAAI,OAAO,EACnB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,IAChB,IAAI,EACR,CACH,CAAC;YACJ,CAAC;YAED,+CAA+C;YAC/C,IAAI,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;gBAC5C,IAAM,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC,GAAG,CACjC,OAAO,CAAC,KAAK,CAAC,QAAQ,EACtB,WAAW,CACZ,CAAC;gBAEF,OAAO,KAAK,CAAC,YAAY,CAAC,OAAO,eAAO,OAAO,CAAC,KAAK,GAAI,QAAQ,CAAC,CAAC;YACrE,CAAC;YAED,OAAO,OAAO,CAAC;QACjB,CAAC,CAAC;QAEF,sDAAsD;QACtD,IAAM,iBAAiB,GAAG,KAAC,gBAAgB,eAAK,KAAK,EAAI,CAAC;QAC1D,OAAO,WAAW,CAAC,iBAAiB,CAAuB,CAAC;IAC9D,CAAC,CAAC;IAEF,iCAAiC;IACjC,IAAM,oBAAoB,GACxB,gBAAgB,CAAC,WAAW,IAAI,gBAAgB,CAAC,IAAI,IAAI,WAAW,CAAC;IACvE,iBAAiB,CAAC,WAAW,GAAG,4BAAqB,oBAAoB,MAAG,CAAC;IAE7E,OAAO,iBAAiB,CAAC;AAC3B,CAAC","sourcesContent":["import React, { ComponentType } from 'react';\nimport { ImageWithFallback } from '../components';\n\n/**\n * A Higher-Order Component (HOC) that adds image fallback functionality to a component\n * @param WrappedComponent The component to wrap\n * @returns A new component with image fallback functionality\n */\nexport function withImageFallback<P extends object>(\n WrappedComponent: ComponentType<P>\n): React.FC<P> {\n // Create a new component that wraps the original component\n const WithImageFallback: React.FC<P> = (props) => {\n // Function to recursively process React elements\n const processNode = (node: React.ReactNode): React.ReactNode => {\n if (!React.isValidElement(node)) {\n return node;\n }\n\n const element = node as React.ReactElement;\n\n // If it's an img element, replace it with ImageWithFallback\n if (element.type === 'img') {\n const { src, alt, width, height, className, ...rest } = element.props;\n\n return (\n <ImageWithFallback\n src={src}\n alt={alt || 'Image'}\n width={width}\n height={height}\n className={className}\n {...rest}\n />\n );\n }\n\n // If it has children, process them recursively\n if (element.props && element.props.children) {\n const children = React.Children.map(\n element.props.children,\n processNode\n );\n\n return React.cloneElement(element, { ...element.props }, children);\n }\n\n return element;\n };\n\n // Render the wrapped component and process its output\n const renderedComponent = <WrappedComponent {...props} />;\n return processNode(renderedComponent) as React.ReactElement;\n };\n\n // Set display name for debugging\n const wrappedComponentName =\n WrappedComponent.displayName || WrappedComponent.name || 'Component';\n WithImageFallback.displayName = `withImageFallback(${wrappedComponentName})`;\n\n return WithImageFallback;\n}\n"]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
interface UseTestnetFaucetParams {
|
|
2
|
-
enabled: boolean;
|
|
3
|
-
balance: number;
|
|
4
|
-
minDeposit: number;
|
|
5
|
-
onBalanceRefresh?: () => Promise<void>;
|
|
6
|
-
}
|
|
7
|
-
interface UseTestnetFaucetResult {
|
|
8
|
-
isFaucetLoading: boolean;
|
|
9
|
-
faucetError: string | null;
|
|
10
|
-
showFaucetSuccess: boolean;
|
|
11
|
-
showFaucetOverlay: boolean;
|
|
12
|
-
requestTestnetTokens: () => Promise<void>;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Centralizes the faucet orchestration logic so it can be toggled from the widget entry point.
|
|
16
|
-
*/
|
|
17
|
-
export declare function useTestnetFaucet({ enabled, balance, minDeposit, onBalanceRefresh, }: UseTestnetFaucetParams): UseTestnetFaucetResult;
|
|
18
|
-
export {};
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
12
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
|
-
function step(op) {
|
|
15
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
|
-
switch (op[0]) {
|
|
20
|
-
case 0: case 1: t = op; break;
|
|
21
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
22
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
23
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
24
|
-
default:
|
|
25
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
26
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
29
|
-
if (t[2]) _.ops.pop();
|
|
30
|
-
_.trys.pop(); continue;
|
|
31
|
-
}
|
|
32
|
-
op = body.call(thisArg, _);
|
|
33
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
34
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
38
|
-
import { useN1WalletContext, useN1WalletInternalContext, } from '../../../Provider/hooks';
|
|
39
|
-
import { useFlowStateContext } from '../context/FlowContext';
|
|
40
|
-
import { logger } from '../../../utils/logger';
|
|
41
|
-
/**
|
|
42
|
-
* Centralizes the faucet orchestration logic so it can be toggled from the widget entry point.
|
|
43
|
-
*/
|
|
44
|
-
export function useTestnetFaucet(_a) {
|
|
45
|
-
var _this = this;
|
|
46
|
-
var enabled = _a.enabled, balance = _a.balance, minDeposit = _a.minDeposit, onBalanceRefresh = _a.onBalanceRefresh;
|
|
47
|
-
var address = useN1WalletContext().address;
|
|
48
|
-
var faucetUrl = useN1WalletInternalContext().faucetUrl;
|
|
49
|
-
var context = useFlowStateContext().context;
|
|
50
|
-
var faucetFiredRef = useRef(false);
|
|
51
|
-
var prevBalanceRef = useRef(balance);
|
|
52
|
-
var _b = useState(false), isFaucetLoading = _b[0], setIsFaucetLoading = _b[1];
|
|
53
|
-
var _c = useState(null), faucetError = _c[0], setFaucetError = _c[1];
|
|
54
|
-
var _d = useState(false), tokensObtained = _d[0], setTokensObtained = _d[1];
|
|
55
|
-
var _e = useState(false), showFaucetSuccess = _e[0], setShowFaucetSuccess = _e[1];
|
|
56
|
-
var refreshBalance = useCallback(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
57
|
-
var error_1;
|
|
58
|
-
return __generator(this, function (_a) {
|
|
59
|
-
switch (_a.label) {
|
|
60
|
-
case 0:
|
|
61
|
-
if (!onBalanceRefresh) {
|
|
62
|
-
return [2 /*return*/];
|
|
63
|
-
}
|
|
64
|
-
_a.label = 1;
|
|
65
|
-
case 1:
|
|
66
|
-
_a.trys.push([1, 3, , 4]);
|
|
67
|
-
return [4 /*yield*/, onBalanceRefresh()];
|
|
68
|
-
case 2:
|
|
69
|
-
_a.sent();
|
|
70
|
-
return [3 /*break*/, 4];
|
|
71
|
-
case 3:
|
|
72
|
-
error_1 = _a.sent();
|
|
73
|
-
logger.warn('Failed to refresh balance after faucet request', error_1);
|
|
74
|
-
return [3 /*break*/, 4];
|
|
75
|
-
case 4: return [2 /*return*/];
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
}); }, [onBalanceRefresh]);
|
|
79
|
-
var shouldShowFaucet = useMemo(function () {
|
|
80
|
-
return enabled && Boolean(faucetUrl) && !tokensObtained;
|
|
81
|
-
}, [enabled, faucetUrl, tokensObtained]);
|
|
82
|
-
var showFaucetOverlay = useMemo(function () {
|
|
83
|
-
if (!shouldShowFaucet) {
|
|
84
|
-
return false;
|
|
85
|
-
}
|
|
86
|
-
return ((isFaucetLoading || faucetError !== null) ||
|
|
87
|
-
showFaucetSuccess);
|
|
88
|
-
}, [shouldShowFaucet, isFaucetLoading, faucetError, showFaucetSuccess]);
|
|
89
|
-
var requestTestnetTokens = useCallback(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
90
|
-
var response, errorData, error_2;
|
|
91
|
-
return __generator(this, function (_a) {
|
|
92
|
-
switch (_a.label) {
|
|
93
|
-
case 0:
|
|
94
|
-
if (!shouldShowFaucet || !address || !faucetUrl)
|
|
95
|
-
return [2 /*return*/];
|
|
96
|
-
if (faucetFiredRef.current)
|
|
97
|
-
return [2 /*return*/];
|
|
98
|
-
faucetFiredRef.current = true;
|
|
99
|
-
_a.label = 1;
|
|
100
|
-
case 1:
|
|
101
|
-
_a.trys.push([1, 7, 8, 9]);
|
|
102
|
-
setIsFaucetLoading(true);
|
|
103
|
-
setFaucetError(null);
|
|
104
|
-
setShowFaucetSuccess(false);
|
|
105
|
-
return [4 /*yield*/, fetch(faucetUrl, {
|
|
106
|
-
method: 'POST',
|
|
107
|
-
headers: {
|
|
108
|
-
'Content-Type': 'application/json',
|
|
109
|
-
},
|
|
110
|
-
body: JSON.stringify({ address: address }),
|
|
111
|
-
})];
|
|
112
|
-
case 2:
|
|
113
|
-
response = _a.sent();
|
|
114
|
-
if (!!response.ok) return [3 /*break*/, 4];
|
|
115
|
-
return [4 /*yield*/, response
|
|
116
|
-
.json()
|
|
117
|
-
.catch(function () { return ({ error: 'Failed to request tokens' }); })];
|
|
118
|
-
case 3:
|
|
119
|
-
errorData = _a.sent();
|
|
120
|
-
throw new Error(errorData.error || 'Failed to request tokens');
|
|
121
|
-
case 4: return [4 /*yield*/, response.json().catch(function () { return ({}); })];
|
|
122
|
-
case 5:
|
|
123
|
-
_a.sent();
|
|
124
|
-
setTokensObtained(true);
|
|
125
|
-
setShowFaucetSuccess(true);
|
|
126
|
-
return [4 /*yield*/, refreshBalance()];
|
|
127
|
-
case 6:
|
|
128
|
-
_a.sent();
|
|
129
|
-
setShowFaucetSuccess(false);
|
|
130
|
-
return [3 /*break*/, 9];
|
|
131
|
-
case 7:
|
|
132
|
-
error_2 = _a.sent();
|
|
133
|
-
console.error('Faucet error:', error_2);
|
|
134
|
-
setFaucetError(error_2 instanceof Error ? error_2.message : 'Failed to request tokens');
|
|
135
|
-
faucetFiredRef.current = false;
|
|
136
|
-
return [3 /*break*/, 9];
|
|
137
|
-
case 8:
|
|
138
|
-
setIsFaucetLoading(false);
|
|
139
|
-
return [7 /*endfinally*/];
|
|
140
|
-
case 9: return [2 /*return*/];
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
}); }, [shouldShowFaucet, address, faucetUrl, refreshBalance]);
|
|
144
|
-
useEffect(function () {
|
|
145
|
-
if (!shouldShowFaucet ||
|
|
146
|
-
isFaucetLoading ||
|
|
147
|
-
faucetError ||
|
|
148
|
-
showFaucetSuccess ||
|
|
149
|
-
context.depositError != null ||
|
|
150
|
-
faucetFiredRef.current) {
|
|
151
|
-
return;
|
|
152
|
-
}
|
|
153
|
-
requestTestnetTokens();
|
|
154
|
-
}, [
|
|
155
|
-
shouldShowFaucet,
|
|
156
|
-
isFaucetLoading,
|
|
157
|
-
faucetError,
|
|
158
|
-
showFaucetSuccess,
|
|
159
|
-
context.depositError,
|
|
160
|
-
requestTestnetTokens,
|
|
161
|
-
]);
|
|
162
|
-
useEffect(function () {
|
|
163
|
-
if (balance > prevBalanceRef.current && balance >= minDeposit) {
|
|
164
|
-
setTokensObtained(false);
|
|
165
|
-
setShowFaucetSuccess(false);
|
|
166
|
-
}
|
|
167
|
-
else if (balance < minDeposit / 2) {
|
|
168
|
-
faucetFiredRef.current = false;
|
|
169
|
-
setTokensObtained(false);
|
|
170
|
-
}
|
|
171
|
-
prevBalanceRef.current = balance;
|
|
172
|
-
}, [balance, minDeposit]);
|
|
173
|
-
return {
|
|
174
|
-
isFaucetLoading: isFaucetLoading,
|
|
175
|
-
faucetError: faucetError,
|
|
176
|
-
showFaucetSuccess: showFaucetSuccess,
|
|
177
|
-
showFaucetOverlay: showFaucetOverlay,
|
|
178
|
-
requestTestnetTokens: requestTestnetTokens,
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
//# sourceMappingURL=useTestnetFaucet.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useTestnetFaucet.js","sourceRoot":"","sources":["../../../../src/Modal/NordFlow/hooks/useTestnetFaucet.ts"],"names":[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AC,CAAC;IAEH,SAAS,CAAC;QACR,IAAI,OAAO,GAAG,cAAc,CAAC,OAAO,IAAI,OAAO,IAAI,UAAU,EAAE,CAAC;YAC9D,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,oBAAoB,CAAC,KAAK,CAAC,CAAC;QAC9B,CAAC;aAAM,IAAI,OAAO,GAAG,UAAU,GAAG,CAAC,EAAE,CAAC;YACpC,cAAc,CAAC,OAAO,GAAG,KAAK,CAAC;YAC/B,iBAAiB,CAAC,KAAK,CAAC,CAAC;QAC3B,CAAC;QAED,cAAc,CAAC,OAAO,GAAG,OAAO,CAAC;IACnC,CAAC,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;IAE1B,OAAO;QACL,eAAe,iBAAA;QACf,WAAW,aAAA;QACX,iBAAiB,mBAAA;QACjB,iBAAiB,mBAAA;QACjB,oBAAoB,sBAAA;KACrB,CAAC;AACJ,CAAC","sourcesContent":["import { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport {\n useN1WalletContext,\n useN1WalletInternalContext,\n} from '../../../Provider/hooks';\nimport { useFlowStateContext } from '../context/FlowContext';\nimport { logger } from '../../../utils/logger';\n\ninterface UseTestnetFaucetParams {\n enabled: boolean;\n balance: number;\n minDeposit: number;\n onBalanceRefresh?: () => Promise<void>;\n}\n\ninterface UseTestnetFaucetResult {\n isFaucetLoading: boolean;\n faucetError: string | null;\n showFaucetSuccess: boolean;\n showFaucetOverlay: boolean;\n requestTestnetTokens: () => Promise<void>;\n}\n\n/**\n * Centralizes the faucet orchestration logic so it can be toggled from the widget entry point.\n */\nexport function useTestnetFaucet({\n enabled,\n balance,\n minDeposit,\n onBalanceRefresh,\n}: UseTestnetFaucetParams): UseTestnetFaucetResult {\n const { address } = useN1WalletContext();\n const { faucetUrl } = useN1WalletInternalContext();\n const { context } = useFlowStateContext();\n\n const faucetFiredRef = useRef(false);\n const prevBalanceRef = useRef(balance);\n\n const [isFaucetLoading, setIsFaucetLoading] = useState(false);\n const [faucetError, setFaucetError] = useState<string | null>(null);\n const [tokensObtained, setTokensObtained] = useState(false);\n const [showFaucetSuccess, setShowFaucetSuccess] = useState(false);\n\n const refreshBalance = useCallback(async () => {\n if (!onBalanceRefresh) {\n return;\n }\n try {\n await onBalanceRefresh();\n } catch (error) {\n logger.warn('Failed to refresh balance after faucet request', error);\n }\n }, [onBalanceRefresh]);\n\n const shouldShowFaucet = useMemo(() => {\n return enabled && Boolean(faucetUrl) && !tokensObtained;\n }, [enabled, faucetUrl, tokensObtained]);\n\n const showFaucetOverlay = useMemo(() => {\n if (!shouldShowFaucet) {\n return false;\n }\n\n return (\n (isFaucetLoading || faucetError !== null) ||\n showFaucetSuccess\n );\n }, [shouldShowFaucet, isFaucetLoading, faucetError, showFaucetSuccess]);\n\n const requestTestnetTokens = useCallback(async () => {\n if (!shouldShowFaucet || !address || !faucetUrl) return;\n if (faucetFiredRef.current) return;\n\n faucetFiredRef.current = true;\n\n try {\n setIsFaucetLoading(true);\n setFaucetError(null);\n setShowFaucetSuccess(false);\n\n const response = await fetch(faucetUrl, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({ address }),\n });\n\n if (!response.ok) {\n const errorData = await response\n .json()\n .catch(() => ({ error: 'Failed to request tokens' }));\n throw new Error(errorData.error || 'Failed to request tokens');\n }\n\n await response.json().catch(() => ({}));\n setTokensObtained(true);\n setShowFaucetSuccess(true);\n\n await refreshBalance();\n setShowFaucetSuccess(false);\n } catch (error) {\n console.error('Faucet error:', error);\n setFaucetError(\n error instanceof Error ? error.message : 'Failed to request tokens'\n );\n faucetFiredRef.current = false;\n } finally {\n setIsFaucetLoading(false);\n }\n }, [shouldShowFaucet, address, faucetUrl, refreshBalance]);\n\n useEffect(() => {\n if (\n !shouldShowFaucet ||\n isFaucetLoading ||\n faucetError ||\n showFaucetSuccess ||\n context.depositError != null ||\n faucetFiredRef.current\n ) {\n return;\n }\n\n requestTestnetTokens();\n }, [\n shouldShowFaucet,\n isFaucetLoading,\n faucetError,\n showFaucetSuccess,\n context.depositError,\n requestTestnetTokens,\n ]);\n\n useEffect(() => {\n if (balance > prevBalanceRef.current && balance >= minDeposit) {\n setTokensObtained(false);\n setShowFaucetSuccess(false);\n } else if (balance < minDeposit / 2) {\n faucetFiredRef.current = false;\n setTokensObtained(false);\n }\n\n prevBalanceRef.current = balance;\n }, [balance, minDeposit]);\n\n return {\n isFaucetLoading,\n faucetError,\n showFaucetSuccess,\n showFaucetOverlay,\n requestTestnetTokens,\n };\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { NordFlow } from './NordFlow';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Modal/NordFlow/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC","sourcesContent":["export { NordFlow } from './NordFlow';\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* Idle screen component that displays a loading animation
|
|
4
|
-
* Used as the default screen when no specific flow state is active
|
|
5
|
-
*/
|
|
6
|
-
export var IdleScreen = function () {
|
|
7
|
-
return (_jsxs("div", { className: "flex flex-col items-center justify-center p-8 space-y-4", children: [_jsxs("div", { className: "relative w-12 h-12", children: [_jsx("div", { className: "absolute inset-0 border-2 border-n1-ww-gray-200 dark:border-n1-ww-gray-800 border-b-n1-ww-main rounded-full n1-ww-animate-spin-slow" }), _jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: _jsx("div", { className: "w-2 h-2 bg-n1-ww-main rounded-full n1-ww-animate-pulse" }) })] }), _jsx("p", { className: "text-n1-ww-gray-700 dark:text-n1-ww-gray-300 text-sm font-medium", children: "Loading" })] }));
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=00-IdleScreen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"00-IdleScreen.js","sourceRoot":"","sources":["../../../../src/Modal/NordFlow/screens/00-IdleScreen.tsx"],"names":[],"mappings":";AAEA;;;GAGG;AACH,MAAM,CAAC,IAAM,UAAU,GAAa;IAClC,OAAO,CACL,eAAK,SAAS,EAAC,yDAAyD,aAEtE,eAAK,SAAS,EAAC,oBAAoB,aAEjC,cAAK,SAAS,EAAC,qIAAqI,GAAO,EAG3J,cAAK,SAAS,EAAC,mDAAmD,YAChE,cAAK,SAAS,EAAC,wDAAwD,GAAO,GAC1E,IACF,EAGN,YAAG,SAAS,EAAC,kEAAkE,wBAE3E,IACA,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import React from 'react';\n\n/**\n * Idle screen component that displays a loading animation\n * Used as the default screen when no specific flow state is active\n */\nexport const IdleScreen: React.FC = () => {\n return (\n <div className=\"flex flex-col items-center justify-center p-8 space-y-4\">\n {/* Minimalistic but creative loading animation */}\n <div className=\"relative w-12 h-12\">\n {/* Simple spinning ring with primary color accent */}\n <div className=\"absolute inset-0 border-2 border-n1-ww-gray-200 dark:border-n1-ww-gray-800 border-b-n1-ww-main rounded-full n1-ww-animate-spin-slow\"></div>\n\n {/* Subtle pulsing dot in the center */}\n <div className=\"absolute inset-0 flex items-center justify-center\">\n <div className=\"w-2 h-2 bg-n1-ww-main rounded-full n1-ww-animate-pulse\"></div>\n </div>\n </div>\n\n {/* Simple loading text */}\n <p className=\"text-n1-ww-gray-700 dark:text-n1-ww-gray-300 text-sm font-medium\">\n Loading\n </p>\n </div>\n );\n}; "]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function ConnectWalletScreen(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect } from 'react';
|
|
3
|
-
import { useWalletConnectContext } from '../context/WalletConnectContext';
|
|
4
|
-
import { WaitingMessage } from '../components/WaitingMessage';
|
|
5
|
-
export function ConnectWalletScreen() {
|
|
6
|
-
var _a = useWalletConnectContext(), isConnecting = _a.isConnecting, connectWallet = _a.connectWallet;
|
|
7
|
-
useEffect(function () {
|
|
8
|
-
if (!isConnecting) {
|
|
9
|
-
connectWallet();
|
|
10
|
-
}
|
|
11
|
-
}, [isConnecting, connectWallet]);
|
|
12
|
-
return (_jsx(WaitingMessage, { loaderSize: 52, message: {
|
|
13
|
-
visible: true,
|
|
14
|
-
title: 'Connecting Wallet',
|
|
15
|
-
subtitle: 'Please approve the connection request in your wallet',
|
|
16
|
-
isTyping: false,
|
|
17
|
-
} }));
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=01-ConnectWalletScreen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"01-ConnectWalletScreen.js","sourceRoot":"","sources":["../../../../src/Modal/NordFlow/screens/01-ConnectWalletScreen.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,MAAM,UAAU,mBAAmB;IAC3B,IAAA,KAAkC,uBAAuB,EAAE,EAAzD,YAAY,kBAAA,EAAE,aAAa,mBAA8B,CAAC;IAElE,SAAS,CAAC;QACR,IAAI,CAAC,YAAY,EAAE,CAAC;YAClB,aAAa,EAAE,CAAC;QAClB,CAAC;IACH,CAAC,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC;IAElC,OAAO,CACL,KAAC,cAAc,IACb,UAAU,EAAE,EAAE,EACd,OAAO,EAAE;YACP,OAAO,EAAE,IAAI;YACb,KAAK,EAAE,mBAAmB;YAC1B,QAAQ,EAAE,sDAAsD;YAChE,QAAQ,EAAE,KAAK;SAChB,GACD,CACH,CAAC;AACJ,CAAC","sourcesContent":["import { useEffect } from 'react';\nimport { useWalletConnectContext } from '../context/WalletConnectContext';\nimport { WaitingMessage } from '../components/WaitingMessage';\n\nexport function ConnectWalletScreen() {\n const { isConnecting, connectWallet } = useWalletConnectContext();\n\n useEffect(() => {\n if (!isConnecting) {\n connectWallet();\n }\n }, [isConnecting, connectWallet]);\n\n return (\n <WaitingMessage\n loaderSize={52}\n message={{\n visible: true,\n title: 'Connecting Wallet',\n subtitle: 'Please approve the connection request in your wallet',\n isTyping: false,\n }}\n />\n );\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function ChainSelectionScreen(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useCallback, useMemo, useState } from "react";
|
|
3
|
-
import { CHAINS_WITH_NETWORK_INFO } from "../../../config/chains";
|
|
4
|
-
import { logger } from "../../../utils/logger";
|
|
5
|
-
import { ChainButton } from "../components/ChainButton";
|
|
6
|
-
import { useWalletConnectContext } from "../context/WalletConnectContext";
|
|
7
|
-
import { useFlowStateContext } from "../context/FlowContext";
|
|
8
|
-
export function ChainSelectionScreen() {
|
|
9
|
-
var disconnectWallet = useWalletConnectContext().disconnectWallet;
|
|
10
|
-
var _a = useFlowStateContext(), actions = _a.actions, context = _a.context;
|
|
11
|
-
var initialSelectedChainId = useMemo(function () {
|
|
12
|
-
var _a;
|
|
13
|
-
if (context.selectedChainId) {
|
|
14
|
-
var chainFromId = CHAINS_WITH_NETWORK_INFO.find(function (chain) { return chain.id === context.selectedChainId; });
|
|
15
|
-
if (chainFromId) {
|
|
16
|
-
return chainFromId.id;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
if (context.selectedChain) {
|
|
20
|
-
var normalizedContextValue_1 = context.selectedChain.toLowerCase();
|
|
21
|
-
var chainFromContext = CHAINS_WITH_NETWORK_INFO.find(function (chain) {
|
|
22
|
-
return chain.name.toLowerCase() === normalizedContextValue_1 ||
|
|
23
|
-
chain.id.toLowerCase() === normalizedContextValue_1;
|
|
24
|
-
});
|
|
25
|
-
if (chainFromContext) {
|
|
26
|
-
return chainFromContext.id;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return ((_a = CHAINS_WITH_NETWORK_INFO.find(function (c) { return !c.soon; })) === null || _a === void 0 ? void 0 : _a.id) || null;
|
|
30
|
-
}, [context.selectedChain, context.selectedChainId]);
|
|
31
|
-
var _b = useState(initialSelectedChainId), selectedChainId = _b[0], setSelectedChainId = _b[1];
|
|
32
|
-
var handleChainSelect = useCallback(function (chainId) {
|
|
33
|
-
logger.debug("Chain selected in ChainSelectionScreen:", chainId);
|
|
34
|
-
var chain = CHAINS_WITH_NETWORK_INFO.find(function (c) { return c.id === chainId; });
|
|
35
|
-
if (chain && !chain.soon) {
|
|
36
|
-
setSelectedChainId(chainId);
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
logger.debug("Chain not selectable:", chainId);
|
|
40
|
-
}
|
|
41
|
-
}, [logger]);
|
|
42
|
-
var selectedChain = useMemo(function () { return CHAINS_WITH_NETWORK_INFO.find(function (chain) { return chain.id === selectedChainId; }); }, [selectedChainId]);
|
|
43
|
-
var handleContinue = useCallback(function () {
|
|
44
|
-
var _a;
|
|
45
|
-
if (!selectedChain || selectedChain.soon) {
|
|
46
|
-
logger.debug("Continue button clicked without selectable chain");
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
actions.selectChain({
|
|
50
|
-
id: selectedChain.id,
|
|
51
|
-
name: selectedChain.name,
|
|
52
|
-
network: (_a = selectedChain.network) !== null && _a !== void 0 ? _a : null,
|
|
53
|
-
});
|
|
54
|
-
logger.debug("Transitioned to amount input from chain selection");
|
|
55
|
-
}, [selectedChain, actions]);
|
|
56
|
-
var handleDisconnect = useCallback(function () {
|
|
57
|
-
logger.debug("Disconnect button clicked");
|
|
58
|
-
disconnectWallet();
|
|
59
|
-
}, [disconnectWallet]);
|
|
60
|
-
var isContinueDisabled = !selectedChain || selectedChain.soon;
|
|
61
|
-
return (_jsx("div", { className: "overflow-visible relative", children: _jsxs("div", { className: "flex flex-col space-y-3", children: [CHAINS_WITH_NETWORK_INFO.map(function (chain) { return (_jsx(ChainButton, { chain: chain, onClick: function () { return handleChainSelect(chain.id); }, selected: selectedChainId === chain.id && !chain.soon, soon: chain.soon, subtitle: chain.subtitle }, chain.id)); }), _jsxs("div", { className: "flex flex-col space-y-2", children: [_jsx("button", { type: "button", onClick: handleContinue, disabled: isContinueDisabled, className: "w-full h-8 rounded border bg-transparent flex font-medium items-center justify-center transition-all duration-200 transform ".concat(isContinueDisabled
|
|
62
|
-
? "border-n1-ww-border opacity-50 cursor-not-allowed"
|
|
63
|
-
: "border-n1-ww-main hover:bg-n1-ww-gray-900 cursor-pointer"), children: _jsx("span", { className: "font-medium text-sm opacity-90 ".concat(isContinueDisabled ? "text-n1-ww-gray-500" : "text-n1-ww-main"), children: "Continue" }) }), _jsx("button", { type: "button", onClick: handleDisconnect, className: "w-full h-8 rounded border border-n1-ww-border bg-transparent flex font-medium items-center justify-center transition-all duration-200 transform hover:bg-n1-ww-gray-900 cursor-pointer", children: _jsx("span", { className: "text-white font-medium text-sm opacity-90", children: "Disconnect" }) })] })] }) }));
|
|
64
|
-
}
|
|
65
|
-
//# sourceMappingURL=02-ChainSelectionScreen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"02-ChainSelectionScreen.js","sourceRoot":"","sources":["../../../../src/Modal/NordFlow/screens/02-ChainSelectionScreen.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;A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";\nimport { CHAINS_WITH_NETWORK_INFO } from \"../../../config/chains\";\nimport { logger } from \"../../../utils/logger\";\nimport { ChainButton } from \"../components/ChainButton\";\nimport { useWalletConnectContext } from \"../context/WalletConnectContext\";\nimport { useFlowStateContext } from \"../context/FlowContext\";\n\nexport function ChainSelectionScreen() {\n const { disconnectWallet } = useWalletConnectContext();\n const { actions, context } = useFlowStateContext();\n\n const initialSelectedChainId = useMemo(() => {\n if (context.selectedChainId) {\n const chainFromId = CHAINS_WITH_NETWORK_INFO.find(\n (chain) => chain.id === context.selectedChainId\n );\n if (chainFromId) {\n return chainFromId.id;\n }\n }\n\n if (context.selectedChain) {\n const normalizedContextValue = context.selectedChain.toLowerCase();\n const chainFromContext = CHAINS_WITH_NETWORK_INFO.find(\n (chain) =>\n chain.name.toLowerCase() === normalizedContextValue ||\n chain.id.toLowerCase() === normalizedContextValue\n );\n if (chainFromContext) {\n return chainFromContext.id;\n }\n }\n\n return CHAINS_WITH_NETWORK_INFO.find((c) => !c.soon)?.id || null;\n }, [context.selectedChain, context.selectedChainId]);\n\n const [selectedChainId, setSelectedChainId] = useState<string | null>(\n initialSelectedChainId\n );\n\n const handleChainSelect = useCallback((chainId: string) => {\n logger.debug(\"Chain selected in ChainSelectionScreen:\", chainId);\n \n const chain = CHAINS_WITH_NETWORK_INFO.find((c) => c.id === chainId);\n \n if (chain && !chain.soon) {\n setSelectedChainId(chainId);\n } else {\n logger.debug(\"Chain not selectable:\", chainId);\n }\n }, [logger]);\n\n const selectedChain = useMemo(\n () => CHAINS_WITH_NETWORK_INFO.find((chain) => chain.id === selectedChainId),\n [selectedChainId]\n );\n\n const handleContinue = useCallback(() => {\n if (!selectedChain || selectedChain.soon) {\n logger.debug(\"Continue button clicked without selectable chain\");\n return;\n }\n\n actions.selectChain({\n id: selectedChain.id,\n name: selectedChain.name,\n network: selectedChain.network ?? null,\n });\n logger.debug(\"Transitioned to amount input from chain selection\");\n }, [selectedChain, actions]);\n\n const handleDisconnect = useCallback(() => {\n logger.debug(\"Disconnect button clicked\");\n disconnectWallet();\n }, [disconnectWallet]);\n\n const isContinueDisabled = !selectedChain || selectedChain.soon;\n\n return (\n <div className=\"overflow-visible relative\">\n <div className=\"flex flex-col space-y-3\">\n {CHAINS_WITH_NETWORK_INFO.map((chain) => (\n <ChainButton\n key={chain.id}\n chain={chain}\n onClick={() => handleChainSelect(chain.id)}\n selected={selectedChainId === chain.id && !chain.soon}\n soon={chain.soon}\n subtitle={chain.subtitle}\n />\n ))}\n <div className=\"flex flex-col space-y-2\">\n <button\n type=\"button\"\n onClick={handleContinue}\n disabled={isContinueDisabled}\n className={`w-full h-8 rounded border bg-transparent flex font-medium items-center justify-center transition-all duration-200 transform ${\n isContinueDisabled\n ? \"border-n1-ww-border opacity-50 cursor-not-allowed\"\n : \"border-n1-ww-main hover:bg-n1-ww-gray-900 cursor-pointer\"\n }`}\n >\n <span\n className={`font-medium text-sm opacity-90 ${\n isContinueDisabled ? \"text-n1-ww-gray-500\" : \"text-n1-ww-main\"\n }`}\n >\n Continue\n </span>\n </button>\n <button\n type=\"button\"\n onClick={handleDisconnect}\n className=\"w-full h-8 rounded border border-n1-ww-border bg-transparent flex font-medium items-center justify-center transition-all duration-200 transform hover:bg-n1-ww-gray-900 cursor-pointer\"\n >\n <span className=\"text-white font-medium text-sm opacity-90\">\n Disconnect\n </span>\n </button>\n </div>\n </div>\n </div>\n );\n}\n"]}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
// todo: implement
|
|
3
|
-
import { useEffect, useState } from 'react';
|
|
4
|
-
import { LoadingSquares } from '../components/LoadingSquares';
|
|
5
|
-
import { ANIMATION_EASE } from '../constants';
|
|
6
|
-
import { useFlowStateContext } from '../context/FlowContext';
|
|
7
|
-
var AuthState;
|
|
8
|
-
(function (AuthState) {
|
|
9
|
-
AuthState["INITIAL"] = "initial";
|
|
10
|
-
AuthState["WAITING_FOR_SIGNATURE"] = "waiting_for_signature";
|
|
11
|
-
AuthState["SUCCESS"] = "success";
|
|
12
|
-
})(AuthState || (AuthState = {}));
|
|
13
|
-
export function EvmWalletAuthScreen() {
|
|
14
|
-
var transition = useFlowStateContext().transition;
|
|
15
|
-
var _a = useState(false), isHovered = _a[0], setIsHovered = _a[1];
|
|
16
|
-
var _b = useState(AuthState.INITIAL), authState = _b[0], setAuthState = _b[1];
|
|
17
|
-
// Handle signature request
|
|
18
|
-
var handleSignatureRequest = function () {
|
|
19
|
-
setAuthState(AuthState.WAITING_FOR_SIGNATURE);
|
|
20
|
-
// Simulate signature process - in a real implementation,
|
|
21
|
-
// this would be replaced with actual wallet signature logic
|
|
22
|
-
setTimeout(function () {
|
|
23
|
-
setAuthState(AuthState.SUCCESS);
|
|
24
|
-
}, 2000);
|
|
25
|
-
};
|
|
26
|
-
// When signature is successful, trigger transition after a brief success message
|
|
27
|
-
useEffect(function () {
|
|
28
|
-
// todo: implement
|
|
29
|
-
}, [authState, transition]);
|
|
30
|
-
// Render waiting for signature screen
|
|
31
|
-
if (authState === AuthState.WAITING_FOR_SIGNATURE) {
|
|
32
|
-
return (_jsxs("div", { className: "flex flex-col items-center justify-center py-12 space-y-6", children: [_jsx(LoadingSquares, {}), _jsxs("div", { className: "space-y-2 text-center w-[300px]", children: [_jsx("h3", { className: "text-xl text-n1-ww-gray-800 dark:text-white font-semibold", children: "Waiting for Signature" }), _jsx("p", { className: "text-sm text-n1-ww-gray-600 dark:text-neutral-400", children: "Please sign the message in your Ethereum wallet to authenticate with Solana" })] })] }));
|
|
33
|
-
}
|
|
34
|
-
// Render success screen
|
|
35
|
-
if (authState === AuthState.SUCCESS) {
|
|
36
|
-
return (_jsxs("div", { className: "flex flex-col items-center justify-center py-12 space-y-6", children: [_jsx("div", { className: "w-16 h-16 rounded-full bg-green-100 dark:bg-green-900 flex items-center justify-center", children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: "h-8 w-8 text-green-600 dark:text-green-400", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M5 13l4 4L19 7" }) }) }), _jsxs("div", { className: "space-y-2 text-center w-[300px]", children: [_jsx("h3", { className: "text-xl text-n1-ww-gray-800 dark:text-white font-semibold", children: "Signature Verified" }), _jsx("p", { className: "text-sm text-n1-ww-gray-600 dark:text-neutral-400", children: "Your Ethereum wallet has been authenticated successfully" })] })] }));
|
|
37
|
-
}
|
|
38
|
-
// Render initial screen
|
|
39
|
-
return (_jsx("div", { className: "overflow-hidden relative", children: _jsxs("div", { className: "space-y-6", children: [_jsx("h2", { className: "text-xl text-n1-ww-gray-800 dark:text-white font-semibold mb-2 text-center", children: "EVM Wallet Authentication" }), _jsx("p", { className: "text-sm text-n1-ww-gray-600 dark:text-neutral-400 text-center mb-4", children: "You need to sign a message to authenticate your Ethereum wallet with Solana" }), _jsx("button", { onClick: handleSignatureRequest, onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); }, className: "\n group relative w-full overflow-hidden rounded-md border-2 bg-n1-ww-gray-100 dark:bg-neutral-950 py-4 text-center\n transition-all duration-300 ".concat(ANIMATION_EASE, "\n cursor-pointer border-n1-ww-gray-200 dark:border-n1-ww-gray-800 hover:border-n1-ww-gray-400 dark:hover:border-white/60\n "), style: {
|
|
40
|
-
transform: isHovered ? 'scale(0.99)' : 'scale(1)',
|
|
41
|
-
}, children: _jsx("span", { className: "\n text-base font-medium tracking-wide transition-colors duration-300 ".concat(ANIMATION_EASE, "\n text-n1-ww-gray-700 dark:text-n1-ww-gray-300 group-hover:text-n1-ww-gray-900 dark:group-hover:text-white\n "), children: "Sign Authentication Message" }) })] }) }));
|
|
42
|
-
}
|
|
43
|
-
// For backward compatibility
|
|
44
|
-
export { EvmWalletAuthScreen as EthToSolAuthScreen };
|
|
45
|
-
//# sourceMappingURL=02-EvmWalletAuthScreen.js.map
|
|
@@ -1 +0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,4CAGM,GACA,IACL,GACF,CACP,CAAC;AACJ,CAAC;AAED,6BAA6B;AAC7B,OAAO,EAAE,mBAAmB,IAAI,kBAAkB,EAAE,CAAC","sourcesContent":["// todo: implement\nimport { useEffect, useState } from 'react';\nimport { LoadingSquares } from '../components/LoadingSquares';\nimport { ANIMATION_EASE } from '../constants';\nimport { useFlowStateContext } from '../context/FlowContext';\n\nenum AuthState {\n INITIAL = 'initial',\n WAITING_FOR_SIGNATURE = 'waiting_for_signature',\n SUCCESS = 'success',\n}\n\nexport function EvmWalletAuthScreen() {\n const { transition } = useFlowStateContext();\n const [isHovered, setIsHovered] = useState(false);\n const [authState, setAuthState] = useState<AuthState>(AuthState.INITIAL);\n\n // Handle signature request\n const handleSignatureRequest = () => {\n setAuthState(AuthState.WAITING_FOR_SIGNATURE);\n\n // Simulate signature process - in a real implementation,\n // this would be replaced with actual wallet signature logic\n setTimeout(() => {\n setAuthState(AuthState.SUCCESS);\n }, 2000);\n };\n\n // When signature is successful, trigger transition after a brief success message\n useEffect(() => {\n // todo: implement\n }, [authState, transition]);\n\n // Render waiting for signature screen\n if (authState === AuthState.WAITING_FOR_SIGNATURE) {\n return (\n <div className=\"flex flex-col items-center justify-center py-12 space-y-6\">\n <LoadingSquares />\n <div className=\"space-y-2 text-center w-[300px]\">\n <h3 className=\"text-xl text-n1-ww-gray-800 dark:text-white font-semibold\">\n Waiting for Signature\n </h3>\n <p className=\"text-sm text-n1-ww-gray-600 dark:text-neutral-400\">\n Please sign the message in your Ethereum wallet to authenticate with\n Solana\n </p>\n </div>\n </div>\n );\n }\n\n // Render success screen\n if (authState === AuthState.SUCCESS) {\n return (\n <div className=\"flex flex-col items-center justify-center py-12 space-y-6\">\n <div className=\"w-16 h-16 rounded-full bg-green-100 dark:bg-green-900 flex items-center justify-center\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n className=\"h-8 w-8 text-green-600 dark:text-green-400\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\"\n >\n <path\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n strokeWidth={2}\n d=\"M5 13l4 4L19 7\"\n />\n </svg>\n </div>\n <div className=\"space-y-2 text-center w-[300px]\">\n <h3 className=\"text-xl text-n1-ww-gray-800 dark:text-white font-semibold\">\n Signature Verified\n </h3>\n <p className=\"text-sm text-n1-ww-gray-600 dark:text-neutral-400\">\n Your Ethereum wallet has been authenticated successfully\n </p>\n </div>\n </div>\n );\n }\n\n // Render initial screen\n return (\n <div className=\"overflow-hidden relative\">\n <div className=\"space-y-6\">\n <h2 className=\"text-xl text-n1-ww-gray-800 dark:text-white font-semibold mb-2 text-center\">\n EVM Wallet Authentication\n </h2>\n <p className=\"text-sm text-n1-ww-gray-600 dark:text-neutral-400 text-center mb-4\">\n You need to sign a message to authenticate your Ethereum wallet with\n Solana\n </p>\n\n <button\n onClick={handleSignatureRequest}\n onMouseEnter={() => setIsHovered(true)}\n onMouseLeave={() => setIsHovered(false)}\n className={`\n group relative w-full overflow-hidden rounded-md border-2 bg-n1-ww-gray-100 dark:bg-neutral-950 py-4 text-center\n transition-all duration-300 ${ANIMATION_EASE}\n cursor-pointer border-n1-ww-gray-200 dark:border-n1-ww-gray-800 hover:border-n1-ww-gray-400 dark:hover:border-white/60\n `}\n style={{\n transform: isHovered ? 'scale(0.99)' : 'scale(1)',\n }}\n >\n <span\n className={`\n text-base font-medium tracking-wide transition-colors duration-300 ${ANIMATION_EASE}\n text-n1-ww-gray-700 dark:text-n1-ww-gray-300 group-hover:text-n1-ww-gray-900 dark:group-hover:text-white\n `}\n >\n Sign Authentication Message\n </span>\n </button>\n </div>\n </div>\n );\n}\n\n// For backward compatibility\nexport { EvmWalletAuthScreen as EthToSolAuthScreen };\n"]}
|