@simplybusiness/mobius 5.30.0 → 5.31.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.31.0
4
+
5
+ ### Minor Changes
6
+
7
+ - b1eda64: fire addressOptionsDiplayed when AddressLookupQuestion shows options
8
+
9
+ ## 5.30.1
10
+
11
+ ### Patch Changes
12
+
13
+ - d110d3c: Combobox fires onFocus events without blocking logic
14
+
3
15
  ## 5.30.0
4
16
 
5
17
  ### Minor Changes
package/dist/cjs/index.js CHANGED
@@ -1565,12 +1565,11 @@ var ComboboxInner = (0, import_react25.forwardRef)(
1565
1565
  const { down } = useBreakpoint();
1566
1566
  const isMobile = down("md");
1567
1567
  const handleFocus = (e) => {
1568
+ onFocus?.(e);
1568
1569
  if (!filteredOptions || filteredOptions.length === 0) return;
1569
1570
  if (blurTimeoutRef.current) {
1570
1571
  clearTimeout(blurTimeoutRef.current);
1571
1572
  blurTimeoutRef.current = null;
1572
- } else {
1573
- onFocus?.(e);
1574
1573
  }
1575
1574
  setIsOpen(true);
1576
1575
  };
@@ -1773,6 +1772,7 @@ var AddressLookup = (0, import_react26.forwardRef)(
1773
1772
  ({
1774
1773
  addressLookupService,
1775
1774
  onAddressSelected,
1775
+ onOptionsDisplayed,
1776
1776
  onError,
1777
1777
  errorMessage,
1778
1778
  ...otherProps
@@ -1790,13 +1790,15 @@ var AddressLookup = (0, import_react26.forwardRef)(
1790
1790
  try {
1791
1791
  const response = await addressLookupService.search(searchTerm);
1792
1792
  setError(null);
1793
- return optionsFromResponse(response, addressLookupService);
1793
+ const options = optionsFromResponse(response, addressLookupService);
1794
+ onOptionsDisplayed?.();
1795
+ return options;
1794
1796
  } catch (e) {
1795
1797
  setError(e);
1796
1798
  return [];
1797
1799
  }
1798
1800
  },
1799
- [addressLookupService, setError]
1801
+ [addressLookupService, setError, onOptionsDisplayed]
1800
1802
  );
1801
1803
  const handleSelected = (selected) => {
1802
1804
  setError(null);