@dodoex/widgets 2.5.3-1 → 2.5.4
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/cjs/index.cjs +1 -1
- package/dist/cjs/src/components/Swap/index.d.ts +1 -6
- package/dist/cjs/src/components/Widget/index.d.ts +1 -2
- package/dist/cjs/src/hooks/setting/useDefaultSlippage.d.ts +1 -4
- package/dist/cjs/src/index.d.ts +0 -1
- package/dist/cjs/src/store/actions/globals.d.ts +0 -5
- package/dist/cjs/src/store/reducers/globals.d.ts +0 -5
- package/dist/cjs/src/store/selectors/globals.d.ts +0 -4
- package/dist/index.js +1 -1
- package/dist/src/components/Swap/index.d.ts +1 -6
- package/dist/src/components/Widget/index.d.ts +1 -2
- package/dist/src/hooks/setting/useDefaultSlippage.d.ts +1 -4
- package/dist/src/index.d.ts +0 -1
- package/dist/src/store/actions/globals.d.ts +0 -5
- package/dist/src/store/reducers/globals.d.ts +0 -5
- package/dist/src/store/selectors/globals.d.ts +0 -4
- package/package.json +2 -2
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
export interface SwapProps {
|
|
4
|
-
/** Higher priority setting slippage */
|
|
5
|
-
getAutoSlippage?: GetAutoSlippage;
|
|
6
|
-
}
|
|
7
|
-
export declare function Swap({ getAutoSlippage }?: SwapProps): JSX.Element;
|
|
2
|
+
export declare function Swap(): JSX.Element;
|
|
@@ -7,9 +7,8 @@ import { ExecutionProps } from '../../hooks/Submission';
|
|
|
7
7
|
import { ChainId } from '../../constants/chains';
|
|
8
8
|
import { DefaultTokenInfo } from '../../hooks/Token/type';
|
|
9
9
|
import { APIServices } from '../../constants/api';
|
|
10
|
-
import { SwapProps } from '../Swap';
|
|
11
10
|
export declare const WIDGET_CLASS_NAME = "dodo-widget-container";
|
|
12
|
-
export interface WidgetProps extends Web3ConnectorsProps, InitTokenListProps, ExecutionProps
|
|
11
|
+
export interface WidgetProps extends Web3ConnectorsProps, InitTokenListProps, ExecutionProps {
|
|
13
12
|
apikey?: string;
|
|
14
13
|
theme?: ThemeOptions;
|
|
15
14
|
colorMode?: PaletteMode;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { WidgetProps } from './components/Widget';
|
|
3
3
|
export declare type SwapWidgetProps = WidgetProps;
|
|
4
|
-
export type { TokenInfo } from './hooks/Token/type';
|
|
5
4
|
export declare function SwapWidget(props: SwapWidgetProps): JSX.Element;
|
|
6
5
|
export declare function InitSwapWidget(props: SwapWidgetProps): void;
|
|
@@ -2,8 +2,3 @@ import { AppThunkAction } from '.';
|
|
|
2
2
|
import { State } from '../reducers/globals';
|
|
3
3
|
export declare const setGlobalProps: (globalProps: Partial<State>) => AppThunkAction;
|
|
4
4
|
export declare const setAutoConnectLoading: (loading: boolean) => AppThunkAction;
|
|
5
|
-
export declare const setAutoSlippage: (autoSlippage: {
|
|
6
|
-
loading: boolean;
|
|
7
|
-
value: number | null;
|
|
8
|
-
}) => AppThunkAction;
|
|
9
|
-
export declare const setAutoSlippageLoading: (loading: boolean) => AppThunkAction;
|
|
@@ -12,11 +12,6 @@ export interface State extends SwapWidgetProps {
|
|
|
12
12
|
contractStatus?: ContractStatus;
|
|
13
13
|
autoConnectLoading?: boolean;
|
|
14
14
|
showCoingecko?: boolean;
|
|
15
|
-
/** source: props.getAutoSlippage */
|
|
16
|
-
autoSlippage?: {
|
|
17
|
-
loading: boolean;
|
|
18
|
-
value: number | null;
|
|
19
|
-
};
|
|
20
15
|
}
|
|
21
16
|
export declare const initialState: State;
|
|
22
17
|
declare const _default: (state: State | undefined, action: AnyAction) => State;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
import { RootState } from '../reducers';
|
|
2
2
|
export declare const getGlobalProps: (state?: RootState) => import("../reducers/globals").State;
|
|
3
3
|
export declare const getAutoConnectLoading: (state?: RootState) => boolean | undefined;
|
|
4
|
-
export declare const getAutoSlippage: (state?: RootState) => {
|
|
5
|
-
loading: boolean;
|
|
6
|
-
value: number | null;
|
|
7
|
-
} | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dodoex/widgets",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.4",
|
|
4
4
|
"description": "DODO Widgets",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"exports": {
|
|
34
34
|
".": {
|
|
35
|
-
"types": "./dist/
|
|
35
|
+
"types": "./dist/index.d.ts",
|
|
36
36
|
"import": "./dist/index.js",
|
|
37
37
|
"require": "./dist/cjs/index.cjs"
|
|
38
38
|
}
|