@orderingstack/front-components-product-configurator 1.1.0 → 1.2.1
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/components/MenuItemsDispatcher/MenuItemsDispatcher.d.ts.map +1 -1
- package/dist/components/MenuProductRoot/MenuProductRoot.d.ts.map +1 -1
- package/dist/index.cjs.js +6 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +27 -18
- package/dist/index.es.js.map +1 -1
- package/dist/state/validate.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +4 -3
package/dist/index.es.js
CHANGED
|
@@ -6231,17 +6231,17 @@ var EOrderPaymentType;
|
|
|
6231
6231
|
EOrderPaymentType2["RETURN"] = "RETURN";
|
|
6232
6232
|
EOrderPaymentType2["EXTERNAL"] = "EXTERNAL";
|
|
6233
6233
|
})(EOrderPaymentType || (EOrderPaymentType = {}));
|
|
6234
|
-
var
|
|
6235
|
-
(function(
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
})(
|
|
6234
|
+
var EOrderSource;
|
|
6235
|
+
(function(EOrderSource2) {
|
|
6236
|
+
EOrderSource2["KIOSK"] = "KIOSK";
|
|
6237
|
+
EOrderSource2["WEB"] = "WEB";
|
|
6238
|
+
EOrderSource2["JUST_EAT_TAKE_AWAY"] = "JUSTEATTAKEAWAY";
|
|
6239
|
+
EOrderSource2["GLOVO"] = "GLOVO";
|
|
6240
|
+
EOrderSource2["PYSZNE"] = "PYSZNE";
|
|
6241
|
+
EOrderSource2["WOLT"] = "WOLT";
|
|
6242
|
+
EOrderSource2["UBER"] = "UBER";
|
|
6243
|
+
EOrderSource2["BOLT"] = "BOLT";
|
|
6244
|
+
})(EOrderSource || (EOrderSource = {}));
|
|
6245
6245
|
var EOrderLineStatus;
|
|
6246
6246
|
(function(EOrderLineStatus2) {
|
|
6247
6247
|
EOrderLineStatus2["NEW"] = "NEW";
|
|
@@ -6262,12 +6262,19 @@ var EChannelName;
|
|
|
6262
6262
|
EChannelName2["DINE_IN"] = "DINE_IN";
|
|
6263
6263
|
EChannelName2["TAKE_AWAY"] = "TAKE_AWAY";
|
|
6264
6264
|
EChannelName2["DELIVERY"] = "DELIVERY";
|
|
6265
|
-
EChannelName2["
|
|
6266
|
-
EChannelName2["
|
|
6267
|
-
EChannelName2["
|
|
6268
|
-
EChannelName2["
|
|
6269
|
-
EChannelName2["
|
|
6265
|
+
EChannelName2["GLOVO"] = "GLOVO";
|
|
6266
|
+
EChannelName2["JUSTEAT"] = "JUSTEAT";
|
|
6267
|
+
EChannelName2["UBER"] = "UBER";
|
|
6268
|
+
EChannelName2["BOLT"] = "BOLT";
|
|
6269
|
+
EChannelName2["WOLT"] = "WOLT";
|
|
6270
6270
|
})(EChannelName || (EChannelName = {}));
|
|
6271
|
+
var ENotificationType;
|
|
6272
|
+
(function(ENotificationType2) {
|
|
6273
|
+
ENotificationType2["ORDER_EVENT_ERROR"] = "OrderEventError";
|
|
6274
|
+
ENotificationType2["ORDER_APPLIED_EVENTS"] = "OrderAppliedEvents";
|
|
6275
|
+
ENotificationType2["ORDER_EVENT_FISCAL"] = "OrderEventFiscal";
|
|
6276
|
+
ENotificationType2["ORDER_UPSELL"] = "OrderUpsell";
|
|
6277
|
+
})(ENotificationType || (ENotificationType = {}));
|
|
6271
6278
|
const validateProductFilter = (product, stateFilter) => {
|
|
6272
6279
|
const { filter: productFilters = {}, fltCtx = "" } = product;
|
|
6273
6280
|
const stateFiltersWithFltCtx = stateFilter[fltCtx];
|
|
@@ -8553,7 +8560,8 @@ function MenuItemsDispatcher(props) {
|
|
|
8553
8560
|
const menuItemsProps = {
|
|
8554
8561
|
productItems,
|
|
8555
8562
|
parentProduct,
|
|
8556
|
-
renderMenuItem
|
|
8563
|
+
renderMenuItem,
|
|
8564
|
+
rootParentProduct: parentProduct
|
|
8557
8565
|
};
|
|
8558
8566
|
if (MenuItemsUI) {
|
|
8559
8567
|
return /* @__PURE__ */ jsx(MenuItemsUI, {
|
|
@@ -9955,7 +9963,8 @@ const MenuProductRoot = (props) => {
|
|
|
9955
9963
|
} = useComponents();
|
|
9956
9964
|
const MenuItemsDispatcherWrapper = !isEmpty(product.items) ? /* @__PURE__ */ jsx(MenuItemsDispatcher, {
|
|
9957
9965
|
productItems: product.items,
|
|
9958
|
-
parentProduct: product
|
|
9966
|
+
parentProduct: product,
|
|
9967
|
+
rootProduct: product
|
|
9959
9968
|
}) : /* @__PURE__ */ jsx(Fragment, {});
|
|
9960
9969
|
if (MenuProductRootUI) {
|
|
9961
9970
|
return /* @__PURE__ */ jsx(MenuProductRootUI, {
|