ba-js-common-header 0.0.44 → 0.0.47

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/README.md CHANGED
@@ -68,6 +68,7 @@ The user state
68
68
  username, // string (required)
69
69
  hotelId, // integer (optional)
70
70
  guideId, // integer (optional)
71
+ group, // string (optional)
71
72
  }
72
73
  ```
73
74
 
@@ -14404,7 +14404,11 @@ function HotelFinder(props) {
14404
14404
  onInputValueChange: ({
14405
14405
  inputValue
14406
14406
  }) => {
14407
- setInputHotels(hotels.filter((hotel) => itemToString2(hotel).toLowerCase().split(/\s+/).find((token2) => token2.startsWith(inputValue.toLowerCase()))));
14407
+ setInputHotels(hotels.filter((hotel) => {
14408
+ const hotelNameLC = itemToString2(hotel).toLowerCase();
14409
+ const inputValueLC = inputValue.toLowerCase();
14410
+ return hotelNameLC.match(`(^|s)${inputValueLC}`);
14411
+ }));
14408
14412
  }
14409
14413
  });
14410
14414
  return /* @__PURE__ */ jsx("ul", {
@@ -14558,7 +14562,7 @@ function PropertySelector(props) {
14558
14562
  children: [/* @__PURE__ */ jsx("span", {
14559
14563
  className: "ps-lg-3 py-3 py-lg-0 d-block",
14560
14564
  id: "hd-group-name",
14561
- children: "TESTING Hotels"
14565
+ children: userInfo.group
14562
14566
  }), /* @__PURE__ */ jsxs("div", {
14563
14567
  className: "row me-0 d-lg-none align-items-center",
14564
14568
  children: [/* @__PURE__ */ jsxs("div", {