@skip-go/widget 3.0.0-alpha.5 → 3.0.0-alpha.69
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/README.md +30 -30
- package/build/{index-Dom9ICgE.js → index-Boix_0Wy.js} +10467 -9915
- package/build/{index-Dom9ICgE.js.map → index-Boix_0Wy.js.map} +1 -1
- package/build/index.d.ts +20 -9
- package/build/index.js +3 -3
- package/build/{secp256k1-DrchMpoC.js → secp256k1-FLNzxdVX.js} +2 -2
- package/build/{secp256k1-DrchMpoC.js.map → secp256k1-FLNzxdVX.js.map} +1 -1
- package/package.json +96 -96
package/build/index.d.ts
CHANGED
|
@@ -2,6 +2,15 @@ import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
|
2
2
|
import { ReactElement } from 'react';
|
|
3
3
|
import { SkipClientOptions } from '@skip-go/client';
|
|
4
4
|
|
|
5
|
+
declare type DefaultRouteConfig = {
|
|
6
|
+
amountIn?: number;
|
|
7
|
+
amountOut?: number;
|
|
8
|
+
srcChainID?: string;
|
|
9
|
+
srcAssetDenom?: string;
|
|
10
|
+
destChainID?: string;
|
|
11
|
+
destAssetDenom?: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
5
14
|
export declare const defaultTheme: {
|
|
6
15
|
brandColor: string;
|
|
7
16
|
primary: {
|
|
@@ -72,17 +81,11 @@ export declare const lightTheme: {
|
|
|
72
81
|
|
|
73
82
|
declare type PartialTheme = Partial<Theme> | undefined;
|
|
74
83
|
|
|
75
|
-
|
|
84
|
+
declare type ShowSwapWidget = {
|
|
76
85
|
button?: ReactElement;
|
|
77
|
-
} &
|
|
78
|
-
|
|
79
|
-
export declare const ShowSwapWidget: ({ button, ...props }: ShowSwapWidget) => JSX_2.Element;
|
|
80
|
-
|
|
81
|
-
export declare const SwapWidget: ({ theme, ...skipClientConfig }: SwapWidgetProps) => JSX_2.Element;
|
|
86
|
+
} & WidgetProps;
|
|
82
87
|
|
|
83
|
-
export declare
|
|
84
|
-
theme?: PartialTheme;
|
|
85
|
-
} & SkipClientOptions;
|
|
88
|
+
export declare const ShowWidget: ({ button, ...props }: ShowSwapWidget) => JSX_2.Element;
|
|
86
89
|
|
|
87
90
|
declare type Theme = {
|
|
88
91
|
brandColor: string;
|
|
@@ -118,6 +121,14 @@ declare type Theme = {
|
|
|
118
121
|
};
|
|
119
122
|
};
|
|
120
123
|
|
|
124
|
+
export declare const Widget: (props: WidgetProps) => JSX_2.Element;
|
|
125
|
+
|
|
126
|
+
export declare type WidgetProps = {
|
|
127
|
+
theme?: PartialTheme | "light" | "dark";
|
|
128
|
+
brandColor?: string;
|
|
129
|
+
defaultRoute?: DefaultRouteConfig;
|
|
130
|
+
} & SkipClientOptions;
|
|
131
|
+
|
|
121
132
|
export { }
|
|
122
133
|
|
|
123
134
|
|
package/build/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as t, W as d, d as h, l as s } from "./index-Boix_0Wy.js";
|
|
2
2
|
export {
|
|
3
|
-
t as
|
|
4
|
-
d as
|
|
3
|
+
t as ShowWidget,
|
|
4
|
+
d as Widget,
|
|
5
5
|
h as defaultTheme,
|
|
6
6
|
s as lightTheme
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as Pt, h as Ft, t as Gt, e as Ot, b as Wt, c as Xt, r as Dt, s as Qt } from "./index-
|
|
1
|
+
import { H as Pt, h as Ft, t as Gt, e as Ot, b as Wt, c as Xt, r as Dt, s as Qt } from "./index-Boix_0Wy.js";
|
|
2
2
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
3
3
|
const Ut = BigInt(0), ht = BigInt(1), Jt = BigInt(2);
|
|
4
4
|
function nt(e) {
|
|
@@ -1163,4 +1163,4 @@ He.ProjectivePoint;
|
|
|
1163
1163
|
export {
|
|
1164
1164
|
He as secp256k1
|
|
1165
1165
|
};
|
|
1166
|
-
//# sourceMappingURL=secp256k1-
|
|
1166
|
+
//# sourceMappingURL=secp256k1-FLNzxdVX.js.map
|