@dhedge/trading-widget 5.2.0 → 5.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhedge/trading-widget",
3
- "version": "5.2.0",
3
+ "version": "5.3.0",
4
4
  "dependencies": {
5
5
  "@headlessui/react": "^2.1.2",
6
6
  "@heroicons/react": "^2.1.5",
@@ -0,0 +1,2 @@
1
+ import type { FC } from 'react';
2
+ export declare const ApproveAndDepositButton: FC;
@@ -0,0 +1,6 @@
1
+ export declare const useApproveAndDepositButton: () => {
2
+ handleClick: () => void;
3
+ disabled: boolean;
4
+ isLoading: boolean;
5
+ buttonText: string;
6
+ };
@@ -3,11 +3,9 @@ export declare const useValidDepositButton: () => {
3
3
  requiresWhitelist: boolean | undefined;
4
4
  requiresApprove: boolean;
5
5
  requiresHighSlippageConfirm: boolean;
6
- sendTokenSymbol: string;
7
6
  poolSymbol: string;
8
7
  requiredMinDepositAmount: string;
9
8
  deprecated: boolean | undefined;
10
- approve: () => Promise<void>;
11
9
  confirmHighSlippage: () => void;
12
10
  slippageToBeUsed: number;
13
11
  maintenance: boolean | undefined;
@@ -1,8 +1,6 @@
1
1
  export { ValidNetworkButton } from '../../../components/widget/widget-buttons/valid-network-button/valid-network-button';
2
- export { ApproveButton } from '../../../components/widget/widget-buttons/approve-button/approve-button';
3
2
  export { ReloadSwapQuoteButton } from '../../../components/widget/widget-buttons/reload-swap-quote-button/reload-swap-quote-button';
4
3
  export { LimitOrderButton } from '../../../components/widget/widget-buttons/limit-order-button/limit-order-button';
5
4
  export { NotificationsSettingsButton } from '../../../components/widget/widget-buttons/notifications-settings-button/notifications-settings-button';
6
5
  export { AddToWalletButton } from '../../../components/widget/widget-buttons/add-to-wallet-button/add-to-wallet-button';
7
6
  export { WithdrawStepperButton } from '../../../components/widget/widget-buttons/withdraw-stepper-button/withdraw-stepper-button';
8
- export type { ApproveButtonProps } from '../../../components/widget/widget-buttons/approve-button/approve-button.hooks';
@@ -122,6 +122,8 @@ export type TranslationMap = {
122
122
  unrollAndClaimAssets: string;
123
123
  swapToCompleteSell: string;
124
124
  success: string;
125
+ approveDepositStep: string;
126
+ depositNowStep: string;
125
127
  [key: string]: string;
126
128
  };
127
129
  export interface TranslationProviderProps {
@@ -1,2 +0,0 @@
1
- import type { FC } from 'react';
2
- export declare const SingleDepositTradeButton: FC;
@@ -1,3 +0,0 @@
1
- import type { FC } from 'react';
2
- import type { ApproveButtonProps } from '../../../../components/widget/widget-buttons/approve-button/approve-button.hooks';
3
- export declare const ApproveButton: FC<ApproveButtonProps>;
@@ -1,8 +0,0 @@
1
- export interface ApproveButtonProps {
2
- symbol: string;
3
- onApprove: () => void;
4
- }
5
- export declare const useApproveButton: () => {
6
- disabled: boolean;
7
- isLoading: boolean;
8
- };