@openreceive/elements 0.4.5 → 0.4.6

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/README.md CHANGED
@@ -1,6 +1,30 @@
1
1
  # @openreceive/elements
2
2
 
3
- The OpenReceive checkout custom element (`<openreceive-checkout>`) and theme toggle (`<openreceive-theme-toggle>`).
3
+ Add Bitcoin Lightning checkout to any website with
4
+ `<openreceive-checkout>`. The custom element displays payment choices, QR
5
+ codes, and live payment status, with no frontend framework required. It also
6
+ ships `<openreceive-theme-toggle>` for switching the checkout theme.
7
+
8
+ OpenReceive supports optional swaps from **USDT, USDC, SOL, and ETH** through
9
+ a configured swap provider. The provider converts the payment to **BTC over
10
+ Lightning**, which settles into the merchant's connected wallet. Available
11
+ assets and networks depend on the provider; swaps are optional.
12
+
13
+ Pair this browser package with an OpenReceive server integration. Your server
14
+ authorizes the order, sets the amount, configures swaps, and verifies
15
+ settlement; wallet and provider credentials stay on the server.
16
+
17
+ ## Install
18
+
19
+ Use Node.js 22 or later for package tooling.
20
+
21
+ ```sh
22
+ npm install @openreceive/elements
23
+ ```
24
+
25
+ Follow the [frontend checkout guide](https://github.com/openreceive/openreceive/blob/master/docs/guides/frontend-checkout.md)
26
+ to connect the component to your server routes. Use the server-side payment
27
+ hook to fulfill orders; browser callbacks update the interface.
4
28
 
5
29
  ## Mount
6
30
 
@@ -1250,7 +1250,7 @@ function renderElementCompactPaymentSelectorHtml(swapAssetOptions, view) {
1250
1250
  <h2 id="payment-method-heading" class="${orClasses5.wizardHeaderTitle}">${escapeHtml6(checkoutLabels5.wizardTitle)}</h2>
1251
1251
  <p class="${orClasses5.wizardHeaderSubtitle}">${escapeHtml6(checkoutLabels5.wizardSubtitle)}</p>
1252
1252
  </header>
1253
- <div class="${orClasses5.wizardBody}" aria-labelledby="payment-method-heading">
1253
+ <div class="${orClasses5.methodBody}" aria-labelledby="payment-method-heading">
1254
1254
  <div part="method-grid" role="group" aria-label="${escapeHtml6(checkoutLabels5.paymentMethod)}" class="${orClasses5.methodGrid}">
1255
1255
  ${tiles}${loadingTile}
1256
1256
  </div>
@@ -1284,7 +1284,7 @@ function renderElementNetworkSelectorHtml(group, view, continueButtonHtml, mobil
1284
1284
  label: option.network_label
1285
1285
  })}
1286
1286
  </span>
1287
- <span class="truncate">${escapeHtml6(option.network_label)}</span>
1287
+ <span class="${orClasses5.methodNetworkLabel}">${escapeHtml6(option.network_label)}</span>
1288
1288
  ${optionSelected ? `<span aria-hidden="true" class="${networkCheckClasses(accent)}">\u2713</span>` : ""}
1289
1289
  </button>
1290
1290
  ${optionDisabled && optionLimit !== void 0 ? `<span class="${orClasses5.methodLimitHint}">${escapeHtml6(optionLimit)}</span>` : ""}
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  renderCheckoutHtml,
13
13
  renderThemeToggleHtml,
14
14
  renderTransactionDetailsHtml
15
- } from "./chunk-4APDZW7L.js";
15
+ } from "./chunk-VP27OICT.js";
16
16
  export {
17
17
  OPENRECEIVE_CHECKOUT_ELEMENT_ATTRIBUTES,
18
18
  OPENRECEIVE_CHECKOUT_ELEMENT_EVENTS,