instantsearch.js 4.72.2 → 4.73.1
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/cjs/components/InfiniteHits/InfiniteHits.js +62 -19
- package/cjs/components/Template/Template.js +1 -1
- package/cjs/connectors/pagination/Paginator.js +2 -2
- package/cjs/lib/utils/getAppIdAndApiKey.js +4 -4
- package/cjs/lib/version.js +1 -1
- package/cjs/middlewares/createInsightsMiddleware.js +1 -1
- package/cjs/widgets/infinite-hits/infinite-hits.js +14 -3
- package/dist/instantsearch.development.d.ts +19 -0
- package/dist/instantsearch.development.js +92 -34
- package/dist/instantsearch.development.js.map +1 -1
- package/dist/instantsearch.production.d.ts +19 -0
- package/dist/instantsearch.production.min.d.ts +19 -0
- package/dist/instantsearch.production.min.js +2 -2
- package/dist/instantsearch.production.min.js.map +1 -1
- package/es/components/InfiniteHits/InfiniteHits.d.ts +4 -3
- package/es/components/InfiniteHits/InfiniteHits.js +62 -19
- package/es/components/Template/Template.js +1 -1
- package/es/connectors/pagination/Paginator.js +2 -2
- package/es/lib/utils/getAppIdAndApiKey.js +4 -4
- package/es/lib/version.d.ts +1 -1
- package/es/lib/version.js +1 -1
- package/es/middlewares/createInsightsMiddleware.js +1 -1
- package/es/widgets/infinite-hits/infinite-hits.d.ts +19 -0
- package/es/widgets/infinite-hits/infinite-hits.js +14 -3
- package/package.json +7 -7
|
@@ -4811,6 +4811,18 @@ declare type InfiniteHitsCSSClasses = Partial<{
|
|
|
4811
4811
|
* The disabled “Show more” button.
|
|
4812
4812
|
*/
|
|
4813
4813
|
disabledLoadMore: string | string[];
|
|
4814
|
+
/**
|
|
4815
|
+
* Class names to apply to the banner element
|
|
4816
|
+
*/
|
|
4817
|
+
bannerRoot: string | string[];
|
|
4818
|
+
/**
|
|
4819
|
+
* Class names to apply to the banner image element
|
|
4820
|
+
*/
|
|
4821
|
+
bannerImage: string | string[];
|
|
4822
|
+
/**
|
|
4823
|
+
* Class names to apply to the banner link element
|
|
4824
|
+
*/
|
|
4825
|
+
bannerLink: string | string[];
|
|
4814
4826
|
}>;
|
|
4815
4827
|
|
|
4816
4828
|
declare type InfiniteHitsRenderState<THit extends NonNullable<object> = BaseHit> = {
|
|
@@ -4881,6 +4893,13 @@ declare type InfiniteHitsTemplates<THit extends NonNullable<object> = BaseHit> =
|
|
|
4881
4893
|
/** @deprecated the index in the hits array, use __position instead, which is the absolute position */
|
|
4882
4894
|
__hitIndex: number;
|
|
4883
4895
|
}>;
|
|
4896
|
+
/**
|
|
4897
|
+
* Template to use for the banner.
|
|
4898
|
+
*/
|
|
4899
|
+
banner: Template<{
|
|
4900
|
+
banner: Required<InfiniteHitsRenderState['banner']>;
|
|
4901
|
+
className: string;
|
|
4902
|
+
}>;
|
|
4884
4903
|
}>;
|
|
4885
4904
|
|
|
4886
4905
|
declare type InfiniteHitsWidgetDescription<THit extends NonNullable<object> = BaseHit> = {
|
|
@@ -4811,6 +4811,18 @@ declare type InfiniteHitsCSSClasses = Partial<{
|
|
|
4811
4811
|
* The disabled “Show more” button.
|
|
4812
4812
|
*/
|
|
4813
4813
|
disabledLoadMore: string | string[];
|
|
4814
|
+
/**
|
|
4815
|
+
* Class names to apply to the banner element
|
|
4816
|
+
*/
|
|
4817
|
+
bannerRoot: string | string[];
|
|
4818
|
+
/**
|
|
4819
|
+
* Class names to apply to the banner image element
|
|
4820
|
+
*/
|
|
4821
|
+
bannerImage: string | string[];
|
|
4822
|
+
/**
|
|
4823
|
+
* Class names to apply to the banner link element
|
|
4824
|
+
*/
|
|
4825
|
+
bannerLink: string | string[];
|
|
4814
4826
|
}>;
|
|
4815
4827
|
|
|
4816
4828
|
declare type InfiniteHitsRenderState<THit extends NonNullable<object> = BaseHit> = {
|
|
@@ -4881,6 +4893,13 @@ declare type InfiniteHitsTemplates<THit extends NonNullable<object> = BaseHit> =
|
|
|
4881
4893
|
/** @deprecated the index in the hits array, use __position instead, which is the absolute position */
|
|
4882
4894
|
__hitIndex: number;
|
|
4883
4895
|
}>;
|
|
4896
|
+
/**
|
|
4897
|
+
* Template to use for the banner.
|
|
4898
|
+
*/
|
|
4899
|
+
banner: Template<{
|
|
4900
|
+
banner: Required<InfiniteHitsRenderState['banner']>;
|
|
4901
|
+
className: string;
|
|
4902
|
+
}>;
|
|
4884
4903
|
}>;
|
|
4885
4904
|
|
|
4886
4905
|
declare type InfiniteHitsWidgetDescription<THit extends NonNullable<object> = BaseHit> = {
|