@velora-dex/widget 0.3.11-dev.2 → 0.3.11-dev.3
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/components/ui/tooltip.js +1 -1
- package/dist/components/ui/tooltip.js.map +1 -1
- package/dist/components/web3/ConnectExternalProvider/AutoconnectExternal.d.ts.map +1 -1
- package/dist/components/web3/ConnectExternalProvider/AutoconnectExternal.js +41 -72
- package/dist/components/web3/ConnectExternalProvider/AutoconnectExternal.js.map +1 -1
- package/dist/components/web3/ConnectWallets/walletIcons.d.ts +1 -4
- package/dist/components/web3/ConnectWallets/walletIcons.d.ts.map +1 -1
- package/dist/components/web3/ConnectWallets/walletIcons.js +7 -18
- package/dist/components/web3/ConnectWallets/walletIcons.js.map +1 -1
- package/dist/components/widget/Dialog/SelectTokenDialog/SelectTokenDialog.d.ts +6 -4
- package/dist/components/widget/Dialog/SelectTokenDialog/SelectTokenDialog.d.ts.map +1 -1
- package/dist/components/widget/Dialog/SelectTokenDialog/SelectTokenDialog.js +346 -139
- package/dist/components/widget/Dialog/SelectTokenDialog/SelectTokenDialog.js.map +1 -1
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenListBody/TokenCloud/index.js +1 -1
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenListBody/TokenCloud/index.js.map +1 -1
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenListBody/TokenCloud/tokens.js +24 -19
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenListBody/TokenCloud/tokens.js.map +1 -1
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenListBody/TokenListRow.js +1 -1
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenListBody/TokenListRow.js.map +1 -1
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenSearch.d.ts.map +1 -1
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenSearch.js +48 -36
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenSearch.js.map +1 -1
- package/dist/components/widget/Dialog/SelectTokenDialog/types.d.ts +3 -2
- package/dist/components/widget/Dialog/SelectTokenDialog/types.d.ts.map +1 -1
- package/dist/components/widget/NetworkSwitcher/NetworkSwitcherDropdown.d.ts.map +1 -1
- package/dist/components/widget/NetworkSwitcher/NetworkSwitcherDropdown.js +57 -108
- package/dist/components/widget/NetworkSwitcher/NetworkSwitcherDropdown.js.map +1 -1
- package/dist/components/widget/NetworkSwitcher/NetworkSwitcherList.d.ts +3 -0
- package/dist/components/widget/NetworkSwitcher/NetworkSwitcherList.d.ts.map +1 -0
- package/dist/components/widget/NetworkSwitcher/NetworkSwitcherList.js +72 -0
- package/dist/components/widget/NetworkSwitcher/NetworkSwitcherList.js.map +1 -0
- package/dist/components/widget/NetworkSwitcher/common/AllNetworksItem.d.ts +5 -0
- package/dist/components/widget/NetworkSwitcher/common/AllNetworksItem.d.ts.map +1 -0
- package/dist/components/widget/NetworkSwitcher/common/AllNetworksItem.js +48 -0
- package/dist/components/widget/NetworkSwitcher/common/AllNetworksItem.js.map +1 -0
- package/dist/components/widget/NetworkSwitcher/common/NetworkItem.d.ts +7 -0
- package/dist/components/widget/NetworkSwitcher/common/NetworkItem.d.ts.map +1 -0
- package/dist/components/widget/NetworkSwitcher/common/NetworkItem.js +46 -0
- package/dist/components/widget/NetworkSwitcher/common/NetworkItem.js.map +1 -0
- package/dist/components/widget/NetworkSwitcher/types.d.ts +13 -2
- package/dist/components/widget/NetworkSwitcher/types.d.ts.map +1 -1
- package/dist/components/widget/NetworkSwitcher/utils/items.d.ts +3 -0
- package/dist/components/widget/NetworkSwitcher/utils/items.d.ts.map +1 -0
- package/dist/components/widget/NetworkSwitcher/utils/items.js +65 -0
- package/dist/components/widget/NetworkSwitcher/utils/items.js.map +1 -0
- package/dist/components/widget/NetworkWithIcon/NetworkWithIcon.js +2 -2
- package/dist/components/widget/NetworkWithIcon/NetworkWithIcon.js.map +1 -1
- package/dist/components/widget/ReceiverAddress/state/subscriptions.d.ts.map +1 -1
- package/dist/components/widget/ReceiverAddress/state/subscriptions.js +5 -11
- package/dist/components/widget/ReceiverAddress/state/subscriptions.js.map +1 -1
- package/dist/components/widget/Screen/GenericScreen.d.ts +6 -2
- package/dist/components/widget/Screen/GenericScreen.d.ts.map +1 -1
- package/dist/components/widget/Screen/GenericScreen.js +112 -33
- package/dist/components/widget/Screen/GenericScreen.js.map +1 -1
- package/dist/components/widget/SelectToken/SelectTokenButton.d.ts +1 -1
- package/dist/components/widget/SelectToken/SelectTokenButton.d.ts.map +1 -1
- package/dist/components/widget/SelectToken/SelectTokenButton.js +100 -73
- package/dist/components/widget/SelectToken/SelectTokenButton.js.map +1 -1
- package/dist/components/widget/SelectToken/types.d.ts +3 -0
- package/dist/components/widget/SelectToken/types.d.ts.map +1 -1
- package/dist/components/widget/TokenInput/InputContainer.d.ts +3 -0
- package/dist/components/widget/TokenInput/InputContainer.d.ts.map +1 -0
- package/dist/components/widget/TokenInput/InputContainer.js +54 -0
- package/dist/components/widget/TokenInput/InputContainer.js.map +1 -0
- package/dist/components/widget/TokenInput/InputField.d.ts +6 -0
- package/dist/components/widget/TokenInput/InputField.d.ts.map +1 -0
- package/dist/components/widget/TokenInput/InputField.js +84 -0
- package/dist/components/widget/TokenInput/InputField.js.map +1 -0
- package/dist/components/widget/TokenInput/InputFooter.d.ts +5 -0
- package/dist/components/widget/TokenInput/InputFooter.d.ts.map +1 -0
- package/dist/components/widget/TokenInput/InputFooter.js +206 -0
- package/dist/components/widget/TokenInput/InputFooter.js.map +1 -0
- package/dist/components/widget/TokenInput/InputHeader.d.ts +5 -0
- package/dist/components/widget/TokenInput/InputHeader.d.ts.map +1 -0
- package/dist/components/widget/TokenInput/InputHeader.js +58 -0
- package/dist/components/widget/TokenInput/InputHeader.js.map +1 -0
- package/dist/components/widget/TokenInput/common/Balance.d.ts +3 -0
- package/dist/components/widget/TokenInput/common/Balance.d.ts.map +1 -0
- package/dist/components/widget/TokenInput/common/Balance.js +23 -0
- package/dist/components/widget/TokenInput/common/Balance.js.map +1 -0
- package/dist/components/widget/TokenInput/common/MaxButtons.d.ts +4 -0
- package/dist/components/widget/TokenInput/common/MaxButtons.d.ts.map +1 -0
- package/dist/components/widget/TokenInput/common/MaxButtons.js +49 -0
- package/dist/components/widget/TokenInput/common/MaxButtons.js.map +1 -0
- package/dist/components/widget/TokenInput/index.d.ts.map +1 -1
- package/dist/components/widget/TokenInput/index.js +115 -153
- package/dist/components/widget/TokenInput/index.js.map +1 -1
- package/dist/components/widget/TokenInput/types.d.ts +7 -1
- package/dist/components/widget/TokenInput/types.d.ts.map +1 -1
- package/dist/components/widget/TransactionDetails/LimitOrderDetails/Controls.d.ts +2 -2
- package/dist/components/widget/TransactionDetails/LimitOrderDetails/Controls.d.ts.map +1 -1
- package/dist/components/widget/TransactionDetails/LimitOrderDetails/Controls.js +23 -22
- package/dist/components/widget/TransactionDetails/LimitOrderDetails/Controls.js.map +1 -1
- package/dist/components/widget/TransactionDetails/LimitOrderDetails/TransactionDetails.js +1 -1
- package/dist/components/widget/TransactionDetails/LimitOrderDetails/TransactionDetails.js.map +1 -1
- package/dist/configurator/Configurator.d.ts.map +1 -1
- package/dist/configurator/components/EnabledChainsSelector.d.ts.map +1 -1
- package/dist/configurator/components/PartnerInput.d.ts +5 -3
- package/dist/configurator/components/PartnerInput.d.ts.map +1 -1
- package/dist/configurator/components/common/Input.d.ts +9 -0
- package/dist/configurator/components/common/Input.d.ts.map +1 -1
- package/dist/core/constants.d.ts +3 -0
- package/dist/core/constants.d.ts.map +1 -1
- package/dist/core/constants.js +4 -1
- package/dist/core/constants.js.map +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +152 -135
- package/dist/core/index.js.map +1 -1
- package/dist/core/inputs/hooks/useMaxButtonProps.d.ts +2 -7
- package/dist/core/inputs/hooks/useMaxButtonProps.d.ts.map +1 -1
- package/dist/core/inputs/hooks/useMaxButtonProps.js +39 -6
- package/dist/core/inputs/hooks/useMaxButtonProps.js.map +1 -1
- package/dist/core/screen/hooks/useResizeObserver.d.ts +2 -0
- package/dist/core/screen/hooks/useResizeObserver.d.ts.map +1 -0
- package/dist/core/screen/hooks/useResizeObserver.js +36 -0
- package/dist/core/screen/hooks/useResizeObserver.js.map +1 -0
- package/dist/core/state/configActionsAtom.d.ts.map +1 -1
- package/dist/core/state/configActionsAtom.js +3 -3
- package/dist/core/state/configActionsAtom.js.map +1 -1
- package/dist/core/state/configAtom.d.ts +5 -6
- package/dist/core/state/configAtom.d.ts.map +1 -1
- package/dist/core/state/configAtom.js +8 -9
- package/dist/core/state/configAtom.js.map +1 -1
- package/dist/core/state/containerAtom.d.ts +4 -0
- package/dist/core/state/containerAtom.d.ts.map +1 -1
- package/dist/core/state/containerAtom.js +8 -1
- package/dist/core/state/containerAtom.js.map +1 -1
- package/dist/core/state/externalProviderAtom.d.ts +0 -9
- package/dist/core/state/externalProviderAtom.d.ts.map +1 -1
- package/dist/core/state/externalProviderAtom.js +1 -28
- package/dist/core/state/externalProviderAtom.js.map +1 -1
- package/dist/core/state/validatedPartnerConfigAtom.d.ts +3 -0
- package/dist/core/state/validatedPartnerConfigAtom.d.ts.map +1 -0
- package/dist/core/state/validatedPartnerConfigAtom.js +22 -0
- package/dist/core/state/validatedPartnerConfigAtom.js.map +1 -0
- package/dist/core/types.d.ts +12 -2
- package/dist/core/types.d.ts.map +1 -1
- package/dist/events/getters/swap.d.ts.map +1 -1
- package/dist/events/getters/swap.js +1 -2
- package/dist/events/getters/swap.js.map +1 -1
- package/dist/events/hooks/useOnWalletConnect.d.ts.map +1 -1
- package/dist/events/hooks/useOnWalletConnect.js +1 -6
- package/dist/events/hooks/useOnWalletConnect.js.map +1 -1
- package/dist/events/types/connectWallet.d.ts +3 -3
- package/dist/events/types/connectWallet.d.ts.map +1 -1
- package/dist/hooks/batch/useAwaitCalls.d.ts.map +1 -1
- package/dist/hooks/batch/useAwaitCalls.js.map +1 -1
- package/dist/hooks/connectors/useIsConnectedSafe.d.ts.map +1 -1
- package/dist/hooks/connectors/useIsConnectedSafe.js +1 -3
- package/dist/hooks/connectors/useIsConnectedSafe.js.map +1 -1
- package/dist/hooks/connectors/useIsGnosisSafeConnector.d.ts +1 -4
- package/dist/hooks/connectors/useIsGnosisSafeConnector.d.ts.map +1 -1
- package/dist/hooks/connectors/useIsGnosisSafeConnector.js +4 -3
- package/dist/hooks/connectors/useIsGnosisSafeConnector.js.map +1 -1
- package/dist/hooks/connectors/useIsSafeThroughWalletConnect.d.ts +1 -1
- package/dist/hooks/connectors/useIsSafeThroughWalletConnect.d.ts.map +1 -1
- package/dist/hooks/connectors/useIsSafeThroughWalletConnect.js +2 -16
- package/dist/hooks/connectors/useIsSafeThroughWalletConnect.js.map +1 -1
- package/dist/hooks/otc/mutations/useFillOrder.js +4 -5
- package/dist/hooks/otc/mutations/useFillOrder.js.map +1 -1
- package/dist/hooks/otc/tradeFlow/useFillOtcOrderFlow.js +2 -3
- package/dist/hooks/otc/tradeFlow/useFillOtcOrderFlow.js.map +1 -1
- package/dist/hooks/otc/tradeFlow/useFillOtcOrderStep.d.ts.map +1 -1
- package/dist/hooks/otc/tradeFlow/useFillOtcOrderStep.js +4 -7
- package/dist/hooks/otc/tradeFlow/useFillOtcOrderStep.js.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/useDeltaPriceQuery.d.ts +5 -2
- package/dist/hooks/swap/prices/delta/queries/useDeltaPriceQuery.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/useDeltaPriceQuery.js +2 -1
- package/dist/hooks/swap/prices/delta/queries/useDeltaPriceQuery.js.map +1 -1
- package/dist/hooks/swap/prices/market/queries/useMarketPriceQuery.d.ts +4 -1
- package/dist/hooks/swap/prices/market/queries/useMarketPriceQuery.d.ts.map +1 -1
- package/dist/hooks/swap/prices/market/queries/useMarketPriceQuery.js +2 -1
- package/dist/hooks/swap/prices/market/queries/useMarketPriceQuery.js.map +1 -1
- package/dist/hooks/swap/prices/usePricesParams.d.ts +3 -1
- package/dist/hooks/swap/prices/usePricesParams.d.ts.map +1 -1
- package/dist/hooks/swap/prices/usePricesParams.js +36 -27
- package/dist/hooks/swap/prices/usePricesParams.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/common/usePreSignAndSubmitDeltaOrder.d.ts.map +1 -1
- package/dist/hooks/swap/tradeFlow/common/usePreSignAndSubmitDeltaOrder.js +1 -2
- package/dist/hooks/swap/tradeFlow/common/usePreSignAndSubmitDeltaOrder.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/useDeltaFlow.d.ts.map +1 -1
- package/dist/hooks/swap/tradeFlow/useDeltaFlow.js +9 -1
- package/dist/hooks/swap/tradeFlow/useDeltaFlow.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/useLimitOrderFlow.js +3 -1
- package/dist/hooks/swap/tradeFlow/useLimitOrderFlow.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/useMarketFlow.js +9 -6
- package/dist/hooks/swap/tradeFlow/useMarketFlow.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/useMarketSwapStep.d.ts.map +1 -1
- package/dist/hooks/swap/tradeFlow/useMarketSwapStep.js +4 -7
- package/dist/hooks/swap/tradeFlow/useMarketSwapStep.js.map +1 -1
- package/dist/hooks/txs/queries/useAwaitTx.d.ts.map +1 -1
- package/dist/hooks/txs/queries/useAwaitTx.js +19 -71
- package/dist/hooks/txs/queries/useAwaitTx.js.map +1 -1
- package/dist/hooks/useBreakpoints.d.ts +4 -0
- package/dist/hooks/useBreakpoints.d.ts.map +1 -0
- package/dist/hooks/useBreakpoints.js +22 -0
- package/dist/hooks/useBreakpoints.js.map +1 -0
- package/dist/hooks/usePartner.d.ts +1 -1
- package/dist/hooks/usePartner.d.ts.map +1 -1
- package/dist/hooks/usePartner.js +3 -5
- package/dist/hooks/usePartner.js.map +1 -1
- package/dist/lib/constants/mobile.d.ts +2 -0
- package/dist/lib/constants/mobile.d.ts.map +1 -0
- package/dist/lib/constants/mobile.js +6 -0
- package/dist/lib/constants/mobile.js.map +1 -0
- package/dist/lib/utils/formatFiatPrice.d.ts +1 -1
- package/dist/lib/utils/formatFiatPrice.d.ts.map +1 -1
- package/dist/lib/utils/formatFiatPrice.js +4 -2
- package/dist/lib/utils/formatFiatPrice.js.map +1 -1
- package/dist/lib/utils/index.d.ts.map +1 -1
- package/dist/lib/utils/index.js.map +1 -1
- package/dist/lib/utils/mobile.d.ts +6 -0
- package/dist/lib/utils/mobile.d.ts.map +1 -0
- package/dist/lib/utils/mobile.js +10 -0
- package/dist/lib/utils/mobile.js.map +1 -0
- package/dist/lib/utils/toasts.d.ts +1 -1
- package/dist/lib/utils/toasts.d.ts.map +1 -1
- package/dist/lib/utils/toasts.js +1 -5
- package/dist/lib/utils/toasts.js.map +1 -1
- package/dist/lib/web3/privy/config.js +1 -1
- package/dist/lib/web3/wagmi/config.js +1 -1
- package/dist/lib/web3/wagmi/constants.d.ts +1 -0
- package/dist/lib/web3/wagmi/constants.d.ts.map +1 -1
- package/dist/lib/web3/wagmi/constants.js +13 -1
- package/dist/lib/web3/wagmi/constants.js.map +1 -1
- package/dist/lib/web3/wagmi/external.d.ts +3 -10
- package/dist/lib/web3/wagmi/external.d.ts.map +1 -1
- package/dist/lib/web3/wagmi/external.js +2 -17
- package/dist/lib/web3/wagmi/external.js.map +1 -1
- package/dist/lib/web3/wagmi/switchChain.d.ts.map +1 -1
- package/dist/lib/web3/wagmi/switchChain.js +1 -5
- package/dist/lib/web3/wagmi/switchChain.js.map +1 -1
- package/dist/styles.css +57 -18
- package/dist/transactions/queries/ensureCallsStatus.d.ts.map +1 -1
- package/dist/transactions/queries/ensureCallsStatus.js +3 -11
- package/dist/transactions/queries/ensureCallsStatus.js.map +1 -1
- package/dist/transactions/queries/ensureTxReceipt.d.ts.map +1 -1
- package/dist/transactions/queries/ensureTxReceipt.js +4 -7
- package/dist/transactions/queries/ensureTxReceipt.js.map +1 -1
- package/dist/transactions/state/effects/finalize.d.ts +1 -7
- package/dist/transactions/state/effects/finalize.d.ts.map +1 -1
- package/dist/transactions/state/effects/finalize.js +7 -41
- package/dist/transactions/state/effects/finalize.js.map +1 -1
- package/dist/transactions/state/hooks/useActivateEffects.d.ts.map +1 -1
- package/dist/transactions/state/hooks/useActivateEffects.js +2 -4
- package/dist/transactions/state/hooks/useActivateEffects.js.map +1 -1
- package/dist/transactions/state/transactionsActionAtom.d.ts.map +1 -1
- package/dist/transactions/state/transactionsActionAtom.js +15 -55
- package/dist/transactions/state/transactionsActionAtom.js.map +1 -1
- package/dist/transactions/state/transactionsAtom.js +2 -2
- package/dist/transactions/state/transactionsAtom.js.map +1 -1
- package/dist/transactions/types.d.ts +1 -11
- package/dist/transactions/types.d.ts.map +1 -1
- package/dist/transactions/utils.d.ts +1 -2
- package/dist/transactions/utils.d.ts.map +1 -1
- package/dist/transactions/utils.js +1 -6
- package/dist/transactions/utils.js.map +1 -1
- package/package.json +2 -1
- package/dist/components/web3/ConnectExternalProvider/constants.d.ts +0 -2
- package/dist/components/web3/ConnectExternalProvider/constants.d.ts.map +0 -1
- package/dist/components/web3/ConnectExternalProvider/constants.js +0 -4
- package/dist/components/web3/ConnectExternalProvider/constants.js.map +0 -1
- package/dist/components/web3/ConnectExternalProvider/utils.d.ts +0 -8
- package/dist/components/web3/ConnectExternalProvider/utils.d.ts.map +0 -1
- package/dist/components/web3/ConnectExternalProvider/utils.js +0 -9
- package/dist/components/web3/ConnectExternalProvider/utils.js.map +0 -1
- package/dist/transactions/hash.d.ts +0 -7
- package/dist/transactions/hash.d.ts.map +0 -1
- package/dist/transactions/hash.js +0 -35
- package/dist/transactions/hash.js.map +0 -1
package/dist/components/widget/TransactionDetails/LimitOrderDetails/TransactionDetails.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionDetails.js","sources":["../../../../../src/components/widget/TransactionDetails/LimitOrderDetails/TransactionDetails.tsx"],"sourcesContent":["import type { TransactionListItem } from \"../types\";\nimport { DetailWithValueList } from \"../../Details/DetailWithValueList\";\nimport { isTruthy } from \"@/lib/utils\";\nimport type { DetailWithValue } from \"../../Details/types\";\nimport { PayReceiveInfo } from \"../../PayReceiveInfo/PayReceiveInfo\";\nimport {\n constructTxRateDetail,\n constructTxStatusDetail,\n constructOrderTypeDetail,\n constructPayReceiveInfoProps,\n constructSubmitDateDetail,\n} from \"./utils\";\n\nimport { Controls } from \"./Controls\";\nimport { isTransactionItemSwapWithExtra } from \"../utils\";\n\nconst detailsClasses = {\n root: \"pt-4 gap-4\",\n title: \"text-contrast-5 dark:text-contrast-6\",\n value: \"text-contrast-4 dark:text-contrast-6\",\n};\n\nexport const TransactionDetails = ({\n txItem,\n onDismiss,\n}: {\n txItem: TransactionListItem;\n onDismiss: () => void;\n}) => {\n const payReceiveInfoProps =\n isTransactionItemSwapWithExtra(txItem) &&\n constructPayReceiveInfoProps(txItem);\n\n const details: DetailWithValue[] = [\n constructSubmitDateDetail(txItem),\n constructTxRateDetail(txItem),\n constructTxStatusDetail(txItem),\n constructOrderTypeDetail(),\n ].filter(isTruthy);\n\n return (\n <div className=\"px-6 pb-8 h-[470px] flex flex-col\">\n {payReceiveInfoProps && <PayReceiveInfo {...payReceiveInfoProps} />}\n <DetailWithValueList details={details} classes={detailsClasses} />\n <Controls
|
|
1
|
+
{"version":3,"file":"TransactionDetails.js","sources":["../../../../../src/components/widget/TransactionDetails/LimitOrderDetails/TransactionDetails.tsx"],"sourcesContent":["import type { TransactionListItem } from \"../types\";\nimport { DetailWithValueList } from \"../../Details/DetailWithValueList\";\nimport { isTruthy } from \"@/lib/utils\";\nimport type { DetailWithValue } from \"../../Details/types\";\nimport { PayReceiveInfo } from \"../../PayReceiveInfo/PayReceiveInfo\";\nimport {\n constructTxRateDetail,\n constructTxStatusDetail,\n constructOrderTypeDetail,\n constructPayReceiveInfoProps,\n constructSubmitDateDetail,\n} from \"./utils\";\n\nimport { Controls } from \"./Controls\";\nimport { isTransactionItemSwapWithExtra } from \"../utils\";\n\nconst detailsClasses = {\n root: \"pt-4 gap-4\",\n title: \"text-contrast-5 dark:text-contrast-6\",\n value: \"text-contrast-4 dark:text-contrast-6\",\n};\n\nexport const TransactionDetails = ({\n txItem,\n onDismiss,\n}: {\n txItem: TransactionListItem;\n onDismiss: () => void;\n}) => {\n const payReceiveInfoProps =\n isTransactionItemSwapWithExtra(txItem) &&\n constructPayReceiveInfoProps(txItem);\n\n const details: DetailWithValue[] = [\n constructSubmitDateDetail(txItem),\n constructTxRateDetail(txItem),\n constructTxStatusDetail(txItem),\n constructOrderTypeDetail(),\n ].filter(isTruthy);\n\n return (\n <div className=\"px-6 pb-8 h-[470px] flex flex-col\">\n {payReceiveInfoProps && <PayReceiveInfo {...payReceiveInfoProps} />}\n <DetailWithValueList details={details} classes={detailsClasses} />\n <Controls order={txItem} onDismiss={onDismiss} />\n </div>\n );\n};\n"],"names":["detailsClasses","root","title","value","TransactionDetails","t0","$","_c","txItem","onDismiss","t1","isTransactionItemSwapWithExtra","constructPayReceiveInfoProps","payReceiveInfoProps","t2","constructSubmitDateDetail","constructTxRateDetail","constructTxStatusDetail","constructOrderTypeDetail","filter","isTruthy","details","t3","t4","t5","t6"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Configurator.d.ts","sourceRoot":"","sources":["../../src/configurator/Configurator.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Configurator.d.ts","sourceRoot":"","sources":["../../src/configurator/Configurator.tsx"],"names":[],"mappings":"AAwPA,eAAO,MAAM,YAAY,+CA2TxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnabledChainsSelector.d.ts","sourceRoot":"","sources":["../../../src/configurator/components/EnabledChainsSelector.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAY,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"EnabledChainsSelector.d.ts","sourceRoot":"","sources":["../../../src/configurator/components/EnabledChainsSelector.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAY,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAQ/D,eAAO,MAAM,qBAAqB,GAAI,mCAInC;IACD,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAC3B,cAAc,EAAE,QAAQ,CAAC,cAAc,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC;IAC7D,IAAI,EAAE,KAAK,GAAG,MAAM,CAAC;CACtB,4CAuEA,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { PartnerConfig } from '../../core/types';
|
|
2
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
3
|
+
export declare const PartnerInputs: ({ partnerConfig, onPartnerConfigChange, }: {
|
|
4
|
+
partnerConfig: PartnerConfig;
|
|
5
|
+
onPartnerConfigChange: Dispatch<SetStateAction<PartnerConfig>>;
|
|
4
6
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
7
|
//# sourceMappingURL=PartnerInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PartnerInput.d.ts","sourceRoot":"","sources":["../../../src/configurator/components/PartnerInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PartnerInput.d.ts","sourceRoot":"","sources":["../../../src/configurator/components/PartnerInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAGlD,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAW3D,eAAO,MAAM,aAAa,GAAI,2CAG3B;IACD,aAAa,EAAE,aAAa,CAAC;IAC7B,qBAAqB,EAAE,QAAQ,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC,CAAC;CAChE,4CAmFA,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HTMLInputTypeAttribute } from 'react';
|
|
2
|
+
import { OnValueChange } from 'react-number-format';
|
|
2
3
|
export declare const ConfiguratorInput: ({ value, onValueChange, onFocus, placeholder, type, }: {
|
|
3
4
|
value: string | number;
|
|
4
5
|
onValueChange: (value: string) => void;
|
|
@@ -6,4 +7,12 @@ export declare const ConfiguratorInput: ({ value, onValueChange, onFocus, placeh
|
|
|
6
7
|
placeholder?: string;
|
|
7
8
|
type?: HTMLInputTypeAttribute;
|
|
8
9
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const ConfiguratorNumericInput: ({ value, onValueChange, disabled, placeholder, onFocus, onBlur, }: {
|
|
11
|
+
value?: string | number | null;
|
|
12
|
+
onValueChange: OnValueChange;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
onFocus?: React.FocusEventHandler<HTMLInputElement>;
|
|
16
|
+
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
17
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
18
|
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../src/configurator/components/common/Input.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../src/configurator/components/common/Input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAiB,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAExE,eAAO,MAAM,iBAAiB,GAAI,uDAM/B;IACD,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IACpD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,sBAAsB,CAAC;CAC/B,4CAWA,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,mEAOtC;IACD,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC/B,aAAa,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IACpD,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;CACpD,4CA2BA,CAAC"}
|
package/dist/core/constants.d.ts
CHANGED
|
@@ -4,6 +4,9 @@ export declare const WIDGET_ELEMENT_ID = "velora-widget";
|
|
|
4
4
|
export declare const WIDGET_HEIGHT_CLASSNAME = "h-[620px]";
|
|
5
5
|
export declare const WIDGET_MIN_HEIGHT_CLASSNAME = "min-h-[620px]";
|
|
6
6
|
export declare const DRAWER_HEIGHT = 620;
|
|
7
|
+
export declare const BREAKPOINTS: {
|
|
8
|
+
md: number;
|
|
9
|
+
};
|
|
7
10
|
export declare const TOASTER_LIFETIME = 5000;
|
|
8
11
|
export declare const swapModeToSpender: Record<SwapMode, SpenderContractType>;
|
|
9
12
|
export declare const defaults: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/core/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kDAAkD,CAAC;AACjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAM7D,eAAO,MAAM,iBAAiB,kBAAkB,CAAC;AACjD,eAAO,MAAM,uBAAuB,cAAc,CAAC;AACnD,eAAO,MAAM,2BAA2B,kBAAkB,CAAC;AAC3D,eAAO,MAAM,aAAa,MAAM,CAAC;AAEjC,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAErC,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,QAAQ,EAAE,mBAAmB,CAGnE,CAAC;AAGF,eAAO,MAAM,QAAQ;;;;CAKpB,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/core/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kDAAkD,CAAC;AACjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAM7D,eAAO,MAAM,iBAAiB,kBAAkB,CAAC;AACjD,eAAO,MAAM,uBAAuB,cAAc,CAAC;AACnD,eAAO,MAAM,2BAA2B,kBAAkB,CAAC;AAC3D,eAAO,MAAM,aAAa,MAAM,CAAC;AAEjC,eAAO,MAAM,WAAW;;CAEvB,CAAC;AAEF,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAErC,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,QAAQ,EAAE,mBAAmB,CAGnE,CAAC;AAGF,eAAO,MAAM,QAAQ;;;;CAKpB,CAAC"}
|
package/dist/core/constants.js
CHANGED
|
@@ -6,6 +6,9 @@ const WIDGET_ELEMENT_ID = "velora-widget";
|
|
|
6
6
|
const WIDGET_HEIGHT_CLASSNAME = "h-[620px]";
|
|
7
7
|
const WIDGET_MIN_HEIGHT_CLASSNAME = "min-h-[620px]";
|
|
8
8
|
const DRAWER_HEIGHT = 620;
|
|
9
|
+
const BREAKPOINTS = {
|
|
10
|
+
md: 400
|
|
11
|
+
};
|
|
9
12
|
const TOASTER_LIFETIME = 5e3;
|
|
10
13
|
const swapModeToSpender = {
|
|
11
14
|
market: "AugustusSwapper",
|
|
@@ -18,5 +21,5 @@ const defaults = {
|
|
|
18
21
|
// add more defaults here as needed
|
|
19
22
|
};
|
|
20
23
|
|
|
21
|
-
export { DRAWER_HEIGHT, TOASTER_LIFETIME, WIDGET_ELEMENT_ID, WIDGET_HEIGHT_CLASSNAME, WIDGET_MIN_HEIGHT_CLASSNAME, defaults, swapModeToSpender };
|
|
24
|
+
export { BREAKPOINTS, DRAWER_HEIGHT, TOASTER_LIFETIME, WIDGET_ELEMENT_ID, WIDGET_HEIGHT_CLASSNAME, WIDGET_MIN_HEIGHT_CLASSNAME, defaults, swapModeToSpender };
|
|
22
25
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sources":["../../src/core/constants.ts"],"sourcesContent":["import type { SwapMode } from \"@/components/widget/SwapModeSwitcher/state/types\";\nimport type { SpenderContractType } from \"@/hooks/sdk/types\";\nimport { supportedTradeModes } from \"@/lib/tradeMode\";\n\nimport { supportedChainIds } from \"@/lib/web3/wagmi/constants\";\nimport { defaultTokenLists } from \"@/tokens/lists/constants\";\n\nexport const WIDGET_ELEMENT_ID = \"velora-widget\";\nexport const WIDGET_HEIGHT_CLASSNAME = \"h-[620px]\";\nexport const WIDGET_MIN_HEIGHT_CLASSNAME = \"min-h-[620px]\";\nexport const DRAWER_HEIGHT = 620;\n\nexport const TOASTER_LIFETIME = 5000; // default used internally by sonner is 4000\n\nexport const swapModeToSpender: Record<SwapMode, SpenderContractType> = {\n market: \"AugustusSwapper\",\n delta: \"ParaswapDelta\",\n};\n\n// grouped defaults for future extensibility\nexport const defaults = {\n tokenLists: defaultTokenLists,\n chainIds: supportedChainIds,\n tradeModes: supportedTradeModes,\n // add more defaults here as needed\n};\n"],"names":["WIDGET_ELEMENT_ID","WIDGET_HEIGHT_CLASSNAME","WIDGET_MIN_HEIGHT_CLASSNAME","DRAWER_HEIGHT","TOASTER_LIFETIME","swapModeToSpender","market","delta","defaults","tokenLists","defaultTokenLists","chainIds","supportedChainIds","tradeModes","supportedTradeModes"],"mappings":";;;;AAOO,MAAMA,iBAAAA,GAAoB;AAC1B,MAAMC,uBAAAA,GAA0B;AAChC,MAAMC,2BAAAA,GAA8B;AACpC,MAAMC,aAAAA,GAAgB;AAEtB,MAAMC,gBAAAA,GAAmB;AAEzB,MAAMC,iBAAAA,GAA2D;AAAA,EACtEC,MAAAA,EAAQ,iBAAA;AAAA,EACRC,KAAAA,EAAO;AACT;AAGO,MAAMC,QAAAA,GAAW;AAAA,EACtBC,UAAAA,EAAYC,iBAAAA;AAAAA,EACZC,QAAAA,EAAUC,iBAAAA;AAAAA,EACVC,UAAAA,EAAYC;AAAAA;AAEd;;;;"}
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["../../src/core/constants.ts"],"sourcesContent":["import type { SwapMode } from \"@/components/widget/SwapModeSwitcher/state/types\";\nimport type { SpenderContractType } from \"@/hooks/sdk/types\";\nimport { supportedTradeModes } from \"@/lib/tradeMode\";\n\nimport { supportedChainIds } from \"@/lib/web3/wagmi/constants\";\nimport { defaultTokenLists } from \"@/tokens/lists/constants\";\n\nexport const WIDGET_ELEMENT_ID = \"velora-widget\";\nexport const WIDGET_HEIGHT_CLASSNAME = \"h-[620px]\";\nexport const WIDGET_MIN_HEIGHT_CLASSNAME = \"min-h-[620px]\";\nexport const DRAWER_HEIGHT = 620;\n\nexport const BREAKPOINTS = {\n md: 400,\n};\n\nexport const TOASTER_LIFETIME = 5000; // default used internally by sonner is 4000\n\nexport const swapModeToSpender: Record<SwapMode, SpenderContractType> = {\n market: \"AugustusSwapper\",\n delta: \"ParaswapDelta\",\n};\n\n// grouped defaults for future extensibility\nexport const defaults = {\n tokenLists: defaultTokenLists,\n chainIds: supportedChainIds,\n tradeModes: supportedTradeModes,\n // add more defaults here as needed\n};\n"],"names":["WIDGET_ELEMENT_ID","WIDGET_HEIGHT_CLASSNAME","WIDGET_MIN_HEIGHT_CLASSNAME","DRAWER_HEIGHT","BREAKPOINTS","md","TOASTER_LIFETIME","swapModeToSpender","market","delta","defaults","tokenLists","defaultTokenLists","chainIds","supportedChainIds","tradeModes","supportedTradeModes"],"mappings":";;;;AAOO,MAAMA,iBAAAA,GAAoB;AAC1B,MAAMC,uBAAAA,GAA0B;AAChC,MAAMC,2BAAAA,GAA8B;AACpC,MAAMC,aAAAA,GAAgB;AAEtB,MAAMC,WAAAA,GAAc;AAAA,EACzBC,EAAAA,EAAI;AACN;AAEO,MAAMC,gBAAAA,GAAmB;AAEzB,MAAMC,iBAAAA,GAA2D;AAAA,EACtEC,MAAAA,EAAQ,iBAAA;AAAA,EACRC,KAAAA,EAAO;AACT;AAGO,MAAMC,QAAAA,GAAW;AAAA,EACtBC,UAAAA,EAAYC,iBAAAA;AAAAA,EACZC,QAAAA,EAAUC,iBAAAA;AAAAA,EACVC,UAAAA,EAAYC;AAAAA;AAEd;;;;"}
|
package/dist/core/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.tsx"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAiB7B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.tsx"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAiB7B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAgV3C,eAAO,MAAM,MAAM,GAAI,qCAAqC,WAAW,4CAatE,CAAC"}
|
package/dist/core/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import { SwapModeSwitcherExpandable } from '../components/widget/SwapModeSwitche
|
|
|
18
18
|
import { useTokenInputsFromPrice } from '../hooks/swap/prices/useTokenInputsFromPrice.js';
|
|
19
19
|
import { SwapDetailsExpandable } from '../components/widget/Details/SwapDetailsExpandable.js';
|
|
20
20
|
import { ReceiverAddress } from '../components/widget/ReceiverAddress/ReceiverAddress.js';
|
|
21
|
-
import { useSetAtom, useAtomValue } from './store.js';
|
|
21
|
+
import { useSetAtom, jotaiStore, useAtomValue } from './store.js';
|
|
22
22
|
import { useHydrateAtoms } from 'jotai/utils';
|
|
23
23
|
import { containerAtom } from './state/containerAtom.js';
|
|
24
24
|
import { AppHeader } from '../components/widget/AppHeader/AppHeader.js';
|
|
@@ -64,6 +64,7 @@ import { useQueryClient } from '@tanstack/react-query';
|
|
|
64
64
|
import { useScreenValue } from './screen/state/hooks/useScreenValue.js';
|
|
65
65
|
import { SecondaryScreenContainer, MainScreenContainer } from '../components/widget/Screen/ScreenContainer.js';
|
|
66
66
|
import { useCloseScreenOnClickOutside } from './screen/hooks/useOnClickOutside.js';
|
|
67
|
+
import { useResizeObserver } from './screen/hooks/useResizeObserver.js';
|
|
67
68
|
import { useLimitReceiverAddress } from './limit/state/receiverAddressAtom.js';
|
|
68
69
|
import { isBridgePrice } from '../hooks/swap/prices/delta/queries/useDeltaPriceQuery.js';
|
|
69
70
|
import { BridgeSelectorExpandable } from '../components/widget/BridgeSelectorExpandable/BridgeSelectorExpandable.js';
|
|
@@ -278,7 +279,7 @@ const App = () => {
|
|
|
278
279
|
return t2;
|
|
279
280
|
};
|
|
280
281
|
const WidgetBase = (t0) => {
|
|
281
|
-
const $ = distExports.c(
|
|
282
|
+
const $ = distExports.c(73);
|
|
282
283
|
const {
|
|
283
284
|
config: _config,
|
|
284
285
|
provider,
|
|
@@ -300,6 +301,7 @@ const WidgetBase = (t0) => {
|
|
|
300
301
|
let destChains;
|
|
301
302
|
let devURLs;
|
|
302
303
|
let excludeUI;
|
|
304
|
+
let partnerConfig;
|
|
303
305
|
let srcChains;
|
|
304
306
|
let tokenLists;
|
|
305
307
|
let tradeModes;
|
|
@@ -311,6 +313,7 @@ const WidgetBase = (t0) => {
|
|
|
311
313
|
tradeModes,
|
|
312
314
|
excludeUI,
|
|
313
315
|
devURLs,
|
|
316
|
+
partnerConfig,
|
|
314
317
|
...config
|
|
315
318
|
} = t1);
|
|
316
319
|
$[2] = t1;
|
|
@@ -318,31 +321,33 @@ const WidgetBase = (t0) => {
|
|
|
318
321
|
$[4] = destChains;
|
|
319
322
|
$[5] = devURLs;
|
|
320
323
|
$[6] = excludeUI;
|
|
321
|
-
$[7] =
|
|
322
|
-
$[8] =
|
|
323
|
-
$[9] =
|
|
324
|
+
$[7] = partnerConfig;
|
|
325
|
+
$[8] = srcChains;
|
|
326
|
+
$[9] = tokenLists;
|
|
327
|
+
$[10] = tradeModes;
|
|
324
328
|
} else {
|
|
325
329
|
config = $[3];
|
|
326
330
|
destChains = $[4];
|
|
327
331
|
devURLs = $[5];
|
|
328
332
|
excludeUI = $[6];
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
333
|
+
partnerConfig = $[7];
|
|
334
|
+
srcChains = $[8];
|
|
335
|
+
tokenLists = $[9];
|
|
336
|
+
tradeModes = $[10];
|
|
332
337
|
}
|
|
333
338
|
let t2;
|
|
334
|
-
if ($[
|
|
339
|
+
if ($[11] !== config) {
|
|
335
340
|
t2 = [setWidgetConfigAtom, {
|
|
336
341
|
...defaultWidgetConfig,
|
|
337
342
|
...config
|
|
338
343
|
}];
|
|
339
|
-
$[
|
|
340
|
-
$[
|
|
344
|
+
$[11] = config;
|
|
345
|
+
$[12] = t2;
|
|
341
346
|
} else {
|
|
342
|
-
t2 = $[
|
|
347
|
+
t2 = $[12];
|
|
343
348
|
}
|
|
344
349
|
let t3;
|
|
345
|
-
if ($[
|
|
350
|
+
if ($[13] !== destChains || $[14] !== devURLs || $[15] !== excludeUI || $[16] !== partnerConfig || $[17] !== srcChains || $[18] !== tokenLists || $[19] !== tradeModes) {
|
|
346
351
|
t3 = [setSubConfigAtom, {
|
|
347
352
|
...defaultSubConfig,
|
|
348
353
|
srcChains,
|
|
@@ -350,92 +355,102 @@ const WidgetBase = (t0) => {
|
|
|
350
355
|
tokenLists,
|
|
351
356
|
tradeModes,
|
|
352
357
|
excludeUI,
|
|
353
|
-
devURLs
|
|
358
|
+
devURLs,
|
|
359
|
+
partnerConfig
|
|
354
360
|
}];
|
|
355
|
-
$[
|
|
356
|
-
$[
|
|
357
|
-
$[
|
|
358
|
-
$[
|
|
359
|
-
$[
|
|
360
|
-
$[
|
|
361
|
-
$[
|
|
361
|
+
$[13] = destChains;
|
|
362
|
+
$[14] = devURLs;
|
|
363
|
+
$[15] = excludeUI;
|
|
364
|
+
$[16] = partnerConfig;
|
|
365
|
+
$[17] = srcChains;
|
|
366
|
+
$[18] = tokenLists;
|
|
367
|
+
$[19] = tradeModes;
|
|
368
|
+
$[20] = t3;
|
|
362
369
|
} else {
|
|
363
|
-
t3 = $[
|
|
370
|
+
t3 = $[20];
|
|
364
371
|
}
|
|
365
372
|
const t4 = provider || null;
|
|
366
373
|
let t5;
|
|
367
|
-
if ($[
|
|
374
|
+
if ($[21] !== t4) {
|
|
368
375
|
t5 = [externalProviderAtom, t4];
|
|
369
|
-
$[
|
|
370
|
-
$[
|
|
376
|
+
$[21] = t4;
|
|
377
|
+
$[22] = t5;
|
|
371
378
|
} else {
|
|
372
|
-
t5 = $[
|
|
379
|
+
t5 = $[22];
|
|
373
380
|
}
|
|
374
381
|
let t6;
|
|
375
|
-
if ($[
|
|
382
|
+
if ($[23] !== events) {
|
|
376
383
|
t6 = events || {};
|
|
377
|
-
$[
|
|
378
|
-
$[
|
|
384
|
+
$[23] = events;
|
|
385
|
+
$[24] = t6;
|
|
379
386
|
} else {
|
|
380
|
-
t6 = $[
|
|
387
|
+
t6 = $[24];
|
|
381
388
|
}
|
|
382
389
|
let t7;
|
|
383
|
-
if ($[
|
|
390
|
+
if ($[25] !== t6) {
|
|
384
391
|
t7 = [widgetEventsAtom, t6];
|
|
385
|
-
$[
|
|
386
|
-
$[
|
|
392
|
+
$[25] = t6;
|
|
393
|
+
$[26] = t7;
|
|
387
394
|
} else {
|
|
388
|
-
t7 = $[
|
|
395
|
+
t7 = $[26];
|
|
389
396
|
}
|
|
390
397
|
let t8;
|
|
391
|
-
if ($[
|
|
398
|
+
if ($[27] !== formInputProps) {
|
|
392
399
|
t8 = formInputProps || {};
|
|
393
|
-
$[
|
|
394
|
-
$[
|
|
400
|
+
$[27] = formInputProps;
|
|
401
|
+
$[28] = t8;
|
|
395
402
|
} else {
|
|
396
|
-
t8 = $[
|
|
403
|
+
t8 = $[28];
|
|
397
404
|
}
|
|
398
405
|
let t9;
|
|
399
|
-
if ($[
|
|
406
|
+
if ($[29] !== t8) {
|
|
400
407
|
t9 = [formInputPropsAtom, t8];
|
|
401
|
-
$[
|
|
402
|
-
$[
|
|
408
|
+
$[29] = t8;
|
|
409
|
+
$[30] = t9;
|
|
403
410
|
} else {
|
|
404
|
-
t9 = $[
|
|
411
|
+
t9 = $[30];
|
|
405
412
|
}
|
|
406
413
|
let t10;
|
|
407
|
-
if ($[
|
|
414
|
+
if ($[31] !== queryClient) {
|
|
408
415
|
t10 = [queryClientAtom, queryClient];
|
|
409
|
-
$[
|
|
410
|
-
$[
|
|
416
|
+
$[31] = queryClient;
|
|
417
|
+
$[32] = t10;
|
|
411
418
|
} else {
|
|
412
|
-
t10 = $[
|
|
419
|
+
t10 = $[32];
|
|
413
420
|
}
|
|
414
421
|
let t11;
|
|
415
|
-
if ($[
|
|
422
|
+
if ($[33] !== t10 || $[34] !== t2 || $[35] !== t3 || $[36] !== t5 || $[37] !== t7 || $[38] !== t9) {
|
|
416
423
|
t11 = [t2, t3, t5, t7, t9, t10];
|
|
417
|
-
$[
|
|
418
|
-
$[
|
|
419
|
-
$[
|
|
420
|
-
$[
|
|
421
|
-
$[
|
|
422
|
-
$[
|
|
423
|
-
$[
|
|
424
|
+
$[33] = t10;
|
|
425
|
+
$[34] = t2;
|
|
426
|
+
$[35] = t3;
|
|
427
|
+
$[36] = t5;
|
|
428
|
+
$[37] = t7;
|
|
429
|
+
$[38] = t9;
|
|
430
|
+
$[39] = t11;
|
|
424
431
|
} else {
|
|
425
|
-
t11 = $[
|
|
432
|
+
t11 = $[39];
|
|
426
433
|
}
|
|
427
|
-
|
|
434
|
+
let t12;
|
|
435
|
+
if ($[40] === Symbol.for("react.memo_cache_sentinel")) {
|
|
436
|
+
t12 = {
|
|
437
|
+
store: jotaiStore
|
|
438
|
+
};
|
|
439
|
+
$[40] = t12;
|
|
440
|
+
} else {
|
|
441
|
+
t12 = $[40];
|
|
442
|
+
}
|
|
443
|
+
useHydrateAtoms(t11, t12);
|
|
428
444
|
useWidgetEventsSetter(events);
|
|
429
445
|
useSetFormInputFromProps(formInputProps);
|
|
430
|
-
let t12;
|
|
431
446
|
let t13;
|
|
432
|
-
|
|
433
|
-
|
|
447
|
+
let t14;
|
|
448
|
+
if ($[41] !== config.debug || $[42] !== config.enableCrossChain || $[43] !== config.enableDelta || $[44] !== config.ignoreBadUsdPrice || $[45] !== config.privyAppId || $[46] !== config.privyClientId || $[47] !== config.theme || $[48] !== config.widgetMode || $[49] !== setWidgetConfig) {
|
|
449
|
+
t13 = () => {
|
|
434
450
|
setWidgetConfig({
|
|
435
451
|
theme: config.theme,
|
|
436
452
|
enableDelta: config.enableDelta,
|
|
437
453
|
enableCrossChain: config.enableCrossChain,
|
|
438
|
-
partner: config.partner,
|
|
439
454
|
privyAppId: config.privyAppId,
|
|
440
455
|
privyClientId: config.privyClientId,
|
|
441
456
|
debug: config.debug,
|
|
@@ -443,109 +458,110 @@ const WidgetBase = (t0) => {
|
|
|
443
458
|
ignoreBadUsdPrice: config.ignoreBadUsdPrice
|
|
444
459
|
});
|
|
445
460
|
};
|
|
446
|
-
|
|
447
|
-
$[
|
|
448
|
-
$[
|
|
449
|
-
$[
|
|
450
|
-
$[
|
|
451
|
-
$[
|
|
452
|
-
$[
|
|
453
|
-
$[
|
|
454
|
-
$[
|
|
455
|
-
$[
|
|
456
|
-
$[
|
|
457
|
-
$[
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
useLayoutEffect(t12, t13);
|
|
464
|
-
let t14;
|
|
461
|
+
t14 = [config.theme, config.enableDelta, config.enableCrossChain, config.privyAppId, config.privyClientId, config.debug, config.widgetMode, config.ignoreBadUsdPrice, setWidgetConfig];
|
|
462
|
+
$[41] = config.debug;
|
|
463
|
+
$[42] = config.enableCrossChain;
|
|
464
|
+
$[43] = config.enableDelta;
|
|
465
|
+
$[44] = config.ignoreBadUsdPrice;
|
|
466
|
+
$[45] = config.privyAppId;
|
|
467
|
+
$[46] = config.privyClientId;
|
|
468
|
+
$[47] = config.theme;
|
|
469
|
+
$[48] = config.widgetMode;
|
|
470
|
+
$[49] = setWidgetConfig;
|
|
471
|
+
$[50] = t13;
|
|
472
|
+
$[51] = t14;
|
|
473
|
+
} else {
|
|
474
|
+
t13 = $[50];
|
|
475
|
+
t14 = $[51];
|
|
476
|
+
}
|
|
477
|
+
useLayoutEffect(t13, t14);
|
|
465
478
|
let t15;
|
|
466
|
-
|
|
467
|
-
|
|
479
|
+
let t16;
|
|
480
|
+
if ($[52] !== destChains || $[53] !== devURLs || $[54] !== excludeUI || $[55] !== partnerConfig || $[56] !== setSubConfig || $[57] !== srcChains || $[58] !== tokenLists || $[59] !== tradeModes) {
|
|
481
|
+
t15 = () => {
|
|
468
482
|
setSubConfig({
|
|
469
483
|
srcChains,
|
|
470
484
|
destChains,
|
|
471
485
|
tokenLists,
|
|
472
486
|
tradeModes,
|
|
473
487
|
excludeUI,
|
|
474
|
-
devURLs
|
|
488
|
+
devURLs,
|
|
489
|
+
partnerConfig
|
|
475
490
|
});
|
|
476
491
|
};
|
|
477
|
-
|
|
478
|
-
$[
|
|
479
|
-
$[
|
|
480
|
-
$[
|
|
481
|
-
$[
|
|
482
|
-
$[
|
|
483
|
-
$[
|
|
484
|
-
$[
|
|
485
|
-
$[
|
|
486
|
-
$[
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
t15 = $[
|
|
490
|
-
|
|
491
|
-
|
|
492
|
+
t16 = [srcChains, destChains, tokenLists, setSubConfig, tradeModes, excludeUI, devURLs, partnerConfig];
|
|
493
|
+
$[52] = destChains;
|
|
494
|
+
$[53] = devURLs;
|
|
495
|
+
$[54] = excludeUI;
|
|
496
|
+
$[55] = partnerConfig;
|
|
497
|
+
$[56] = setSubConfig;
|
|
498
|
+
$[57] = srcChains;
|
|
499
|
+
$[58] = tokenLists;
|
|
500
|
+
$[59] = tradeModes;
|
|
501
|
+
$[60] = t15;
|
|
502
|
+
$[61] = t16;
|
|
503
|
+
} else {
|
|
504
|
+
t15 = $[60];
|
|
505
|
+
t16 = $[61];
|
|
506
|
+
}
|
|
507
|
+
useLayoutEffect(t15, t16);
|
|
492
508
|
const setExternalProvider = useSetAtom(externalProviderAtom);
|
|
493
|
-
let t16;
|
|
494
509
|
let t17;
|
|
495
|
-
|
|
496
|
-
|
|
510
|
+
let t18;
|
|
511
|
+
if ($[62] !== provider || $[63] !== setExternalProvider) {
|
|
512
|
+
t17 = () => {
|
|
497
513
|
setExternalProvider(provider || null);
|
|
498
514
|
};
|
|
499
|
-
|
|
500
|
-
$[
|
|
501
|
-
$[
|
|
502
|
-
$[
|
|
503
|
-
$[
|
|
515
|
+
t18 = [provider, setExternalProvider];
|
|
516
|
+
$[62] = provider;
|
|
517
|
+
$[63] = setExternalProvider;
|
|
518
|
+
$[64] = t17;
|
|
519
|
+
$[65] = t18;
|
|
504
520
|
} else {
|
|
505
|
-
|
|
506
|
-
|
|
521
|
+
t17 = $[64];
|
|
522
|
+
t18 = $[65];
|
|
507
523
|
}
|
|
508
|
-
useLayoutEffect(
|
|
524
|
+
useLayoutEffect(t17, t18);
|
|
509
525
|
const isDappMode = config?.widgetMode === "dapp";
|
|
510
526
|
const reconnectOnMountInit = useInitialValue(!isDappMode);
|
|
511
|
-
let t18;
|
|
512
527
|
let t19;
|
|
513
528
|
let t20;
|
|
514
529
|
let t21;
|
|
515
530
|
let t22;
|
|
516
|
-
if ($[63] === Symbol.for("react.memo_cache_sentinel")) {
|
|
517
|
-
t18 = /* @__PURE__ */ jsx(AutoconnectExternalProvider, {});
|
|
518
|
-
t19 = /* @__PURE__ */ jsx(PrivyIframeDependency, {});
|
|
519
|
-
t20 = /* @__PURE__ */ jsx(Updaters, {});
|
|
520
|
-
t21 = /* @__PURE__ */ jsx(App, {});
|
|
521
|
-
t22 = false;
|
|
522
|
-
$[63] = t18;
|
|
523
|
-
$[64] = t19;
|
|
524
|
-
$[65] = t20;
|
|
525
|
-
$[66] = t21;
|
|
526
|
-
$[67] = t22;
|
|
527
|
-
} else {
|
|
528
|
-
t18 = $[63];
|
|
529
|
-
t19 = $[64];
|
|
530
|
-
t20 = $[65];
|
|
531
|
-
t21 = $[66];
|
|
532
|
-
t22 = $[67];
|
|
533
|
-
}
|
|
534
531
|
let t23;
|
|
535
|
-
if ($[
|
|
536
|
-
|
|
537
|
-
|
|
532
|
+
if ($[66] === Symbol.for("react.memo_cache_sentinel")) {
|
|
533
|
+
t19 = /* @__PURE__ */ jsx(AutoconnectExternalProvider, {});
|
|
534
|
+
t20 = /* @__PURE__ */ jsx(PrivyIframeDependency, {});
|
|
535
|
+
t21 = /* @__PURE__ */ jsx(Updaters, {});
|
|
536
|
+
t22 = /* @__PURE__ */ jsx(App, {});
|
|
537
|
+
t23 = false;
|
|
538
|
+
$[66] = t19;
|
|
539
|
+
$[67] = t20;
|
|
540
|
+
$[68] = t21;
|
|
541
|
+
$[69] = t22;
|
|
542
|
+
$[70] = t23;
|
|
543
|
+
} else {
|
|
544
|
+
t19 = $[66];
|
|
545
|
+
t20 = $[67];
|
|
546
|
+
t21 = $[68];
|
|
547
|
+
t22 = $[69];
|
|
548
|
+
t23 = $[70];
|
|
549
|
+
}
|
|
550
|
+
let t24;
|
|
551
|
+
if ($[71] !== reconnectOnMountInit) {
|
|
552
|
+
t24 = /* @__PURE__ */ jsxs(Web3Providers, { reconnectOnMount: reconnectOnMountInit, children: [
|
|
538
553
|
t19,
|
|
539
554
|
t20,
|
|
540
555
|
t21,
|
|
541
|
-
t22
|
|
556
|
+
t22,
|
|
557
|
+
t23
|
|
542
558
|
] });
|
|
543
|
-
$[
|
|
544
|
-
$[
|
|
559
|
+
$[71] = reconnectOnMountInit;
|
|
560
|
+
$[72] = t24;
|
|
545
561
|
} else {
|
|
546
|
-
|
|
562
|
+
t24 = $[72];
|
|
547
563
|
}
|
|
548
|
-
return
|
|
564
|
+
return t24;
|
|
549
565
|
};
|
|
550
566
|
const Widget = (t0) => {
|
|
551
567
|
const $ = distExports.c(5);
|
|
@@ -576,6 +592,7 @@ function Containers(t0) {
|
|
|
576
592
|
const setContainerElement = useSetAtom(containerAtom);
|
|
577
593
|
const containerRef = useRef(null);
|
|
578
594
|
useCloseScreenOnClickOutside(containerRef);
|
|
595
|
+
useResizeObserver(containerRef);
|
|
579
596
|
const widgetConfig = useWidgetConfig();
|
|
580
597
|
const {
|
|
581
598
|
isDrawerFullCover,
|