@velora-dex/widget 0.3.11-dev.3 → 0.3.11-dev.4
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 +58 -63
- package/dist/components/web3/ConnectExternalProvider/AutoconnectExternal.js.map +1 -1
- package/dist/components/web3/ConnectExternalProvider/constants.d.ts +2 -0
- package/dist/components/web3/ConnectExternalProvider/constants.d.ts.map +1 -0
- package/dist/components/web3/ConnectExternalProvider/constants.js +4 -0
- package/dist/components/web3/ConnectExternalProvider/constants.js.map +1 -0
- package/dist/components/web3/ConnectExternalProvider/utils.d.ts +8 -0
- package/dist/components/web3/ConnectExternalProvider/utils.d.ts.map +1 -0
- package/dist/components/web3/ConnectExternalProvider/utils.js +9 -0
- package/dist/components/web3/ConnectExternalProvider/utils.js.map +1 -0
- package/dist/components/web3/ConnectWallets/walletIcons.d.ts +4 -1
- package/dist/components/web3/ConnectWallets/walletIcons.d.ts.map +1 -1
- package/dist/components/web3/ConnectWallets/walletIcons.js +18 -7
- package/dist/components/web3/ConnectWallets/walletIcons.js.map +1 -1
- package/dist/components/widget/Dialog/SelectTokenDialog/SelectTokenDialog.d.ts +4 -6
- package/dist/components/widget/Dialog/SelectTokenDialog/SelectTokenDialog.d.ts.map +1 -1
- package/dist/components/widget/Dialog/SelectTokenDialog/SelectTokenDialog.js +139 -346
- 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 +19 -24
- 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 +36 -48
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenSearch.js.map +1 -1
- package/dist/components/widget/Dialog/SelectTokenDialog/types.d.ts +2 -3
- 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 +108 -57
- package/dist/components/widget/NetworkSwitcher/NetworkSwitcherDropdown.js.map +1 -1
- package/dist/components/widget/NetworkSwitcher/types.d.ts +2 -13
- package/dist/components/widget/NetworkSwitcher/types.d.ts.map +1 -1
- 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 +11 -5
- package/dist/components/widget/ReceiverAddress/state/subscriptions.js.map +1 -1
- package/dist/components/widget/Screen/GenericScreen.d.ts +2 -6
- package/dist/components/widget/Screen/GenericScreen.d.ts.map +1 -1
- package/dist/components/widget/Screen/GenericScreen.js +33 -112
- 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 +73 -100
- package/dist/components/widget/SelectToken/SelectTokenButton.js.map +1 -1
- package/dist/components/widget/SelectToken/types.d.ts +0 -3
- package/dist/components/widget/SelectToken/types.d.ts.map +1 -1
- package/dist/components/widget/TokenInput/index.d.ts.map +1 -1
- package/dist/components/widget/TokenInput/index.js +153 -115
- package/dist/components/widget/TokenInput/index.js.map +1 -1
- package/dist/components/widget/TokenInput/types.d.ts +1 -7
- 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 +22 -23
- 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/Safe/SafeConnector.d.ts +23 -0
- package/dist/configurator/Safe/SafeConnector.d.ts.map +1 -0
- package/dist/configurator/Safe/useSafeConnector.d.ts +7 -0
- package/dist/configurator/Safe/useSafeConnector.d.ts.map +1 -0
- package/dist/configurator/components/EnabledChainsSelector.d.ts.map +1 -1
- package/dist/configurator/components/PartnerInput.d.ts +3 -5
- package/dist/configurator/components/PartnerInput.d.ts.map +1 -1
- package/dist/configurator/components/common/Input.d.ts +0 -9
- package/dist/configurator/components/common/Input.d.ts.map +1 -1
- package/dist/core/constants.d.ts +0 -3
- package/dist/core/constants.d.ts.map +1 -1
- package/dist/core/constants.js +1 -4
- package/dist/core/constants.js.map +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +113 -121
- package/dist/core/index.js.map +1 -1
- package/dist/core/inputs/hooks/useMaxButtonProps.d.ts +7 -2
- package/dist/core/inputs/hooks/useMaxButtonProps.d.ts.map +1 -1
- package/dist/core/inputs/hooks/useMaxButtonProps.js +6 -39
- package/dist/core/inputs/hooks/useMaxButtonProps.js.map +1 -1
- 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 +6 -5
- package/dist/core/state/configAtom.d.ts.map +1 -1
- package/dist/core/state/configAtom.js +9 -8
- package/dist/core/state/configAtom.js.map +1 -1
- package/dist/core/state/containerAtom.d.ts +0 -4
- package/dist/core/state/containerAtom.d.ts.map +1 -1
- package/dist/core/state/containerAtom.js +1 -8
- package/dist/core/state/containerAtom.js.map +1 -1
- package/dist/core/state/externalProviderAtom.d.ts +9 -0
- package/dist/core/state/externalProviderAtom.d.ts.map +1 -1
- package/dist/core/state/externalProviderAtom.js +28 -1
- package/dist/core/state/externalProviderAtom.js.map +1 -1
- package/dist/core/types.d.ts +2 -12
- 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 +2 -1
- 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 +6 -1
- 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 +3 -1
- package/dist/hooks/connectors/useIsConnectedSafe.js.map +1 -1
- package/dist/hooks/connectors/useIsGnosisSafeConnector.d.ts +4 -1
- package/dist/hooks/connectors/useIsGnosisSafeConnector.d.ts.map +1 -1
- package/dist/hooks/connectors/useIsGnosisSafeConnector.js +3 -4
- 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 +16 -2
- package/dist/hooks/connectors/useIsSafeThroughWalletConnect.js.map +1 -1
- package/dist/hooks/otc/mutations/useFillOrder.js +5 -4
- package/dist/hooks/otc/mutations/useFillOrder.js.map +1 -1
- package/dist/hooks/otc/tradeFlow/useFillOtcOrderFlow.js +3 -2
- 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 +7 -4
- package/dist/hooks/otc/tradeFlow/useFillOtcOrderStep.js.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/useDeltaPriceQuery.d.ts +2 -5
- package/dist/hooks/swap/prices/delta/queries/useDeltaPriceQuery.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/useDeltaPriceQuery.js +1 -2
- package/dist/hooks/swap/prices/delta/queries/useDeltaPriceQuery.js.map +1 -1
- package/dist/hooks/swap/prices/market/queries/useMarketPriceQuery.d.ts +1 -4
- package/dist/hooks/swap/prices/market/queries/useMarketPriceQuery.d.ts.map +1 -1
- package/dist/hooks/swap/prices/market/queries/useMarketPriceQuery.js +1 -2
- package/dist/hooks/swap/prices/market/queries/useMarketPriceQuery.js.map +1 -1
- package/dist/hooks/swap/prices/usePricesParams.d.ts +1 -3
- package/dist/hooks/swap/prices/usePricesParams.d.ts.map +1 -1
- package/dist/hooks/swap/prices/usePricesParams.js +27 -36
- 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 +2 -1
- 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 +1 -9
- package/dist/hooks/swap/tradeFlow/useDeltaFlow.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/useLimitOrderFlow.js +1 -3
- package/dist/hooks/swap/tradeFlow/useLimitOrderFlow.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/useMarketFlow.js +6 -9
- 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 +7 -4
- 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 +71 -19
- package/dist/hooks/txs/queries/useAwaitTx.js.map +1 -1
- package/dist/hooks/usePartner.d.ts +1 -1
- package/dist/hooks/usePartner.d.ts.map +1 -1
- package/dist/hooks/usePartner.js +5 -3
- package/dist/hooks/usePartner.js.map +1 -1
- 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 +2 -4
- 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/toasts.d.ts +1 -1
- package/dist/lib/utils/toasts.d.ts.map +1 -1
- package/dist/lib/utils/toasts.js +5 -1
- 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 +0 -1
- package/dist/lib/web3/wagmi/constants.d.ts.map +1 -1
- package/dist/lib/web3/wagmi/constants.js +1 -13
- package/dist/lib/web3/wagmi/constants.js.map +1 -1
- package/dist/lib/web3/wagmi/external.d.ts +10 -3
- package/dist/lib/web3/wagmi/external.d.ts.map +1 -1
- package/dist/lib/web3/wagmi/external.js +17 -2
- 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 +5 -1
- package/dist/lib/web3/wagmi/switchChain.js.map +1 -1
- package/dist/styles.css +18 -57
- package/dist/transactions/hash.d.ts +7 -0
- package/dist/transactions/hash.d.ts.map +1 -0
- package/dist/transactions/hash.js +35 -0
- package/dist/transactions/hash.js.map +1 -0
- package/dist/transactions/queries/ensureCallsStatus.d.ts.map +1 -1
- package/dist/transactions/queries/ensureCallsStatus.js +11 -3
- 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 +7 -4
- package/dist/transactions/queries/ensureTxReceipt.js.map +1 -1
- package/dist/transactions/state/effects/finalize.d.ts +7 -1
- package/dist/transactions/state/effects/finalize.d.ts.map +1 -1
- package/dist/transactions/state/effects/finalize.js +41 -7
- 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 +4 -2
- 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 +55 -15
- 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 +11 -1
- package/dist/transactions/types.d.ts.map +1 -1
- package/dist/transactions/utils.d.ts +2 -1
- package/dist/transactions/utils.d.ts.map +1 -1
- package/dist/transactions/utils.js +6 -1
- package/dist/transactions/utils.js.map +1 -1
- package/package.json +3 -2
- package/dist/components/widget/NetworkSwitcher/NetworkSwitcherList.d.ts +0 -3
- package/dist/components/widget/NetworkSwitcher/NetworkSwitcherList.d.ts.map +0 -1
- package/dist/components/widget/NetworkSwitcher/NetworkSwitcherList.js +0 -72
- package/dist/components/widget/NetworkSwitcher/NetworkSwitcherList.js.map +0 -1
- package/dist/components/widget/NetworkSwitcher/common/AllNetworksItem.d.ts +0 -5
- package/dist/components/widget/NetworkSwitcher/common/AllNetworksItem.d.ts.map +0 -1
- package/dist/components/widget/NetworkSwitcher/common/AllNetworksItem.js +0 -48
- package/dist/components/widget/NetworkSwitcher/common/AllNetworksItem.js.map +0 -1
- package/dist/components/widget/NetworkSwitcher/common/NetworkItem.d.ts +0 -7
- package/dist/components/widget/NetworkSwitcher/common/NetworkItem.d.ts.map +0 -1
- package/dist/components/widget/NetworkSwitcher/common/NetworkItem.js +0 -46
- package/dist/components/widget/NetworkSwitcher/common/NetworkItem.js.map +0 -1
- package/dist/components/widget/NetworkSwitcher/utils/items.d.ts +0 -3
- package/dist/components/widget/NetworkSwitcher/utils/items.d.ts.map +0 -1
- package/dist/components/widget/NetworkSwitcher/utils/items.js +0 -65
- package/dist/components/widget/NetworkSwitcher/utils/items.js.map +0 -1
- package/dist/components/widget/TokenInput/InputContainer.d.ts +0 -3
- package/dist/components/widget/TokenInput/InputContainer.d.ts.map +0 -1
- package/dist/components/widget/TokenInput/InputContainer.js +0 -54
- package/dist/components/widget/TokenInput/InputContainer.js.map +0 -1
- package/dist/components/widget/TokenInput/InputField.d.ts +0 -6
- package/dist/components/widget/TokenInput/InputField.d.ts.map +0 -1
- package/dist/components/widget/TokenInput/InputField.js +0 -84
- package/dist/components/widget/TokenInput/InputField.js.map +0 -1
- package/dist/components/widget/TokenInput/InputFooter.d.ts +0 -5
- package/dist/components/widget/TokenInput/InputFooter.d.ts.map +0 -1
- package/dist/components/widget/TokenInput/InputFooter.js +0 -206
- package/dist/components/widget/TokenInput/InputFooter.js.map +0 -1
- package/dist/components/widget/TokenInput/InputHeader.d.ts +0 -5
- package/dist/components/widget/TokenInput/InputHeader.d.ts.map +0 -1
- package/dist/components/widget/TokenInput/InputHeader.js +0 -58
- package/dist/components/widget/TokenInput/InputHeader.js.map +0 -1
- package/dist/components/widget/TokenInput/common/Balance.d.ts +0 -3
- package/dist/components/widget/TokenInput/common/Balance.d.ts.map +0 -1
- package/dist/components/widget/TokenInput/common/Balance.js +0 -23
- package/dist/components/widget/TokenInput/common/Balance.js.map +0 -1
- package/dist/components/widget/TokenInput/common/MaxButtons.d.ts +0 -4
- package/dist/components/widget/TokenInput/common/MaxButtons.d.ts.map +0 -1
- package/dist/components/widget/TokenInput/common/MaxButtons.js +0 -49
- package/dist/components/widget/TokenInput/common/MaxButtons.js.map +0 -1
- package/dist/core/screen/hooks/useResizeObserver.d.ts +0 -2
- package/dist/core/screen/hooks/useResizeObserver.d.ts.map +0 -1
- package/dist/core/screen/hooks/useResizeObserver.js +0 -36
- package/dist/core/screen/hooks/useResizeObserver.js.map +0 -1
- package/dist/core/state/validatedPartnerConfigAtom.d.ts +0 -3
- package/dist/core/state/validatedPartnerConfigAtom.d.ts.map +0 -1
- package/dist/core/state/validatedPartnerConfigAtom.js +0 -22
- package/dist/core/state/validatedPartnerConfigAtom.js.map +0 -1
- package/dist/hooks/useBreakpoints.d.ts +0 -4
- package/dist/hooks/useBreakpoints.d.ts.map +0 -1
- package/dist/hooks/useBreakpoints.js +0 -22
- package/dist/hooks/useBreakpoints.js.map +0 -1
- package/dist/lib/constants/mobile.d.ts +0 -2
- package/dist/lib/constants/mobile.d.ts.map +0 -1
- package/dist/lib/constants/mobile.js +0 -6
- package/dist/lib/constants/mobile.js.map +0 -1
- package/dist/lib/utils/mobile.d.ts +0 -6
- package/dist/lib/utils/mobile.d.ts.map +0 -1
- package/dist/lib/utils/mobile.js +0 -10
- package/dist/lib/utils/mobile.js.map +0 -1
|
@@ -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;AAI/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,4CAsEA,CAAC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
partnerConfig: PartnerConfig;
|
|
5
|
-
onPartnerConfigChange: Dispatch<SetStateAction<PartnerConfig>>;
|
|
1
|
+
export declare const PartnerInput: ({ partner, onPartnerChange, }: {
|
|
2
|
+
partner: string;
|
|
3
|
+
onPartnerChange: (partner: string) => void;
|
|
6
4
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
5
|
//# 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":"AAGA,eAAO,MAAM,YAAY,GAAI,+BAG1B;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C,4CAcA,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLInputTypeAttribute } from 'react';
|
|
2
|
-
import { OnValueChange } from 'react-number-format';
|
|
3
2
|
export declare const ConfiguratorInput: ({ value, onValueChange, onFocus, placeholder, type, }: {
|
|
4
3
|
value: string | number;
|
|
5
4
|
onValueChange: (value: string) => void;
|
|
@@ -7,12 +6,4 @@ export declare const ConfiguratorInput: ({ value, onValueChange, onFocus, placeh
|
|
|
7
6
|
placeholder?: string;
|
|
8
7
|
type?: HTMLInputTypeAttribute;
|
|
9
8
|
}) => 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;
|
|
18
9
|
//# 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":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAC;AAEpD,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"}
|
package/dist/core/constants.d.ts
CHANGED
|
@@ -4,9 +4,6 @@ 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
|
-
};
|
|
10
7
|
export declare const TOASTER_LIFETIME = 5000;
|
|
11
8
|
export declare const swapModeToSpender: Record<SwapMode, SpenderContractType>;
|
|
12
9
|
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,
|
|
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"}
|
package/dist/core/constants.js
CHANGED
|
@@ -6,9 +6,6 @@ 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
|
-
};
|
|
12
9
|
const TOASTER_LIFETIME = 5e3;
|
|
13
10
|
const swapModeToSpender = {
|
|
14
11
|
market: "AugustusSwapper",
|
|
@@ -21,5 +18,5 @@ const defaults = {
|
|
|
21
18
|
// add more defaults here as needed
|
|
22
19
|
};
|
|
23
20
|
|
|
24
|
-
export {
|
|
21
|
+
export { DRAWER_HEIGHT, TOASTER_LIFETIME, WIDGET_ELEMENT_ID, WIDGET_HEIGHT_CLASSNAME, WIDGET_MIN_HEIGHT_CLASSNAME, defaults, swapModeToSpender };
|
|
25
22
|
//# 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
|
|
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;;;;"}
|
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;AA2U3C,eAAO,MAAM,MAAM,GAAI,qCAAqC,WAAW,4CAatE,CAAC"}
|
package/dist/core/index.js
CHANGED
|
@@ -64,7 +64,6 @@ 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';
|
|
68
67
|
import { useLimitReceiverAddress } from './limit/state/receiverAddressAtom.js';
|
|
69
68
|
import { isBridgePrice } from '../hooks/swap/prices/delta/queries/useDeltaPriceQuery.js';
|
|
70
69
|
import { BridgeSelectorExpandable } from '../components/widget/BridgeSelectorExpandable/BridgeSelectorExpandable.js';
|
|
@@ -279,7 +278,7 @@ const App = () => {
|
|
|
279
278
|
return t2;
|
|
280
279
|
};
|
|
281
280
|
const WidgetBase = (t0) => {
|
|
282
|
-
const $ = distExports.c(
|
|
281
|
+
const $ = distExports.c(71);
|
|
283
282
|
const {
|
|
284
283
|
config: _config,
|
|
285
284
|
provider,
|
|
@@ -301,7 +300,6 @@ const WidgetBase = (t0) => {
|
|
|
301
300
|
let destChains;
|
|
302
301
|
let devURLs;
|
|
303
302
|
let excludeUI;
|
|
304
|
-
let partnerConfig;
|
|
305
303
|
let srcChains;
|
|
306
304
|
let tokenLists;
|
|
307
305
|
let tradeModes;
|
|
@@ -313,7 +311,6 @@ const WidgetBase = (t0) => {
|
|
|
313
311
|
tradeModes,
|
|
314
312
|
excludeUI,
|
|
315
313
|
devURLs,
|
|
316
|
-
partnerConfig,
|
|
317
314
|
...config
|
|
318
315
|
} = t1);
|
|
319
316
|
$[2] = t1;
|
|
@@ -321,33 +318,31 @@ const WidgetBase = (t0) => {
|
|
|
321
318
|
$[4] = destChains;
|
|
322
319
|
$[5] = devURLs;
|
|
323
320
|
$[6] = excludeUI;
|
|
324
|
-
$[7] =
|
|
325
|
-
$[8] =
|
|
326
|
-
$[9] =
|
|
327
|
-
$[10] = tradeModes;
|
|
321
|
+
$[7] = srcChains;
|
|
322
|
+
$[8] = tokenLists;
|
|
323
|
+
$[9] = tradeModes;
|
|
328
324
|
} else {
|
|
329
325
|
config = $[3];
|
|
330
326
|
destChains = $[4];
|
|
331
327
|
devURLs = $[5];
|
|
332
328
|
excludeUI = $[6];
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
tradeModes = $[10];
|
|
329
|
+
srcChains = $[7];
|
|
330
|
+
tokenLists = $[8];
|
|
331
|
+
tradeModes = $[9];
|
|
337
332
|
}
|
|
338
333
|
let t2;
|
|
339
|
-
if ($[
|
|
334
|
+
if ($[10] !== config) {
|
|
340
335
|
t2 = [setWidgetConfigAtom, {
|
|
341
336
|
...defaultWidgetConfig,
|
|
342
337
|
...config
|
|
343
338
|
}];
|
|
344
|
-
$[
|
|
345
|
-
$[
|
|
339
|
+
$[10] = config;
|
|
340
|
+
$[11] = t2;
|
|
346
341
|
} else {
|
|
347
|
-
t2 = $[
|
|
342
|
+
t2 = $[11];
|
|
348
343
|
}
|
|
349
344
|
let t3;
|
|
350
|
-
if ($[
|
|
345
|
+
if ($[12] !== destChains || $[13] !== devURLs || $[14] !== excludeUI || $[15] !== srcChains || $[16] !== tokenLists || $[17] !== tradeModes) {
|
|
351
346
|
t3 = [setSubConfigAtom, {
|
|
352
347
|
...defaultSubConfig,
|
|
353
348
|
srcChains,
|
|
@@ -355,102 +350,101 @@ const WidgetBase = (t0) => {
|
|
|
355
350
|
tokenLists,
|
|
356
351
|
tradeModes,
|
|
357
352
|
excludeUI,
|
|
358
|
-
devURLs
|
|
359
|
-
partnerConfig
|
|
353
|
+
devURLs
|
|
360
354
|
}];
|
|
361
|
-
$[
|
|
362
|
-
$[
|
|
363
|
-
$[
|
|
364
|
-
$[
|
|
365
|
-
$[
|
|
366
|
-
$[
|
|
367
|
-
$[
|
|
368
|
-
$[20] = t3;
|
|
355
|
+
$[12] = destChains;
|
|
356
|
+
$[13] = devURLs;
|
|
357
|
+
$[14] = excludeUI;
|
|
358
|
+
$[15] = srcChains;
|
|
359
|
+
$[16] = tokenLists;
|
|
360
|
+
$[17] = tradeModes;
|
|
361
|
+
$[18] = t3;
|
|
369
362
|
} else {
|
|
370
|
-
t3 = $[
|
|
363
|
+
t3 = $[18];
|
|
371
364
|
}
|
|
372
365
|
const t4 = provider || null;
|
|
373
366
|
let t5;
|
|
374
|
-
if ($[
|
|
367
|
+
if ($[19] !== t4) {
|
|
375
368
|
t5 = [externalProviderAtom, t4];
|
|
376
|
-
$[
|
|
377
|
-
$[
|
|
369
|
+
$[19] = t4;
|
|
370
|
+
$[20] = t5;
|
|
378
371
|
} else {
|
|
379
|
-
t5 = $[
|
|
372
|
+
t5 = $[20];
|
|
380
373
|
}
|
|
381
374
|
let t6;
|
|
382
|
-
if ($[
|
|
375
|
+
if ($[21] !== events) {
|
|
383
376
|
t6 = events || {};
|
|
384
|
-
$[
|
|
385
|
-
$[
|
|
377
|
+
$[21] = events;
|
|
378
|
+
$[22] = t6;
|
|
386
379
|
} else {
|
|
387
|
-
t6 = $[
|
|
380
|
+
t6 = $[22];
|
|
388
381
|
}
|
|
389
382
|
let t7;
|
|
390
|
-
if ($[
|
|
383
|
+
if ($[23] !== t6) {
|
|
391
384
|
t7 = [widgetEventsAtom, t6];
|
|
392
|
-
$[
|
|
393
|
-
$[
|
|
385
|
+
$[23] = t6;
|
|
386
|
+
$[24] = t7;
|
|
394
387
|
} else {
|
|
395
|
-
t7 = $[
|
|
388
|
+
t7 = $[24];
|
|
396
389
|
}
|
|
397
390
|
let t8;
|
|
398
|
-
if ($[
|
|
391
|
+
if ($[25] !== formInputProps) {
|
|
399
392
|
t8 = formInputProps || {};
|
|
400
|
-
$[
|
|
401
|
-
$[
|
|
393
|
+
$[25] = formInputProps;
|
|
394
|
+
$[26] = t8;
|
|
402
395
|
} else {
|
|
403
|
-
t8 = $[
|
|
396
|
+
t8 = $[26];
|
|
404
397
|
}
|
|
405
398
|
let t9;
|
|
406
|
-
if ($[
|
|
399
|
+
if ($[27] !== t8) {
|
|
407
400
|
t9 = [formInputPropsAtom, t8];
|
|
408
|
-
$[
|
|
409
|
-
$[
|
|
401
|
+
$[27] = t8;
|
|
402
|
+
$[28] = t9;
|
|
410
403
|
} else {
|
|
411
|
-
t9 = $[
|
|
404
|
+
t9 = $[28];
|
|
412
405
|
}
|
|
413
406
|
let t10;
|
|
414
|
-
if ($[
|
|
407
|
+
if ($[29] !== queryClient) {
|
|
415
408
|
t10 = [queryClientAtom, queryClient];
|
|
416
|
-
$[
|
|
417
|
-
$[
|
|
409
|
+
$[29] = queryClient;
|
|
410
|
+
$[30] = t10;
|
|
418
411
|
} else {
|
|
419
|
-
t10 = $[
|
|
412
|
+
t10 = $[30];
|
|
420
413
|
}
|
|
421
414
|
let t11;
|
|
422
|
-
if ($[
|
|
415
|
+
if ($[31] !== t10 || $[32] !== t2 || $[33] !== t3 || $[34] !== t5 || $[35] !== t7 || $[36] !== t9) {
|
|
423
416
|
t11 = [t2, t3, t5, t7, t9, t10];
|
|
424
|
-
$[
|
|
425
|
-
$[
|
|
426
|
-
$[
|
|
427
|
-
$[
|
|
428
|
-
$[
|
|
429
|
-
$[
|
|
430
|
-
$[
|
|
417
|
+
$[31] = t10;
|
|
418
|
+
$[32] = t2;
|
|
419
|
+
$[33] = t3;
|
|
420
|
+
$[34] = t5;
|
|
421
|
+
$[35] = t7;
|
|
422
|
+
$[36] = t9;
|
|
423
|
+
$[37] = t11;
|
|
431
424
|
} else {
|
|
432
|
-
t11 = $[
|
|
425
|
+
t11 = $[37];
|
|
433
426
|
}
|
|
434
427
|
let t12;
|
|
435
|
-
if ($[
|
|
428
|
+
if ($[38] === Symbol.for("react.memo_cache_sentinel")) {
|
|
436
429
|
t12 = {
|
|
437
430
|
store: jotaiStore
|
|
438
431
|
};
|
|
439
|
-
$[
|
|
432
|
+
$[38] = t12;
|
|
440
433
|
} else {
|
|
441
|
-
t12 = $[
|
|
434
|
+
t12 = $[38];
|
|
442
435
|
}
|
|
443
436
|
useHydrateAtoms(t11, t12);
|
|
444
437
|
useWidgetEventsSetter(events);
|
|
445
438
|
useSetFormInputFromProps(formInputProps);
|
|
446
439
|
let t13;
|
|
447
440
|
let t14;
|
|
448
|
-
if ($[
|
|
441
|
+
if ($[39] !== config.debug || $[40] !== config.enableCrossChain || $[41] !== config.enableDelta || $[42] !== config.ignoreBadUsdPrice || $[43] !== config.partner || $[44] !== config.privyAppId || $[45] !== config.privyClientId || $[46] !== config.theme || $[47] !== config.widgetMode || $[48] !== setWidgetConfig) {
|
|
449
442
|
t13 = () => {
|
|
450
443
|
setWidgetConfig({
|
|
451
444
|
theme: config.theme,
|
|
452
445
|
enableDelta: config.enableDelta,
|
|
453
446
|
enableCrossChain: config.enableCrossChain,
|
|
447
|
+
partner: config.partner,
|
|
454
448
|
privyAppId: config.privyAppId,
|
|
455
449
|
privyClientId: config.privyClientId,
|
|
456
450
|
debug: config.debug,
|
|
@@ -458,26 +452,27 @@ const WidgetBase = (t0) => {
|
|
|
458
452
|
ignoreBadUsdPrice: config.ignoreBadUsdPrice
|
|
459
453
|
});
|
|
460
454
|
};
|
|
461
|
-
t14 = [config.theme, config.enableDelta, config.enableCrossChain, config.privyAppId, config.privyClientId, config.debug, config.widgetMode, config.ignoreBadUsdPrice, setWidgetConfig];
|
|
462
|
-
$[
|
|
463
|
-
$[
|
|
464
|
-
$[
|
|
465
|
-
$[
|
|
466
|
-
$[
|
|
467
|
-
$[
|
|
468
|
-
$[
|
|
469
|
-
$[
|
|
470
|
-
$[
|
|
471
|
-
$[
|
|
472
|
-
$[
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
455
|
+
t14 = [config.theme, config.enableDelta, config.enableCrossChain, config.partner, config.privyAppId, config.privyClientId, config.debug, config.widgetMode, config.ignoreBadUsdPrice, setWidgetConfig];
|
|
456
|
+
$[39] = config.debug;
|
|
457
|
+
$[40] = config.enableCrossChain;
|
|
458
|
+
$[41] = config.enableDelta;
|
|
459
|
+
$[42] = config.ignoreBadUsdPrice;
|
|
460
|
+
$[43] = config.partner;
|
|
461
|
+
$[44] = config.privyAppId;
|
|
462
|
+
$[45] = config.privyClientId;
|
|
463
|
+
$[46] = config.theme;
|
|
464
|
+
$[47] = config.widgetMode;
|
|
465
|
+
$[48] = setWidgetConfig;
|
|
466
|
+
$[49] = t13;
|
|
467
|
+
$[50] = t14;
|
|
468
|
+
} else {
|
|
469
|
+
t13 = $[49];
|
|
470
|
+
t14 = $[50];
|
|
476
471
|
}
|
|
477
472
|
useLayoutEffect(t13, t14);
|
|
478
473
|
let t15;
|
|
479
474
|
let t16;
|
|
480
|
-
if ($[
|
|
475
|
+
if ($[51] !== destChains || $[52] !== devURLs || $[53] !== excludeUI || $[54] !== setSubConfig || $[55] !== srcChains || $[56] !== tokenLists || $[57] !== tradeModes) {
|
|
481
476
|
t15 = () => {
|
|
482
477
|
setSubConfig({
|
|
483
478
|
srcChains,
|
|
@@ -485,41 +480,39 @@ const WidgetBase = (t0) => {
|
|
|
485
480
|
tokenLists,
|
|
486
481
|
tradeModes,
|
|
487
482
|
excludeUI,
|
|
488
|
-
devURLs
|
|
489
|
-
partnerConfig
|
|
483
|
+
devURLs
|
|
490
484
|
});
|
|
491
485
|
};
|
|
492
|
-
t16 = [srcChains, destChains, tokenLists, setSubConfig, tradeModes, excludeUI, devURLs
|
|
493
|
-
$[
|
|
494
|
-
$[
|
|
495
|
-
$[
|
|
496
|
-
$[
|
|
497
|
-
$[
|
|
498
|
-
$[
|
|
499
|
-
$[
|
|
500
|
-
$[
|
|
501
|
-
$[
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
t16 = $[61];
|
|
486
|
+
t16 = [srcChains, destChains, tokenLists, setSubConfig, tradeModes, excludeUI, devURLs];
|
|
487
|
+
$[51] = destChains;
|
|
488
|
+
$[52] = devURLs;
|
|
489
|
+
$[53] = excludeUI;
|
|
490
|
+
$[54] = setSubConfig;
|
|
491
|
+
$[55] = srcChains;
|
|
492
|
+
$[56] = tokenLists;
|
|
493
|
+
$[57] = tradeModes;
|
|
494
|
+
$[58] = t15;
|
|
495
|
+
$[59] = t16;
|
|
496
|
+
} else {
|
|
497
|
+
t15 = $[58];
|
|
498
|
+
t16 = $[59];
|
|
506
499
|
}
|
|
507
500
|
useLayoutEffect(t15, t16);
|
|
508
501
|
const setExternalProvider = useSetAtom(externalProviderAtom);
|
|
509
502
|
let t17;
|
|
510
503
|
let t18;
|
|
511
|
-
if ($[
|
|
504
|
+
if ($[60] !== provider || $[61] !== setExternalProvider) {
|
|
512
505
|
t17 = () => {
|
|
513
506
|
setExternalProvider(provider || null);
|
|
514
507
|
};
|
|
515
508
|
t18 = [provider, setExternalProvider];
|
|
516
|
-
$[
|
|
517
|
-
$[
|
|
518
|
-
$[
|
|
519
|
-
$[
|
|
509
|
+
$[60] = provider;
|
|
510
|
+
$[61] = setExternalProvider;
|
|
511
|
+
$[62] = t17;
|
|
512
|
+
$[63] = t18;
|
|
520
513
|
} else {
|
|
521
|
-
t17 = $[
|
|
522
|
-
t18 = $[
|
|
514
|
+
t17 = $[62];
|
|
515
|
+
t18 = $[63];
|
|
523
516
|
}
|
|
524
517
|
useLayoutEffect(t17, t18);
|
|
525
518
|
const isDappMode = config?.widgetMode === "dapp";
|
|
@@ -529,26 +522,26 @@ const WidgetBase = (t0) => {
|
|
|
529
522
|
let t21;
|
|
530
523
|
let t22;
|
|
531
524
|
let t23;
|
|
532
|
-
if ($[
|
|
525
|
+
if ($[64] === Symbol.for("react.memo_cache_sentinel")) {
|
|
533
526
|
t19 = /* @__PURE__ */ jsx(AutoconnectExternalProvider, {});
|
|
534
527
|
t20 = /* @__PURE__ */ jsx(PrivyIframeDependency, {});
|
|
535
528
|
t21 = /* @__PURE__ */ jsx(Updaters, {});
|
|
536
529
|
t22 = /* @__PURE__ */ jsx(App, {});
|
|
537
530
|
t23 = false;
|
|
538
|
-
$[
|
|
539
|
-
$[
|
|
540
|
-
$[
|
|
541
|
-
$[
|
|
542
|
-
$[
|
|
543
|
-
} else {
|
|
544
|
-
t19 = $[
|
|
545
|
-
t20 = $[
|
|
546
|
-
t21 = $[
|
|
547
|
-
t22 = $[
|
|
548
|
-
t23 = $[
|
|
531
|
+
$[64] = t19;
|
|
532
|
+
$[65] = t20;
|
|
533
|
+
$[66] = t21;
|
|
534
|
+
$[67] = t22;
|
|
535
|
+
$[68] = t23;
|
|
536
|
+
} else {
|
|
537
|
+
t19 = $[64];
|
|
538
|
+
t20 = $[65];
|
|
539
|
+
t21 = $[66];
|
|
540
|
+
t22 = $[67];
|
|
541
|
+
t23 = $[68];
|
|
549
542
|
}
|
|
550
543
|
let t24;
|
|
551
|
-
if ($[
|
|
544
|
+
if ($[69] !== reconnectOnMountInit) {
|
|
552
545
|
t24 = /* @__PURE__ */ jsxs(Web3Providers, { reconnectOnMount: reconnectOnMountInit, children: [
|
|
553
546
|
t19,
|
|
554
547
|
t20,
|
|
@@ -556,10 +549,10 @@ const WidgetBase = (t0) => {
|
|
|
556
549
|
t22,
|
|
557
550
|
t23
|
|
558
551
|
] });
|
|
559
|
-
$[
|
|
560
|
-
$[
|
|
552
|
+
$[69] = reconnectOnMountInit;
|
|
553
|
+
$[70] = t24;
|
|
561
554
|
} else {
|
|
562
|
-
t24 = $[
|
|
555
|
+
t24 = $[70];
|
|
563
556
|
}
|
|
564
557
|
return t24;
|
|
565
558
|
};
|
|
@@ -592,7 +585,6 @@ function Containers(t0) {
|
|
|
592
585
|
const setContainerElement = useSetAtom(containerAtom);
|
|
593
586
|
const containerRef = useRef(null);
|
|
594
587
|
useCloseScreenOnClickOutside(containerRef);
|
|
595
|
-
useResizeObserver(containerRef);
|
|
596
588
|
const widgetConfig = useWidgetConfig();
|
|
597
589
|
const {
|
|
598
590
|
isDrawerFullCover,
|