delivapp-ordering 0.0.113 → 0.0.115

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.
@@ -13,13 +13,20 @@ interface Product {
13
13
  max: number;
14
14
  image?: MediaProp;
15
15
  }
16
- export interface OrderSummaryWithProductsProps extends OrderSummaryProps {
16
+ interface OrderSummaryWithProductsBaseProps extends OrderSummaryProps {
17
17
  products: Product[];
18
18
  onChangeQuantity: (v: number, product: Product, index: number) => void;
19
19
  onClickProduct: (index: number) => void;
20
20
  onRemove: (v: number) => void;
21
+ }
22
+ interface OrderSummaryWithProductsVissibleShareProps extends OrderSummaryWithProductsBaseProps {
23
+ showShareControls: true;
21
24
  onShare: () => void;
22
25
  onClearCart: () => void;
23
26
  }
27
+ interface OrderSummaryWithProductsHiddenShareProps extends OrderSummaryWithProductsBaseProps {
28
+ showShareControls: false;
29
+ }
30
+ export type OrderSummaryWithProductsProps = OrderSummaryWithProductsVissibleShareProps | OrderSummaryWithProductsHiddenShareProps;
24
31
  export declare const OrderSummaryWithProducts: (props: OrderSummaryWithProductsProps) => React.JSX.Element;
25
32
  export {};
package/dist/index.d.ts CHANGED
@@ -606,14 +606,21 @@ interface Product {
606
606
  max: number;
607
607
  image?: MediaProp;
608
608
  }
609
- interface OrderSummaryWithProductsProps extends OrderSummaryProps {
609
+ interface OrderSummaryWithProductsBaseProps extends OrderSummaryProps {
610
610
  products: Product[];
611
611
  onChangeQuantity: (v: number, product: Product, index: number) => void;
612
612
  onClickProduct: (index: number) => void;
613
613
  onRemove: (v: number) => void;
614
+ }
615
+ interface OrderSummaryWithProductsVissibleShareProps extends OrderSummaryWithProductsBaseProps {
616
+ showShareControls: true;
614
617
  onShare: () => void;
615
618
  onClearCart: () => void;
616
619
  }
620
+ interface OrderSummaryWithProductsHiddenShareProps extends OrderSummaryWithProductsBaseProps {
621
+ showShareControls: false;
622
+ }
623
+ type OrderSummaryWithProductsProps = OrderSummaryWithProductsVissibleShareProps | OrderSummaryWithProductsHiddenShareProps;
617
624
  declare const OrderSummaryWithProducts: (props: OrderSummaryWithProductsProps) => React__default.JSX.Element;
618
625
 
619
626
  interface TabsControlProps<T> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "delivapp-ordering",
3
- "version": "0.0.113",
3
+ "version": "0.0.115",
4
4
  "description": "",
5
5
  "main": "dist/esm/index.js",
6
6
  "module": "dist/cjs/index.js",