@bananapus/nana-sdk-react 5.0.0 → 6.0.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.
Files changed (36) hide show
  1. package/dist/components/NativeTokenValue.d.ts +1 -1
  2. package/dist/components/NativeTokenValue.d.ts.map +1 -1
  3. package/dist/contexts/JBChainContext/JBChainContext.d.ts +1 -1
  4. package/dist/contexts/JBChainContext/JBChainContext.d.ts.map +1 -1
  5. package/dist/contexts/JBContractContext/JBContractContext.d.ts +1 -1
  6. package/dist/contexts/JBContractContext/JBContractContext.d.ts.map +1 -1
  7. package/dist/contexts/JBDataHookContext/JBCurrentDataHookProvider.d.ts +1 -1
  8. package/dist/contexts/JBDataHookContext/JBCurrentDataHookProvider.d.ts.map +1 -1
  9. package/dist/contexts/JBDataHookContext/JBDataHookContext.d.ts +1 -1
  10. package/dist/contexts/JBDataHookContext/JBDataHookContext.d.ts.map +1 -1
  11. package/dist/contexts/JBProjectMetadataContext/JBProjectMetadataContext.d.ts +1 -1
  12. package/dist/contexts/JBProjectMetadataContext/JBProjectMetadataContext.d.ts.map +1 -1
  13. package/dist/contexts/JBProjectProvider/JBProjectProvider.d.ts +1 -1
  14. package/dist/contexts/JBProjectProvider/JBProjectProvider.d.ts.map +1 -1
  15. package/dist/contexts/JBRulesetContext/JBRulesetContext.d.ts +1 -1
  16. package/dist/contexts/JBRulesetContext/JBRulesetContext.d.ts.map +1 -1
  17. package/dist/contexts/JBTerminalContext/JBPrimaryNativeTerminalProvider.d.ts +1 -1
  18. package/dist/contexts/JBTerminalContext/JBPrimaryNativeTerminalProvider.d.ts.map +1 -1
  19. package/dist/contexts/JBTerminalContext/JBTerminalContext.d.ts +1 -1
  20. package/dist/contexts/JBTerminalContext/JBTerminalContext.d.ts.map +1 -1
  21. package/dist/contexts/JBTokenContext/JBTokenContext.d.ts +1 -1
  22. package/dist/contexts/JBTokenContext/JBTokenContext.d.ts.map +1 -1
  23. package/dist/hooks/suckers/useSuckers.d.ts.map +1 -1
  24. package/dist/index.js +115 -105
  25. package/dist/index.js.map +1 -1
  26. package/dist/lib/bendystraw/useBendystrawQuery.d.ts +15 -7
  27. package/dist/lib/bendystraw/useBendystrawQuery.d.ts.map +1 -1
  28. package/dist/lib/relayr/hooks/useGetRelayrTxBundle.d.ts +4 -2
  29. package/dist/lib/relayr/hooks/useGetRelayrTxBundle.d.ts.map +1 -1
  30. package/dist/lib/relayr/hooks/useGetRelayrTxQuote.d.ts +4 -4
  31. package/dist/lib/relayr/hooks/useGetRelayrTxQuote.d.ts.map +1 -1
  32. package/dist/lib/relayr/hooks/useSendRelayrTx.d.ts.map +1 -1
  33. package/dist/lib/relayr/hooks/useSignErc2771ForwardRequest.d.ts.map +1 -1
  34. package/package.json +17 -11
  35. package/dist/hooks/jb721Hook/helpers.test.d.ts +0 -2
  36. package/dist/hooks/jb721Hook/helpers.test.d.ts.map +0 -1
@@ -1,10 +1,18 @@
1
1
  import { type TypedDocumentNode } from "@graphql-typed-document-node/core";
2
2
  import { type UseQueryResult } from "@tanstack/react-query";
3
- export declare function useBendystrawQuery<TResult, TVariables>(document: TypedDocumentNode<TResult, TVariables>, ...[variables, options]: TVariables extends Record<string, never> ? [undefined?, {
4
- pollInterval?: number;
5
- enabled?: boolean;
6
- }?] : [TVariables, {
7
- pollInterval?: number;
8
- enabled?: boolean;
9
- }?]): UseQueryResult<TResult>;
3
+ export declare function useBendystrawQuery<TResult, TVariables>(document: TypedDocumentNode<TResult, TVariables>, ...[variables, options]: TVariables extends Record<string, never> ? [
4
+ undefined?,
5
+ {
6
+ pollInterval?: number;
7
+ enabled?: boolean;
8
+ staleTime?: number;
9
+ }?
10
+ ] : [
11
+ TVariables,
12
+ {
13
+ pollInterval?: number;
14
+ enabled?: boolean;
15
+ staleTime?: number;
16
+ }?
17
+ ]): UseQueryResult<TResult>;
10
18
  //# sourceMappingURL=useBendystrawQuery.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useBendystrawQuery.d.ts","sourceRoot":"","sources":["../../../src/lib/bendystraw/useBendystrawQuery.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAMtE,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,UAAU,EACpD,QAAQ,EAAE,iBAAiB,CAAC,OAAO,EAAE,UAAU,CAAC,EAChD,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,EAAE,UAAU,SAAS,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAC7D,CAAC,SAAS,CAAC,EAAE;IAAE,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC,GAC3D,CAAC,UAAU,EAAE;IAAE,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC,GAC9D,cAAc,CAAC,OAAO,CAAC,CAgBzB"}
1
+ {"version":3,"file":"useBendystrawQuery.d.ts","sourceRoot":"","sources":["../../../src/lib/bendystraw/useBendystrawQuery.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAMtE,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,UAAU,EACpD,QAAQ,EAAE,iBAAiB,CAAC,OAAO,EAAE,UAAU,CAAC,EAChD,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,EAAE,UAAU,SAAS,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAC7D;IACE,SAAS,CAAC;IACV;QAAE,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAClE,GACD;IACE,UAAU;IACV;QAAE,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAClE,GACJ,cAAc,CAAC,OAAO,CAAC,CAsBzB"}
@@ -2,9 +2,11 @@ import { RelayrGetBundleResponse } from "../types";
2
2
  export declare function useGetRelayrTxBundle(): {
3
3
  startPolling: (bundleUuid: string) => void;
4
4
  isComplete: boolean;
5
+ hasFailed: boolean;
5
6
  uuid: string | undefined;
6
- response: RelayrGetBundleResponse;
7
+ response: RelayrGetBundleResponse | undefined;
7
8
  isPolling: boolean;
8
- error: unknown;
9
+ isFetching: boolean;
10
+ error: Error | null;
9
11
  };
10
12
  //# sourceMappingURL=useGetRelayrTxBundle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useGetRelayrTxBundle.d.ts","sourceRoot":"","sources":["../../../../src/lib/relayr/hooks/useGetRelayrTxBundle.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAgBnD,wBAAgB,oBAAoB;+BAaA,MAAM;;;cAiBF,uBAAuB;;;EAI9D"}
1
+ {"version":3,"file":"useGetRelayrTxBundle.d.ts","sourceRoot":"","sources":["../../../../src/lib/relayr/hooks/useGetRelayrTxBundle.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AA+BnD,wBAAgB,oBAAoB;+BAoBnB,MAAM;;;;;;;;EA8BtB"}
@@ -34,7 +34,7 @@ export declare function useGetRelayrTxQuote(): {
34
34
  chainId: JBChainId;
35
35
  data: ERC2771ForwardRequestData;
36
36
  version?: JBVersion;
37
- }[]) => Promise<import("..").RelayrPostBundleResponse | undefined>;
37
+ }[]) => Promise<import("..").RelayrPostBundleResponse>;
38
38
  } | {
39
39
  data: undefined;
40
40
  variables: {
@@ -71,7 +71,7 @@ export declare function useGetRelayrTxQuote(): {
71
71
  chainId: JBChainId;
72
72
  data: ERC2771ForwardRequestData;
73
73
  version?: JBVersion;
74
- }[]) => Promise<import("..").RelayrPostBundleResponse | undefined>;
74
+ }[]) => Promise<import("..").RelayrPostBundleResponse>;
75
75
  } | {
76
76
  data: undefined;
77
77
  error: Error;
@@ -108,7 +108,7 @@ export declare function useGetRelayrTxQuote(): {
108
108
  chainId: JBChainId;
109
109
  data: ERC2771ForwardRequestData;
110
110
  version?: JBVersion;
111
- }[]) => Promise<import("..").RelayrPostBundleResponse | undefined>;
111
+ }[]) => Promise<import("..").RelayrPostBundleResponse>;
112
112
  } | {
113
113
  data: import("..").RelayrPostBundleResponse;
114
114
  error: null;
@@ -145,6 +145,6 @@ export declare function useGetRelayrTxQuote(): {
145
145
  chainId: JBChainId;
146
146
  data: ERC2771ForwardRequestData;
147
147
  version?: JBVersion;
148
- }[]) => Promise<import("..").RelayrPostBundleResponse | undefined>;
148
+ }[]) => Promise<import("..").RelayrPostBundleResponse>;
149
149
  };
150
150
  //# sourceMappingURL=useGetRelayrTxQuote.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useGetRelayrTxQuote.d.ts","sourceRoot":"","sources":["../../../../src/lib/relayr/hooks/useGetRelayrTxQuote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAEhE,OAAO,EACL,yBAAyB,EAE1B,MAAM,gCAAgC,CAAC;AAExC;;GAEG;AACH,wBAAgB,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAWzB;QAAE,OAAO,EAAE,SAAS,CAAC;QAAC,IAAI,EAAE,yBAAyB,CAAC;QAAC,OAAO,CAAC,EAAE,SAAS,CAAA;KAAE,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAA9E;QAAE,OAAO,EAAE,SAAS,CAAC;QAAC,IAAI,EAAE,yBAAyB,CAAC;QAAC,OAAO,CAAC,E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E;EA2CN"}
@@ -1 +1 @@
1
- {"version":3,"file":"useSendRelayrTx.d.ts","sourceRoot":"","sources":["../../../../src/lib/relayr/hooks/useSendRelayrTx.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC;;GAEG;AACH,wBAAgB,eAAe;iCAMN,YAAY;;;;;EAgCpC"}
1
+ {"version":3,"file":"useSendRelayrTx.d.ts","sourceRoot":"","sources":["../../../../src/lib/relayr/hooks/useSendRelayrTx.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC;;GAEG;AACH,wBAAgB,eAAe;iCAMN,YAAY;;;;;EAiCpC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useSignErc2771ForwardRequest.d.ts","sourceRoot":"","sources":["../../../../src/lib/relayr/hooks/useSignErc2771ForwardRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAA0C,MAAM,0BAA0B,CAAC;AAExG,OAAO,EAAE,OAAO,EAAE,IAAI,EAAmC,MAAM,MAAM,CAAC;AAGtE,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,OAAO,CAAC;IACd,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF,wBAAgB,4BAA4B;wBAQ3B,yBAAyB,WAC7B,SAAS,YACR,SAAS;EA2FtB"}
1
+ {"version":3,"file":"useSignErc2771ForwardRequest.d.ts","sourceRoot":"","sources":["../../../../src/lib/relayr/hooks/useSignErc2771ForwardRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,SAAS,EAGV,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAmC,MAAM,MAAM,CAAC;AAGtE,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,OAAO,CAAC;IACd,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF,wBAAgB,4BAA4B;wBAQ3B,yBAAyB,WAC7B,SAAS,YACR,SAAS;EAmEtB"}
package/package.json CHANGED
@@ -1,22 +1,29 @@
1
1
  {
2
2
  "name": "@bananapus/nana-sdk-react",
3
- "version": "5.0.0",
3
+ "version": "6.0.0",
4
4
  "description": "Wagmi hooks for Juicebox",
5
5
  "type": "module",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/Bananapus/juice-sdk-v4",
9
+ "directory": "packages/react"
10
+ },
6
11
  "scripts": {
7
12
  "test": "vitest run",
13
+ "test:coverage": "vitest run --coverage",
8
14
  "generate-gql": "graphql-code-generator --config codegen.yml -r",
15
+ "generate-gql:ci": "graphql-code-generator --config codegen.ci.yml",
9
16
  "generate-types": "echo '🔧 Generating types...' && tsc --emitDeclarationOnly",
10
17
  "prebuild": "rm -Rf dist",
11
18
  "build": "tsup && npm run generate-types",
12
19
  "dev": "tsup --watch",
13
- "type-check": "tsc --noEmit"
20
+ "type-check": "tsc --noEmit && tsc --project ./tsconfig.test.json"
14
21
  },
15
22
  "author": "tomquirk",
16
23
  "license": "ISC",
17
24
  "peerDependencies": {
18
25
  "@tanstack/react-query": "^5.0.0",
19
- "react": "^18.3.1",
26
+ "react": "^18.3.1 || ^19.0.0",
20
27
  "viem": "^2.14.1",
21
28
  "wagmi": "^2.10.2",
22
29
  "@bananapus/nana-sdk-core": "*"
@@ -25,15 +32,14 @@
25
32
  "@graphql-codegen/cli": "^5.0.2",
26
33
  "@graphql-codegen/client-preset": "^4.3.0",
27
34
  "@graphql-codegen/introspection": "^4.0.3",
28
- "@graphql-codegen/typescript": "^4.0.7",
29
- "@graphql-codegen/typescript-operations": "^4.2.1",
30
- "@tanstack/react-query": "^5.0.0",
31
- "@types/react": "^19.1.13",
35
+ "@tanstack/react-query": "^5.101.4",
36
+ "@types/react": "^19.2.17",
37
+ "@vitest/coverage-v8": "^3.2.6",
32
38
  "change-case": "^5.4.4",
33
- "react": "^18.3.1",
34
- "tsup": "^8.1.0",
39
+ "react": "^19.2.8",
40
+ "tsup": "^8.5.1",
35
41
  "viem": "^2.14.1",
36
- "vitest": "^3.2.4",
42
+ "vitest": "^3.2.6",
37
43
  "wagmi": "^2.10.2",
38
44
  "@bananapus/nana-sdk-core": "*"
39
45
  },
@@ -48,6 +54,6 @@
48
54
  "access": "public"
49
55
  },
50
56
  "dependencies": {
51
- "graphql-request": "^7.2.0"
57
+ "graphql-request": "^7.4.0"
52
58
  }
53
59
  }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=helpers.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.test.d.ts","sourceRoot":"","sources":["../../../src/hooks/jb721Hook/helpers.test.ts"],"names":[],"mappings":""}