@nibgate/sdk 0.2.39 → 0.2.41
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 +9 -2
- package/dist/nibgate.js.map +2 -2
- package/dist/nibgate.min.js +2 -3
- package/dist/nibgate.min.js.map +2 -2
- package/package.json +1 -1
- package/src/browser/default-ui.js +9 -2
package/package.json
CHANGED
|
@@ -406,6 +406,14 @@ export function renderDefaultRatingUI(container, resource, options = {}) {
|
|
|
406
406
|
ctrl = m.createOnchainRating(resource, {
|
|
407
407
|
autoMount: false,
|
|
408
408
|
contentId: options.contentId || '0x' + (resource.id || '').replace(/-/g, ''),
|
|
409
|
+
indexUrl: options.indexUrl,
|
|
410
|
+
siteId: options.siteId,
|
|
411
|
+
token: options.token,
|
|
412
|
+
indexHeaders: options.indexHeaders,
|
|
413
|
+
actor: options.actor,
|
|
414
|
+
paymentId: options.paymentId,
|
|
415
|
+
getPaymentId: options.getPaymentId,
|
|
416
|
+
getUnlockRef: options.getUnlockRef,
|
|
409
417
|
onRated: (r) => { setStatus('Rating saved', theme.accent, 3000); refresh(); if (typeof options.onRated === 'function') options.onRated(r); },
|
|
410
418
|
onError: (e) => { setStatus(e?.message || 'Could not save rating. Try again.', '#dc2626'); if (typeof options.onError === 'function') options.onError(e); },
|
|
411
419
|
});
|
|
@@ -425,10 +433,9 @@ export function renderDefaultGatewayWalletUI(container, options = {}) {
|
|
|
425
433
|
<div style="display:flex;gap:12px;margin-bottom:20px">
|
|
426
434
|
<div data-gw-wallet-card style="flex:1;background:${theme.bg};border:1px solid ${theme.border};border-radius:12px;padding:16px">
|
|
427
435
|
<div style="display:flex;align-items:center;justify-content:space-between;margin-bottom:4px">
|
|
428
|
-
<div></div>
|
|
436
|
+
<div data-gw-wallet-addr class="nui-mono" style="font-size:13px;color:${theme.muted}"></div>
|
|
429
437
|
<span data-gw-connect-label style="font-size:12px;font-weight:600;color:${theme.accent}">Connected</span>
|
|
430
438
|
</div>
|
|
431
|
-
<div data-gw-wallet-addr class="nui-mono" style="font-size:13px;color:${theme.muted};margin-bottom:4px"></div>
|
|
432
439
|
<div data-gw-wallet-balance class="nui-mono" style="font-size:24px;font-weight:700;color:${theme.fg}">—</div>
|
|
433
440
|
</div>
|
|
434
441
|
<div style="flex:1;background:${theme.bg};border:1px solid ${theme.border};border-radius:12px;padding:16px">
|