@daffodil/search 0.78.0 → 0.80.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/driver/federated/config/default.d.ts +1 -1
  2. package/driver/federated/config/interface.d.ts +1 -6
  3. package/driver/federated/config/public_api.d.ts +2 -2
  4. package/driver/federated/injection-tokens/drivers.token.d.ts +1 -19
  5. package/driver/in-memory/injection-tokens/backends.token.d.ts +1 -19
  6. package/driver/interfaces/search-service.interface.d.ts +1 -5
  7. package/driver/public_api.d.ts +1 -1
  8. package/esm2022/driver/federated/config/default.mjs +2 -2
  9. package/esm2022/driver/federated/config/interface.mjs +9 -4
  10. package/esm2022/driver/federated/config/public_api.mjs +3 -3
  11. package/esm2022/driver/federated/injection-tokens/drivers.token.mjs +6 -11
  12. package/esm2022/driver/federated/search-driver.module.mjs +8 -23
  13. package/esm2022/driver/federated/search.service.mjs +4 -4
  14. package/esm2022/driver/in-memory/driver/search-driver.module.mjs +3 -6
  15. package/esm2022/driver/in-memory/injection-tokens/backends.token.mjs +6 -11
  16. package/esm2022/driver/interfaces/search-service.interface.mjs +8 -3
  17. package/esm2022/driver/public_api.mjs +2 -2
  18. package/esm2022/driver/testing/drivers/search-driver.module.mjs +3 -6
  19. package/esm2022/routing/injection-tokens/public_api.mjs +2 -2
  20. package/esm2022/routing/injection-tokens/search-options/builder.token.mjs +8 -3
  21. package/esm2022/routing/injection-tokens/search-options/builders.token.mjs +6 -11
  22. package/esm2022/state/config/public_api.mjs +2 -2
  23. package/esm2022/state/config/token.mjs +8 -5
  24. package/esm2022/state/incremental.module.mjs +3 -6
  25. package/esm2022/state/injection-tokens/error-matcher.token.mjs +8 -3
  26. package/esm2022/state/injection-tokens/public_api.mjs +2 -2
  27. package/esm2022/state/reducers/token/extra.token.mjs +5 -13
  28. package/esm2022/state/reducers/token/reducers.token.mjs +9 -3
  29. package/esm2022/testing/injection-tokens/factories/kind.token.mjs +7 -11
  30. package/esm2022/testing/injection-tokens/public_api.mjs +2 -2
  31. package/esm2022/testing/testing.module.mjs +4 -12
  32. package/fesm2022/daffodil-search-driver-federated.mjs +22 -36
  33. package/fesm2022/daffodil-search-driver-federated.mjs.map +1 -1
  34. package/fesm2022/daffodil-search-driver-in-memory.mjs +9 -16
  35. package/fesm2022/daffodil-search-driver-in-memory.mjs.map +1 -1
  36. package/fesm2022/daffodil-search-driver-testing.mjs +2 -5
  37. package/fesm2022/daffodil-search-driver-testing.mjs.map +1 -1
  38. package/fesm2022/daffodil-search-driver.mjs +8 -4
  39. package/fesm2022/daffodil-search-driver.mjs.map +1 -1
  40. package/fesm2022/daffodil-search-routing.mjs +13 -12
  41. package/fesm2022/daffodil-search-routing.mjs.map +1 -1
  42. package/fesm2022/daffodil-search-state.mjs +26 -23
  43. package/fesm2022/daffodil-search-state.mjs.map +1 -1
  44. package/fesm2022/daffodil-search-testing.mjs +9 -22
  45. package/fesm2022/daffodil-search-testing.mjs.map +1 -1
  46. package/package.json +1 -1
  47. package/routing/injection-tokens/public_api.d.ts +1 -1
  48. package/routing/injection-tokens/search-options/builder.token.d.ts +1 -5
  49. package/routing/injection-tokens/search-options/builders.token.d.ts +1 -23
  50. package/state/config/public_api.d.ts +1 -1
  51. package/state/config/token.d.ts +1 -5
  52. package/state/injection-tokens/error-matcher.token.d.ts +1 -6
  53. package/state/injection-tokens/public_api.d.ts +1 -1
  54. package/state/reducers/token/extra.token.d.ts +1 -20
  55. package/state/reducers/token/reducers.token.d.ts +1 -8
  56. package/testing/injection-tokens/factories/kind.token.d.ts +1 -22
  57. package/testing/injection-tokens/public_api.d.ts +1 -1
@@ -1,3 +1,3 @@
1
1
  export { DAFF_SEARCH_STATE_CONFIG_DEFAULT } from './default';
2
2
  export { DaffSearchStateConfig } from './interface';
3
- export { DAFF_SEARCH_STATE_CONFIG } from './token';
3
+ export * from './token';
@@ -1,6 +1,2 @@
1
- import { InjectionToken } from '@angular/core';
2
1
  import { DaffSearchStateConfig } from './interface';
3
- /**
4
- * The token used to provide @daffodil/search/state config data.
5
- */
6
- export declare const DAFF_SEARCH_STATE_CONFIG: InjectionToken<DaffSearchStateConfig>;
2
+ export declare const DAFF_SEARCH_STATE_CONFIG: import("@angular/core").InjectionToken<DaffSearchStateConfig>, provideDaffSearchStateConfig: <R extends DaffSearchStateConfig = DaffSearchStateConfig>(config: Partial<R> | import("@angular/core").InjectionToken<Partial<R>>) => import("@angular/core").FactoryProvider;
@@ -1,7 +1,2 @@
1
- import { InjectionToken } from '@angular/core';
2
1
  import { daffTransformErrorToStateError } from '@daffodil/core/state';
3
- /**
4
- * Transforms `DaffError`s into `DaffStateError`s before they are serialized into state.
5
- * Can be used to further refine Daffodil errors into more specific app errors.
6
- */
7
- export declare const DAFF_SEARCH_ERROR_MATCHER: InjectionToken<typeof daffTransformErrorToStateError>;
2
+ export declare const DAFF_SEARCH_ERROR_MATCHER: import("@angular/core").InjectionToken<typeof daffTransformErrorToStateError>, provideDaffSearchErrorMatcher: <R extends typeof daffTransformErrorToStateError = typeof daffTransformErrorToStateError>(value: R) => import("@angular/core").ValueProvider;
@@ -1 +1 @@
1
- export { DAFF_SEARCH_ERROR_MATCHER } from './error-matcher.token';
1
+ export * from './error-matcher.token';
@@ -1,23 +1,4 @@
1
- import { InjectionToken, Provider } from '@angular/core';
2
1
  import { ActionReducer } from '@ngrx/store';
3
2
  import { DaffSearchResult } from '@daffodil/search';
4
3
  import { DaffSearchReducersState } from '../reducers.interface';
5
- /**
6
- * A token to hold the injectable extra reducers.
7
- *
8
- * Prefer using {@link daffSearchProvideExtraReducers}.
9
- */
10
- export declare const DAFF_SEARCH_EXTRA_REDUCERS: InjectionToken<ActionReducer<DaffSearchReducersState<DaffSearchResult>, import("@ngrx/store").Action<string>>[]>;
11
- /**
12
- * Provides additional reducers that run after the standard Daffodil cart reducers.
13
- *
14
- * ```ts
15
- * providers: [
16
- * ...daffSearchProvideExtraReducers(
17
- * myReducer1,
18
- * myReducer2
19
- * )
20
- * ]
21
- * ```
22
- */
23
- export declare function daffSearchProvideExtraReducers<T extends DaffSearchResult = DaffSearchResult>(...reducers: ActionReducer<DaffSearchReducersState<T>>[]): Provider[];
4
+ export declare const DAFF_SEARCH_EXTRA_REDUCERS: import("@angular/core").InjectionToken<ActionReducer<DaffSearchReducersState<DaffSearchResult>, import("@ngrx/store").Action<string>>[]>, daffSearchProvideExtraReducers: <R extends ActionReducer<DaffSearchReducersState<DaffSearchResult>, import("@ngrx/store").Action<string>> = ActionReducer<DaffSearchReducersState<DaffSearchResult>, import("@ngrx/store").Action<string>>>(...values: R[]) => Array<import("@angular/core").ValueProvider>;
@@ -1,11 +1,4 @@
1
- import { InjectionToken } from '@angular/core';
2
1
  import { ActionReducer } from '@ngrx/store';
3
2
  import { DaffSearchResult } from '@daffodil/search';
4
3
  import { DaffSearchReducersState } from '../reducers.interface';
5
- /**
6
- * An internal token to hold the Daffodil search reducers.
7
- * Includes the extra and standard reducers.
8
- *
9
- * @docs-private
10
- */
11
- export declare const DAFF_SEARCH_REDUCERS: InjectionToken<ActionReducer<DaffSearchReducersState<DaffSearchResult>, import("@ngrx/store").Action<string>>>;
4
+ export declare const DAFF_SEARCH_REDUCERS: import("@angular/core").InjectionToken<ActionReducer<DaffSearchReducersState<DaffSearchResult>, import("@ngrx/store").Action<string>>>, provideDaffSearchReducers: <R extends ActionReducer<DaffSearchReducersState<DaffSearchResult>, import("@ngrx/store").Action<string>> = ActionReducer<DaffSearchReducersState<DaffSearchResult>, import("@ngrx/store").Action<string>>>(value: R) => import("@angular/core").ValueProvider;
@@ -1,24 +1,3 @@
1
- import { InjectionToken, Provider, Type } from '@angular/core';
2
1
  import { DaffModelFactory } from '@daffodil/core/testing';
3
2
  import { DaffSearchResult } from '@daffodil/search';
4
- /**
5
- * A multi-provider injection token for providing extra search result kind factories.
6
- * These factories correspond to different types of search results that may be added by other packages.
7
- * This is useful for backend mocks (such as the testing driver) to generate an accurate representation
8
- * of the variety of results that an application can receive in production.
9
- */
10
- export declare const DAFF_SEARCH_RESULT_KIND_FACTORIES: InjectionToken<DaffModelFactory<DaffSearchResult, import("@daffodil/core").Constructable<DaffSearchResult>>[]>;
11
- /**
12
- * Provides extra search result factory kinds.
13
- *
14
- * See {@link DAFF_SEARCH_RESULT_KIND_FACTORIES}.
15
- *
16
- * ```ts
17
- * providers: [
18
- * ...daffProvideSearchResultKindFactories(
19
- * MySearchResultFactory
20
- * )
21
- * ]
22
- * ```
23
- */
24
- export declare function daffProvideSearchResultKindFactories<T extends DaffSearchResult = DaffSearchResult>(...factoryTypes: Type<DaffModelFactory<T>>[]): Provider[];
3
+ export declare const DAFF_SEARCH_RESULT_KIND_FACTORIES: import("@angular/core").InjectionToken<DaffModelFactory<DaffSearchResult, import("@daffodil/core").Constructable<DaffSearchResult>>[]>, provideDaffSearchResultKindFactories: <R extends DaffModelFactory<DaffSearchResult, import("@daffodil/core").Constructable<DaffSearchResult>> = DaffModelFactory<DaffSearchResult, import("@daffodil/core").Constructable<DaffSearchResult>>>(...classes: import("@angular/core").Type<R>[]) => Array<import("@angular/core").ExistingProvider>;
@@ -1 +1 @@
1
- export { DAFF_SEARCH_RESULT_KIND_FACTORIES, daffProvideSearchResultKindFactories, } from './factories/kind.token';
1
+ export { DAFF_SEARCH_RESULT_KIND_FACTORIES, provideDaffSearchResultKindFactories, } from './factories/kind.token';