instantsearch.js 4.44.1 → 4.45.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.
@@ -1872,8 +1872,13 @@ declare type HitsPerPageRenderState = {
1872
1872
  refine: (value: number) => void;
1873
1873
  /**
1874
1874
  * Indicates whether or not the search has results.
1875
+ * @deprecated Use `canRefine` instead.
1875
1876
  */
1876
1877
  hasNoResults: boolean;
1878
+ /**
1879
+ * Indicates if search state can be refined.
1880
+ */
1881
+ canRefine: boolean;
1877
1882
  };
1878
1883
 
1879
1884
  declare type HitsPerPageRenderStateItem = {
@@ -2855,8 +2860,16 @@ declare type NumericMenuRenderState = {
2855
2860
  createURL: CreateURL<NumericMenuRenderStateItem['value']>;
2856
2861
  /**
2857
2862
  * `true` if the last search contains no result
2863
+ * @deprecated Use `canRefine` instead.
2858
2864
  */
2859
2865
  hasNoResults: boolean;
2866
+ /**
2867
+ * Indicates if search state can be refined.
2868
+ *
2869
+ * This is `true` if the last search contains no result and
2870
+ * "All" range is selected
2871
+ */
2872
+ canRefine: boolean;
2860
2873
  /**
2861
2874
  * Sets the selected value and trigger a new search
2862
2875
  */
@@ -3721,6 +3734,8 @@ declare type RatingMenuRenderState = {
3721
3734
  refine: (value: string) => void;
3722
3735
  /**
3723
3736
  * `true` if the last search contains no result.
3737
+ *
3738
+ * @deprecated Use `canRefine` instead.
3724
3739
  */
3725
3740
  hasNoResults: boolean;
3726
3741
  /**
@@ -4683,8 +4698,13 @@ declare type SortByRenderState = {
4683
4698
  refine: (value: string) => void;
4684
4699
  /**
4685
4700
  * `true` if the last search contains no result.
4701
+ * @deprecated Use `canRefine` instead.
4686
4702
  */
4687
4703
  hasNoResults: boolean;
4704
+ /**
4705
+ * `true` if we can refine.
4706
+ */
4707
+ canRefine: boolean;
4688
4708
  };
4689
4709
 
4690
4710
  declare type SortByWidget = WidgetFactory<SortByWidgetDescription & {
@@ -1872,8 +1872,13 @@ declare type HitsPerPageRenderState = {
1872
1872
  refine: (value: number) => void;
1873
1873
  /**
1874
1874
  * Indicates whether or not the search has results.
1875
+ * @deprecated Use `canRefine` instead.
1875
1876
  */
1876
1877
  hasNoResults: boolean;
1878
+ /**
1879
+ * Indicates if search state can be refined.
1880
+ */
1881
+ canRefine: boolean;
1877
1882
  };
1878
1883
 
1879
1884
  declare type HitsPerPageRenderStateItem = {
@@ -2855,8 +2860,16 @@ declare type NumericMenuRenderState = {
2855
2860
  createURL: CreateURL<NumericMenuRenderStateItem['value']>;
2856
2861
  /**
2857
2862
  * `true` if the last search contains no result
2863
+ * @deprecated Use `canRefine` instead.
2858
2864
  */
2859
2865
  hasNoResults: boolean;
2866
+ /**
2867
+ * Indicates if search state can be refined.
2868
+ *
2869
+ * This is `true` if the last search contains no result and
2870
+ * "All" range is selected
2871
+ */
2872
+ canRefine: boolean;
2860
2873
  /**
2861
2874
  * Sets the selected value and trigger a new search
2862
2875
  */
@@ -3721,6 +3734,8 @@ declare type RatingMenuRenderState = {
3721
3734
  refine: (value: string) => void;
3722
3735
  /**
3723
3736
  * `true` if the last search contains no result.
3737
+ *
3738
+ * @deprecated Use `canRefine` instead.
3724
3739
  */
3725
3740
  hasNoResults: boolean;
3726
3741
  /**
@@ -4683,8 +4698,13 @@ declare type SortByRenderState = {
4683
4698
  refine: (value: string) => void;
4684
4699
  /**
4685
4700
  * `true` if the last search contains no result.
4701
+ * @deprecated Use `canRefine` instead.
4686
4702
  */
4687
4703
  hasNoResults: boolean;
4704
+ /**
4705
+ * `true` if we can refine.
4706
+ */
4707
+ canRefine: boolean;
4688
4708
  };
4689
4709
 
4690
4710
  declare type SortByWidget = WidgetFactory<SortByWidgetDescription & {