@0xsquid/react-hooks 1.0.31 → 1.0.32

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,2 +1,3 @@
1
1
  export { wallets } from "./constants";
2
2
  export { CosmosProvider, useCosmosContext } from "./providers/CosmosProvider";
3
+ export type { ConnectorID, Wallet } from "./types/wallet";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xsquid/react-hooks",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "description": "Squid hooks monorepo",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -34,19 +34,12 @@
34
34
  "@cosmsnap/snapper": "0.1.29",
35
35
  "@ledgerhq/iframe-provider": "0.4.3",
36
36
  "@tanstack/react-query": "4.36.1",
37
- "@tanstack/react-query-devtools": "4.36.1",
38
37
  "@wagmi/connectors": "0.3.16",
39
38
  "@wagmi/core": "0.10.17",
40
39
  "axios": "0.28.0",
41
40
  "bignumber.js": "9.1.1",
42
- "color": "4.2.3",
43
41
  "cosmjs-types": "0.8.0",
44
- "fuse.js": "6.6.2",
45
42
  "lodash": "4.17.21",
46
- "react-content-loader": "6.2.0",
47
- "react-icons": "4.7.1",
48
- "react-test-renderer": "18.2.0",
49
- "react-window": "1.8.10",
50
43
  "secretjs": "1.12.4",
51
44
  "wagmi": "^0.12.13",
52
45
  "zustand": "4.5.0"
@@ -65,9 +58,9 @@
65
58
  "@babel/preset-react": "7.24.1",
66
59
  "@babel/preset-typescript": "7.24.1",
67
60
  "@keplr-wallet/types": "0.12.107",
61
+ "@tanstack/react-query-devtools": "4.36.1",
68
62
  "@testing-library/react": "14.3.0",
69
63
  "@testing-library/react-hooks": "8.0.1",
70
- "@types/color": "3.0.3",
71
64
  "@types/jest": "29.5.12",
72
65
  "@types/lodash": "4.14.186",
73
66
  "@types/node": "18.7.23",
@@ -1,14 +0,0 @@
1
- export type ComponentSize = "xs" | "sm" | "md" | "lg";
2
- export interface SkeletonConfig {
3
- hasRandomWidth?: boolean;
4
- backgroundColor?: string;
5
- foregroundColor?: string;
6
- animate?: boolean;
7
- title?: string;
8
- speed?: number;
9
- width?: number;
10
- height?: number;
11
- }
12
- export interface LoadingComponentProps {
13
- isLoading?: boolean;
14
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=components.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"components.js","sourceRoot":"","sources":["../../../src/core/types/components.ts"],"names":[],"mappings":""}
@@ -1,30 +0,0 @@
1
- import type { Token } from "@0xsquid/squid-types";
2
- export type SwapDirection = "from" | "to";
3
- export type NextJsImg = {
4
- src: string;
5
- };
6
- export type ImgType = string | NextJsImg;
7
- export declare enum FeeType {
8
- AXELAR_FEE = "Axelar Fee",
9
- GAS_RECEIVER_FEE = "Cross-chain gas fees"
10
- }
11
- export type FeeCost = {
12
- name: FeeType;
13
- description: string;
14
- percentage: string;
15
- token: Token;
16
- amount: string;
17
- amountUSD: string;
18
- };
19
- export type ApiBasicResponse = {
20
- error?: string;
21
- errorType?: any;
22
- };
23
- export type TimeSpent = {
24
- send_vote?: number;
25
- type?: string;
26
- destination_chain_type?: string;
27
- source_chain_type?: string;
28
- total?: number;
29
- vote_ibc?: number;
30
- };
@@ -1,7 +0,0 @@
1
- // TODO: BELOW Are temporary types taken from api for development because SDK wasn't up to date
2
- export var FeeType;
3
- (function (FeeType) {
4
- FeeType["AXELAR_FEE"] = "Axelar Fee";
5
- FeeType["GAS_RECEIVER_FEE"] = "Cross-chain gas fees";
6
- })(FeeType || (FeeType = {}));
7
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/core/types/types.ts"],"names":[],"mappings":"AASA,+FAA+F;AAC/F,MAAM,CAAN,IAAY,OAGX;AAHD,WAAY,OAAO;IACjB,oCAAyB,CAAA;IACzB,oDAAyC,CAAA;AAC3C,CAAC,EAHW,OAAO,KAAP,OAAO,QAGlB"}
@@ -1,18 +0,0 @@
1
- interface EventData {
2
- event: string;
3
- }
4
- declare global {
5
- interface Window {
6
- dataLayer: Array<EventData> | undefined;
7
- }
8
- }
9
- export declare class AnalyticsService {
10
- private static pushEvent;
11
- static submitButtonPushed(): void;
12
- static givePermissionToUseTokenButton(): void;
13
- static settingClicked(): void;
14
- static historyClicked(): void;
15
- static expressClicked(): void;
16
- static regularClicked(): void;
17
- }
18
- export {};
@@ -1,30 +0,0 @@
1
- export class AnalyticsService {
2
- static pushEvent(eventData) {
3
- if (window) {
4
- const dataLayer = window.dataLayer || [];
5
- const domain = window.location.hostname;
6
- if (dataLayer && domain.includes("squidrouter.com")) {
7
- dataLayer.push(eventData);
8
- }
9
- }
10
- }
11
- static submitButtonPushed() {
12
- this.pushEvent({ event: "submitswap_cta_clicked" });
13
- }
14
- static givePermissionToUseTokenButton() {
15
- this.pushEvent({ event: "permissiontoken_cta_clicked" });
16
- }
17
- static settingClicked() {
18
- this.pushEvent({ event: "settings_clicked" });
19
- }
20
- static historyClicked() {
21
- this.pushEvent({ event: "history_clicked" });
22
- }
23
- static expressClicked() {
24
- this.pushEvent({ event: "expressTx_clicked" });
25
- }
26
- static regularClicked() {
27
- this.pushEvent({ event: "regularTx_clicked" });
28
- }
29
- }
30
- //# sourceMappingURL=analyticsService.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"analyticsService.js","sourceRoot":"","sources":["../../../src/services/external/analyticsService.ts"],"names":[],"mappings":"AAUA,MAAM,OAAO,gBAAgB;IACnB,MAAM,CAAC,SAAS,CAAC,SAAoB;QAC3C,IAAI,MAAM,EAAE;YACV,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS,IAAI,EAAE,CAAC;YACzC,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC;YAExC,IAAI,SAAS,IAAI,MAAM,CAAC,QAAQ,CAAC,iBAAiB,CAAC,EAAE;gBACnD,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;aAC3B;SACF;IACH,CAAC;IAEM,MAAM,CAAC,kBAAkB;QAC9B,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,wBAAwB,EAAE,CAAC,CAAC;IACtD,CAAC;IAEM,MAAM,CAAC,8BAA8B;QAC1C,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,6BAA6B,EAAE,CAAC,CAAC;IAC3D,CAAC;IAEM,MAAM,CAAC,cAAc;QAC1B,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAChD,CAAC;IAEM,MAAM,CAAC,cAAc;QAC1B,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,iBAAiB,EAAE,CAAC,CAAC;IAC/C,CAAC;IAEM,MAAM,CAAC,cAAc;QAC1B,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,mBAAmB,EAAE,CAAC,CAAC;IACjD,CAAC;IAEM,MAAM,CAAC,cAAc;QAC1B,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,mBAAmB,EAAE,CAAC,CAAC;IACjD,CAAC;CACF"}