Download wp-calypso/packages/composite-checkout/src/public-api.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.92 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/composite-checkout/src/public-api.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/packages/composite-checkout/src/public-api.ts
-
curl -L -o public-api.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/composite-checkout/src/public-api.ts
1.92 kB
| import Button from './components/button'; | |
| import CheckoutErrorBoundary from './components/checkout-error-boundary'; | |
| import CheckoutModal from './components/checkout-modal'; | |
| import CheckoutPaymentMethods from './components/checkout-payment-methods'; | |
| import { CheckoutProvider } from './components/checkout-provider'; | |
| import { | |
| CheckoutFormSubmit, | |
| CheckoutStep, | |
| CheckoutStepBody, | |
| CheckoutStepGroup, | |
| PaymentMethodStep, | |
| useIsStepActive, | |
| useIsStepComplete, | |
| useSetStepComplete, | |
| useMakeStepActive, | |
| createCheckoutStepGroupStore, | |
| } from './components/checkout-steps'; | |
| import RadioButton from './components/radio-button'; | |
| import useProcessPayment from './components/use-process-payment'; | |
| import { useFormStatus } from './lib/form-status'; | |
| import { | |
| usePaymentMethod, | |
| usePaymentMethodId, | |
| useAllPaymentMethods, | |
| useAvailablePaymentMethodIds, | |
| useTogglePaymentMethod, | |
| } from './lib/payment-methods'; | |
| import { | |
| usePaymentProcessor, | |
| usePaymentProcessors, | |
| makeSuccessResponse, | |
| makeRedirectResponse, | |
| makeErrorResponse, | |
| isErrorResponse, | |
| } from './lib/payment-processors'; | |
| import checkoutTheme from './lib/theme'; | |
| import { useTransactionStatus } from './lib/transaction-status'; | |
| export * from './types'; | |
| export type { Theme } from './lib/theme'; | |
| // Re-export the public API | |
| export { | |
| Button, | |
| RadioButton, | |
| CheckoutErrorBoundary, | |
| CheckoutFormSubmit, | |
| CheckoutModal, | |
| CheckoutPaymentMethods, | |
| CheckoutProvider, | |
| CheckoutStep, | |
| CheckoutStepBody, | |
| CheckoutStepGroup, | |
| PaymentMethodStep, | |
| checkoutTheme, | |
| createCheckoutStepGroupStore, | |
| makeErrorResponse, | |
| isErrorResponse, | |
| makeRedirectResponse, | |
| makeSuccessResponse, | |
| useAllPaymentMethods, | |
| useAvailablePaymentMethodIds, | |
| useFormStatus, | |
| useIsStepActive, | |
| useIsStepComplete, | |
| usePaymentMethod, | |
| usePaymentMethodId, | |
| usePaymentProcessor, | |
| usePaymentProcessors, | |
| useProcessPayment, | |
| useSetStepComplete, | |
| useTogglePaymentMethod, | |
| useTransactionStatus, | |
| useMakeStepActive, | |
| }; | |