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
5
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.1-alpha.7b0bf69.0 to 6.6.1-alpha.9ba4342.0

dist/cjs/providers-09a85d88.js

6

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

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

const index = require('./index-3e3437e9.js');
const providers = require('./providers-9d3790ac.js');
const providers = require('./providers-09a85d88.js');

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

this.installedProviders = undefined;
this.persistSelection = undefined;
this.persistWalletSelect = undefined;
this.callback = undefined;

@@ -66,3 +66,3 @@ this.cancelCallback = undefined;

handleSelectProvider(providerId) {
if (this.persistSelection)
if (this.persistWalletSelect)
providers.setSelectedProviderId(providerId);

@@ -69,0 +69,0 @@ this.callback(providers.getProviderFromId(providerId));

@@ -20,5 +20,5 @@ 'use strict';

patchBrowser().then(options => {
return index.bootstrapLazy([["connect-modal.cjs",[[1,"connect-modal",{"defaultProviders":[16],"installedProviders":[16],"persistSelection":[4,"persist-selection"],"callback":[16],"cancelCallback":[16]}]]]], options);
return index.bootstrapLazy([["connect-modal.cjs",[[1,"connect-modal",{"defaultProviders":[16],"installedProviders":[16],"persistWalletSelect":[4,"persist-wallet-select"],"callback":[16],"cancelCallback":[16]}]]]], options);
});
exports.setNonce = index.setNonce;

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

const providers = require('./providers-9d3790ac.js');
const providers = require('./providers-09a85d88.js');

@@ -8,0 +8,0 @@

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

return patchEsm().then(() => {
return index.bootstrapLazy([["connect-modal.cjs",[[1,"connect-modal",{"defaultProviders":[16],"installedProviders":[16],"persistSelection":[4,"persist-selection"],"callback":[16],"cancelCallback":[16]}]]]], options);
return index.bootstrapLazy([["connect-modal.cjs",[[1,"connect-modal",{"defaultProviders":[16],"installedProviders":[16],"persistWalletSelect":[4,"persist-wallet-select"],"callback":[16],"cancelCallback":[16]}]]]], options);
});

@@ -20,0 +20,0 @@ };

@@ -10,3 +10,3 @@ import { h } from '@stencil/core';

this.installedProviders = undefined;
this.persistSelection = undefined;
this.persistWalletSelect = undefined;
this.callback = undefined;

@@ -16,3 +16,3 @@ this.cancelCallback = undefined;

handleSelectProvider(providerId) {
if (this.persistSelection)
if (this.persistWalletSelect)
setSelectedProviderId(providerId);

@@ -88,6 +88,6 @@ this.callback(getProviderFromId(providerId));

"complexType": {
"original": "WebBTCProvider[]",
"resolved": "WebBTCProvider[]",
"original": "WbipProvider[]",
"resolved": "WbipProvider[]",
"references": {
"WebBTCProvider": {
"WbipProvider": {
"location": "import",

@@ -109,6 +109,6 @@ "path": "../../providers"

"complexType": {
"original": "WebBTCProvider[]",
"resolved": "WebBTCProvider[]",
"original": "WbipProvider[]",
"resolved": "WbipProvider[]",
"references": {
"WebBTCProvider": {
"WbipProvider": {
"location": "import",

@@ -126,3 +126,3 @@ "path": "../../providers"

},
"persistSelection": {
"persistWalletSelect": {
"type": "boolean",

@@ -141,3 +141,3 @@ "mutable": false,

},
"attribute": "persist-selection",
"attribute": "persist-wallet-select",
"reflect": false

@@ -144,0 +144,0 @@ },

@@ -6,5 +6,5 @@ // AUTO REGISTERED PROVIDERS

return [];
if (!window.webbtc_stx_providers)
return [];
return window.webbtc_stx_providers;
const legacyProviders = window.webbtc_stx_providers || [];
const wbipProviders = window.wbip_providers || [];
return [...legacyProviders, ...wbipProviders];
};

@@ -11,0 +11,0 @@ export const getInstalledProviders = (defaultProviders = []) => {

@@ -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-8713efb1",[[1,"connect-modal",{defaultProviders:[16],installedProviders:[16],persistSelection:[4,"persist-selection"],callback:[16],cancelCallback:[16]}]]]],e)));
import{p as e,b as l}from"./p-31bd3998.js";export{s as setNonce}from"./p-31bd3998.js";(()=>{const s=import.meta.url,l={};return""!==s&&(l.resourcesUrl=new URL(".",s).href),e(l)})().then((e=>l([["p-c33b7ca8",[[1,"connect-modal",{defaultProviders:[16],installedProviders:[16],persistWalletSelect:[4,"persist-wallet-select"],callback:[16],cancelCallback:[16]}]]]],e)));

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

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";
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-f619a41b.js";
import { r as registerInstance, h, g as getElement } from './index-f9076013.js';
import { s as setSelectedProviderId, c as getProviderFromId } from './providers-171f2756.js';
import { s as setSelectedProviderId, c as getProviderFromId } from './providers-b45376a5.js';

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

this.installedProviders = undefined;
this.persistSelection = undefined;
this.persistWalletSelect = undefined;
this.callback = undefined;

@@ -61,3 +61,3 @@ this.cancelCallback = undefined;

handleSelectProvider(providerId) {
if (this.persistSelection)
if (this.persistWalletSelect)
setSelectedProviderId(providerId);

@@ -64,0 +64,0 @@ this.callback(getProviderFromId(providerId));

@@ -17,3 +17,3 @@ import { p as promiseResolve, b as bootstrapLazy } from './index-f9076013.js';

patchBrowser().then(options => {
return bootstrapLazy([["connect-modal",[[1,"connect-modal",{"defaultProviders":[16],"installedProviders":[16],"persistSelection":[4,"persist-selection"],"callback":[16],"cancelCallback":[16]}]]]], options);
return bootstrapLazy([["connect-modal",[[1,"connect-modal",{"defaultProviders":[16],"installedProviders":[16],"persistWalletSelect":[4,"persist-wallet-select"],"callback":[16],"cancelCallback":[16]}]]]], options);
});

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

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';
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-b45376a5.js';

@@ -14,3 +14,3 @@ import { p as promiseResolve, b as bootstrapLazy } from './index-f9076013.js';

return patchEsm().then(() => {
return bootstrapLazy([["connect-modal",[[1,"connect-modal",{"defaultProviders":[16],"installedProviders":[16],"persistSelection":[4,"persist-selection"],"callback":[16],"cancelCallback":[16]}]]]], options);
return bootstrapLazy([["connect-modal",[[1,"connect-modal",{"defaultProviders":[16],"installedProviders":[16],"persistWalletSelect":[4,"persist-wallet-select"],"callback":[16],"cancelCallback":[16]}]]]], options);
});

@@ -17,0 +17,0 @@ };

@@ -8,3 +8,3 @@ /* eslint-disable */

import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
import { WebBTCProvider } from "./providers";
import { WbipProvider } from "./providers";
export namespace Components {

@@ -14,5 +14,5 @@ interface ConnectModal {

"cancelCallback": Function;
"defaultProviders": WebBTCProvider[];
"installedProviders": WebBTCProvider[];
"persistSelection": boolean;
"defaultProviders": WbipProvider[];
"installedProviders": WbipProvider[];
"persistWalletSelect": boolean;
}

@@ -35,5 +35,5 @@ }

"cancelCallback"?: Function;
"defaultProviders"?: WebBTCProvider[];
"installedProviders"?: WebBTCProvider[];
"persistSelection"?: boolean;
"defaultProviders"?: WbipProvider[];
"installedProviders"?: WbipProvider[];
"persistWalletSelect"?: boolean;
}

@@ -40,0 +40,0 @@ interface IntrinsicElements {

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

import { WebBTCProvider } from '../../providers';
import { WbipProvider } from '../../providers';
export declare class Modal {
defaultProviders: WebBTCProvider[];
installedProviders: WebBTCProvider[];
persistSelection: boolean;
defaultProviders: WbipProvider[];
installedProviders: WbipProvider[];
persistWalletSelect: boolean;
callback: Function;

@@ -11,6 +11,6 @@ cancelCallback: Function;

handleCloseModal(): void;
getBrowserUrl(provider: WebBTCProvider): string;
getMobileUrl(provider: WebBTCProvider): string;
getInstallUrl(provider: WebBTCProvider, browser: string, platform: string): string;
getBrowserUrl(provider: WbipProvider): string;
getMobileUrl(provider: WbipProvider): string;
getInstallUrl(provider: WbipProvider, browser: string, platform: string): string;
render(): any;
}

@@ -1,2 +0,4 @@

export interface WebBTCProvider {
/** Backwards compatible alias for `WbipProvider` */
export type WebBTCProvider = WbipProvider;
export interface WbipProvider {
/** The global "path" of the provider (e.g. `"MyProvider"` if registered at `window.MyProvider`) */

@@ -26,7 +28,9 @@ id: string;

*/
webbtc_stx_providers?: WebBTCProvider[];
webbtc_stx_providers?: WbipProvider[];
/** @experimental @beta */
wbip_providers?: WbipProvider[];
}
}
export declare const getRegisteredProviders: () => WebBTCProvider[];
export declare const getInstalledProviders: (defaultProviders?: WebBTCProvider[]) => WebBTCProvider[];
export declare const getRegisteredProviders: () => WbipProvider[];
export declare const getInstalledProviders: (defaultProviders?: WbipProvider[]) => WbipProvider[];
/**

@@ -33,0 +37,0 @@ * Check if a wallet provider was previously selected via Connect.

{
"name": "@stacks/connect-ui",
"version": "6.6.1-alpha.7b0bf69.0",
"version": "6.6.1-alpha.9ba4342.0",
"license": "MIT",

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

},
"gitHead": "d8daaaf27d67f6d417a48fc8da7de5768ea09d3c"
"gitHead": "ae5b49d6df491f53e3823ee22f17b886a9a2973d"
}
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