New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@stacks/connect-ui

Package Overview
Dependencies
Maintainers
0
Versions
709
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stacks/connect-ui - npm Package Compare versions

Comparing version 6.6.0 to 6.6.1-alpha.7b0bf69.0

dist/cjs/providers-9d3790ac.js

6

dist/cjs/connect-modal.cjs.entry.js

@@ -6,3 +6,3 @@ 'use strict';

const index = require('./index-3e3437e9.js');
const session = require('./session-7c78eac2.js');
const providers = require('./providers-9d3790ac.js');

@@ -66,4 +66,4 @@ const closeIconSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTcgNyAxMCAxME0xNyA3IDcgMTciIHN0cm9rZT0iIzI0MjYyOSIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==';

if (this.persistSelection)
session.setSelectedProviderId(providerId);
this.callback(session.getProviderFromId(providerId));
providers.setSelectedProviderId(providerId);
this.callback(providers.getProviderFromId(providerId));
}

@@ -70,0 +70,0 @@ handleCloseModal() {

@@ -5,11 +5,13 @@ 'use strict';

const session = require('./session-7c78eac2.js');
const providers = require('./providers-9d3790ac.js');
exports.clearSelectedProviderId = session.clearSelectedProviderId;
exports.getInstalledProviders = session.getInstalledProviders;
exports.getProviderFromId = session.getProviderFromId;
exports.getRegisteredProviders = session.getRegisteredProviders;
exports.getSelectedProviderId = session.getSelectedProviderId;
exports.setSelectedProviderId = session.setSelectedProviderId;
exports.clearSelectedProviderId = providers.clearSelectedProviderId;
exports.getInstalledProviders = providers.getInstalledProviders;
exports.getProvider = providers.getProvider;
exports.getProviderFromId = providers.getProviderFromId;
exports.getRegisteredProviders = providers.getRegisteredProviders;
exports.getSelectedProviderId = providers.getSelectedProviderId;
exports.isProviderSelected = providers.isProviderSelected;
exports.setSelectedProviderId = providers.setSelectedProviderId;
// AUTO REGISTERED PROVIDERS
import { getSelectedProviderId } from './session';
export const getRegisteredProviders = () => {

@@ -23,4 +24,20 @@ if (typeof window === 'undefined')

};
/**
* Check if a wallet provider was previously selected via Connect.
* @returns `true` if a provider was selected, `false` otherwise.
*/
export const isProviderSelected = () => {
return !!getSelectedProviderId();
};
/**
* Get the currently selected wallet provider.
* Note that this will not return the default `window.StacksProvider` object.
* @returns The wallet provider object, or null if no provider is selected.
*/
export const getProvider = () => {
const providerId = getSelectedProviderId();
return getProviderFromId(providerId);
};
export const getProviderFromId = (id) => {
return id === null || id === void 0 ? void 0 : id.split('.').reduce((acc, part) => acc === null || acc === void 0 ? void 0 : acc[part], window);
};

@@ -1,1 +0,1 @@

import{p as e,b as o}from"./p-31bd3998.js";export{s as setNonce}from"./p-31bd3998.js";(()=>{const s=import.meta.url,o={};return""!==s&&(o.resourcesUrl=new URL(".",s).href),e(o)})().then((e=>o([["p-149a9c8b",[[1,"connect-modal",{defaultProviders:[16],installedProviders:[16],persistSelection:[4,"persist-selection"],callback:[16],cancelCallback:[16]}]]]],e)));
import{p as e,b as o}from"./p-31bd3998.js";export{s as setNonce}from"./p-31bd3998.js";(()=>{const s=import.meta.url,o={};return""!==s&&(o.resourcesUrl=new URL(".",s).href),e(o)})().then((e=>o([["p-8713efb1",[[1,"connect-modal",{defaultProviders:[16],installedProviders:[16],persistSelection:[4,"persist-selection"],callback:[16],cancelCallback:[16]}]]]],e)));

@@ -1,1 +0,1 @@

export{d as clearSelectedProviderId,a as getInstalledProviders,b as getProviderFromId,g as getRegisteredProviders,c as getSelectedProviderId,s as setSelectedProviderId}from"./p-2371192d.js";
export{e as clearSelectedProviderId,a as getInstalledProviders,b as getProvider,c as getProviderFromId,g as getRegisteredProviders,d as getSelectedProviderId,i as isProviderSelected,s as setSelectedProviderId}from"./p-4c79ff00.js";
import { r as registerInstance, h, g as getElement } from './index-f9076013.js';
import { s as setSelectedProviderId, b as getProviderFromId } from './session-9db1cb8a.js';
import { s as setSelectedProviderId, c as getProviderFromId } from './providers-171f2756.js';

@@ -4,0 +4,0 @@ const closeIconSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTcgNyAxMCAxME0xNyA3IDcgMTciIHN0cm9rZT0iIzI0MjYyOSIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==';

@@ -1,1 +0,1 @@

export { d as clearSelectedProviderId, a as getInstalledProviders, b as getProviderFromId, g as getRegisteredProviders, c as getSelectedProviderId, s as setSelectedProviderId } from './session-9db1cb8a.js';
export { e as clearSelectedProviderId, a as getInstalledProviders, b as getProvider, c as getProviderFromId, g as getRegisteredProviders, d as getSelectedProviderId, i as isProviderSelected, s as setSelectedProviderId } from './providers-171f2756.js';

@@ -31,2 +31,13 @@ export interface WebBTCProvider {

export declare const getInstalledProviders: (defaultProviders?: WebBTCProvider[]) => WebBTCProvider[];
/**
* Check if a wallet provider was previously selected via Connect.
* @returns `true` if a provider was selected, `false` otherwise.
*/
export declare const isProviderSelected: () => boolean;
/**
* Get the currently selected wallet provider.
* Note that this will not return the default `window.StacksProvider` object.
* @returns The wallet provider object, or null if no provider is selected.
*/
export declare const getProvider: () => any;
export declare const getProviderFromId: (id: string | undefined) => any;
{
"name": "@stacks/connect-ui",
"version": "6.6.0",
"version": "6.6.1-alpha.7b0bf69.0",
"license": "MIT",

@@ -51,3 +51,3 @@ "scripts": {

},
"gitHead": "20a869b95498b4d27017552b0b0f055cea20240b"
"gitHead": "d8daaaf27d67f6d417a48fc8da7de5768ea09d3c"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc