@orderingstack/ordering-types 1.0.13 → 1.0.15

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.
@@ -117,10 +117,6 @@ export interface IProductStateSelected {
117
117
  export interface IProductEmit {
118
118
  [id: string]: string;
119
119
  }
120
- export interface ICategory {
121
- id: string;
122
- name: string;
123
- }
124
120
  export interface IProductFilter {
125
121
  [fltCtx: string]: string[];
126
122
  }
@@ -491,3 +487,5 @@ export interface IFiscalizeData {
491
487
  USN: string;
492
488
  };
493
489
  }
490
+ declare const sizes: readonly [48, 57, 70, 100, 160, 250, 300, 500, 600, 900, 1000, 1920, 1080, 900];
491
+ export type TMediaSize = typeof sizes[number];
package/dist/cjs/index.js CHANGED
@@ -126,3 +126,6 @@ var EChannelName;
126
126
  // WOLT_TAKE_AWAY = "WOLT_TAKE_AWAY",
127
127
  // WOLT_DINE_IN = "WOLT_DINE_IN"
128
128
  })(EChannelName = exports.EChannelName || (exports.EChannelName = {}));
129
+ const sizes = [
130
+ 48, 57, 70, 100, 160, 250, 300, 500, 600, 900, 1000, 1920, 1080, 900,
131
+ ];
@@ -1,7 +1,7 @@
1
1
  import React, { ReactElement } from "react";
2
2
  import { UseFormRegisterReturn } from "react-hook-form";
3
3
  import { UseTransitionProps } from "react-spring";
4
- import { IProduct, IOrder, IProductStateSelected, IProductStateFilter } from "./index";
4
+ import { IProduct, IOrder, IProductStateSelected, IProductStateFilter, TMediaSize } from "./index";
5
5
  import { IOrderLine } from "./index";
6
6
  export declare enum EPaymentStatus {
7
7
  UNINITIALIZED = "UNINITIALIZED",
@@ -60,10 +60,11 @@ export interface IMenuProps {
60
60
  stacking: "vertical" | "horizontal";
61
61
  transitionProps?: UseTransitionProps;
62
62
  onMenuCategoryViewed?: (category: IProduct) => void;
63
- goToCheckout: () => void;
64
- goToStart: () => void;
63
+ goToCheckout: (state?: any) => void;
64
+ goToStart: (state?: any) => void;
65
65
  order?: IOrder;
66
66
  changeQuantity: (line: IOrderLine, quantity: number) => void;
67
+ prefetchImageSizes: TMediaSize[] | undefined;
67
68
  }
68
69
  export interface IMenuTileProps {
69
70
  product: IProduct;
@@ -117,10 +117,6 @@ export interface IProductStateSelected {
117
117
  export interface IProductEmit {
118
118
  [id: string]: string;
119
119
  }
120
- export interface ICategory {
121
- id: string;
122
- name: string;
123
- }
124
120
  export interface IProductFilter {
125
121
  [fltCtx: string]: string[];
126
122
  }
@@ -491,3 +487,5 @@ export interface IFiscalizeData {
491
487
  USN: string;
492
488
  };
493
489
  }
490
+ declare const sizes: readonly [48, 57, 70, 100, 160, 250, 300, 500, 600, 900, 1000, 1920, 1080, 900];
491
+ export type TMediaSize = typeof sizes[number];
package/dist/esm/index.js CHANGED
@@ -109,3 +109,6 @@ export var EChannelName;
109
109
  // WOLT_TAKE_AWAY = "WOLT_TAKE_AWAY",
110
110
  // WOLT_DINE_IN = "WOLT_DINE_IN"
111
111
  })(EChannelName || (EChannelName = {}));
112
+ const sizes = [
113
+ 48, 57, 70, 100, 160, 250, 300, 500, 600, 900, 1000, 1920, 1080, 900,
114
+ ];
@@ -1,7 +1,7 @@
1
1
  import React, { ReactElement } from "react";
2
2
  import { UseFormRegisterReturn } from "react-hook-form";
3
3
  import { UseTransitionProps } from "react-spring";
4
- import { IProduct, IOrder, IProductStateSelected, IProductStateFilter } from "./index";
4
+ import { IProduct, IOrder, IProductStateSelected, IProductStateFilter, TMediaSize } from "./index";
5
5
  import { IOrderLine } from "./index";
6
6
  export declare enum EPaymentStatus {
7
7
  UNINITIALIZED = "UNINITIALIZED",
@@ -60,10 +60,11 @@ export interface IMenuProps {
60
60
  stacking: "vertical" | "horizontal";
61
61
  transitionProps?: UseTransitionProps;
62
62
  onMenuCategoryViewed?: (category: IProduct) => void;
63
- goToCheckout: () => void;
64
- goToStart: () => void;
63
+ goToCheckout: (state?: any) => void;
64
+ goToStart: (state?: any) => void;
65
65
  order?: IOrder;
66
66
  changeQuantity: (line: IOrderLine, quantity: number) => void;
67
+ prefetchImageSizes: TMediaSize[] | undefined;
67
68
  }
68
69
  export interface IMenuTileProps {
69
70
  product: IProduct;
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
- {
2
- "name": "@orderingstack/ordering-types",
3
- "version": "1.0.13",
4
- "description": "Typescript types for @orderingstack",
5
- "types": "dist/esm/index.d.ts",
6
- "main": "dist/cjs/index.js",
7
- "module": "dist/esm/index.js",
8
- "files": [
9
- "dist/"
10
- ],
11
- "scripts": {
12
- "build": "tsc -p tsconfig.json && tsc -p tsconfig-cjs.json",
13
- "prepublishOnly": "npm run build"
14
- },
15
- "author": "Tomasz Rojek <tomasz.rojek@e3.pl>",
16
- "devDependencies": {
17
- "@types/react": "^18.0.26",
18
- "react": "^18.2.0",
19
- "react-hook-form": "^7.42.0",
20
- "react-spring": "^9.6.1",
21
- "typescript": "next"
22
- }
1
+ {
2
+ "name": "@orderingstack/ordering-types",
3
+ "version": "1.0.15",
4
+ "description": "Typescript types for @orderingstack",
5
+ "types": "dist/esm/index.d.ts",
6
+ "main": "dist/cjs/index.js",
7
+ "module": "dist/esm/index.js",
8
+ "files": [
9
+ "dist/"
10
+ ],
11
+ "scripts": {
12
+ "build": "tsc -p tsconfig.json && tsc -p tsconfig-cjs.json",
13
+ "prepublishOnly": "npm run build"
14
+ },
15
+ "author": "Tomasz Rojek <tomasz.rojek@e3.pl>",
16
+ "devDependencies": {
17
+ "@types/react": "^18.0.26",
18
+ "react": "^18.2.0",
19
+ "react-hook-form": "^7.42.0",
20
+ "react-spring": "^9.6.1",
21
+ "typescript": "next"
22
+ }
23
23
  }