@skip-go/widget 0.0.1-alpha.14 → 0.0.1-alpha.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/README.md +7 -12
- package/build/chains/types.d.ts +2 -2
- package/build/hooks/use-skip-client.d.ts +2 -0
- package/build/hooks/use-swap-widget.d.ts +1 -1
- package/build/index.d.ts +1 -3
- package/build/index.es.js +59 -76
- package/build/index.es.js.map +1 -1
- package/build/provider/index.d.ts +3 -3
- package/build/provider/skip-provider.d.ts +5 -4
- package/build/store/swap-widget.d.ts +1 -26
- package/build/ui/index.d.ts +3 -1
- package/package.json +14 -13
- package/build/ui/CraftedBySkip.d.ts +0 -1
package/build/index.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../../../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;AAC/B,EAAE,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;AACjC,EAAE,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;AAC9B;AACA,EAAE,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,EAAE;AAC1D;AACA,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AACvE,EAAE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;AAC9C,EAAE,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;AAC1B;AACA,EAAE,IAAI,QAAQ,KAAK,KAAK,EAAE;AAC1B,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE;AACzB,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;AAChD,KAAK,MAAM;AACX,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC9B,KAAK;AACL,GAAG,MAAM;AACT,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5B,GAAG;AACH;AACA,EAAE,IAAI,KAAK,CAAC,UAAU,EAAE;AACxB,IAAI,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG,CAAC;AACnC,GAAG,MAAM;AACT,IAAI,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;AACpD,GAAG;AACH
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -10,16 +10,16 @@ export interface WidgetConfig {
|
|
|
10
10
|
defaultRoute?: DefaultRouteConfig;
|
|
11
11
|
routeConfig?: RouteConfig;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
interface WidgetProviderProps {
|
|
14
14
|
children: React.ReactNode;
|
|
15
15
|
toasterProps?: ToasterProps;
|
|
16
16
|
}
|
|
17
|
-
export interface SkipAPIProviderProps {
|
|
17
|
+
export interface SkipAPIProviderProps extends WidgetConfig {
|
|
18
18
|
children: React.ReactNode;
|
|
19
19
|
endpointOptions?: SkipRouterOptions['endpointOptions'];
|
|
20
20
|
apiURL?: string;
|
|
21
21
|
}
|
|
22
22
|
export declare const WalletProvider: React.FC<WalletProviderProps>;
|
|
23
23
|
export declare const SkipAPIProvider: React.FC<SkipAPIProviderProps>;
|
|
24
|
-
export declare const SwapWidgetProvider: React.FC<
|
|
24
|
+
export declare const SwapWidgetProvider: React.FC<WidgetProviderProps>;
|
|
25
25
|
export {};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { SkipRouter, SkipRouterOptions } from '@skip-router/core';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
|
|
3
|
+
import { WidgetConfig } from '.';
|
|
4
|
+
export declare const SkipContext: import("react").Context<({
|
|
4
5
|
skipClient: SkipRouter;
|
|
5
6
|
apiURL?: string | undefined;
|
|
6
7
|
endpointOptions?: SkipRouterOptions['endpointOptions'];
|
|
7
|
-
} | undefined>;
|
|
8
|
-
export declare function SkipProvider({ children, apiURL, endpointOptions, }: {
|
|
8
|
+
} & WidgetConfig) | undefined>;
|
|
9
|
+
export declare function SkipProvider({ children, apiURL, endpointOptions, defaultRoute, routeConfig, }: {
|
|
9
10
|
children: ReactNode;
|
|
10
11
|
apiURL?: string;
|
|
11
12
|
endpointOptions?: SkipRouterOptions['endpointOptions'];
|
|
12
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
} & WidgetConfig): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,34 +1,11 @@
|
|
|
1
|
-
import { DefaultRouteConfig } from '../hooks/use-swap-widget';
|
|
2
|
-
import { RouteConfig } from '../hooks/use-route';
|
|
3
|
-
import { PersistOptions } from 'zustand/middleware';
|
|
4
1
|
interface SwapWidgetStore {
|
|
5
2
|
colors: {
|
|
6
3
|
primary?: string;
|
|
7
4
|
};
|
|
8
5
|
onlyTestnet?: boolean;
|
|
9
|
-
defaultRoute?: DefaultRouteConfig;
|
|
10
|
-
routeConfig?: RouteConfig;
|
|
11
6
|
}
|
|
12
7
|
export declare const swapWidgetDefaultValues: SwapWidgetStore;
|
|
13
|
-
export declare const useSwapWidgetUIStore: import("zustand").UseBoundStore<
|
|
14
|
-
subscribe: {
|
|
15
|
-
(listener: (selectedState: SwapWidgetStore, previousSelectedState: SwapWidgetStore) => void): () => void;
|
|
16
|
-
<U>(selector: (state: SwapWidgetStore) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
17
|
-
equalityFn?: ((a: U, b: U) => boolean) | undefined;
|
|
18
|
-
fireImmediately?: boolean | undefined;
|
|
19
|
-
} | undefined): () => void;
|
|
20
|
-
};
|
|
21
|
-
}, "persist"> & {
|
|
22
|
-
persist: {
|
|
23
|
-
setOptions: (options: Partial<PersistOptions<SwapWidgetStore, Pick<SwapWidgetStore, "defaultRoute">>>) => void;
|
|
24
|
-
clearStorage: () => void;
|
|
25
|
-
rehydrate: () => void | Promise<void>;
|
|
26
|
-
hasHydrated: () => boolean;
|
|
27
|
-
onHydrate: (fn: (state: SwapWidgetStore) => void) => () => void;
|
|
28
|
-
onFinishHydration: (fn: (state: SwapWidgetStore) => void) => () => void;
|
|
29
|
-
getOptions: () => Partial<PersistOptions<SwapWidgetStore, Pick<SwapWidgetStore, "defaultRoute">>>;
|
|
30
|
-
};
|
|
31
|
-
}>;
|
|
8
|
+
export declare const useSwapWidgetUIStore: import("zustand").UseBoundStore<import("zustand").StoreApi<SwapWidgetStore>>;
|
|
32
9
|
export interface ConfigureSwapWidgetArgs {
|
|
33
10
|
colors?: {
|
|
34
11
|
/**
|
|
@@ -49,8 +26,6 @@ export interface ConfigureSwapWidgetArgs {
|
|
|
49
26
|
slippage?: number;
|
|
50
27
|
};
|
|
51
28
|
onlyTestnet?: boolean;
|
|
52
|
-
defaultRoute?: DefaultRouteConfig;
|
|
53
|
-
routeConfig?: RouteConfig;
|
|
54
29
|
}
|
|
55
30
|
export declare const configureSwapWidget: (args: ConfigureSwapWidgetArgs) => void;
|
|
56
31
|
export {};
|
package/build/ui/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { SkipAPIProviderProps } from '../provider';
|
|
2
3
|
import { ConfigureSwapWidgetArgs } from '../store/swap-widget';
|
|
3
|
-
|
|
4
|
+
interface SwapWidgetProps extends Omit<SkipAPIProviderProps, 'children'>, Pick<React.HTMLAttributes<HTMLDivElement>, 'className' | 'style'>, ConfigureSwapWidgetArgs {
|
|
4
5
|
}
|
|
5
6
|
export declare const SwapWidget: React.FC<SwapWidgetProps>;
|
|
7
|
+
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.1-alpha.
|
|
4
|
+
"version": "0.0.1-alpha.3",
|
|
5
5
|
"repository": "https://github.com/skip-mev/widget",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -24,8 +24,19 @@
|
|
|
24
24
|
"chains:generate": "tsx ./src/scripts/codegen.ts"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
+
"@cosmos-kit/cosmostation-extension": "^2.7.10",
|
|
28
|
+
"@cosmos-kit/keplr-extension": "^2.7.9",
|
|
29
|
+
"@cosmos-kit/leap-extension": "^2.7.10",
|
|
30
|
+
"@cosmos-kit/okxwallet": "2.4.x",
|
|
31
|
+
"@cosmos-kit/react": "2.10.x",
|
|
32
|
+
"@cosmos-kit/station": "2.5.x",
|
|
33
|
+
"@cosmos-kit/vectis": "2.6.x",
|
|
34
|
+
"@graz-sh/types": "0.0.14",
|
|
35
|
+
"@tanstack/react-query": ">=5.0.0",
|
|
27
36
|
"react": "17.x || 18.x",
|
|
28
|
-
"react-dom": "17.x || 18.x"
|
|
37
|
+
"react-dom": "17.x || 18.x",
|
|
38
|
+
"viem": "2.x",
|
|
39
|
+
"wagmi": "2.x"
|
|
29
40
|
},
|
|
30
41
|
"devDependencies": {
|
|
31
42
|
"@types/node": "18.7.18",
|
|
@@ -55,15 +66,7 @@
|
|
|
55
66
|
"@graz-sh/types": "0.0.14"
|
|
56
67
|
},
|
|
57
68
|
"dependencies": {
|
|
58
|
-
"@cosmos-kit/cosmostation-extension": "^2.7.10",
|
|
59
|
-
"@cosmos-kit/keplr-extension": "^2.7.9",
|
|
60
|
-
"@cosmos-kit/leap-extension": "^2.7.10",
|
|
61
|
-
"@cosmos-kit/okxwallet": "2.4.x",
|
|
62
|
-
"@cosmos-kit/react": "2.10.x",
|
|
63
|
-
"@cosmos-kit/station": "2.5.x",
|
|
64
|
-
"@cosmos-kit/vectis": "2.6.x",
|
|
65
69
|
"@emotion/css": "^11.11.2",
|
|
66
|
-
"@graz-sh/types": "0.0.14",
|
|
67
70
|
"@heroicons/react": "^2.1.3",
|
|
68
71
|
"@interchain-ui/react": "^1.23.13",
|
|
69
72
|
"@radix-ui/colors": "^3.0.0",
|
|
@@ -73,7 +76,7 @@
|
|
|
73
76
|
"@radix-ui/react-scroll-area": "^1.0.5",
|
|
74
77
|
"@radix-ui/react-switch": "^1.0.3",
|
|
75
78
|
"@radix-ui/react-tooltip": "^1.0.7",
|
|
76
|
-
"@skip-router/core": "^5.0.
|
|
79
|
+
"@skip-router/core": "^5.0.3",
|
|
77
80
|
"@solana/spl-token": "^0.4.6",
|
|
78
81
|
"@solana/wallet-adapter-react": "^0.15.35",
|
|
79
82
|
"@solana/wallet-adapter-wallets": "^0.19.32",
|
|
@@ -85,8 +88,6 @@
|
|
|
85
88
|
"react-hot-toast": "^2.4.1",
|
|
86
89
|
"react-icons": "^5.2.1",
|
|
87
90
|
"tailwind-merge": "^2.3.0",
|
|
88
|
-
"viem": "2.x",
|
|
89
|
-
"wagmi": "2.x",
|
|
90
91
|
"zustand": "^4.5.2"
|
|
91
92
|
},
|
|
92
93
|
"publishConfig": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const CraftedBySkip: () => import("react/jsx-runtime").JSX.Element;
|