instantsearch.js 4.49.4 → 4.50.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/cjs/components/Pagination/Pagination.js +1 -1
- package/cjs/connectors/hits/connectHits.js +2 -1
- package/cjs/connectors/infinite-hits/connectInfiniteHits.js +3 -2
- package/cjs/lib/InstantSearch.js +3 -7
- package/cjs/lib/templating/renderTemplate.js +3 -0
- package/cjs/lib/utils/createSendEventForHits.js +6 -5
- package/cjs/lib/version.js +1 -1
- package/cjs/widgets/index/index.js +18 -1
- package/dist/instantsearch.development.d.ts +10 -2
- package/dist/instantsearch.development.js +66 -21
- package/dist/instantsearch.development.js.map +1 -1
- package/dist/instantsearch.production.d.ts +10 -2
- package/dist/instantsearch.production.min.d.ts +10 -2
- package/dist/instantsearch.production.min.js +2 -2
- package/dist/instantsearch.production.min.js.map +1 -1
- package/es/components/Pagination/Pagination.js +1 -1
- package/es/connectors/hits/connectHits.js +2 -1
- package/es/connectors/infinite-hits/connectInfiniteHits.js +3 -2
- package/es/lib/InstantSearch.js +3 -7
- package/es/lib/templating/renderTemplate.js +3 -0
- package/es/lib/utils/createSendEventForHits.d.ts +4 -3
- package/es/lib/utils/createSendEventForHits.js +6 -5
- package/es/lib/version.d.ts +1 -1
- package/es/lib/version.js +1 -1
- package/es/types/templates.d.ts +11 -3
- package/es/widgets/index/index.js +18 -1
- package/package.json +6 -5
|
@@ -5052,7 +5052,7 @@ declare type Status = 'initial' | 'askingPermission' | 'waiting' | 'recognizing'
|
|
|
5052
5052
|
|
|
5053
5053
|
declare type Template<TTemplateData = void> = string | ((data: TTemplateData, params: TemplateParams) => VNode | VNode[] | string);
|
|
5054
5054
|
|
|
5055
|
-
declare type TemplateParams =
|
|
5055
|
+
declare type TemplateParams = {
|
|
5056
5056
|
html: typeof html;
|
|
5057
5057
|
components: {
|
|
5058
5058
|
Highlight: typeof Highlight;
|
|
@@ -5067,7 +5067,15 @@ declare type Templates = {
|
|
|
5067
5067
|
[key: string]: Template<any> | TemplateWithBindEvent<any> | undefined;
|
|
5068
5068
|
};
|
|
5069
5069
|
|
|
5070
|
-
declare type TemplateWithBindEvent<TTemplateData = void> = string | ((data: TTemplateData, params:
|
|
5070
|
+
declare type TemplateWithBindEvent<TTemplateData = void> = string | ((data: TTemplateData, params: TemplateWithBindEventParams) => VNode | VNode[] | string);
|
|
5071
|
+
|
|
5072
|
+
declare interface TemplateWithBindEventParams extends TemplateParams {
|
|
5073
|
+
/** @deprecated use sendEvent instead */
|
|
5074
|
+
(...args: Parameters<BuiltInBindEventForHits>): ReturnType<BuiltInBindEventForHits>;
|
|
5075
|
+
/** @deprecated use sendEvent instead */
|
|
5076
|
+
(...args: Parameters<CustomBindEventForHits>): ReturnType<CustomBindEventForHits>;
|
|
5077
|
+
sendEvent: SendEventForHits;
|
|
5078
|
+
}
|
|
5071
5079
|
|
|
5072
5080
|
declare type TextTemplateProps = {
|
|
5073
5081
|
hasManyResults: boolean;
|
|
@@ -5052,7 +5052,7 @@ declare type Status = 'initial' | 'askingPermission' | 'waiting' | 'recognizing'
|
|
|
5052
5052
|
|
|
5053
5053
|
declare type Template<TTemplateData = void> = string | ((data: TTemplateData, params: TemplateParams) => VNode | VNode[] | string);
|
|
5054
5054
|
|
|
5055
|
-
declare type TemplateParams =
|
|
5055
|
+
declare type TemplateParams = {
|
|
5056
5056
|
html: typeof html;
|
|
5057
5057
|
components: {
|
|
5058
5058
|
Highlight: typeof Highlight;
|
|
@@ -5067,7 +5067,15 @@ declare type Templates = {
|
|
|
5067
5067
|
[key: string]: Template<any> | TemplateWithBindEvent<any> | undefined;
|
|
5068
5068
|
};
|
|
5069
5069
|
|
|
5070
|
-
declare type TemplateWithBindEvent<TTemplateData = void> = string | ((data: TTemplateData, params:
|
|
5070
|
+
declare type TemplateWithBindEvent<TTemplateData = void> = string | ((data: TTemplateData, params: TemplateWithBindEventParams) => VNode | VNode[] | string);
|
|
5071
|
+
|
|
5072
|
+
declare interface TemplateWithBindEventParams extends TemplateParams {
|
|
5073
|
+
/** @deprecated use sendEvent instead */
|
|
5074
|
+
(...args: Parameters<BuiltInBindEventForHits>): ReturnType<BuiltInBindEventForHits>;
|
|
5075
|
+
/** @deprecated use sendEvent instead */
|
|
5076
|
+
(...args: Parameters<CustomBindEventForHits>): ReturnType<CustomBindEventForHits>;
|
|
5077
|
+
sendEvent: SendEventForHits;
|
|
5078
|
+
}
|
|
5071
5079
|
|
|
5072
5080
|
declare type TextTemplateProps = {
|
|
5073
5081
|
hasManyResults: boolean;
|