@fivenorth/loop-sdk 0.4.0 → 0.5.0
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/dist/index.js +10 -2
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -2480,6 +2480,8 @@ class LoopSDK {
|
|
|
2480
2480
|
return;
|
|
2481
2481
|
}
|
|
2482
2482
|
const overlay = document.createElement("div");
|
|
2483
|
+
overlay.id = "loop-sdk-connect-overlay";
|
|
2484
|
+
overlay.className = "loop-sdk-connect-overlay";
|
|
2483
2485
|
overlay.style.position = "fixed";
|
|
2484
2486
|
overlay.style.top = "0";
|
|
2485
2487
|
overlay.style.left = "0";
|
|
@@ -2491,9 +2493,14 @@ class LoopSDK {
|
|
|
2491
2493
|
overlay.style.alignItems = "center";
|
|
2492
2494
|
overlay.style.zIndex = "1000";
|
|
2493
2495
|
overlay.style.flexDirection = "column";
|
|
2496
|
+
const content = document.createElement("div");
|
|
2497
|
+
content.className = "loop-sdk-connect-content";
|
|
2498
|
+
content.style.display = "flex";
|
|
2499
|
+
content.style.flexDirection = "column";
|
|
2500
|
+
content.style.alignItems = "center";
|
|
2494
2501
|
const img = document.createElement("img");
|
|
2495
2502
|
img.src = dataUrl;
|
|
2496
|
-
|
|
2503
|
+
content.appendChild(img);
|
|
2497
2504
|
const link = document.createElement("a");
|
|
2498
2505
|
link.href = url;
|
|
2499
2506
|
link.textContent = "Or click here to connect";
|
|
@@ -2503,7 +2510,8 @@ class LoopSDK {
|
|
|
2503
2510
|
e.preventDefault();
|
|
2504
2511
|
this.openWallet(url);
|
|
2505
2512
|
};
|
|
2506
|
-
|
|
2513
|
+
content.appendChild(link);
|
|
2514
|
+
overlay.appendChild(content);
|
|
2507
2515
|
overlay.onclick = (e) => {
|
|
2508
2516
|
if (e.target === overlay) {
|
|
2509
2517
|
this.hideQrCode();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fivenorth/loop-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"author": "hello@fivenorth.io",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"publishConfig": {
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
|
+
"repository": "github:fivenorth-io/loop-sdk",
|
|
19
20
|
"scripts": {
|
|
20
21
|
"build": "bun build ./src/index.ts --outdir ./dist",
|
|
21
22
|
"prepublishOnly": "bun run build",
|