@rango-dev/widget-embedded 0.0.0-experimental-d66900c7-20260708 → 0.0.0-experimental-99f1781b-20260920
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/CHANGELOG.md +47 -0
- package/dist/QueueManager.d.ts.map +1 -1
- 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.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.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/Quote/Quote.types.d.ts +0 -2
- package/dist/components/Quote/Quote.types.d.ts.map +1 -1
- package/dist/components/Quote/QuoteCostDetails.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/StatefulConnectModal/StatefulConnectModal.d.ts +2 -1
- package/dist/components/StatefulConnectModal/StatefulConnectModal.d.ts.map +1 -1
- package/dist/components/SwapDetails/SwapDetails.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.InstallWallet.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.d.ts.map +1 -1
- package/dist/components/WalletStatefulConnect/DerivationPath.helpers.d.ts +7 -3
- package/dist/components/WalletStatefulConnect/DerivationPath.helpers.d.ts.map +1 -1
- package/dist/components/WalletStatefulConnect/DerivationPath.helpers.test.d.ts +2 -0
- package/dist/components/WalletStatefulConnect/DerivationPath.helpers.test.d.ts.map +1 -0
- 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/Detached.d.ts.map +1 -1
- package/dist/components/WalletStatefulConnect/Detached.types.d.ts +2 -1
- package/dist/components/WalletStatefulConnect/Detached.types.d.ts.map +1 -1
- package/dist/components/WalletStatefulConnect/NamespaceDetachedItem.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/constants/errors.d.ts +1 -0
- package/dist/constants/errors.d.ts.map +1 -1
- package/dist/containers/Wallets/Wallets.constants.d.ts +3 -0
- package/dist/containers/Wallets/Wallets.constants.d.ts.map +1 -0
- package/dist/containers/Wallets/Wallets.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.helpers.test.d.ts +2 -0
- package/dist/containers/Wallets/Wallets.helpers.test.d.ts.map +1 -0
- package/dist/containers/Wallets/Wallets.types.d.ts +6 -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/useConnectWithLogging/index.d.ts +2 -0
- package/dist/hooks/useConnectWithLogging/index.d.ts.map +1 -0
- package/dist/hooks/useConnectWithLogging/useConnectWithLogging.d.ts +11 -0
- package/dist/hooks/useConnectWithLogging/useConnectWithLogging.d.ts.map +1 -0
- package/dist/hooks/useConnectWithLogging/useConnectWithLogging.test.d.ts +2 -0
- package/dist/hooks/useConnectWithLogging/useConnectWithLogging.test.d.ts.map +1 -0
- package/dist/hooks/useStatefulConnect/useStatefulConnect.d.ts +2 -1
- package/dist/hooks/useStatefulConnect/useStatefulConnect.d.ts.map +1 -1
- package/dist/hooks/useStatefulConnect/useStatefulConnect.types.d.ts +5 -4
- package/dist/hooks/useStatefulConnect/useStatefulConnect.types.d.ts.map +1 -1
- package/dist/hooks/useWalletList.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 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +4 -4
- package/dist/libs/connectLogging/connectLogging.constants.d.ts +9 -0
- package/dist/libs/connectLogging/connectLogging.constants.d.ts.map +1 -0
- package/dist/libs/connectLogging/connectLogging.d.ts +12 -0
- package/dist/libs/connectLogging/connectLogging.d.ts.map +1 -0
- package/dist/libs/connectLogging/connectLogging.test.d.ts +2 -0
- package/dist/libs/connectLogging/connectLogging.test.d.ts.map +1 -0
- package/dist/libs/connectLogging/connectLogging.types.d.ts +57 -0
- package/dist/libs/connectLogging/connectLogging.types.d.ts.map +1 -0
- package/dist/libs/connectLogging/index.d.ts +3 -0
- package/dist/libs/connectLogging/index.d.ts.map +1 -0
- package/dist/pages/WalletsPage.d.ts.map +1 -1
- 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 +25 -4
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/event.d.ts +1 -1
- package/dist/types/event.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/common.d.ts +1 -0
- package/dist/utils/common.d.ts.map +1 -1
- package/dist/utils/errors.d.ts +14 -0
- package/dist/utils/errors.d.ts.map +1 -0
- package/dist/utils/errors.test.d.ts +2 -0
- package/dist/utils/errors.test.d.ts.map +1 -0
- 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 +16 -16
- package/src/QueueManager.tsx +17 -16
- package/src/components/ConfirmWalletsModal/WalletList.tsx +2 -2
- package/src/components/NamespaceItem/NamespaceItem.styles.ts +1 -0
- package/src/components/NamespaceItem/NamespaceItem.tsx +5 -1
- package/src/components/NamespaceItem/NamespaceItem.types.ts +3 -3
- package/src/components/Quote/Quote.tsx +0 -2
- package/src/components/Quote/Quote.types.ts +0 -2
- package/src/components/Quote/QuoteCostDetails.tsx +15 -4
- package/src/components/StatefulConnectModal/StatefulConnectModal.tsx +4 -2
- package/src/components/SwapDetails/SwapDetails.tsx +17 -8
- package/src/components/SwapDetailsModal/SwapDetailsModal.ConnectWallet.tsx +12 -13
- package/src/components/SwapDetailsModal/SwapDetailsModal.InstallWallet.tsx +8 -2
- package/src/components/SwapDetailsModal/SwapDetailsModal.types.ts +3 -3
- package/src/components/TokenList/LoadingTokenList.tsx +2 -2
- package/src/components/WalletStatefulConnect/DerivationPath.helpers.test.ts +98 -0
- package/src/components/WalletStatefulConnect/DerivationPath.helpers.ts +14 -10
- package/src/components/WalletStatefulConnect/DerivationPath.tsx +14 -7
- package/src/components/WalletStatefulConnect/Detached.tsx +17 -10
- package/src/components/WalletStatefulConnect/Detached.types.ts +2 -1
- package/src/components/WalletStatefulConnect/NamespaceDetachedItem.tsx +2 -1
- package/src/components/WalletStatefulConnect/Namespaces.tsx +6 -12
- package/src/components/WalletStatefulConnect/Namespaces.types.tsx +3 -3
- package/src/constants/errors.ts +3 -0
- package/src/containers/Wallets/Wallets.constants.ts +14 -0
- package/src/containers/Wallets/Wallets.helpers.test.ts +67 -0
- package/src/containers/Wallets/Wallets.helpers.ts +9 -9
- package/src/containers/Wallets/Wallets.tsx +20 -3
- package/src/containers/Wallets/Wallets.types.ts +7 -7
- package/src/containers/Wallets/useUpdates.ts +7 -117
- 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/useConnectWithLogging/index.ts +1 -0
- package/src/hooks/useConnectWithLogging/useConnectWithLogging.test.ts +138 -0
- package/src/hooks/useConnectWithLogging/useConnectWithLogging.ts +36 -0
- package/src/hooks/useStatefulConnect/useStatefulConnect.ts +36 -29
- package/src/hooks/useStatefulConnect/useStatefulConnect.types.ts +6 -3
- package/src/hooks/useWalletList.ts +10 -8
- package/src/hooks/useWalletProviders/useWalletProviders.helpers.ts +3 -10
- package/src/hooks/useWalletProviders/useWalletProviders.ts +2 -2
- package/src/index.ts +10 -11
- package/src/libs/connectLogging/connectLogging.constants.ts +17 -0
- package/src/libs/connectLogging/connectLogging.test.ts +918 -0
- package/src/libs/connectLogging/connectLogging.ts +359 -0
- package/src/libs/connectLogging/connectLogging.types.ts +70 -0
- package/src/libs/connectLogging/index.ts +5 -0
- package/src/pages/WalletsPage.tsx +1 -0
- package/src/store/AppStore.tsx +4 -2
- package/src/store/app.ts +7 -2
- package/src/store/slices/config.ts +36 -25
- package/src/store/slices/data.test.ts +2 -2
- package/src/store/slices/wallets.ts +1 -1
- package/src/test-utils/fixtures.ts +6 -2
- package/src/types/config.ts +31 -4
- package/src/types/event.ts +1 -1
- package/src/types/wallets.ts +1 -1
- package/src/utils/common.ts +6 -0
- package/src/utils/errors.test.ts +78 -0
- package/src/utils/errors.ts +69 -0
- package/src/utils/providers.ts +16 -50
- package/src/utils/swap.ts +8 -1
- package/src/utils/wallets.ts +12 -15
- package/dist/widget-embedded.build.json +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useConnectWithLogging.test.d.ts","sourceRoot":"","sources":["../../../src/hooks/useConnectWithLogging/useConnectWithLogging.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { HandleConnectOptions, Result } from './useStatefulConnect.types';
|
|
2
|
+
import type { WithConnectTrigger } from '../../libs/connectLogging';
|
|
2
3
|
import type { WalletInfoWithExtra } from '../../types';
|
|
3
4
|
import type { Namespace } from '@hub3js/namespaces';
|
|
4
5
|
import { type ExtendedModalWalletInfo } from '../../utils/wallets';
|
|
@@ -23,5 +24,5 @@ export interface UseStatefulConnect {
|
|
|
23
24
|
* or what derivation path should be used for.
|
|
24
25
|
*
|
|
25
26
|
*/
|
|
26
|
-
export declare function useStatefulConnect(): UseStatefulConnect;
|
|
27
|
+
export declare function useStatefulConnect({ trigger, }?: WithConnectTrigger): UseStatefulConnect;
|
|
27
28
|
//# sourceMappingURL=useStatefulConnect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStatefulConnect.d.ts","sourceRoot":"","sources":["../../../src/hooks/useStatefulConnect/useStatefulConnect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"useStatefulConnect.d.ts","sourceRoot":"","sources":["../../../src/hooks/useStatefulConnect/useStatefulConnect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EAEpB,MAAM,EACP,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAQpD,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAOnE,OAAO,EAAsB,KAAK,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAG5E,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,CACb,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,oBAAoB,KAC3B,OAAO,CAAC,MAAM,CAAC,CAAC;IACrB,eAAe,EAAE,CACf,MAAM,EAAE,mBAAmB,EAC3B,kBAAkB,EAAE,SAAS,EAAE,KAC5B,OAAO,CAAC,MAAM,CAAC,CAAC;IACrB,gBAAgB,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACnE,oBAAoB,EAAE,CACpB,MAAM,EAAE,uBAAuB,EAC/B,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE;QACR,wBAAwB,CAAC,EAAE,SAAS,EAAE,CAAC;KACxC,KACE,OAAO,CAAC,MAAM,CAAC,CAAC;IACrB,QAAQ,IAAI,KAAK,CAAC;IAClB,UAAU,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;CAC1C;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,GACR,GAAE,kBAAuB,GAAG,kBAAkB,CAkV9C"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { ExtendedModalWalletInfo } from '../../utils/wallets';
|
|
2
2
|
import type { Namespace } from '@hub3js/namespaces';
|
|
3
|
+
export interface NamespaceData {
|
|
4
|
+
namespace: Namespace;
|
|
5
|
+
derivationPath?: string;
|
|
6
|
+
}
|
|
3
7
|
export interface HandleConnectOptions {
|
|
4
8
|
forceConnectToNamespaces?: Namespace[];
|
|
5
9
|
disconnectIfConnected?: boolean;
|
|
@@ -11,10 +15,7 @@ export interface NeedsNamespacesState {
|
|
|
11
15
|
}
|
|
12
16
|
export interface DetachedPayload {
|
|
13
17
|
targetWallet: ExtendedModalWalletInfo;
|
|
14
|
-
selectedNamespaces:
|
|
15
|
-
namespace: Namespace;
|
|
16
|
-
derivationPath?: string;
|
|
17
|
-
}[] | null;
|
|
18
|
+
selectedNamespaces: NamespaceData[] | null;
|
|
18
19
|
derivationPath?: string;
|
|
19
20
|
}
|
|
20
21
|
export interface NeedsDerivationPathState {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStatefulConnect.types.d.ts","sourceRoot":"","sources":["../../../src/hooks/useStatefulConnect/useStatefulConnect.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,WAAW,oBAAoB;IAEnC,wBAAwB,CAAC,EAAE,SAAS,EAAE,CAAC;IACvC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,uBAAuB,CAAC;IACtC,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,uBAAuB,CAAC;IACtC,kBAAkB,
|
|
1
|
+
{"version":3,"file":"useStatefulConnect.types.d.ts","sourceRoot":"","sources":["../../../src/hooks/useStatefulConnect/useStatefulConnect.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,SAAS,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,oBAAoB;IAEnC,wBAAwB,CAAC,EAAE,SAAS,EAAE,CAAC;IACvC,qBAAqB,C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ceRoot":"","sources":["../../src/hooks/useWalletList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"useWalletList.d.ts","sourceRoot":"","sources":["../../src/hooks/useWalletList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AA8ChE,UAAU,MAAM;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,GAAG;IACX,IAAI,EAAE,uBAAuB,EAAE,CAAC;IAChC,0BAA0B,EAAE,MAAM,IAAI,CAAC;CACxC;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,GAAG,CAiGlD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { WidgetConfigWithoutLegacyProviders } from '../../types';
|
|
2
2
|
import type { ProvidersOptions } from '../../utils/providers';
|
|
3
|
-
export declare function useWalletProviders(configWallets:
|
|
3
|
+
export declare function useWalletProviders(configWallets: WidgetConfigWithoutLegacyProviders['wallets'], options?: ProvidersOptions): {
|
|
4
4
|
providers: import("@hub3js/core/dist/utils/versions").VersionedProviders[];
|
|
5
5
|
};
|
|
6
6
|
//# sourceMappingURL=useWalletProviders.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWalletProviders.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWalletProviders/useWalletProviders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"useWalletProviders.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWalletProviders/useWalletProviders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAQ9D,wBAAgB,kBAAkB,CAChC,aAAa,EAAE,kCAAkC,CAAC,SAAS,CAAC,EAC5D,OAAO,CAAC,EAAE,gBAAgB;;EAkB3B"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
export declare function hashProviders(providers: (string | ProviderInterface | Provider)[]): string;
|
|
1
|
+
import type { Provider } from '@hub3js/core';
|
|
2
|
+
export declare function hashProviders(providers: (string | Provider)[]): string;
|
|
4
3
|
//# sourceMappingURL=useWalletProviders.helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWalletProviders.helpers.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWalletProviders/useWalletProviders.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"useWalletProviders.helpers.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWalletProviders/useWalletProviders.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,wBAAgB,aAAa,CAAC,SAAS,EAAE,CAAC,MAAM,GAAG,QAAQ,CAAC,EAAE,GAAG,MAAM,CAStE"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,14 +2,13 @@ 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 { WalletInfo, WalletState, WalletType } from '@rango-dev/wallets-shared';
|
|
7
|
+
import type { EventHandler as HandleWalletsUpdate, ProviderInterface, WalletInfo, WalletState } from '@rango-dev/wallets-react';
|
|
8
8
|
import type { PendingSwap, PendingSwapStep } from 'rango-types';
|
|
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
|
-
import { Networks, WalletTypes } from '@rango-dev/wallets-shared';
|
|
13
12
|
import { PendingSwapNetworkStatus } from 'rango-types';
|
|
14
13
|
import { isOnDerivationPath, isOnDetached, isOnNamespace } from './components/StatefulConnectModal';
|
|
15
14
|
import { DerivationPath, Detached, Namespaces } from './components/WalletStatefulConnect';
|
|
@@ -26,7 +25,7 @@ import { useWalletList } from './hooks/useWalletList';
|
|
|
26
25
|
import { useWidgetEvents } from './hooks/useWidgetEvents';
|
|
27
26
|
import { widgetEventEmitter } from './services/eventEmitter';
|
|
28
27
|
import { WidgetEvents as MainEvents, QuoteEventTypes, UiEventTypes, WalletEventTypes, WidgetEvents } from './types';
|
|
29
|
-
import {
|
|
28
|
+
import { pickProviderVersion } from './utils/providers';
|
|
30
29
|
import { customizedThemeTokens } from './utils/ui';
|
|
31
30
|
export declare const StatefulConnect: {
|
|
32
31
|
DerivationPath: typeof DerivationPath;
|
|
@@ -36,7 +35,11 @@ export declare const StatefulConnect: {
|
|
|
36
35
|
isOnNamespace: typeof isOnNamespace;
|
|
37
36
|
isOnDetached: typeof isOnDetached;
|
|
38
37
|
};
|
|
39
|
-
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, };
|
|
40
43
|
export { Widget, Refuel, SwapModeContext,
|
|
41
44
|
/**
|
|
42
45
|
* @deprecated Use `WidgetProvider` instead. This component will be removed in future versions.
|
|
@@ -51,5 +54,5 @@ useWidgetEvents, useWalletList, customizedThemeTokens, widgetEventEmitter, Widge
|
|
|
51
54
|
*/
|
|
52
55
|
MainEvents, QuoteEventTypes, WalletEventTypes, UiEventTypes, RouteEventType, StepEventType, StepExecutionEventStatus, StepExecutionBlockedEventStatus, UI_ID, SUPPORTED_FONTS, };
|
|
53
56
|
export type { WalletState, WalletInfo, PendingSwap, PendingSwapWithQueueID, PendingSwapStep, RouteExecutionEvents, };
|
|
54
|
-
export { readAccountAddress,
|
|
57
|
+
export { readAccountAddress, pickProviderVersion, Networks, WalletEvents, PendingSwapNetworkStatus, EventSeverity, };
|
|
55
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,EAC5B,oBAAoB,EACpB,SAAS,EACT,aAAa,EACb,eAAe,EACf,uBAAuB,EACvB,gBAAgB,EAChB,kBAAkB,EAClB,2BAA2B,EAC3B,2BAA2B,EAC5B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EACV,
|
|
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,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EACV,sBAAsB,EACtB,KAAK,EACL,UA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