@bananapus/nana-sdk-react 10.0.0 → 10.0.1

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.
@@ -29,7 +29,7 @@ export interface OwnedShopItem {
29
29
  tierId: number;
30
30
  }
31
31
  /** Filter on a bendystraw list query. Only the fields the shop hooks set. */
32
- export interface ShopEventFilter {
32
+ interface ShopEventFilter {
33
33
  projectId?: number;
34
34
  chainId?: number;
35
35
  version?: number;
@@ -59,4 +59,5 @@ export interface ShopQueryVariables {
59
59
  }
60
60
  export declare const ShopPurchasesDocument: TypedDocumentNode<ShopPurchasesResult, ShopQueryVariables>;
61
61
  export declare const OwnedShopItemsDocument: TypedDocumentNode<OwnedShopItemsResult, ShopQueryVariables>;
62
+ export {};
62
63
  //# sourceMappingURL=shop.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shop.d.ts","sourceRoot":"","sources":["../../../../src/lib/bendystraw/queries/shop.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAG3E;;;;;GAKG;AAEH,gDAAgD;AAChD,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,sDAAsD;AACtD,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KA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AAED,eAAO,MAAM,qBAAqB,EAuB5B,iBAAiB,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAAC;AAEjE,eAAO,MAAM,sBAAsB,EAwB7B,iBAAiB,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bananapus/nana-sdk-react",
3
- "version": "10.0.0",
3
+ "version": "10.0.1",
4
4
  "description": "Wagmi hooks for Juicebox",
5
5
  "type": "module",
6
6
  "repository": {
@@ -30,12 +30,13 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "@graphql-codegen/cli": "^5.0.2",
33
- "@graphql-codegen/client-preset": "^4.3.0",
34
33
  "@graphql-codegen/introspection": "^4.0.3",
34
+ "@graphql-codegen/typed-document-node": "^5.1.2",
35
+ "@graphql-codegen/typescript": "^4.1.6",
36
+ "@graphql-codegen/typescript-operations": "^4.6.1",
35
37
  "@tanstack/react-query": "^5.101.4",
36
38
  "@types/react": "^19.2.17",
37
39
  "@vitest/coverage-v8": "^3.2.6",
38
- "change-case": "^5.4.4",
39
40
  "react": "^19.2.8",
40
41
  "tsup": "^8.5.1",
41
42
  "viem": "^2.14.1",
@@ -54,6 +55,7 @@
54
55
  "access": "public"
55
56
  },
56
57
  "dependencies": {
58
+ "@graphql-typed-document-node/core": "^3.2.0",
57
59
  "graphql-request": "^7.4.0"
58
60
  }
59
61
  }
@@ -1,20 +0,0 @@
1
- import { ResultOf, DocumentTypeDecoration, TypedDocumentNode } from '@graphql-typed-document-node/core';
2
- import { Incremental } from './graphql';
3
- export type FragmentType<TDocumentType extends DocumentTypeDecoration<any, any>> = TDocumentType extends DocumentTypeDecoration<infer TType, any> ? [TType] extends [{
4
- ' $fragmentName'?: infer TKey;
5
- }] ? TKey extends string ? {
6
- ' $fragmentRefs'?: {
7
- [key in TKey]: TType;
8
- };
9
- } : never : never : never;
10
- export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: FragmentType<DocumentTypeDecoration<TType, any>>): TType;
11
- export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | undefined): TType | undefined;
12
- export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | null): TType | null;
13
- export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | null | undefined): TType | null | undefined;
14
- export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: Array<FragmentType<DocumentTypeDecoration<TType, any>>>): Array<TType>;
15
- export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: Array<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined): Array<TType> | null | undefined;
16
- export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>>): ReadonlyArray<TType>;
17
- export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined): ReadonlyArray<TType> | null | undefined;
18
- export declare function makeFragmentData<F extends DocumentTypeDecoration<any, any>, FT extends ResultOf<F>>(data: FT, _fragment: F): FragmentType<F>;
19
- export declare function isFragmentReady<TQuery, TFrag>(queryNode: DocumentTypeDecoration<TQuery, any>, fragmentNode: TypedDocumentNode<TFrag>, data: FragmentType<TypedDocumentNode<Incremental<TFrag>, any>> | null | undefined): data is FragmentType<typeof fragmentNode>;
20
- //# sourceMappingURL=fragment-masking.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fragment-masking.d.ts","sourceRoot":"","sources":["../../src/generated/fragment-masking.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,sBAAsB,EAAE,iBAAiB,EAA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CAAC,CAEzC;AACD,wBAAgB,eAAe,CAAC,MAAM,EAAE,KAAK,EAC3C,SAAS,EAAE,sBAAsB,CAAC,MAAM,EAAE,GAAG,CAAC,EAC9C,YAAY,EAAE,iBAAiB,CAAC,KAAK,CAAC,EACtC,IAAI,EAAE,YAAY,CAAC,iBAAiB,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,GAChF,IAAI,IAAI,YAAY,CAAC,OAAO,YAAY,CAAC,CAW3C"}
@@ -1,37 +0,0 @@
1
- import * as types from './graphql';
2
- import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
3
- /**
4
- * Map of all GraphQL operations in the project.
5
- *
6
- * This map has several performance disadvantages:
7
- * 1. It is not tree-shakeable, so it will include all operations in the project.
8
- * 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.
9
- * 3. It does not support dead code elimination, so it will add unused operations.
10
- *
11
- * Therefore it is highly recommended to use the babel or swc plugin for production.
12
- * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
13
- */
14
- type Documents = {
15
- "query Project($projectId: Float!, $chainId: Float!, $version: Float!) {\n project(projectId: $projectId, chainId: $chainId, version: $version) {\n projectId\n metadataUri\n handle\n createdAt\n logoUri\n name\n version\n suckerGroupId\n suckerGroup {\n projects {\n items {\n chainId\n balance\n tokenSupply\n projectId\n }\n }\n }\n }\n}\n\nquery Projects($where: projectFilter) {\n projects(where: $where) {\n items {\n projectId\n metadataUri\n handle\n createdAt\n suckerGroupId\n participants {\n totalCount\n }\n version\n }\n }\n}\n\nquery ProjectAccountingContext($chainId: Float!, $projectId: Float!, $version: Float!) {\n project(chainId: $chainId, projectId: $projectId, version: $version) {\n token\n decimals\n currency\n }\n}": typeof types.ProjectDocument;
16
- };
17
- declare const documents: Documents;
18
- /**
19
- * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
20
- *
21
- *
22
- * @example
23
- * ```ts
24
- * const query = graphql(`query GetUser($id: ID!) { user(id: $id) { name } }`);
25
- * ```
26
- *
27
- * The query argument is unknown!
28
- * Please regenerate the types.
29
- */
30
- export declare function graphql(source: string): unknown;
31
- /**
32
- * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
33
- */
34
- export declare function graphql(source: "query Project($projectId: Float!, $chainId: Float!, $version: Float!) {\n project(projectId: $projectId, chainId: $chainId, version: $version) {\n projectId\n metadataUri\n handle\n createdAt\n logoUri\n name\n version\n suckerGroupId\n suckerGroup {\n projects {\n items {\n chainId\n balance\n tokenSupply\n projectId\n }\n }\n }\n }\n}\n\nquery Projects($where: projectFilter) {\n projects(where: $where) {\n items {\n projectId\n metadataUri\n handle\n createdAt\n suckerGroupId\n participants {\n totalCount\n }\n version\n }\n }\n}\n\nquery ProjectAccountingContext($chainId: Float!, $projectId: Float!, $version: Float!) {\n project(chainId: $chainId, projectId: $projectId, version: $version) {\n token\n decimals\n currency\n }\n}"): (typeof documents)["query Project($projectId: Float!, $chainId: Float!, $version: Float!) {\n project(projectId: $projectId, chainId: $chainId, version: $version) {\n projectId\n metadataUri\n handle\n createdAt\n logoUri\n name\n version\n suckerGroupId\n suckerGroup {\n projects {\n items {\n chainId\n balance\n tokenSupply\n projectId\n }\n }\n }\n }\n}\n\nquery Projects($where: projectFilter) {\n projects(where: $where) {\n items {\n projectId\n metadataUri\n handle\n createdAt\n suckerGroupId\n participants {\n totalCount\n }\n version\n }\n }\n}\n\nquery ProjectAccountingContext($chainId: Float!, $projectId: Float!, $version: Float!) {\n project(chainId: $chainId, projectId: $projectId, version: $version) {\n token\n decimals\n currency\n }\n}"];
35
- export type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode<infer TType, any> ? TType : never;
36
- export {};
37
- //# sourceMappingURL=gql.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gql.d.ts","sourceRoot":"","sources":["../../src/generated/gql.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,iBAAiB,IAAI,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEtF;;;;;;;;;;GAUG;AACH,KAAK,SAAS,GAAG;IACb,m4BAAm4B,EAAE,OAAO,KAAK,CAAC,eAAe,CAAC;CACr6B,CAAC;AACF,QAAA,MAAM,SAAS,EAAE,SAEhB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;AAEjD;;GAEG;AACH,wBAAgB,OAAO,CAAC,MAAM,EAAE,m4BAAm4B,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,m4BAAm4B,CAAC,CAAC;AAM9zD,MAAM,MAAM,YAAY,CAAC,aAAa,SAAS,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,aAAa,SAAS,YAAY,CAAG,MAAM,KAAK,EAAG,GAAG,CAAC,GAAI,KAAK,GAAI,KAAK,CAAC"}
@@ -1,3 +0,0 @@
1
- export * from "./fragment-masking";
2
- export * from "./gql";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,OAAO,CAAC"}