@paybutton/react 5.0.2 → 5.1.0
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 +5 -22
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +2 -0
- package/dist/index.modern.mjs.map +1 -0
- package/dist/lib/altpayment/index.d.ts +6 -6
- package/dist/lib/altpayment/sideshift.d.ts +1 -1
- package/dist/lib/components/BarChart/BarChart.d.ts +4 -10
- package/dist/lib/components/BarChart/BarChart.stories.d.ts +1 -7
- package/dist/lib/components/Button/Button.d.ts +2 -5
- package/dist/lib/components/Button/Button.stories.d.ts +1 -1
- package/dist/lib/components/PayButton/PayButton.d.ts +6 -7
- package/dist/lib/components/PayButton/PayButton.stories.d.ts +1 -4
- package/dist/lib/components/PaymentDialog/PaymentDialog.d.ts +4 -15
- package/dist/lib/components/PaymentDialog/PaymentDialog.stories.d.ts +1 -14
- package/dist/lib/components/Widget/Widget.d.ts +2 -0
- package/dist/lib/components/Widget/WidgetContainer.d.ts +2 -0
- package/dist/lib/themes/index.d.ts +1 -1
- package/dist/lib/util/address.d.ts +1 -1
- package/dist/lib/util/api-client.d.ts +1 -1
- package/dist/lib/util/autoClose.d.ts +10 -0
- package/dist/lib/util/cashtab.d.ts +2 -2
- package/dist/lib/util/constants.d.ts +8 -1
- package/dist/lib/util/format.d.ts +2 -2
- package/dist/lib/util/index.d.ts +1 -0
- package/dist/lib/util/socket.d.ts +1 -1
- package/dist/lib/util/types.d.ts +8 -7
- package/dist/lib/util/validate.d.ts +1 -1
- package/dist/src/App.d.ts +2 -2
- package/package.json +28 -20
- package/dist/index.modern.js +0 -2
- package/dist/index.modern.js.map +0 -1
- package/dist/lib/tests/util/currency.test.d.ts +0 -1
- package/dist/lib/tests/util/format.test.d.ts +0 -1
- package/dist/lib/tests/util/number.test.d.ts +0 -1
- package/dist/lib/tests/util/opReturn.test.d.ts +0 -1
- package/dist/lib/tests/util/validate.test.d.ts +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,24 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import * as Components from './lib/components';
|
|
3
|
-
export declare const PayButton: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export declare type PayButtonProps = Components.PayButtonProps;
|
|
8
|
-
export declare const PaymentDialog: {
|
|
9
|
-
(props: Components.PaymentDialogProps): import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, string | any | (new (props: any) => import("react").Component<any, any, any>)> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
10
|
-
defaultProps: {
|
|
11
|
-
animation: string;
|
|
12
|
-
hideToasts: boolean;
|
|
13
|
-
randomSatoshis: boolean;
|
|
14
|
-
successText: string;
|
|
15
|
-
disableEnforceFocus: boolean;
|
|
16
|
-
disabled: boolean;
|
|
17
|
-
editable: boolean;
|
|
18
|
-
dialogOpen: boolean;
|
|
19
|
-
autoClose: boolean;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export declare type PaymentDialogProps = Components.PaymentDialogProps;
|
|
2
|
+
export declare const PayButton: ({ to, amount: initialAmount, opReturn, disablePaymentId, currency, theme: themeProp, text, hoverText, successText, animation, randomSatoshis, hideToasts, disabled: disabledProp, goalAmount, disableEnforceFocus, editable, onSuccess, onTransaction, onOpen, onClose, wsBaseUrl, apiBaseUrl, transactionText, disableSound, autoClose, disableAltpayment, contributionOffset, size, sizeScaleAlreadyApplied, donationRate, donationAddress }: Components.PayButtonProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
3
|
+
export type PayButtonProps = Components.PayButtonProps;
|
|
4
|
+
export declare const PaymentDialog: ({ to, amount, setAmount, opReturn, paymentId, disablePaymentId, currency, currencyObj, setCurrencyObj, cryptoAmount, price, successText, animation, randomSatoshis, hideToasts, onClose, onSuccess, onTransaction, goalAmount, disableEnforceFocus, editable, dialogOpen, setDialogOpen, container, wsBaseUrl, apiBaseUrl, hoverText, disableAltpayment, contributionOffset, autoClose, useAltpayment, setUseAltpayment, setTxsSocket, txsSocket, setAltpaymentSocket, altpaymentSocket, setCoins, coins, setCoinPair, coinPair, setLoadingPair, loadingPair, setAltpaymentShift, altpaymentShift, setLoadingShift, loadingShift, setAltpaymentError, altpaymentError, addressType, newTxs, setNewTxs, setAddressType, disableSound, transactionText, disabled, theme: themeProp, donationAddress, donationRate }: Components.PaymentDialogProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
5
|
+
export type PaymentDialogProps = Components.PaymentDialogProps;
|
|
23
6
|
export declare const Widget: import("react").FunctionComponent<Components.WidgetProps>;
|
|
24
|
-
export
|
|
7
|
+
export type WidgetProps = Components.WidgetProps;
|