@orderingstack/front-components-product-configurator 1.8.0 → 1.8.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/index.es.js CHANGED
@@ -9363,7 +9363,8 @@ function MenuItemsDispatcher(props) {
9363
9363
  productItems,
9364
9364
  nestedLvl = 1,
9365
9365
  parentProduct,
9366
- rootProduct
9366
+ rootProduct,
9367
+ showOutsideAvailabilitySlotItems
9367
9368
  } = props;
9368
9369
  const {
9369
9370
  attrs: parentAttrs = {},
@@ -9379,7 +9380,7 @@ function MenuItemsDispatcher(props) {
9379
9380
  } = useComponents();
9380
9381
  const renderMenuItem = (productItem) => {
9381
9382
  var _a;
9382
- if (isAnyGroupOptionKind(productItem.kind) && !((_a = productItem == null ? void 0 : productItem.items) == null ? void 0 : _a.find((x2) => {
9383
+ if (showOutsideAvailabilitySlotItems !== true && (productItem == null ? void 0 : productItem.outsideAvailabilitySlot) === true || isAnyGroupOptionKind(productItem.kind) && !((_a = productItem == null ? void 0 : productItem.items) == null ? void 0 : _a.find((x2) => {
9383
9384
  var _a2, _b;
9384
9385
  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";
9385
9386
  }))) {
@@ -10885,7 +10886,8 @@ function useGroupsValidation(product) {
10885
10886
  }
10886
10887
  const MenuProductRoot = (props) => {
10887
10888
  const {
10888
- product
10889
+ product,
10890
+ showOutsideAvailabilitySlotItems
10889
10891
  } = props;
10890
10892
  const {
10891
10893
  MenuProductRootUI
@@ -10896,7 +10898,8 @@ const MenuProductRoot = (props) => {
10896
10898
  const MenuItemsDispatcherWrapper = !isEmpty(product.items) ? /* @__PURE__ */ jsx(MenuItemsDispatcher, {
10897
10899
  productItems: product.items,
10898
10900
  parentProduct: product,
10899
- rootProduct: product
10901
+ rootProduct: product,
10902
+ showOutsideAvailabilitySlotItems
10900
10903
  }) : /* @__PURE__ */ jsx(Fragment, {});
10901
10904
  if (MenuProductRootUI) {
10902
10905
  return /* @__PURE__ */ jsx(MenuProductRootUI, {
@@ -10940,7 +10943,8 @@ function ProductConfigurator(props) {
10940
10943
  isOpen,
10941
10944
  handleClose,
10942
10945
  currency,
10943
- showDebugState = false
10946
+ showDebugState = false,
10947
+ showOutsideAvailabilitySlotItems
10944
10948
  } = props;
10945
10949
  const {
10946
10950
  price
@@ -11029,7 +11033,8 @@ function ProductConfigurator(props) {
11029
11033
  countedProductTotalPrice: countedProductPrice * productQuantity,
11030
11034
  increaseProductQuantity,
11031
11035
  decreaseProductQuantity,
11032
- currency
11036
+ currency,
11037
+ showOutsideAvailabilitySlotItems
11033
11038
  })
11034
11039
  })]
11035
11040
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orderingstack/front-components-product-configurator",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -17,6 +17,7 @@
17
17
  "test": "vitest",
18
18
  "test:cov": "vitest run --coverage --silent",
19
19
  "lint": "eslint src --max-warnings=0",
20
+ "lint:fix": "eslint --fix --debug --ext .js,.jsx,.ts,.tsx ./src",
20
21
  "storybook": "start-storybook -p 6006",
21
22
  "build-storybook": "build-storybook",
22
23
  "typecheck": "tsc --project tsconfig.json --noEmit"