@hsuite/native-connect-angular 3.0.1 → 3.0.2
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/index.d.ts
CHANGED
|
@@ -209,6 +209,19 @@ declare class NoAccountsForNetworkError extends Error {
|
|
|
209
209
|
*/
|
|
210
210
|
constructor(networkId: string, providerType: ProviderType, sharedChains?: readonly string[]);
|
|
211
211
|
}
|
|
212
|
+
/**
|
|
213
|
+
* A connect was asked for while another one is still waiting for the wallet,
|
|
214
|
+
* and it cannot share that request: a QR pairing next to a window connect, or
|
|
215
|
+
* a pending session this call did not start. Nothing was started. The connect
|
|
216
|
+
* modal shows it as the `'busy'` error.
|
|
217
|
+
*/
|
|
218
|
+
declare class ConnectionInProgressError extends Error {
|
|
219
|
+
readonly providerType: ProviderType;
|
|
220
|
+
/**
|
|
221
|
+
* @param providerType - Provider that already has a connect waiting
|
|
222
|
+
*/
|
|
223
|
+
constructor(providerType: ProviderType);
|
|
224
|
+
}
|
|
212
225
|
|
|
213
226
|
/**
|
|
214
227
|
* HSuite Native Connect
|
|
@@ -885,6 +898,11 @@ declare class HsuiteNativeProvider extends BaseWalletProvider {
|
|
|
885
898
|
* Cross-device connections use QR/URL flow (no discovery needed).
|
|
886
899
|
*/
|
|
887
900
|
private initializeLocalDiscovery;
|
|
901
|
+
/**
|
|
902
|
+
* The connect waiting for the wallet's answer, if any. A second window
|
|
903
|
+
* connect returns this promise instead of starting another request.
|
|
904
|
+
*/
|
|
905
|
+
private pendingConnect;
|
|
888
906
|
/**
|
|
889
907
|
* Maps the internal channel state to the provider connection status.
|
|
890
908
|
*
|
|
@@ -941,8 +959,15 @@ declare class HsuiteNativeProvider extends BaseWalletProvider {
|
|
|
941
959
|
* @throws {Error} If configuration is invalid
|
|
942
960
|
* @throws {Error} If connection times out (default 120 seconds)
|
|
943
961
|
* @throws {Error} If popup is blocked and wallet cannot be opened
|
|
962
|
+
* @throws {ConnectionInProgressError} If another connect is waiting for the
|
|
963
|
+
* wallet and this one cannot share its request
|
|
944
964
|
*/
|
|
945
965
|
connect(config: ConnectionConfig$1): Promise<void>;
|
|
966
|
+
/**
|
|
967
|
+
* Create the invite, deliver it and wait for the wallet's answer.
|
|
968
|
+
* @param config - HSuite Native connection configuration
|
|
969
|
+
*/
|
|
970
|
+
private startConnect;
|
|
946
971
|
/**
|
|
947
972
|
* Open wallet window with LOCAL-FIRST discovery.
|
|
948
973
|
*
|
|
@@ -1954,9 +1979,10 @@ declare class WalletConnectionModalComponent implements OnInit, OnDestroy {
|
|
|
1954
1979
|
*/
|
|
1955
1980
|
private connectDirect;
|
|
1956
1981
|
/**
|
|
1957
|
-
*
|
|
1958
|
-
*
|
|
1959
|
-
* the request
|
|
1982
|
+
* Re-picking HSuite Wallet after backing out re-attaches to the request the
|
|
1983
|
+
* wallet is still showing instead of starting a new one. The provider does
|
|
1984
|
+
* the same for a request this modal did not start (one left pending by a
|
|
1985
|
+
* modal that was closed): its connect waits for that request's answer.
|
|
1960
1986
|
* @param network
|
|
1961
1987
|
*/
|
|
1962
1988
|
private connectHsuiteWallet;
|
|
@@ -7905,5 +7931,5 @@ declare function getLedgerName(ledgerId: string): string;
|
|
|
7905
7931
|
*/
|
|
7906
7932
|
declare function getTokenIcon(tokenIconUrl: string | undefined, ledgerId: string): string;
|
|
7907
7933
|
|
|
7908
|
-
export { ACTIVE_ACCOUNT_SOURCE, AccountActionsComponent, AccountChipComponent, AccountFilterComponent, AccountFormattingService, AccountGroupingService, AccountListComponent, AccountMenuComponent, AccountSelectorComponent, AccountSelectorService, BaseWalletProvider, ChannelClientService, ChromeExtensionTransport, DEFAULT_LEDGER_ICONS, DEFAULT_WALLET_URL, HSUITE_AUTH_HEADER, HSUITE_LEDGER_HEADER, HederaSigner, HederaTransactionBuilderService, HsuiteAuthInterceptor, HsuiteNativeProvider, HsuiteWalletModule, LEDGER_COLORS, LEDGER_ICON_NAMES, LEDGER_NAMES, LedgerUIRegistry, LoggerService, MAX_NATIVE_SESSIONS, NATIVE_SESSION_KEY_PREFIX, NativeSessionLimitError, NoAccountsForNetworkError, SMART_SESSION_CONFIG, SessionNoticeService, SignerFactory, SmartSessionService, TransactionService, UnifiedWalletService, WALLET_UI_CONFIG, WalletAccountDisplayComponent, WalletButtonComponent, WalletConnectButtonComponent, WalletConnectClientManager, WalletConnectPromptComponent, WalletConnectSessionStore, WalletConnectSigningOrchestrator, WalletConnectV2Provider, WalletConnectedDirective, WalletConnectedGuardComponent, WalletConnectionModalComponent, WalletContextDirective, WalletContextService, WalletErrorHandler, WalletEventBus, WalletEventsDirective, WalletSessionDisplayComponent, WalletTransactionStatusComponent, WalletUiService, XrplSigner, XrplTransactionBuilderService, channelIdFromSessionKey, getExtensionVersion, getLedgerColor, getLedgerIcon, getLedgerName, getTokenIcon, hsuiteAuthInterceptor, isExtensionInstalled, isHsuiteNativeConfig, isWalletConnectV2Config, nativeSessionKeyFor, parseNativeSessionKey, provideWalletErrorHandler, provideWalletUi, registerLedgerIcons, scaleHederaAmountToBaseUnits, supportsSessionManagement };
|
|
7934
|
+
export { ACTIVE_ACCOUNT_SOURCE, AccountActionsComponent, AccountChipComponent, AccountFilterComponent, AccountFormattingService, AccountGroupingService, AccountListComponent, AccountMenuComponent, AccountSelectorComponent, AccountSelectorService, BaseWalletProvider, ChannelClientService, ChromeExtensionTransport, ConnectionInProgressError, DEFAULT_LEDGER_ICONS, DEFAULT_WALLET_URL, HSUITE_AUTH_HEADER, HSUITE_LEDGER_HEADER, HederaSigner, HederaTransactionBuilderService, HsuiteAuthInterceptor, HsuiteNativeProvider, HsuiteWalletModule, LEDGER_COLORS, LEDGER_ICON_NAMES, LEDGER_NAMES, LedgerUIRegistry, LoggerService, MAX_NATIVE_SESSIONS, NATIVE_SESSION_KEY_PREFIX, NativeSessionLimitError, NoAccountsForNetworkError, SMART_SESSION_CONFIG, SessionNoticeService, SignerFactory, SmartSessionService, TransactionService, UnifiedWalletService, WALLET_UI_CONFIG, WalletAccountDisplayComponent, WalletButtonComponent, WalletConnectButtonComponent, WalletConnectClientManager, WalletConnectPromptComponent, WalletConnectSessionStore, WalletConnectSigningOrchestrator, WalletConnectV2Provider, WalletConnectedDirective, WalletConnectedGuardComponent, WalletConnectionModalComponent, WalletContextDirective, WalletContextService, WalletErrorHandler, WalletEventBus, WalletEventsDirective, WalletSessionDisplayComponent, WalletTransactionStatusComponent, WalletUiService, XrplSigner, XrplTransactionBuilderService, channelIdFromSessionKey, getExtensionVersion, getLedgerColor, getLedgerIcon, getLedgerName, getTokenIcon, hsuiteAuthInterceptor, isExtensionInstalled, isHsuiteNativeConfig, isWalletConnectV2Config, nativeSessionKeyFor, parseNativeSessionKey, provideWalletErrorHandler, provideWalletUi, registerLedgerIcons, scaleHederaAmountToBaseUnits, supportsSessionManagement };
|
|
7909
7935
|
export type { AccountChangeEvent, AccountCreateOptions, AccountGroupingMode, AccountItem, AccountSelectorConfig, AccountSelectorPresentationMode, AccountSelectorResult, AccountWithBalance, AccountsUpdateEvent, ActiveAccountData, ActiveAccountSource, BatchInnerTransaction, BatchInnerTransactionType, BuildNamespaceOptions, ChannelConnectConfig, ChromeExtensionTransportOptions, CompactHeaderFormat, CompactHeaderSize, ConnectErrorKind, ConnectResult, ConnectionConfig, ConnectionEvent, ConnectionStatus, DisconnectPreview, DisconnectTarget, DisconnectionEvent, GetWalletLinks, HederaKeyConfig, HsuiteNativeConfig, HsuiteNativeInviteReady, IWalletConnectSigner, LedgerGroup$1 as LedgerGroup, LedgerUiDescriptor, NativeActiveSession, NativeSessionKey, NativeSessionRemovalEvent, NetworkGroup, OpenAccountsOptions, OpenConnectOptions, ProtocolGroup, ProviderErrorEvent, ProviderMetadata, ProviderSessionInfo, ProviderStatusEvent, ProviderType, RemovedSessionNotice, SelectedAccountData, SessionAccountVm, SessionEvent, SessionManagingProvider, SessionMetadata, SessionVm, SignMessageOptions, SignMessageResult, SignResult, SignTransactionOptions, SignerContext, SignerOperationParams, SigningOrchestratorConfig, SmartHostChallenge, SmartHostHealth, SmartHostVerifyRequest, SmartHostVerifyResponse, SmartSessionConfig, StoredSessionData, SubmitResult, SubmitTransactionOptions, TokenCreateOptions, TopicCreateOptions, UnifiedAccount, WCAppMetadata, WalletConnectSession, WalletConnectSignerConfig, WalletConnectV2Config, WalletConnectedEvent, WalletContext, WalletErrorHandlerConfig, WalletOptionId, WalletSession, WalletUiConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hsuite/native-connect-angular",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"license": "PolyForm-Noncommercial-1.0.0",
|
|
5
5
|
"description": "Angular integration SDK for HSuite Wallet - provides direct SDK integration without wrappers",
|
|
6
6
|
"type": "module",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@hashgraph/proto": "^2.25.0",
|
|
33
33
|
"@hashgraph/sdk": "^2.76.0",
|
|
34
|
-
"@hsuite/native-connect-sdk": "^3.0.
|
|
35
|
-
"@hsuite/native-connect-types": "^3.0.
|
|
34
|
+
"@hsuite/native-connect-sdk": "^3.0.2",
|
|
35
|
+
"@hsuite/native-connect-types": "^3.0.2",
|
|
36
36
|
"@walletconnect/modal": "^2.7.0",
|
|
37
37
|
"@walletconnect/sign-client": "^2.23.0",
|
|
38
38
|
"@walletconnect/types": "^2.23.0",
|