@orderingstack/front-components-product-configurator 1.2.1 → 1.2.2

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
@@ -8051,7 +8051,8 @@ const MenuOptions = (props) => {
8051
8051
  optionsItem,
8052
8052
  parentSelCtx,
8053
8053
  nestedLvl,
8054
- parentKind
8054
+ parentKind,
8055
+ rootProduct
8055
8056
  } = props;
8056
8057
  const {
8057
8058
  isFilterValidated,
@@ -8069,7 +8070,8 @@ const MenuOptions = (props) => {
8069
8070
  }
8070
8071
  const MenuItemsDispatcherWrapper = /* @__PURE__ */ jsx(MenuItemsDispatcher, {
8071
8072
  productItems: optionsItem.items,
8072
- parentProduct: optionsItem
8073
+ parentProduct: optionsItem,
8074
+ rootProduct
8073
8075
  });
8074
8076
  const menuOptionsProps = {
8075
8077
  optionsItem,
@@ -8387,7 +8389,8 @@ const MenuProduct = (props) => {
8387
8389
  product,
8388
8390
  parentAttrs,
8389
8391
  nestedLvl,
8390
- parentProduct
8392
+ parentProduct,
8393
+ rootProduct
8391
8394
  } = props;
8392
8395
  const {
8393
8396
  registerProps,
@@ -8430,7 +8433,8 @@ const MenuProduct = (props) => {
8430
8433
  const MenuItemsDispatcherWrapper = /* @__PURE__ */ jsx(MenuItemsDispatcher, {
8431
8434
  productItems: product.items,
8432
8435
  parentProduct: product,
8433
- nestedLvl: nestedLvl + 1
8436
+ nestedLvl: nestedLvl + 1,
8437
+ rootProduct
8434
8438
  });
8435
8439
  if (MenuProductUI) {
8436
8440
  return /* @__PURE__ */ jsx(MenuProductUI, {
@@ -8460,8 +8464,7 @@ const MenuProductDefaultUI = (props) => {
8460
8464
  counterValue,
8461
8465
  handleCounterIncrementQty,
8462
8466
  handleCounterDecrementQty,
8463
- children,
8464
- parentProduct
8467
+ children
8465
8468
  } = props;
8466
8469
  const CounterComponent = /* @__PURE__ */ jsx(Counter, {
8467
8470
  value: counterValue,
@@ -8526,7 +8529,8 @@ function MenuItemsDispatcher(props) {
8526
8529
  const {
8527
8530
  productItems,
8528
8531
  nestedLvl = 1,
8529
- parentProduct
8532
+ parentProduct,
8533
+ rootProduct
8530
8534
  } = props;
8531
8535
  const {
8532
8536
  attrs: parentAttrs = {},
@@ -8546,14 +8550,16 @@ function MenuItemsDispatcher(props) {
8546
8550
  optionsItem: productItem,
8547
8551
  parentSelCtx,
8548
8552
  parentKind,
8549
- nestedLvl
8553
+ nestedLvl,
8554
+ rootProduct
8550
8555
  });
8551
8556
  if (isMenuProductToShow(productItem))
8552
8557
  return /* @__PURE__ */ jsx(MenuProduct, {
8553
8558
  product: productItem,
8554
8559
  parentAttrs,
8555
8560
  parentProduct,
8556
- nestedLvl
8561
+ nestedLvl,
8562
+ rootProduct
8557
8563
  });
8558
8564
  return /* @__PURE__ */ jsx(Fragment, {});
8559
8565
  };
@@ -8561,7 +8567,7 @@ function MenuItemsDispatcher(props) {
8561
8567
  productItems,
8562
8568
  parentProduct,
8563
8569
  renderMenuItem,
8564
- rootParentProduct: parentProduct
8570
+ rootProduct
8565
8571
  };
8566
8572
  if (MenuItemsUI) {
8567
8573
  return /* @__PURE__ */ jsx(MenuItemsUI, {