@pezkuwi/ui-settings 3.16.7 → 3.16.8

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.
Files changed (120) hide show
  1. package/package.json +223 -6
  2. package/build/README.md +0 -40
  3. package/build/Settings.js +0 -172
  4. package/build/bundle.js +0 -5
  5. package/build/cjs/Settings.d.ts +0 -40
  6. package/build/cjs/Settings.js +0 -177
  7. package/build/cjs/bundle.d.ts +0 -5
  8. package/build/cjs/bundle.js +0 -19
  9. package/build/cjs/defaults/chains.js +0 -8
  10. package/build/cjs/defaults/crypto.js +0 -35
  11. package/build/cjs/defaults/endpoints.js +0 -11
  12. package/build/cjs/defaults/index.js +0 -80
  13. package/build/cjs/defaults/ledger.js +0 -45
  14. package/build/cjs/defaults/ss58.js +0 -16
  15. package/build/cjs/defaults/type.js +0 -4
  16. package/build/cjs/defaults/ui.js +0 -62
  17. package/build/cjs/index.js +0 -6
  18. package/build/cjs/packageDetect.js +0 -5
  19. package/build/cjs/packageInfo.js +0 -4
  20. package/build/cjs/types.js +0 -2
  21. package/build/defaults/chains.d.ts +0 -3
  22. package/build/defaults/chains.js +0 -5
  23. package/build/defaults/crypto.d.ts +0 -4
  24. package/build/defaults/crypto.js +0 -32
  25. package/build/defaults/endpoints.d.ts +0 -3
  26. package/build/defaults/endpoints.js +0 -8
  27. package/build/defaults/index.d.ts +0 -15
  28. package/build/defaults/index.js +0 -58
  29. package/build/defaults/ledger.d.ts +0 -5
  30. package/build/defaults/ledger.js +0 -42
  31. package/build/defaults/ss58.d.ts +0 -3
  32. package/build/defaults/ss58.js +0 -13
  33. package/build/defaults/type.d.ts +0 -1
  34. package/build/defaults/type.js +0 -1
  35. package/build/defaults/ui.d.ts +0 -10
  36. package/build/defaults/ui.js +0 -59
  37. package/build/index.d.ts +0 -3
  38. package/build/index.js +0 -3
  39. package/build/package.json +0 -254
  40. package/build/packageDetect.d.ts +0 -1
  41. package/build/packageDetect.js +0 -3
  42. package/build/packageInfo.d.ts +0 -6
  43. package/build/packageInfo.js +0 -1
  44. package/build/types.d.ts +0 -35
  45. package/build/types.js +0 -1
  46. package/src/Settings.ts +0 -236
  47. package/src/bundle.ts +0 -10
  48. package/src/defaults/chains.ts +0 -11
  49. package/src/defaults/crypto.ts +0 -39
  50. package/src/defaults/endpoints.ts +0 -14
  51. package/src/defaults/index.ts +0 -72
  52. package/src/defaults/ledger.ts +0 -50
  53. package/src/defaults/ss58.ts +0 -22
  54. package/src/defaults/type.ts +0 -5
  55. package/src/defaults/ui.ts +0 -73
  56. package/src/index.ts +0 -8
  57. package/src/packageDetect.ts +0 -11
  58. package/src/packageInfo.ts +0 -6
  59. package/src/types.ts +0 -42
  60. package/tsconfig.build.json +0 -9
  61. package/tsconfig.build.tsbuildinfo +0 -1
  62. /package/{build/LICENSE → LICENSE} +0 -0
  63. /package/{build-tsc/Settings.d.ts → Settings.d.ts} +0 -0
  64. /package/{build-tsc-esm/Settings.js → Settings.js} +0 -0
  65. /package/{build/bundle-pezkuwi-ui-settings.js → bundle-pezkuwi-ui-settings.js} +0 -0
  66. /package/{build-tsc/bundle.d.ts → bundle.d.ts} +0 -0
  67. /package/{build-tsc-esm/bundle.js → bundle.js} +0 -0
  68. /package/{build → cjs}/Settings.d.ts +0 -0
  69. /package/{build-tsc-cjs → cjs}/Settings.js +0 -0
  70. /package/{build → cjs}/bundle.d.ts +0 -0
  71. /package/{build-tsc-cjs → cjs}/bundle.js +0 -0
  72. /package/{build-tsc → cjs}/defaults/chains.d.ts +0 -0
  73. /package/{build-tsc-cjs → cjs}/defaults/chains.js +0 -0
  74. /package/{build-tsc → cjs}/defaults/crypto.d.ts +0 -0
  75. /package/{build-tsc-cjs → cjs}/defaults/crypto.js +0 -0
  76. /package/{build-tsc → cjs}/defaults/endpoints.d.ts +0 -0
  77. /package/{build-tsc-cjs → cjs}/defaults/endpoints.js +0 -0
  78. /package/{build-tsc → cjs}/defaults/index.d.ts +0 -0
  79. /package/{build-tsc-cjs → cjs}/defaults/index.js +0 -0
  80. /package/{build-tsc → cjs}/defaults/ledger.d.ts +0 -0
  81. /package/{build-tsc-cjs → cjs}/defaults/ledger.js +0 -0
  82. /package/{build-tsc → cjs}/defaults/ss58.d.ts +0 -0
  83. /package/{build-tsc-cjs → cjs}/defaults/ss58.js +0 -0
  84. /package/{build-tsc → cjs}/defaults/type.d.ts +0 -0
  85. /package/{build-tsc-cjs → cjs}/defaults/type.js +0 -0
  86. /package/{build-tsc → cjs}/defaults/ui.d.ts +0 -0
  87. /package/{build-tsc-cjs → cjs}/defaults/ui.js +0 -0
  88. /package/{build-tsc → cjs}/index.d.ts +0 -0
  89. /package/{build-tsc-cjs → cjs}/index.js +0 -0
  90. /package/{build/cjs → cjs}/package.json +0 -0
  91. /package/{build-tsc → cjs}/packageDetect.d.ts +0 -0
  92. /package/{build-tsc-cjs → cjs}/packageDetect.js +0 -0
  93. /package/{build-tsc → cjs}/packageInfo.d.ts +0 -0
  94. /package/{build-tsc-cjs → cjs}/packageInfo.js +0 -0
  95. /package/{build-tsc → cjs}/types.d.ts +0 -0
  96. /package/{build-tsc-cjs → cjs}/types.js +0 -0
  97. /package/{build/cjs/defaults → defaults}/chains.d.ts +0 -0
  98. /package/{build-tsc-esm/defaults → defaults}/chains.js +0 -0
  99. /package/{build/cjs/defaults → defaults}/crypto.d.ts +0 -0
  100. /package/{build-tsc-esm/defaults → defaults}/crypto.js +0 -0
  101. /package/{build/cjs/defaults → defaults}/endpoints.d.ts +0 -0
  102. /package/{build-tsc-esm/defaults → defaults}/endpoints.js +0 -0
  103. /package/{build/cjs/defaults → defaults}/index.d.ts +0 -0
  104. /package/{build-tsc-esm/defaults → defaults}/index.js +0 -0
  105. /package/{build/cjs/defaults → defaults}/ledger.d.ts +0 -0
  106. /package/{build-tsc-esm/defaults → defaults}/ledger.js +0 -0
  107. /package/{build/cjs/defaults → defaults}/ss58.d.ts +0 -0
  108. /package/{build-tsc-esm/defaults → defaults}/ss58.js +0 -0
  109. /package/{build/cjs/defaults → defaults}/type.d.ts +0 -0
  110. /package/{build-tsc-esm/defaults → defaults}/type.js +0 -0
  111. /package/{build/cjs/defaults → defaults}/ui.d.ts +0 -0
  112. /package/{build-tsc-esm/defaults → defaults}/ui.js +0 -0
  113. /package/{build/cjs/index.d.ts → index.d.ts} +0 -0
  114. /package/{build-tsc-esm/index.js → index.js} +0 -0
  115. /package/{build/cjs/packageDetect.d.ts → packageDetect.d.ts} +0 -0
  116. /package/{build-tsc-esm/packageDetect.js → packageDetect.js} +0 -0
  117. /package/{build/cjs/packageInfo.d.ts → packageInfo.d.ts} +0 -0
  118. /package/{build-tsc-esm/packageInfo.js → packageInfo.js} +0 -0
  119. /package/{build/cjs/types.d.ts → types.d.ts} +0 -0
  120. /package/{build-tsc-esm/types.js → types.js} +0 -0
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.settings = exports.Settings = exports.packageInfo = exports.UITHEME_DEFAULT = exports.UIMODE_DEFAULT = exports.PREFIX_DEFAULT = exports.LOCKING_DEFAULT = exports.LANGUAGE_DEFAULT = exports.ICON_DEFAULT_HOST = exports.ICON_DEFAULT = exports.ENDPOINT_DEFAULT = exports.chains = void 0;
4
- const Settings_js_1 = require("./Settings.js");
5
- Object.defineProperty(exports, "Settings", { enumerable: true, get: function () { return Settings_js_1.Settings; } });
6
- Object.defineProperty(exports, "settings", { enumerable: true, get: function () { return Settings_js_1.settings; } });
7
- var chains_js_1 = require("./defaults/chains.js");
8
- Object.defineProperty(exports, "chains", { enumerable: true, get: function () { return chains_js_1.chains; } });
9
- var index_js_1 = require("./defaults/index.js");
10
- Object.defineProperty(exports, "ENDPOINT_DEFAULT", { enumerable: true, get: function () { return index_js_1.ENDPOINT_DEFAULT; } });
11
- Object.defineProperty(exports, "ICON_DEFAULT", { enumerable: true, get: function () { return index_js_1.ICON_DEFAULT; } });
12
- Object.defineProperty(exports, "ICON_DEFAULT_HOST", { enumerable: true, get: function () { return index_js_1.ICON_DEFAULT_HOST; } });
13
- Object.defineProperty(exports, "LANGUAGE_DEFAULT", { enumerable: true, get: function () { return index_js_1.LANGUAGE_DEFAULT; } });
14
- Object.defineProperty(exports, "LOCKING_DEFAULT", { enumerable: true, get: function () { return index_js_1.LOCKING_DEFAULT; } });
15
- Object.defineProperty(exports, "PREFIX_DEFAULT", { enumerable: true, get: function () { return index_js_1.PREFIX_DEFAULT; } });
16
- Object.defineProperty(exports, "UIMODE_DEFAULT", { enumerable: true, get: function () { return index_js_1.UIMODE_DEFAULT; } });
17
- Object.defineProperty(exports, "UITHEME_DEFAULT", { enumerable: true, get: function () { return index_js_1.UITHEME_DEFAULT; } });
18
- var packageInfo_js_1 = require("./packageInfo.js");
19
- Object.defineProperty(exports, "packageInfo", { enumerable: true, get: function () { return packageInfo_js_1.packageInfo; } });
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.chains = void 0;
4
- const networks_1 = require("@pezkuwi/networks");
5
- const util_1 = require("@pezkuwi/util");
6
- exports.chains = networks_1.selectableNetworks
7
- .filter((n) => n.genesisHash.length)
8
- .reduce((chains, { genesisHash, network }) => (0, util_1.objectSpread)(chains, { [network]: genesisHash }), {});
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CRYPTOS_LEDGER = exports.CRYPTOS_ETH = exports.CRYPTOS = void 0;
4
- exports.CRYPTOS = [
5
- {
6
- info: 'sr25519',
7
- text: 'Schnorrkel (sr25519, recommended)',
8
- value: 'sr25519'
9
- },
10
- {
11
- info: 'ed25519',
12
- text: 'Edwards (ed25519, alternative)',
13
- value: 'ed25519'
14
- },
15
- {
16
- info: 'ecdsa',
17
- text: 'ECDSA (Non BTC/ETH compatible)',
18
- value: 'ecdsa'
19
- }
20
- ];
21
- exports.CRYPTOS_ETH = [
22
- {
23
- info: 'ethereum',
24
- text: 'ECDSA (ETH compatible)',
25
- value: 'ethereum'
26
- }
27
- ];
28
- exports.CRYPTOS_LEDGER = [
29
- ...exports.CRYPTOS,
30
- {
31
- info: 'ed25519-ledger',
32
- text: 'Ledger (ed25519, BIP32 derivation)',
33
- value: 'ed25519-ledger'
34
- }
35
- ];
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ENDPOINT_DEFAULT = exports.ENDPOINTS = void 0;
4
- exports.ENDPOINTS = [
5
- {
6
- info: 'local',
7
- text: 'Local Node (Own, 127.0.0.1:9944)',
8
- value: 'ws://127.0.0.1:9944/'
9
- }
10
- ];
11
- exports.ENDPOINT_DEFAULT = exports.ENDPOINTS[0];
@@ -1,80 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- 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.LEDGER_APP_DEFAULT = exports.LEDGER_APP = exports.ENDPOINTS = exports.ENDPOINT_DEFAULT = exports.CRYPTOS_LEDGER = exports.CRYPTOS_ETH = exports.CRYPTOS = void 0;
4
- var crypto_js_1 = require("./crypto.js");
5
- Object.defineProperty(exports, "CRYPTOS", { enumerable: true, get: function () { return crypto_js_1.CRYPTOS; } });
6
- Object.defineProperty(exports, "CRYPTOS_ETH", { enumerable: true, get: function () { return crypto_js_1.CRYPTOS_ETH; } });
7
- Object.defineProperty(exports, "CRYPTOS_LEDGER", { enumerable: true, get: function () { return crypto_js_1.CRYPTOS_LEDGER; } });
8
- var endpoints_js_1 = require("./endpoints.js");
9
- Object.defineProperty(exports, "ENDPOINT_DEFAULT", { enumerable: true, get: function () { return endpoints_js_1.ENDPOINT_DEFAULT; } });
10
- Object.defineProperty(exports, "ENDPOINTS", { enumerable: true, get: function () { return endpoints_js_1.ENDPOINTS; } });
11
- var ledger_js_1 = require("./ledger.js");
12
- Object.defineProperty(exports, "LEDGER_APP", { enumerable: true, get: function () { return ledger_js_1.LEDGER_APP; } });
13
- Object.defineProperty(exports, "LEDGER_APP_DEFAULT", { enumerable: true, get: function () { return ledger_js_1.LEDGER_APP_DEFAULT; } });
14
- Object.defineProperty(exports, "LEDGER_CONN", { enumerable: true, get: function () { return ledger_js_1.LEDGER_CONN; } });
15
- Object.defineProperty(exports, "LEDGER_CONN_DEFAULT", { enumerable: true, get: function () { return ledger_js_1.LEDGER_CONN_DEFAULT; } });
16
- var ss58_js_1 = require("./ss58.js");
17
- Object.defineProperty(exports, "PREFIX_DEFAULT", { enumerable: true, get: function () { return ss58_js_1.PREFIX_DEFAULT; } });
18
- Object.defineProperty(exports, "PREFIXES", { enumerable: true, get: function () { return ss58_js_1.PREFIXES; } });
19
- var ui_js_1 = require("./ui.js");
20
- Object.defineProperty(exports, "ICON_DEFAULT", { enumerable: true, get: function () { return ui_js_1.ICON_DEFAULT; } });
21
- Object.defineProperty(exports, "ICON_DEFAULT_HOST", { enumerable: true, get: function () { return ui_js_1.ICON_DEFAULT_HOST; } });
22
- Object.defineProperty(exports, "ICONS", { enumerable: true, get: function () { return ui_js_1.ICONS; } });
23
- Object.defineProperty(exports, "NOTIFICATION_DEFAULT", { enumerable: true, get: function () { return ui_js_1.NOTIFICATION_DEFAULT; } });
24
- Object.defineProperty(exports, "UIMODE_DEFAULT", { enumerable: true, get: function () { return ui_js_1.UIMODE_DEFAULT; } });
25
- Object.defineProperty(exports, "UIMODES", { enumerable: true, get: function () { return ui_js_1.UIMODES; } });
26
- Object.defineProperty(exports, "UITHEME_DEFAULT", { enumerable: true, get: function () { return ui_js_1.UITHEME_DEFAULT; } });
27
- Object.defineProperty(exports, "UITHEMES", { enumerable: true, get: function () { return ui_js_1.UITHEMES; } });
28
- exports.CAMERA_DEFAULT = 'off';
29
- exports.CAMERA = [
30
- {
31
- info: 'on',
32
- text: 'Allow camera access',
33
- value: 'on'
34
- },
35
- {
36
- info: 'off',
37
- text: 'Do not allow camera access',
38
- value: 'off'
39
- }
40
- ];
41
- exports.LANGUAGE_DEFAULT = 'default';
42
- exports.LOCKING_DEFAULT = 'session';
43
- exports.LOCKING = [
44
- {
45
- info: 'session',
46
- text: 'Once per session',
47
- value: 'session'
48
- },
49
- {
50
- info: 'tx',
51
- text: 'On each transaction',
52
- value: 'tx'
53
- }
54
- ];
55
- exports.METADATA_UP_DEFAULT = 'off';
56
- exports.METADATA_UP = [
57
- {
58
- info: 'off',
59
- text: 'Do not auto-update extension metadata',
60
- value: 'off'
61
- },
62
- {
63
- info: 'on',
64
- text: 'Auto-update extension metadata',
65
- value: 'on'
66
- }
67
- ];
68
- exports.STORAGE_DEFAULT = 'off';
69
- exports.STORAGE = [
70
- {
71
- info: 'on',
72
- text: 'Allow local in-browser account storage',
73
- value: 'on'
74
- },
75
- {
76
- info: 'off',
77
- text: 'Do not allow local in-browser account storage',
78
- value: 'off'
79
- }
80
- ];
@@ -1,45 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LEDGER_APP = exports.LEDGER_APP_DEFAULT = exports.LEDGER_CONN = exports.LEDGER_CONN_DEFAULT = void 0;
4
- exports.LEDGER_CONN_DEFAULT = 'none';
5
- exports.LEDGER_CONN = [
6
- {
7
- info: 'none',
8
- text: 'Do not attach Ledger devices',
9
- value: 'none'
10
- },
11
- // Deprecated
12
- // {
13
- // info: 'u2f',
14
- // text: 'Attach Ledger via U2F',
15
- // value: 'u2f'
16
- // },
17
- {
18
- info: 'webusb',
19
- text: 'Attach Ledger via WebUSB (Chrome, recommended)',
20
- value: 'webusb'
21
- },
22
- {
23
- info: 'hid',
24
- text: 'Attach Ledger via WebHID (Chrome, experimental)',
25
- value: 'hid'
26
- }
27
- ];
28
- exports.LEDGER_APP_DEFAULT = 'generic';
29
- exports.LEDGER_APP = [
30
- {
31
- info: 'generic',
32
- text: 'Use the Ledger Polkadot Generic App',
33
- value: 'generic'
34
- },
35
- {
36
- info: 'migration',
37
- text: 'Use the Ledger Migration App',
38
- value: 'migration'
39
- },
40
- {
41
- info: 'chainSpecific',
42
- text: 'Use the Chain Specific Ledger App',
43
- value: 'chainSpecific'
44
- }
45
- ];
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PREFIXES = exports.PREFIX_DEFAULT = void 0;
4
- const networks_1 = require("@pezkuwi/networks");
5
- exports.PREFIX_DEFAULT = -1;
6
- const defaultNetwork = {
7
- info: 'default',
8
- text: 'Default for the connected node',
9
- value: -1
10
- };
11
- const networks = networks_1.availableNetworks.map(({ displayName, network, prefix }) => ({
12
- info: network,
13
- text: displayName,
14
- value: prefix
15
- }));
16
- exports.PREFIXES = [defaultNetwork, ...networks];
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isPolkadot = void 0;
4
- exports.isPolkadot = typeof window !== 'undefined' && window.location.host.includes('polkadot');
@@ -1,62 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- 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;
4
- const type_js_1 = require("./type.js");
5
- exports.LANGUAGE_DEFAULT = 'default';
6
- exports.UIMODE_DEFAULT = !type_js_1.isPolkadot && typeof window !== 'undefined' && window.location.host.includes('ui-light')
7
- ? 'light'
8
- : 'full';
9
- exports.UIMODES = [
10
- {
11
- info: 'full',
12
- text: 'Fully featured',
13
- value: 'full'
14
- },
15
- {
16
- info: 'light',
17
- text: 'Basic features only',
18
- value: 'light'
19
- }
20
- ];
21
- exports.UITHEME_DEFAULT = type_js_1.isPolkadot
22
- ? 'polkadot'
23
- : 'substrate';
24
- exports.UITHEMES = [
25
- {
26
- info: 'polkadot',
27
- text: 'Polkadot',
28
- value: 'polkadot'
29
- },
30
- {
31
- info: 'substrate',
32
- text: 'Substrate',
33
- value: 'substrate'
34
- }
35
- ];
36
- exports.ICON_DEFAULT = 'default';
37
- exports.ICON_DEFAULT_HOST = type_js_1.isPolkadot
38
- ? 'polkadot'
39
- : 'substrate';
40
- exports.ICONS = [
41
- {
42
- info: 'default',
43
- text: 'Default for the connected node',
44
- value: 'default'
45
- },
46
- {
47
- info: 'polkadot',
48
- text: 'Polkadot',
49
- value: 'polkadot'
50
- },
51
- {
52
- info: 'substrate',
53
- text: 'Substrate',
54
- value: 'substrate'
55
- },
56
- {
57
- info: 'beachball',
58
- text: 'Beachball',
59
- value: 'beachball'
60
- }
61
- ];
62
- exports.NOTIFICATION_DEFAULT = 'popup';
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const bundle_js_1 = require("./bundle.js");
5
- tslib_1.__exportStar(require("./bundle.js"), exports);
6
- exports.default = bundle_js_1.settings;
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const util_1 = require("@pezkuwi/util");
4
- const packageInfo_js_1 = require("./packageInfo.js");
5
- (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, []);
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.packageInfo = void 0;
4
- exports.packageInfo = { name: '@pezkuwi/ui-settings', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '3.16.6' };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- type ChainDef = string[];
2
- export declare const chains: Record<string, ChainDef>;
3
- export {};
@@ -1,5 +0,0 @@
1
- import { selectableNetworks } from '@pezkuwi/networks';
2
- import { objectSpread } from '@pezkuwi/util';
3
- export const chains = /*#__PURE__*/ selectableNetworks
4
- .filter((n) => n.genesisHash.length)
5
- .reduce((chains, { genesisHash, network }) => objectSpread(chains, { [network]: genesisHash }), {});
@@ -1,4 +0,0 @@
1
- import type { Option } from '../types.js';
2
- export declare const CRYPTOS: Option[];
3
- export declare const CRYPTOS_ETH: Option[];
4
- export declare const CRYPTOS_LEDGER: Option[];
@@ -1,32 +0,0 @@
1
- export const CRYPTOS = [
2
- {
3
- info: 'sr25519',
4
- text: 'Schnorrkel (sr25519, recommended)',
5
- value: 'sr25519'
6
- },
7
- {
8
- info: 'ed25519',
9
- text: 'Edwards (ed25519, alternative)',
10
- value: 'ed25519'
11
- },
12
- {
13
- info: 'ecdsa',
14
- text: 'ECDSA (Non BTC/ETH compatible)',
15
- value: 'ecdsa'
16
- }
17
- ];
18
- export const CRYPTOS_ETH = [
19
- {
20
- info: 'ethereum',
21
- text: 'ECDSA (ETH compatible)',
22
- value: 'ethereum'
23
- }
24
- ];
25
- export const CRYPTOS_LEDGER = [
26
- ...CRYPTOS,
27
- {
28
- info: 'ed25519-ledger',
29
- text: 'Ledger (ed25519, BIP32 derivation)',
30
- value: 'ed25519-ledger'
31
- }
32
- ];
@@ -1,3 +0,0 @@
1
- import type { Option } from '../types.js';
2
- export declare const ENDPOINTS: Option[];
3
- export declare const ENDPOINT_DEFAULT: Option;
@@ -1,8 +0,0 @@
1
- export const ENDPOINTS = [
2
- {
3
- info: 'local',
4
- text: 'Local Node (Own, 127.0.0.1:9944)',
5
- value: 'ws://127.0.0.1:9944/'
6
- }
7
- ];
8
- export const ENDPOINT_DEFAULT = ENDPOINTS[0];
@@ -1,15 +0,0 @@
1
- import type { Option } from '../types.js';
2
- export { CRYPTOS, CRYPTOS_ETH, CRYPTOS_LEDGER } from './crypto.js';
3
- export { ENDPOINT_DEFAULT, ENDPOINTS } from './endpoints.js';
4
- export { LEDGER_APP, LEDGER_APP_DEFAULT, LEDGER_CONN, LEDGER_CONN_DEFAULT } from './ledger.js';
5
- export { PREFIX_DEFAULT, PREFIXES } from './ss58.js';
6
- export { ICON_DEFAULT, ICON_DEFAULT_HOST, ICONS, NOTIFICATION_DEFAULT, UIMODE_DEFAULT, UIMODES, UITHEME_DEFAULT, UITHEMES } from './ui.js';
7
- export declare const CAMERA_DEFAULT = "off";
8
- export declare const CAMERA: Option[];
9
- export declare const LANGUAGE_DEFAULT = "default";
10
- export declare const LOCKING_DEFAULT = "session";
11
- export declare const LOCKING: Option[];
12
- export declare const METADATA_UP_DEFAULT = "off";
13
- export declare const METADATA_UP: Option[];
14
- export declare const STORAGE_DEFAULT = "off";
15
- export declare const STORAGE: Option[];
@@ -1,58 +0,0 @@
1
- export { CRYPTOS, CRYPTOS_ETH, CRYPTOS_LEDGER } from './crypto.js';
2
- export { ENDPOINT_DEFAULT, ENDPOINTS } from './endpoints.js';
3
- export { LEDGER_APP, LEDGER_APP_DEFAULT, LEDGER_CONN, LEDGER_CONN_DEFAULT } from './ledger.js';
4
- export { PREFIX_DEFAULT, PREFIXES } from './ss58.js';
5
- export { ICON_DEFAULT, ICON_DEFAULT_HOST, ICONS, NOTIFICATION_DEFAULT, UIMODE_DEFAULT, UIMODES, UITHEME_DEFAULT, UITHEMES } from './ui.js';
6
- export const CAMERA_DEFAULT = 'off';
7
- export const CAMERA = [
8
- {
9
- info: 'on',
10
- text: 'Allow camera access',
11
- value: 'on'
12
- },
13
- {
14
- info: 'off',
15
- text: 'Do not allow camera access',
16
- value: 'off'
17
- }
18
- ];
19
- export const LANGUAGE_DEFAULT = 'default';
20
- export const LOCKING_DEFAULT = 'session';
21
- export const LOCKING = [
22
- {
23
- info: 'session',
24
- text: 'Once per session',
25
- value: 'session'
26
- },
27
- {
28
- info: 'tx',
29
- text: 'On each transaction',
30
- value: 'tx'
31
- }
32
- ];
33
- export const METADATA_UP_DEFAULT = 'off';
34
- export const METADATA_UP = [
35
- {
36
- info: 'off',
37
- text: 'Do not auto-update extension metadata',
38
- value: 'off'
39
- },
40
- {
41
- info: 'on',
42
- text: 'Auto-update extension metadata',
43
- value: 'on'
44
- }
45
- ];
46
- export const STORAGE_DEFAULT = 'off';
47
- export const STORAGE = [
48
- {
49
- info: 'on',
50
- text: 'Allow local in-browser account storage',
51
- value: 'on'
52
- },
53
- {
54
- info: 'off',
55
- text: 'Do not allow local in-browser account storage',
56
- value: 'off'
57
- }
58
- ];
@@ -1,5 +0,0 @@
1
- import type { Option } from '../types.js';
2
- export declare const LEDGER_CONN_DEFAULT = "none";
3
- export declare const LEDGER_CONN: Option[];
4
- export declare const LEDGER_APP_DEFAULT = "generic";
5
- export declare const LEDGER_APP: Option[];
@@ -1,42 +0,0 @@
1
- export const LEDGER_CONN_DEFAULT = 'none';
2
- export const LEDGER_CONN = [
3
- {
4
- info: 'none',
5
- text: 'Do not attach Ledger devices',
6
- value: 'none'
7
- },
8
- // Deprecated
9
- // {
10
- // info: 'u2f',
11
- // text: 'Attach Ledger via U2F',
12
- // value: 'u2f'
13
- // },
14
- {
15
- info: 'webusb',
16
- text: 'Attach Ledger via WebUSB (Chrome, recommended)',
17
- value: 'webusb'
18
- },
19
- {
20
- info: 'hid',
21
- text: 'Attach Ledger via WebHID (Chrome, experimental)',
22
- value: 'hid'
23
- }
24
- ];
25
- export const LEDGER_APP_DEFAULT = 'generic';
26
- export const LEDGER_APP = [
27
- {
28
- info: 'generic',
29
- text: 'Use the Ledger Polkadot Generic App',
30
- value: 'generic'
31
- },
32
- {
33
- info: 'migration',
34
- text: 'Use the Ledger Migration App',
35
- value: 'migration'
36
- },
37
- {
38
- info: 'chainSpecific',
39
- text: 'Use the Chain Specific Ledger App',
40
- value: 'chainSpecific'
41
- }
42
- ];
@@ -1,3 +0,0 @@
1
- import type { Option } from '../types.js';
2
- export declare const PREFIX_DEFAULT = -1;
3
- export declare const PREFIXES: Option[];
@@ -1,13 +0,0 @@
1
- import { availableNetworks } from '@pezkuwi/networks';
2
- export const PREFIX_DEFAULT = -1;
3
- const defaultNetwork = {
4
- info: 'default',
5
- text: 'Default for the connected node',
6
- value: -1
7
- };
8
- const networks = availableNetworks.map(({ displayName, network, prefix }) => ({
9
- info: network,
10
- text: displayName,
11
- value: prefix
12
- }));
13
- export const PREFIXES = [defaultNetwork, ...networks];
@@ -1 +0,0 @@
1
- export declare const isPolkadot: boolean;
@@ -1 +0,0 @@
1
- export const isPolkadot = typeof window !== 'undefined' && window.location.host.includes('polkadot');
@@ -1,10 +0,0 @@
1
- import type { Option } from '../types.js';
2
- export declare const LANGUAGE_DEFAULT = "default";
3
- export declare const UIMODE_DEFAULT: string;
4
- export declare const UIMODES: Option[];
5
- export declare const UITHEME_DEFAULT: string;
6
- export declare const UITHEMES: Option[];
7
- export declare const ICON_DEFAULT = "default";
8
- export declare const ICON_DEFAULT_HOST: string;
9
- export declare const ICONS: Option[];
10
- export declare const NOTIFICATION_DEFAULT = "popup";
@@ -1,59 +0,0 @@
1
- import { isPolkadot } from './type.js';
2
- export const LANGUAGE_DEFAULT = 'default';
3
- export const UIMODE_DEFAULT = !isPolkadot && typeof window !== 'undefined' && window.location.host.includes('ui-light')
4
- ? 'light'
5
- : 'full';
6
- export const UIMODES = [
7
- {
8
- info: 'full',
9
- text: 'Fully featured',
10
- value: 'full'
11
- },
12
- {
13
- info: 'light',
14
- text: 'Basic features only',
15
- value: 'light'
16
- }
17
- ];
18
- export const UITHEME_DEFAULT = isPolkadot
19
- ? 'polkadot'
20
- : 'substrate';
21
- export const UITHEMES = [
22
- {
23
- info: 'polkadot',
24
- text: 'Polkadot',
25
- value: 'polkadot'
26
- },
27
- {
28
- info: 'substrate',
29
- text: 'Substrate',
30
- value: 'substrate'
31
- }
32
- ];
33
- export const ICON_DEFAULT = 'default';
34
- export const ICON_DEFAULT_HOST = isPolkadot
35
- ? 'polkadot'
36
- : 'substrate';
37
- export const ICONS = [
38
- {
39
- info: 'default',
40
- text: 'Default for the connected node',
41
- value: 'default'
42
- },
43
- {
44
- info: 'polkadot',
45
- text: 'Polkadot',
46
- value: 'polkadot'
47
- },
48
- {
49
- info: 'substrate',
50
- text: 'Substrate',
51
- value: 'substrate'
52
- },
53
- {
54
- info: 'beachball',
55
- text: 'Beachball',
56
- value: 'beachball'
57
- }
58
- ];
59
- export const NOTIFICATION_DEFAULT = 'popup';
package/build/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import { settings } from './bundle.js';
2
- export * from './bundle.js';
3
- export default settings;
package/build/index.js DELETED
@@ -1,3 +0,0 @@
1
- import { settings } from './bundle.js';
2
- export * from './bundle.js';
3
- export default settings;