@chipi-stack/nextjs 11.6.0 → 11.7.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.
@@ -1 +1 @@
1
- export { useApprove, useCallAnyContract, useChipiContext, useCreateWallet, useGetTokenBalance, useGetWallet, useRecordSendTransaction, useStakeVesuUsdc, useTransfer, useWithdrawVesuUsdc } from '@chipi-stack/chipi-react';
1
+ export { useApprove, useCallAnyContract, useChipiContext, useCreateSkuTransaction, useCreateWallet, useGetSkuTransactionById, useGetSkus, useGetTokenBalance, useGetWallet, useRecordSendTransaction, useStakeVesuUsdc, useTransfer, useWithdrawVesuUsdc } from '@chipi-stack/chipi-react';
package/dist/cjs/hooks.js CHANGED
@@ -22,7 +22,10 @@ __export(hooks_exports, {
22
22
  useApprove: () => import_chipi_react.useApprove,
23
23
  useCallAnyContract: () => import_chipi_react.useCallAnyContract,
24
24
  useChipiContext: () => import_chipi_react.useChipiContext,
25
+ useCreateSkuTransaction: () => import_chipi_react.useCreateSkuTransaction,
25
26
  useCreateWallet: () => import_chipi_react.useCreateWallet,
27
+ useGetSkuTransactionById: () => import_chipi_react.useGetSkuTransactionById,
28
+ useGetSkus: () => import_chipi_react.useGetSkus,
26
29
  useGetTokenBalance: () => import_chipi_react.useGetTokenBalance,
27
30
  useGetWallet: () => import_chipi_react.useGetWallet,
28
31
  useRecordSendTransaction: () => import_chipi_react.useRecordSendTransaction,
@@ -37,7 +40,10 @@ var import_chipi_react = require("@chipi-stack/chipi-react");
37
40
  useApprove,
38
41
  useCallAnyContract,
39
42
  useChipiContext,
43
+ useCreateSkuTransaction,
40
44
  useCreateWallet,
45
+ useGetSkuTransactionById,
46
+ useGetSkus,
41
47
  useGetTokenBalance,
42
48
  useGetWallet,
43
49
  useRecordSendTransaction,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/hooks.ts"],"sourcesContent":["\"use client\";\n\n// Client-side hooks for Next.js Chipi SDK\n// These are re-exported from @chipi-stack/chipi-react for convenience\n// This file is marked as 'use client' to ensure it only runs on the client\n\nexport {\n // Context hook\n useChipiContext,\n\n // Wallet hooks\n useCreateWallet,\n useGetWallet,\n\n // Transaction hooks\n useApprove,\n useTransfer,\n\n // SKU hooks\n\n // Specialized transaction hooks\n useStakeVesuUsdc,\n useWithdrawVesuUsdc,\n useCallAnyContract,\n\n // Record send transaction hook\n useRecordSendTransaction,\n\n // Token balance hook\n useGetTokenBalance,\n} from \"@chipi-stack/chipi-react\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,yBAwBO;","names":[]}
1
+ {"version":3,"sources":["../../src/hooks.ts"],"sourcesContent":["\"use client\";\n\n// Client-side hooks for Next.js Chipi SDK\n// These are re-exported from @chipi-stack/chipi-react for convenience\n// This file is marked as 'use client' to ensure it only runs on the client\n\nexport {\n // Context hook\n useChipiContext,\n\n // Wallet hooks\n useCreateWallet,\n useGetWallet,\n\n // Transaction hooks\n useApprove,\n useTransfer,\n\n // SKU hooks\n useGetSkus,\n\n\n // SKU Transaction hooks\n useCreateSkuTransaction,\n useGetSkuTransactionById,\n \n\n // Specialized transaction hooks\n useStakeVesuUsdc,\n useWithdrawVesuUsdc,\n useCallAnyContract,\n\n // Record send transaction hook\n useRecordSendTransaction,\n\n // Token balance hook\n useGetTokenBalance,\n} from \"@chipi-stack/chipi-react\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,yBA+BO;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import { ServerComponentsServerModuleTypes } from './components.server.js';
2
2
  export { ChipiProvider as ChipiClientProvider } from './app-router/client/ChipiProvider.js';
3
- export { useApprove, useCallAnyContract, useChipiContext, useCreateWallet, useGetTokenBalance, useGetWallet, useRecordSendTransaction, useStakeVesuUsdc, useTransfer, useWithdrawVesuUsdc } from '@chipi-stack/chipi-react';
3
+ export { useApprove, useCallAnyContract, useChipiContext, useCreateSkuTransaction, useCreateWallet, useGetSkuTransactionById, useGetSkus, useGetTokenBalance, useGetWallet, useRecordSendTransaction, useStakeVesuUsdc, useTransfer, useWithdrawVesuUsdc } from '@chipi-stack/chipi-react';
4
4
  export * from '@chipi-stack/types';
5
5
  export { createChipiServer, getChipiServer, resetChipiServer } from './server/createChipiServer.js';
6
6
  import './app-router/server/ChipiProvider.js';
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ var import_jest_dom = require("@testing-library/jest-dom");
3
+ //# sourceMappingURL=setup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/test/setup.ts"],"sourcesContent":["import '@testing-library/jest-dom'\n"],"mappings":";AAAA,sBAAO;","names":[]}
package/dist/esm/hooks.js CHANGED
@@ -5,6 +5,9 @@ import {
5
5
  useGetWallet,
6
6
  useApprove,
7
7
  useTransfer,
8
+ useGetSkus,
9
+ useCreateSkuTransaction,
10
+ useGetSkuTransactionById,
8
11
  useStakeVesuUsdc,
9
12
  useWithdrawVesuUsdc,
10
13
  useCallAnyContract,
@@ -15,7 +18,10 @@ export {
15
18
  useApprove,
16
19
  useCallAnyContract,
17
20
  useChipiContext,
21
+ useCreateSkuTransaction,
18
22
  useCreateWallet,
23
+ useGetSkuTransactionById,
24
+ useGetSkus,
19
25
  useGetTokenBalance,
20
26
  useGetWallet,
21
27
  useRecordSendTransaction,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/hooks.ts"],"sourcesContent":["\"use client\";\n\n// Client-side hooks for Next.js Chipi SDK\n// These are re-exported from @chipi-stack/chipi-react for convenience\n// This file is marked as 'use client' to ensure it only runs on the client\n\nexport {\n // Context hook\n useChipiContext,\n\n // Wallet hooks\n useCreateWallet,\n useGetWallet,\n\n // Transaction hooks\n useApprove,\n useTransfer,\n\n // SKU hooks\n\n // Specialized transaction hooks\n useStakeVesuUsdc,\n useWithdrawVesuUsdc,\n useCallAnyContract,\n\n // Record send transaction hook\n useRecordSendTransaction,\n\n // Token balance hook\n useGetTokenBalance,\n} from \"@chipi-stack/chipi-react\";\n"],"mappings":";AAMA;AAAA,EAEE;AAAA,EAGA;AAAA,EACA;AAAA,EAGA;AAAA,EACA;AAAA,EAKA;AAAA,EACA;AAAA,EACA;AAAA,EAGA;AAAA,EAGA;AAAA,OACK;","names":[]}
1
+ {"version":3,"sources":["../../src/hooks.ts"],"sourcesContent":["\"use client\";\n\n// Client-side hooks for Next.js Chipi SDK\n// These are re-exported from @chipi-stack/chipi-react for convenience\n// This file is marked as 'use client' to ensure it only runs on the client\n\nexport {\n // Context hook\n useChipiContext,\n\n // Wallet hooks\n useCreateWallet,\n useGetWallet,\n\n // Transaction hooks\n useApprove,\n useTransfer,\n\n // SKU hooks\n useGetSkus,\n\n\n // SKU Transaction hooks\n useCreateSkuTransaction,\n useGetSkuTransactionById,\n \n\n // Specialized transaction hooks\n useStakeVesuUsdc,\n useWithdrawVesuUsdc,\n useCallAnyContract,\n\n // Record send transaction hook\n useRecordSendTransaction,\n\n // Token balance hook\n useGetTokenBalance,\n} from \"@chipi-stack/chipi-react\";\n"],"mappings":";AAMA;AAAA,EAEE;AAAA,EAGA;AAAA,EACA;AAAA,EAGA;AAAA,EACA;AAAA,EAGA;AAAA,EAIA;AAAA,EACA;AAAA,EAIA;AAAA,EACA;AAAA,EACA;AAAA,EAGA;AAAA,EAGA;AAAA,OACK;","names":[]}
@@ -0,0 +1,2 @@
1
+ import "@testing-library/jest-dom";
2
+ //# sourceMappingURL=setup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/test/setup.ts"],"sourcesContent":["import '@testing-library/jest-dom'\n"],"mappings":"AAAA,OAAO;","names":[]}
package/dist/hooks.d.mts CHANGED
@@ -1 +1 @@
1
- export { useApprove, useCallAnyContract, useChipiContext, useCreateWallet, useGetTokenBalance, useGetWallet, useRecordSendTransaction, useStakeVesuUsdc, useTransfer, useWithdrawVesuUsdc } from '@chipi-stack/chipi-react';
1
+ export { useApprove, useCallAnyContract, useChipiContext, useCreateSkuTransaction, useCreateWallet, useGetSkuTransactionById, useGetSkus, useGetTokenBalance, useGetWallet, useRecordSendTransaction, useStakeVesuUsdc, useTransfer, useWithdrawVesuUsdc } from '@chipi-stack/chipi-react';
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ServerComponentsServerModuleTypes } from './components.server.mjs';
2
2
  export { ChipiProvider as ChipiClientProvider } from './app-router/client/ChipiProvider.mjs';
3
- export { useApprove, useCallAnyContract, useChipiContext, useCreateWallet, useGetTokenBalance, useGetWallet, useRecordSendTransaction, useStakeVesuUsdc, useTransfer, useWithdrawVesuUsdc } from '@chipi-stack/chipi-react';
3
+ export { useApprove, useCallAnyContract, useChipiContext, useCreateSkuTransaction, useCreateWallet, useGetSkuTransactionById, useGetSkus, useGetTokenBalance, useGetWallet, useRecordSendTransaction, useStakeVesuUsdc, useTransfer, useWithdrawVesuUsdc } from '@chipi-stack/chipi-react';
4
4
  export * from '@chipi-stack/types';
5
5
  export { createChipiServer, getChipiServer, resetChipiServer } from './server/createChipiServer.mjs';
6
6
  import './app-router/server/ChipiProvider.mjs';
@@ -0,0 +1,2 @@
1
+
2
+ export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chipi-stack/nextjs",
3
- "version": "11.6.0",
3
+ "version": "11.7.0",
4
4
  "description": "Chipi SDK for Next.js applications with server-side support",
5
5
  "keywords": [
6
6
  "chipi",
@@ -69,14 +69,15 @@
69
69
  "react-dom": "^18.3.0",
70
70
  "rimraf": "^5.0.0",
71
71
  "tsup": "^8.3.6",
72
- "typescript": "^5.7.3"
72
+ "typescript": "^5.7.3",
73
+ "vitest": "^3.2.4"
73
74
  },
74
75
  "dependencies": {
75
76
  "@tanstack/react-query": "^5.85.0",
76
- "@chipi-stack/backend": "^11.6.0",
77
- "@chipi-stack/shared": "^11.6.0",
78
- "@chipi-stack/types": "^11.6.0",
79
- "@chipi-stack/chipi-react": "^11.6.0"
77
+ "@chipi-stack/backend": "^11.7.0",
78
+ "@chipi-stack/chipi-react": "^11.7.0",
79
+ "@chipi-stack/shared": "^11.7.0",
80
+ "@chipi-stack/types": "^11.7.0"
80
81
  },
81
82
  "peerDependencies": {
82
83
  "next": ">=13.0.0",
@@ -97,6 +98,10 @@
97
98
  "format": "prettier --write src/**/*.{ts,tsx}",
98
99
  "format:check": "prettier --check src/**/*.{ts,tsx}",
99
100
  "lint": "eslint src",
100
- "typecheck": "tsc --noEmit"
101
+ "typecheck": "tsc --noEmit",
102
+ "test": "vitest run",
103
+ "test:watch": "vitest watch",
104
+ "test:ui": "vitest --ui",
105
+ "test:coverage": "vitest run --coverage"
101
106
  }
102
107
  }