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
|
@@ -6,7 +6,6 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
6
6
|
|
|
7
7
|
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; }
|
|
8
8
|
|
|
9
|
-
/** @jsx h */
|
|
10
9
|
import { h } from 'preact';
|
|
11
10
|
import cx from 'classnames';
|
|
12
11
|
import Template from "../Template/Template.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
import { h } from 'preact';
|
|
3
3
|
import type { BreadcrumbCSSClasses, BreadcrumbTemplates } from '../../widgets/breadcrumb/breadcrumb';
|
|
4
4
|
import type { ComponentCSSClasses } from '../../types';
|
|
5
|
-
import type { PreparedTemplateProps } from '../../lib/
|
|
5
|
+
import type { PreparedTemplateProps } from '../../lib/templating';
|
|
6
6
|
import type { BreadcrumbConnectorParamsItem } from '../../connectors/breadcrumb/connectBreadcrumb';
|
|
7
7
|
export declare type BreadcrumbComponentCSSClasses = ComponentCSSClasses<BreadcrumbCSSClasses>;
|
|
8
8
|
export declare type BreadcrumbComponentTemplates = Required<BreadcrumbTemplates>;
|
|
@@ -2,7 +2,6 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
2
2
|
|
|
3
3
|
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; }
|
|
4
4
|
|
|
5
|
-
/** @jsx h */
|
|
6
5
|
import { h } from 'preact';
|
|
7
6
|
import cx from 'classnames';
|
|
8
7
|
import Template from "../Template/Template.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
import { h } from 'preact';
|
|
3
3
|
import type { ClearRefinementsRenderState } from '../../connectors/clear-refinements/connectClearRefinements';
|
|
4
4
|
import type { ClearRefinementsCSSClasses, ClearRefinementsTemplates } from '../../widgets/clear-refinements/clear-refinements';
|
|
5
5
|
import type { ComponentCSSClasses } from '../../types';
|
|
6
|
-
import type { PreparedTemplateProps } from '../../lib/
|
|
6
|
+
import type { PreparedTemplateProps } from '../../lib/templating';
|
|
7
7
|
export declare type ClearRefinementsComponentCSSClasses = ComponentCSSClasses<ClearRefinementsCSSClasses>;
|
|
8
8
|
export declare type ClearRefinementsComponentTemplates = Required<ClearRefinementsTemplates>;
|
|
9
9
|
export declare type ClearRefinementsProps = {
|
|
@@ -2,7 +2,6 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
2
2
|
|
|
3
3
|
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; }
|
|
4
4
|
|
|
5
|
-
/** @jsx h */
|
|
6
5
|
import { h } from 'preact';
|
|
7
6
|
import cx from 'classnames';
|
|
8
7
|
import Template from "../Template/Template.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
import { h } from 'preact';
|
|
3
3
|
import type { CurrentRefinementsConnectorParamsItem } from '../../connectors/current-refinements/connectCurrentRefinements';
|
|
4
4
|
import type { CurrentRefinementsCSSClasses } from '../../widgets/current-refinements/current-refinements';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
import { h } from 'preact';
|
|
3
3
|
import type { GeoSearchCSSClasses, GeoSearchTemplates } from '../../widgets/geo-search/geo-search';
|
|
4
4
|
import type { ComponentCSSClasses } from '../../types';
|
|
5
|
-
import type { PreparedTemplateProps } from '../../lib/
|
|
5
|
+
import type { PreparedTemplateProps } from '../../lib/templating';
|
|
6
6
|
declare type Props = {
|
|
7
7
|
cssClasses: ComponentCSSClasses<GeoSearchCSSClasses>;
|
|
8
8
|
enableRefine: boolean;
|
|
@@ -2,7 +2,6 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
2
2
|
|
|
3
3
|
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; }
|
|
4
4
|
|
|
5
|
-
/** @jsx h */
|
|
6
5
|
import { h, Fragment } from 'preact';
|
|
7
6
|
import cx from 'classnames';
|
|
8
7
|
import Template from "../Template/Template.js";
|
|
@@ -4,7 +4,6 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
4
4
|
|
|
5
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
6
6
|
|
|
7
|
-
/** @jsx h */
|
|
8
7
|
import { cx } from '@algolia/ui-components-shared';
|
|
9
8
|
import { h } from 'preact';
|
|
10
9
|
import { InternalHighlight } from "../InternalHighlight/InternalHighlight.js";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
import { h } from 'preact';
|
|
3
3
|
import type { SearchResults } from 'algoliasearch-helper';
|
|
4
|
-
import type { BindEventForHits, SendEventForHits
|
|
4
|
+
import type { BindEventForHits, SendEventForHits } from '../../lib/utils';
|
|
5
|
+
import type { PreparedTemplateProps } from '../../lib/templating';
|
|
5
6
|
import type { ComponentCSSClasses, Hit } from '../../types';
|
|
6
7
|
import type { HitsCSSClasses, HitsTemplates } from '../../widgets/hits/hits';
|
|
7
8
|
export declare type HitsComponentCSSClasses = ComponentCSSClasses<HitsCSSClasses>;
|
|
@@ -6,7 +6,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6
6
|
|
|
7
7
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
8
8
|
|
|
9
|
-
/** @jsx h */
|
|
10
9
|
import { h } from 'preact';
|
|
11
10
|
import cx from 'classnames';
|
|
12
11
|
import Template from "../Template/Template.js";
|
|
@@ -6,7 +6,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6
6
|
|
|
7
7
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
8
8
|
|
|
9
|
-
/** @jsx h */
|
|
10
9
|
import { h } from 'preact';
|
|
11
10
|
import cx from 'classnames';
|
|
12
11
|
import Template from "../Template/Template.js";
|
|
@@ -2,7 +2,6 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
2
2
|
|
|
3
3
|
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; }
|
|
4
4
|
|
|
5
|
-
/** @jsx h */
|
|
6
5
|
import { h } from 'preact';
|
|
7
6
|
import cx from 'classnames';
|
|
8
7
|
import { find } from "../../lib/utils/index.js";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
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; }
|
|
2
2
|
|
|
3
|
-
/** @jsx h */
|
|
4
3
|
import { h } from 'preact';
|
|
5
4
|
import cx from 'classnames';
|
|
6
5
|
import { isSpecialClick } from "../../lib/utils/index.js";
|
|
@@ -12,7 +12,6 @@ function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(
|
|
|
12
12
|
|
|
13
13
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
14
|
|
|
15
|
-
/** @jsx h */
|
|
16
15
|
import { h } from 'preact';
|
|
17
16
|
import { useState, useEffect, useRef } from 'preact/hooks';
|
|
18
17
|
import cx from 'classnames';
|
|
@@ -24,7 +24,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
24
24
|
|
|
25
25
|
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; }
|
|
26
26
|
|
|
27
|
-
/** @jsx h */
|
|
28
27
|
import { h, Component } from 'preact';
|
|
29
28
|
import cx from 'classnames';
|
|
30
29
|
import Template from "../Template/Template.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
import type { JSX } from 'preact';
|
|
3
3
|
import { Component } from 'preact';
|
|
4
|
-
import type { PreparedTemplateProps } from '../../lib/
|
|
4
|
+
import type { PreparedTemplateProps } from '../../lib/templating';
|
|
5
5
|
import type { SearchBoxComponentCSSClasses, SearchBoxComponentTemplates } from '../SearchBox/SearchBox';
|
|
6
6
|
import type { HierarchicalMenuItem } from '../../connectors/hierarchical-menu/connectHierarchicalMenu';
|
|
7
7
|
import type { ComponentCSSClasses, CreateURL, Templates } from '../../types';
|
|
@@ -32,7 +32,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
32
32
|
|
|
33
33
|
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; }
|
|
34
34
|
|
|
35
|
-
/** @jsx h */
|
|
36
35
|
import { h, createRef, Component } from 'preact';
|
|
37
36
|
import cx from 'classnames';
|
|
38
37
|
import { isSpecialClick, isEqual } from "../../lib/utils/index.js";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
|
|
3
|
-
/** @jsx h */
|
|
4
3
|
import { h } from 'preact';
|
|
5
4
|
import Template from "../Template/Template.js";
|
|
6
5
|
|
|
@@ -4,7 +4,6 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
4
4
|
|
|
5
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
6
6
|
|
|
7
|
-
/** @jsx h */
|
|
8
7
|
import { cx } from '@algolia/ui-components-shared';
|
|
9
8
|
import { h } from 'preact';
|
|
10
9
|
import { InternalHighlight } from "../InternalHighlight/InternalHighlight.js";
|
|
@@ -4,7 +4,6 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
4
4
|
|
|
5
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
6
6
|
|
|
7
|
-
/** @jsx h */
|
|
8
7
|
import { cx } from '@algolia/ui-components-shared';
|
|
9
8
|
import { h } from 'preact';
|
|
10
9
|
import { InternalHighlight } from "../InternalHighlight/InternalHighlight.js";
|
|
@@ -22,7 +22,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
22
22
|
|
|
23
23
|
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; }
|
|
24
24
|
|
|
25
|
-
/** @jsx h */
|
|
26
25
|
import { h, createRef, Component } from 'preact';
|
|
27
26
|
import { noop } from "../../lib/utils/index.js";
|
|
28
27
|
import Template from "../Template/Template.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 } from 'preact';
|
|
9
8
|
import cx from 'classnames';
|
|
10
9
|
|
|
@@ -36,7 +36,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
36
36
|
|
|
37
37
|
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; }
|
|
38
38
|
|
|
39
|
-
/** @jsx h */
|
|
40
39
|
import { h, Component } from 'preact';
|
|
41
40
|
import Rheostat from "./Rheostat.js";
|
|
42
41
|
import cx from 'classnames';
|
|
@@ -4,7 +4,6 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
4
4
|
|
|
5
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
6
6
|
|
|
7
|
-
/** @jsx h */
|
|
8
7
|
import { cx } from '@algolia/ui-components-shared';
|
|
9
8
|
import { h } from 'preact';
|
|
10
9
|
import { InternalHighlight } from "../InternalHighlight/InternalHighlight.js";
|
|
@@ -10,7 +10,6 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
10
10
|
|
|
11
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
12
|
|
|
13
|
-
/** @jsx h */
|
|
14
13
|
import { h } from 'preact';
|
|
15
14
|
import cx from 'classnames';
|
|
16
15
|
import Template from "../Template/Template.js";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
import type { JSX } from 'preact';
|
|
3
3
|
import { Component } from 'preact';
|
|
4
|
-
import type { BindEventForHits, SendEventForHits
|
|
4
|
+
import type { BindEventForHits, SendEventForHits } from '../../lib/utils';
|
|
5
|
+
import type { PreparedTemplateProps } from '../../lib/templating';
|
|
5
6
|
import type { Templates } from '../../types';
|
|
6
7
|
declare const defaultProps: {
|
|
7
8
|
data: {};
|
|
@@ -24,9 +24,9 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
24
24
|
|
|
25
25
|
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; }
|
|
26
26
|
|
|
27
|
-
/** @jsx h */
|
|
28
27
|
import { h, Component } from 'preact';
|
|
29
|
-
import { warning,
|
|
28
|
+
import { warning, isEqual } from "../../lib/utils/index.js";
|
|
29
|
+
import { renderTemplate } from "../../lib/templating/index.js";
|
|
30
30
|
var defaultProps = {
|
|
31
31
|
data: {},
|
|
32
32
|
rootTagName: 'div',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
import { h } from 'preact';
|
|
3
3
|
import type { ToggleRefinementRenderState, ToggleRefinementValue } from '../../connectors/toggle-refinement/connectToggleRefinement';
|
|
4
|
-
import type { PreparedTemplateProps } from '../../lib/
|
|
4
|
+
import type { PreparedTemplateProps } from '../../lib/templating';
|
|
5
5
|
import type { ComponentCSSClasses } from '../../types';
|
|
6
6
|
import type { ToggleRefinementTemplates, ToggleRefinementCSSClasses } from '../../widgets/toggle-refinement/toggle-refinement';
|
|
7
7
|
export declare type ToggleRefinementComponentCSSClasses = ComponentCSSClasses<ToggleRefinementCSSClasses>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
|
|
3
|
-
/** @jsx h */
|
|
4
3
|
import { h } from 'preact';
|
|
5
4
|
import Template from "../Template/Template.js";
|
|
6
5
|
|
|
@@ -4,15 +4,9 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
4
4
|
|
|
5
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
6
6
|
|
|
7
|
-
/** @jsx h */
|
|
8
7
|
import { h } from 'preact';
|
|
9
|
-
import { Highlight as HighlightUiComponent } from "../../components/Highlight/Highlight.js";
|
|
10
|
-
|
|
11
|
-
import { getPropertyByPath } from "../../lib/utils/getPropertyByPath.js";
|
|
12
|
-
import { unescape } from "../../lib/utils/escape-html.js";
|
|
13
|
-
import { toArray } from "../../lib/utils/toArray.js";
|
|
14
|
-
import { warning } from "../../lib/utils/logger.js";
|
|
15
|
-
import { getHighlightedParts } from "../../lib/utils/getHighlightedParts.js";
|
|
8
|
+
import { Highlight as HighlightUiComponent } from "../../components/Highlight/Highlight.js";
|
|
9
|
+
import { getPropertyByPath, unescape, toArray, warning, getHighlightedParts } from "../../lib/utils/index.js";
|
|
16
10
|
export function Highlight(_ref) {
|
|
17
11
|
var hit = _ref.hit,
|
|
18
12
|
attribute = _ref.attribute,
|
|
@@ -10,15 +10,9 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
10
10
|
|
|
11
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
12
|
|
|
13
|
-
/** @jsx h */
|
|
14
13
|
import { h } from 'preact';
|
|
15
|
-
import { ReverseHighlight as ReverseHighlightUiComponent } from "../../components/ReverseHighlight/ReverseHighlight.js";
|
|
16
|
-
|
|
17
|
-
import { getPropertyByPath } from "../../lib/utils/getPropertyByPath.js";
|
|
18
|
-
import { unescape } from "../../lib/utils/escape-html.js";
|
|
19
|
-
import { toArray } from "../../lib/utils/toArray.js";
|
|
20
|
-
import { warning } from "../../lib/utils/logger.js";
|
|
21
|
-
import { getHighlightedParts } from "../../lib/utils/getHighlightedParts.js";
|
|
14
|
+
import { ReverseHighlight as ReverseHighlightUiComponent } from "../../components/ReverseHighlight/ReverseHighlight.js";
|
|
15
|
+
import { getPropertyByPath, unescape, toArray, warning, getHighlightedParts } from "../../lib/utils/index.js";
|
|
22
16
|
export function ReverseHighlight(_ref) {
|
|
23
17
|
var hit = _ref.hit,
|
|
24
18
|
attribute = _ref.attribute,
|
|
@@ -10,15 +10,9 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
10
10
|
|
|
11
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
12
|
|
|
13
|
-
/** @jsx h */
|
|
14
13
|
import { h } from 'preact';
|
|
15
|
-
import { ReverseSnippet as ReverseSnippetUiComponent } from "../../components/ReverseSnippet/ReverseSnippet.js";
|
|
16
|
-
|
|
17
|
-
import { getPropertyByPath } from "../../lib/utils/getPropertyByPath.js";
|
|
18
|
-
import { unescape } from "../../lib/utils/escape-html.js";
|
|
19
|
-
import { toArray } from "../../lib/utils/toArray.js";
|
|
20
|
-
import { warning } from "../../lib/utils/logger.js";
|
|
21
|
-
import { getHighlightedParts } from "../../lib/utils/getHighlightedParts.js";
|
|
14
|
+
import { ReverseSnippet as ReverseSnippetUiComponent } from "../../components/ReverseSnippet/ReverseSnippet.js";
|
|
15
|
+
import { getPropertyByPath, unescape, toArray, warning, getHighlightedParts } from "../../lib/utils/index.js";
|
|
22
16
|
export function ReverseSnippet(_ref) {
|
|
23
17
|
var hit = _ref.hit,
|
|
24
18
|
attribute = _ref.attribute,
|
|
@@ -4,15 +4,9 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
4
4
|
|
|
5
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
6
6
|
|
|
7
|
-
/** @jsx h */
|
|
8
7
|
import { h } from 'preact';
|
|
9
|
-
import { Snippet as SnippetUiComponent } from "../../components/Snippet/Snippet.js";
|
|
10
|
-
|
|
11
|
-
import { getPropertyByPath } from "../../lib/utils/getPropertyByPath.js";
|
|
12
|
-
import { toArray } from "../../lib/utils/toArray.js";
|
|
13
|
-
import { unescape } from "../../lib/utils/escape-html.js";
|
|
14
|
-
import { warning } from "../../lib/utils/logger.js";
|
|
15
|
-
import { getHighlightedParts } from "../../lib/utils/getHighlightedParts.js";
|
|
8
|
+
import { Snippet as SnippetUiComponent } from "../../components/Snippet/Snippet.js";
|
|
9
|
+
import { getPropertyByPath, unescape, toArray, warning, getHighlightedParts } from "../../lib/utils/index.js";
|
|
16
10
|
export function Snippet(_ref) {
|
|
17
11
|
var hit = _ref.hit,
|
|
18
12
|
attribute = _ref.attribute,
|