@nibgate/sdk 0.2.40 → 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.40",
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
  });