@hsuite/native-connect-angular 3.0.2 → 3.0.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/index.d.ts
CHANGED
|
@@ -1181,6 +1181,7 @@ declare class WalletConnectV2Provider extends BaseWalletProvider {
|
|
|
1181
1181
|
readonly error: i0.Signal<string>;
|
|
1182
1182
|
private readonly eventBus;
|
|
1183
1183
|
private readonly zone;
|
|
1184
|
+
private readonly hostWalletLink;
|
|
1184
1185
|
/**
|
|
1185
1186
|
*
|
|
1186
1187
|
*/
|
|
@@ -1228,6 +1229,13 @@ declare class WalletConnectV2Provider extends BaseWalletProvider {
|
|
|
1228
1229
|
* @param sessionTopic - WalletConnect session topic
|
|
1229
1230
|
*/
|
|
1230
1231
|
private clearUserNetworkSelection;
|
|
1232
|
+
/**
|
|
1233
|
+
* Forget everything stored per session topic. Every per-topic key is cleared
|
|
1234
|
+
* here, so a session that ends cannot leave one behind.
|
|
1235
|
+
*
|
|
1236
|
+
* @param sessionTopic - WalletConnect session topic
|
|
1237
|
+
*/
|
|
1238
|
+
private forgetSessionState;
|
|
1231
1239
|
/**
|
|
1232
1240
|
* Connect to a wallet via WalletConnect QR code.
|
|
1233
1241
|
*
|
|
@@ -6312,7 +6320,7 @@ declare class AccountGroupingService {
|
|
|
6312
6320
|
* No balance: the SDK does not fetch balances (see the plan's support table).
|
|
6313
6321
|
*/
|
|
6314
6322
|
declare class AccountChipComponent {
|
|
6315
|
-
/** Phone header (A07):
|
|
6323
|
+
/** Phone header (A07): tighter chip, no caret. */
|
|
6316
6324
|
compact: boolean;
|
|
6317
6325
|
/** Whether the account menu this chip opens is showing (`aria-expanded`). */
|
|
6318
6326
|
expanded: boolean;
|
|
@@ -6323,7 +6331,7 @@ declare class AccountChipComponent {
|
|
|
6323
6331
|
private readonly wallet;
|
|
6324
6332
|
readonly account: i0.Signal<_hsuite_native_connect_angular.UnifiedAccount>;
|
|
6325
6333
|
readonly avatar: i0.Signal<"#7c5cff" | "#2dd4bf" | "#f59e0b" | "#ec4899" | "#38bdf8" | "#a3e635" | "#f97316" | "#c084fc">;
|
|
6326
|
-
/** Address as shown
|
|
6334
|
+
/** Address as shown: a Hedera id whole, in the compact chip too. */
|
|
6327
6335
|
displayAddress(): string;
|
|
6328
6336
|
/** Full address (the visible one may be shortened) and the account count. */
|
|
6329
6337
|
accessibleName(): string;
|
|
@@ -6946,6 +6954,11 @@ interface SigningOrchestratorConfig {
|
|
|
6946
6954
|
sessionStore: WalletConnectSessionStore;
|
|
6947
6955
|
clientManager: WalletConnectClientManager;
|
|
6948
6956
|
eventBus: WalletEventBus;
|
|
6957
|
+
/** Called right before each wallet request, with the session it goes to. */
|
|
6958
|
+
beforeRequest?: (session: {
|
|
6959
|
+
ledgerId: string;
|
|
6960
|
+
topic: string;
|
|
6961
|
+
}) => void;
|
|
6949
6962
|
}
|
|
6950
6963
|
/**
|
|
6951
6964
|
* Signing Orchestrator
|
|
@@ -6958,6 +6971,7 @@ declare class WalletConnectSigningOrchestrator {
|
|
|
6958
6971
|
private readonly sessionStore;
|
|
6959
6972
|
private readonly clientManager;
|
|
6960
6973
|
private readonly eventBus;
|
|
6974
|
+
private readonly beforeRequest?;
|
|
6961
6975
|
/**
|
|
6962
6976
|
*
|
|
6963
6977
|
* @param config
|
|
@@ -6987,6 +7001,15 @@ declare class WalletConnectSigningOrchestrator {
|
|
|
6987
7001
|
* @param options
|
|
6988
7002
|
*/
|
|
6989
7003
|
signMessage(options: SignMessageOptions): Promise<SignMessageResult>;
|
|
7004
|
+
/**
|
|
7005
|
+
* Tell the provider a wallet request is about to go out on this session.
|
|
7006
|
+
* @param sessionInfo - The session the request goes to
|
|
7007
|
+
* @param sessionInfo.signer
|
|
7008
|
+
* @param sessionInfo.signer.ledgerId
|
|
7009
|
+
* @param sessionInfo.session
|
|
7010
|
+
* @param sessionInfo.session.topic
|
|
7011
|
+
*/
|
|
7012
|
+
private announceRequest;
|
|
6990
7013
|
/**
|
|
6991
7014
|
* Resolve the network ID to use for signing.
|
|
6992
7015
|
*
|
|
@@ -7062,6 +7085,216 @@ interface SessionMetadata {
|
|
|
7062
7085
|
connectedAt: number;
|
|
7063
7086
|
}
|
|
7064
7087
|
|
|
7088
|
+
/**
|
|
7089
|
+
* HSuite Native Connect
|
|
7090
|
+
* Copyright 2024-2025 HSuite (https://hsuite.finance)
|
|
7091
|
+
*
|
|
7092
|
+
* SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
|
|
7093
|
+
*
|
|
7094
|
+
* This file is part of HSuite Native Connect. For commercial licensing,
|
|
7095
|
+
* visit https://hsuite.finance/licensing
|
|
7096
|
+
*/
|
|
7097
|
+
/**
|
|
7098
|
+
* @file hedera-host-wallet.ts
|
|
7099
|
+
* @description Pair through the Hedera wallet that is HOSTING this page
|
|
7100
|
+
*
|
|
7101
|
+
* WHY: opened inside a wallet's own dApp browser on a phone, WalletConnect's
|
|
7102
|
+
* modal hands the pairing link over by deep link, and a deep link into the app
|
|
7103
|
+
* the page already runs in goes nowhere, so the connection never completes.
|
|
7104
|
+
*
|
|
7105
|
+
* THE PROTOCOL is Hedera's own, from `@hashgraph/hedera-wallet-connect`
|
|
7106
|
+
* (`extensionController`, `DAppConnector.connectExtension`, `DAppSigner.request`),
|
|
7107
|
+
* which wallet extensions and in-app browsers answer:
|
|
7108
|
+
*
|
|
7109
|
+
* page → `hedera-extension-query` (and `hedera-iframe-query` to a parent frame)
|
|
7110
|
+
* wallet → `hedera-extension-response` {metadata: {id, name, …}}
|
|
7111
|
+
* (`hedera-iframe-response` from a parent frame)
|
|
7112
|
+
* page → `hedera-extension-connect-<id>` {pairingString: <wc: uri>}
|
|
7113
|
+
* (`hedera-iframe-connect` to a parent frame)
|
|
7114
|
+
* page → `hedera-extension-open-<id>` before every request, so the wallet
|
|
7115
|
+
* brings up its approval sheet
|
|
7116
|
+
*
|
|
7117
|
+
* WHEN IT APPLIES: a wallet that frames the page, only when the dApp listed
|
|
7118
|
+
* that wallet's origin ({@link HEDERA_HOST_WALLET_PARENT_ORIGINS}); a
|
|
7119
|
+
* same-window answer only on a phone or tablet. A framing page gets the
|
|
7120
|
+
* pairing link, and with it the power to answer the connection with its own
|
|
7121
|
+
* wallet, so one the dApp did not name is never asked and never answered. On desktop the same answer comes from a browser
|
|
7122
|
+
* EXTENSION (HashPack, Kabila), and those users keep the modal and its choice of
|
|
7123
|
+
* wallet. A phone has no Hedera wallet extensions, so an answer there means the
|
|
7124
|
+
* page runs inside that wallet's own browser.
|
|
7125
|
+
*
|
|
7126
|
+
* NOTHING IS POSTED UNTIL IT IS NEEDED: the wallet is asked for on the first
|
|
7127
|
+
* Hedera pairing, or on the first request of a session remembered as paired
|
|
7128
|
+
* through a wallet (after a reload). A page that never uses Hedera, or runs on a
|
|
7129
|
+
* desktop outside a frame, posts no message at all.
|
|
7130
|
+
*
|
|
7131
|
+
* Nothing here signs anything: it routes the pairing link WalletConnect already
|
|
7132
|
+
* produced, and remembers which session was paired this way so the approval
|
|
7133
|
+
* sheet ping goes only to that session.
|
|
7134
|
+
*/
|
|
7135
|
+
|
|
7136
|
+
declare const HOST_WALLET_EVENTS: {
|
|
7137
|
+
readonly query: "hedera-extension-query";
|
|
7138
|
+
readonly response: "hedera-extension-response";
|
|
7139
|
+
readonly connectPrefix: "hedera-extension-connect-";
|
|
7140
|
+
readonly openPrefix: "hedera-extension-open-";
|
|
7141
|
+
readonly iframeQuery: "hedera-iframe-query";
|
|
7142
|
+
readonly iframeResponse: "hedera-iframe-response";
|
|
7143
|
+
readonly iframeConnect: "hedera-iframe-connect";
|
|
7144
|
+
};
|
|
7145
|
+
/** A pairing link or a request is due and no wallet has answered yet: how long to wait for an answer. */
|
|
7146
|
+
declare const HOST_WALLET_REQUERY_WAIT_MS = 600;
|
|
7147
|
+
/** How long a hosting wallet has to approve a handed-over pairing before the modal opens after all. */
|
|
7148
|
+
declare const HOST_WALLET_HANDOFF_TIMEOUT_MS = 20000;
|
|
7149
|
+
/** Storage key prefix: the host wallet a session (by WalletConnect topic) was paired through. */
|
|
7150
|
+
declare const HOST_WALLET_PAIRED_KEY_PREFIX = "hsuite.walletconnect.hostWallet.";
|
|
7151
|
+
/** A wallet that answered the query. */
|
|
7152
|
+
interface HostWallet {
|
|
7153
|
+
id: string;
|
|
7154
|
+
name: string;
|
|
7155
|
+
/** Answered from a parent frame (the wallet frames the page) rather than from this window. */
|
|
7156
|
+
viaParent: boolean;
|
|
7157
|
+
/** The answering window's origin; a parent frame is replied to on exactly this origin. */
|
|
7158
|
+
origin: string;
|
|
7159
|
+
}
|
|
7160
|
+
/** The device facts the phone check needs. */
|
|
7161
|
+
interface HostWalletDevice {
|
|
7162
|
+
userAgent: string;
|
|
7163
|
+
/** `navigator.maxTouchPoints`: an iPad in desktop mode reports a Mac UA but has touch. */
|
|
7164
|
+
maxTouchPoints: number;
|
|
7165
|
+
}
|
|
7166
|
+
/** Just the window surface this needs, so tests can hand in a fake. */
|
|
7167
|
+
interface HostWalletWindow {
|
|
7168
|
+
readonly location: {
|
|
7169
|
+
readonly origin: string;
|
|
7170
|
+
};
|
|
7171
|
+
readonly parent: unknown;
|
|
7172
|
+
postMessage(message: unknown, targetOrigin: string): void;
|
|
7173
|
+
addEventListener(type: 'message', listener: (event: MessageEvent) => void): void;
|
|
7174
|
+
removeEventListener(type: 'message', listener: (event: MessageEvent) => void): void;
|
|
7175
|
+
}
|
|
7176
|
+
/** Timers, injectable so tests advance time by hand. */
|
|
7177
|
+
interface HostWalletClock {
|
|
7178
|
+
schedule: (fn: () => void, ms: number) => unknown;
|
|
7179
|
+
cancel: (timer: unknown) => void;
|
|
7180
|
+
}
|
|
7181
|
+
/** The `localStorage` surface this needs. Any failure (private mode) reads as "nothing remembered". */
|
|
7182
|
+
type HostWalletStore = Pick<Storage, 'getItem' | 'setItem' | 'removeItem'>;
|
|
7183
|
+
/** One Hedera pairing to route. */
|
|
7184
|
+
interface HostWalletPairing {
|
|
7185
|
+
/** The WalletConnect pairing link. */
|
|
7186
|
+
uri: string;
|
|
7187
|
+
/** Opens WalletConnect's own modal: the fallback. */
|
|
7188
|
+
openModal: () => unknown;
|
|
7189
|
+
/** The connection's single `approval()` promise: settles when the wallet approves or the proposal fails. */
|
|
7190
|
+
settled: Promise<unknown>;
|
|
7191
|
+
}
|
|
7192
|
+
/**
|
|
7193
|
+
* A wallet's answer to the query, or null for anything else (malformed, or another message).
|
|
7194
|
+
* @param data - The message payload
|
|
7195
|
+
* @param viaParent - Whether it came from a parent frame
|
|
7196
|
+
* @param origin - The sending window's origin
|
|
7197
|
+
*/
|
|
7198
|
+
declare function parseHostWalletMessage(data: unknown, viaParent: boolean, origin: string): HostWallet | null;
|
|
7199
|
+
/**
|
|
7200
|
+
* A phone or tablet: a mobile UA, or an iPad that asks for desktop sites (Mac UA with touch).
|
|
7201
|
+
* @param device - User agent and touch points
|
|
7202
|
+
*/
|
|
7203
|
+
declare function isTouchDevice(device: HostWalletDevice): boolean;
|
|
7204
|
+
/**
|
|
7205
|
+
* Whether to route through `wallet`: always when it frames the page, otherwise only on a phone or tablet.
|
|
7206
|
+
* @param wallet - The wallet that answered, if any
|
|
7207
|
+
* @param device - User agent and touch points
|
|
7208
|
+
*/
|
|
7209
|
+
declare function shouldUseHostWallet(wallet: HostWallet | null, device: HostWalletDevice): boolean;
|
|
7210
|
+
/**
|
|
7211
|
+
* Finds a hosting Hedera wallet and routes pairing links and approval pings to it.
|
|
7212
|
+
*/
|
|
7213
|
+
declare class HederaHostWalletLink {
|
|
7214
|
+
private readonly win;
|
|
7215
|
+
private readonly device;
|
|
7216
|
+
private readonly store;
|
|
7217
|
+
private readonly clock;
|
|
7218
|
+
private readonly trustedParentOrigins;
|
|
7219
|
+
private found;
|
|
7220
|
+
private stop;
|
|
7221
|
+
private waiters;
|
|
7222
|
+
/**
|
|
7223
|
+
* @param win - The page's window
|
|
7224
|
+
* @param device - User agent and touch points
|
|
7225
|
+
* @param store - Where paired sessions are remembered, or null
|
|
7226
|
+
* @param clock - Timers
|
|
7227
|
+
* @param trustedParentOrigins - Origins of wallets allowed to frame this
|
|
7228
|
+
* page and take its pairing link. Empty: no framing page is trusted.
|
|
7229
|
+
*/
|
|
7230
|
+
constructor(win: HostWalletWindow, device: HostWalletDevice, store: HostWalletStore | null, clock?: HostWalletClock, trustedParentOrigins?: readonly string[]);
|
|
7231
|
+
/**
|
|
7232
|
+
* Listen for a hosting wallet's answer. Posts nothing. `handOff` and `ping`
|
|
7233
|
+
* call this themselves; calling it again is a no-op. Returns the disposer.
|
|
7234
|
+
*/
|
|
7235
|
+
start(): () => void;
|
|
7236
|
+
/** The hosting wallet, when this page should connect through it. */
|
|
7237
|
+
active(): HostWallet | null;
|
|
7238
|
+
/**
|
|
7239
|
+
* Hand a Hedera pairing link to the hosting wallet. Resolves null, with
|
|
7240
|
+
* nothing sent, when there is none: the caller opens the modal as before.
|
|
7241
|
+
* Otherwise resolves the wallet that took the link, and the modal still opens
|
|
7242
|
+
* if that wallet has not approved within HOST_WALLET_HANDOFF_TIMEOUT_MS, so a
|
|
7243
|
+
* wallet that ignores the link never leaves the user waiting on nothing.
|
|
7244
|
+
* @param pairing - The link, the modal fallback and the approval promise
|
|
7245
|
+
*/
|
|
7246
|
+
handOff(pairing: HostWalletPairing): Promise<HostWallet | null>;
|
|
7247
|
+
/**
|
|
7248
|
+
* Remember that the session on `topic` was paired through `wallet`. Call once
|
|
7249
|
+
* the wallet has approved, not when the link is handed over.
|
|
7250
|
+
* @param topic - WalletConnect session topic
|
|
7251
|
+
* @param wallet - The wallet `handOff` resolved
|
|
7252
|
+
*/
|
|
7253
|
+
markPaired(topic: string, wallet: HostWallet): void;
|
|
7254
|
+
/**
|
|
7255
|
+
* Forget a session, when it is disconnected or deleted.
|
|
7256
|
+
* @param topic - WalletConnect session topic
|
|
7257
|
+
*/
|
|
7258
|
+
forget(topic: string): void;
|
|
7259
|
+
/**
|
|
7260
|
+
* Before a Hedera request on `topic`: ask the hosting wallet to show its
|
|
7261
|
+
* approval sheet, as `DAppSigner.request` does. Only for a session that was
|
|
7262
|
+
* paired through that wallet, and never to a parent frame (the reference
|
|
7263
|
+
* library has no such message). After a reload the wallet has not been asked
|
|
7264
|
+
* for yet: it is asked now, and pinged as soon as it answers.
|
|
7265
|
+
* @param topic - WalletConnect session topic
|
|
7266
|
+
*/
|
|
7267
|
+
ping(topic: string): void;
|
|
7268
|
+
private mayBeHosted;
|
|
7269
|
+
private isFramed;
|
|
7270
|
+
/** Framed, and the dApp named at least one wallet origin that may frame it. */
|
|
7271
|
+
private isFramedByTrusted;
|
|
7272
|
+
private post;
|
|
7273
|
+
private pairedWith;
|
|
7274
|
+
private query;
|
|
7275
|
+
/**
|
|
7276
|
+
* Resolves when a wallet answers, or after `ms`.
|
|
7277
|
+
* @param ms - The longest to wait
|
|
7278
|
+
*/
|
|
7279
|
+
private answer;
|
|
7280
|
+
private release;
|
|
7281
|
+
private onMessage;
|
|
7282
|
+
}
|
|
7283
|
+
/**
|
|
7284
|
+
* Origins of the Hedera wallets allowed to frame this dApp and take its
|
|
7285
|
+
* pairing link (`https://wallet.example`, exact match). Empty by default: a
|
|
7286
|
+
* page that frames the dApp is not trusted, and the WalletConnect modal opens
|
|
7287
|
+
* as it always did. Provide the list to pair inside a wallet that embeds dApps
|
|
7288
|
+
* in a frame.
|
|
7289
|
+
*/
|
|
7290
|
+
declare const HEDERA_HOST_WALLET_PARENT_ORIGINS: InjectionToken<readonly string[]>;
|
|
7291
|
+
/**
|
|
7292
|
+
* The page's link to a hosting Hedera wallet. Creating it posts nothing and
|
|
7293
|
+
* listens to nothing (see the file header). Null outside a browser. Override in tests, or provide null to
|
|
7294
|
+
* always use the WalletConnect modal.
|
|
7295
|
+
*/
|
|
7296
|
+
declare const HEDERA_HOST_WALLET_LINK: InjectionToken<HederaHostWalletLink>;
|
|
7297
|
+
|
|
7065
7298
|
/**
|
|
7066
7299
|
* Signer implementation for Hedera ledger.
|
|
7067
7300
|
*
|
|
@@ -7931,5 +8164,5 @@ declare function getLedgerName(ledgerId: string): string;
|
|
|
7931
8164
|
*/
|
|
7932
8165
|
declare function getTokenIcon(tokenIconUrl: string | undefined, ledgerId: string): string;
|
|
7933
8166
|
|
|
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 };
|
|
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 };
|
|
8167
|
+
export { ACTIVE_ACCOUNT_SOURCE, AccountActionsComponent, AccountChipComponent, AccountFilterComponent, AccountFormattingService, AccountGroupingService, AccountListComponent, AccountMenuComponent, AccountSelectorComponent, AccountSelectorService, BaseWalletProvider, ChannelClientService, ChromeExtensionTransport, ConnectionInProgressError, DEFAULT_LEDGER_ICONS, DEFAULT_WALLET_URL, HEDERA_HOST_WALLET_LINK, HEDERA_HOST_WALLET_PARENT_ORIGINS, HOST_WALLET_EVENTS, HOST_WALLET_HANDOFF_TIMEOUT_MS, HOST_WALLET_PAIRED_KEY_PREFIX, HOST_WALLET_REQUERY_WAIT_MS, HSUITE_AUTH_HEADER, HSUITE_LEDGER_HEADER, HederaHostWalletLink, 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, isTouchDevice, isWalletConnectV2Config, nativeSessionKeyFor, parseHostWalletMessage, parseNativeSessionKey, provideWalletErrorHandler, provideWalletUi, registerLedgerIcons, scaleHederaAmountToBaseUnits, shouldUseHostWallet, supportsSessionManagement };
|
|
8168
|
+
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, HostWallet, HostWalletClock, HostWalletDevice, HostWalletPairing, HostWalletStore, HostWalletWindow, 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.3",
|
|
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.3",
|
|
35
|
+
"@hsuite/native-connect-types": "^3.0.3",
|
|
36
36
|
"@walletconnect/modal": "^2.7.0",
|
|
37
37
|
"@walletconnect/sign-client": "^2.23.0",
|
|
38
38
|
"@walletconnect/types": "^2.23.0",
|