@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/dist/nibgate.js +8 -0
- package/dist/nibgate.js.map +2 -2
- package/dist/nibgate.min.js +1 -1
- package/dist/nibgate.min.js.map +2 -2
- package/package.json +1 -1
- package/src/browser/default-ui.js +8 -0
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
|
});
|