@skip-go/widget 0.0.1-alpha.1 → 0.0.1-alpha.11

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.
@@ -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;AACz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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
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,UA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -10,16 +10,16 @@ export interface WidgetConfig {
10
10
  defaultRoute?: DefaultRouteConfig;
11
11
  routeConfig?: RouteConfig;
12
12
  }
13
- interface WidgetProviderProps {
13
+ export interface SwapWidgetProviderProps extends SkipAPIProviderProps {
14
14
  children: React.ReactNode;
15
15
  toasterProps?: ToasterProps;
16
16
  }
17
- export interface SkipAPIProviderProps extends WidgetConfig {
17
+ export interface SkipAPIProviderProps {
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<WidgetProviderProps>;
24
+ export declare const SwapWidgetProvider: React.FC<SwapWidgetProviderProps>;
25
25
  export {};
@@ -1,11 +1,11 @@
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
+ export declare const SkipContext: import("react").Context<{
5
5
  skipClient: SkipRouter;
6
6
  apiURL?: string | undefined;
7
7
  endpointOptions?: SkipRouterOptions['endpointOptions'];
8
- } & WidgetConfig) | undefined>;
8
+ } | undefined>;
9
9
  export declare function SkipProvider({ children, apiURL, endpointOptions, defaultRoute, routeConfig, }: {
10
10
  children: ReactNode;
11
11
  apiURL?: string;
@@ -1,8 +1,12 @@
1
+ import { DefaultRouteConfig } from '../hooks/use-swap-widget';
2
+ import { RouteConfig } from '../hooks/use-route';
1
3
  interface SwapWidgetStore {
2
4
  colors: {
3
5
  primary?: string;
4
6
  };
5
7
  onlyTestnet?: boolean;
8
+ defaultRoute?: DefaultRouteConfig;
9
+ routeConfig?: RouteConfig;
6
10
  }
7
11
  export declare const swapWidgetDefaultValues: SwapWidgetStore;
8
12
  export declare const useSwapWidgetUIStore: import("zustand").UseBoundStore<import("zustand").StoreApi<SwapWidgetStore>>;
@@ -26,6 +30,8 @@ export interface ConfigureSwapWidgetArgs {
26
30
  slippage?: number;
27
31
  };
28
32
  onlyTestnet?: boolean;
33
+ defaultRoute?: DefaultRouteConfig;
34
+ routeConfig?: RouteConfig;
29
35
  }
30
36
  export declare const configureSwapWidget: (args: ConfigureSwapWidgetArgs) => void;
31
37
  export {};
@@ -0,0 +1 @@
1
+ export declare const CraftedBySkip: () => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { SkipAPIProviderProps } from '../provider';
3
2
  import { ConfigureSwapWidgetArgs } from '../store/swap-widget';
4
- interface SwapWidgetProps extends Omit<SkipAPIProviderProps, 'children'>, Pick<React.HTMLAttributes<HTMLDivElement>, 'className' | 'style'>, ConfigureSwapWidgetArgs {
3
+ export interface SwapWidgetProps extends Pick<React.HTMLAttributes<HTMLDivElement>, 'className' | 'style'>, ConfigureSwapWidgetArgs {
5
4
  }
6
5
  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.1",
4
+ "version": "0.0.1-alpha.11",
5
5
  "repository": "https://github.com/skip-mev/widget",
6
6
  "type": "module",
7
7
  "exports": {
@@ -24,19 +24,8 @@
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",
36
27
  "react": "17.x || 18.x",
37
- "react-dom": "17.x || 18.x",
38
- "viem": "2.x",
39
- "wagmi": "2.x"
28
+ "react-dom": "17.x || 18.x"
40
29
  },
41
30
  "devDependencies": {
42
31
  "@types/node": "18.7.18",
@@ -66,7 +55,15 @@
66
55
  "@graz-sh/types": "0.0.14"
67
56
  },
68
57
  "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",
69
65
  "@emotion/css": "^11.11.2",
66
+ "@graz-sh/types": "0.0.14",
70
67
  "@heroicons/react": "^2.1.3",
71
68
  "@interchain-ui/react": "^1.23.13",
72
69
  "@radix-ui/colors": "^3.0.0",
@@ -76,7 +73,7 @@
76
73
  "@radix-ui/react-scroll-area": "^1.0.5",
77
74
  "@radix-ui/react-switch": "^1.0.3",
78
75
  "@radix-ui/react-tooltip": "^1.0.7",
79
- "@skip-router/core": "^5.0.2",
76
+ "@skip-router/core": "^5.0.4",
80
77
  "@solana/spl-token": "^0.4.6",
81
78
  "@solana/wallet-adapter-react": "^0.15.35",
82
79
  "@solana/wallet-adapter-wallets": "^0.19.32",
@@ -88,6 +85,8 @@
88
85
  "react-hot-toast": "^2.4.1",
89
86
  "react-icons": "^5.2.1",
90
87
  "tailwind-merge": "^2.3.0",
88
+ "viem": "2.x",
89
+ "wagmi": "2.x",
91
90
  "zustand": "^4.5.2"
92
91
  },
93
92
  "publishConfig": {