@orderingstack/ordering-types 1.0.12 → 1.0.14
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/dist/cjs/index.d.ts +0 -4
- package/dist/cjs/kiosk.d.ts +13 -3
- package/dist/esm/index.d.ts +0 -4
- package/dist/esm/kiosk.d.ts +13 -3
- package/package.json +22 -22
package/dist/cjs/index.d.ts
CHANGED
|
@@ -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
|
}
|
package/dist/cjs/kiosk.d.ts
CHANGED
|
@@ -60,8 +60,8 @@ 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
67
|
}
|
|
@@ -85,6 +85,7 @@ export interface IMenuCategorySectionProps {
|
|
|
85
85
|
export interface IProductConfiguratorProps {
|
|
86
86
|
product: IProduct;
|
|
87
87
|
components: IProductConfiguratorComponents;
|
|
88
|
+
currency: string;
|
|
88
89
|
isOpen?: boolean;
|
|
89
90
|
showDebugState?: boolean;
|
|
90
91
|
lang?: string;
|
|
@@ -93,7 +94,7 @@ export interface IProductConfiguratorProps {
|
|
|
93
94
|
handleClose?: () => void;
|
|
94
95
|
}
|
|
95
96
|
export interface IAddToCartData {
|
|
96
|
-
price:
|
|
97
|
+
price: number;
|
|
97
98
|
quantity: number;
|
|
98
99
|
selected: IProductStateSelected;
|
|
99
100
|
filter: IProductStateFilter;
|
|
@@ -107,10 +108,17 @@ export interface IProductConfiguratorComponents {
|
|
|
107
108
|
export interface IMenuProductRootUIProps {
|
|
108
109
|
product: IProduct;
|
|
109
110
|
countedProductPrice: number;
|
|
111
|
+
countedProductTotalPrice: number;
|
|
110
112
|
productQuantity: number;
|
|
111
113
|
showDebugState?: boolean;
|
|
112
114
|
children: ReactElement;
|
|
115
|
+
validationMap: {
|
|
116
|
+
[selCtx: string]: {
|
|
117
|
+
isValid: boolean;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
113
120
|
isOpen?: boolean;
|
|
121
|
+
currency: string;
|
|
114
122
|
increaseProductQuantity: () => void;
|
|
115
123
|
decreaseProductQuantity: () => void;
|
|
116
124
|
handleOnSubmit: () => void;
|
|
@@ -124,6 +132,7 @@ export interface IMenuOptionsUIProps {
|
|
|
124
132
|
isOnSubmitted: boolean;
|
|
125
133
|
actualQtyCnt: number;
|
|
126
134
|
actualSelCnt: number;
|
|
135
|
+
currency: string;
|
|
127
136
|
children: ReactElement;
|
|
128
137
|
}
|
|
129
138
|
export interface IMenuProductUIProps {
|
|
@@ -142,6 +151,7 @@ export interface IMenuProductUIProps {
|
|
|
142
151
|
counterValue: number;
|
|
143
152
|
handleCounterIncrementQty: () => void;
|
|
144
153
|
handleCounterDecrementQty: () => void;
|
|
154
|
+
currency: string;
|
|
145
155
|
children: ReactElement;
|
|
146
156
|
}
|
|
147
157
|
export interface IMenuItemsUIProps {
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -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
|
}
|
package/dist/esm/kiosk.d.ts
CHANGED
|
@@ -60,8 +60,8 @@ 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
67
|
}
|
|
@@ -85,6 +85,7 @@ export interface IMenuCategorySectionProps {
|
|
|
85
85
|
export interface IProductConfiguratorProps {
|
|
86
86
|
product: IProduct;
|
|
87
87
|
components: IProductConfiguratorComponents;
|
|
88
|
+
currency: string;
|
|
88
89
|
isOpen?: boolean;
|
|
89
90
|
showDebugState?: boolean;
|
|
90
91
|
lang?: string;
|
|
@@ -93,7 +94,7 @@ export interface IProductConfiguratorProps {
|
|
|
93
94
|
handleClose?: () => void;
|
|
94
95
|
}
|
|
95
96
|
export interface IAddToCartData {
|
|
96
|
-
price:
|
|
97
|
+
price: number;
|
|
97
98
|
quantity: number;
|
|
98
99
|
selected: IProductStateSelected;
|
|
99
100
|
filter: IProductStateFilter;
|
|
@@ -107,10 +108,17 @@ export interface IProductConfiguratorComponents {
|
|
|
107
108
|
export interface IMenuProductRootUIProps {
|
|
108
109
|
product: IProduct;
|
|
109
110
|
countedProductPrice: number;
|
|
111
|
+
countedProductTotalPrice: number;
|
|
110
112
|
productQuantity: number;
|
|
111
113
|
showDebugState?: boolean;
|
|
112
114
|
children: ReactElement;
|
|
115
|
+
validationMap: {
|
|
116
|
+
[selCtx: string]: {
|
|
117
|
+
isValid: boolean;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
113
120
|
isOpen?: boolean;
|
|
121
|
+
currency: string;
|
|
114
122
|
increaseProductQuantity: () => void;
|
|
115
123
|
decreaseProductQuantity: () => void;
|
|
116
124
|
handleOnSubmit: () => void;
|
|
@@ -124,6 +132,7 @@ export interface IMenuOptionsUIProps {
|
|
|
124
132
|
isOnSubmitted: boolean;
|
|
125
133
|
actualQtyCnt: number;
|
|
126
134
|
actualSelCnt: number;
|
|
135
|
+
currency: string;
|
|
127
136
|
children: ReactElement;
|
|
128
137
|
}
|
|
129
138
|
export interface IMenuProductUIProps {
|
|
@@ -142,6 +151,7 @@ export interface IMenuProductUIProps {
|
|
|
142
151
|
counterValue: number;
|
|
143
152
|
handleCounterIncrementQty: () => void;
|
|
144
153
|
handleCounterDecrementQty: () => void;
|
|
154
|
+
currency: string;
|
|
145
155
|
children: ReactElement;
|
|
146
156
|
}
|
|
147
157
|
export interface IMenuItemsUIProps {
|
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@orderingstack/ordering-types",
|
|
3
|
-
"version": "1.0.
|
|
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.14",
|
|
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
|
}
|