instantsearch.js 4.33.2 → 4.37.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/CHANGELOG.md +42 -0
- package/README.md +2 -1
- package/cjs/components/Answers/Answers.js +1 -1
- package/cjs/components/Breadcrumb/Breadcrumb.js +1 -1
- package/cjs/components/ClearRefinements/ClearRefinements.js +1 -1
- package/cjs/components/CurrentRefinements/CurrentRefinements.js +3 -3
- package/cjs/components/GeoSearchControls/GeoSearchControls.js +3 -3
- package/cjs/components/Hits/Hits.js +1 -1
- package/cjs/components/InfiniteHits/InfiniteHits.js +1 -1
- package/cjs/components/MenuSelect/MenuSelect.js +3 -3
- package/cjs/components/Pagination/Pagination.js +71 -161
- package/cjs/components/Pagination/PaginationLink.js +26 -13
- package/cjs/components/Panel/Panel.js +1 -1
- package/cjs/components/QueryRuleCustomData/QueryRuleCustomData.js +1 -1
- package/cjs/components/RangeInput/RangeInput.js +1 -1
- package/cjs/components/RefinementList/RefinementList.js +6 -6
- package/cjs/components/RefinementList/RefinementListItem.js +1 -1
- package/cjs/components/RelevantSort/RelevantSort.js +1 -1
- package/cjs/components/SearchBox/SearchBox.js +9 -10
- package/cjs/components/Slider/Slider.js +5 -5
- package/cjs/components/Stats/Stats.js +1 -1
- package/cjs/components/Template/Template.js +3 -3
- package/cjs/components/ToggleRefinement/ToggleRefinement.js +1 -1
- package/cjs/components/VoiceSearch/VoiceSearch.js +1 -1
- package/cjs/connectors/answers/connectAnswers.js +10 -10
- package/cjs/connectors/autocomplete/connectAutocomplete.js +11 -10
- package/cjs/connectors/breadcrumb/connectBreadcrumb.js +5 -5
- package/cjs/connectors/clear-refinements/connectClearRefinements.js +9 -9
- package/cjs/connectors/configure/connectConfigure.js +8 -8
- package/cjs/connectors/configure-related-items/connectConfigureRelatedItems.js +5 -5
- package/cjs/connectors/current-refinements/connectCurrentRefinements.js +6 -6
- package/cjs/connectors/dynamic-widgets/connectDynamicWidgets.js +35 -10
- package/cjs/connectors/geo-search/connectGeoSearch.js +11 -11
- package/cjs/connectors/hierarchical-menu/connectHierarchicalMenu.js +6 -6
- package/cjs/connectors/hits/connectHits.js +11 -11
- package/cjs/connectors/hits/connectHitsWithInsights.js +3 -3
- package/cjs/connectors/hits-per-page/connectHitsPerPage.js +6 -6
- package/cjs/connectors/index.js +31 -31
- package/cjs/connectors/infinite-hits/connectInfiniteHits.js +13 -13
- package/cjs/connectors/infinite-hits/connectInfiniteHitsWithInsights.js +3 -3
- package/cjs/connectors/menu/connectMenu.js +5 -5
- package/cjs/connectors/numeric-menu/connectNumericMenu.js +7 -7
- package/cjs/connectors/pagination/Paginator.js +3 -3
- package/cjs/connectors/pagination/connectPagination.js +8 -8
- package/cjs/connectors/powered-by/connectPoweredBy.js +5 -5
- package/cjs/connectors/query-rules/connectQueryRules.js +7 -7
- package/cjs/connectors/range/connectRange.js +27 -27
- package/cjs/connectors/rating-menu/connectRatingMenu.js +6 -6
- package/cjs/connectors/refinement-list/connectRefinementList.js +8 -8
- package/cjs/connectors/relevant-sort/connectRelevantSort.js +3 -3
- package/cjs/connectors/search-box/connectSearchBox.js +8 -7
- package/cjs/connectors/sort-by/connectSortBy.js +8 -7
- package/cjs/connectors/stats/connectStats.js +8 -8
- package/cjs/connectors/toggle-refinement/connectToggleRefinement.js +12 -12
- package/cjs/connectors/voice-search/connectVoiceSearch.js +6 -6
- package/cjs/helpers/get-insights-anonymous-user-token.js +2 -2
- package/cjs/helpers/highlight.js +4 -4
- package/cjs/helpers/index.js +6 -6
- package/cjs/helpers/insights.js +4 -4
- package/cjs/helpers/reverseHighlight.js +5 -5
- package/cjs/helpers/reverseSnippet.js +5 -5
- package/cjs/helpers/snippet.js +4 -4
- package/cjs/index.js +9 -9
- package/cjs/lib/InstantSearch.js +44 -23
- package/cjs/lib/createHelpers.js +6 -6
- package/cjs/lib/infiniteHitsCache/index.js +1 -1
- package/cjs/lib/infiniteHitsCache/sessionStorage.js +4 -4
- package/cjs/lib/insights/client.js +5 -5
- package/cjs/lib/insights/index.js +2 -2
- package/cjs/lib/insights/listener.js +3 -3
- package/cjs/lib/routers/history.js +6 -6
- package/cjs/lib/routers/index.js +1 -1
- package/cjs/lib/stateMappings/index.js +2 -2
- package/cjs/lib/utils/checkIndexUiState.js +3 -3
- package/cjs/lib/utils/checkRendering.js +1 -1
- package/cjs/lib/utils/concatHighlightedParts.js +1 -1
- package/cjs/lib/utils/createSendEventForFacet.js +1 -1
- package/cjs/lib/utils/createSendEventForHits.js +1 -1
- package/cjs/lib/utils/detect-insights-client.js +1 -1
- package/cjs/lib/utils/escape-highlight.js +2 -2
- package/cjs/lib/utils/getContainerNode.js +1 -1
- package/cjs/lib/utils/getHighlightFromSiblings.js +1 -1
- package/cjs/lib/utils/getHighlightedParts.js +1 -1
- package/cjs/lib/utils/getRefinements.js +2 -2
- package/cjs/lib/utils/index.js +48 -48
- package/cjs/lib/utils/logger.js +1 -1
- package/cjs/lib/utils/mergeSearchParameters.js +2 -2
- package/cjs/lib/utils/prepareTemplateProps.js +1 -1
- package/cjs/lib/utils/reverseHighlightedParts.js +1 -1
- package/cjs/lib/version.js +1 -1
- package/cjs/middlewares/createInsightsMiddleware.js +11 -11
- package/cjs/middlewares/createMetadataMiddleware.js +2 -2
- package/cjs/middlewares/createRouterMiddleware.js +4 -4
- package/cjs/middlewares/index.js +3 -3
- package/cjs/types/index.js +14 -14
- package/cjs/widgets/analytics/analytics.js +3 -3
- package/cjs/widgets/answers/answers.js +8 -8
- package/cjs/widgets/breadcrumb/breadcrumb.js +8 -8
- package/cjs/widgets/clear-refinements/clear-refinements.js +8 -8
- package/cjs/widgets/configure/configure.js +3 -3
- package/cjs/widgets/configure-related-items/configure-related-items.js +3 -3
- package/cjs/widgets/current-refinements/current-refinements.js +6 -6
- package/cjs/widgets/dynamic-widgets/dynamic-widgets.js +14 -11
- package/cjs/widgets/geo-search/GeoSearchRenderer.js +3 -3
- package/cjs/widgets/geo-search/geo-search.js +9 -9
- package/cjs/widgets/hierarchical-menu/hierarchical-menu.js +8 -8
- package/cjs/widgets/hits/hits.js +11 -11
- package/cjs/widgets/hits-per-page/hits-per-page.js +7 -7
- package/cjs/widgets/index/index.js +26 -8
- package/cjs/widgets/index.js +36 -36
- package/cjs/widgets/infinite-hits/infinite-hits.js +11 -11
- package/cjs/widgets/menu/menu.js +8 -8
- package/cjs/widgets/menu-select/menu-select.js +8 -8
- package/cjs/widgets/numeric-menu/numeric-menu.js +8 -8
- package/cjs/widgets/pagination/pagination.js +7 -7
- package/cjs/widgets/panel/panel.js +7 -7
- package/cjs/widgets/powered-by/powered-by.js +6 -6
- package/cjs/widgets/query-rule-context/query-rule-context.js +4 -4
- package/cjs/widgets/query-rule-custom-data/query-rule-custom-data.js +6 -6
- package/cjs/widgets/range-input/range-input.js +7 -7
- package/cjs/widgets/range-slider/range-slider.js +6 -6
- package/cjs/widgets/rating-menu/rating-menu.js +8 -8
- package/cjs/widgets/refinement-list/refinement-list.js +10 -10
- package/cjs/widgets/relevant-sort/relevant-sort.js +7 -7
- package/cjs/widgets/search-box/search-box.js +7 -7
- package/cjs/widgets/sort-by/sort-by.js +6 -6
- package/cjs/widgets/stats/defaultTemplates.js +1 -1
- package/cjs/widgets/stats/stats.js +7 -7
- package/cjs/widgets/toggle-refinement/toggle-refinement.js +8 -8
- package/cjs/widgets/voice-search/voice-search.js +7 -7
- package/dist/instantsearch.development.d.ts +23 -2
- package/dist/instantsearch.development.js +383 -376
- package/dist/instantsearch.development.js.map +1 -1
- package/dist/instantsearch.development.min.d.ts +23 -2
- package/dist/instantsearch.production.d.ts +23 -2
- package/dist/instantsearch.production.min.d.ts +23 -2
- package/dist/instantsearch.production.min.js +2 -2
- package/dist/instantsearch.production.min.js.map +1 -1
- package/es/components/Answers/Answers.js +1 -1
- package/es/components/Breadcrumb/Breadcrumb.js +1 -1
- package/es/components/ClearRefinements/ClearRefinements.js +1 -1
- package/es/components/CurrentRefinements/CurrentRefinements.js +1 -1
- package/es/components/GeoSearchControls/GeoSearchControls.js +3 -3
- package/es/components/Hits/Hits.js +1 -1
- package/es/components/InfiniteHits/InfiniteHits.js +1 -1
- package/es/components/MenuSelect/MenuSelect.js +2 -2
- package/es/components/Pagination/Pagination.d.ts +4 -11
- package/es/components/Pagination/Pagination.js +72 -162
- package/es/components/Pagination/PaginationLink.d.ts +10 -11
- package/es/components/Pagination/PaginationLink.js +23 -13
- package/es/components/Panel/Panel.js +1 -1
- package/es/components/QueryRuleCustomData/QueryRuleCustomData.js +1 -1
- package/es/components/RangeInput/RangeInput.js +1 -1
- package/es/components/RefinementList/RefinementList.js +4 -4
- package/es/components/RefinementList/RefinementListItem.js +1 -1
- package/es/components/RelevantSort/RelevantSort.js +1 -1
- package/es/components/SearchBox/SearchBox.js +5 -6
- package/es/components/Slider/Slider.js +3 -3
- package/es/components/Stats/Stats.js +1 -1
- package/es/components/Template/Template.js +1 -1
- package/es/components/ToggleRefinement/ToggleRefinement.js +1 -1
- package/es/components/VoiceSearch/VoiceSearch.js +1 -1
- package/es/connectors/answers/connectAnswers.js +1 -1
- package/es/connectors/autocomplete/connectAutocomplete.js +3 -2
- package/es/connectors/breadcrumb/connectBreadcrumb.js +1 -1
- package/es/connectors/clear-refinements/connectClearRefinements.js +1 -1
- package/es/connectors/configure/connectConfigure.js +1 -1
- package/es/connectors/configure-related-items/connectConfigureRelatedItems.js +2 -2
- package/es/connectors/current-refinements/connectCurrentRefinements.js +1 -1
- package/es/connectors/dynamic-widgets/connectDynamicWidgets.d.ts +14 -0
- package/es/connectors/dynamic-widgets/connectDynamicWidgets.js +31 -6
- package/es/connectors/geo-search/connectGeoSearch.js +1 -1
- package/es/connectors/hierarchical-menu/connectHierarchicalMenu.js +1 -1
- package/es/connectors/hits/connectHits.js +1 -1
- package/es/connectors/hits/connectHitsWithInsights.js +2 -2
- package/es/connectors/hits-per-page/connectHitsPerPage.js +1 -1
- package/es/connectors/index.js +30 -30
- package/es/connectors/infinite-hits/connectInfiniteHits.js +2 -2
- package/es/connectors/infinite-hits/connectInfiniteHitsWithInsights.js +2 -2
- package/es/connectors/menu/connectMenu.js +1 -1
- package/es/connectors/numeric-menu/connectNumericMenu.js +1 -1
- package/es/connectors/pagination/Paginator.js +1 -1
- package/es/connectors/pagination/connectPagination.js +5 -5
- package/es/connectors/powered-by/connectPoweredBy.js +1 -1
- package/es/connectors/query-rules/connectQueryRules.js +1 -1
- package/es/connectors/range/connectRange.js +1 -1
- package/es/connectors/rating-menu/connectRatingMenu.js +1 -1
- package/es/connectors/refinement-list/connectRefinementList.js +1 -1
- package/es/connectors/relevant-sort/connectRelevantSort.js +1 -1
- package/es/connectors/search-box/connectSearchBox.js +5 -4
- package/es/connectors/sort-by/connectSortBy.js +3 -2
- package/es/connectors/stats/connectStats.js +5 -5
- package/es/connectors/toggle-refinement/connectToggleRefinement.js +2 -2
- package/es/connectors/voice-search/connectVoiceSearch.js +2 -2
- package/es/helpers/get-insights-anonymous-user-token.js +1 -1
- package/es/helpers/highlight.js +2 -2
- package/es/helpers/index.js +10 -10
- package/es/helpers/insights.js +1 -1
- package/es/helpers/reverseHighlight.js +2 -2
- package/es/helpers/reverseSnippet.js +2 -2
- package/es/helpers/snippet.js +2 -2
- package/es/index.js +6 -6
- package/es/lib/InstantSearch.d.ts +3 -3
- package/es/lib/InstantSearch.js +29 -8
- package/es/lib/createHelpers.js +1 -1
- package/es/lib/infiniteHitsCache/index.js +1 -1
- package/es/lib/infiniteHitsCache/sessionStorage.js +1 -1
- package/es/lib/insights/client.js +1 -1
- package/es/lib/insights/index.js +2 -2
- package/es/lib/insights/listener.js +2 -2
- package/es/lib/routers/history.js +1 -1
- package/es/lib/routers/index.js +1 -1
- package/es/lib/stateMappings/index.js +2 -2
- package/es/lib/utils/checkIndexUiState.js +3 -3
- package/es/lib/utils/checkRendering.js +1 -1
- package/es/lib/utils/concatHighlightedParts.js +1 -1
- package/es/lib/utils/createSendEventForFacet.js +1 -1
- package/es/lib/utils/createSendEventForHits.js +1 -1
- package/es/lib/utils/detect-insights-client.js +1 -1
- package/es/lib/utils/escape-highlight.js +2 -2
- package/es/lib/utils/getContainerNode.js +1 -1
- package/es/lib/utils/getHighlightFromSiblings.js +1 -1
- package/es/lib/utils/getHighlightedParts.js +1 -1
- package/es/lib/utils/getRefinements.js +2 -2
- package/es/lib/utils/index.js +48 -48
- package/es/lib/utils/logger.js +1 -1
- package/es/lib/utils/mergeSearchParameters.js +2 -2
- package/es/lib/utils/prepareTemplateProps.js +1 -1
- package/es/lib/utils/reverseHighlightedParts.js +1 -1
- package/es/lib/version.d.ts +1 -1
- package/es/lib/version.js +1 -1
- package/es/middlewares/createInsightsMiddleware.js +3 -3
- package/es/middlewares/createMetadataMiddleware.js +1 -1
- package/es/middlewares/createRouterMiddleware.js +3 -3
- package/es/middlewares/index.js +3 -3
- package/es/package.json +1 -0
- package/es/types/index.js +14 -14
- package/es/types/results.d.ts +7 -0
- package/es/widgets/analytics/analytics.js +1 -1
- package/es/widgets/answers/answers.js +5 -5
- package/es/widgets/breadcrumb/breadcrumb.js +5 -5
- package/es/widgets/clear-refinements/clear-refinements.js +5 -5
- package/es/widgets/configure/configure.js +2 -2
- package/es/widgets/configure-related-items/configure-related-items.js +2 -2
- package/es/widgets/current-refinements/current-refinements.js +4 -4
- package/es/widgets/dynamic-widgets/dynamic-widgets.js +11 -8
- package/es/widgets/geo-search/GeoSearchRenderer.js +2 -2
- package/es/widgets/geo-search/geo-search.js +6 -6
- package/es/widgets/hierarchical-menu/hierarchical-menu.js +5 -5
- package/es/widgets/hits/hits.js +6 -6
- package/es/widgets/hits-per-page/hits-per-page.js +4 -4
- package/es/widgets/index/index.js +21 -3
- package/es/widgets/index.js +34 -34
- package/es/widgets/infinite-hits/infinite-hits.js +6 -6
- package/es/widgets/menu/menu.js +5 -5
- package/es/widgets/menu-select/menu-select.js +5 -5
- package/es/widgets/numeric-menu/numeric-menu.js +5 -5
- package/es/widgets/pagination/pagination.js +4 -4
- package/es/widgets/panel/panel.js +3 -3
- package/es/widgets/powered-by/powered-by.js +4 -4
- package/es/widgets/query-rule-context/query-rule-context.js +2 -2
- package/es/widgets/query-rule-custom-data/query-rule-custom-data.js +4 -4
- package/es/widgets/range-input/range-input.js +4 -4
- package/es/widgets/range-slider/range-slider.js +4 -4
- package/es/widgets/rating-menu/rating-menu.js +5 -5
- package/es/widgets/refinement-list/refinement-list.js +6 -6
- package/es/widgets/relevant-sort/relevant-sort.js +5 -5
- package/es/widgets/search-box/search-box.js +5 -5
- package/es/widgets/sort-by/sort-by.js +4 -4
- package/es/widgets/stats/defaultTemplates.js +1 -1
- package/es/widgets/stats/stats.js +4 -4
- package/es/widgets/toggle-refinement/toggle-refinement.js +5 -5
- package/es/widgets/voice-search/voice-search.js +5 -5
- package/package.json +10 -6
|
@@ -6,12 +6,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6
6
|
|
|
7
7
|
/** @jsx h */
|
|
8
8
|
import { h, render } from 'preact';
|
|
9
|
-
import ClearRefinements from
|
|
9
|
+
import ClearRefinements from "../../components/ClearRefinements/ClearRefinements.js";
|
|
10
10
|
import cx from 'classnames';
|
|
11
|
-
import connectClearRefinements from
|
|
12
|
-
import defaultTemplates from
|
|
13
|
-
import { getContainerNode, prepareTemplateProps, createDocumentationMessageGenerator } from
|
|
14
|
-
import { component } from
|
|
11
|
+
import connectClearRefinements from "../../connectors/clear-refinements/connectClearRefinements.js";
|
|
12
|
+
import defaultTemplates from "./defaultTemplates.js";
|
|
13
|
+
import { getContainerNode, prepareTemplateProps, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
14
|
+
import { component } from "../../lib/suit.js";
|
|
15
15
|
var withUsage = createDocumentationMessageGenerator({
|
|
16
16
|
name: 'clear-refinements'
|
|
17
17
|
});
|
|
@@ -4,8 +4,8 @@ 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
|
-
import connectConfigure from
|
|
8
|
-
import { noop } from
|
|
7
|
+
import connectConfigure from "../../connectors/configure/connectConfigure.js";
|
|
8
|
+
import { noop } from "../../lib/utils/index.js";
|
|
9
9
|
/**
|
|
10
10
|
* A list of [search parameters](https://www.algolia.com/doc/api-reference/search-api-parameters/)
|
|
11
11
|
* to enable when the widget mounts.
|
|
@@ -4,8 +4,8 @@ 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
|
-
import { noop } from
|
|
8
|
-
import connectConfigureRelatedItems from
|
|
7
|
+
import { noop } from "../../lib/utils/index.js";
|
|
8
|
+
import connectConfigureRelatedItems from "../../connectors/configure-related-items/connectConfigureRelatedItems.js";
|
|
9
9
|
|
|
10
10
|
var configureRelatedItems = function configureRelatedItems(widgetParams) {
|
|
11
11
|
var makeWidget = connectConfigureRelatedItems(noop);
|
|
@@ -7,10 +7,10 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
7
7
|
/** @jsx h */
|
|
8
8
|
import { h, render } from 'preact';
|
|
9
9
|
import cx from 'classnames';
|
|
10
|
-
import CurrentRefinements from
|
|
11
|
-
import connectCurrentRefinements from
|
|
12
|
-
import { getContainerNode, createDocumentationMessageGenerator } from
|
|
13
|
-
import { component } from
|
|
10
|
+
import CurrentRefinements from "../../components/CurrentRefinements/CurrentRefinements.js";
|
|
11
|
+
import connectCurrentRefinements from "../../connectors/current-refinements/connectCurrentRefinements.js";
|
|
12
|
+
import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
13
|
+
import { component } from "../../lib/suit.js";
|
|
14
14
|
var withUsage = createDocumentationMessageGenerator({
|
|
15
15
|
name: 'current-refinements'
|
|
16
16
|
});
|
|
@@ -4,9 +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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
8
|
+
|
|
9
|
+
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; }
|
|
10
|
+
|
|
11
|
+
import connectDynamicWidgets from "../../connectors/dynamic-widgets/connectDynamicWidgets.js";
|
|
12
|
+
import { component } from "../../lib/suit.js";
|
|
13
|
+
import { createDocumentationMessageGenerator, getContainerNode, getWidgetAttribute } from "../../lib/utils/index.js";
|
|
10
14
|
var withUsage = createDocumentationMessageGenerator({
|
|
11
15
|
name: 'dynamic-widgets'
|
|
12
16
|
});
|
|
@@ -24,9 +28,9 @@ function createContainer(rootContainer) {
|
|
|
24
28
|
var dynamicWidgets = function dynamicWidgets(widgetParams) {
|
|
25
29
|
var _ref = widgetParams || {},
|
|
26
30
|
containerSelector = _ref.container,
|
|
27
|
-
transformItems = _ref.transformItems,
|
|
28
31
|
widgets = _ref.widgets,
|
|
29
|
-
fallbackWidget = _ref.fallbackWidget
|
|
32
|
+
fallbackWidget = _ref.fallbackWidget,
|
|
33
|
+
otherWidgetParams = _objectWithoutProperties(_ref, ["container", "widgets", "fallbackWidget"]);
|
|
30
34
|
|
|
31
35
|
if (!containerSelector) {
|
|
32
36
|
throw new Error(withUsage('The `container` option is required.'));
|
|
@@ -61,8 +65,7 @@ var dynamicWidgets = function dynamicWidgets(widgetParams) {
|
|
|
61
65
|
}, function () {
|
|
62
66
|
userContainer.removeChild(rootContainer);
|
|
63
67
|
});
|
|
64
|
-
var widget = makeWidget({
|
|
65
|
-
transformItems: transformItems,
|
|
68
|
+
var widget = makeWidget(_objectSpread(_objectSpread({}, otherWidgetParams), {}, {
|
|
66
69
|
widgets: connectorWidgets,
|
|
67
70
|
fallbackWidget: typeof fallbackWidget === 'function' ? function (_ref3) {
|
|
68
71
|
var attribute = _ref3.attribute;
|
|
@@ -73,7 +76,7 @@ var dynamicWidgets = function dynamicWidgets(widgetParams) {
|
|
|
73
76
|
container: container
|
|
74
77
|
});
|
|
75
78
|
} : undefined
|
|
76
|
-
});
|
|
79
|
+
}));
|
|
77
80
|
return _objectSpread(_objectSpread({}, widget), {}, {
|
|
78
81
|
init: function init(initOptions) {
|
|
79
82
|
widgets.forEach(function (cb) {
|
|
@@ -18,8 +18,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
18
18
|
|
|
19
19
|
/** @jsx h */
|
|
20
20
|
import { h, render } from 'preact';
|
|
21
|
-
import { prepareTemplateProps } from
|
|
22
|
-
import GeoSearchControls from
|
|
21
|
+
import { prepareTemplateProps } from "../../lib/utils/index.js";
|
|
22
|
+
import GeoSearchControls from "../../components/GeoSearchControls/GeoSearchControls.js";
|
|
23
23
|
|
|
24
24
|
var refineWithMap = function refineWithMap(_ref) {
|
|
25
25
|
var refine = _ref.refine,
|
|
@@ -13,12 +13,12 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
13
13
|
/* global google */
|
|
14
14
|
import cx from 'classnames';
|
|
15
15
|
import { render } from 'preact';
|
|
16
|
-
import { getContainerNode, renderTemplate, createDocumentationMessageGenerator } from
|
|
17
|
-
import { component } from
|
|
18
|
-
import connectGeoSearch from
|
|
19
|
-
import renderer from
|
|
20
|
-
import defaultTemplates from
|
|
21
|
-
import createHTMLMarker from
|
|
16
|
+
import { getContainerNode, renderTemplate, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
17
|
+
import { component } from "../../lib/suit.js";
|
|
18
|
+
import connectGeoSearch from "../../connectors/geo-search/connectGeoSearch.js";
|
|
19
|
+
import renderer from "./GeoSearchRenderer.js";
|
|
20
|
+
import defaultTemplates from "./defaultTemplates.js";
|
|
21
|
+
import createHTMLMarker from "./createHTMLMarker.js";
|
|
22
22
|
var withUsage = createDocumentationMessageGenerator({
|
|
23
23
|
name: 'geo-search'
|
|
24
24
|
});
|
|
@@ -7,11 +7,11 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
7
7
|
/** @jsx h */
|
|
8
8
|
import { h, render } from 'preact';
|
|
9
9
|
import cx from 'classnames';
|
|
10
|
-
import RefinementList from
|
|
11
|
-
import connectHierarchicalMenu from
|
|
12
|
-
import defaultTemplates from
|
|
13
|
-
import { prepareTemplateProps, getContainerNode, createDocumentationMessageGenerator } from
|
|
14
|
-
import { component } from
|
|
10
|
+
import RefinementList from "../../components/RefinementList/RefinementList.js";
|
|
11
|
+
import connectHierarchicalMenu from "../../connectors/hierarchical-menu/connectHierarchicalMenu.js";
|
|
12
|
+
import defaultTemplates from "./defaultTemplates.js";
|
|
13
|
+
import { prepareTemplateProps, getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
14
|
+
import { component } from "../../lib/suit.js";
|
|
15
15
|
var withUsage = createDocumentationMessageGenerator({
|
|
16
16
|
name: 'hierarchical-menu'
|
|
17
17
|
});
|
package/es/widgets/hits/hits.js
CHANGED
|
@@ -7,12 +7,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
7
7
|
/** @jsx h */
|
|
8
8
|
import { h, render } from 'preact';
|
|
9
9
|
import cx from 'classnames';
|
|
10
|
-
import connectHits from
|
|
11
|
-
import Hits from
|
|
12
|
-
import defaultTemplates from
|
|
13
|
-
import { prepareTemplateProps, getContainerNode, createDocumentationMessageGenerator } from
|
|
14
|
-
import { component } from
|
|
15
|
-
import { withInsights, withInsightsListener } from
|
|
10
|
+
import connectHits from "../../connectors/hits/connectHits.js";
|
|
11
|
+
import Hits from "../../components/Hits/Hits.js";
|
|
12
|
+
import defaultTemplates from "./defaultTemplates.js";
|
|
13
|
+
import { prepareTemplateProps, getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
14
|
+
import { component } from "../../lib/suit.js";
|
|
15
|
+
import { withInsights, withInsightsListener } from "../../lib/insights/index.js";
|
|
16
16
|
var withUsage = createDocumentationMessageGenerator({
|
|
17
17
|
name: 'hits'
|
|
18
18
|
});
|
|
@@ -7,10 +7,10 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
7
7
|
/** @jsx h */
|
|
8
8
|
import { h, render } from 'preact';
|
|
9
9
|
import cx from 'classnames';
|
|
10
|
-
import Selector from
|
|
11
|
-
import connectHitsPerPage from
|
|
12
|
-
import { getContainerNode, createDocumentationMessageGenerator, find } from
|
|
13
|
-
import { component } from
|
|
10
|
+
import Selector from "../../components/Selector/Selector.js";
|
|
11
|
+
import connectHitsPerPage from "../../connectors/hits-per-page/connectHitsPerPage.js";
|
|
12
|
+
import { getContainerNode, createDocumentationMessageGenerator, find } from "../../lib/utils/index.js";
|
|
13
|
+
import { component } from "../../lib/suit.js";
|
|
14
14
|
var withUsage = createDocumentationMessageGenerator({
|
|
15
15
|
name: 'hits-per-page'
|
|
16
16
|
});
|
|
@@ -21,7 +21,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
21
21
|
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; }
|
|
22
22
|
|
|
23
23
|
import algoliasearchHelper from 'algoliasearch-helper';
|
|
24
|
-
import { checkIndexUiState, createDocumentationMessageGenerator, resolveSearchParameters, mergeSearchParameters, warning } from
|
|
24
|
+
import { checkIndexUiState, createDocumentationMessageGenerator, resolveSearchParameters, mergeSearchParameters, warning } from "../../lib/utils/index.js";
|
|
25
25
|
var withUsage = createDocumentationMessageGenerator({
|
|
26
26
|
name: 'index-widget'
|
|
27
27
|
});
|
|
@@ -275,7 +275,8 @@ var index = function index(widgetParams) {
|
|
|
275
275
|
return this;
|
|
276
276
|
},
|
|
277
277
|
init: function init(_ref2) {
|
|
278
|
-
var _this3 = this
|
|
278
|
+
var _this3 = this,
|
|
279
|
+
_instantSearchInstanc;
|
|
279
280
|
|
|
280
281
|
var instantSearchInstance = _ref2.instantSearchInstance,
|
|
281
282
|
parent = _ref2.parent,
|
|
@@ -333,11 +334,21 @@ var index = function index(widgetParams) {
|
|
|
333
334
|
|
|
334
335
|
derivedHelper = mainHelper.derive(function () {
|
|
335
336
|
return mergeSearchParameters.apply(void 0, _toConsumableArray(resolveSearchParameters(_this3)));
|
|
336
|
-
});
|
|
337
|
+
});
|
|
338
|
+
var indexInitialResults = (_instantSearchInstanc = instantSearchInstance._initialResults) === null || _instantSearchInstanc === void 0 ? void 0 : _instantSearchInstanc[this.getIndexId()];
|
|
339
|
+
|
|
340
|
+
if (indexInitialResults) {
|
|
341
|
+
// We restore the shape of the results provided to the instance to respect
|
|
342
|
+
// the helper's structure.
|
|
343
|
+
var results = new algoliasearchHelper.SearchResults(new algoliasearchHelper.SearchParameters(indexInitialResults.state), indexInitialResults.results);
|
|
344
|
+
derivedHelper.lastResults = results;
|
|
345
|
+
helper.lastResults = results;
|
|
346
|
+
} // Subscribe to the Helper state changes for the page before widgets
|
|
337
347
|
// are initialized. This behavior mimics the original one of the Helper.
|
|
338
348
|
// It makes sense to replicate it at the `init` step. We have another
|
|
339
349
|
// listener on `change` below, once `init` is done.
|
|
340
350
|
|
|
351
|
+
|
|
341
352
|
helper.on('change', function (_ref3) {
|
|
342
353
|
var isPageReset = _ref3.isPageReset;
|
|
343
354
|
|
|
@@ -438,6 +449,13 @@ var index = function index(widgetParams) {
|
|
|
438
449
|
instantSearchInstance.onInternalStateChange();
|
|
439
450
|
}
|
|
440
451
|
});
|
|
452
|
+
|
|
453
|
+
if (indexInitialResults) {
|
|
454
|
+
// If there are initial results, we're not notified of the next results
|
|
455
|
+
// because we don't trigger an initial search. We therefore need to directly
|
|
456
|
+
// schedule a render that will render the results injected on the helper.
|
|
457
|
+
instantSearchInstance.scheduleRender();
|
|
458
|
+
}
|
|
441
459
|
},
|
|
442
460
|
render: function render(_ref5) {
|
|
443
461
|
var _this4 = this;
|
package/es/widgets/index.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
export { default as analytics } from
|
|
2
|
-
export { default as breadcrumb } from
|
|
3
|
-
export { default as clearRefinements } from
|
|
4
|
-
export { default as configure } from
|
|
5
|
-
export { default as currentRefinements } from
|
|
6
|
-
export { default as EXPERIMENTAL_answers } from
|
|
7
|
-
export { default as EXPERIMENTAL_configureRelatedItems } from
|
|
8
|
-
import dynamicWidgets from
|
|
1
|
+
export { default as analytics } from "./analytics/analytics.js";
|
|
2
|
+
export { default as breadcrumb } from "./breadcrumb/breadcrumb.js";
|
|
3
|
+
export { default as clearRefinements } from "./clear-refinements/clear-refinements.js";
|
|
4
|
+
export { default as configure } from "./configure/configure.js";
|
|
5
|
+
export { default as currentRefinements } from "./current-refinements/current-refinements.js";
|
|
6
|
+
export { default as EXPERIMENTAL_answers } from "./answers/answers.js";
|
|
7
|
+
export { default as EXPERIMENTAL_configureRelatedItems } from "./configure-related-items/configure-related-items.js";
|
|
8
|
+
import dynamicWidgets from "./dynamic-widgets/dynamic-widgets.js";
|
|
9
9
|
export { dynamicWidgets };
|
|
10
|
-
import { deprecate } from
|
|
10
|
+
import { deprecate } from "../lib/utils/index.js";
|
|
11
11
|
/** @deprecated use dynamicWidgets */
|
|
12
12
|
|
|
13
13
|
export var EXPERIMENTAL_dynamicWidgets = deprecate(dynamicWidgets, 'use dynamicWidgets');
|
|
14
|
-
export { default as geoSearch } from
|
|
15
|
-
export { default as hierarchicalMenu } from
|
|
16
|
-
export { default as hits } from
|
|
17
|
-
export { default as hitsPerPage } from
|
|
18
|
-
export { default as index } from
|
|
19
|
-
export { default as infiniteHits } from
|
|
20
|
-
export { default as menu } from
|
|
21
|
-
export { default as menuSelect } from
|
|
22
|
-
export { default as numericMenu } from
|
|
23
|
-
export { default as pagination } from
|
|
24
|
-
export { default as panel } from
|
|
25
|
-
export { default as places } from
|
|
26
|
-
export { default as poweredBy } from
|
|
27
|
-
export { default as queryRuleContext } from
|
|
28
|
-
export { default as queryRuleCustomData } from
|
|
29
|
-
export { default as rangeInput } from
|
|
30
|
-
export { default as rangeSlider } from
|
|
31
|
-
export { default as ratingMenu } from
|
|
32
|
-
export { default as refinementList } from
|
|
33
|
-
export { default as relevantSort } from
|
|
34
|
-
export { default as searchBox } from
|
|
35
|
-
export { default as sortBy } from
|
|
36
|
-
export { default as stats } from
|
|
37
|
-
export { default as toggleRefinement } from
|
|
38
|
-
export { default as voiceSearch } from
|
|
14
|
+
export { default as geoSearch } from "./geo-search/geo-search.js";
|
|
15
|
+
export { default as hierarchicalMenu } from "./hierarchical-menu/hierarchical-menu.js";
|
|
16
|
+
export { default as hits } from "./hits/hits.js";
|
|
17
|
+
export { default as hitsPerPage } from "./hits-per-page/hits-per-page.js";
|
|
18
|
+
export { default as index } from "./index/index.js";
|
|
19
|
+
export { default as infiniteHits } from "./infinite-hits/infinite-hits.js";
|
|
20
|
+
export { default as menu } from "./menu/menu.js";
|
|
21
|
+
export { default as menuSelect } from "./menu-select/menu-select.js";
|
|
22
|
+
export { default as numericMenu } from "./numeric-menu/numeric-menu.js";
|
|
23
|
+
export { default as pagination } from "./pagination/pagination.js";
|
|
24
|
+
export { default as panel } from "./panel/panel.js";
|
|
25
|
+
export { default as places } from "./places/places.js";
|
|
26
|
+
export { default as poweredBy } from "./powered-by/powered-by.js";
|
|
27
|
+
export { default as queryRuleContext } from "./query-rule-context/query-rule-context.js";
|
|
28
|
+
export { default as queryRuleCustomData } from "./query-rule-custom-data/query-rule-custom-data.js";
|
|
29
|
+
export { default as rangeInput } from "./range-input/range-input.js";
|
|
30
|
+
export { default as rangeSlider } from "./range-slider/range-slider.js";
|
|
31
|
+
export { default as ratingMenu } from "./rating-menu/rating-menu.js";
|
|
32
|
+
export { default as refinementList } from "./refinement-list/refinement-list.js";
|
|
33
|
+
export { default as relevantSort } from "./relevant-sort/relevant-sort.js";
|
|
34
|
+
export { default as searchBox } from "./search-box/search-box.js";
|
|
35
|
+
export { default as sortBy } from "./sort-by/sort-by.js";
|
|
36
|
+
export { default as stats } from "./stats/stats.js";
|
|
37
|
+
export { default as toggleRefinement } from "./toggle-refinement/toggle-refinement.js";
|
|
38
|
+
export { default as voiceSearch } from "./voice-search/voice-search.js";
|
|
@@ -7,12 +7,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
7
7
|
/** @jsx h */
|
|
8
8
|
import { h, render } from 'preact';
|
|
9
9
|
import cx from 'classnames';
|
|
10
|
-
import InfiniteHits from
|
|
11
|
-
import connectInfiniteHits from
|
|
12
|
-
import { prepareTemplateProps, getContainerNode, createDocumentationMessageGenerator } from
|
|
13
|
-
import { component } from
|
|
14
|
-
import { withInsights, withInsightsListener } from
|
|
15
|
-
import defaultTemplates from
|
|
10
|
+
import InfiniteHits from "../../components/InfiniteHits/InfiniteHits.js";
|
|
11
|
+
import connectInfiniteHits from "../../connectors/infinite-hits/connectInfiniteHits.js";
|
|
12
|
+
import { prepareTemplateProps, getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
13
|
+
import { component } from "../../lib/suit.js";
|
|
14
|
+
import { withInsights, withInsightsListener } from "../../lib/insights/index.js";
|
|
15
|
+
import defaultTemplates from "./defaultTemplates.js";
|
|
16
16
|
var withUsage = createDocumentationMessageGenerator({
|
|
17
17
|
name: 'infinite-hits'
|
|
18
18
|
});
|
package/es/widgets/menu/menu.js
CHANGED
|
@@ -7,11 +7,11 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
7
7
|
/** @jsx h */
|
|
8
8
|
import { h, render } from 'preact';
|
|
9
9
|
import cx from 'classnames';
|
|
10
|
-
import RefinementList from
|
|
11
|
-
import connectMenu from
|
|
12
|
-
import defaultTemplates from
|
|
13
|
-
import { prepareTemplateProps, getContainerNode, createDocumentationMessageGenerator } from
|
|
14
|
-
import { component } from
|
|
10
|
+
import RefinementList from "../../components/RefinementList/RefinementList.js";
|
|
11
|
+
import connectMenu from "../../connectors/menu/connectMenu.js";
|
|
12
|
+
import defaultTemplates from "./defaultTemplates.js";
|
|
13
|
+
import { prepareTemplateProps, getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
14
|
+
import { component } from "../../lib/suit.js";
|
|
15
15
|
var withUsage = createDocumentationMessageGenerator({
|
|
16
16
|
name: 'menu'
|
|
17
17
|
});
|
|
@@ -7,11 +7,11 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
7
7
|
/** @jsx h */
|
|
8
8
|
import { h, render } from 'preact';
|
|
9
9
|
import cx from 'classnames';
|
|
10
|
-
import connectMenu from
|
|
11
|
-
import MenuSelect from
|
|
12
|
-
import defaultTemplates from
|
|
13
|
-
import { prepareTemplateProps, getContainerNode, createDocumentationMessageGenerator } from
|
|
14
|
-
import { component } from
|
|
10
|
+
import connectMenu from "../../connectors/menu/connectMenu.js";
|
|
11
|
+
import MenuSelect from "../../components/MenuSelect/MenuSelect.js";
|
|
12
|
+
import defaultTemplates from "./defaultTemplates.js";
|
|
13
|
+
import { prepareTemplateProps, getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
14
|
+
import { component } from "../../lib/suit.js";
|
|
15
15
|
var withUsage = createDocumentationMessageGenerator({
|
|
16
16
|
name: 'menu-select'
|
|
17
17
|
});
|
|
@@ -7,11 +7,11 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
7
7
|
/** @jsx h */
|
|
8
8
|
import { h, render } from 'preact';
|
|
9
9
|
import cx from 'classnames';
|
|
10
|
-
import RefinementList from
|
|
11
|
-
import connectNumericMenu from
|
|
12
|
-
import defaultTemplates from
|
|
13
|
-
import { prepareTemplateProps, getContainerNode, createDocumentationMessageGenerator } from
|
|
14
|
-
import { component } from
|
|
10
|
+
import RefinementList from "../../components/RefinementList/RefinementList.js";
|
|
11
|
+
import connectNumericMenu from "../../connectors/numeric-menu/connectNumericMenu.js";
|
|
12
|
+
import defaultTemplates from "./defaultTemplates.js";
|
|
13
|
+
import { prepareTemplateProps, getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
14
|
+
import { component } from "../../lib/suit.js";
|
|
15
15
|
var withUsage = createDocumentationMessageGenerator({
|
|
16
16
|
name: 'numeric-menu'
|
|
17
17
|
});
|
|
@@ -7,10 +7,10 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
7
7
|
/** @jsx h */
|
|
8
8
|
import { h, render } from 'preact';
|
|
9
9
|
import cx from 'classnames';
|
|
10
|
-
import Pagination from
|
|
11
|
-
import connectPagination from
|
|
12
|
-
import { getContainerNode, createDocumentationMessageGenerator } from
|
|
13
|
-
import { component } from
|
|
10
|
+
import Pagination from "../../components/Pagination/Pagination.js";
|
|
11
|
+
import connectPagination from "../../connectors/pagination/connectPagination.js";
|
|
12
|
+
import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
13
|
+
import { component } from "../../lib/suit.js";
|
|
14
14
|
var suit = component('Pagination');
|
|
15
15
|
var withUsage = createDocumentationMessageGenerator({
|
|
16
16
|
name: 'pagination'
|
|
@@ -7,9 +7,9 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
7
7
|
/** @jsx h */
|
|
8
8
|
import { h, render } from 'preact';
|
|
9
9
|
import cx from 'classnames';
|
|
10
|
-
import { createDocumentationMessageGenerator, getContainerNode, getObjectType, warning } from
|
|
11
|
-
import { component } from
|
|
12
|
-
import Panel from
|
|
10
|
+
import { createDocumentationMessageGenerator, getContainerNode, getObjectType, warning } from "../../lib/utils/index.js";
|
|
11
|
+
import { component } from "../../lib/suit.js";
|
|
12
|
+
import Panel from "../../components/Panel/Panel.js";
|
|
13
13
|
var withUsage = createDocumentationMessageGenerator({
|
|
14
14
|
name: 'panel'
|
|
15
15
|
});
|
|
@@ -7,10 +7,10 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
7
7
|
/** @jsx h */
|
|
8
8
|
import { h, render } from 'preact';
|
|
9
9
|
import cx from 'classnames';
|
|
10
|
-
import PoweredBy from
|
|
11
|
-
import connectPoweredBy from
|
|
12
|
-
import { getContainerNode, createDocumentationMessageGenerator } from
|
|
13
|
-
import { component } from
|
|
10
|
+
import PoweredBy from "../../components/PoweredBy/PoweredBy.js";
|
|
11
|
+
import connectPoweredBy from "../../connectors/powered-by/connectPoweredBy.js";
|
|
12
|
+
import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
13
|
+
import { component } from "../../lib/suit.js";
|
|
14
14
|
var suit = component('PoweredBy');
|
|
15
15
|
var withUsage = createDocumentationMessageGenerator({
|
|
16
16
|
name: 'powered-by'
|
|
@@ -4,8 +4,8 @@ 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
|
-
import { createDocumentationMessageGenerator, noop } from
|
|
8
|
-
import connectQueryRules from
|
|
7
|
+
import { createDocumentationMessageGenerator, noop } from "../../lib/utils/index.js";
|
|
8
|
+
import connectQueryRules from "../../connectors/query-rules/connectQueryRules.js";
|
|
9
9
|
var withUsage = createDocumentationMessageGenerator({
|
|
10
10
|
name: 'query-rule-context'
|
|
11
11
|
});
|
|
@@ -7,10 +7,10 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
7
7
|
/** @jsx h */
|
|
8
8
|
import { h, render } from 'preact';
|
|
9
9
|
import cx from 'classnames';
|
|
10
|
-
import { getContainerNode, createDocumentationMessageGenerator } from
|
|
11
|
-
import { component } from
|
|
12
|
-
import connectQueryRules from
|
|
13
|
-
import CustomData from
|
|
10
|
+
import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
11
|
+
import { component } from "../../lib/suit.js";
|
|
12
|
+
import connectQueryRules from "../../connectors/query-rules/connectQueryRules.js";
|
|
13
|
+
import CustomData from "../../components/QueryRuleCustomData/QueryRuleCustomData.js";
|
|
14
14
|
export var defaultTemplates = {
|
|
15
15
|
default: function _default(_ref) {
|
|
16
16
|
var items = _ref.items;
|
|
@@ -19,10 +19,10 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
19
19
|
/** @jsx h */
|
|
20
20
|
import { h, render } from 'preact';
|
|
21
21
|
import cx from 'classnames';
|
|
22
|
-
import RangeInput from
|
|
23
|
-
import connectRange from
|
|
24
|
-
import { prepareTemplateProps, getContainerNode, createDocumentationMessageGenerator } from
|
|
25
|
-
import { component } from
|
|
22
|
+
import RangeInput from "../../components/RangeInput/RangeInput.js";
|
|
23
|
+
import connectRange from "../../connectors/range/connectRange.js";
|
|
24
|
+
import { prepareTemplateProps, getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
25
|
+
import { component } from "../../lib/suit.js";
|
|
26
26
|
var withUsage = createDocumentationMessageGenerator({
|
|
27
27
|
name: 'range-input'
|
|
28
28
|
});
|
|
@@ -19,10 +19,10 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
19
19
|
/** @jsx h */
|
|
20
20
|
import { h, render } from 'preact';
|
|
21
21
|
import cx from 'classnames';
|
|
22
|
-
import Slider from
|
|
23
|
-
import connectRange from
|
|
24
|
-
import { getContainerNode, createDocumentationMessageGenerator } from
|
|
25
|
-
import { component } from
|
|
22
|
+
import Slider from "../../components/Slider/Slider.js";
|
|
23
|
+
import connectRange from "../../connectors/range/connectRange.js";
|
|
24
|
+
import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
25
|
+
import { component } from "../../lib/suit.js";
|
|
26
26
|
var withUsage = createDocumentationMessageGenerator({
|
|
27
27
|
name: 'range-slider'
|
|
28
28
|
});
|
|
@@ -7,11 +7,11 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
7
7
|
/** @jsx h */
|
|
8
8
|
import { h, render } from 'preact';
|
|
9
9
|
import cx from 'classnames';
|
|
10
|
-
import RefinementList from
|
|
11
|
-
import connectRatingMenu from
|
|
12
|
-
import defaultTemplates from
|
|
13
|
-
import { prepareTemplateProps, getContainerNode, createDocumentationMessageGenerator } from
|
|
14
|
-
import { component } from
|
|
10
|
+
import RefinementList from "../../components/RefinementList/RefinementList.js";
|
|
11
|
+
import connectRatingMenu from "../../connectors/rating-menu/connectRatingMenu.js";
|
|
12
|
+
import defaultTemplates from "./defaultTemplates.js";
|
|
13
|
+
import { prepareTemplateProps, getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
14
|
+
import { component } from "../../lib/suit.js";
|
|
15
15
|
var withUsage = createDocumentationMessageGenerator({
|
|
16
16
|
name: 'rating-menu'
|
|
17
17
|
});
|
|
@@ -7,12 +7,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
7
7
|
/** @jsx h */
|
|
8
8
|
import { h, render } from 'preact';
|
|
9
9
|
import cx from 'classnames';
|
|
10
|
-
import RefinementList from
|
|
11
|
-
import connectRefinementList from
|
|
12
|
-
import { prepareTemplateProps, getContainerNode, createDocumentationMessageGenerator } from
|
|
13
|
-
import { component } from
|
|
14
|
-
import searchBoxDefaultTemplates from
|
|
15
|
-
import defaultTemplates from
|
|
10
|
+
import RefinementList from "../../components/RefinementList/RefinementList.js";
|
|
11
|
+
import connectRefinementList from "../../connectors/refinement-list/connectRefinementList.js";
|
|
12
|
+
import { prepareTemplateProps, getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
13
|
+
import { component } from "../../lib/suit.js";
|
|
14
|
+
import searchBoxDefaultTemplates from "../search-box/defaultTemplates.js";
|
|
15
|
+
import defaultTemplates from "./defaultTemplates.js";
|
|
16
16
|
var withUsage = createDocumentationMessageGenerator({
|
|
17
17
|
name: 'refinement-list'
|
|
18
18
|
});
|
|
@@ -7,11 +7,11 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
7
7
|
/** @jsx h */
|
|
8
8
|
import { h, render } from 'preact';
|
|
9
9
|
import cx from 'classnames';
|
|
10
|
-
import { getContainerNode, createDocumentationMessageGenerator } from
|
|
11
|
-
import { component } from
|
|
12
|
-
import connectRelevantSort from
|
|
13
|
-
import RelevantSort from
|
|
14
|
-
import defaultTemplates from
|
|
10
|
+
import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
11
|
+
import { component } from "../../lib/suit.js";
|
|
12
|
+
import connectRelevantSort from "../../connectors/relevant-sort/connectRelevantSort.js";
|
|
13
|
+
import RelevantSort from "../../components/RelevantSort/RelevantSort.js";
|
|
14
|
+
import defaultTemplates from "./defaultTemplates.js";
|
|
15
15
|
var withUsage = createDocumentationMessageGenerator({
|
|
16
16
|
name: 'relevant-sort'
|
|
17
17
|
});
|
|
@@ -7,11 +7,11 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
7
7
|
/** @jsx h */
|
|
8
8
|
import { h, render } from 'preact';
|
|
9
9
|
import cx from 'classnames';
|
|
10
|
-
import { getContainerNode, createDocumentationMessageGenerator } from
|
|
11
|
-
import { component } from
|
|
12
|
-
import connectSearchBox from
|
|
13
|
-
import SearchBox from
|
|
14
|
-
import defaultTemplates from
|
|
10
|
+
import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
|
|
11
|
+
import { component } from "../../lib/suit.js";
|
|
12
|
+
import connectSearchBox from "../../connectors/search-box/connectSearchBox.js";
|
|
13
|
+
import SearchBox from "../../components/SearchBox/SearchBox.js";
|
|
14
|
+
import defaultTemplates from "./defaultTemplates.js";
|
|
15
15
|
var withUsage = createDocumentationMessageGenerator({
|
|
16
16
|
name: 'search-box'
|
|
17
17
|
});
|