mirror of
https://github.com/vercel/commerce.git
synced 2025-09-23 00:00:19 +00:00
.vscode
framework
commercejs
kibocommerce
ordercloud
saleor
shopify
spree
swell
vendure
api
auth
cart
checkout
customer
product
types
utils
wishlist
.env.template
README.md
codegen.json
commerce.config.json
fetcher.ts
index.tsx
next.config.js
provider.ts
schema.d.ts
schema.graphql
packages
site
.editorconfig
.gitignore
.prettierignore
.prettierrc
README.md
license.md
package-copy.json
package-lock.json
package.json
* Updated core types for commerce provider * Updated bigcommerce provider * Added util method for provider creation * Removed unrequired code from saleor * Updated shopify provider * Updated providers and local setup * Updated saleor setup * Updated swell * Updated vendure * Updated swell-js usage * Removed unrequired import from saleor
23 lines
883 B
TypeScript
23 lines
883 B
TypeScript
import { handler as useCart } from './cart/use-cart'
|
|
import { handler as useAddItem } from './cart/use-add-item'
|
|
import { handler as useUpdateItem } from './cart/use-update-item'
|
|
import { handler as useRemoveItem } from './cart/use-remove-item'
|
|
import { handler as useCustomer } from './customer/use-customer'
|
|
import { handler as useSearch } from './product/use-search'
|
|
import { handler as useLogin } from './auth/use-login'
|
|
import { handler as useLogout } from './auth/use-logout'
|
|
import { handler as useSignup } from './auth/use-signup'
|
|
import { fetcher } from './fetcher'
|
|
|
|
export const vendureProvider = {
|
|
locale: 'en-us',
|
|
cartCookie: 'session',
|
|
fetcher,
|
|
cart: { useCart, useAddItem, useUpdateItem, useRemoveItem },
|
|
customer: { useCustomer },
|
|
products: { useSearch },
|
|
auth: { useLogin, useLogout, useSignup },
|
|
}
|
|
|
|
export type VendureProvider = typeof vendureProvider
|