@orderingstack/front-components-product-configurator 1.0.5 → 1.2.0

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/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 OrderSource;
6235
- (function(OrderSource2) {
6236
- OrderSource2["KIOSK"] = "KIOSK";
6237
- OrderSource2["WEB"] = "WEB";
6238
- OrderSource2["JUST_EAT_TAKE_AWAY"] = "JUSTEATTAKEAWAY";
6239
- OrderSource2["GLOVO"] = "GLOVO";
6240
- OrderSource2["PYSZNE"] = "PYSZNE";
6241
- OrderSource2["WOLT"] = "WOLT";
6242
- OrderSource2["UBER"] = "UBER";
6243
- OrderSource2["BOLT"] = "BOLT";
6244
- })(OrderSource || (OrderSource = {}));
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["GLOVO_DELIVERY"] = "GLOVO_DELIVERY";
6266
- EChannelName2["JUSTEAT_DELIVERY"] = "JUSTEAT_DELIVERY";
6267
- EChannelName2["UBER_DELIVERY"] = "UBER_DELIVERY";
6268
- EChannelName2["BOLT_DELIVERY"] = "BOLT_DELIVERY";
6269
- EChannelName2["WOLT_DELIVERY"] = "WOLT_DELIVERY";
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];
@@ -8379,7 +8386,8 @@ const MenuProduct = (props) => {
8379
8386
  const {
8380
8387
  product,
8381
8388
  parentAttrs,
8382
- nestedLvl
8389
+ nestedLvl,
8390
+ parentProduct
8383
8391
  } = props;
8384
8392
  const {
8385
8393
  registerProps,
@@ -8416,7 +8424,8 @@ const MenuProduct = (props) => {
8416
8424
  counterValue,
8417
8425
  handleCounterIncrementQty,
8418
8426
  handleCounterDecrementQty,
8419
- currency
8427
+ currency,
8428
+ parentProduct
8420
8429
  };
8421
8430
  const MenuItemsDispatcherWrapper = /* @__PURE__ */ jsx(MenuItemsDispatcher, {
8422
8431
  productItems: product.items,
@@ -8451,7 +8460,8 @@ const MenuProductDefaultUI = (props) => {
8451
8460
  counterValue,
8452
8461
  handleCounterIncrementQty,
8453
8462
  handleCounterDecrementQty,
8454
- children
8463
+ children,
8464
+ parentProduct
8455
8465
  } = props;
8456
8466
  const CounterComponent = /* @__PURE__ */ jsx(Counter, {
8457
8467
  value: counterValue,
@@ -8542,6 +8552,7 @@ function MenuItemsDispatcher(props) {
8542
8552
  return /* @__PURE__ */ jsx(MenuProduct, {
8543
8553
  product: productItem,
8544
8554
  parentAttrs,
8555
+ parentProduct,
8545
8556
  nestedLvl
8546
8557
  });
8547
8558
  return /* @__PURE__ */ jsx(Fragment, {});
@@ -8549,7 +8560,8 @@ function MenuItemsDispatcher(props) {
8549
8560
  const menuItemsProps = {
8550
8561
  productItems,
8551
8562
  parentProduct,
8552
- renderMenuItem
8563
+ renderMenuItem,
8564
+ rootParentProduct: parentProduct
8553
8565
  };
8554
8566
  if (MenuItemsUI) {
8555
8567
  return /* @__PURE__ */ jsx(MenuItemsUI, {