@wise/dynamic-flow-client 3.28.4 → 3.28.5

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/build/main.js CHANGED
@@ -10399,7 +10399,7 @@ var createSearchComponent = (searchProps, performSearch, onAction, updateCompone
10399
10399
  draft.query = query;
10400
10400
  draft.isLoading = true;
10401
10401
  });
10402
- debouncedSearch(query);
10402
+ debouncedSearch(query.trim());
10403
10403
  };
10404
10404
  return {
10405
10405
  type: "search",
@@ -18980,7 +18980,7 @@ function DynamicSearch({ component, onAction }) {
18980
18980
  };
18981
18981
  const onChange = (value) => {
18982
18982
  setQuery(value);
18983
- debouncedSearch(value);
18983
+ debouncedSearch(value.trim());
18984
18984
  };
18985
18985
  const onResultSelected = ({ type, value }) => {
18986
18986
  if (type === "action") {
@@ -18995,7 +18995,7 @@ function DynamicSearch({ component, onAction }) {
18995
18995
  setQuery(value.query);
18996
18996
  const { url: url2, method: method2, param: param2, query: query2 } = value;
18997
18997
  onEvent("Dynamic Flow - Search Result Selected", { type: "search" });
18998
- void search(query2, { url: url2, method: method2, param: param2 });
18998
+ void search(query2.trim(), { url: url2, method: method2, param: param2 });
18999
18999
  }
19000
19000
  };
19001
19001
  const onRetrySearch = () => {