@orderingstack/front-components-product-configurator 1.6.0-beta.2 → 1.6.0-beta.4

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
@@ -6294,7 +6294,7 @@ function findGroupInProductItemsBySelCtx(selCtx, parent) {
6294
6294
  }
6295
6295
  return null;
6296
6296
  }
6297
- const isAnyGroupOptionKind = (kind) => kind === EProductKind.OPTIONS || kind === EProductKind.GROUP || kind === EProductKind.GROUP_UPSELL;
6297
+ const isAnyGroupOptionKind = (kind) => kind === EProductKind.OPTIONS || kind === EProductKind.CONFIG || kind === EProductKind.GROUP_UPSELL;
6298
6298
  function createStore(createState) {
6299
6299
  let state;
6300
6300
  const listeners = /* @__PURE__ */ new Set();
@@ -9225,6 +9225,13 @@ function MenuItemsDispatcher(props) {
9225
9225
  MenuItemsUI
9226
9226
  } = useComponents();
9227
9227
  const renderMenuItem = (productItem) => {
9228
+ var _a;
9229
+ if (isAnyGroupOptionKind(productItem.kind) && !((_a = productItem == null ? void 0 : productItem.items) == null ? void 0 : _a.find((x2) => {
9230
+ var _a2, _b;
9231
+ return ((_a2 = x2 == null ? void 0 : x2.attrs) == null ? void 0 : _a2.hidden) !== true && ((_b = x2 == null ? void 0 : x2._) == null ? void 0 : _b.hidden) !== "true";
9232
+ }))) {
9233
+ return /* @__PURE__ */ jsx(Fragment, {});
9234
+ }
9228
9235
  if (isMenuOptionsToShow(productItem))
9229
9236
  return /* @__PURE__ */ jsx(MenuOptions, {
9230
9237
  optionsItem: productItem,