@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/package.json
CHANGED
|
@@ -83,8 +83,8 @@ export function renderDefaultUnlockUI(container, resource, options = {}) {
|
|
|
83
83
|
<div style="font-size:21px;color:${theme.muted};margin-bottom:48px">Pay to unlock this content</div>
|
|
84
84
|
<div data-nibgate-wallet-label class="nui-mono" style="font-size:18px;color:${theme.muted};margin-bottom:40px;min-height:28px">Connect wallet</div>
|
|
85
85
|
<div data-nibgate-unlock-wrap style="width:100%;position:relative;border-radius:10px;overflow:hidden;cursor:pointer">
|
|
86
|
-
<div data-nibgate-unlock-progress style="position:absolute;inset:0;width:0%;background
|
|
87
|
-
<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};
|
|
86
|
+
<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>
|
|
87
|
+
<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>
|
|
88
88
|
<div class="nui-stat" style="text-align:center;margin-top:16px" data-nibgate-status></div>
|
|
89
89
|
</div>
|
|
90
90
|
<div data-nibgate-premium hidden style="margin-top:32px;border-top:1px solid ${theme.border};padding-top:32px">${options.premiumContentHTML || ''}</div>
|
|
@@ -175,8 +175,8 @@ export function renderDefaultUnlockUI(container, resource, options = {}) {
|
|
|
175
175
|
holdActive = false;
|
|
176
176
|
holdComplete = false;
|
|
177
177
|
holdTimer = null;
|
|
178
|
-
btn.style.transform = '
|
|
179
|
-
btn.style.boxShadow = '
|
|
178
|
+
btn.style.transform = '';
|
|
179
|
+
btn.style.boxShadow = '';
|
|
180
180
|
prog.style.width = '0%';
|
|
181
181
|
if (!btn.disabled) setBtnText('Hold to pay');
|
|
182
182
|
}
|
|
@@ -186,8 +186,8 @@ export function renderDefaultUnlockUI(container, resource, options = {}) {
|
|
|
186
186
|
e.preventDefault();
|
|
187
187
|
holdActive = true;
|
|
188
188
|
holdComplete = false;
|
|
189
|
-
btn.style.transform = 'scale(.
|
|
190
|
-
btn.style.boxShadow = '0 2px
|
|
189
|
+
btn.style.transform = 'scale(0.96)';
|
|
190
|
+
btn.style.boxShadow = '0 2px 8px rgba(0,0,0,0.2)';
|
|
191
191
|
prog.style.transition = 'none';
|
|
192
192
|
prog.style.width = '0%';
|
|
193
193
|
setBtnText('Hold\u2026');
|
|
@@ -198,8 +198,8 @@ export function renderDefaultUnlockUI(container, resource, options = {}) {
|
|
|
198
198
|
holdTimer = setTimeout(() => {
|
|
199
199
|
holdComplete = true;
|
|
200
200
|
holdActive = false;
|
|
201
|
-
btn.style.transform = '
|
|
202
|
-
btn.style.boxShadow = '
|
|
201
|
+
btn.style.transform = '';
|
|
202
|
+
btn.style.boxShadow = '';
|
|
203
203
|
prog.style.transition = 'width .05s linear';
|
|
204
204
|
setBtnText('Processing\u2026');
|
|
205
205
|
btn.disabled = true;
|