@rango-dev/widget-embedded 0.63.1-next.7 → 0.63.1-next.9
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/ConfirmWalletsModal/ConfirmWallets.styles.d.ts +1 -1
- package/dist/components/ConfirmWalletsModal/ConfirmWallets.styles.d.ts.map +1 -1
- package/dist/components/CustomDestination/CustomDestination.styles.d.ts +4 -4
- package/dist/components/CustomDestination/CustomDestination.styles.d.ts.map +1 -1
- package/dist/components/CustomTokenModal/CustomTokenModal.styles.d.ts +169 -169
- package/dist/components/CustomTokenModal/CustomTokenModal.styles.d.ts.map +1 -1
- package/dist/components/FilterSelector/FilterSelector.style.d.ts +1 -1
- package/dist/components/FilterSelector/FilterSelector.style.d.ts.map +1 -1
- package/dist/components/HeaderButtons/HeaderButtons.styles.d.ts +1 -1
- package/dist/components/HeaderButtons/HeaderButtons.styles.d.ts.map +1 -1
- package/dist/components/NamespaceItem/NamespaceItem.styles.d.ts +1 -1
- package/dist/components/NamespaceItem/NamespaceItem.styles.d.ts.map +1 -1
- package/dist/components/NamespaceItem/NamespaceItem.types.d.ts +3 -3
- package/dist/components/NamespaceItem/NamespaceItem.types.d.ts.map +1 -1
- package/dist/components/Quote/Quote.styles.d.ts +171 -171
- package/dist/components/Quote/Quote.styles.d.ts.map +1 -1
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.styles.d.ts +169 -169
- package/dist/components/QuoteWarningsAndErrors/QuoteWarningsAndErrors.styles.d.ts.map +1 -1
- package/dist/components/RefreshModal/RefreshModal.styles.d.ts +168 -168
- package/dist/components/RefreshModal/RefreshModal.styles.d.ts.map +1 -1
- package/dist/components/SwapDetails/SwapDetails.styles.d.ts +1 -1
- package/dist/components/SwapDetails/SwapDetails.styles.d.ts.map +1 -1
- package/dist/components/SwapDetailsModal/SwapDetailsModal.ConnectWallet.d.ts.map +1 -1
- package/dist/components/SwapDetailsModal/SwapDetailsModal.types.d.ts +3 -3
- package/dist/components/SwapDetailsModal/SwapDetailsModal.types.d.ts.map +1 -1
- package/dist/components/SwapMetrics/SwapMetrics.styles.d.ts +1 -1
- package/dist/components/SwapMetrics/SwapMetrics.styles.d.ts.map +1 -1
- package/dist/components/TokenList/TokenList.styles.d.ts +2 -2
- package/dist/components/TokenList/TokenList.styles.d.ts.map +1 -1
- package/dist/components/WalletStatefulConnect/DerivationPath.styles.d.ts +169 -169
- package/dist/components/WalletStatefulConnect/DerivationPath.styles.d.ts.map +1 -1
- package/dist/components/WalletStatefulConnect/Namespaces.d.ts.map +1 -1
- package/dist/components/WalletStatefulConnect/Namespaces.styles.d.ts +168 -168
- package/dist/components/WalletStatefulConnect/Namespaces.styles.d.ts.map +1 -1
- package/dist/components/WalletStatefulConnect/Namespaces.types.d.ts +3 -3
- package/dist/components/WalletStatefulConnect/Namespaces.types.d.ts.map +1 -1
- package/dist/containers/Wallets/Wallets.helpers.d.ts +2 -2
- package/dist/containers/Wallets/Wallets.helpers.d.ts.map +1 -1
- package/dist/containers/Wallets/Wallets.types.d.ts +4 -4
- package/dist/containers/Wallets/Wallets.types.d.ts.map +1 -1
- package/dist/containers/Wallets/useUpdates.d.ts +1 -1
- package/dist/containers/Wallets/useUpdates.d.ts.map +1 -1
- package/dist/containers/WidgetProvider/WidgetProvider.d.ts.map +1 -1
- package/dist/containers/WidgetProvider/WidgetProvider.helpers.d.ts +5 -0
- package/dist/containers/WidgetProvider/WidgetProvider.helpers.d.ts.map +1 -0
- package/dist/containers/WidgetProvider/WidgetProvider.types.d.ts +1 -1
- package/dist/containers/WidgetProvider/WidgetProvider.types.d.ts.map +1 -1
- package/dist/hooks/useStatefulConnect/useStatefulConnect.d.ts.map +1 -1
- package/dist/hooks/useWalletProviders/useWalletProviders.d.ts +2 -2
- package/dist/hooks/useWalletProviders/useWalletProviders.d.ts.map +1 -1
- package/dist/hooks/useWalletProviders/useWalletProviders.helpers.d.ts +2 -3
- package/dist/hooks/useWalletProviders/useWalletProviders.helpers.d.ts.map +1 -1
- package/dist/index.d.ts +10 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +4 -4
- package/dist/store/AppStore.d.ts +2 -2
- package/dist/store/AppStore.d.ts.map +1 -1
- package/dist/store/app.d.ts +2 -2
- package/dist/store/app.d.ts.map +1 -1
- package/dist/store/slices/config.d.ts +5 -5
- package/dist/store/slices/config.d.ts.map +1 -1
- package/dist/test-utils/fixtures.d.ts +2 -2
- package/dist/test-utils/fixtures.d.ts.map +1 -1
- package/dist/types/config.d.ts +10 -3
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/wallets.d.ts +1 -1
- package/dist/types/wallets.d.ts.map +1 -1
- package/dist/utils/providers.d.ts +3 -6
- package/dist/utils/providers.d.ts.map +1 -1
- package/dist/utils/swap.d.ts +1 -1
- package/dist/utils/swap.d.ts.map +1 -1
- package/dist/utils/wallets.d.ts +2 -1
- package/dist/utils/wallets.d.ts.map +1 -1
- package/package.json +7 -8
- package/src/QueueManager.tsx +1 -1
- package/src/components/NamespaceItem/NamespaceItem.types.ts +3 -3
- package/src/components/SwapDetailsModal/SwapDetailsModal.ConnectWallet.tsx +5 -10
- package/src/components/SwapDetailsModal/SwapDetailsModal.types.ts +3 -3
- package/src/components/TokenList/LoadingTokenList.tsx +2 -2
- package/src/components/WalletStatefulConnect/Detached.tsx +2 -2
- package/src/components/WalletStatefulConnect/Namespaces.tsx +2 -7
- package/src/components/WalletStatefulConnect/Namespaces.types.tsx +3 -3
- package/src/containers/Wallets/Wallets.helpers.ts +4 -4
- package/src/containers/Wallets/Wallets.tsx +2 -2
- package/src/containers/Wallets/Wallets.types.ts +4 -7
- package/src/containers/Wallets/useUpdates.ts +4 -119
- package/src/containers/WidgetProvider/WidgetProvider.helpers.ts +10 -0
- package/src/containers/WidgetProvider/WidgetProvider.tsx +12 -1
- package/src/containers/WidgetProvider/WidgetProvider.types.ts +1 -1
- package/src/hooks/useStatefulConnect/useStatefulConnect.ts +16 -21
- package/src/hooks/useWalletProviders/useWalletProviders.helpers.ts +3 -10
- package/src/hooks/useWalletProviders/useWalletProviders.ts +2 -2
- package/src/index.ts +12 -10
- package/src/store/AppStore.tsx +4 -2
- package/src/store/app.ts +7 -2
- package/src/store/slices/config.ts +16 -8
- package/src/store/slices/data.test.ts +2 -2
- package/src/test-utils/fixtures.ts +6 -2
- package/src/types/config.ts +15 -6
- package/src/types/wallets.ts +1 -1
- package/src/utils/providers.ts +16 -50
- package/src/utils/swap.ts +1 -1
- package/src/utils/wallets.ts +5 -9
package/dist/index.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import type { WidgetProps } from './containers/Widget';
|
|
|
2
2
|
import type { UseStatefulConnect } from './hooks/useStatefulConnect';
|
|
3
3
|
import type { ConnectedWallet } from './store/slices/wallets';
|
|
4
4
|
import type { BlockchainAndTokenConfig, QuoteEventData, Tokens, UiEventData, WalletEventData, WalletInfoWithExtra, WidgetColors, WidgetColorsKeys, WidgetConfig, WidgetTheme, WidgetVariant } from './types';
|
|
5
|
+
import type { WalletType } from '@hub3js/core';
|
|
5
6
|
import type { PendingSwapWithQueueID, Route, RouteEvent, RouteEventData, RouteExecutionEvents, RouteFailedEvent, RouteStartedEvent, RouteSucceededEvent, Step, StepApprovalTxSucceededEvent, StepCheckStatusEvent, StepEvent, StepEventData, StepFailedEvent, StepOutputRevealedEvent, StepStartedEvent, StepSucceededEvent, StepTxExecutionBlockedEvent, StepTxExecutionUpdatedEvent } from '@rango-dev/queue-manager-rango-preset';
|
|
6
|
-
import type {
|
|
7
|
+
import type { EventHandler as HandleWalletsUpdate, ProviderInterface, WalletInfo, WalletState } from '@rango-dev/wallets-react';
|
|
7
8
|
import type { PendingSwap, PendingSwapStep } from 'rango-types';
|
|
8
|
-
import { Networks } from '@rango-dev/internal-blockchains';
|
|
9
|
+
import { Networks, readAccountAddress } from '@rango-dev/internal-blockchains';
|
|
9
10
|
import { EventSeverity, RouteEventType, StepEventType, StepExecutionBlockedEventStatus, StepExecutionEventStatus } from '@rango-dev/queue-manager-rango-preset';
|
|
10
|
-
import { legacyReadAccountAddress as readAccountAddress } from '@rango-dev/wallets-core/legacy';
|
|
11
11
|
import { useWallets, Events as WalletEvents } from '@rango-dev/wallets-react';
|
|
12
12
|
import { PendingSwapNetworkStatus } from 'rango-types';
|
|
13
13
|
import { isOnDerivationPath, isOnDetached, isOnNamespace } from './components/StatefulConnectModal';
|
|
@@ -25,7 +25,7 @@ import { useWalletList } from './hooks/useWalletList';
|
|
|
25
25
|
import { useWidgetEvents } from './hooks/useWidgetEvents';
|
|
26
26
|
import { widgetEventEmitter } from './services/eventEmitter';
|
|
27
27
|
import { WidgetEvents as MainEvents, QuoteEventTypes, UiEventTypes, WalletEventTypes, WidgetEvents } from './types';
|
|
28
|
-
import {
|
|
28
|
+
import { pickProviderVersion } from './utils/providers';
|
|
29
29
|
import { customizedThemeTokens } from './utils/ui';
|
|
30
30
|
export declare const StatefulConnect: {
|
|
31
31
|
DerivationPath: typeof DerivationPath;
|
|
@@ -35,7 +35,11 @@ export declare const StatefulConnect: {
|
|
|
35
35
|
isOnNamespace: typeof isOnNamespace;
|
|
36
36
|
isOnDetached: typeof isOnDetached;
|
|
37
37
|
};
|
|
38
|
-
export type { WidgetConfig, WalletType, WidgetTheme, WidgetColors, WidgetColorsKeys,
|
|
38
|
+
export type { WidgetConfig, WalletType, WidgetTheme, WidgetColors, WidgetColorsKeys,
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated Pass a hub `Provider` instead. This type will be removed in future versions.
|
|
41
|
+
*/
|
|
42
|
+
ProviderInterface, BlockchainAndTokenConfig, WidgetProps, RouteEvent, RouteEventData, StepEvent, StepEventData, Route, Step, RouteStartedEvent, RouteSucceededEvent, RouteFailedEvent, StepStartedEvent, StepSucceededEvent, StepFailedEvent, StepTxExecutionUpdatedEvent, StepTxExecutionBlockedEvent, StepCheckStatusEvent, StepApprovalTxSucceededEvent, StepOutputRevealedEvent, HandleWalletsUpdate, ConnectedWallet, Tokens, WidgetVariant, WalletEventData, QuoteEventData, UiEventData, WalletInfoWithExtra, UseStatefulConnect, };
|
|
39
43
|
export { Widget, Refuel, SwapModeContext,
|
|
40
44
|
/**
|
|
41
45
|
* @deprecated Use `WidgetProvider` instead. This component will be removed in future versions.
|
|
@@ -50,5 +54,5 @@ useWidgetEvents, useWalletList, customizedThemeTokens, widgetEventEmitter, Widge
|
|
|
50
54
|
*/
|
|
51
55
|
MainEvents, QuoteEventTypes, WalletEventTypes, UiEventTypes, RouteEventType, StepEventType, StepExecutionEventStatus, StepExecutionBlockedEventStatus, UI_ID, SUPPORTED_FONTS, };
|
|
52
56
|
export type { WalletState, WalletInfo, PendingSwap, PendingSwapWithQueueID, PendingSwapStep, RouteExecutionEvents, };
|
|
53
|
-
export { readAccountAddress,
|
|
57
|
+
export { readAccountAddress, pickProviderVersion, Networks, WalletEvents, PendingSwapNetworkStatus, EventSeverity, };
|
|
54
58
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EACV,wBAAwB,EACxB,cAAc,EACd,MAAM,EACN,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,aAAa,EACd,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EACV,sBAAsB,EACtB,KAAK,EACL,UAAU,EACV,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,IAAI,EACJ,4BAA4B,EA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