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.
- package/CHANGELOG.md +9 -0
- package/cjs/components/Hits/Hits.js +0 -6
- package/cjs/components/Pagination/Pagination.js +60 -41
- package/cjs/connectors/search-box/connectSearchBox.js +15 -25
- package/cjs/lib/version.js +1 -1
- package/dist/instantsearch.development.d.ts +36 -7
- package/dist/instantsearch.development.js +71 -114
- package/dist/instantsearch.development.js.map +1 -1
- package/dist/instantsearch.development.min.d.ts +36 -7
- package/dist/instantsearch.production.d.ts +36 -7
- package/dist/instantsearch.production.min.d.ts +36 -7
- package/dist/instantsearch.production.min.js +2 -2
- package/dist/instantsearch.production.min.js.map +1 -1
- package/es/components/Hits/Hits.d.ts +1 -9
- package/es/components/Hits/Hits.js +0 -6
- package/es/components/Pagination/Pagination.d.ts +3 -10
- package/es/components/Pagination/Pagination.js +55 -34
- package/es/connectors/search-box/connectSearchBox.js +15 -25
- package/es/connectors/toggle-refinement/connectToggleRefinement.d.ts +36 -7
- package/es/lib/version.d.ts +1 -1
- package/es/lib/version.js +1 -1
- package/package.json +2 -2
- package/cjs/components/Pagination/PaginationLink.js +0 -60
- package/es/components/Pagination/PaginationLink.d.ts +0 -16
- package/es/components/Pagination/PaginationLink.js +0 -49
|
@@ -4915,7 +4915,9 @@ declare const toggleRefinement: ToggleRefinementWidget;
|
|
|
4915
4915
|
declare type ToggleRefinementConnector = Connector<ToggleRefinementWidgetDescription, ToggleRefinementConnectorParams>;
|
|
4916
4916
|
|
|
4917
4917
|
declare type ToggleRefinementConnectorParams = {
|
|
4918
|
-
/**
|
|
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
|
-
/**
|
|
4976
|
+
/**
|
|
4977
|
+
* Creates an URL for the next state.
|
|
4978
|
+
*/
|
|
4960
4979
|
createURL: CreateURL<string>;
|
|
4961
|
-
/**
|
|
4980
|
+
/**
|
|
4981
|
+
* Send a "Facet Clicked" Insights event.
|
|
4982
|
+
*/
|
|
4962
4983
|
sendEvent: SendEventForToggle;
|
|
4963
|
-
/**
|
|
4984
|
+
/**
|
|
4985
|
+
* Indicates if search state can be refined.
|
|
4986
|
+
*/
|
|
4964
4987
|
canRefine: boolean;
|
|
4965
|
-
/**
|
|
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
|
-
/**
|
|
5004
|
+
/**
|
|
5005
|
+
* Whether this option is enabled.
|
|
5006
|
+
*/
|
|
4980
5007
|
isRefined: boolean;
|
|
4981
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
4976
|
+
/**
|
|
4977
|
+
* Creates an URL for the next state.
|
|
4978
|
+
*/
|
|
4960
4979
|
createURL: CreateURL<string>;
|
|
4961
|
-
/**
|
|
4980
|
+
/**
|
|
4981
|
+
* Send a "Facet Clicked" Insights event.
|
|
4982
|
+
*/
|
|
4962
4983
|
sendEvent: SendEventForToggle;
|
|
4963
|
-
/**
|
|
4984
|
+
/**
|
|
4985
|
+
* Indicates if search state can be refined.
|
|
4986
|
+
*/
|
|
4964
4987
|
canRefine: boolean;
|
|
4965
|
-
/**
|
|
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
|
-
/**
|
|
5004
|
+
/**
|
|
5005
|
+
* Whether this option is enabled.
|
|
5006
|
+
*/
|
|
4980
5007
|
isRefined: boolean;
|
|
4981
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
4976
|
+
/**
|
|
4977
|
+
* Creates an URL for the next state.
|
|
4978
|
+
*/
|
|
4960
4979
|
createURL: CreateURL<string>;
|
|
4961
|
-
/**
|
|
4980
|
+
/**
|
|
4981
|
+
* Send a "Facet Clicked" Insights event.
|
|
4982
|
+
*/
|
|
4962
4983
|
sendEvent: SendEventForToggle;
|
|
4963
|
-
/**
|
|
4984
|
+
/**
|
|
4985
|
+
* Indicates if search state can be refined.
|
|
4986
|
+
*/
|
|
4964
4987
|
canRefine: boolean;
|
|
4965
|
-
/**
|
|
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
|
-
/**
|
|
5004
|
+
/**
|
|
5005
|
+
* Whether this option is enabled.
|
|
5006
|
+
*/
|
|
4980
5007
|
isRefined: boolean;
|
|
4981
|
-
/**
|
|
5008
|
+
/**
|
|
5009
|
+
* Number of result if this option is toggled.
|
|
5010
|
+
*/
|
|
4982
5011
|
count: number | null;
|
|
4983
5012
|
};
|
|
4984
5013
|
|