@daffodil/cart 0.54.0 → 0.56.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daffodil/cart",
3
- "version": "0.54.0",
3
+ "version": "0.56.0",
4
4
  "description": "Interfaces built for daffodil/state",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,9 +15,9 @@
15
15
  "peerDependencies": {
16
16
  "@angular/common": "^13.0.0",
17
17
  "@angular/core": "^13.0.0",
18
- "@daffodil/core": "0.54.0",
19
- "@daffodil/product": "0.54.0",
20
- "@daffodil/geography": "0.54.0",
18
+ "@daffodil/core": "0.56.0",
19
+ "@daffodil/product": "0.56.0",
20
+ "@daffodil/geography": "0.56.0",
21
21
  "@ngrx/effects": "^13.0.0",
22
22
  "@ngrx/entity": "^13.0.0",
23
23
  "@ngrx/store": "^13.0.0",
@@ -28,7 +28,7 @@
28
28
  "angular-in-memory-web-api": "^0.13.0",
29
29
  "apollo-angular": "^3.0.1",
30
30
  "@apollo/client": "^3.0.0",
31
- "@daffodil/driver": "0.54.0"
31
+ "@daffodil/driver": "0.56.0"
32
32
  },
33
33
  "module": "fesm2015/daffodil-cart.mjs",
34
34
  "es2020": "fesm2020/daffodil-cart.mjs",
@@ -1,17 +1,13 @@
1
1
  import { DaffCartItem } from '@daffodil/cart';
2
- import { DaffStateError } from '@daffodil/core/state';
2
+ import { DaffErrorable } from '@daffodil/core/state';
3
3
  /**
4
4
  * The state of the cart item is intended to enhance the client side UX like indicating when a cart
5
5
  * item was recently added/updated. For states that indicate the completion of some process, the state is given
6
6
  * a decay time based on the DaffCartItemStateDebounceTime injection token. For example when a cart item is
7
7
  * added to the cart, the state of that item will be "New" for a designated time then will revert to the default state.
8
8
  */
9
- export interface DaffStatefulCartItem extends DaffCartItem {
9
+ export interface DaffStatefulCartItem extends DaffCartItem, DaffErrorable {
10
10
  daffState: DaffCartItemStateEnum;
11
- /**
12
- * Errors specific to the cart item.
13
- */
14
- errors: DaffStateError[];
15
11
  }
16
12
  export declare enum DaffCartItemStateEnum {
17
13
  New = "new",
@@ -4,7 +4,7 @@ import { DaffModelFactory } from '@daffodil/core/testing';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class DaffMockStatefulCartItem extends DaffMockCartItem implements DaffStatefulCartItem {
6
6
  daffState: DaffCartItemStateEnum;
7
- errors: any[];
7
+ daffErrors: any[];
8
8
  }
9
9
  export declare class DaffStatefulCartItemFactory extends DaffModelFactory<DaffStatefulCartItem> {
10
10
  constructor();
@@ -4,7 +4,7 @@ import { DaffModelFactory } from '@daffodil/core/testing';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class DaffMockStatefulCompositeCartItem extends DaffMockCompositeCartItem implements DaffStatefulCompositeCartItem {
6
6
  daffState: DaffCartItemStateEnum.Default;
7
- errors: any[];
7
+ daffErrors: any[];
8
8
  }
9
9
  export declare class DaffStatefulCompositeCartItemFactory extends DaffModelFactory<DaffStatefulCompositeCartItem> {
10
10
  constructor();
@@ -4,7 +4,7 @@ import { DaffModelFactory } from '@daffodil/core/testing';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class DaffMockStatefulConfigurableCartItem extends DaffMockConfigurableCartItem implements DaffStatefulConfigurableCartItem {
6
6
  daffState: DaffCartItemStateEnum.Default;
7
- errors: any[];
7
+ daffErrors: any[];
8
8
  }
9
9
  export declare class DaffStatefulConfigurableCartItemFactory extends DaffModelFactory<DaffStatefulConfigurableCartItem> {
10
10
  constructor();