@qite/tide-booking-component 1.4.0 → 1.4.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.
@@ -16,6 +16,7 @@ export interface Settings {
16
16
  };
17
17
  options: {
18
18
  pathSuffix: string;
19
+ showRoomOptions?: boolean | null;
19
20
  reportPrintActionId?: number | null;
20
21
  };
21
22
  travellers: {
@@ -13482,7 +13482,7 @@ var PrintOfferButton = function (_a) {
13482
13482
  };
13483
13483
 
13484
13484
  var OptionsForm = function () {
13485
- var _a;
13485
+ var _a, _b;
13486
13486
  var settings = React.useContext(SettingsContext);
13487
13487
  var token = settings.token;
13488
13488
  var translations = reactRedux.useSelector(selectTranslations);
@@ -13500,7 +13500,7 @@ var OptionsForm = function () {
13500
13500
  var availabilities = reactRedux.useSelector(selectAvailabilities);
13501
13501
  var includedServiceTypes = reactRedux.useSelector(selectIncludedServiceTypes);
13502
13502
  // ROOMS
13503
- var showRoomOptions = settings.roomOptions.isHidden;
13503
+ var showRoomOptions = (_a = settings.options.showRoomOptions) !== null && _a !== void 0 ? _a : settings.roomOptions.isHidden;
13504
13504
  var packageRooms = reactRedux.useSelector(selectPackageRooms);
13505
13505
  var pax = reactRedux.useSelector(selectBookingPackagePax);
13506
13506
  var getRoomPax = function (index) {
@@ -13527,7 +13527,7 @@ var OptionsForm = function () {
13527
13527
  };
13528
13528
  // TAGS
13529
13529
  var packageTags = settings.hideTags ? [] : reactRedux.useSelector(selectPackageTags);
13530
- var tagIds = (_a = reactRedux.useSelector(selectTagIds)) !== null && _a !== void 0 ? _a : [];
13530
+ var tagIds = (_b = reactRedux.useSelector(selectTagIds)) !== null && _b !== void 0 ? _b : [];
13531
13531
  var handleSubmit = function (e) {
13532
13532
  if (settings.skipRouter) {
13533
13533
  dispatch(setCurrentStep(TRAVELERS_FORM_STEP));
@@ -16,6 +16,7 @@ export interface Settings {
16
16
  };
17
17
  options: {
18
18
  pathSuffix: string;
19
+ showRoomOptions?: boolean | null;
19
20
  reportPrintActionId?: number | null;
20
21
  };
21
22
  travellers: {
@@ -13471,7 +13471,7 @@ var PrintOfferButton = function (_a) {
13471
13471
  };
13472
13472
 
13473
13473
  var OptionsForm = function () {
13474
- var _a;
13474
+ var _a, _b;
13475
13475
  var settings = useContext(SettingsContext);
13476
13476
  var token = settings.token;
13477
13477
  var translations = useSelector(selectTranslations);
@@ -13489,7 +13489,7 @@ var OptionsForm = function () {
13489
13489
  var availabilities = useSelector(selectAvailabilities);
13490
13490
  var includedServiceTypes = useSelector(selectIncludedServiceTypes);
13491
13491
  // ROOMS
13492
- var showRoomOptions = settings.roomOptions.isHidden;
13492
+ var showRoomOptions = (_a = settings.options.showRoomOptions) !== null && _a !== void 0 ? _a : settings.roomOptions.isHidden;
13493
13493
  var packageRooms = useSelector(selectPackageRooms);
13494
13494
  var pax = useSelector(selectBookingPackagePax);
13495
13495
  var getRoomPax = function (index) {
@@ -13516,7 +13516,7 @@ var OptionsForm = function () {
13516
13516
  };
13517
13517
  // TAGS
13518
13518
  var packageTags = settings.hideTags ? [] : useSelector(selectPackageTags);
13519
- var tagIds = (_a = useSelector(selectTagIds)) !== null && _a !== void 0 ? _a : [];
13519
+ var tagIds = (_b = useSelector(selectTagIds)) !== null && _b !== void 0 ? _b : [];
13520
13520
  var handleSubmit = function (e) {
13521
13521
  if (settings.skipRouter) {
13522
13522
  dispatch(setCurrentStep(TRAVELERS_FORM_STEP));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qite/tide-booking-component",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "React Booking wizard & Booking product component for Tide",
5
5
  "main": "build/build-cjs/index.js",
6
6
  "module": "build/build-esm/index.js",
@@ -84,7 +84,7 @@ const OptionsForm: React.FC<OptionsFormProps> = () => {
84
84
  const includedServiceTypes = useSelector(selectIncludedServiceTypes);
85
85
 
86
86
  // ROOMS
87
- const showRoomOptions = settings.roomOptions.isHidden;
87
+ const showRoomOptions = settings.options.showRoomOptions ?? settings.roomOptions.isHidden;
88
88
  const packageRooms = useSelector(selectPackageRooms);
89
89
  const pax = useSelector(selectBookingPackagePax);
90
90
 
@@ -16,6 +16,7 @@ export interface Settings {
16
16
  };
17
17
  options: {
18
18
  pathSuffix: string;
19
+ showRoomOptions?: boolean | null;
19
20
  reportPrintActionId?: number | null;
20
21
  };
21
22
  travellers: {