@openreceive/react 0.2.1 → 0.2.2
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/index.d.ts +3 -2
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { CheckoutComponentProps, CheckoutState, QrEncoder, BrowserLoggerOption, CheckoutStatusRefresh, Status, CheckoutSnapshot, BrowserLogContext, CheckoutInvoiceSnapshot, ThemePreference, ResolvedTheme, ThemeModel, PaymentDataSource, CheckoutPhase, CheckoutStatusModel, BrowserLogger, TransactionDetailsSource } from '@openreceive/browser/headless';
|
|
2
|
+
import { CheckoutComponentProps, CheckoutState, QrEncoder, BrowserLoggerOption, CheckoutStatusRefresh, Status, CheckoutSnapshot, BrowserLogContext, CheckoutInvoiceSnapshot, ThemePreference, ResolvedTheme, ThemeModel, PaymentDataSource, CheckoutPhase, CheckoutStatusModel, UnixSeconds, BrowserLogger, TransactionDetailsSource } from '@openreceive/browser/headless';
|
|
3
3
|
export { TransactionDetailsSource, resolveTransactionDetailRows } from '@openreceive/browser/headless';
|
|
4
4
|
|
|
5
5
|
interface CheckoutData {
|
|
@@ -287,7 +287,8 @@ declare function SatsDetail(props: SatsDetailProps): React.ReactElement | null;
|
|
|
287
287
|
declare function renderSwapDepositPanel(options: {
|
|
288
288
|
readonly invoice: CheckoutInvoiceSnapshot;
|
|
289
289
|
readonly checkout?: CheckoutSnapshot;
|
|
290
|
-
|
|
290
|
+
/** Unix **seconds** ({@link UnixSeconds}), not `Date.now()` milliseconds. */
|
|
291
|
+
readonly now?: UnixSeconds;
|
|
291
292
|
readonly encoder?: QrEncoder;
|
|
292
293
|
readonly clipboard?: Pick<Clipboard, "writeText">;
|
|
293
294
|
readonly logger?: BrowserLogger | false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openreceive/react",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "React checkout components and hooks for OpenReceive (<Checkout>, useCheckout, PaymentWizard).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bitcoin",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"main": "./dist/index.js",
|
|
20
20
|
"types": "./dist/index.d.ts",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@openreceive/browser": "0.2.
|
|
23
|
-
"@openreceive/core": "0.2.
|
|
22
|
+
"@openreceive/browser": "0.2.2",
|
|
23
|
+
"@openreceive/core": "0.2.2"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"react": ">=18.0.0"
|