instantsearch.js 4.37.1 → 4.37.2

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.
@@ -4915,7 +4915,9 @@ declare const toggleRefinement: ToggleRefinementWidget;
4915
4915
  declare type ToggleRefinementConnector = Connector<ToggleRefinementWidgetDescription, ToggleRefinementConnectorParams>;
4916
4916
 
4917
4917
  declare type ToggleRefinementConnectorParams = {
4918
- /** Name of the attribute for faceting (eg. "free_shipping"). */
4918
+ /**
4919
+ * Name of the attribute for faceting (e.g., "free_shipping").
4920
+ */
4919
4921
  attribute: string;
4920
4922
  /**
4921
4923
  * Value to filter on when toggled.
@@ -4950,19 +4952,42 @@ declare type ToggleRefinementCSSClasses = Partial<{
4950
4952
  declare type ToggleRefinementRenderState = {
4951
4953
  /** The current toggle value */
4952
4954
  value: {
4955
+ /**
4956
+ * The attribute name of this toggle.
4957
+ */
4953
4958
  name: string;
4959
+ /**
4960
+ * Whether the current option is "on" (true) or "off" (false)
4961
+ */
4954
4962
  isRefined: boolean;
4963
+ /**
4964
+ * Number of results if this option is toggled.
4965
+ */
4955
4966
  count: number | null;
4967
+ /**
4968
+ * Information about the "on" toggle.
4969
+ */
4956
4970
  onFacetValue: ToggleRefinementValue;
4971
+ /**
4972
+ * Information about the "off" toggle.
4973
+ */
4957
4974
  offFacetValue: ToggleRefinementValue;
4958
4975
  };
4959
- /** Creates an URL for the next state. */
4976
+ /**
4977
+ * Creates an URL for the next state.
4978
+ */
4960
4979
  createURL: CreateURL<string>;
4961
- /** send a "facet clicked" insights event */
4980
+ /**
4981
+ * Send a "Facet Clicked" Insights event.
4982
+ */
4962
4983
  sendEvent: SendEventForToggle;
4963
- /** Indicates if search state can be refined. */
4984
+ /**
4985
+ * Indicates if search state can be refined.
4986
+ */
4964
4987
  canRefine: boolean;
4965
- /** Updates to the next state by applying the toggle refinement. */
4988
+ /**
4989
+ * Updates to the next state by applying the toggle refinement.
4990
+ */
4966
4991
  refine: (value?: {
4967
4992
  isRefined: boolean;
4968
4993
  }) => void;
@@ -4976,9 +5001,13 @@ declare type ToggleRefinementTemplates = Partial<{
4976
5001
  }>;
4977
5002
 
4978
5003
  declare type ToggleRefinementValue = {
4979
- /** whether this option is enabled */
5004
+ /**
5005
+ * Whether this option is enabled.
5006
+ */
4980
5007
  isRefined: boolean;
4981
- /** number of result if this option is enabled */
5008
+ /**
5009
+ * Number of result if this option is toggled.
5010
+ */
4982
5011
  count: number | null;
4983
5012
  };
4984
5013
 
@@ -4915,7 +4915,9 @@ declare const toggleRefinement: ToggleRefinementWidget;
4915
4915
  declare type ToggleRefinementConnector = Connector<ToggleRefinementWidgetDescription, ToggleRefinementConnectorParams>;
4916
4916
 
4917
4917
  declare type ToggleRefinementConnectorParams = {
4918
- /** Name of the attribute for faceting (eg. "free_shipping"). */
4918
+ /**
4919
+ * Name of the attribute for faceting (e.g., "free_shipping").
4920
+ */
4919
4921
  attribute: string;
4920
4922
  /**
4921
4923
  * Value to filter on when toggled.
@@ -4950,19 +4952,42 @@ declare type ToggleRefinementCSSClasses = Partial<{
4950
4952
  declare type ToggleRefinementRenderState = {
4951
4953
  /** The current toggle value */
4952
4954
  value: {
4955
+ /**
4956
+ * The attribute name of this toggle.
4957
+ */
4953
4958
  name: string;
4959
+ /**
4960
+ * Whether the current option is "on" (true) or "off" (false)
4961
+ */
4954
4962
  isRefined: boolean;
4963
+ /**
4964
+ * Number of results if this option is toggled.
4965
+ */
4955
4966
  count: number | null;
4967
+ /**
4968
+ * Information about the "on" toggle.
4969
+ */
4956
4970
  onFacetValue: ToggleRefinementValue;
4971
+ /**
4972
+ * Information about the "off" toggle.
4973
+ */
4957
4974
  offFacetValue: ToggleRefinementValue;
4958
4975
  };
4959
- /** Creates an URL for the next state. */
4976
+ /**
4977
+ * Creates an URL for the next state.
4978
+ */
4960
4979
  createURL: CreateURL<string>;
4961
- /** send a "facet clicked" insights event */
4980
+ /**
4981
+ * Send a "Facet Clicked" Insights event.
4982
+ */
4962
4983
  sendEvent: SendEventForToggle;
4963
- /** Indicates if search state can be refined. */
4984
+ /**
4985
+ * Indicates if search state can be refined.
4986
+ */
4964
4987
  canRefine: boolean;
4965
- /** Updates to the next state by applying the toggle refinement. */
4988
+ /**
4989
+ * Updates to the next state by applying the toggle refinement.
4990
+ */
4966
4991
  refine: (value?: {
4967
4992
  isRefined: boolean;
4968
4993
  }) => void;
@@ -4976,9 +5001,13 @@ declare type ToggleRefinementTemplates = Partial<{
4976
5001
  }>;
4977
5002
 
4978
5003
  declare type ToggleRefinementValue = {
4979
- /** whether this option is enabled */
5004
+ /**
5005
+ * Whether this option is enabled.
5006
+ */
4980
5007
  isRefined: boolean;
4981
- /** number of result if this option is enabled */
5008
+ /**
5009
+ * Number of result if this option is toggled.
5010
+ */
4982
5011
  count: number | null;
4983
5012
  };
4984
5013
 
@@ -4915,7 +4915,9 @@ declare const toggleRefinement: ToggleRefinementWidget;
4915
4915
  declare type ToggleRefinementConnector = Connector<ToggleRefinementWidgetDescription, ToggleRefinementConnectorParams>;
4916
4916
 
4917
4917
  declare type ToggleRefinementConnectorParams = {
4918
- /** Name of the attribute for faceting (eg. "free_shipping"). */
4918
+ /**
4919
+ * Name of the attribute for faceting (e.g., "free_shipping").
4920
+ */
4919
4921
  attribute: string;
4920
4922
  /**
4921
4923
  * Value to filter on when toggled.
@@ -4950,19 +4952,42 @@ declare type ToggleRefinementCSSClasses = Partial<{
4950
4952
  declare type ToggleRefinementRenderState = {
4951
4953
  /** The current toggle value */
4952
4954
  value: {
4955
+ /**
4956
+ * The attribute name of this toggle.
4957
+ */
4953
4958
  name: string;
4959
+ /**
4960
+ * Whether the current option is "on" (true) or "off" (false)
4961
+ */
4954
4962
  isRefined: boolean;
4963
+ /**
4964
+ * Number of results if this option is toggled.
4965
+ */
4955
4966
  count: number | null;
4967
+ /**
4968
+ * Information about the "on" toggle.
4969
+ */
4956
4970
  onFacetValue: ToggleRefinementValue;
4971
+ /**
4972
+ * Information about the "off" toggle.
4973
+ */
4957
4974
  offFacetValue: ToggleRefinementValue;
4958
4975
  };
4959
- /** Creates an URL for the next state. */
4976
+ /**
4977
+ * Creates an URL for the next state.
4978
+ */
4960
4979
  createURL: CreateURL<string>;
4961
- /** send a "facet clicked" insights event */
4980
+ /**
4981
+ * Send a "Facet Clicked" Insights event.
4982
+ */
4962
4983
  sendEvent: SendEventForToggle;
4963
- /** Indicates if search state can be refined. */
4984
+ /**
4985
+ * Indicates if search state can be refined.
4986
+ */
4964
4987
  canRefine: boolean;
4965
- /** Updates to the next state by applying the toggle refinement. */
4988
+ /**
4989
+ * Updates to the next state by applying the toggle refinement.
4990
+ */
4966
4991
  refine: (value?: {
4967
4992
  isRefined: boolean;
4968
4993
  }) => void;
@@ -4976,9 +5001,13 @@ declare type ToggleRefinementTemplates = Partial<{
4976
5001
  }>;
4977
5002
 
4978
5003
  declare type ToggleRefinementValue = {
4979
- /** whether this option is enabled */
5004
+ /**
5005
+ * Whether this option is enabled.
5006
+ */
4980
5007
  isRefined: boolean;
4981
- /** number of result if this option is enabled */
5008
+ /**
5009
+ * Number of result if this option is toggled.
5010
+ */
4982
5011
  count: number | null;
4983
5012
  };
4984
5013