ublo-lib 1.35.11 → 1.35.13

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.
@@ -139,11 +139,15 @@ const SearchBar = ({ lang, resultFormatter, backdrop, OverrideIcons = {}, messag
139
139
  "Terms - Destination": `${text} - ${path}`,
140
140
  });
141
141
  };
142
+ const onClick = () => {
143
+ close();
144
+ sendPlausibleGoal();
145
+ };
142
146
  const props = externalLink ? anchorProps : linkProps;
143
147
  const classes = classNames("search-bar__result", {
144
148
  "search-bar__result--active": i === state.active,
145
149
  });
146
- return (_jsx(Tag, { className: classes, ...props, onClick: sendPlausibleGoal }, `${name}-${i}`));
150
+ return (_jsx(Tag, { className: classes, ...props, onClick: onClick }, `${name}-${i}`));
147
151
  }), search.result?.length === 0 && (_jsx("div", { className: "search-bar__no-result", children: message(ubloLang, "no-results", messages) }))] })] })] }));
148
152
  };
149
153
  export default React.memo(SearchBar);
@@ -5,7 +5,7 @@ export const build = (params) => {
5
5
  if (!param)
6
6
  return "";
7
7
  const sign = i === 0 ? "?" : "&";
8
- return `${sign}${key}=${param}`;
8
+ return `${sign}${key}=${encodeURIComponent(param)}`;
9
9
  })
10
10
  .join("");
11
11
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.35.11",
3
+ "version": "1.35.13",
4
4
  "peerDependencies": {
5
5
  "dt-design-system": "^3.8.5",
6
6
  "leaflet": "^1.9.1",