@openreceive/elements 0.2.4 → 0.3.1
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/{chunk-P5HNOT3S.js → chunk-MKA6MJU5.js} +161 -155
- package/dist/{define-elements-BZVyBJjO.d.ts → define-elements-CV0JlfbJ.d.ts} +15 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/wrapper-shared.d.ts +1 -1
- package/dist/wrapper-shared.js +1 -1
- package/package.json +2 -2
|
@@ -37,6 +37,13 @@ interface CheckoutView {
|
|
|
37
37
|
* describe the pre-swap Lightning attempt (or, in create mode, nothing).
|
|
38
38
|
*/
|
|
39
39
|
readonly liveState?: CheckoutState;
|
|
40
|
+
/**
|
|
41
|
+
* What the payer is buying, in the host's own words — the `description` the
|
|
42
|
+
* host returned from its amount hook, echoed on the prepare and create
|
|
43
|
+
* responses. One display string; anything richer is host markup in the
|
|
44
|
+
* element's `order` slot.
|
|
45
|
+
*/
|
|
46
|
+
readonly description?: string;
|
|
40
47
|
}
|
|
41
48
|
interface ElementsWizardView {
|
|
42
49
|
readonly selectedMethod?: PaymentMethod | null;
|
|
@@ -48,13 +55,20 @@ interface ElementsWizardView {
|
|
|
48
55
|
*/
|
|
49
56
|
readonly currenciesLoading?: boolean;
|
|
50
57
|
/** Selected pay-in asset per multi-network coin label (e.g. USDT → USDT_TRON). */
|
|
51
|
-
readonly
|
|
58
|
+
readonly selectedSwapAssetByGroup?: Readonly<Record<string, string>>;
|
|
52
59
|
/** Compact selector highlight: `method:bitcoin` or `swap:USDT`. */
|
|
53
60
|
readonly selectedPickerKey?: string | null;
|
|
54
61
|
/** Pay-in asset whose swap create is in flight — method tiles spin and disable. */
|
|
55
62
|
readonly startingSwapAsset?: string | null;
|
|
56
63
|
/** When set, the wizard shows the focused swap deposit flow for this pay-in asset. */
|
|
57
64
|
readonly selectedSwapAsset?: string | null;
|
|
65
|
+
/**
|
|
66
|
+
* Whether this checkout has a URL the payer can return to — `sync-url` is
|
|
67
|
+
* set, or the host mounted the element on its own per-order route. Decides
|
|
68
|
+
* which of the two refund-return warnings the deposit panel shows; see
|
|
69
|
+
* {@link SwapDisplayModel.refundReturnLabel}.
|
|
70
|
+
*/
|
|
71
|
+
readonly resumable?: boolean;
|
|
58
72
|
/** Invoice amount + fiat, used to render fiat limit messages for out-of-range assets. */
|
|
59
73
|
readonly amountMsats?: number;
|
|
60
74
|
readonly fiat?: {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TransactionDetailsSource } from '@openreceive/browser/headless';
|
|
2
2
|
export { OPENRECEIVE_CHECKOUT_ELEMENT_ATTRIBUTES, OPENRECEIVE_CHECKOUT_ELEMENT_EVENTS, OPENRECEIVE_CHECKOUT_ELEMENT_TAG_NAME, OPENRECEIVE_THEME_TOGGLE_ELEMENT_ATTRIBUTES, OPENRECEIVE_THEME_TOGGLE_ELEMENT_EVENTS, OPENRECEIVE_THEME_TOGGLE_ELEMENT_TAG_NAME, TransactionDetailsSource, createThemeToggleElement } from '@openreceive/browser/headless';
|
|
3
|
-
import { C as CheckoutView } from './define-elements-
|
|
4
|
-
export { D as DefineElementsOptions, E as ElementsWizardView, d as defineElements } from './define-elements-
|
|
3
|
+
import { C as CheckoutView } from './define-elements-CV0JlfbJ.js';
|
|
4
|
+
export { D as DefineElementsOptions, E as ElementsWizardView, d as defineElements } from './define-elements-CV0JlfbJ.js';
|
|
5
5
|
|
|
6
6
|
declare function renderCheckoutHtml(view: CheckoutView): string;
|
|
7
7
|
/**
|
package/dist/index.js
CHANGED