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.
Files changed (189) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/cjs/components/CurrentRefinements/CurrentRefinements.js +0 -1
  3. package/cjs/components/GeoSearchControls/GeoSearchButton.js +0 -1
  4. package/cjs/components/GeoSearchControls/GeoSearchToggle.js +0 -1
  5. package/cjs/components/PoweredBy/PoweredBy.js +0 -1
  6. package/cjs/components/QueryRuleCustomData/QueryRuleCustomData.js +0 -1
  7. package/cjs/components/RelevantSort/RelevantSort.js +0 -1
  8. package/cjs/components/Selector/Selector.js +0 -1
  9. package/cjs/components/Template/Template.js +3 -1
  10. package/cjs/components/VoiceSearch/VoiceSearch.js +0 -1
  11. package/cjs/helpers/components/Highlight.js +5 -13
  12. package/cjs/helpers/components/ReverseHighlight.js +5 -13
  13. package/cjs/helpers/components/ReverseSnippet.js +5 -13
  14. package/cjs/helpers/components/Snippet.js +5 -13
  15. package/cjs/lib/insights/listener.js +0 -1
  16. package/cjs/lib/templating/index.js +31 -0
  17. package/cjs/lib/{utils → templating}/prepareTemplateProps.js +1 -1
  18. package/cjs/lib/{utils → templating}/renderTemplate.js +2 -2
  19. package/cjs/lib/utils/index.js +0 -26
  20. package/cjs/lib/version.js +1 -1
  21. package/cjs/widgets/answers/answers.js +3 -1
  22. package/cjs/widgets/breadcrumb/breadcrumb.js +3 -1
  23. package/cjs/widgets/clear-refinements/clear-refinements.js +3 -1
  24. package/cjs/widgets/geo-search/GeoSearchRenderer.js +1 -1
  25. package/cjs/widgets/geo-search/defaultTemplates.js +0 -1
  26. package/cjs/widgets/geo-search/geo-search.js +3 -1
  27. package/cjs/widgets/hierarchical-menu/defaultTemplates.js +0 -1
  28. package/cjs/widgets/hierarchical-menu/hierarchical-menu.js +3 -1
  29. package/cjs/widgets/hits/hits.js +6 -4
  30. package/cjs/widgets/infinite-hits/infinite-hits.js +6 -4
  31. package/cjs/widgets/menu/defaultTemplates.js +0 -1
  32. package/cjs/widgets/menu/menu.js +3 -1
  33. package/cjs/widgets/menu-select/menu-select.js +3 -1
  34. package/cjs/widgets/numeric-menu/defaultTemplates.js +0 -1
  35. package/cjs/widgets/numeric-menu/numeric-menu.js +3 -1
  36. package/cjs/widgets/range-input/range-input.js +3 -1
  37. package/cjs/widgets/rating-menu/defaultTemplates.js +0 -1
  38. package/cjs/widgets/rating-menu/rating-menu.js +3 -1
  39. package/cjs/widgets/refinement-list/defaultTemplates.js +0 -1
  40. package/cjs/widgets/refinement-list/refinement-list.js +4 -2
  41. package/cjs/widgets/search-box/defaultTemplates.js +0 -1
  42. package/cjs/widgets/stats/stats.js +3 -1
  43. package/cjs/widgets/toggle-refinement/toggle-refinement.js +3 -1
  44. package/cjs/widgets/voice-search/defaultTemplates.js +0 -1
  45. package/dist/instantsearch.development.js +7180 -7210
  46. package/dist/instantsearch.development.js.map +1 -1
  47. package/dist/instantsearch.production.min.js +2 -2
  48. package/dist/instantsearch.production.min.js.map +1 -1
  49. package/es/components/Answers/Answers.d.ts +1 -1
  50. package/es/components/Answers/Answers.js +0 -1
  51. package/es/components/Breadcrumb/Breadcrumb.d.ts +2 -2
  52. package/es/components/Breadcrumb/Breadcrumb.js +0 -1
  53. package/es/components/ClearRefinements/ClearRefinements.d.ts +2 -2
  54. package/es/components/ClearRefinements/ClearRefinements.js +0 -1
  55. package/es/components/CurrentRefinements/CurrentRefinements.d.ts +1 -1
  56. package/es/components/CurrentRefinements/CurrentRefinements.js +0 -1
  57. package/es/components/GeoSearchControls/GeoSearchButton.d.ts +1 -1
  58. package/es/components/GeoSearchControls/GeoSearchButton.js +0 -1
  59. package/es/components/GeoSearchControls/GeoSearchControls.d.ts +2 -2
  60. package/es/components/GeoSearchControls/GeoSearchControls.js +0 -1
  61. package/es/components/GeoSearchControls/GeoSearchToggle.d.ts +1 -1
  62. package/es/components/GeoSearchControls/GeoSearchToggle.js +0 -1
  63. package/es/components/Highlight/Highlight.js +0 -1
  64. package/es/components/Hits/Hits.d.ts +3 -2
  65. package/es/components/Hits/Hits.js +0 -1
  66. package/es/components/InfiniteHits/InfiniteHits.d.ts +1 -1
  67. package/es/components/InfiniteHits/InfiniteHits.js +0 -1
  68. package/es/components/MenuSelect/MenuSelect.d.ts +1 -1
  69. package/es/components/MenuSelect/MenuSelect.js +0 -1
  70. package/es/components/Pagination/Pagination.d.ts +1 -1
  71. package/es/components/Pagination/Pagination.js +0 -1
  72. package/es/components/Panel/Panel.d.ts +1 -1
  73. package/es/components/Panel/Panel.js +0 -1
  74. package/es/components/PoweredBy/PoweredBy.d.ts +1 -1
  75. package/es/components/PoweredBy/PoweredBy.js +0 -1
  76. package/es/components/QueryRuleCustomData/QueryRuleCustomData.d.ts +1 -1
  77. package/es/components/QueryRuleCustomData/QueryRuleCustomData.js +0 -1
  78. package/es/components/RangeInput/RangeInput.d.ts +1 -1
  79. package/es/components/RangeInput/RangeInput.js +0 -1
  80. package/es/components/RefinementList/RefinementList.d.ts +2 -2
  81. package/es/components/RefinementList/RefinementList.js +0 -1
  82. package/es/components/RefinementList/RefinementListItem.d.ts +1 -1
  83. package/es/components/RefinementList/RefinementListItem.js +0 -1
  84. package/es/components/RelevantSort/RelevantSort.d.ts +1 -1
  85. package/es/components/RelevantSort/RelevantSort.js +0 -1
  86. package/es/components/ReverseHighlight/ReverseHighlight.js +0 -1
  87. package/es/components/ReverseSnippet/ReverseSnippet.js +0 -1
  88. package/es/components/SearchBox/SearchBox.d.ts +1 -1
  89. package/es/components/SearchBox/SearchBox.js +0 -1
  90. package/es/components/Selector/Selector.d.ts +1 -1
  91. package/es/components/Selector/Selector.js +0 -1
  92. package/es/components/Slider/Pit.d.ts +1 -1
  93. package/es/components/Slider/Pit.js +0 -1
  94. package/es/components/Slider/Rheostat.d.ts +1 -1
  95. package/es/components/Slider/Rheostat.js +0 -2
  96. package/es/components/Slider/Slider.d.ts +1 -1
  97. package/es/components/Slider/Slider.js +0 -1
  98. package/es/components/Snippet/Snippet.js +0 -1
  99. package/es/components/Stats/Stats.d.ts +1 -1
  100. package/es/components/Stats/Stats.js +0 -1
  101. package/es/components/Template/Template.d.ts +3 -2
  102. package/es/components/Template/Template.js +2 -2
  103. package/es/components/ToggleRefinement/ToggleRefinement.d.ts +2 -2
  104. package/es/components/ToggleRefinement/ToggleRefinement.js +0 -1
  105. package/es/components/VoiceSearch/VoiceSearch.d.ts +1 -1
  106. package/es/components/VoiceSearch/VoiceSearch.js +0 -1
  107. package/es/helpers/components/Highlight.d.ts +1 -1
  108. package/es/helpers/components/Highlight.js +2 -8
  109. package/es/helpers/components/ReverseHighlight.d.ts +1 -1
  110. package/es/helpers/components/ReverseHighlight.js +2 -8
  111. package/es/helpers/components/ReverseSnippet.d.ts +1 -1
  112. package/es/helpers/components/ReverseSnippet.js +2 -8
  113. package/es/helpers/components/Snippet.d.ts +1 -1
  114. package/es/helpers/components/Snippet.js +2 -8
  115. package/es/lib/insights/listener.d.ts +1 -1
  116. package/es/lib/insights/listener.js +0 -1
  117. package/es/lib/templating/index.d.ts +2 -0
  118. package/es/lib/templating/index.js +2 -0
  119. package/es/lib/{utils → templating}/prepareTemplateProps.d.ts +0 -0
  120. package/es/lib/{utils → templating}/prepareTemplateProps.js +1 -1
  121. package/es/lib/{utils → templating}/renderTemplate.d.ts +1 -1
  122. package/es/lib/{utils → templating}/renderTemplate.js +1 -1
  123. package/es/lib/utils/index.d.ts +0 -2
  124. package/es/lib/utils/index.js +0 -2
  125. package/es/lib/version.d.ts +1 -1
  126. package/es/lib/version.js +1 -1
  127. package/es/widgets/answers/answers.d.ts +1 -1
  128. package/es/widgets/answers/answers.js +2 -2
  129. package/es/widgets/breadcrumb/breadcrumb.d.ts +1 -1
  130. package/es/widgets/breadcrumb/breadcrumb.js +2 -2
  131. package/es/widgets/clear-refinements/clear-refinements.d.ts +1 -1
  132. package/es/widgets/clear-refinements/clear-refinements.js +2 -2
  133. package/es/widgets/current-refinements/current-refinements.d.ts +1 -1
  134. package/es/widgets/current-refinements/current-refinements.js +0 -1
  135. package/es/widgets/geo-search/GeoSearchRenderer.js +1 -2
  136. package/es/widgets/geo-search/createHTMLMarker.d.ts +1 -1
  137. package/es/widgets/geo-search/defaultTemplates.d.ts +1 -1
  138. package/es/widgets/geo-search/defaultTemplates.js +0 -1
  139. package/es/widgets/geo-search/geo-search.js +2 -1
  140. package/es/widgets/hierarchical-menu/defaultTemplates.js +0 -1
  141. package/es/widgets/hierarchical-menu/hierarchical-menu.d.ts +1 -1
  142. package/es/widgets/hierarchical-menu/hierarchical-menu.js +2 -2
  143. package/es/widgets/hits/hits.d.ts +1 -1
  144. package/es/widgets/hits/hits.js +2 -2
  145. package/es/widgets/hits-per-page/hits-per-page.d.ts +1 -1
  146. package/es/widgets/hits-per-page/hits-per-page.js +0 -1
  147. package/es/widgets/infinite-hits/infinite-hits.d.ts +1 -1
  148. package/es/widgets/infinite-hits/infinite-hits.js +2 -2
  149. package/es/widgets/menu/defaultTemplates.js +0 -1
  150. package/es/widgets/menu/menu.d.ts +1 -1
  151. package/es/widgets/menu/menu.js +2 -2
  152. package/es/widgets/menu-select/menu-select.d.ts +1 -1
  153. package/es/widgets/menu-select/menu-select.js +2 -2
  154. package/es/widgets/numeric-menu/defaultTemplates.js +0 -1
  155. package/es/widgets/numeric-menu/numeric-menu.d.ts +1 -1
  156. package/es/widgets/numeric-menu/numeric-menu.js +2 -2
  157. package/es/widgets/pagination/pagination.d.ts +1 -1
  158. package/es/widgets/pagination/pagination.js +0 -1
  159. package/es/widgets/panel/panel.d.ts +1 -1
  160. package/es/widgets/panel/panel.js +0 -1
  161. package/es/widgets/powered-by/powered-by.d.ts +1 -1
  162. package/es/widgets/powered-by/powered-by.js +0 -1
  163. package/es/widgets/query-rule-custom-data/query-rule-custom-data.d.ts +1 -1
  164. package/es/widgets/query-rule-custom-data/query-rule-custom-data.js +0 -1
  165. package/es/widgets/range-input/range-input.d.ts +1 -1
  166. package/es/widgets/range-input/range-input.js +2 -2
  167. package/es/widgets/range-slider/range-slider.d.ts +1 -1
  168. package/es/widgets/range-slider/range-slider.js +0 -1
  169. package/es/widgets/rating-menu/defaultTemplates.js +0 -1
  170. package/es/widgets/rating-menu/rating-menu.d.ts +1 -1
  171. package/es/widgets/rating-menu/rating-menu.js +2 -2
  172. package/es/widgets/refinement-list/defaultTemplates.js +0 -1
  173. package/es/widgets/refinement-list/refinement-list.d.ts +1 -1
  174. package/es/widgets/refinement-list/refinement-list.js +2 -2
  175. package/es/widgets/relevant-sort/relevant-sort.d.ts +1 -1
  176. package/es/widgets/relevant-sort/relevant-sort.js +0 -1
  177. package/es/widgets/search-box/defaultTemplates.js +0 -1
  178. package/es/widgets/search-box/search-box.d.ts +1 -1
  179. package/es/widgets/search-box/search-box.js +0 -1
  180. package/es/widgets/sort-by/sort-by.d.ts +1 -1
  181. package/es/widgets/sort-by/sort-by.js +0 -1
  182. package/es/widgets/stats/stats.d.ts +1 -1
  183. package/es/widgets/stats/stats.js +2 -2
  184. package/es/widgets/toggle-refinement/toggle-refinement.d.ts +1 -1
  185. package/es/widgets/toggle-refinement/toggle-refinement.js +2 -2
  186. package/es/widgets/voice-search/defaultTemplates.js +0 -1
  187. package/es/widgets/voice-search/voice-search.d.ts +1 -1
  188. package/es/widgets/voice-search/voice-search.js +0 -1
  189. package/package.json +4 -4
@@ -1,4 +1,4 @@
1
- /** @jsx h */
1
+
2
2
  import { h } from 'preact';
3
3
  import type { InsightsClient } from '../../types';
4
4
  import type { InsightsEvent } from '../../middlewares/createInsightsMiddleware';
@@ -1,4 +1,3 @@
1
- /** @jsx h */
2
1
  import { h } from 'preact';
3
2
  import { deserializePayload } from "../utils/index.js";
4
3
  import { readDataAttributes, hasDataAttributes } from "../../helpers/insights.js";
@@ -0,0 +1,2 @@
1
+ export * from './prepareTemplateProps';
2
+ export * from './renderTemplate';
@@ -0,0 +1,2 @@
1
+ export * from "./prepareTemplateProps.js";
2
+ export * from "./renderTemplate.js";
@@ -16,7 +16,7 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
16
16
 
17
17
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
18
18
 
19
- import { uniq } from "./uniq.js";
19
+ import { uniq } from "../utils/uniq.js";
20
20
 
21
21
  function prepareTemplates( // can not use = {} here, since the template could have different constraints
22
22
  defaultTemplates) {
@@ -1,6 +1,6 @@
1
1
  import type { HoganOptions } from 'hogan.js';
2
2
  import type { Templates, HoganHelpers } from '../../types';
3
- import type { BindEventForHits, SendEventForHits } from './createSendEventForHits';
3
+ import type { BindEventForHits, SendEventForHits } from '../utils/createSendEventForHits';
4
4
  export declare function renderTemplate({ templates, templateKey, compileOptions, helpers, data, bindEvent, sendEvent, }: {
5
5
  templates: Templates;
6
6
  templateKey: string;
@@ -7,8 +7,8 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
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
9
  import hogan from 'hogan.js';
10
- import { Highlight, ReverseHighlight, ReverseSnippet, Snippet } from "../../helpers/components/index.js";
11
10
  import { html } from 'htm/preact';
11
+ import { Highlight, ReverseHighlight, ReverseSnippet, Snippet } from "../../helpers/components/index.js";
12
12
 
13
13
  // We add all our template helper methods to the template as lambdas. Note
14
14
  // that lambdas in Mustache are supposed to accept a second argument of
@@ -37,9 +37,7 @@ export * from './isSpecialClick';
37
37
  export * from './logger';
38
38
  export * from './mergeSearchParameters';
39
39
  export * from './noop';
40
- export * from './prepareTemplateProps';
41
40
  export * from './range';
42
- export * from './renderTemplate';
43
41
  export * from './resolveSearchParameters';
44
42
  export * from './reverseHighlightedParts';
45
43
  export * from './safelyRunOnBrowser';
@@ -37,9 +37,7 @@ export * from "./isSpecialClick.js";
37
37
  export * from "./logger.js";
38
38
  export * from "./mergeSearchParameters.js";
39
39
  export * from "./noop.js";
40
- export * from "./prepareTemplateProps.js";
41
40
  export * from "./range.js";
42
- export * from "./renderTemplate.js";
43
41
  export * from "./resolveSearchParameters.js";
44
42
  export * from "./reverseHighlightedParts.js";
45
43
  export * from "./safelyRunOnBrowser.js";
@@ -1,2 +1,2 @@
1
- declare const _default: "4.46.1";
1
+ declare const _default: "4.46.2";
2
2
  export default _default;
package/es/lib/version.js CHANGED
@@ -1 +1 @@
1
- export default '4.46.1';
1
+ export default '4.46.2';
@@ -1,4 +1,4 @@
1
- /** @jsx h */
1
+
2
2
  import type { WidgetFactory, Template, Hit } from '../../types';
3
3
  import type { AnswersConnectorParams, AnswersWidgetDescription } from '../../connectors/answers/connectAnswers';
4
4
  export declare type AnswersTemplates = Partial<{
@@ -4,11 +4,11 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
 
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
- /** @jsx h */
8
7
  import { h, render } from 'preact';
9
8
  import cx from 'classnames';
10
9
  import defaultTemplates from "./defaultTemplates.js";
11
- import { createDocumentationMessageGenerator, getContainerNode, prepareTemplateProps } from "../../lib/utils/index.js";
10
+ import { createDocumentationMessageGenerator, getContainerNode } from "../../lib/utils/index.js";
11
+ import { prepareTemplateProps } from "../../lib/templating/index.js";
12
12
  import { component } from "../../lib/suit.js";
13
13
  import Answers from "../../components/Answers/Answers.js";
14
14
  import connectAnswers from "../../connectors/answers/connectAnswers.js";
@@ -1,4 +1,4 @@
1
- /** @jsx h */
1
+
2
2
  import type { BreadcrumbWidgetDescription, BreadcrumbConnectorParams } from '../../connectors/breadcrumb/connectBreadcrumb';
3
3
  import type { WidgetFactory, Template } from '../../types';
4
4
  export declare type BreadcrumbCSSClasses = Partial<{
@@ -4,13 +4,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
 
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
- /** @jsx h */
8
7
  import { h, render } from 'preact';
9
8
  import cx from 'classnames';
10
9
  import Breadcrumb from "../../components/Breadcrumb/Breadcrumb.js";
11
10
  import connectBreadcrumb from "../../connectors/breadcrumb/connectBreadcrumb.js";
12
11
  import defaultTemplates from "./defaultTemplates.js";
13
- import { getContainerNode, prepareTemplateProps, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
12
+ import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
13
+ import { prepareTemplateProps } from "../../lib/templating/index.js";
14
14
  import { component } from "../../lib/suit.js";
15
15
  var withUsage = createDocumentationMessageGenerator({
16
16
  name: 'breadcrumb'
@@ -1,4 +1,4 @@
1
- /** @jsx h */
1
+
2
2
  import type { ClearRefinementsConnectorParams, ClearRefinementsWidgetDescription } from '../../connectors/clear-refinements/connectClearRefinements';
3
3
  import type { WidgetFactory, Template } from '../../types';
4
4
  export declare type ClearRefinementsCSSClasses = Partial<{
@@ -4,13 +4,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
 
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
- /** @jsx h */
8
7
  import { h, render } from 'preact';
9
8
  import ClearRefinements from "../../components/ClearRefinements/ClearRefinements.js";
10
9
  import cx from 'classnames';
11
10
  import connectClearRefinements from "../../connectors/clear-refinements/connectClearRefinements.js";
12
11
  import defaultTemplates from "./defaultTemplates.js";
13
- import { getContainerNode, prepareTemplateProps, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
12
+ import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
13
+ import { prepareTemplateProps } from "../../lib/templating/index.js";
14
14
  import { component } from "../../lib/suit.js";
15
15
  var withUsage = createDocumentationMessageGenerator({
16
16
  name: 'clear-refinements'
@@ -1,4 +1,4 @@
1
- /** @jsx h */
1
+
2
2
  import type { CurrentRefinementsConnectorParams, CurrentRefinementsWidgetDescription } from '../../connectors/current-refinements/connectCurrentRefinements';
3
3
  import type { WidgetFactory } from '../../types';
4
4
  export declare type CurrentRefinementsCSSClasses = Partial<{
@@ -4,7 +4,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
 
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
- /** @jsx h */
8
7
  import { h, render } from 'preact';
9
8
  import cx from 'classnames';
10
9
  import CurrentRefinements from "../../components/CurrentRefinements/CurrentRefinements.js";
@@ -16,9 +16,8 @@ function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(
16
16
 
17
17
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
18
18
 
19
- /** @jsx h */
20
19
  import { h, render } from 'preact';
21
- import { prepareTemplateProps } from "../../lib/utils/index.js";
20
+ import { prepareTemplateProps } from "../../lib/templating/index.js";
22
21
  import GeoSearchControls from "../../components/GeoSearchControls/GeoSearchControls.js";
23
22
 
24
23
  var refineWithMap = function refineWithMap(_ref) {
@@ -1,5 +1,5 @@
1
1
  /// <reference types="google.maps" />
2
- import type { renderTemplate } from '../../lib/utils';
2
+ import type { renderTemplate } from '../../lib/templating';
3
3
  export declare type HTMLMarkerArguments = {
4
4
  __id: string;
5
5
  position: google.maps.LatLngLiteral;
@@ -1,4 +1,4 @@
1
- /** @jsx h */
1
+
2
2
  import type { GeoSearchComponentTemplates } from './geo-search';
3
3
  declare const defaultTemplates: GeoSearchComponentTemplates;
4
4
  export default defaultTemplates;
@@ -1,4 +1,3 @@
1
- /** @jsx h */
2
1
  import { h } from 'preact';
3
2
 
4
3
  var _ref = h("p", null, "Your custom HTML Marker");
@@ -13,7 +13,8 @@ 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 "../../lib/utils/index.js";
16
+ import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
17
+ import { renderTemplate } from "../../lib/templating/index.js";
17
18
  import { component } from "../../lib/suit.js";
18
19
  import connectGeoSearch from "../../connectors/geo-search/connectGeoSearch.js";
19
20
  import renderer from "./GeoSearchRenderer.js";
@@ -1,4 +1,3 @@
1
- /** @jsx h */
2
1
  import { h } from 'preact';
3
2
  import { formatNumber } from "../../lib/formatNumber.js";
4
3
  import { cx } from "../../lib/utils/index.js";
@@ -1,4 +1,4 @@
1
- /** @jsx h */
1
+
2
2
  import type { HierarchicalMenuItem, HierarchicalMenuConnectorParams, HierarchicalMenuWidgetDescription } from '../../connectors/hierarchical-menu/connectHierarchicalMenu';
3
3
  import type { TransformItems, Template, WidgetFactory, SortBy, ComponentCSSClasses } from '../../types';
4
4
  declare type HierarchicalMenuTemplates = Partial<{
@@ -4,13 +4,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
 
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
- /** @jsx h */
8
7
  import { h, render } from 'preact';
9
8
  import cx from 'classnames';
10
9
  import RefinementList from "../../components/RefinementList/RefinementList.js";
11
10
  import connectHierarchicalMenu from "../../connectors/hierarchical-menu/connectHierarchicalMenu.js";
12
11
  import defaultTemplates from "./defaultTemplates.js";
13
- import { prepareTemplateProps, getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
12
+ import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
13
+ import { prepareTemplateProps } from "../../lib/templating/index.js";
14
14
  import { component } from "../../lib/suit.js";
15
15
  var withUsage = createDocumentationMessageGenerator({
16
16
  name: 'hierarchical-menu'
@@ -1,4 +1,4 @@
1
- /** @jsx h */
1
+
2
2
  import type { HitsConnectorParams, HitsWidgetDescription } from '../../connectors/hits/connectHits';
3
3
  import type { Template, TemplateWithBindEvent, Hit, WidgetFactory } from '../../types';
4
4
  import type { SearchResults } from 'algoliasearch-helper';
@@ -4,13 +4,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
 
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
- /** @jsx h */
8
7
  import { h, render } from 'preact';
9
8
  import cx from 'classnames';
10
9
  import connectHits from "../../connectors/hits/connectHits.js";
11
10
  import Hits from "../../components/Hits/Hits.js";
12
11
  import defaultTemplates from "./defaultTemplates.js";
13
- import { prepareTemplateProps, getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
12
+ import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
13
+ import { prepareTemplateProps } from "../../lib/templating/index.js";
14
14
  import { component } from "../../lib/suit.js";
15
15
  import { withInsights, withInsightsListener } from "../../lib/insights/index.js";
16
16
  var withUsage = createDocumentationMessageGenerator({
@@ -1,4 +1,4 @@
1
- /** @jsx h */
1
+
2
2
  import type { HitsPerPageConnectorParams, HitsPerPageWidgetDescription } from '../../connectors/hits-per-page/connectHitsPerPage';
3
3
  import type { WidgetFactory } from '../../types';
4
4
  export declare type HitsPerPageCSSClasses = Partial<{
@@ -4,7 +4,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
 
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
- /** @jsx h */
8
7
  import { h, render } from 'preact';
9
8
  import cx from 'classnames';
10
9
  import Selector from "../../components/Selector/Selector.js";
@@ -1,4 +1,4 @@
1
- /** @jsx h */
1
+
2
2
  import type { SearchResults } from 'algoliasearch-helper';
3
3
  import type { InfiniteHitsConnectorParams, InfiniteHitsCache, InfiniteHitsWidgetDescription } from '../../connectors/infinite-hits/connectInfiniteHits';
4
4
  import type { WidgetFactory, Template, TemplateWithBindEvent, Hit } from '../../types';
@@ -4,12 +4,12 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
 
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
- /** @jsx h */
8
7
  import { h, render } from 'preact';
9
8
  import cx from 'classnames';
10
9
  import InfiniteHits from "../../components/InfiniteHits/InfiniteHits.js";
11
10
  import connectInfiniteHits from "../../connectors/infinite-hits/connectInfiniteHits.js";
12
- import { prepareTemplateProps, getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
11
+ import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
12
+ import { prepareTemplateProps } from "../../lib/templating/index.js";
13
13
  import { component } from "../../lib/suit.js";
14
14
  import { withInsights, withInsightsListener } from "../../lib/insights/index.js";
15
15
  import defaultTemplates from "./defaultTemplates.js";
@@ -1,4 +1,3 @@
1
- /** @jsx h */
2
1
  import { h } from 'preact';
3
2
  import { formatNumber } from "../../lib/formatNumber.js";
4
3
  import { cx } from "../../lib/utils/index.js";
@@ -1,4 +1,4 @@
1
- /** @jsx h */
1
+
2
2
  import type { MenuConnectorParams, MenuWidgetDescription } from '../../connectors/menu/connectMenu';
3
3
  import type { ComponentCSSClasses, Template, WidgetFactory } from '../../types';
4
4
  export declare type MenuCSSClasses = Partial<{
@@ -4,13 +4,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
 
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
- /** @jsx h */
8
7
  import { h, render } from 'preact';
9
8
  import cx from 'classnames';
10
9
  import RefinementList from "../../components/RefinementList/RefinementList.js";
11
10
  import connectMenu from "../../connectors/menu/connectMenu.js";
12
11
  import defaultTemplates from "./defaultTemplates.js";
13
- import { prepareTemplateProps, getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
12
+ import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
13
+ import { prepareTemplateProps } from "../../lib/templating/index.js";
14
14
  import { component } from "../../lib/suit.js";
15
15
  var withUsage = createDocumentationMessageGenerator({
16
16
  name: 'menu'
@@ -1,4 +1,4 @@
1
- /** @jsx h */
1
+
2
2
  import type { MenuConnectorParams, MenuWidgetDescription } from '../../connectors/menu/connectMenu';
3
3
  import type { Template, WidgetFactory } from '../../types';
4
4
  export declare type MenuSelectCSSClasses = Partial<{
@@ -4,13 +4,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
 
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
- /** @jsx h */
8
7
  import { h, render } from 'preact';
9
8
  import cx from 'classnames';
10
9
  import connectMenu from "../../connectors/menu/connectMenu.js";
11
10
  import MenuSelect from "../../components/MenuSelect/MenuSelect.js";
12
11
  import defaultTemplates from "./defaultTemplates.js";
13
- import { prepareTemplateProps, getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
12
+ import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
13
+ import { prepareTemplateProps } from "../../lib/templating/index.js";
14
14
  import { component } from "../../lib/suit.js";
15
15
  var withUsage = createDocumentationMessageGenerator({
16
16
  name: 'menu-select'
@@ -1,4 +1,3 @@
1
- /** @jsx h */
2
1
  import { h } from 'preact';
3
2
  var defaultTemplates = {
4
3
  item: function item(_ref) {
@@ -1,4 +1,4 @@
1
- /** @jsx h */
1
+
2
2
  import type { NumericMenuConnectorParams, NumericMenuWidgetDescription } from '../../connectors/numeric-menu/connectNumericMenu';
3
3
  import type { ComponentCSSClasses, Template, WidgetFactory } from '../../types';
4
4
  export declare type NumericMenuCSSClasses = Partial<{
@@ -4,14 +4,14 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
 
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
- /** @jsx h */
8
7
  import { h, render } from 'preact';
9
8
  import cx from 'classnames';
10
9
  import RefinementList from "../../components/RefinementList/RefinementList.js";
11
10
  import connectNumericMenu from "../../connectors/numeric-menu/connectNumericMenu.js";
12
11
  import defaultTemplates from "./defaultTemplates.js";
13
- import { prepareTemplateProps, getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
12
+ import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
14
13
  import { component } from "../../lib/suit.js";
14
+ import { prepareTemplateProps } from "../../lib/templating/index.js";
15
15
  var withUsage = createDocumentationMessageGenerator({
16
16
  name: 'numeric-menu'
17
17
  });
@@ -1,4 +1,4 @@
1
- /** @jsx h */
1
+
2
2
  import type { PaginationConnectorParams, PaginationWidgetDescription } from '../../connectors/pagination/connectPagination';
3
3
  import type { WidgetFactory } from '../../types';
4
4
  export declare type PaginationCSSClasses = Partial<{
@@ -4,7 +4,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
 
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
- /** @jsx h */
8
7
  import { h, render } from 'preact';
9
8
  import cx from 'classnames';
10
9
  import Pagination from "../../components/Pagination/Pagination.js";
@@ -1,4 +1,4 @@
1
- /** @jsx h */
1
+
2
2
  import type { Template, RenderOptions, WidgetFactory, InitOptions, Widget } from '../../types';
3
3
  export declare type PanelCSSClasses = Partial<{
4
4
  /**
@@ -4,7 +4,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
 
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
- /** @jsx h */
8
7
  import { h, render } from 'preact';
9
8
  import cx from 'classnames';
10
9
  import { createDocumentationMessageGenerator, getContainerNode, getObjectType, warning } from "../../lib/utils/index.js";
@@ -1,4 +1,4 @@
1
- /** @jsx h */
1
+
2
2
  import type { PoweredByConnectorParams, PoweredByWidgetDescription } from '../../connectors/powered-by/connectPoweredBy';
3
3
  import type { WidgetFactory } from '../../types';
4
4
  export declare type PoweredByCSSClasses = Partial<{
@@ -4,7 +4,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
 
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
- /** @jsx h */
8
7
  import { h, render } from 'preact';
9
8
  import cx from 'classnames';
10
9
  import PoweredBy from "../../components/PoweredBy/PoweredBy.js";
@@ -1,4 +1,4 @@
1
- /** @jsx h */
1
+
2
2
  import type { WidgetFactory, Template } from '../../types';
3
3
  import type { QueryRulesConnectorParams, QueryRulesWidgetDescription } from '../../connectors/query-rules/connectQueryRules';
4
4
  import type { QueryRuleCustomDataComponentTemplates } from '../../components/QueryRuleCustomData/QueryRuleCustomData';
@@ -4,7 +4,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
 
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
- /** @jsx h */
8
7
  import { h, render } from 'preact';
9
8
  import cx from 'classnames';
10
9
  import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
@@ -1,4 +1,4 @@
1
- /** @jsx h */
1
+
2
2
  import type { RangeConnectorParams, RangeWidgetDescription } from '../../connectors/range/connectRange';
3
3
  import type { Template, WidgetFactory } from '../../types';
4
4
  export declare type RangeInputTemplates = Partial<{
@@ -16,12 +16,12 @@ function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(
16
16
 
17
17
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
18
18
 
19
- /** @jsx h */
20
19
  import { h, render } from 'preact';
21
20
  import cx from 'classnames';
22
21
  import RangeInput from "../../components/RangeInput/RangeInput.js";
23
22
  import connectRange from "../../connectors/range/connectRange.js";
24
- import { prepareTemplateProps, getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
23
+ import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
24
+ import { prepareTemplateProps } from "../../lib/templating/index.js";
25
25
  import { component } from "../../lib/suit.js";
26
26
  var withUsage = createDocumentationMessageGenerator({
27
27
  name: 'range-input'
@@ -1,4 +1,4 @@
1
- /** @jsx h */
1
+
2
2
  import type { RangeConnectorParams, RangeWidgetDescription } from '../../connectors/range/connectRange';
3
3
  import type { WidgetFactory } from '../../types';
4
4
  export declare type RangeSliderCssClasses = Partial<{
@@ -16,7 +16,6 @@ function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(
16
16
 
17
17
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
18
18
 
19
- /** @jsx h */
20
19
  import { h, render } from 'preact';
21
20
  import cx from 'classnames';
22
21
  import Slider from "../../components/Slider/Slider.js";
@@ -1,4 +1,3 @@
1
- /** @jsx h */
2
1
  import { h } from 'preact';
3
2
  import { formatNumber } from "../../lib/formatNumber.js";
4
3
  import { cx } from "../../lib/utils/index.js";
@@ -1,4 +1,4 @@
1
- /** @jsx h */
1
+
2
2
  import type { RatingMenuWidgetDescription, RatingMenuConnectorParams } from '../../connectors/rating-menu/connectRatingMenu';
3
3
  import type { ComponentCSSClasses, Template, WidgetFactory } from '../../types';
4
4
  export declare type RatingMenuTemplates = Partial<{
@@ -4,13 +4,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
 
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
- /** @jsx h */
8
7
  import { h, render } from 'preact';
9
8
  import cx from 'classnames';
10
9
  import RefinementList from "../../components/RefinementList/RefinementList.js";
11
10
  import connectRatingMenu from "../../connectors/rating-menu/connectRatingMenu.js";
12
11
  import defaultTemplates from "./defaultTemplates.js";
13
- import { prepareTemplateProps, getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
12
+ import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
13
+ import { prepareTemplateProps } from "../../lib/templating/index.js";
14
14
  import { component } from "../../lib/suit.js";
15
15
  var withUsage = createDocumentationMessageGenerator({
16
16
  name: 'rating-menu'
@@ -1,4 +1,3 @@
1
- /** @jsx h */
2
1
  import { h } from 'preact';
3
2
  import { formatNumber } from "../../lib/formatNumber.js";
4
3
  import { cx } from "../../lib/utils/index.js";
@@ -1,4 +1,4 @@
1
- /** @jsx h */
1
+
2
2
  import type { RefinementListConnectorParams, RefinementListWidgetDescription } from '../../connectors/refinement-list/connectRefinementList';
3
3
  import type { Template, WidgetFactory } from '../../types';
4
4
  import type { SearchBoxTemplates } from '../search-box/search-box';
@@ -4,12 +4,12 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
 
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
- /** @jsx h */
8
7
  import { h, render } from 'preact';
9
8
  import cx from 'classnames';
10
9
  import RefinementList from "../../components/RefinementList/RefinementList.js";
11
10
  import connectRefinementList from "../../connectors/refinement-list/connectRefinementList.js";
12
- import { prepareTemplateProps, getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
11
+ import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
12
+ import { prepareTemplateProps } from "../../lib/templating/index.js";
13
13
  import { component } from "../../lib/suit.js";
14
14
  import searchBoxDefaultTemplates from "../search-box/defaultTemplates.js";
15
15
  import defaultTemplates from "./defaultTemplates.js";
@@ -1,4 +1,4 @@
1
- /** @jsx h */
1
+
2
2
  import type { WidgetFactory, Template } from '../../types';
3
3
  import type { RelevantSortConnectorParams, RelevantSortWidgetDescription } from '../../connectors/relevant-sort/connectRelevantSort';
4
4
  export declare type RelevantSortCSSClasses = Partial<{
@@ -4,7 +4,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
 
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
- /** @jsx h */
8
7
  import { h, render } from 'preact';
9
8
  import cx from 'classnames';
10
9
  import { getContainerNode, createDocumentationMessageGenerator } from "../../lib/utils/index.js";
@@ -1,4 +1,3 @@
1
- /** @jsx h */
2
1
  import { h } from 'preact';
3
2
 
4
3
  var _ref2 = h("path", {
@@ -1,4 +1,4 @@
1
- /** @jsx h */
1
+
2
2
  import type { WidgetFactory, Template } from '../../types';
3
3
  import type { SearchBoxConnectorParams, SearchBoxWidgetDescription } from '../../connectors/search-box/connectSearchBox';
4
4
  import type { SearchBoxComponentCSSClasses } from '../../components/SearchBox/SearchBox';