@nibgate/sdk 0.2.32 → 0.2.33
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/nibgate.js +8 -8
- package/dist/nibgate.js.map +2 -2
- package/dist/nibgate.min.js +42 -42
- package/dist/nibgate.min.js.map +2 -2
- package/package.json +1 -1
- package/src/browser/default-ui.js +8 -8
package/dist/nibgate.js
CHANGED
|
@@ -27359,8 +27359,8 @@ ${prettyStateOverride(stateOverride)}`;
|
|
|
27359
27359
|
<div style="font-size:21px;color:${theme.muted};margin-bottom:48px">Pay to unlock this content</div>
|
|
27360
27360
|
<div data-nibgate-wallet-label class="nui-mono" style="font-size:18px;color:${theme.muted};margin-bottom:40px;min-height:28px">Connect wallet</div>
|
|
27361
27361
|
<div data-nibgate-unlock-wrap style="width:100%;position:relative;border-radius:10px;overflow:hidden;cursor:pointer">
|
|
27362
|
-
<div data-nibgate-unlock-progress style="position:absolute;inset:0;width:0%;background
|
|
27363
|
-
<button type="button" data-nibgate-unlock disabled style="width:100%;padding:14px 0;font-size:17px;font-weight:600;line-height:1;border:0;border-radius:10px;outline:none;cursor:pointer;position:relative;z-index:4;color:#fff;background:${theme.accent};
|
|
27362
|
+
<div data-nibgate-unlock-progress style="position:absolute;inset:0;width:0%;background:rgba(255,255,255,0.35);border-radius:10px;transition:width .05s linear;z-index:2"></div>
|
|
27363
|
+
<button type="button" data-nibgate-unlock disabled style="width:100%;padding:14px 0;font-size:17px;font-weight:600;line-height:1;border:0;border-radius:10px;outline:none;cursor:pointer;position:relative;z-index:4;color:#fff;background:${theme.accent};box-shadow:0 4px 12px rgba(0,0,0,0.15);transition:transform .1s,box-shadow .1s;font-family:inherit;display:flex;align-items:center;justify-content:center">${unlockSVG}Hold to pay</button></div>
|
|
27364
27364
|
<div class="nui-stat" style="text-align:center;margin-top:16px" data-nibgate-status></div>
|
|
27365
27365
|
</div>
|
|
27366
27366
|
<div data-nibgate-premium hidden style="margin-top:32px;border-top:1px solid ${theme.border};padding-top:32px">${options.premiumContentHTML || ""}</div>
|
|
@@ -27461,8 +27461,8 @@ ${prettyStateOverride(stateOverride)}`;
|
|
|
27461
27461
|
holdActive = false;
|
|
27462
27462
|
holdComplete = false;
|
|
27463
27463
|
holdTimer = null;
|
|
27464
|
-
btn.style.transform = "
|
|
27465
|
-
btn.style.boxShadow = "
|
|
27464
|
+
btn.style.transform = "";
|
|
27465
|
+
btn.style.boxShadow = "";
|
|
27466
27466
|
prog.style.width = "0%";
|
|
27467
27467
|
if (!btn.disabled) setBtnText("Hold to pay");
|
|
27468
27468
|
}
|
|
@@ -27471,8 +27471,8 @@ ${prettyStateOverride(stateOverride)}`;
|
|
|
27471
27471
|
e.preventDefault();
|
|
27472
27472
|
holdActive = true;
|
|
27473
27473
|
holdComplete = false;
|
|
27474
|
-
btn.style.transform = "scale(.
|
|
27475
|
-
btn.style.boxShadow = "0 2px
|
|
27474
|
+
btn.style.transform = "scale(0.96)";
|
|
27475
|
+
btn.style.boxShadow = "0 2px 8px rgba(0,0,0,0.2)";
|
|
27476
27476
|
prog.style.transition = "none";
|
|
27477
27477
|
prog.style.width = "0%";
|
|
27478
27478
|
setBtnText("Hold\u2026");
|
|
@@ -27483,8 +27483,8 @@ ${prettyStateOverride(stateOverride)}`;
|
|
|
27483
27483
|
holdTimer = setTimeout(() => {
|
|
27484
27484
|
holdComplete = true;
|
|
27485
27485
|
holdActive = false;
|
|
27486
|
-
btn.style.transform = "
|
|
27487
|
-
btn.style.boxShadow = "
|
|
27486
|
+
btn.style.transform = "";
|
|
27487
|
+
btn.style.boxShadow = "";
|
|
27488
27488
|
prog.style.transition = "width .05s linear";
|
|
27489
27489
|
setBtnText("Processing\u2026");
|
|
27490
27490
|
btn.disabled = true;
|