@orderingstack/ordering-types 1.1.2 → 1.1.4

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.
@@ -182,3 +182,19 @@ export interface IMenuItemsUIProps {
182
182
  parentProduct: IProduct;
183
183
  renderMenuItem: (item: IProduct) => ReactElement;
184
184
  }
185
+ export interface IMenuComponentProps {
186
+ addedLine: IOrderLine | undefined;
187
+ dismissAddedLine: () => void;
188
+ addProductToOrder: (product: IProduct) => void;
189
+ getProductsByIds: (ids: string[], menu: IProduct[]) => Promise<IProduct[]>;
190
+ trackProductSelected: (product: IProduct) => void;
191
+ menu: IProduct[];
192
+ onMenuCategoryViewed?: (category: IProduct) => void;
193
+ goToCheckout: (state?: any) => void;
194
+ goToStart: (state?: any) => void;
195
+ order?: IOrder;
196
+ changeQuantity: (line: IOrderLine, quantity: number) => void;
197
+ components: IMenuComponents & {
198
+ ProductConfigurator: React.FC<Omit<IProductConfiguratorProps, "components">>;
199
+ };
200
+ }
@@ -182,3 +182,19 @@ export interface IMenuItemsUIProps {
182
182
  parentProduct: IProduct;
183
183
  renderMenuItem: (item: IProduct) => ReactElement;
184
184
  }
185
+ export interface IMenuComponentProps {
186
+ addedLine: IOrderLine | undefined;
187
+ dismissAddedLine: () => void;
188
+ addProductToOrder: (product: IProduct) => void;
189
+ getProductsByIds: (ids: string[], menu: IProduct[]) => Promise<IProduct[]>;
190
+ trackProductSelected: (product: IProduct) => void;
191
+ menu: IProduct[];
192
+ onMenuCategoryViewed?: (category: IProduct) => void;
193
+ goToCheckout: (state?: any) => void;
194
+ goToStart: (state?: any) => void;
195
+ order?: IOrder;
196
+ changeQuantity: (line: IOrderLine, quantity: number) => void;
197
+ components: IMenuComponents & {
198
+ ProductConfigurator: React.FC<Omit<IProductConfiguratorProps, "components">>;
199
+ };
200
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orderingstack/ordering-types",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "Typescript types for @orderingstack",
5
5
  "types": "dist/esm/index.d.ts",
6
6
  "main": "dist/cjs/index.js",