mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Wishlist
This commit is contained in:
5
framework/bigcommerce/config.json
Normal file
5
framework/bigcommerce/config.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"features": {
|
||||
"wishlist": false
|
||||
}
|
||||
}
|
@@ -1,4 +1,4 @@
|
||||
import useSearch, { UseSearch } from '@commerce/products/use-search'
|
||||
import useSearch, { UseSearch } from '@commerce/cart/products/use-search'
|
||||
import type { BigcommerceProvider } from '..'
|
||||
|
||||
export default useSearch as UseSearch<BigcommerceProvider>
|
||||
|
@@ -1,13 +1,13 @@
|
||||
import type { SearchProductsData } from '../types'
|
||||
import type { SearchProductsData } from '../../types'
|
||||
import type {
|
||||
Prop,
|
||||
HookFetcherFn,
|
||||
UseHookInput,
|
||||
UseHookResponse,
|
||||
} from '../utils/types'
|
||||
import defaultFetcher from '../utils/default-fetcher'
|
||||
import useData from '../utils/use-data'
|
||||
import { Provider, useCommerce } from '..'
|
||||
} from '../../utils/types'
|
||||
import defaultFetcher from '../../utils/default-fetcher'
|
||||
import useData from '../../utils/use-data'
|
||||
import { Provider, useCommerce } from '../..'
|
||||
import { BigcommerceProvider } from '@framework'
|
||||
|
||||
export type UseSearchHandler<P extends Provider> = Prop<
|
5
framework/commerce/config.json
Normal file
5
framework/commerce/config.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"features": {
|
||||
"wishlist": true
|
||||
}
|
||||
}
|
@@ -148,3 +148,10 @@ export interface RemoveCartItemBody {
|
||||
export interface RemoveCartItemHandlerBody extends Partial<RemoveCartItemBody> {
|
||||
cartId?: string
|
||||
}
|
||||
|
||||
// Features API
|
||||
type Features = 'wishlist' | 'checkout'
|
||||
|
||||
export interface FrameworkConfig {
|
||||
features: Record<Features, boolean>
|
||||
}
|
||||
|
Reference in New Issue
Block a user