instantsearch.js 4.46.1 → 4.46.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 +10 -0
- package/cjs/components/CurrentRefinements/CurrentRefinements.js +0 -1
- package/cjs/components/GeoSearchControls/GeoSearchButton.js +0 -1
- package/cjs/components/GeoSearchControls/GeoSearchToggle.js +0 -1
- package/cjs/components/PoweredBy/PoweredBy.js +0 -1
- package/cjs/components/QueryRuleCustomData/QueryRuleCustomData.js +0 -1
- package/cjs/components/RelevantSort/RelevantSort.js +0 -1
- package/cjs/components/Selector/Selector.js +0 -1
- package/cjs/components/Template/Template.js +3 -1
- package/cjs/components/VoiceSearch/VoiceSearch.js +0 -1
- package/cjs/helpers/components/Highlight.js +5 -13
- package/cjs/helpers/components/ReverseHighlight.js +5 -13
- package/cjs/helpers/components/ReverseSnippet.js +5 -13
- package/cjs/helpers/components/Snippet.js +5 -13
- package/cjs/lib/insights/listener.js +0 -1
- package/cjs/lib/templating/index.js +31 -0
- package/cjs/lib/{utils → templating}/prepareTemplateProps.js +1 -1
- package/cjs/lib/{utils → templating}/renderTemplate.js +2 -2
- package/cjs/lib/utils/index.js +0 -26
- package/cjs/lib/version.js +1 -1
- package/cjs/widgets/answers/answers.js +3 -1
- package/cjs/widgets/breadcrumb/breadcrumb.js +3 -1
- package/cjs/widgets/clear-refinements/clear-refinements.js +3 -1
- package/cjs/widgets/geo-search/GeoSearchRenderer.js +1 -1
- package/cjs/widgets/geo-search/defaultTemplates.js +0 -1
- package/cjs/widgets/geo-search/geo-search.js +3 -1
- package/cjs/widgets/hierarchical-menu/defaultTemplates.js +0 -1
- package/cjs/widgets/hierarchical-menu/hierarchical-menu.js +3 -1
- package/cjs/widgets/hits/hits.js +6 -4
- package/cjs/widgets/infinite-hits/infinite-hits.js +6 -4
- package/cjs/widgets/menu/defaultTemplates.js +0 -1
- package/cjs/widgets/menu/menu.js +3 -1
- package/cjs/widgets/menu-select/menu-select.js +3 -1
- package/cjs/widgets/numeric-menu/defaultTemplates.js +0 -1
- package/cjs/widgets/numeric-menu/numeric-menu.js +3 -1
- package/cjs/widgets/range-input/range-input.js +3 -1
- package/cjs/widgets/rating-menu/defaultTemplates.js +0 -1
- package/cjs/widgets/rating-menu/rating-menu.js +3 -1
- package/cjs/widgets/refinement-list/defaultTemplates.js +0 -1
- package/cjs/widgets/refinement-list/refinement-list.js +4 -2
- package/cjs/widgets/search-box/defaultTemplates.js +0 -1
- package/cjs/widgets/stats/stats.js +3 -1
- package/cjs/widgets/toggle-refinement/toggle-refinement.js +3 -1
- package/cjs/widgets/voice-search/defaultTemplates.js +0 -1
- package/dist/instantsearch.development.js +7180 -7210
- package/dist/instantsearch.development.js.map +1 -1
- package/dist/instantsearch.production.min.js +2 -2
- package/dist/instantsearch.production.min.js.map +1 -1
- package/es/components/Answers/Answers.d.ts +1 -1
- package/es/components/Answers/Answers.js +0 -1
- package/es/components/Breadcrumb/Breadcrumb.d.ts +2 -2
- package/es/components/Breadcrumb/Breadcrumb.js +0 -1
- package/es/components/ClearRefinements/ClearRefinements.d.ts +2 -2
- package/es/components/ClearRefinements/ClearRefinements.js +0 -1
- package/es/components/CurrentRefinements/CurrentRefinements.d.ts +1 -1
- package/es/components/CurrentRefinements/CurrentRefinements.js +0 -1
- package/es/components/GeoSearchControls/GeoSearchButton.d.ts +1 -1
- package/es/components/GeoSearchControls/GeoSearchButton.js +0 -1
- package/es/components/GeoSearchControls/GeoSearchControls.d.ts +2 -2
- package/es/components/GeoSearchControls/GeoSearchControls.js +0 -1
- package/es/components/GeoSearchControls/GeoSearchToggle.d.ts +1 -1
- package/es/components/GeoSearchControls/GeoSearchToggle.js +0 -1
- package/es/components/Highlight/Highlight.js +0 -1
- package/es/components/Hits/Hits.d.ts +3 -2
- package/es/components/Hits/Hits.js +0 -1
- package/es/components/InfiniteHits/InfiniteHits.d.ts +1 -1
- package/es/components/InfiniteHits/InfiniteHits.js +0 -1
- package/es/components/MenuSelect/MenuSelect.d.ts +1 -1
- package/es/components/MenuSelect/MenuSelect.js +0 -1
- package/es/components/Pagination/Pagination.d.ts +1 -1
- package/es/components/Pagination/Pagination.js +0 -1
- package/es/components/Panel/Panel.d.ts +1 -1
- package/es/components/Panel/Panel.js +0 -1
- package/es/components/PoweredBy/PoweredBy.d.ts +1 -1
- package/es/components/PoweredBy/PoweredBy.js +0 -1
- package/es/components/QueryRuleCustomData/QueryRuleCustomData.d.ts +1 -1
- package/es/components/QueryRuleCustomData/QueryRuleCustomData.js +0 -1
- package/es/components/RangeInput/RangeInput.d.ts +1 -1
- package/es/components/RangeInput/RangeInput.js +0 -1
- package/es/components/RefinementList/RefinementList.d.ts +2 -2
- package/es/components/RefinementList/RefinementList.js +0 -1
- package/es/components/RefinementList/RefinementListItem.d.ts +1 -1
- package/es/components/RefinementList/RefinementListItem.js +0 -1
- package/es/components/RelevantSort/RelevantSort.d.ts +1 -1
- package/es/components/RelevantSort/RelevantSort.js +0 -1
- package/es/components/ReverseHighlight/ReverseHighlight.js +0 -1
- package/es/components/ReverseSnippet/ReverseSnippet.js +0 -1
- package/es/components/SearchBox/SearchBox.d.ts +1 -1
- package/es/components/SearchBox/SearchBox.js +0 -1
- package/es/components/Selector/Selector.d.ts +1 -1
- package/es/components/Selector/Selector.js +0 -1
- package/es/components/Slider/Pit.d.ts +1 -1
- package/es/components/Slider/Pit.js +0 -1
- package/es/components/Slider/Rheostat.d.ts +1 -1
- package/es/components/Slider/Rheostat.js +0 -2
- package/es/components/Slider/Slider.d.ts +1 -1
- package/es/components/Slider/Slider.js +0 -1
- package/es/components/Snippet/Snippet.js +0 -1
- package/es/components/Stats/Stats.d.ts +1 -1
- package/es/components/Stats/Stats.js +0 -1
- package/es/components/Template/Template.d.ts +3 -2
- package/es/components/Template/Template.js +2 -2
- package/es/components/ToggleRefinement/ToggleRefinement.d.ts +2 -2
- package/es/components/ToggleRefinement/ToggleRefinement.js +0 -1
- package/es/components/VoiceSearch/VoiceSearch.d.ts +1 -1
- package/es/components/VoiceSearch/VoiceSearch.js +0 -1
- package/es/helpers/components/Highlight.d.ts +1 -1
- package/es/helpers/components/Highlight.js +2 -8
- package/es/helpers/components/ReverseHighlight.d.ts +1 -1
- package/es/helpers/components/ReverseHighlight.js +2 -8
- package/es/helpers/components/ReverseSnippet.d.ts +1 -1
- package/es/helpers/components/ReverseSnippet.js +2 -8
- package/es/helpers/components/Snippet.d.ts +1 -1
- package/es/helpers/components/Snippet.js +2 -8
- package/es/lib/insights/listener.d.ts +1 -1
- package/es/lib/insights/listener.js +0 -1
- package/es/lib/templating/index.d.ts +2 -0
- package/es/lib/templating/index.js +2 -0
- package/es/lib/{utils → templating}/prepareTemplateProps.d.ts +0 -0
- package/es/lib/{utils → templating}/prepareTemplateProps.js +1 -1
- package/es/lib/{utils → templating}/renderTemplate.d.ts +1 -1
- package/es/lib/{utils → templating}/renderTemplate.js +1 -1
- package/es/lib/utils/index.d.ts +0 -2
- package/es/lib/utils/index.js +0 -2
- package/es/lib/version.d.ts +1 -1
- package/es/lib/version.js +1 -1
- package/es/widgets/answers/answers.d.ts +1 -1
- package/es/widgets/answers/answers.js +2 -2
- package/es/widgets/breadcrumb/breadcrumb.d.ts +1 -1
- package/es/widgets/breadcrumb/breadcrumb.js +2 -2
- package/es/widgets/clear-refinements/clear-refinements.d.ts +1 -1
- package/es/widgets/clear-refinements/clear-refinements.js +2 -2
- package/es/widgets/current-refinements/current-refinements.d.ts +1 -1
- package/es/widgets/current-refinements/current-refinements.js +0 -1
- package/es/widgets/geo-search/GeoSearchRenderer.js +1 -2
- package/es/widgets/geo-search/createHTMLMarker.d.ts +1 -1
- package/es/widgets/geo-search/defaultTemplates.d.ts +1 -1
- package/es/widgets/geo-search/defaultTemplates.js +0 -1
- package/es/widgets/geo-search/geo-search.js +2 -1
- package/es/widgets/hierarchical-menu/defaultTemplates.js +0 -1
- package/es/widgets/hierarchical-menu/hierarchical-menu.d.ts +1 -1
- package/es/widgets/hierarchical-menu/hierarchical-menu.js +2 -2
- package/es/widgets/hits/hits.d.ts +1 -1
- package/es/widgets/hits/hits.js +2 -2
- package/es/widgets/hits-per-page/hits-per-page.d.ts +1 -1
- package/es/widgets/hits-per-page/hits-per-page.js +0 -1
- package/es/widgets/infinite-hits/infinite-hits.d.ts +1 -1
- package/es/widgets/infinite-hits/infinite-hits.js +2 -2
- package/es/widgets/menu/defaultTemplates.js +0 -1
- package/es/widgets/menu/menu.d.ts +1 -1
- package/es/widgets/menu/menu.js +2 -2
- package/es/widgets/menu-select/menu-select.d.ts +1 -1
- package/es/widgets/menu-select/menu-select.js +2 -2
- package/es/widgets/numeric-menu/defaultTemplates.js +0 -1
- package/es/widgets/numeric-menu/numeric-menu.d.ts +1 -1
- package/es/widgets/numeric-menu/numeric-menu.js +2 -2
- package/es/widgets/pagination/pagination.d.ts +1 -1
- package/es/widgets/pagination/pagination.js +0 -1
- package/es/widgets/panel/panel.d.ts +1 -1
- package/es/widgets/panel/panel.js +0 -1
- package/es/widgets/powered-by/powered-by.d.ts +1 -1
- package/es/widgets/powered-by/powered-by.js +0 -1
- package/es/widgets/query-rule-custom-data/query-rule-custom-data.d.ts +1 -1
- package/es/widgets/query-rule-custom-data/query-rule-custom-data.js +0 -1
- package/es/widgets/range-input/range-input.d.ts +1 -1
- package/es/widgets/range-input/range-input.js +2 -2
- package/es/widgets/range-slider/range-slider.d.ts +1 -1
- package/es/widgets/range-slider/range-slider.js +0 -1
- package/es/widgets/rating-menu/defaultTemplates.js +0 -1
- package/es/widgets/rating-menu/rating-menu.d.ts +1 -1
- package/es/widgets/rating-menu/rating-menu.js +2 -2
- package/es/widgets/refinement-list/defaultTemplates.js +0 -1
- package/es/widgets/refinement-list/refinement-list.d.ts +1 -1
- package/es/widgets/refinement-list/refinement-list.js +2 -2
- package/es/widgets/relevant-sort/relevant-sort.d.ts +1 -1
- package/es/widgets/relevant-sort/relevant-sort.js +0 -1
- package/es/widgets/search-box/defaultTemplates.js +0 -1
- package/es/widgets/search-box/search-box.d.ts +1 -1
- package/es/widgets/search-box/search-box.js +0 -1
- package/es/widgets/sort-by/sort-by.d.ts +1 -1
- package/es/widgets/sort-by/sort-by.js +0 -1
- package/es/widgets/stats/stats.d.ts +1 -1
- package/es/widgets/stats/stats.js +2 -2
- package/es/widgets/toggle-refinement/toggle-refinement.d.ts +1 -1
- package/es/widgets/toggle-refinement/toggle-refinement.js +2 -2
- package/es/widgets/voice-search/defaultTemplates.js +0 -1
- package/es/widgets/voice-search/voice-search.d.ts +1 -1
- package/es/widgets/voice-search/voice-search.js +0 -1
- package/package.json +4 -4
|
@@ -4,7 +4,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
4
4
|
|
|
5
5
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
6
|
|
|
7
|
-
/** @jsx h */
|
|
8
7
|
import { h, render } from 'preact';
|
|
9
8
|
import cx from 'classnames';
|
|
10
9
|
import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
@@ -4,7 +4,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
4
4
|
|
|
5
5
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
6
|
|
|
7
|
-
/** @jsx h */
|
|
8
7
|
import { h, render } from 'preact';
|
|
9
8
|
import cx from 'classnames';
|
|
10
9
|
import Selector from "../../components/Selector/Selector.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
import type { StatsComponentTemplates } from '../../components/Stats/Stats';
|
|
3
3
|
import type { StatsConnectorParams, StatsRenderState, StatsWidgetDescription } from '../../connectors/stats/connectStats';
|
|
4
4
|
import type { Template, WidgetFactory } from '../../types';
|
|
@@ -4,12 +4,12 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
4
4
|
|
|
5
5
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
6
|
|
|
7
|
-
/** @jsx h */
|
|
8
7
|
import { h, render } from 'preact';
|
|
9
8
|
import cx from 'classnames';
|
|
10
9
|
import Stats from "../../components/Stats/Stats.js";
|
|
11
10
|
import connectStats from "../../connectors/stats/connectStats.js";
|
|
12
|
-
import {
|
|
11
|
+
import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
12
|
+
import { prepareTemplateProps } from "../../lib/templating/index.js";
|
|
13
13
|
import { component } from "../../lib/suit.js";
|
|
14
14
|
import { formatNumber } from "../../lib/formatNumber.js";
|
|
15
15
|
var withUsage = createDocumentationMessageGenerator({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
import type { ToggleRefinementConnectorParams, ToggleRefinementWidgetDescription, ToggleRefinementValue } from '../../connectors/toggle-refinement/connectToggleRefinement';
|
|
3
3
|
import type { Template, WidgetFactory } from '../../types';
|
|
4
4
|
export declare type ToggleRefinementCSSClasses = Partial<{
|
|
@@ -4,13 +4,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
4
4
|
|
|
5
5
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
6
|
|
|
7
|
-
/** @jsx h */
|
|
8
7
|
import { h, render } from 'preact';
|
|
9
8
|
import cx from 'classnames';
|
|
10
9
|
import ToggleRefinement from "../../components/ToggleRefinement/ToggleRefinement.js";
|
|
11
10
|
import connectToggleRefinement from "../../connectors/toggle-refinement/connectToggleRefinement.js";
|
|
12
11
|
import defaultTemplates from "./defaultTemplates.js";
|
|
13
|
-
import { getContainerNode,
|
|
12
|
+
import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
13
|
+
import { prepareTemplateProps } from "../../lib/templating/index.js";
|
|
14
14
|
import { component } from "../../lib/suit.js";
|
|
15
15
|
var withUsage = createDocumentationMessageGenerator({
|
|
16
16
|
name: 'toggle-refinement'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
import type { PlainSearchParameters } from 'algoliasearch-helper';
|
|
3
3
|
import type { VoiceSearchConnectorParams, VoiceSearchWidgetDescription } from '../../connectors/voice-search/connectVoiceSearch';
|
|
4
4
|
import type { WidgetFactory, Template } from '../../types';
|
|
@@ -4,7 +4,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
4
4
|
|
|
5
5
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
6
|
|
|
7
|
-
/** @jsx h */
|
|
8
7
|
import { h, render } from 'preact';
|
|
9
8
|
import cx from 'classnames';
|
|
10
9
|
import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "instantsearch.js",
|
|
3
|
-
"version": "4.46.
|
|
3
|
+
"version": "4.46.2",
|
|
4
4
|
"description": "InstantSearch.js is a JavaScript library for building performant and instant search experiences with Algolia.",
|
|
5
5
|
"homepage": "https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/js/",
|
|
6
6
|
"types": "es/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"start": "yarn run dev",
|
|
24
24
|
"dev": "yarn run storybook",
|
|
25
25
|
"build": "yarn run build:cjs && yarn run build:es && yarn run build:umd && yarn run build:types",
|
|
26
|
-
"build:umd": "rm -rf dist && BABEL_ENV=umd rollup --config scripts/rollup/config.js",
|
|
26
|
+
"build:umd": "rm -rf dist && BABEL_ENV=umd rollup --config scripts/rollup/rollup.config.js",
|
|
27
27
|
"build:cjs": "rm -rf cjs && BABEL_ENV=cjs babel src --extensions '.js,.ts,.tsx' --out-dir cjs/ --ignore 'src/index.es.ts','**/__tests__','**/__mocks__' --quiet",
|
|
28
28
|
"build:es": "rm -rf es && BABEL_ENV=es babel src --extensions '.js,.ts,.tsx' --out-dir es/ --ignore 'src/index.es.ts','**/__tests__','**/__mocks__' --quiet && BABEL_ENV=es babel src/index.es.ts --out-file es/index.js --quiet && echo '{\"type\":\"module\",\"sideEffects\":false}' > es/package.json",
|
|
29
29
|
"build:types": "./scripts/typescript/extract.js",
|
|
@@ -159,11 +159,11 @@
|
|
|
159
159
|
"bundlesize": [
|
|
160
160
|
{
|
|
161
161
|
"path": "./dist/instantsearch.production.min.js",
|
|
162
|
-
"maxSize": "72.
|
|
162
|
+
"maxSize": "72.75 kB"
|
|
163
163
|
},
|
|
164
164
|
{
|
|
165
165
|
"path": "./dist/instantsearch.development.js",
|
|
166
|
-
"maxSize": "155.
|
|
166
|
+
"maxSize": "155.75 kB"
|
|
167
167
|
}
|
|
168
168
|
]
|
|
169
169
|
}
|