@xrpl-wallet-kit/browser 0.1.6 → 0.1.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.
- package/README.md +8 -3
- package/dist/xrpl-wallet-kit-legacy-bridge.js +11 -4
- package/dist/xrpl-wallet-kit.iife.js +451 -88
- package/dist/xrpl-wallet-kit.iife.min.js +48 -48
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -20,9 +20,14 @@ The package publishes:
|
|
|
20
20
|
<div id="connect-wallet"></div>
|
|
21
21
|
<script src="./xrpl-wallet-kit.iife.min.js"></script>
|
|
22
22
|
<script>
|
|
23
|
-
const kit = window.XRPLWalletKit.createWalletKit({
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
const kit = window.XRPLWalletKit.createWalletKit({
|
|
24
|
+
metadata: {
|
|
25
|
+
name: "My XRPL App",
|
|
26
|
+
description: "Wallet connection for My XRPL App",
|
|
27
|
+
url: window.location.origin,
|
|
28
|
+
icons: [window.location.origin + "/icon.png"]
|
|
29
|
+
},
|
|
30
|
+
network: "mainnet",
|
|
26
31
|
autoReconnect: true,
|
|
27
32
|
walletConnectProjectId: "YOUR_WALLETCONNECT_PROJECT_ID",
|
|
28
33
|
ui: {
|
|
@@ -261,11 +261,18 @@
|
|
|
261
261
|
}
|
|
262
262
|
function createKitOptions(options, mount) {
|
|
263
263
|
var ui = mergeUiConfig(createDefaultUi(options), options.ui);
|
|
264
|
+
var metadata = Object.assign({
|
|
265
|
+
name: options.appName || document.title || 'XRPL dApp',
|
|
266
|
+
description: options.appDescription || '',
|
|
267
|
+
url: options.appUrl || window.location.origin,
|
|
268
|
+
icons: options.appIcons || []
|
|
269
|
+
}, options.metadata || {});
|
|
264
270
|
return Object.assign({
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
271
|
+
metadata: metadata,
|
|
272
|
+
appName: metadata.name,
|
|
273
|
+
appDescription: metadata.description,
|
|
274
|
+
appUrl: metadata.url,
|
|
275
|
+
appIcons: metadata.icons,
|
|
269
276
|
network: options.network || 'mainnet',
|
|
270
277
|
storage: options.storage || 'localStorage',
|
|
271
278
|
autoReconnect: options.autoReconnect !== false,
|