@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nibgate/sdk",
3
- "version": "0.2.39",
3
+ "version": "0.2.41",
4
4
  "description": "Framework-agnostic browser and server package for creator-owned gated content, unlock events, and receipts.",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -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">