- Consolidated duplicate UndoManagers to single instance - Fixed connection promise to only resolve on 'connected' status - Fixed WebSocketProvider import (WebsocketProvider) - Added proper doc.destroy() cleanup - Renamed isPresenceInitialized property to avoid conflict Co-Authored-By: Paperclip <noreply@paperclip.ing>
61 lines
1.8 KiB
TypeScript
61 lines
1.8 KiB
TypeScript
/** Name of the feature. */
|
|
export const StandardDisconnect = 'standard:disconnect';
|
|
/**
|
|
* @deprecated Use {@link StandardDisconnect} instead.
|
|
*
|
|
* @group Deprecated
|
|
*/
|
|
export const Disconnect = StandardDisconnect;
|
|
|
|
/**
|
|
* `standard:disconnect` is a {@link "@wallet-standard/base".Wallet.features | feature} that may be implemented by a
|
|
* {@link "@wallet-standard/base".Wallet} to allow the app to perform any cleanup work.
|
|
*
|
|
* This feature may or may not be used by the app and the Wallet should not depend on it being used.
|
|
* If this feature is used by the app, the Wallet should perform any cleanup work, but should not revoke authorization
|
|
* to use accounts previously granted through the {@link ConnectFeature}.
|
|
*
|
|
* @group Disconnect
|
|
*/
|
|
export type StandardDisconnectFeature = {
|
|
/** Name of the feature. */
|
|
readonly [StandardDisconnect]: {
|
|
/** Version of the feature implemented by the Wallet. */
|
|
readonly version: StandardDisconnectVersion;
|
|
/** Method to call to use the feature. */
|
|
readonly disconnect: StandardDisconnectMethod;
|
|
};
|
|
};
|
|
/**
|
|
* @deprecated Use {@link StandardDisconnectFeature} instead.
|
|
*
|
|
* @group Deprecated
|
|
*/
|
|
export type DisconnectFeature = StandardDisconnectFeature;
|
|
|
|
/**
|
|
* Version of the {@link StandardDisconnectFeature} implemented by a Wallet.
|
|
*
|
|
* @group Disconnect
|
|
*/
|
|
export type StandardDisconnectVersion = '1.0.0';
|
|
/**
|
|
* @deprecated Use {@link StandardDisconnectVersion} instead.
|
|
*
|
|
* @group Deprecated
|
|
*/
|
|
export type DisconnectVersion = StandardDisconnectVersion;
|
|
|
|
/**
|
|
* Method to call to use the {@link StandardDisconnectFeature}.
|
|
*
|
|
* @group Disconnect
|
|
*/
|
|
export type StandardDisconnectMethod = () => Promise<void>;
|
|
/**
|
|
* @deprecated Use {@link StandardDisconnectMethod} instead.
|
|
*
|
|
* @group Deprecated
|
|
*/
|
|
export type DisconnectMethod = StandardDisconnectMethod;
|