@skip-go/widget 0.0.1 → 0.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/README.md +44 -0
- package/build/chains/types.d.ts +2 -2
- package/build/hooks/use-assets.d.ts +1 -1
- package/build/hooks/use-route.d.ts +1 -1
- package/build/hooks/use-swap-widget.d.ts +1 -1
- package/build/index.d.ts +1 -0
- package/build/index.es.js +87 -8
- package/build/index.es.js.map +1 -1
- package/build/ui/WebComponent.d.ts +16 -0
- package/package.json +3 -2
package/build/index.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SwapWidgetProps } from './index';
|
|
2
|
+
import { SwapWidgetProviderProps } from '../provider';
|
|
3
|
+
type WebComponentProps = SwapWidgetProps & SwapWidgetProviderProps;
|
|
4
|
+
declare const WEB_COMPONENT_NAME = "skip-widget";
|
|
5
|
+
export declare const initializeSwapWidget: () => void;
|
|
6
|
+
type Stringify<T> = {
|
|
7
|
+
[K in keyof T]?: string;
|
|
8
|
+
};
|
|
9
|
+
declare global {
|
|
10
|
+
namespace JSX {
|
|
11
|
+
interface IntrinsicElements {
|
|
12
|
+
[WEB_COMPONENT_NAME]: Stringify<WebComponentProps>;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skip-go/widget",
|
|
3
3
|
"description": "Swap widget",
|
|
4
|
-
"version": "0.0
|
|
4
|
+
"version": "0.1.0",
|
|
5
5
|
"repository": "https://github.com/skip-mev/widget",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"@heroicons/react": "^2.1.3",
|
|
54
54
|
"@injectivelabs/utils": "1.14.6",
|
|
55
55
|
"@interchain-ui/react": "^1.23.13",
|
|
56
|
+
"@r2wc/react-to-web-component": "^2.0.3",
|
|
56
57
|
"@radix-ui/colors": "^3.0.0",
|
|
57
58
|
"@radix-ui/react-accordion": "^1.1.2",
|
|
58
59
|
"@radix-ui/react-collapsible": "^1.0.3",
|
|
@@ -60,7 +61,7 @@
|
|
|
60
61
|
"@radix-ui/react-scroll-area": "^1.0.5",
|
|
61
62
|
"@radix-ui/react-switch": "^1.0.3",
|
|
62
63
|
"@radix-ui/react-tooltip": "^1.0.7",
|
|
63
|
-
"@skip-go/core": "0.
|
|
64
|
+
"@skip-go/core": "0.2.0",
|
|
64
65
|
"@solana/spl-token": "^0.4.6",
|
|
65
66
|
"@solana/wallet-adapter-react": "^0.15.35",
|
|
66
67
|
"@solana/wallet-adapter-wallets": "^0.19.32",
|