@cardql/react
Version:
CardQL SDK for React web applications with hooks and context providers
55 lines (51 loc) • 1.13 kB
text/typescript
// Re-export everything from core
export * from "@cardql/core";
// Export React-specific functionality
export * from "./context";
export * from "./hooks/useQuery";
export * from "./hooks/useMutation";
export * from "./hooks/useCardQL";
export * from "./components/PaymentForm";
// Main exports
export {
CardQLProvider,
useCardQL,
useCardQLClient,
useCardQLApi,
} from "./context";
export { useQuery } from "./hooks/useQuery";
export { useMutation } from "./hooks/useMutation";
export { PaymentForm } from "./components/PaymentForm";
// Convenience hook exports
export {
useAccounts,
useAccount,
useCreateAccount,
useUpdateAccount,
useDeleteAccount,
useApps,
useApp,
useCreateApp,
useUpdateApp,
useDeleteApp,
useCustomers,
useCustomer,
useCreateCustomer,
useUpdateCustomer,
useDeleteCustomer,
useMerchants,
useMerchant,
useCreateMerchant,
useUpdateMerchant,
useDeleteMerchant,
usePayments,
usePayment,
useCreatePayment,
useUpdatePayment,
useDeletePayment,
useLedgers,
useLedger,
useCreateLedger,
useUpdateLedger,
useDeleteLedger,
} from "./hooks/useCardQL";