@paybutton/react 2.0.2 → 2.0.3
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.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/react/src/components/PayButton/PayButton.d.ts +1 -1
- package/dist/react/src/components/PaymentDialog/PaymentDialog.d.ts +1 -1
- package/dist/react/src/components/Widget/Widget.d.ts +1 -1
- package/dist/react/src/components/Widget/WidgetContainer.d.ts +1 -1
- package/dist/react/src/util/randomizeSats.d.ts +2 -1
- package/dist/react/src/util/satoshis.d.ts +2 -2
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ export interface PayButtonProps extends ButtonProps {
|
|
|
11
11
|
text?: string;
|
|
12
12
|
hoverText?: string;
|
|
13
13
|
successText?: string;
|
|
14
|
-
randomSatoshis?: boolean;
|
|
14
|
+
randomSatoshis?: boolean | number;
|
|
15
15
|
hideToasts?: boolean;
|
|
16
16
|
disabled?: boolean;
|
|
17
17
|
goalAmount?: number | string;
|
|
@@ -9,7 +9,7 @@ export interface PaymentDialogProps extends ButtonProps {
|
|
|
9
9
|
currency?: currency;
|
|
10
10
|
theme?: ThemeName | Theme;
|
|
11
11
|
successText?: string;
|
|
12
|
-
randomSatoshis?: boolean;
|
|
12
|
+
randomSatoshis?: boolean | number;
|
|
13
13
|
hideToasts?: boolean;
|
|
14
14
|
goalAmount?: number | string;
|
|
15
15
|
disableEnforceFocus?: boolean;
|
|
@@ -20,7 +20,7 @@ export interface WidgetProps {
|
|
|
20
20
|
animation?: animation;
|
|
21
21
|
currencyObject?: currencyObject | undefined;
|
|
22
22
|
setCurrencyObject: Function;
|
|
23
|
-
randomSatoshis?: boolean;
|
|
23
|
+
randomSatoshis?: boolean | number;
|
|
24
24
|
price?: number;
|
|
25
25
|
editable?: boolean;
|
|
26
26
|
setNewTxs: Function;
|
|
@@ -6,7 +6,7 @@ export interface WidgetContainerProps extends Omit<WidgetProps, 'loading' | 'suc
|
|
|
6
6
|
active?: boolean;
|
|
7
7
|
amount?: number;
|
|
8
8
|
currency?: currency;
|
|
9
|
-
randomSatoshis?: boolean;
|
|
9
|
+
randomSatoshis?: boolean | number;
|
|
10
10
|
displayCurrency?: cryptoCurrency;
|
|
11
11
|
hideToasts?: boolean;
|
|
12
12
|
onSuccess?: (txid: string, amount: BigNumber) => void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { cryptoCurrency } from './api-client';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const getNSatoshis: (amount: number, randomSatoshis: boolean | number, satsPrecision: number) => number;
|
|
3
|
+
export declare const randomizeSatoshis: (amount: number, addressType: cryptoCurrency, randomSatoshis: boolean | number) => number;
|
|
3
4
|
export default randomizeSatoshis;
|
|
@@ -4,8 +4,8 @@ export declare type currencyObject = {
|
|
|
4
4
|
string: string;
|
|
5
5
|
currency: string;
|
|
6
6
|
};
|
|
7
|
-
export declare const getCurrencyObject: (amount: number, currencyType: currency, randomSatoshis: boolean) => currencyObject;
|
|
7
|
+
export declare const getCurrencyObject: (amount: number, currencyType: currency, randomSatoshis: boolean | number) => currencyObject;
|
|
8
8
|
declare const _default: {
|
|
9
|
-
getCurrencyObject: (amount: number, currencyType: currency, randomSatoshis: boolean) => currencyObject;
|
|
9
|
+
getCurrencyObject: (amount: number, currencyType: currency, randomSatoshis: number | boolean) => currencyObject;
|
|
10
10
|
};
|
|
11
11
|
export default _default;
|