hasting-swatchcart-module 1.0.27 → 1.0.29

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.
@@ -1,13 +1,3 @@
1
1
  import { CartState, ICartItem } from './types';
2
- import { AttributeValue } from '../../swatches/model/types';
3
- export declare const setCartItems: import('@reduxjs/toolkit').ActionCreatorWithPayload<ICartItem[], "cart/setCartItems">, removeItem: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
4
- selectedMaterial: AttributeValue;
5
- }, "cart/removeItem">, increment: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
6
- selectedMaterial: AttributeValue;
7
- }, "cart/increment">, decrement: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
8
- selectedMaterial: AttributeValue;
9
- }, "cart/decrement">, setCount: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
10
- selectedMaterial: AttributeValue;
11
- next: number;
12
- }, "cart/setCount">, clear: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"cart/clear">;
2
+ export declare const setCartItems: import('@reduxjs/toolkit').ActionCreatorWithPayload<ICartItem[], "cart/setCartItems">, clear: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"cart/clear">;
13
3
  export declare const cartReducer: import('redux').Reducer<CartState>;
@@ -11,18 +11,44 @@ export declare const swatchesSlice: import('@reduxjs/toolkit').Slice<ISwatchesSl
11
11
  clearAllMaterialFilters: (state: import('immer').WritableDraft<ISwatchesSlice>) => void;
12
12
  setAllMaterialsOptions: (state: import('immer').WritableDraft<ISwatchesSlice>, action: PayloadAction<IMapUIData>) => void;
13
13
  setSelectedMaterial(state: import('immer').WritableDraft<ISwatchesSlice>, action: PayloadAction<{
14
+ materialCount: number;
14
15
  selectedMaterial: AttributeValue;
16
+ selectedMaterials: AttributeValue[];
15
17
  limitCb?: () => void;
16
18
  }>): void;
17
19
  resetSelectedMaterials(state: import('immer').WritableDraft<ISwatchesSlice>): void;
18
20
  setSelectedProduct(state: import('immer').WritableDraft<ISwatchesSlice>, action: PayloadAction<IProductListItem>): void;
19
21
  deleteSelectedProduct(state: import('immer').WritableDraft<ISwatchesSlice>): void;
20
22
  setIsOpenMultiProductCart(state: import('immer').WritableDraft<ISwatchesSlice>, action: PayloadAction<boolean>): void;
23
+ removeItem(state: import('immer').WritableDraft<ISwatchesSlice>, action: PayloadAction<{
24
+ selectedMaterial: AttributeValue;
25
+ }>): void;
26
+ increment(state: import('immer').WritableDraft<ISwatchesSlice>, action: PayloadAction<{
27
+ selectedMaterial: AttributeValue;
28
+ }>): void;
29
+ decrement(state: import('immer').WritableDraft<ISwatchesSlice>, action: PayloadAction<{
30
+ selectedMaterial: AttributeValue;
31
+ }>): void;
32
+ setCount(state: import('immer').WritableDraft<ISwatchesSlice>, action: PayloadAction<{
33
+ selectedMaterial: AttributeValue;
34
+ next: number;
35
+ }>): void;
21
36
  }, "swatches", "swatches", import('@reduxjs/toolkit').SliceSelectors<ISwatchesSlice>>;
22
37
  export declare const swatchesReducer: import('redux').Reducer<ISwatchesSlice>;
23
38
  export declare const setMaterialSelect: import('@reduxjs/toolkit').ActionCreatorWithPayload<ISetFiltersPayload, "swatches/setMaterialSelect">, setAllMaterialsOptions: import('@reduxjs/toolkit').ActionCreatorWithPayload<IMapUIData, "swatches/setAllMaterialsOptions">, setPanelFilter: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
24
39
  attributes: IAttributeAsset[];
25
40
  }, "swatches/setPanelFilter">, setSelectedMaterial: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
41
+ materialCount: number;
26
42
  selectedMaterial: AttributeValue;
43
+ selectedMaterials: AttributeValue[];
27
44
  limitCb?: () => void;
28
- }, "swatches/setSelectedMaterial">, clearMaterialFilter: import('@reduxjs/toolkit').ActionCreatorWithPayload<keyof IMaterialSelectState, "swatches/clearMaterialFilter">, clearAllMaterialFilters: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"swatches/clearAllMaterialFilters">, setSelectedProduct: import('@reduxjs/toolkit').ActionCreatorWithPayload<IProductListItem, "swatches/setSelectedProduct">, deleteSelectedProduct: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"swatches/deleteSelectedProduct">, setIsOpenMultiProductCart: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "swatches/setIsOpenMultiProductCart">, resetSelectedMaterials: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"swatches/resetSelectedMaterials">;
45
+ }, "swatches/setSelectedMaterial">, clearMaterialFilter: import('@reduxjs/toolkit').ActionCreatorWithPayload<keyof IMaterialSelectState, "swatches/clearMaterialFilter">, clearAllMaterialFilters: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"swatches/clearAllMaterialFilters">, setSelectedProduct: import('@reduxjs/toolkit').ActionCreatorWithPayload<IProductListItem, "swatches/setSelectedProduct">, deleteSelectedProduct: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"swatches/deleteSelectedProduct">, setIsOpenMultiProductCart: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "swatches/setIsOpenMultiProductCart">, resetSelectedMaterials: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"swatches/resetSelectedMaterials">, removeItem: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
46
+ selectedMaterial: AttributeValue;
47
+ }, "swatches/removeItem">, increment: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
48
+ selectedMaterial: AttributeValue;
49
+ }, "swatches/increment">, decrement: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
50
+ selectedMaterial: AttributeValue;
51
+ }, "swatches/decrement">, setCount: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
52
+ selectedMaterial: AttributeValue;
53
+ next: number;
54
+ }, "swatches/setCount">;
@@ -119,6 +119,7 @@ export declare const ETypeComponent: {
119
119
  };
120
120
  export type ETypeComponent = (typeof ETypeComponent)[keyof typeof ETypeComponent];
121
121
  export interface AttributeValue {
122
+ count: number;
122
123
  assetId?: string;
123
124
  name?: string;
124
125
  tags?: string[];