@polkadot/ui-settings
Advanced tools
Comparing version 3.1.4 to 3.2.1
@@ -23,8 +23,8 @@ (function (global, factory) { | ||
var eventemitter3Exports = {}; | ||
var eventemitter3 = { | ||
get exports(){ return eventemitter3Exports; }, | ||
set exports(v){ eventemitter3Exports = v; }, | ||
}; | ||
function getDefaultExportFromCjs (x) { | ||
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; | ||
} | ||
var eventemitter3 = {exports: {}}; | ||
(function (module) { | ||
@@ -189,2 +189,4 @@ var has = Object.prototype.hasOwnProperty | ||
} (eventemitter3)); | ||
var eventemitter3Exports = eventemitter3.exports; | ||
const EventEmitter = getDefaultExportFromCjs(eventemitter3Exports); | ||
@@ -297,2 +299,3 @@ var assign = make_assign(); | ||
} | ||
getDefaultExportFromCjs(util$6); | ||
@@ -470,2 +473,3 @@ var util$5 = util$6; | ||
} | ||
getDefaultExportFromCjs(storeEngine); | ||
@@ -503,2 +507,3 @@ var util$4 = util$6; | ||
} | ||
getDefaultExportFromCjs(localStorage_1); | ||
@@ -536,2 +541,3 @@ var util$3 = util$6; | ||
} | ||
getDefaultExportFromCjs(oldFFGlobalStorage); | ||
@@ -629,2 +635,3 @@ var util$2 = util$6; | ||
} | ||
getDefaultExportFromCjs(oldIEUserDataStorage); | ||
@@ -680,2 +687,3 @@ var util$1 = util$6; | ||
} | ||
getDefaultExportFromCjs(cookieStorage); | ||
@@ -713,2 +721,3 @@ var util = util$6; | ||
} | ||
getDefaultExportFromCjs(sessionStorage_1); | ||
@@ -743,2 +752,3 @@ var memoryStorage_1 = { | ||
} | ||
getDefaultExportFromCjs(memoryStorage_1); | ||
@@ -753,2 +763,3 @@ var all = [ | ||
]; | ||
getDefaultExportFromCjs(all); | ||
@@ -975,2 +986,3 @@ var json2$1 = {}; | ||
} | ||
getDefaultExportFromCjs(json2); | ||
@@ -981,2 +993,3 @@ var engine = storeEngine; | ||
var store_legacy = engine.createStore(storages, plugins); | ||
const store = getDefaultExportFromCjs(store_legacy); | ||
@@ -1016,7 +1029,9 @@ const CRYPTOS = [ | ||
const ENDPOINTS = [{ | ||
const ENDPOINTS = [ | ||
{ | ||
info: 'local', | ||
text: 'Local Node (Own, 127.0.0.1:9944)', | ||
value: 'ws://127.0.0.1:9944/' | ||
}]; | ||
} | ||
]; | ||
const ENDPOINT_DEFAULT = ENDPOINTS[0]; | ||
@@ -1193,4 +1208,4 @@ | ||
_Settings_notification.set(this, void 0); | ||
const settings = store_legacy.get('settings') || {}; | ||
__classPrivateFieldSet(this, _Settings_emitter, new eventemitter3Exports(), "f"); | ||
const settings = store.get('settings') || {}; | ||
__classPrivateFieldSet(this, _Settings_emitter, new EventEmitter(), "f"); | ||
__classPrivateFieldSet(this, _Settings_apiUrl, (typeof settings.apiUrl === 'string' && settings.apiUrl) || (util$7.hasProcess && process.env && process.env.WS_URL) || ENDPOINT_DEFAULT.value, "f"); | ||
@@ -1320,3 +1335,3 @@ __classPrivateFieldSet(this, _Settings_apiType, { param: __classPrivateFieldGet(this, _Settings_apiUrl, "f"), type: 'json-rpc' }, "f"); | ||
const newValues = this.get(); | ||
store_legacy.set('settings', newValues); | ||
store.set('settings', newValues); | ||
__classPrivateFieldGet(this, _Settings_emitter, "f").emit('change', newValues); | ||
@@ -1331,7 +1346,7 @@ } | ||
const chains = utilCrypto.selectableNetworks | ||
const chains = utilCrypto.selectableNetworks | ||
.filter((n) => n.genesisHash.length) | ||
.reduce((chains, { genesisHash, network }) => util$7.objectSpread(chains, { [network]: genesisHash }), {}); | ||
const packageInfo = { name: '@polkadot/ui-settings', path: (({ url: (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (document.currentScript && document.currentScript.src || new URL('bundle-polkadot-ui-settings.js', document.baseURI).href)) }) && (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (document.currentScript && document.currentScript.src || new URL('bundle-polkadot-ui-settings.js', document.baseURI).href))) ? new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (document.currentScript && document.currentScript.src || new URL('bundle-polkadot-ui-settings.js', document.baseURI).href))).pathname.substring(0, new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (document.currentScript && document.currentScript.src || new URL('bundle-polkadot-ui-settings.js', document.baseURI).href))).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '3.1.4' }; | ||
const packageInfo = { name: '@polkadot/ui-settings', path: (({ url: (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (document.currentScript && document.currentScript.src || new URL('bundle-polkadot-ui-settings.js', document.baseURI).href)) }) && (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (document.currentScript && document.currentScript.src || new URL('bundle-polkadot-ui-settings.js', document.baseURI).href))) ? new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (document.currentScript && document.currentScript.src || new URL('bundle-polkadot-ui-settings.js', document.baseURI).href))).pathname.substring(0, new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (document.currentScript && document.currentScript.src || new URL('bundle-polkadot-ui-settings.js', document.baseURI).href))).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '3.2.1' }; | ||
@@ -1338,0 +1353,0 @@ exports.ENDPOINT_DEFAULT = ENDPOINT_DEFAULT; |
@@ -6,5 +6,4 @@ "use strict"; | ||
const util_1 = require("@polkadot/util"); | ||
const chains = networks_1.selectableNetworks | ||
exports.chains = networks_1.selectableNetworks | ||
.filter((n) => n.genesisHash.length) | ||
.reduce((chains, { genesisHash, network }) => (0, util_1.objectSpread)(chains, { [network]: genesisHash }), {}); | ||
exports.chains = chains; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ENDPOINT_DEFAULT = exports.ENDPOINTS = void 0; | ||
exports.ENDPOINTS = [{ | ||
exports.ENDPOINTS = [ | ||
{ | ||
info: 'local', | ||
text: 'Local Node (Own, 127.0.0.1:9944)', | ||
value: 'ws://127.0.0.1:9944/' | ||
}]; | ||
} | ||
]; | ||
exports.ENDPOINT_DEFAULT = exports.ENDPOINTS[0]; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.UITHEMES = exports.UITHEME_DEFAULT = exports.UIMODES = exports.UIMODE_DEFAULT = exports.STORAGE_DEFAULT = exports.STORAGE = exports.PREFIXES = exports.PREFIX_DEFAULT = exports.NOTIFICATION_DEFAULT = exports.METADATA_UP_DEFAULT = exports.METADATA_UP = exports.LOCKING = exports.LOCKING_DEFAULT = exports.LEDGER_CONN = exports.LEDGER_CONN_DEFAULT = exports.LANGUAGE_DEFAULT = exports.ICONS = exports.ICON_DEFAULT_HOST = exports.ICON_DEFAULT = exports.ENDPOINTS = exports.ENDPOINT_DEFAULT = exports.CRYPTOS_LEDGER = exports.CRYPTOS_ETH = exports.CRYPTOS = exports.CAMERA = exports.CAMERA_DEFAULT = void 0; | ||
const crypto_js_1 = require("./crypto.js"); | ||
exports.STORAGE = exports.STORAGE_DEFAULT = exports.METADATA_UP = exports.METADATA_UP_DEFAULT = exports.LOCKING = exports.LOCKING_DEFAULT = exports.LANGUAGE_DEFAULT = exports.CAMERA = exports.CAMERA_DEFAULT = exports.UITHEMES = exports.UITHEME_DEFAULT = exports.UIMODES = exports.UIMODE_DEFAULT = exports.NOTIFICATION_DEFAULT = exports.ICONS = exports.ICON_DEFAULT_HOST = exports.ICON_DEFAULT = exports.PREFIXES = exports.PREFIX_DEFAULT = exports.LEDGER_CONN_DEFAULT = exports.LEDGER_CONN = exports.ENDPOINTS = exports.ENDPOINT_DEFAULT = exports.CRYPTOS_LEDGER = exports.CRYPTOS_ETH = exports.CRYPTOS = void 0; | ||
var crypto_js_1 = require("./crypto.js"); | ||
Object.defineProperty(exports, "CRYPTOS", { enumerable: true, get: function () { return crypto_js_1.CRYPTOS; } }); | ||
Object.defineProperty(exports, "CRYPTOS_ETH", { enumerable: true, get: function () { return crypto_js_1.CRYPTOS_ETH; } }); | ||
Object.defineProperty(exports, "CRYPTOS_LEDGER", { enumerable: true, get: function () { return crypto_js_1.CRYPTOS_LEDGER; } }); | ||
const endpoints_js_1 = require("./endpoints.js"); | ||
var endpoints_js_1 = require("./endpoints.js"); | ||
Object.defineProperty(exports, "ENDPOINT_DEFAULT", { enumerable: true, get: function () { return endpoints_js_1.ENDPOINT_DEFAULT; } }); | ||
Object.defineProperty(exports, "ENDPOINTS", { enumerable: true, get: function () { return endpoints_js_1.ENDPOINTS; } }); | ||
const ledger_js_1 = require("./ledger.js"); | ||
var ledger_js_1 = require("./ledger.js"); | ||
Object.defineProperty(exports, "LEDGER_CONN", { enumerable: true, get: function () { return ledger_js_1.LEDGER_CONN; } }); | ||
Object.defineProperty(exports, "LEDGER_CONN_DEFAULT", { enumerable: true, get: function () { return ledger_js_1.LEDGER_CONN_DEFAULT; } }); | ||
const ss58_js_1 = require("./ss58.js"); | ||
var ss58_js_1 = require("./ss58.js"); | ||
Object.defineProperty(exports, "PREFIX_DEFAULT", { enumerable: true, get: function () { return ss58_js_1.PREFIX_DEFAULT; } }); | ||
Object.defineProperty(exports, "PREFIXES", { enumerable: true, get: function () { return ss58_js_1.PREFIXES; } }); | ||
const ui_js_1 = require("./ui.js"); | ||
var ui_js_1 = require("./ui.js"); | ||
Object.defineProperty(exports, "ICON_DEFAULT", { enumerable: true, get: function () { return ui_js_1.ICON_DEFAULT; } }); | ||
@@ -26,5 +26,4 @@ Object.defineProperty(exports, "ICON_DEFAULT_HOST", { enumerable: true, get: function () { return ui_js_1.ICON_DEFAULT_HOST; } }); | ||
Object.defineProperty(exports, "UITHEMES", { enumerable: true, get: function () { return ui_js_1.UITHEMES; } }); | ||
const CAMERA_DEFAULT = 'off'; | ||
exports.CAMERA_DEFAULT = CAMERA_DEFAULT; | ||
const CAMERA = [ | ||
exports.CAMERA_DEFAULT = 'off'; | ||
exports.CAMERA = [ | ||
{ | ||
@@ -41,8 +40,5 @@ info: 'on', | ||
]; | ||
exports.CAMERA = CAMERA; | ||
const LANGUAGE_DEFAULT = 'default'; | ||
exports.LANGUAGE_DEFAULT = LANGUAGE_DEFAULT; | ||
const LOCKING_DEFAULT = 'session'; | ||
exports.LOCKING_DEFAULT = LOCKING_DEFAULT; | ||
const LOCKING = [ | ||
exports.LANGUAGE_DEFAULT = 'default'; | ||
exports.LOCKING_DEFAULT = 'session'; | ||
exports.LOCKING = [ | ||
{ | ||
@@ -59,6 +55,4 @@ info: 'session', | ||
]; | ||
exports.LOCKING = LOCKING; | ||
const METADATA_UP_DEFAULT = 'off'; | ||
exports.METADATA_UP_DEFAULT = METADATA_UP_DEFAULT; | ||
const METADATA_UP = [ | ||
exports.METADATA_UP_DEFAULT = 'off'; | ||
exports.METADATA_UP = [ | ||
{ | ||
@@ -75,6 +69,4 @@ info: 'off', | ||
]; | ||
exports.METADATA_UP = METADATA_UP; | ||
const STORAGE_DEFAULT = 'off'; | ||
exports.STORAGE_DEFAULT = STORAGE_DEFAULT; | ||
const STORAGE = [ | ||
exports.STORAGE_DEFAULT = 'off'; | ||
exports.STORAGE = [ | ||
{ | ||
@@ -91,2 +83,1 @@ info: 'on', | ||
]; | ||
exports.STORAGE = STORAGE; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.UITHEMES = exports.UITHEME_DEFAULT = exports.UIMODES = exports.UIMODE_DEFAULT = exports.NOTIFICATION_DEFAULT = exports.LANGUAGE_DEFAULT = exports.ICONS = exports.ICON_DEFAULT_HOST = exports.ICON_DEFAULT = void 0; | ||
exports.NOTIFICATION_DEFAULT = exports.ICONS = exports.ICON_DEFAULT_HOST = exports.ICON_DEFAULT = exports.UITHEMES = exports.UITHEME_DEFAULT = exports.UIMODES = exports.UIMODE_DEFAULT = exports.LANGUAGE_DEFAULT = void 0; | ||
const type_js_1 = require("./type.js"); | ||
const LANGUAGE_DEFAULT = 'default'; | ||
exports.LANGUAGE_DEFAULT = LANGUAGE_DEFAULT; | ||
const UIMODE_DEFAULT = !type_js_1.isPolkadot && typeof window !== 'undefined' && window.location.host.includes('ui-light') | ||
exports.LANGUAGE_DEFAULT = 'default'; | ||
exports.UIMODE_DEFAULT = !type_js_1.isPolkadot && typeof window !== 'undefined' && window.location.host.includes('ui-light') | ||
? 'light' | ||
: 'full'; | ||
exports.UIMODE_DEFAULT = UIMODE_DEFAULT; | ||
const UIMODES = [ | ||
exports.UIMODES = [ | ||
{ | ||
@@ -23,8 +21,6 @@ info: 'full', | ||
]; | ||
exports.UIMODES = UIMODES; | ||
const UITHEME_DEFAULT = type_js_1.isPolkadot | ||
exports.UITHEME_DEFAULT = type_js_1.isPolkadot | ||
? 'polkadot' | ||
: 'substrate'; | ||
exports.UITHEME_DEFAULT = UITHEME_DEFAULT; | ||
const UITHEMES = [ | ||
exports.UITHEMES = [ | ||
{ | ||
@@ -41,10 +37,7 @@ info: 'polkadot', | ||
]; | ||
exports.UITHEMES = UITHEMES; | ||
const ICON_DEFAULT = 'default'; | ||
exports.ICON_DEFAULT = ICON_DEFAULT; | ||
const ICON_DEFAULT_HOST = type_js_1.isPolkadot | ||
exports.ICON_DEFAULT = 'default'; | ||
exports.ICON_DEFAULT_HOST = type_js_1.isPolkadot | ||
? 'polkadot' | ||
: 'substrate'; | ||
exports.ICON_DEFAULT_HOST = ICON_DEFAULT_HOST; | ||
const ICONS = [ | ||
exports.ICONS = [ | ||
{ | ||
@@ -71,4 +64,2 @@ info: 'default', | ||
]; | ||
exports.ICONS = ICONS; | ||
const NOTIFICATION_DEFAULT = 'popup'; | ||
exports.NOTIFICATION_DEFAULT = NOTIFICATION_DEFAULT; | ||
exports.NOTIFICATION_DEFAULT = 'popup'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.packageInfo = void 0; | ||
exports.packageInfo = { name: '@polkadot/ui-settings', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '3.1.4' }; | ||
exports.packageInfo = { name: '@polkadot/ui-settings', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '3.2.1' }; |
type ChainDef = string[]; | ||
declare const chains: Record<string, ChainDef>; | ||
export { chains }; | ||
export declare const chains: Record<string, ChainDef>; | ||
export {}; |
import { selectableNetworks } from '@polkadot/networks'; | ||
import { objectSpread } from '@polkadot/util'; | ||
const chains = selectableNetworks | ||
export const chains = /*#__PURE__*/ selectableNetworks | ||
.filter((n) => n.genesisHash.length) | ||
.reduce((chains, { genesisHash, network }) => objectSpread(chains, { [network]: genesisHash }), {}); | ||
export { chains }; |
@@ -1,6 +0,8 @@ | ||
export const ENDPOINTS = [{ | ||
export const ENDPOINTS = [ | ||
{ | ||
info: 'local', | ||
text: 'Local Node (Own, 127.0.0.1:9944)', | ||
value: 'ws://127.0.0.1:9944/' | ||
}]; | ||
} | ||
]; | ||
export const ENDPOINT_DEFAULT = ENDPOINTS[0]; |
import type { Option } from '../types.js'; | ||
import { CRYPTOS, CRYPTOS_ETH, CRYPTOS_LEDGER } from './crypto.js'; | ||
import { ENDPOINT_DEFAULT, ENDPOINTS } from './endpoints.js'; | ||
import { LEDGER_CONN, LEDGER_CONN_DEFAULT } from './ledger.js'; | ||
import { PREFIX_DEFAULT, PREFIXES } from './ss58.js'; | ||
import { ICON_DEFAULT, ICON_DEFAULT_HOST, ICONS, NOTIFICATION_DEFAULT, UIMODE_DEFAULT, UIMODES, UITHEME_DEFAULT, UITHEMES } from './ui.js'; | ||
declare const CAMERA_DEFAULT = "off"; | ||
declare const CAMERA: Option[]; | ||
declare const LANGUAGE_DEFAULT = "default"; | ||
declare const LOCKING_DEFAULT = "session"; | ||
declare const LOCKING: Option[]; | ||
declare const METADATA_UP_DEFAULT = "off"; | ||
declare const METADATA_UP: Option[]; | ||
declare const STORAGE_DEFAULT = "off"; | ||
declare const STORAGE: Option[]; | ||
export { CAMERA_DEFAULT, CAMERA, CRYPTOS, CRYPTOS_ETH, CRYPTOS_LEDGER, ENDPOINT_DEFAULT, ENDPOINTS, ICON_DEFAULT, ICON_DEFAULT_HOST, ICONS, LANGUAGE_DEFAULT, LEDGER_CONN_DEFAULT, LEDGER_CONN, LOCKING_DEFAULT, LOCKING, METADATA_UP, METADATA_UP_DEFAULT, NOTIFICATION_DEFAULT, PREFIX_DEFAULT, PREFIXES, STORAGE, STORAGE_DEFAULT, UIMODE_DEFAULT, UIMODES, UITHEME_DEFAULT, UITHEMES }; | ||
export { CRYPTOS, CRYPTOS_ETH, CRYPTOS_LEDGER } from './crypto.js'; | ||
export { ENDPOINT_DEFAULT, ENDPOINTS } from './endpoints.js'; | ||
export { LEDGER_CONN, LEDGER_CONN_DEFAULT } from './ledger.js'; | ||
export { PREFIX_DEFAULT, PREFIXES } from './ss58.js'; | ||
export { ICON_DEFAULT, ICON_DEFAULT_HOST, ICONS, NOTIFICATION_DEFAULT, UIMODE_DEFAULT, UIMODES, UITHEME_DEFAULT, UITHEMES } from './ui.js'; | ||
export declare const CAMERA_DEFAULT = "off"; | ||
export declare const CAMERA: Option[]; | ||
export declare const LANGUAGE_DEFAULT = "default"; | ||
export declare const LOCKING_DEFAULT = "session"; | ||
export declare const LOCKING: Option[]; | ||
export declare const METADATA_UP_DEFAULT = "off"; | ||
export declare const METADATA_UP: Option[]; | ||
export declare const STORAGE_DEFAULT = "off"; | ||
export declare const STORAGE: Option[]; |
@@ -1,8 +0,8 @@ | ||
import { CRYPTOS, CRYPTOS_ETH, CRYPTOS_LEDGER } from './crypto.js'; | ||
import { ENDPOINT_DEFAULT, ENDPOINTS } from './endpoints.js'; | ||
import { LEDGER_CONN, LEDGER_CONN_DEFAULT } from './ledger.js'; | ||
import { PREFIX_DEFAULT, PREFIXES } from './ss58.js'; | ||
import { ICON_DEFAULT, ICON_DEFAULT_HOST, ICONS, NOTIFICATION_DEFAULT, UIMODE_DEFAULT, UIMODES, UITHEME_DEFAULT, UITHEMES } from './ui.js'; | ||
const CAMERA_DEFAULT = 'off'; | ||
const CAMERA = [ | ||
export { CRYPTOS, CRYPTOS_ETH, CRYPTOS_LEDGER } from './crypto.js'; | ||
export { ENDPOINT_DEFAULT, ENDPOINTS } from './endpoints.js'; | ||
export { LEDGER_CONN, LEDGER_CONN_DEFAULT } from './ledger.js'; | ||
export { PREFIX_DEFAULT, PREFIXES } from './ss58.js'; | ||
export { ICON_DEFAULT, ICON_DEFAULT_HOST, ICONS, NOTIFICATION_DEFAULT, UIMODE_DEFAULT, UIMODES, UITHEME_DEFAULT, UITHEMES } from './ui.js'; | ||
export const CAMERA_DEFAULT = 'off'; | ||
export const CAMERA = [ | ||
{ | ||
@@ -19,5 +19,5 @@ info: 'on', | ||
]; | ||
const LANGUAGE_DEFAULT = 'default'; | ||
const LOCKING_DEFAULT = 'session'; | ||
const LOCKING = [ | ||
export const LANGUAGE_DEFAULT = 'default'; | ||
export const LOCKING_DEFAULT = 'session'; | ||
export const LOCKING = [ | ||
{ | ||
@@ -34,4 +34,4 @@ info: 'session', | ||
]; | ||
const METADATA_UP_DEFAULT = 'off'; | ||
const METADATA_UP = [ | ||
export const METADATA_UP_DEFAULT = 'off'; | ||
export const METADATA_UP = [ | ||
{ | ||
@@ -48,4 +48,4 @@ info: 'off', | ||
]; | ||
const STORAGE_DEFAULT = 'off'; | ||
const STORAGE = [ | ||
export const STORAGE_DEFAULT = 'off'; | ||
export const STORAGE = [ | ||
{ | ||
@@ -62,2 +62,1 @@ info: 'on', | ||
]; | ||
export { CAMERA_DEFAULT, CAMERA, CRYPTOS, CRYPTOS_ETH, CRYPTOS_LEDGER, ENDPOINT_DEFAULT, ENDPOINTS, ICON_DEFAULT, ICON_DEFAULT_HOST, ICONS, LANGUAGE_DEFAULT, LEDGER_CONN_DEFAULT, LEDGER_CONN, LOCKING_DEFAULT, LOCKING, METADATA_UP, METADATA_UP_DEFAULT, NOTIFICATION_DEFAULT, PREFIX_DEFAULT, PREFIXES, STORAGE, STORAGE_DEFAULT, UIMODE_DEFAULT, UIMODES, UITHEME_DEFAULT, UITHEMES }; |
import type { Option } from '../types.js'; | ||
declare const LANGUAGE_DEFAULT = "default"; | ||
declare const UIMODE_DEFAULT: string; | ||
declare const UIMODES: Option[]; | ||
declare const UITHEME_DEFAULT: string; | ||
declare const UITHEMES: Option[]; | ||
declare const ICON_DEFAULT = "default"; | ||
declare const ICON_DEFAULT_HOST: string; | ||
declare const ICONS: Option[]; | ||
declare const NOTIFICATION_DEFAULT = "popup"; | ||
export { ICON_DEFAULT, ICON_DEFAULT_HOST, ICONS, LANGUAGE_DEFAULT, NOTIFICATION_DEFAULT, UIMODE_DEFAULT, UIMODES, UITHEME_DEFAULT, UITHEMES }; | ||
export declare const LANGUAGE_DEFAULT = "default"; | ||
export declare const UIMODE_DEFAULT: string; | ||
export declare const UIMODES: Option[]; | ||
export declare const UITHEME_DEFAULT: string; | ||
export declare const UITHEMES: Option[]; | ||
export declare const ICON_DEFAULT = "default"; | ||
export declare const ICON_DEFAULT_HOST: string; | ||
export declare const ICONS: Option[]; | ||
export declare const NOTIFICATION_DEFAULT = "popup"; |
import { isPolkadot } from './type.js'; | ||
const LANGUAGE_DEFAULT = 'default'; | ||
const UIMODE_DEFAULT = !isPolkadot && typeof window !== 'undefined' && window.location.host.includes('ui-light') | ||
export const LANGUAGE_DEFAULT = 'default'; | ||
export const UIMODE_DEFAULT = !isPolkadot && typeof window !== 'undefined' && window.location.host.includes('ui-light') | ||
? 'light' | ||
: 'full'; | ||
const UIMODES = [ | ||
export const UIMODES = [ | ||
{ | ||
@@ -18,6 +18,6 @@ info: 'full', | ||
]; | ||
const UITHEME_DEFAULT = isPolkadot | ||
export const UITHEME_DEFAULT = isPolkadot | ||
? 'polkadot' | ||
: 'substrate'; | ||
const UITHEMES = [ | ||
export const UITHEMES = [ | ||
{ | ||
@@ -34,7 +34,7 @@ info: 'polkadot', | ||
]; | ||
const ICON_DEFAULT = 'default'; | ||
const ICON_DEFAULT_HOST = isPolkadot | ||
export const ICON_DEFAULT = 'default'; | ||
export const ICON_DEFAULT_HOST = isPolkadot | ||
? 'polkadot' | ||
: 'substrate'; | ||
const ICONS = [ | ||
export const ICONS = [ | ||
{ | ||
@@ -61,3 +61,2 @@ info: 'default', | ||
]; | ||
const NOTIFICATION_DEFAULT = 'popup'; | ||
export { ICON_DEFAULT, ICON_DEFAULT_HOST, ICONS, LANGUAGE_DEFAULT, NOTIFICATION_DEFAULT, UIMODE_DEFAULT, UIMODES, UITHEME_DEFAULT, UITHEMES }; | ||
export const NOTIFICATION_DEFAULT = 'popup'; |
@@ -6,3 +6,3 @@ { | ||
"engines": { | ||
"node": ">=14" | ||
"node": ">=16" | ||
}, | ||
@@ -22,3 +22,3 @@ "homepage": "https://github.com/polkadot-js/ui/tree/master/packages/ui-settings#readme", | ||
"type": "module", | ||
"version": "3.1.4", | ||
"version": "3.2.1", | ||
"main": "./cjs/index.js", | ||
@@ -116,4 +116,4 @@ "module": "./index.js", | ||
"dependencies": { | ||
"@polkadot/networks": "^11.1.3", | ||
"@polkadot/util": "^11.1.3", | ||
"@polkadot/networks": "^12.0.1", | ||
"@polkadot/util": "^12.0.1", | ||
"eventemitter3": "^5.0.0", | ||
@@ -120,0 +120,0 @@ "store": "^2.0.12", |
@@ -1,1 +0,1 @@ | ||
export const packageInfo = { name: '@polkadot/ui-settings', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '3.1.4' }; | ||
export const packageInfo = { name: '@polkadot/ui-settings', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '3.2.1' }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
106610
2294
+ Added@polkadot/networks@12.6.2(transitive)
+ Added@polkadot/util@12.6.2(transitive)
+ Added@polkadot/x-bigint@12.6.2(transitive)
+ Added@polkadot/x-global@12.6.2(transitive)
+ Added@polkadot/x-textdecoder@12.6.2(transitive)
+ Added@polkadot/x-textencoder@12.6.2(transitive)
- Removed@polkadot/networks@11.1.3(transitive)
- Removed@polkadot/util@11.1.3(transitive)
- Removed@polkadot/x-bigint@11.1.3(transitive)
- Removed@polkadot/x-global@11.1.3(transitive)
- Removed@polkadot/x-textdecoder@11.1.3(transitive)
- Removed@polkadot/x-textencoder@11.1.3(transitive)
Updated@polkadot/networks@^12.0.1
Updated@polkadot/util@^12.0.1