instantsearch.js 4.51.0 → 4.52.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/Answers/Answers.js +7 -3
- package/cjs/components/Breadcrumb/Breadcrumb.js +1 -1
- package/cjs/components/ClearRefinements/ClearRefinements.js +1 -1
- package/cjs/components/CurrentRefinements/CurrentRefinements.js +1 -1
- package/cjs/components/GeoSearchControls/GeoSearchControls.js +1 -1
- package/cjs/components/Hits/Hits.js +6 -2
- package/cjs/components/InfiniteHits/InfiniteHits.js +7 -3
- package/cjs/components/MenuSelect/MenuSelect.js +1 -1
- package/cjs/components/Pagination/Pagination.js +1 -1
- package/cjs/components/Panel/Panel.js +1 -1
- package/cjs/components/RangeInput/RangeInput.js +1 -1
- package/cjs/components/RefinementList/RefinementList.js +2 -2
- package/cjs/components/Selector/Selector.js +1 -1
- package/cjs/components/Slider/Pit.js +1 -1
- package/cjs/components/Slider/Slider.js +2 -2
- package/cjs/components/Stats/Stats.js +1 -1
- package/cjs/components/Template/Template.js +1 -1
- package/cjs/connectors/breadcrumb/connectBreadcrumb.js +2 -2
- package/cjs/connectors/index.js +4 -3
- package/cjs/helpers/reverseHighlight.js +1 -1
- package/cjs/helpers/reverseSnippet.js +1 -1
- package/cjs/index.js +7 -7
- package/cjs/lib/InstantSearch.js +7 -5
- package/cjs/lib/insights/listener.js +1 -1
- package/cjs/lib/routers/history.js +5 -0
- package/cjs/lib/utils/createSendEventForHits.js +1 -5
- package/cjs/lib/utils/getRefinements.js +1 -1
- package/cjs/lib/utils/index.js +11 -0
- package/cjs/lib/utils/omit.js +25 -0
- package/cjs/lib/utils/setIndexHelperState.js +1 -1
- package/cjs/lib/version.js +1 -1
- package/cjs/middlewares/createRouterMiddleware.js +5 -2
- package/cjs/widgets/answers/answers.js +5 -5
- package/cjs/widgets/breadcrumb/breadcrumb.js +4 -4
- package/cjs/widgets/clear-refinements/clear-refinements.js +4 -4
- package/cjs/widgets/configure-related-items/configure-related-items.js +1 -1
- package/cjs/widgets/current-refinements/current-refinements.js +2 -2
- package/cjs/widgets/geo-search/GeoSearchRenderer.js +1 -1
- package/cjs/widgets/geo-search/geo-search.js +5 -5
- package/cjs/widgets/hierarchical-menu/defaultTemplates.js +1 -1
- package/cjs/widgets/hierarchical-menu/hierarchical-menu.js +4 -4
- package/cjs/widgets/hits/defaultTemplates.js +2 -1
- package/cjs/widgets/hits/hits.js +6 -6
- package/cjs/widgets/hits-per-page/hits-per-page.js +2 -2
- package/cjs/widgets/index/index.js +11 -3
- package/cjs/widgets/index.js +4 -3
- package/cjs/widgets/infinite-hits/defaultTemplates.js +2 -1
- package/cjs/widgets/infinite-hits/infinite-hits.js +4 -4
- package/cjs/widgets/menu/defaultTemplates.js +1 -1
- package/cjs/widgets/menu/menu.js +4 -4
- package/cjs/widgets/menu-select/menu-select.js +5 -5
- package/cjs/widgets/numeric-menu/numeric-menu.js +3 -3
- package/cjs/widgets/pagination/pagination.js +2 -2
- package/cjs/widgets/panel/panel.js +3 -3
- package/cjs/widgets/powered-by/powered-by.js +2 -2
- package/cjs/widgets/query-rule-context/query-rule-context.js +1 -1
- package/cjs/widgets/query-rule-custom-data/query-rule-custom-data.js +4 -4
- package/cjs/widgets/range-input/range-input.js +3 -3
- package/cjs/widgets/range-slider/range-slider.js +2 -2
- package/cjs/widgets/rating-menu/defaultTemplates.js +1 -1
- package/cjs/widgets/rating-menu/rating-menu.js +4 -4
- package/cjs/widgets/refinement-list/defaultTemplates.js +1 -1
- package/cjs/widgets/refinement-list/refinement-list.js +3 -3
- package/cjs/widgets/relevant-sort/relevant-sort.js +4 -4
- package/cjs/widgets/search-box/search-box.js +4 -4
- package/cjs/widgets/sort-by/sort-by.js +2 -2
- package/cjs/widgets/stats/stats.js +4 -4
- package/cjs/widgets/toggle-refinement/toggle-refinement.js +4 -4
- package/cjs/widgets/voice-search/voice-search.js +4 -4
- package/dist/instantsearch.development.d.ts +27 -9
- package/dist/instantsearch.development.js +13646 -13611
- package/dist/instantsearch.development.js.map +1 -1
- package/dist/instantsearch.production.d.ts +27 -9
- package/dist/instantsearch.production.min.d.ts +27 -9
- 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 +7 -3
- package/es/components/Breadcrumb/Breadcrumb.d.ts +3 -3
- package/es/components/Breadcrumb/Breadcrumb.js +1 -1
- package/es/components/ClearRefinements/ClearRefinements.d.ts +2 -2
- package/es/components/ClearRefinements/ClearRefinements.js +1 -1
- package/es/components/CurrentRefinements/CurrentRefinements.d.ts +1 -1
- package/es/components/CurrentRefinements/CurrentRefinements.js +1 -1
- package/es/components/GeoSearchControls/GeoSearchButton.d.ts +1 -1
- package/es/components/GeoSearchControls/GeoSearchControls.d.ts +2 -2
- package/es/components/GeoSearchControls/GeoSearchControls.js +1 -1
- package/es/components/GeoSearchControls/GeoSearchToggle.d.ts +1 -1
- package/es/components/Hits/Hits.d.ts +2 -2
- package/es/components/Hits/Hits.js +6 -2
- package/es/components/InfiniteHits/InfiniteHits.d.ts +2 -2
- package/es/components/InfiniteHits/InfiniteHits.js +7 -3
- package/es/components/MenuSelect/MenuSelect.d.ts +1 -1
- package/es/components/MenuSelect/MenuSelect.js +1 -1
- package/es/components/Pagination/Pagination.d.ts +1 -1
- package/es/components/Pagination/Pagination.js +1 -1
- package/es/components/Panel/Panel.d.ts +1 -1
- package/es/components/Panel/Panel.js +1 -1
- package/es/components/RangeInput/RangeInput.d.ts +1 -1
- package/es/components/RangeInput/RangeInput.js +1 -1
- package/es/components/RefinementList/RefinementList.d.ts +7 -7
- package/es/components/RefinementList/RefinementList.js +2 -2
- package/es/components/RefinementList/RefinementListItem.d.ts +2 -1
- package/es/components/RelevantSort/RelevantSort.d.ts +1 -1
- package/es/components/SearchBox/SearchBox.d.ts +1 -1
- package/es/components/Selector/Selector.js +1 -1
- package/es/components/Slider/Pit.js +1 -1
- package/es/components/Slider/Rheostat.d.ts +3 -3
- package/es/components/Slider/Slider.d.ts +1 -1
- package/es/components/Slider/Slider.js +2 -2
- package/es/components/Stats/Stats.d.ts +1 -1
- package/es/components/Stats/Stats.js +1 -1
- package/es/components/Template/Template.d.ts +4 -4
- package/es/components/Template/Template.js +1 -1
- package/es/components/VoiceSearch/VoiceSearch.d.ts +1 -1
- package/es/connectors/autocomplete/connectAutocomplete.d.ts +1 -1
- package/es/connectors/breadcrumb/connectBreadcrumb.js +2 -2
- package/es/connectors/configure/connectConfigure.d.ts +1 -1
- package/es/connectors/configure/connectConfigure.js +0 -5
- package/es/connectors/configure-related-items/connectConfigureRelatedItems.d.ts +1 -1
- package/es/connectors/hierarchical-menu/connectHierarchicalMenu.d.ts +1 -1
- package/es/connectors/index.d.ts +6 -6
- package/es/connectors/index.js +10 -10
- package/es/connectors/infinite-hits/connectInfiniteHits.d.ts +2 -2
- package/es/connectors/menu/connectMenu.d.ts +1 -1
- package/es/connectors/rating-menu/connectRatingMenu.d.ts +1 -1
- package/es/connectors/refinement-list/connectRefinementList.d.ts +1 -1
- package/es/connectors/voice-search/connectVoiceSearch.d.ts +2 -2
- package/es/helpers/components/Highlight.d.ts +1 -1
- package/es/helpers/components/ReverseHighlight.d.ts +1 -1
- package/es/helpers/components/ReverseSnippet.d.ts +1 -1
- package/es/helpers/components/Snippet.d.ts +1 -1
- package/es/helpers/reverseHighlight.js +1 -1
- package/es/helpers/reverseSnippet.js +1 -1
- package/es/index.d.ts +3 -3
- package/es/index.js +2 -2
- package/es/lib/InstantSearch.d.ts +5 -4
- package/es/lib/InstantSearch.js +7 -5
- package/es/lib/insights/client.d.ts +1 -1
- package/es/lib/insights/listener.d.ts +1 -1
- package/es/lib/insights/listener.js +1 -1
- package/es/lib/routers/history.d.ts +1 -0
- package/es/lib/routers/history.js +5 -0
- package/es/lib/templating/renderTemplate.d.ts +1 -1
- package/es/lib/utils/checkIndexUiState.d.ts +1 -1
- package/es/lib/utils/checkIndexUiState.js +0 -1
- package/es/lib/utils/createSendEventForFacet.d.ts +1 -1
- package/es/lib/utils/createSendEventForHits.js +1 -5
- package/es/lib/utils/getRefinements.js +1 -1
- package/es/lib/utils/index.d.ts +1 -0
- package/es/lib/utils/index.js +1 -0
- package/es/lib/utils/omit.d.ts +7 -0
- package/es/lib/utils/omit.js +19 -0
- package/es/lib/utils/render-args.d.ts +2 -2
- package/es/lib/utils/resolveSearchParameters.d.ts +1 -1
- package/es/lib/utils/setIndexHelperState.js +1 -1
- package/es/lib/version.d.ts +1 -1
- package/es/lib/version.js +1 -1
- package/es/middlewares/createRouterMiddleware.js +5 -2
- package/es/types/connector.d.ts +2 -2
- package/es/types/index.d.ts +1 -0
- package/es/types/index.js +4 -1
- package/es/types/router.d.ts +4 -0
- package/es/types/templates.d.ts +2 -2
- package/es/types/widget.d.ts +2 -2
- package/es/widgets/analytics/analytics.d.ts +1 -1
- package/es/widgets/answers/answers.d.ts +1 -1
- package/es/widgets/answers/answers.js +5 -5
- package/es/widgets/breadcrumb/breadcrumb.js +4 -4
- package/es/widgets/clear-refinements/clear-refinements.js +4 -4
- package/es/widgets/configure/configure.js +0 -6
- package/es/widgets/configure-related-items/configure-related-items.d.ts +1 -1
- package/es/widgets/configure-related-items/configure-related-items.js +1 -1
- package/es/widgets/current-refinements/current-refinements.js +2 -2
- package/es/widgets/geo-search/GeoSearchRenderer.js +1 -1
- package/es/widgets/geo-search/geo-search.d.ts +1 -1
- package/es/widgets/geo-search/geo-search.js +5 -5
- package/es/widgets/hierarchical-menu/defaultTemplates.js +1 -1
- package/es/widgets/hierarchical-menu/hierarchical-menu.js +4 -4
- package/es/widgets/hits/defaultTemplates.js +2 -1
- package/es/widgets/hits/hits.d.ts +1 -0
- package/es/widgets/hits/hits.js +6 -6
- package/es/widgets/hits-per-page/hits-per-page.js +2 -2
- package/es/widgets/index/index.d.ts +13 -3
- package/es/widgets/index/index.js +11 -3
- package/es/widgets/index.d.ts +6 -6
- package/es/widgets/index.js +9 -7
- package/es/widgets/infinite-hits/defaultTemplates.js +2 -1
- package/es/widgets/infinite-hits/infinite-hits.d.ts +2 -1
- package/es/widgets/infinite-hits/infinite-hits.js +4 -4
- package/es/widgets/menu/defaultTemplates.js +1 -1
- package/es/widgets/menu/menu.js +4 -4
- package/es/widgets/menu-select/menu-select.js +5 -5
- package/es/widgets/numeric-menu/numeric-menu.js +3 -3
- package/es/widgets/pagination/pagination.js +2 -2
- package/es/widgets/panel/panel.js +3 -3
- package/es/widgets/places/places.d.ts +1 -1
- package/es/widgets/powered-by/powered-by.js +2 -2
- package/es/widgets/query-rule-context/query-rule-context.d.ts +1 -1
- package/es/widgets/query-rule-context/query-rule-context.js +1 -1
- package/es/widgets/query-rule-custom-data/query-rule-custom-data.d.ts +2 -2
- package/es/widgets/query-rule-custom-data/query-rule-custom-data.js +4 -4
- package/es/widgets/range-input/range-input.js +3 -3
- package/es/widgets/range-slider/range-slider.js +2 -2
- package/es/widgets/rating-menu/defaultTemplates.js +1 -1
- package/es/widgets/rating-menu/rating-menu.js +4 -4
- package/es/widgets/refinement-list/defaultTemplates.js +1 -1
- package/es/widgets/refinement-list/refinement-list.js +3 -3
- package/es/widgets/relevant-sort/relevant-sort.d.ts +1 -1
- package/es/widgets/relevant-sort/relevant-sort.js +4 -4
- package/es/widgets/search-box/search-box.d.ts +2 -2
- package/es/widgets/search-box/search-box.js +4 -4
- package/es/widgets/sort-by/sort-by.js +2 -2
- package/es/widgets/stats/stats.js +4 -4
- package/es/widgets/toggle-refinement/toggle-refinement.js +4 -4
- package/es/widgets/voice-search/voice-search.d.ts +2 -2
- package/es/widgets/voice-search/voice-search.js +4 -4
- package/package.json +5 -5
- package/cjs/lib/utils/detect-insights-client.js +0 -17
- package/es/lib/utils/detect-insights-client.d.ts +0 -1
- package/es/lib/utils/detect-insights-client.js +0 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { cx } from '@algolia/ui-components-shared';
|
|
1
2
|
import { h } from 'preact';
|
|
2
3
|
import { formatNumber } from "../../lib/formatNumber.js";
|
|
3
|
-
import { cx } from '@algolia/ui-components-shared';
|
|
4
4
|
function ItemWrapper(_ref) {
|
|
5
5
|
var children = _ref.children,
|
|
6
6
|
count = _ref.count,
|
|
@@ -4,14 +4,14 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
6
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
-
import { h, render } from 'preact';
|
|
8
7
|
import { cx } from '@algolia/ui-components-shared';
|
|
8
|
+
import { h, render } from 'preact';
|
|
9
9
|
import RefinementList from "../../components/RefinementList/RefinementList.js";
|
|
10
10
|
import connectRatingMenu from "../../connectors/rating-menu/connectRatingMenu.js";
|
|
11
|
-
import defaultTemplates from "./defaultTemplates.js";
|
|
12
|
-
import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
13
|
-
import { prepareTemplateProps } from "../../lib/templating/index.js";
|
|
14
11
|
import { component } from "../../lib/suit.js";
|
|
12
|
+
import { prepareTemplateProps } from "../../lib/templating/index.js";
|
|
13
|
+
import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
14
|
+
import defaultTemplates from "./defaultTemplates.js";
|
|
15
15
|
var withUsage = createDocumentationMessageGenerator({
|
|
16
16
|
name: 'rating-menu'
|
|
17
17
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { cx } from '@algolia/ui-components-shared';
|
|
1
2
|
import { h } from 'preact';
|
|
2
3
|
import { formatNumber } from "../../lib/formatNumber.js";
|
|
3
|
-
import { cx } from '@algolia/ui-components-shared';
|
|
4
4
|
var defaultTemplates = {
|
|
5
5
|
item: function item(_ref) {
|
|
6
6
|
var cssClasses = _ref.cssClasses,
|
|
@@ -4,13 +4,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
6
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
-
import { h, render } from 'preact';
|
|
8
7
|
import { cx } from '@algolia/ui-components-shared';
|
|
8
|
+
import { h, render } from 'preact';
|
|
9
9
|
import RefinementList from "../../components/RefinementList/RefinementList.js";
|
|
10
10
|
import connectRefinementList from "../../connectors/refinement-list/connectRefinementList.js";
|
|
11
|
-
import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
12
|
-
import { prepareTemplateProps } from "../../lib/templating/index.js";
|
|
13
11
|
import { component } from "../../lib/suit.js";
|
|
12
|
+
import { prepareTemplateProps } from "../../lib/templating/index.js";
|
|
13
|
+
import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
14
14
|
import searchBoxDefaultTemplates from "../search-box/defaultTemplates.js";
|
|
15
15
|
import defaultTemplates from "./defaultTemplates.js";
|
|
16
16
|
var withUsage = createDocumentationMessageGenerator({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import type { WidgetFactory, Template } from '../../types';
|
|
3
2
|
import type { RelevantSortConnectorParams, RelevantSortWidgetDescription } from '../../connectors/relevant-sort/connectRelevantSort';
|
|
3
|
+
import type { WidgetFactory, Template } from '../../types';
|
|
4
4
|
export type RelevantSortCSSClasses = Partial<{
|
|
5
5
|
root: string;
|
|
6
6
|
text: string;
|
|
@@ -4,12 +4,12 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
6
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
-
import { h, render } from 'preact';
|
|
8
7
|
import { cx } from '@algolia/ui-components-shared';
|
|
9
|
-
import {
|
|
10
|
-
import { component } from "../../lib/suit.js";
|
|
11
|
-
import connectRelevantSort from "../../connectors/relevant-sort/connectRelevantSort.js";
|
|
8
|
+
import { h, render } from 'preact';
|
|
12
9
|
import RelevantSort from "../../components/RelevantSort/RelevantSort.js";
|
|
10
|
+
import connectRelevantSort from "../../connectors/relevant-sort/connectRelevantSort.js";
|
|
11
|
+
import { component } from "../../lib/suit.js";
|
|
12
|
+
import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
13
13
|
import defaultTemplates from "./defaultTemplates.js";
|
|
14
14
|
var withUsage = createDocumentationMessageGenerator({
|
|
15
15
|
name: 'relevant-sort'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
import type { WidgetFactory, Template } from '../../types';
|
|
3
|
-
import type { SearchBoxConnectorParams, SearchBoxWidgetDescription } from '../../connectors/search-box/connectSearchBox';
|
|
4
2
|
import type { SearchBoxComponentCSSClasses } from '../../components/SearchBox/SearchBox';
|
|
3
|
+
import type { SearchBoxConnectorParams, SearchBoxWidgetDescription } from '../../connectors/search-box/connectSearchBox';
|
|
4
|
+
import type { WidgetFactory, Template } from '../../types';
|
|
5
5
|
export type SearchBoxTemplates = Partial<{
|
|
6
6
|
/**
|
|
7
7
|
* Template used for displaying the submit button. Can accept a function or a Hogan string.
|
|
@@ -4,12 +4,12 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
6
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
-
import { h, render } from 'preact';
|
|
8
7
|
import { cx } from '@algolia/ui-components-shared';
|
|
9
|
-
import {
|
|
10
|
-
import { component } from "../../lib/suit.js";
|
|
11
|
-
import connectSearchBox from "../../connectors/search-box/connectSearchBox.js";
|
|
8
|
+
import { h, render } from 'preact';
|
|
12
9
|
import SearchBox from "../../components/SearchBox/SearchBox.js";
|
|
10
|
+
import connectSearchBox from "../../connectors/search-box/connectSearchBox.js";
|
|
11
|
+
import { component } from "../../lib/suit.js";
|
|
12
|
+
import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
13
13
|
import defaultTemplates from "./defaultTemplates.js";
|
|
14
14
|
var withUsage = createDocumentationMessageGenerator({
|
|
15
15
|
name: 'search-box'
|
|
@@ -4,12 +4,12 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
6
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
-
import { h, render } from 'preact';
|
|
8
7
|
import { cx } from '@algolia/ui-components-shared';
|
|
8
|
+
import { h, render } from 'preact';
|
|
9
9
|
import Selector from "../../components/Selector/Selector.js";
|
|
10
10
|
import connectSortBy from "../../connectors/sort-by/connectSortBy.js";
|
|
11
|
-
import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
12
11
|
import { component } from "../../lib/suit.js";
|
|
12
|
+
import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
13
13
|
var withUsage = createDocumentationMessageGenerator({
|
|
14
14
|
name: 'sort-by'
|
|
15
15
|
});
|
|
@@ -4,14 +4,14 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
6
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
-
import { h, render } from 'preact';
|
|
8
7
|
import { cx } from '@algolia/ui-components-shared';
|
|
8
|
+
import { h, render } from 'preact';
|
|
9
9
|
import Stats from "../../components/Stats/Stats.js";
|
|
10
10
|
import connectStats from "../../connectors/stats/connectStats.js";
|
|
11
|
-
import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
12
|
-
import { prepareTemplateProps } from "../../lib/templating/index.js";
|
|
13
|
-
import { component } from "../../lib/suit.js";
|
|
14
11
|
import { formatNumber } from "../../lib/formatNumber.js";
|
|
12
|
+
import { component } from "../../lib/suit.js";
|
|
13
|
+
import { prepareTemplateProps } from "../../lib/templating/index.js";
|
|
14
|
+
import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
15
15
|
var withUsage = createDocumentationMessageGenerator({
|
|
16
16
|
name: 'stats'
|
|
17
17
|
});
|
|
@@ -4,14 +4,14 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
6
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
-
import { h, render } from 'preact';
|
|
8
7
|
import { cx } from '@algolia/ui-components-shared';
|
|
8
|
+
import { h, render } from 'preact';
|
|
9
9
|
import ToggleRefinement from "../../components/ToggleRefinement/ToggleRefinement.js";
|
|
10
10
|
import connectToggleRefinement from "../../connectors/toggle-refinement/connectToggleRefinement.js";
|
|
11
|
-
import defaultTemplates from "./defaultTemplates.js";
|
|
12
|
-
import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
13
|
-
import { prepareTemplateProps } from "../../lib/templating/index.js";
|
|
14
11
|
import { component } from "../../lib/suit.js";
|
|
12
|
+
import { prepareTemplateProps } from "../../lib/templating/index.js";
|
|
13
|
+
import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
14
|
+
import defaultTemplates from "./defaultTemplates.js";
|
|
15
15
|
var withUsage = createDocumentationMessageGenerator({
|
|
16
16
|
name: 'toggle-refinement'
|
|
17
17
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
import type { PlainSearchParameters } from 'algoliasearch-helper';
|
|
3
2
|
import type { VoiceSearchConnectorParams, VoiceSearchWidgetDescription } from '../../connectors/voice-search/connectVoiceSearch';
|
|
4
|
-
import type { WidgetFactory, Template } from '../../types';
|
|
5
3
|
import type { CreateVoiceSearchHelper } from '../../lib/voiceSearchHelper/types';
|
|
4
|
+
import type { WidgetFactory, Template } from '../../types';
|
|
5
|
+
import type { PlainSearchParameters } from 'algoliasearch-helper';
|
|
6
6
|
export type VoiceSearchCSSClasses = Partial<{
|
|
7
7
|
root: string | string[];
|
|
8
8
|
button: string | string[];
|
|
@@ -4,12 +4,12 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
6
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
-
import { h, render } from 'preact';
|
|
8
7
|
import { cx } from '@algolia/ui-components-shared';
|
|
9
|
-
import {
|
|
10
|
-
import { component } from "../../lib/suit.js";
|
|
11
|
-
import connectVoiceSearch from "../../connectors/voice-search/connectVoiceSearch.js";
|
|
8
|
+
import { h, render } from 'preact';
|
|
12
9
|
import VoiceSearchComponent from "../../components/VoiceSearch/VoiceSearch.js";
|
|
10
|
+
import connectVoiceSearch from "../../connectors/voice-search/connectVoiceSearch.js";
|
|
11
|
+
import { component } from "../../lib/suit.js";
|
|
12
|
+
import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
13
13
|
import defaultTemplates from "./defaultTemplates.js";
|
|
14
14
|
var withUsage = createDocumentationMessageGenerator({
|
|
15
15
|
name: 'voice-search'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "instantsearch.js",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.52.0",
|
|
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",
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
"version": "./scripts/version/update-version.js"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@instantsearch/mocks": "1.
|
|
59
|
-
"@instantsearch/tests": "1.
|
|
60
|
-
"@instantsearch/testutils": "1.0.
|
|
58
|
+
"@instantsearch/mocks": "1.8.0",
|
|
59
|
+
"@instantsearch/tests": "1.8.0",
|
|
60
|
+
"@instantsearch/testutils": "1.0.11",
|
|
61
61
|
"@storybook/html": "5.3.9",
|
|
62
62
|
"@types/scriptjs": "0.0.2",
|
|
63
63
|
"algoliasearch": "4.14.3",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"scriptjs": "2.5.9",
|
|
66
66
|
"webpack": "4.41.5"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "24ab56e4b18d69cc68919f994f8d8a3f1c880d33"
|
|
69
69
|
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.hasDetectedInsightsClient = hasDetectedInsightsClient;
|
|
7
|
-
var _safelyRunOnBrowser = require("./safelyRunOnBrowser");
|
|
8
|
-
function hasDetectedInsightsClient() {
|
|
9
|
-
return (0, _safelyRunOnBrowser.safelyRunOnBrowser)(function (_ref) {
|
|
10
|
-
var window = _ref.window;
|
|
11
|
-
return Boolean(window.AlgoliaAnalyticsObject);
|
|
12
|
-
}, {
|
|
13
|
-
fallback: function fallback() {
|
|
14
|
-
return false;
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function hasDetectedInsightsClient(): boolean;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { safelyRunOnBrowser } from "./safelyRunOnBrowser.js";
|
|
2
|
-
export function hasDetectedInsightsClient() {
|
|
3
|
-
return safelyRunOnBrowser(function (_ref) {
|
|
4
|
-
var window = _ref.window;
|
|
5
|
-
return Boolean(window.AlgoliaAnalyticsObject);
|
|
6
|
-
}, {
|
|
7
|
-
fallback: function fallback() {
|
|
8
|
-
return false;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
}
|