Skip to content

Commit

Permalink
chore(headless): move product-list ssr to its own directory (#4631)
Browse files Browse the repository at this point in the history
This PR moves the file for the product-list ssr controller definition in
its own directory instead of in the product-listing directory as it is
used for both product-listing and search, not just product-listing.

https://coveord.atlassian.net/browse/KIT-3488
  • Loading branch information
fpbrault authored Nov 6, 2024
1 parent a395a3c commit 2eefb48
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import {
SolutionType,
SubControllerDefinitionWithoutProps,
} from '../../../app/commerce-ssr-engine/types/common.js';
import {buildSearch, Search} from '../search/headless-search.js';
import {
ProductListing,
buildProductListing,
} from './headless-product-listing.js';
} from '../product-listing/headless-product-listing.js';
import {buildSearch, Search} from '../search/headless-search.js';

export type {ProductListingState as ProductListState} from './headless-product-listing.js';
export type {ProductListingState as ProductListState} from '../product-listing/headless-product-listing.js';
export type ProductList = Pick<
ProductListing | Search,
'state' | 'subscribe' | 'interactiveProduct'
Expand Down
4 changes: 2 additions & 2 deletions packages/headless/src/ssr-commerce.index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ export {defineParameterManager} from './controllers/commerce/core/parameter-mana
export type {
ProductList,
ProductListState,
} from './controllers/commerce/product-listing/headless-product-listing.ssr.js';
export {defineProductList} from './controllers/commerce/product-listing/headless-product-listing.ssr.js';
} from './controllers/commerce/product-list/headless-product-list.ssr.js';
export {defineProductList} from './controllers/commerce/product-list/headless-product-list.ssr.js';

export type {ProductView} from './controllers/commerce/product-view/headless-product-view.ssr.js';
export {defineProductView} from './controllers/commerce/product-view/headless-product-view.ssr.js';
Expand Down

0 comments on commit 2eefb48

Please sign in to comment.