From 9647c9c6772a53950e4a6f16759d394a3f7b6706 Mon Sep 17 00:00:00 2001 From: Peter Lauck Date: Mon, 11 Dec 2023 15:32:59 +0000 Subject: [PATCH] feat(category)!: move error matcher injection token to state subpackage (#2645) BREAKING CHANGE: error matcher injection token has moved to state subpackage --- libs/category/src/public_api.ts | 1 - libs/category/state/src/effects/category-page-filter.effects.ts | 2 +- libs/category/state/src/effects/category-page.effects.ts | 2 +- libs/category/state/src/effects/category.effects.ts | 2 +- .../{ => state}/src/injection-tokens/error-matcher.token.ts | 0 libs/category/{ => state}/src/injection-tokens/public_api.ts | 0 libs/category/state/src/public_api.ts | 1 + 7 files changed, 4 insertions(+), 4 deletions(-) rename libs/category/{ => state}/src/injection-tokens/error-matcher.token.ts (100%) rename libs/category/{ => state}/src/injection-tokens/public_api.ts (100%) diff --git a/libs/category/src/public_api.ts b/libs/category/src/public_api.ts index be8edb266f..15a170da9d 100644 --- a/libs/category/src/public_api.ts +++ b/libs/category/src/public_api.ts @@ -1,2 +1 @@ export * from './models/public_api'; -export * from './injection-tokens/public_api'; diff --git a/libs/category/state/src/effects/category-page-filter.effects.ts b/libs/category/state/src/effects/category-page-filter.effects.ts index 5812ca2d2a..bf44aed521 100644 --- a/libs/category/state/src/effects/category-page-filter.effects.ts +++ b/libs/category/state/src/effects/category-page-filter.effects.ts @@ -24,7 +24,6 @@ import { import { DaffGenericCategory, DaffGetCategoryResponse, - DAFF_CATEGORY_ERROR_MATCHER, DaffCategoryRequestKind, DaffCategoryIdRequest, } from '@daffodil/category'; @@ -50,6 +49,7 @@ import { DaffCategoryPageLoadFailure, } from '../actions/category-page.actions'; import { DaffCategoryProductCollectionFacade } from '../facades/public_api'; +import { DAFF_CATEGORY_ERROR_MATCHER } from '../injection-tokens/public_api'; @Injectable() export class DaffCategoryPageFilterEffects< diff --git a/libs/category/state/src/effects/category-page.effects.ts b/libs/category/state/src/effects/category-page.effects.ts index 702cf6bdd0..6feda48fbc 100644 --- a/libs/category/state/src/effects/category-page.effects.ts +++ b/libs/category/state/src/effects/category-page.effects.ts @@ -24,7 +24,6 @@ import { import { DaffGenericCategory, DaffGetCategoryResponse, - DAFF_CATEGORY_ERROR_MATCHER, DaffCategoryRequestKind, DaffCategoryIdRequest, DaffCategoryPageMetadata, @@ -54,6 +53,7 @@ import { DaffCategoryPageActionTypes, DaffCategoryPageLoadByUrl, } from '../actions/category-page.actions'; +import { DAFF_CATEGORY_ERROR_MATCHER } from '../injection-tokens/public_api'; import { getDaffCategorySelectors } from '../selectors/category.selector'; @Injectable() diff --git a/libs/category/state/src/effects/category.effects.ts b/libs/category/state/src/effects/category.effects.ts index 3c74938155..e6faf840c8 100644 --- a/libs/category/state/src/effects/category.effects.ts +++ b/libs/category/state/src/effects/category.effects.ts @@ -20,7 +20,6 @@ import { import { DaffGenericCategory, DaffGetCategoryResponse, - DAFF_CATEGORY_ERROR_MATCHER, } from '@daffodil/category'; import { DaffCategoryDriver, @@ -37,6 +36,7 @@ import { DaffCategoryLoadSuccess, DaffCategoryLoadFailure, } from '../actions/category.actions'; +import { DAFF_CATEGORY_ERROR_MATCHER } from '../injection-tokens/public_api'; @Injectable() export class DaffCategoryEffects< diff --git a/libs/category/src/injection-tokens/error-matcher.token.ts b/libs/category/state/src/injection-tokens/error-matcher.token.ts similarity index 100% rename from libs/category/src/injection-tokens/error-matcher.token.ts rename to libs/category/state/src/injection-tokens/error-matcher.token.ts diff --git a/libs/category/src/injection-tokens/public_api.ts b/libs/category/state/src/injection-tokens/public_api.ts similarity index 100% rename from libs/category/src/injection-tokens/public_api.ts rename to libs/category/state/src/injection-tokens/public_api.ts diff --git a/libs/category/state/src/public_api.ts b/libs/category/state/src/public_api.ts index 5f3d321ae4..cc2544e9cc 100644 --- a/libs/category/state/src/public_api.ts +++ b/libs/category/state/src/public_api.ts @@ -7,3 +7,4 @@ export * from './facades/public_api'; export * from './actions/category.actions'; export * from './actions/category-page.actions'; export * from './actions/category-page-filter.actions'; +export * from './injection-tokens/public_api';