instantsearch.js 4.65.0 → 4.66.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/connectors/answers/connectAnswers.js +3 -0
- package/cjs/lib/version.js +1 -1
- package/cjs/widgets/answers/answers.js +4 -1
- package/cjs/widgets/hits/hits.js +66 -30
- package/cjs/widgets/places/places.js +3 -1
- package/dist/instantsearch.development.d.ts +5 -25
- package/dist/instantsearch.development.js +280 -253
- package/dist/instantsearch.development.js.map +1 -1
- package/dist/instantsearch.production.d.ts +5 -25
- package/dist/instantsearch.production.min.d.ts +5 -25
- package/dist/instantsearch.production.min.js +2 -2
- package/dist/instantsearch.production.min.js.map +1 -1
- package/es/connectors/answers/connectAnswers.d.ts +3 -0
- package/es/connectors/answers/connectAnswers.js +3 -0
- package/es/lib/version.d.ts +1 -1
- package/es/lib/version.js +1 -1
- package/es/widgets/answers/answers.d.ts +2 -2
- package/es/widgets/answers/answers.js +5 -2
- package/es/widgets/hits/defaultTemplates.d.ts +2 -2
- package/es/widgets/hits/hits.d.ts +2 -18
- package/es/widgets/hits/hits.js +67 -31
- package/es/widgets/places/places.d.ts +2 -6
- package/es/widgets/places/places.js +4 -1
- package/package.json +12 -10
- package/cjs/components/Hits/Hits.js +0 -72
- package/es/components/Hits/Hits.d.ts +0 -19
- package/es/components/Hits/Hits.js +0 -65
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! InstantSearch.js 4.
|
|
1
|
+
/*! InstantSearch.js 4.66.0 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -1825,6 +1825,9 @@
|
|
|
1825
1825
|
name: 'answers',
|
|
1826
1826
|
connector: true
|
|
1827
1827
|
});
|
|
1828
|
+
/**
|
|
1829
|
+
* @deprecated the answers service is no longer offered, and this widget will be removed in InstantSearch.js v5
|
|
1830
|
+
*/
|
|
1828
1831
|
var connectAnswers = function connectAnswers(renderFn) {
|
|
1829
1832
|
var unmountFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
|
|
1830
1833
|
checkRendering(renderFn, withUsage());
|
|
@@ -9702,7 +9705,8 @@
|
|
|
9702
9705
|
* @return {undefined} function mutates the item
|
|
9703
9706
|
*/
|
|
9704
9707
|
function setIsRefined(item, currentRefinement, depth) {
|
|
9705
|
-
item.isRefined =
|
|
9708
|
+
item.isRefined =
|
|
9709
|
+
item.name === (currentRefinement[depth] && currentRefinement[depth].trim());
|
|
9706
9710
|
if (item.data) {
|
|
9707
9711
|
item.data.forEach(function (child) {
|
|
9708
9712
|
setIsRefined(child, currentRefinement, depth + 1);
|
|
@@ -10103,7 +10107,7 @@
|
|
|
10103
10107
|
|
|
10104
10108
|
var SearchResults_1 = SearchResults;
|
|
10105
10109
|
|
|
10106
|
-
var version = '3.16.
|
|
10110
|
+
var version = '3.16.3';
|
|
10107
10111
|
|
|
10108
10112
|
var escapeFacetValue$4 = escapeFacetValue_1.escapeFacetValue;
|
|
10109
10113
|
|
|
@@ -14902,7 +14906,7 @@
|
|
|
14902
14906
|
};
|
|
14903
14907
|
}
|
|
14904
14908
|
|
|
14905
|
-
var version$1 = '4.
|
|
14909
|
+
var version$1 = '4.66.0';
|
|
14906
14910
|
|
|
14907
14911
|
var withUsage$r = createDocumentationMessageGenerator({
|
|
14908
14912
|
name: 'instantsearch'
|
|
@@ -15640,8 +15644,6 @@
|
|
|
15640
15644
|
Fragment: Fragment
|
|
15641
15645
|
});
|
|
15642
15646
|
return function Highlight(userProps) {
|
|
15643
|
-
// Not destructured in function signature, to make sure it's not exposed in
|
|
15644
|
-
// the type definition.
|
|
15645
15647
|
var parts = userProps.parts,
|
|
15646
15648
|
_userProps$highlighte = userProps.highlightedTagName,
|
|
15647
15649
|
highlightedTagName = _userProps$highlighte === void 0 ? 'mark' : _userProps$highlighte,
|
|
@@ -15674,6 +15676,46 @@
|
|
|
15674
15676
|
};
|
|
15675
15677
|
}
|
|
15676
15678
|
|
|
15679
|
+
var _excluded$a = ["classNames", "hits", "itemComponent", "sendEvent", "emptyComponent"];
|
|
15680
|
+
|
|
15681
|
+
// Should be imported from a shared package in the future
|
|
15682
|
+
|
|
15683
|
+
function createHitsComponent(_ref) {
|
|
15684
|
+
var createElement = _ref.createElement;
|
|
15685
|
+
return function Hits(userProps) {
|
|
15686
|
+
var _userProps$classNames = userProps.classNames,
|
|
15687
|
+
classNames = _userProps$classNames === void 0 ? {} : _userProps$classNames,
|
|
15688
|
+
hits = userProps.hits,
|
|
15689
|
+
ItemComponent = userProps.itemComponent,
|
|
15690
|
+
sendEvent = userProps.sendEvent,
|
|
15691
|
+
EmptyComponent = userProps.emptyComponent,
|
|
15692
|
+
props = _objectWithoutProperties$1(userProps, _excluded$a);
|
|
15693
|
+
if (hits.length === 0 && EmptyComponent) {
|
|
15694
|
+
return createElement(EmptyComponent, {
|
|
15695
|
+
className: cx('ais-Hits', classNames.root, cx('ais-Hits--empty', classNames.emptyRoot), props.className)
|
|
15696
|
+
});
|
|
15697
|
+
}
|
|
15698
|
+
return createElement("div", _extends$1({}, props, {
|
|
15699
|
+
className: cx('ais-Hits', classNames.root, hits.length === 0 && cx('ais-Hits--empty', classNames.emptyRoot), props.className)
|
|
15700
|
+
}), createElement("ol", {
|
|
15701
|
+
className: cx('ais-Hits-list', classNames.list)
|
|
15702
|
+
}, hits.map(function (hit, index) {
|
|
15703
|
+
return createElement(ItemComponent, {
|
|
15704
|
+
key: hit.objectID,
|
|
15705
|
+
hit: hit,
|
|
15706
|
+
index: index,
|
|
15707
|
+
className: cx('ais-Hits-item', classNames.item),
|
|
15708
|
+
onClick: function onClick() {
|
|
15709
|
+
sendEvent('click:internal', hit, 'Hit Clicked');
|
|
15710
|
+
},
|
|
15711
|
+
onAuxClick: function onAuxClick() {
|
|
15712
|
+
sendEvent('click:internal', hit, 'Hit Clicked');
|
|
15713
|
+
}
|
|
15714
|
+
});
|
|
15715
|
+
})));
|
|
15716
|
+
};
|
|
15717
|
+
}
|
|
15718
|
+
|
|
15677
15719
|
function prepareTemplates(
|
|
15678
15720
|
// can not use = {} here, since the template could have different constraints
|
|
15679
15721
|
defaultTemplates) {
|
|
@@ -16490,11 +16532,11 @@
|
|
|
16490
16532
|
Fragment: p
|
|
16491
16533
|
});
|
|
16492
16534
|
|
|
16493
|
-
var _excluded$
|
|
16535
|
+
var _excluded$b = ["classNames"];
|
|
16494
16536
|
function Highlight(_ref) {
|
|
16495
16537
|
var _ref$classNames = _ref.classNames,
|
|
16496
16538
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
16497
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
16539
|
+
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
16498
16540
|
return h(InternalHighlight, _extends({
|
|
16499
16541
|
classNames: {
|
|
16500
16542
|
root: cx('ais-Highlight', classNames.root),
|
|
@@ -16505,12 +16547,12 @@
|
|
|
16505
16547
|
}, props));
|
|
16506
16548
|
}
|
|
16507
16549
|
|
|
16508
|
-
var _excluded$
|
|
16550
|
+
var _excluded$c = ["hit", "attribute", "cssClasses"];
|
|
16509
16551
|
function Highlight$1(_ref) {
|
|
16510
16552
|
var hit = _ref.hit,
|
|
16511
16553
|
attribute = _ref.attribute,
|
|
16512
16554
|
cssClasses = _ref.cssClasses,
|
|
16513
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
16555
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
16514
16556
|
var property = getPropertyByPath(hit._highlightResult, attribute) || [];
|
|
16515
16557
|
var properties = toArray(property);
|
|
16516
16558
|
_warning(Boolean(properties.length), "Could not enable highlight for \"".concat(attribute.toString(), "\", will display an empty string.\nPlease check whether this attribute exists and is either searchable or specified in `attributesToHighlight`.\n\nSee: https://alg.li/highlighting\n")) ;
|
|
@@ -16524,11 +16566,11 @@
|
|
|
16524
16566
|
}));
|
|
16525
16567
|
}
|
|
16526
16568
|
|
|
16527
|
-
var _excluded$
|
|
16569
|
+
var _excluded$d = ["classNames"];
|
|
16528
16570
|
function ReverseHighlight(_ref) {
|
|
16529
16571
|
var _ref$classNames = _ref.classNames,
|
|
16530
16572
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
16531
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
16573
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
16532
16574
|
return h(InternalHighlight, _extends({
|
|
16533
16575
|
classNames: {
|
|
16534
16576
|
root: cx('ais-ReverseHighlight', classNames.root),
|
|
@@ -16539,13 +16581,13 @@
|
|
|
16539
16581
|
}, props));
|
|
16540
16582
|
}
|
|
16541
16583
|
|
|
16542
|
-
var _excluded$
|
|
16584
|
+
var _excluded$e = ["hit", "attribute", "cssClasses"],
|
|
16543
16585
|
_excluded2$2 = ["isHighlighted"];
|
|
16544
16586
|
function ReverseHighlight$1(_ref) {
|
|
16545
16587
|
var hit = _ref.hit,
|
|
16546
16588
|
attribute = _ref.attribute,
|
|
16547
16589
|
cssClasses = _ref.cssClasses,
|
|
16548
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
16590
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
|
16549
16591
|
var property = getPropertyByPath(hit._highlightResult, attribute) || [];
|
|
16550
16592
|
var properties = toArray(property);
|
|
16551
16593
|
_warning(Boolean(properties.length), "Could not enable highlight for \"".concat(attribute.toString(), "\", will display an empty string.\nPlease check whether this attribute exists and is either searchable or specified in `attributesToHighlight`.\n\nSee: https://alg.li/highlighting\n")) ;
|
|
@@ -16565,11 +16607,11 @@
|
|
|
16565
16607
|
}));
|
|
16566
16608
|
}
|
|
16567
16609
|
|
|
16568
|
-
var _excluded$
|
|
16610
|
+
var _excluded$f = ["classNames"];
|
|
16569
16611
|
function ReverseSnippet(_ref) {
|
|
16570
16612
|
var _ref$classNames = _ref.classNames,
|
|
16571
16613
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
16572
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
16614
|
+
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
16573
16615
|
return h(InternalHighlight, _extends({
|
|
16574
16616
|
classNames: {
|
|
16575
16617
|
root: cx('ais-ReverseSnippet', classNames.root),
|
|
@@ -16580,13 +16622,13 @@
|
|
|
16580
16622
|
}, props));
|
|
16581
16623
|
}
|
|
16582
16624
|
|
|
16583
|
-
var _excluded$
|
|
16625
|
+
var _excluded$g = ["hit", "attribute", "cssClasses"],
|
|
16584
16626
|
_excluded2$3 = ["isHighlighted"];
|
|
16585
16627
|
function ReverseSnippet$1(_ref) {
|
|
16586
16628
|
var hit = _ref.hit,
|
|
16587
16629
|
attribute = _ref.attribute,
|
|
16588
16630
|
cssClasses = _ref.cssClasses,
|
|
16589
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
16631
|
+
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
16590
16632
|
var property = getPropertyByPath(hit._snippetResult, attribute) || [];
|
|
16591
16633
|
var properties = toArray(property);
|
|
16592
16634
|
_warning(Boolean(properties.length), "Could not enable snippet for \"".concat(attribute.toString(), "\", will display an empty string.\nPlease check whether this attribute exists and is specified in `attributesToSnippet`.\n\nSee: https://alg.li/highlighting\n")) ;
|
|
@@ -16606,11 +16648,11 @@
|
|
|
16606
16648
|
}));
|
|
16607
16649
|
}
|
|
16608
16650
|
|
|
16609
|
-
var _excluded$
|
|
16651
|
+
var _excluded$h = ["classNames"];
|
|
16610
16652
|
function Snippet(_ref) {
|
|
16611
16653
|
var _ref$classNames = _ref.classNames,
|
|
16612
16654
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
16613
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
16655
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
16614
16656
|
return h(InternalHighlight, _extends({
|
|
16615
16657
|
classNames: {
|
|
16616
16658
|
root: cx('ais-Snippet', classNames.root),
|
|
@@ -16621,12 +16663,12 @@
|
|
|
16621
16663
|
}, props));
|
|
16622
16664
|
}
|
|
16623
16665
|
|
|
16624
|
-
var _excluded$
|
|
16666
|
+
var _excluded$i = ["hit", "attribute", "cssClasses"];
|
|
16625
16667
|
function Snippet$1(_ref) {
|
|
16626
16668
|
var hit = _ref.hit,
|
|
16627
16669
|
attribute = _ref.attribute,
|
|
16628
16670
|
cssClasses = _ref.cssClasses,
|
|
16629
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
16671
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
16630
16672
|
var property = getPropertyByPath(hit._snippetResult, attribute) || [];
|
|
16631
16673
|
var properties = toArray(property);
|
|
16632
16674
|
_warning(Boolean(properties.length), "Could not enable snippet for \"".concat(attribute.toString(), "\", will display an empty string.\nPlease check whether this attribute exists and is specified in `attributesToSnippet`.\n\nSee: https://alg.li/highlighting\n")) ;
|
|
@@ -16890,6 +16932,9 @@
|
|
|
16890
16932
|
}), containerNode);
|
|
16891
16933
|
};
|
|
16892
16934
|
};
|
|
16935
|
+
/**
|
|
16936
|
+
* @deprecated the answers service is no longer offered, and this widget will be removed in InstantSearch.js v5
|
|
16937
|
+
*/
|
|
16893
16938
|
var answersWidget = function answersWidget(widgetParams) {
|
|
16894
16939
|
var _ref3 = widgetParams || {},
|
|
16895
16940
|
container = _ref3.container,
|
|
@@ -16947,8 +16992,9 @@
|
|
|
16947
16992
|
$$widgetType: 'ais.answers'
|
|
16948
16993
|
});
|
|
16949
16994
|
};
|
|
16995
|
+
var answers = deprecate(answersWidget, 'The answers widget is deprecated and will be removed in InstantSearch.js 5.0');
|
|
16950
16996
|
|
|
16951
|
-
var _excluded$
|
|
16997
|
+
var _excluded$j = ["container", "widgets", "fallbackWidget"];
|
|
16952
16998
|
var withUsage$t = createDocumentationMessageGenerator({
|
|
16953
16999
|
name: 'dynamic-widgets'
|
|
16954
17000
|
});
|
|
@@ -16966,7 +17012,7 @@
|
|
|
16966
17012
|
containerSelector = _ref.container,
|
|
16967
17013
|
widgets = _ref.widgets,
|
|
16968
17014
|
fallbackWidget = _ref.fallbackWidget,
|
|
16969
|
-
otherWidgetParams = _objectWithoutProperties(_ref, _excluded$
|
|
17015
|
+
otherWidgetParams = _objectWithoutProperties(_ref, _excluded$j);
|
|
16970
17016
|
if (!containerSelector) {
|
|
16971
17017
|
throw new Error(withUsage$t('The `container` option is required.'));
|
|
16972
17018
|
}
|
|
@@ -17940,7 +17986,7 @@
|
|
|
17940
17986
|
}), container.querySelector(".".concat(cssClasses.tree)));
|
|
17941
17987
|
};
|
|
17942
17988
|
|
|
17943
|
-
var _excluded$
|
|
17989
|
+
var _excluded$k = ["initialZoom", "initialPosition", "templates", "cssClasses", "builtInMarker", "customHTMLMarker", "enableRefine", "enableClearMapRefinement", "enableRefineControl", "container", "googleReference"],
|
|
17944
17990
|
_excluded2$4 = ["item"],
|
|
17945
17991
|
_excluded3 = ["item"];
|
|
17946
17992
|
var withUsage$y = createDocumentationMessageGenerator({
|
|
@@ -17984,7 +18030,7 @@
|
|
|
17984
18030
|
enableRefineControl = _ref$enableRefineCont === void 0 ? true : _ref$enableRefineCont,
|
|
17985
18031
|
container = _ref.container,
|
|
17986
18032
|
googleReference = _ref.googleReference,
|
|
17987
|
-
otherWidgetParams = _objectWithoutProperties(_ref, _excluded$
|
|
18033
|
+
otherWidgetParams = _objectWithoutProperties(_ref, _excluded$k);
|
|
17988
18034
|
var defaultBuiltInMarker = {
|
|
17989
18035
|
createOptions: function createOptions() {
|
|
17990
18036
|
return {};
|
|
@@ -18321,7 +18367,7 @@
|
|
|
18321
18367
|
})), subItems);
|
|
18322
18368
|
}
|
|
18323
18369
|
|
|
18324
|
-
var _excluded$
|
|
18370
|
+
var _excluded$l = ["root"];
|
|
18325
18371
|
|
|
18326
18372
|
// CSS types
|
|
18327
18373
|
|
|
@@ -18348,7 +18394,7 @@
|
|
|
18348
18394
|
if (isHierarchicalMenuItem(facetValue) && Array.isArray(facetValue.data) && facetValue.data.length > 0) {
|
|
18349
18395
|
var _this$props$cssClasse = _this.props.cssClasses,
|
|
18350
18396
|
root = _this$props$cssClasse.root,
|
|
18351
|
-
cssClasses = _objectWithoutProperties(_this$props$cssClasse, _excluded$
|
|
18397
|
+
cssClasses = _objectWithoutProperties(_this$props$cssClasse, _excluded$l);
|
|
18352
18398
|
subItems = h(RefinementList, _extends({}, _this.props, {
|
|
18353
18399
|
// We want to keep `root` required for external usage but not for the
|
|
18354
18400
|
// sub items.
|
|
@@ -18727,60 +18773,6 @@
|
|
|
18727
18773
|
});
|
|
18728
18774
|
};
|
|
18729
18775
|
|
|
18730
|
-
function Hits(_ref) {
|
|
18731
|
-
var results = _ref.results,
|
|
18732
|
-
hits = _ref.hits,
|
|
18733
|
-
insights = _ref.insights,
|
|
18734
|
-
bindEvent = _ref.bindEvent,
|
|
18735
|
-
sendEvent = _ref.sendEvent,
|
|
18736
|
-
cssClasses = _ref.cssClasses,
|
|
18737
|
-
templateProps = _ref.templateProps;
|
|
18738
|
-
var handleInsightsClick = createInsightsEventHandler({
|
|
18739
|
-
insights: insights,
|
|
18740
|
-
sendEvent: sendEvent
|
|
18741
|
-
});
|
|
18742
|
-
if (results.hits.length === 0) {
|
|
18743
|
-
return h(Template, _extends({}, templateProps, {
|
|
18744
|
-
templateKey: "empty",
|
|
18745
|
-
rootProps: {
|
|
18746
|
-
className: cx(cssClasses.root, cssClasses.emptyRoot),
|
|
18747
|
-
onClick: handleInsightsClick
|
|
18748
|
-
},
|
|
18749
|
-
data: results
|
|
18750
|
-
}));
|
|
18751
|
-
}
|
|
18752
|
-
return h("div", {
|
|
18753
|
-
className: cssClasses.root
|
|
18754
|
-
}, h("ol", {
|
|
18755
|
-
className: cssClasses.list
|
|
18756
|
-
}, hits.map(function (hit, index) {
|
|
18757
|
-
return h(Template, _extends({}, templateProps, {
|
|
18758
|
-
templateKey: "item",
|
|
18759
|
-
rootTagName: "li",
|
|
18760
|
-
rootProps: {
|
|
18761
|
-
className: cssClasses.item,
|
|
18762
|
-
onClick: function onClick(event) {
|
|
18763
|
-
handleInsightsClick(event);
|
|
18764
|
-
sendEvent('click:internal', hit, 'Hit Clicked');
|
|
18765
|
-
},
|
|
18766
|
-
onAuxClick: function onAuxClick(event) {
|
|
18767
|
-
handleInsightsClick(event);
|
|
18768
|
-
sendEvent('click:internal', hit, 'Hit Clicked');
|
|
18769
|
-
}
|
|
18770
|
-
},
|
|
18771
|
-
key: hit.objectID,
|
|
18772
|
-
data: _objectSpread2(_objectSpread2({}, hit), {}, {
|
|
18773
|
-
get __hitIndex() {
|
|
18774
|
-
_warning(false, 'The `__hitIndex` property is deprecated. Use the absolute `__position` instead.') ;
|
|
18775
|
-
return index;
|
|
18776
|
-
}
|
|
18777
|
-
}),
|
|
18778
|
-
bindEvent: bindEvent,
|
|
18779
|
-
sendEvent: sendEvent
|
|
18780
|
-
}));
|
|
18781
|
-
})));
|
|
18782
|
-
}
|
|
18783
|
-
|
|
18784
18776
|
var defaultTemplates$5 = {
|
|
18785
18777
|
empty: function empty() {
|
|
18786
18778
|
return 'No results';
|
|
@@ -18790,10 +18782,14 @@
|
|
|
18790
18782
|
}
|
|
18791
18783
|
};
|
|
18792
18784
|
|
|
18785
|
+
var _excluded$m = ["hit", "index"];
|
|
18793
18786
|
var withUsage$A = createDocumentationMessageGenerator({
|
|
18794
18787
|
name: 'hits'
|
|
18795
18788
|
});
|
|
18796
|
-
var
|
|
18789
|
+
var Hits = createHitsComponent({
|
|
18790
|
+
createElement: h,
|
|
18791
|
+
Fragment: p
|
|
18792
|
+
});
|
|
18797
18793
|
var renderer$6 = function renderer(_ref) {
|
|
18798
18794
|
var renderState = _ref.renderState,
|
|
18799
18795
|
cssClasses = _ref.cssClasses,
|
|
@@ -18814,42 +18810,70 @@
|
|
|
18814
18810
|
});
|
|
18815
18811
|
return;
|
|
18816
18812
|
}
|
|
18813
|
+
var handleInsightsClick = createInsightsEventHandler({
|
|
18814
|
+
insights: insights,
|
|
18815
|
+
sendEvent: sendEvent
|
|
18816
|
+
});
|
|
18817
|
+
var emptyComponent = function emptyComponent(_ref3) {
|
|
18818
|
+
var rootProps = _extends({}, (_objectDestructuringEmpty(_ref3), _ref3));
|
|
18819
|
+
return h(Template, _extends({}, renderState.templateProps, {
|
|
18820
|
+
rootProps: rootProps,
|
|
18821
|
+
templateKey: "empty",
|
|
18822
|
+
data: results
|
|
18823
|
+
}));
|
|
18824
|
+
};
|
|
18825
|
+
|
|
18826
|
+
// @MAJOR: Move default hit component back to the UI library
|
|
18827
|
+
// once flavour specificities are erased
|
|
18828
|
+
var itemComponent = function itemComponent(_ref4) {
|
|
18829
|
+
var hit = _ref4.hit,
|
|
18830
|
+
index = _ref4.index,
|
|
18831
|
+
rootProps = _objectWithoutProperties(_ref4, _excluded$m);
|
|
18832
|
+
return h(Template, _extends({}, renderState.templateProps, {
|
|
18833
|
+
templateKey: "item",
|
|
18834
|
+
rootTagName: "li",
|
|
18835
|
+
rootProps: _objectSpread2(_objectSpread2({}, rootProps), {}, {
|
|
18836
|
+
onClick: function onClick(event) {
|
|
18837
|
+
handleInsightsClick(event);
|
|
18838
|
+
rootProps.onClick();
|
|
18839
|
+
},
|
|
18840
|
+
onAuxClick: function onAuxClick(event) {
|
|
18841
|
+
handleInsightsClick(event);
|
|
18842
|
+
rootProps.onAuxClick();
|
|
18843
|
+
}
|
|
18844
|
+
}),
|
|
18845
|
+
data: _objectSpread2(_objectSpread2({}, hit), {}, {
|
|
18846
|
+
get __hitIndex() {
|
|
18847
|
+
_warning(false, 'The `__hitIndex` property is deprecated. Use the absolute `__position` instead.') ;
|
|
18848
|
+
return index;
|
|
18849
|
+
}
|
|
18850
|
+
}),
|
|
18851
|
+
bindEvent: bindEvent,
|
|
18852
|
+
sendEvent: sendEvent
|
|
18853
|
+
}));
|
|
18854
|
+
};
|
|
18817
18855
|
P(h(Hits, {
|
|
18818
|
-
cssClasses: cssClasses,
|
|
18819
18856
|
hits: receivedHits,
|
|
18820
|
-
|
|
18821
|
-
templateProps: renderState.templateProps,
|
|
18822
|
-
insights: insights,
|
|
18857
|
+
itemComponent: itemComponent,
|
|
18823
18858
|
sendEvent: sendEvent,
|
|
18824
|
-
|
|
18859
|
+
classNames: cssClasses,
|
|
18860
|
+
emptyComponent: emptyComponent
|
|
18825
18861
|
}), containerNode);
|
|
18826
18862
|
};
|
|
18827
18863
|
};
|
|
18828
18864
|
var hits = function hits(widgetParams) {
|
|
18829
|
-
var
|
|
18830
|
-
container =
|
|
18831
|
-
escapeHTML =
|
|
18832
|
-
transformItems =
|
|
18833
|
-
|
|
18834
|
-
templates =
|
|
18835
|
-
|
|
18836
|
-
|
|
18865
|
+
var _ref5 = widgetParams || {},
|
|
18866
|
+
container = _ref5.container,
|
|
18867
|
+
escapeHTML = _ref5.escapeHTML,
|
|
18868
|
+
transformItems = _ref5.transformItems,
|
|
18869
|
+
_ref5$templates = _ref5.templates,
|
|
18870
|
+
templates = _ref5$templates === void 0 ? {} : _ref5$templates,
|
|
18871
|
+
_ref5$cssClasses = _ref5.cssClasses,
|
|
18872
|
+
cssClasses = _ref5$cssClasses === void 0 ? {} : _ref5$cssClasses;
|
|
18837
18873
|
if (!container) {
|
|
18838
18874
|
throw new Error(withUsage$A('The `container` option is required.'));
|
|
18839
18875
|
}
|
|
18840
18876
|
var containerNode = getContainerNode(container);
|
|
18841
|
-
var cssClasses = {
|
|
18842
|
-
root: cx(suit$b(), userCssClasses.root),
|
|
18843
|
-
emptyRoot: cx(suit$b({
|
|
18844
|
-
modifierName: 'empty'
|
|
18845
|
-
}), userCssClasses.emptyRoot),
|
|
18846
|
-
list: cx(suit$b({
|
|
18847
|
-
descendantName: 'list'
|
|
18848
|
-
}), userCssClasses.list),
|
|
18849
|
-
item: cx(suit$b({
|
|
18850
|
-
descendantName: 'item'
|
|
18851
|
-
}), userCssClasses.item)
|
|
18852
|
-
};
|
|
18853
18877
|
var specializedRenderer = renderer$6({
|
|
18854
18878
|
containerNode: containerNode,
|
|
18855
18879
|
cssClasses: cssClasses,
|
|
@@ -18892,7 +18916,7 @@
|
|
|
18892
18916
|
var withUsage$B = createDocumentationMessageGenerator({
|
|
18893
18917
|
name: 'hits-per-page'
|
|
18894
18918
|
});
|
|
18895
|
-
var suit$
|
|
18919
|
+
var suit$b = component('HitsPerPage');
|
|
18896
18920
|
var renderer$7 = function renderer(_ref) {
|
|
18897
18921
|
var containerNode = _ref.containerNode,
|
|
18898
18922
|
cssClasses = _ref.cssClasses;
|
|
@@ -18929,11 +18953,11 @@
|
|
|
18929
18953
|
}
|
|
18930
18954
|
var containerNode = getContainerNode(container);
|
|
18931
18955
|
var cssClasses = {
|
|
18932
|
-
root: cx(suit$
|
|
18933
|
-
select: cx(suit$
|
|
18956
|
+
root: cx(suit$b(), userCssClasses.root),
|
|
18957
|
+
select: cx(suit$b({
|
|
18934
18958
|
descendantName: 'select'
|
|
18935
18959
|
}), userCssClasses.select),
|
|
18936
|
-
option: cx(suit$
|
|
18960
|
+
option: cx(suit$b({
|
|
18937
18961
|
descendantName: 'option'
|
|
18938
18962
|
}), userCssClasses.option)
|
|
18939
18963
|
};
|
|
@@ -19045,7 +19069,7 @@
|
|
|
19045
19069
|
var withUsage$C = createDocumentationMessageGenerator({
|
|
19046
19070
|
name: 'infinite-hits'
|
|
19047
19071
|
});
|
|
19048
|
-
var suit$
|
|
19072
|
+
var suit$c = component('InfiniteHits');
|
|
19049
19073
|
var renderer$8 = function renderer(_ref) {
|
|
19050
19074
|
var containerNode = _ref.containerNode,
|
|
19051
19075
|
cssClasses = _ref.cssClasses,
|
|
@@ -19103,27 +19127,27 @@
|
|
|
19103
19127
|
}
|
|
19104
19128
|
var containerNode = getContainerNode(container);
|
|
19105
19129
|
var cssClasses = {
|
|
19106
|
-
root: cx(suit$
|
|
19107
|
-
emptyRoot: cx(suit$
|
|
19130
|
+
root: cx(suit$c(), userCssClasses.root),
|
|
19131
|
+
emptyRoot: cx(suit$c({
|
|
19108
19132
|
modifierName: 'empty'
|
|
19109
19133
|
}), userCssClasses.emptyRoot),
|
|
19110
|
-
item: cx(suit$
|
|
19134
|
+
item: cx(suit$c({
|
|
19111
19135
|
descendantName: 'item'
|
|
19112
19136
|
}), userCssClasses.item),
|
|
19113
|
-
list: cx(suit$
|
|
19137
|
+
list: cx(suit$c({
|
|
19114
19138
|
descendantName: 'list'
|
|
19115
19139
|
}), userCssClasses.list),
|
|
19116
|
-
loadPrevious: cx(suit$
|
|
19140
|
+
loadPrevious: cx(suit$c({
|
|
19117
19141
|
descendantName: 'loadPrevious'
|
|
19118
19142
|
}), userCssClasses.loadPrevious),
|
|
19119
|
-
disabledLoadPrevious: cx(suit$
|
|
19143
|
+
disabledLoadPrevious: cx(suit$c({
|
|
19120
19144
|
descendantName: 'loadPrevious',
|
|
19121
19145
|
modifierName: 'disabled'
|
|
19122
19146
|
}), userCssClasses.disabledLoadPrevious),
|
|
19123
|
-
loadMore: cx(suit$
|
|
19147
|
+
loadMore: cx(suit$c({
|
|
19124
19148
|
descendantName: 'loadMore'
|
|
19125
19149
|
}), userCssClasses.loadMore),
|
|
19126
|
-
disabledLoadMore: cx(suit$
|
|
19150
|
+
disabledLoadMore: cx(suit$c({
|
|
19127
19151
|
descendantName: 'loadMore',
|
|
19128
19152
|
modifierName: 'disabled'
|
|
19129
19153
|
}), userCssClasses.disabledLoadMore)
|
|
@@ -19172,7 +19196,7 @@
|
|
|
19172
19196
|
var withUsage$D = createDocumentationMessageGenerator({
|
|
19173
19197
|
name: 'menu'
|
|
19174
19198
|
});
|
|
19175
|
-
var suit$
|
|
19199
|
+
var suit$d = component('Menu');
|
|
19176
19200
|
var renderer$9 = function renderer(_ref) {
|
|
19177
19201
|
var containerNode = _ref.containerNode,
|
|
19178
19202
|
cssClasses = _ref.cssClasses,
|
|
@@ -19231,33 +19255,33 @@
|
|
|
19231
19255
|
}
|
|
19232
19256
|
var containerNode = getContainerNode(container);
|
|
19233
19257
|
var cssClasses = {
|
|
19234
|
-
root: cx(suit$
|
|
19235
|
-
noRefinementRoot: cx(suit$
|
|
19258
|
+
root: cx(suit$d(), userCssClasses.root),
|
|
19259
|
+
noRefinementRoot: cx(suit$d({
|
|
19236
19260
|
modifierName: 'noRefinement'
|
|
19237
19261
|
}), userCssClasses.noRefinementRoot),
|
|
19238
|
-
list: cx(suit$
|
|
19262
|
+
list: cx(suit$d({
|
|
19239
19263
|
descendantName: 'list'
|
|
19240
19264
|
}), userCssClasses.list),
|
|
19241
|
-
item: cx(suit$
|
|
19265
|
+
item: cx(suit$d({
|
|
19242
19266
|
descendantName: 'item'
|
|
19243
19267
|
}), userCssClasses.item),
|
|
19244
|
-
selectedItem: cx(suit$
|
|
19268
|
+
selectedItem: cx(suit$d({
|
|
19245
19269
|
descendantName: 'item',
|
|
19246
19270
|
modifierName: 'selected'
|
|
19247
19271
|
}), userCssClasses.selectedItem),
|
|
19248
|
-
link: cx(suit$
|
|
19272
|
+
link: cx(suit$d({
|
|
19249
19273
|
descendantName: 'link'
|
|
19250
19274
|
}), userCssClasses.link),
|
|
19251
|
-
label: cx(suit$
|
|
19275
|
+
label: cx(suit$d({
|
|
19252
19276
|
descendantName: 'label'
|
|
19253
19277
|
}), userCssClasses.label),
|
|
19254
|
-
count: cx(suit$
|
|
19278
|
+
count: cx(suit$d({
|
|
19255
19279
|
descendantName: 'count'
|
|
19256
19280
|
}), userCssClasses.count),
|
|
19257
|
-
showMore: cx(suit$
|
|
19281
|
+
showMore: cx(suit$d({
|
|
19258
19282
|
descendantName: 'showMore'
|
|
19259
19283
|
}), userCssClasses.showMore),
|
|
19260
|
-
disabledShowMore: cx(suit$
|
|
19284
|
+
disabledShowMore: cx(suit$d({
|
|
19261
19285
|
descendantName: 'showMore',
|
|
19262
19286
|
modifierName: 'disabled'
|
|
19263
19287
|
}), userCssClasses.disabledShowMore)
|
|
@@ -19338,7 +19362,7 @@
|
|
|
19338
19362
|
var withUsage$E = createDocumentationMessageGenerator({
|
|
19339
19363
|
name: 'menu-select'
|
|
19340
19364
|
});
|
|
19341
|
-
var suit$
|
|
19365
|
+
var suit$e = component('MenuSelect');
|
|
19342
19366
|
var renderer$a = function renderer(_ref) {
|
|
19343
19367
|
var containerNode = _ref.containerNode,
|
|
19344
19368
|
cssClasses = _ref.cssClasses,
|
|
@@ -19382,14 +19406,14 @@
|
|
|
19382
19406
|
}
|
|
19383
19407
|
var containerNode = getContainerNode(container);
|
|
19384
19408
|
var cssClasses = {
|
|
19385
|
-
root: cx(suit$
|
|
19386
|
-
noRefinementRoot: cx(suit$
|
|
19409
|
+
root: cx(suit$e(), userCssClasses.root),
|
|
19410
|
+
noRefinementRoot: cx(suit$e({
|
|
19387
19411
|
modifierName: 'noRefinement'
|
|
19388
19412
|
}), userCssClasses.noRefinementRoot),
|
|
19389
|
-
select: cx(suit$
|
|
19413
|
+
select: cx(suit$e({
|
|
19390
19414
|
descendantName: 'select'
|
|
19391
19415
|
}), userCssClasses.select),
|
|
19392
|
-
option: cx(suit$
|
|
19416
|
+
option: cx(suit$e({
|
|
19393
19417
|
descendantName: 'option'
|
|
19394
19418
|
}), userCssClasses.option)
|
|
19395
19419
|
};
|
|
@@ -19434,7 +19458,7 @@
|
|
|
19434
19458
|
var withUsage$F = createDocumentationMessageGenerator({
|
|
19435
19459
|
name: 'numeric-menu'
|
|
19436
19460
|
});
|
|
19437
|
-
var suit$
|
|
19461
|
+
var suit$f = component('NumericMenu');
|
|
19438
19462
|
var renderer$b = function renderer(_ref) {
|
|
19439
19463
|
var containerNode = _ref.containerNode,
|
|
19440
19464
|
attribute = _ref.attribute,
|
|
@@ -19479,27 +19503,27 @@
|
|
|
19479
19503
|
}
|
|
19480
19504
|
var containerNode = getContainerNode(container);
|
|
19481
19505
|
var cssClasses = {
|
|
19482
|
-
root: cx(suit$
|
|
19483
|
-
noRefinementRoot: cx(suit$
|
|
19506
|
+
root: cx(suit$f(), userCssClasses.root),
|
|
19507
|
+
noRefinementRoot: cx(suit$f({
|
|
19484
19508
|
modifierName: 'noRefinement'
|
|
19485
19509
|
}), userCssClasses.noRefinementRoot),
|
|
19486
|
-
list: cx(suit$
|
|
19510
|
+
list: cx(suit$f({
|
|
19487
19511
|
descendantName: 'list'
|
|
19488
19512
|
}), userCssClasses.list),
|
|
19489
|
-
item: cx(suit$
|
|
19513
|
+
item: cx(suit$f({
|
|
19490
19514
|
descendantName: 'item'
|
|
19491
19515
|
}), userCssClasses.item),
|
|
19492
|
-
selectedItem: cx(suit$
|
|
19516
|
+
selectedItem: cx(suit$f({
|
|
19493
19517
|
descendantName: 'item',
|
|
19494
19518
|
modifierName: 'selected'
|
|
19495
19519
|
}), userCssClasses.selectedItem),
|
|
19496
|
-
label: cx(suit$
|
|
19520
|
+
label: cx(suit$f({
|
|
19497
19521
|
descendantName: 'label'
|
|
19498
19522
|
}), userCssClasses.label),
|
|
19499
|
-
radio: cx(suit$
|
|
19523
|
+
radio: cx(suit$f({
|
|
19500
19524
|
descendantName: 'radio'
|
|
19501
19525
|
}), userCssClasses.radio),
|
|
19502
|
-
labelText: cx(suit$
|
|
19526
|
+
labelText: cx(suit$f({
|
|
19503
19527
|
descendantName: 'labelText'
|
|
19504
19528
|
}), userCssClasses.labelText)
|
|
19505
19529
|
};
|
|
@@ -19635,7 +19659,7 @@
|
|
|
19635
19659
|
}));
|
|
19636
19660
|
}
|
|
19637
19661
|
|
|
19638
|
-
var suit$
|
|
19662
|
+
var suit$g = component('Pagination');
|
|
19639
19663
|
var withUsage$G = createDocumentationMessageGenerator({
|
|
19640
19664
|
name: 'pagination'
|
|
19641
19665
|
});
|
|
@@ -19724,45 +19748,45 @@
|
|
|
19724
19748
|
var scrollTo = userScrollTo === true ? 'body' : userScrollTo;
|
|
19725
19749
|
var scrollToNode = scrollTo !== false ? getContainerNode(scrollTo) : false;
|
|
19726
19750
|
var cssClasses = {
|
|
19727
|
-
root: cx(suit$
|
|
19728
|
-
noRefinementRoot: cx(suit$
|
|
19751
|
+
root: cx(suit$g(), userCssClasses.root),
|
|
19752
|
+
noRefinementRoot: cx(suit$g({
|
|
19729
19753
|
modifierName: 'noRefinement'
|
|
19730
19754
|
}), userCssClasses.noRefinementRoot),
|
|
19731
|
-
list: cx(suit$
|
|
19755
|
+
list: cx(suit$g({
|
|
19732
19756
|
descendantName: 'list'
|
|
19733
19757
|
}), userCssClasses.list),
|
|
19734
|
-
item: cx(suit$
|
|
19758
|
+
item: cx(suit$g({
|
|
19735
19759
|
descendantName: 'item'
|
|
19736
19760
|
}), userCssClasses.item),
|
|
19737
|
-
firstPageItem: cx(suit$
|
|
19761
|
+
firstPageItem: cx(suit$g({
|
|
19738
19762
|
descendantName: 'item',
|
|
19739
19763
|
modifierName: 'firstPage'
|
|
19740
19764
|
}), userCssClasses.firstPageItem),
|
|
19741
|
-
lastPageItem: cx(suit$
|
|
19765
|
+
lastPageItem: cx(suit$g({
|
|
19742
19766
|
descendantName: 'item',
|
|
19743
19767
|
modifierName: 'lastPage'
|
|
19744
19768
|
}), userCssClasses.lastPageItem),
|
|
19745
|
-
previousPageItem: cx(suit$
|
|
19769
|
+
previousPageItem: cx(suit$g({
|
|
19746
19770
|
descendantName: 'item',
|
|
19747
19771
|
modifierName: 'previousPage'
|
|
19748
19772
|
}), userCssClasses.previousPageItem),
|
|
19749
|
-
nextPageItem: cx(suit$
|
|
19773
|
+
nextPageItem: cx(suit$g({
|
|
19750
19774
|
descendantName: 'item',
|
|
19751
19775
|
modifierName: 'nextPage'
|
|
19752
19776
|
}), userCssClasses.nextPageItem),
|
|
19753
|
-
pageItem: cx(suit$
|
|
19777
|
+
pageItem: cx(suit$g({
|
|
19754
19778
|
descendantName: 'item',
|
|
19755
19779
|
modifierName: 'page'
|
|
19756
19780
|
}), userCssClasses.pageItem),
|
|
19757
|
-
selectedItem: cx(suit$
|
|
19781
|
+
selectedItem: cx(suit$g({
|
|
19758
19782
|
descendantName: 'item',
|
|
19759
19783
|
modifierName: 'selected'
|
|
19760
19784
|
}), userCssClasses.selectedItem),
|
|
19761
|
-
disabledItem: cx(suit$
|
|
19785
|
+
disabledItem: cx(suit$g({
|
|
19762
19786
|
descendantName: 'item',
|
|
19763
19787
|
modifierName: 'disabled'
|
|
19764
19788
|
}), userCssClasses.disabledItem),
|
|
19765
|
-
link: cx(suit$
|
|
19789
|
+
link: cx(suit$g({
|
|
19766
19790
|
descendantName: 'link'
|
|
19767
19791
|
}), userCssClasses.link)
|
|
19768
19792
|
};
|
|
@@ -19856,7 +19880,7 @@
|
|
|
19856
19880
|
var withUsage$H = createDocumentationMessageGenerator({
|
|
19857
19881
|
name: 'panel'
|
|
19858
19882
|
});
|
|
19859
|
-
var suit$
|
|
19883
|
+
var suit$h = component('Panel');
|
|
19860
19884
|
var renderer$d = function renderer(_ref) {
|
|
19861
19885
|
var containerNode = _ref.containerNode,
|
|
19862
19886
|
bodyContainerNode = _ref.bodyContainerNode,
|
|
@@ -19901,29 +19925,29 @@
|
|
|
19901
19925
|
return false;
|
|
19902
19926
|
};
|
|
19903
19927
|
var cssClasses = {
|
|
19904
|
-
root: cx(suit$
|
|
19905
|
-
noRefinementRoot: cx(suit$
|
|
19928
|
+
root: cx(suit$h(), userCssClasses.root),
|
|
19929
|
+
noRefinementRoot: cx(suit$h({
|
|
19906
19930
|
modifierName: 'noRefinement'
|
|
19907
19931
|
}), userCssClasses.noRefinementRoot),
|
|
19908
|
-
collapsibleRoot: cx(suit$
|
|
19932
|
+
collapsibleRoot: cx(suit$h({
|
|
19909
19933
|
modifierName: 'collapsible'
|
|
19910
19934
|
}), userCssClasses.collapsibleRoot),
|
|
19911
|
-
collapsedRoot: cx(suit$
|
|
19935
|
+
collapsedRoot: cx(suit$h({
|
|
19912
19936
|
modifierName: 'collapsed'
|
|
19913
19937
|
}), userCssClasses.collapsedRoot),
|
|
19914
|
-
collapseButton: cx(suit$
|
|
19938
|
+
collapseButton: cx(suit$h({
|
|
19915
19939
|
descendantName: 'collapseButton'
|
|
19916
19940
|
}), userCssClasses.collapseButton),
|
|
19917
|
-
collapseIcon: cx(suit$
|
|
19941
|
+
collapseIcon: cx(suit$h({
|
|
19918
19942
|
descendantName: 'collapseIcon'
|
|
19919
19943
|
}), userCssClasses.collapseIcon),
|
|
19920
|
-
body: cx(suit$
|
|
19944
|
+
body: cx(suit$h({
|
|
19921
19945
|
descendantName: 'body'
|
|
19922
19946
|
}), userCssClasses.body),
|
|
19923
|
-
header: cx(suit$
|
|
19947
|
+
header: cx(suit$h({
|
|
19924
19948
|
descendantName: 'header'
|
|
19925
19949
|
}), userCssClasses.header),
|
|
19926
|
-
footer: cx(suit$
|
|
19950
|
+
footer: cx(suit$h({
|
|
19927
19951
|
descendantName: 'footer'
|
|
19928
19952
|
}), userCssClasses.footer)
|
|
19929
19953
|
};
|
|
@@ -20004,21 +20028,23 @@
|
|
|
20004
20028
|
};
|
|
20005
20029
|
};
|
|
20006
20030
|
|
|
20007
|
-
var _excluded$
|
|
20031
|
+
var _excluded$n = ["placesReference", "defaultPosition"],
|
|
20008
20032
|
_excluded2$5 = ["places"];
|
|
20033
|
+
|
|
20009
20034
|
/* Places.js is an optional dependency, no error should be reported if the package is missing */
|
|
20010
20035
|
/** @ts-ignore */
|
|
20011
20036
|
// using the type like this requires only one ts-ignore
|
|
20012
20037
|
/**
|
|
20013
20038
|
* This widget sets the geolocation value for the search based on the selected
|
|
20014
20039
|
* result in the Algolia Places autocomplete.
|
|
20040
|
+
* @deprecated the places service is no longer offered, and this widget will be removed in InstantSearch.js v5
|
|
20015
20041
|
*/
|
|
20016
20042
|
var placesWidget = function placesWidget(widgetParams) {
|
|
20017
20043
|
var _ref = widgetParams || {},
|
|
20018
20044
|
placesReference = _ref.placesReference,
|
|
20019
20045
|
_ref$defaultPosition = _ref.defaultPosition,
|
|
20020
20046
|
defaultPosition = _ref$defaultPosition === void 0 ? [] : _ref$defaultPosition,
|
|
20021
|
-
placesOptions = _objectWithoutProperties(_ref, _excluded$
|
|
20047
|
+
placesOptions = _objectWithoutProperties(_ref, _excluded$n);
|
|
20022
20048
|
if (typeof placesReference !== 'function') {
|
|
20023
20049
|
throw new Error('The `placesReference` option requires a valid Places.js reference.');
|
|
20024
20050
|
}
|
|
@@ -20097,6 +20123,7 @@
|
|
|
20097
20123
|
}
|
|
20098
20124
|
};
|
|
20099
20125
|
};
|
|
20126
|
+
var places = deprecate(placesWidget, 'The places widget is deprecated and will be removed in InstantSearch.js 5.0.');
|
|
20100
20127
|
|
|
20101
20128
|
var PoweredBy = function PoweredBy(_ref) {
|
|
20102
20129
|
var url = _ref.url,
|
|
@@ -20129,7 +20156,7 @@
|
|
|
20129
20156
|
}))));
|
|
20130
20157
|
};
|
|
20131
20158
|
|
|
20132
|
-
var suit$
|
|
20159
|
+
var suit$i = component('PoweredBy');
|
|
20133
20160
|
var withUsage$I = createDocumentationMessageGenerator({
|
|
20134
20161
|
name: 'powered-by'
|
|
20135
20162
|
});
|
|
@@ -20163,13 +20190,13 @@
|
|
|
20163
20190
|
}
|
|
20164
20191
|
var containerNode = getContainerNode(container);
|
|
20165
20192
|
var cssClasses = {
|
|
20166
|
-
root: cx(suit$
|
|
20193
|
+
root: cx(suit$i(), suit$i({
|
|
20167
20194
|
modifierName: theme === 'dark' ? 'dark' : 'light'
|
|
20168
20195
|
}), userCssClasses.root),
|
|
20169
|
-
link: cx(suit$
|
|
20196
|
+
link: cx(suit$i({
|
|
20170
20197
|
descendantName: 'link'
|
|
20171
20198
|
}), userCssClasses.link),
|
|
20172
|
-
logo: cx(suit$
|
|
20199
|
+
logo: cx(suit$i({
|
|
20173
20200
|
descendantName: 'logo'
|
|
20174
20201
|
}), userCssClasses.logo)
|
|
20175
20202
|
};
|
|
@@ -20225,7 +20252,7 @@
|
|
|
20225
20252
|
var withUsage$K = createDocumentationMessageGenerator({
|
|
20226
20253
|
name: 'query-rule-custom-data'
|
|
20227
20254
|
});
|
|
20228
|
-
var suit$
|
|
20255
|
+
var suit$j = component('QueryRuleCustomData');
|
|
20229
20256
|
var renderer$f = function renderer(_ref2) {
|
|
20230
20257
|
var containerNode = _ref2.containerNode,
|
|
20231
20258
|
cssClasses = _ref2.cssClasses,
|
|
@@ -20254,7 +20281,7 @@
|
|
|
20254
20281
|
throw new Error(withUsage$K('The `container` option is required.'));
|
|
20255
20282
|
}
|
|
20256
20283
|
var cssClasses = {
|
|
20257
|
-
root: cx(suit$
|
|
20284
|
+
root: cx(suit$j(), userCssClasses.root)
|
|
20258
20285
|
};
|
|
20259
20286
|
var containerNode = getContainerNode(container);
|
|
20260
20287
|
var templates = _objectSpread2(_objectSpread2({}, defaultTemplates$b), userTemplates);
|
|
@@ -20387,7 +20414,7 @@
|
|
|
20387
20414
|
var withUsage$L = createDocumentationMessageGenerator({
|
|
20388
20415
|
name: 'range-input'
|
|
20389
20416
|
});
|
|
20390
|
-
var suit$
|
|
20417
|
+
var suit$k = component('RangeInput');
|
|
20391
20418
|
var defaultTemplates$c = {
|
|
20392
20419
|
separatorText: function separatorText() {
|
|
20393
20420
|
return 'to';
|
|
@@ -20453,31 +20480,31 @@
|
|
|
20453
20480
|
}
|
|
20454
20481
|
var containerNode = getContainerNode(container);
|
|
20455
20482
|
var cssClasses = {
|
|
20456
|
-
root: cx(suit$
|
|
20457
|
-
noRefinement: cx(suit$
|
|
20483
|
+
root: cx(suit$k(), userCssClasses.root),
|
|
20484
|
+
noRefinement: cx(suit$k({
|
|
20458
20485
|
modifierName: 'noRefinement'
|
|
20459
20486
|
})),
|
|
20460
|
-
form: cx(suit$
|
|
20487
|
+
form: cx(suit$k({
|
|
20461
20488
|
descendantName: 'form'
|
|
20462
20489
|
}), userCssClasses.form),
|
|
20463
|
-
label: cx(suit$
|
|
20490
|
+
label: cx(suit$k({
|
|
20464
20491
|
descendantName: 'label'
|
|
20465
20492
|
}), userCssClasses.label),
|
|
20466
|
-
input: cx(suit$
|
|
20493
|
+
input: cx(suit$k({
|
|
20467
20494
|
descendantName: 'input'
|
|
20468
20495
|
}), userCssClasses.input),
|
|
20469
|
-
inputMin: cx(suit$
|
|
20496
|
+
inputMin: cx(suit$k({
|
|
20470
20497
|
descendantName: 'input',
|
|
20471
20498
|
modifierName: 'min'
|
|
20472
20499
|
}), userCssClasses.inputMin),
|
|
20473
|
-
inputMax: cx(suit$
|
|
20500
|
+
inputMax: cx(suit$k({
|
|
20474
20501
|
descendantName: 'input',
|
|
20475
20502
|
modifierName: 'max'
|
|
20476
20503
|
}), userCssClasses.inputMax),
|
|
20477
|
-
separator: cx(suit$
|
|
20504
|
+
separator: cx(suit$k({
|
|
20478
20505
|
descendantName: 'separator'
|
|
20479
20506
|
}), userCssClasses.separator),
|
|
20480
|
-
submit: cx(suit$
|
|
20507
|
+
submit: cx(suit$k({
|
|
20481
20508
|
descendantName: 'submit'
|
|
20482
20509
|
}), userCssClasses.submit)
|
|
20483
20510
|
};
|
|
@@ -21175,7 +21202,7 @@
|
|
|
21175
21202
|
var withUsage$M = createDocumentationMessageGenerator({
|
|
21176
21203
|
name: 'range-slider'
|
|
21177
21204
|
});
|
|
21178
|
-
var suit$
|
|
21205
|
+
var suit$l = component('RangeSlider');
|
|
21179
21206
|
var renderer$h = function renderer(_ref) {
|
|
21180
21207
|
var containerNode = _ref.containerNode,
|
|
21181
21208
|
cssClasses = _ref.cssClasses,
|
|
@@ -21245,8 +21272,8 @@
|
|
|
21245
21272
|
}
|
|
21246
21273
|
var containerNode = getContainerNode(container);
|
|
21247
21274
|
var cssClasses = {
|
|
21248
|
-
root: cx(suit$
|
|
21249
|
-
disabledRoot: cx(suit$
|
|
21275
|
+
root: cx(suit$l(), userCssClasses.root),
|
|
21276
|
+
disabledRoot: cx(suit$l({
|
|
21250
21277
|
modifierName: 'disabled'
|
|
21251
21278
|
}), userCssClasses.disabledRoot)
|
|
21252
21279
|
};
|
|
@@ -21323,7 +21350,7 @@
|
|
|
21323
21350
|
var withUsage$N = createDocumentationMessageGenerator({
|
|
21324
21351
|
name: 'rating-menu'
|
|
21325
21352
|
});
|
|
21326
|
-
var suit$
|
|
21353
|
+
var suit$m = component('RatingMenu');
|
|
21327
21354
|
var _ref3 = h("path", {
|
|
21328
21355
|
d: "M12 .288l2.833 8.718h9.167l-7.417 5.389 2.833 8.718-7.416-5.388-7.417 5.388 2.833-8.718-7.416-5.389h9.167z"
|
|
21329
21356
|
});
|
|
@@ -21357,12 +21384,12 @@
|
|
|
21357
21384
|
}, h("svg", {
|
|
21358
21385
|
style: "display:none;"
|
|
21359
21386
|
}, h("symbol", {
|
|
21360
|
-
id: suit$
|
|
21387
|
+
id: suit$m({
|
|
21361
21388
|
descendantName: 'starSymbol'
|
|
21362
21389
|
}),
|
|
21363
21390
|
viewBox: "0 0 24 24"
|
|
21364
21391
|
}, _ref3), h("symbol", {
|
|
21365
|
-
id: suit$
|
|
21392
|
+
id: suit$m({
|
|
21366
21393
|
descendantName: 'starEmptySymbol'
|
|
21367
21394
|
}),
|
|
21368
21395
|
viewBox: "0 0 24 24"
|
|
@@ -21412,42 +21439,42 @@
|
|
|
21412
21439
|
}
|
|
21413
21440
|
var containerNode = getContainerNode(container);
|
|
21414
21441
|
var cssClasses = {
|
|
21415
|
-
root: cx(suit$
|
|
21416
|
-
noRefinementRoot: cx(suit$
|
|
21442
|
+
root: cx(suit$m(), userCssClasses.root),
|
|
21443
|
+
noRefinementRoot: cx(suit$m({
|
|
21417
21444
|
modifierName: 'noRefinement'
|
|
21418
21445
|
}), userCssClasses.noRefinementRoot),
|
|
21419
|
-
list: cx(suit$
|
|
21446
|
+
list: cx(suit$m({
|
|
21420
21447
|
descendantName: 'list'
|
|
21421
21448
|
}), userCssClasses.list),
|
|
21422
|
-
item: cx(suit$
|
|
21449
|
+
item: cx(suit$m({
|
|
21423
21450
|
descendantName: 'item'
|
|
21424
21451
|
}), userCssClasses.item),
|
|
21425
|
-
selectedItem: cx(suit$
|
|
21452
|
+
selectedItem: cx(suit$m({
|
|
21426
21453
|
descendantName: 'item',
|
|
21427
21454
|
modifierName: 'selected'
|
|
21428
21455
|
}), userCssClasses.selectedItem),
|
|
21429
|
-
disabledItem: cx(suit$
|
|
21456
|
+
disabledItem: cx(suit$m({
|
|
21430
21457
|
descendantName: 'item',
|
|
21431
21458
|
modifierName: 'disabled'
|
|
21432
21459
|
}), userCssClasses.disabledItem),
|
|
21433
|
-
link: cx(suit$
|
|
21460
|
+
link: cx(suit$m({
|
|
21434
21461
|
descendantName: 'link'
|
|
21435
21462
|
}), userCssClasses.link),
|
|
21436
|
-
starIcon: cx(suit$
|
|
21463
|
+
starIcon: cx(suit$m({
|
|
21437
21464
|
descendantName: 'starIcon'
|
|
21438
21465
|
}), userCssClasses.starIcon),
|
|
21439
|
-
fullStarIcon: cx(suit$
|
|
21466
|
+
fullStarIcon: cx(suit$m({
|
|
21440
21467
|
descendantName: 'starIcon',
|
|
21441
21468
|
modifierName: 'full'
|
|
21442
21469
|
}), userCssClasses.fullStarIcon),
|
|
21443
|
-
emptyStarIcon: cx(suit$
|
|
21470
|
+
emptyStarIcon: cx(suit$m({
|
|
21444
21471
|
descendantName: 'starIcon',
|
|
21445
21472
|
modifierName: 'empty'
|
|
21446
21473
|
}), userCssClasses.emptyStarIcon),
|
|
21447
|
-
label: cx(suit$
|
|
21474
|
+
label: cx(suit$m({
|
|
21448
21475
|
descendantName: 'label'
|
|
21449
21476
|
}), userCssClasses.label),
|
|
21450
|
-
count: cx(suit$
|
|
21477
|
+
count: cx(suit$m({
|
|
21451
21478
|
descendantName: 'count'
|
|
21452
21479
|
}), userCssClasses.count)
|
|
21453
21480
|
};
|
|
@@ -21571,7 +21598,7 @@
|
|
|
21571
21598
|
var withUsage$O = createDocumentationMessageGenerator({
|
|
21572
21599
|
name: 'refinement-list'
|
|
21573
21600
|
});
|
|
21574
|
-
var suit$
|
|
21601
|
+
var suit$n = component('RefinementList');
|
|
21575
21602
|
var searchBoxSuit = component('SearchBox');
|
|
21576
21603
|
var renderer$j = function renderer(_ref) {
|
|
21577
21604
|
var containerNode = _ref.containerNode,
|
|
@@ -21673,42 +21700,42 @@
|
|
|
21673
21700
|
var escapeFacetValues = searchable ? Boolean(searchableEscapeFacetValues) : false;
|
|
21674
21701
|
var containerNode = getContainerNode(container);
|
|
21675
21702
|
var cssClasses = {
|
|
21676
|
-
root: cx(suit$
|
|
21677
|
-
noRefinementRoot: cx(suit$
|
|
21703
|
+
root: cx(suit$n(), userCssClasses.root),
|
|
21704
|
+
noRefinementRoot: cx(suit$n({
|
|
21678
21705
|
modifierName: 'noRefinement'
|
|
21679
21706
|
}), userCssClasses.noRefinementRoot),
|
|
21680
|
-
list: cx(suit$
|
|
21707
|
+
list: cx(suit$n({
|
|
21681
21708
|
descendantName: 'list'
|
|
21682
21709
|
}), userCssClasses.list),
|
|
21683
|
-
item: cx(suit$
|
|
21710
|
+
item: cx(suit$n({
|
|
21684
21711
|
descendantName: 'item'
|
|
21685
21712
|
}), userCssClasses.item),
|
|
21686
|
-
selectedItem: cx(suit$
|
|
21713
|
+
selectedItem: cx(suit$n({
|
|
21687
21714
|
descendantName: 'item',
|
|
21688
21715
|
modifierName: 'selected'
|
|
21689
21716
|
}), userCssClasses.selectedItem),
|
|
21690
|
-
searchBox: cx(suit$
|
|
21717
|
+
searchBox: cx(suit$n({
|
|
21691
21718
|
descendantName: 'searchBox'
|
|
21692
21719
|
}), userCssClasses.searchBox),
|
|
21693
|
-
label: cx(suit$
|
|
21720
|
+
label: cx(suit$n({
|
|
21694
21721
|
descendantName: 'label'
|
|
21695
21722
|
}), userCssClasses.label),
|
|
21696
|
-
checkbox: cx(suit$
|
|
21723
|
+
checkbox: cx(suit$n({
|
|
21697
21724
|
descendantName: 'checkbox'
|
|
21698
21725
|
}), userCssClasses.checkbox),
|
|
21699
|
-
labelText: cx(suit$
|
|
21726
|
+
labelText: cx(suit$n({
|
|
21700
21727
|
descendantName: 'labelText'
|
|
21701
21728
|
}), userCssClasses.labelText),
|
|
21702
|
-
count: cx(suit$
|
|
21729
|
+
count: cx(suit$n({
|
|
21703
21730
|
descendantName: 'count'
|
|
21704
21731
|
}), userCssClasses.count),
|
|
21705
|
-
noResults: cx(suit$
|
|
21732
|
+
noResults: cx(suit$n({
|
|
21706
21733
|
descendantName: 'noResults'
|
|
21707
21734
|
}), userCssClasses.noResults),
|
|
21708
|
-
showMore: cx(suit$
|
|
21735
|
+
showMore: cx(suit$n({
|
|
21709
21736
|
descendantName: 'showMore'
|
|
21710
21737
|
}), userCssClasses.showMore),
|
|
21711
|
-
disabledShowMore: cx(suit$
|
|
21738
|
+
disabledShowMore: cx(suit$n({
|
|
21712
21739
|
descendantName: 'showMore',
|
|
21713
21740
|
modifierName: 'disabled'
|
|
21714
21741
|
}), userCssClasses.disabledShowMore),
|
|
@@ -21822,7 +21849,7 @@
|
|
|
21822
21849
|
var withUsage$P = createDocumentationMessageGenerator({
|
|
21823
21850
|
name: 'relevant-sort'
|
|
21824
21851
|
});
|
|
21825
|
-
var suit$
|
|
21852
|
+
var suit$o = component('RelevantSort');
|
|
21826
21853
|
var renderer$k = function renderer(_ref) {
|
|
21827
21854
|
var containerNode = _ref.containerNode,
|
|
21828
21855
|
cssClasses = _ref.cssClasses,
|
|
@@ -21851,11 +21878,11 @@
|
|
|
21851
21878
|
}
|
|
21852
21879
|
var containerNode = getContainerNode(container);
|
|
21853
21880
|
var cssClasses = {
|
|
21854
|
-
root: cx(suit$
|
|
21855
|
-
text: cx(suit$
|
|
21881
|
+
root: cx(suit$o(), userCssClasses.root),
|
|
21882
|
+
text: cx(suit$o({
|
|
21856
21883
|
descendantName: 'text'
|
|
21857
21884
|
}), userCssClasses.text),
|
|
21858
|
-
button: cx(suit$
|
|
21885
|
+
button: cx(suit$o({
|
|
21859
21886
|
descendantName: 'button'
|
|
21860
21887
|
}), userCssClasses.button)
|
|
21861
21888
|
};
|
|
@@ -21877,7 +21904,7 @@
|
|
|
21877
21904
|
var withUsage$Q = createDocumentationMessageGenerator({
|
|
21878
21905
|
name: 'search-box'
|
|
21879
21906
|
});
|
|
21880
|
-
var suit$
|
|
21907
|
+
var suit$p = component('SearchBox');
|
|
21881
21908
|
var renderer$l = function renderer(_ref) {
|
|
21882
21909
|
var containerNode = _ref.containerNode,
|
|
21883
21910
|
cssClasses = _ref.cssClasses,
|
|
@@ -21946,29 +21973,29 @@
|
|
|
21946
21973
|
}
|
|
21947
21974
|
var containerNode = getContainerNode(container);
|
|
21948
21975
|
var cssClasses = {
|
|
21949
|
-
root: cx(suit$
|
|
21950
|
-
form: cx(suit$
|
|
21976
|
+
root: cx(suit$p(), userCssClasses.root),
|
|
21977
|
+
form: cx(suit$p({
|
|
21951
21978
|
descendantName: 'form'
|
|
21952
21979
|
}), userCssClasses.form),
|
|
21953
|
-
input: cx(suit$
|
|
21980
|
+
input: cx(suit$p({
|
|
21954
21981
|
descendantName: 'input'
|
|
21955
21982
|
}), userCssClasses.input),
|
|
21956
|
-
submit: cx(suit$
|
|
21983
|
+
submit: cx(suit$p({
|
|
21957
21984
|
descendantName: 'submit'
|
|
21958
21985
|
}), userCssClasses.submit),
|
|
21959
|
-
submitIcon: cx(suit$
|
|
21986
|
+
submitIcon: cx(suit$p({
|
|
21960
21987
|
descendantName: 'submitIcon'
|
|
21961
21988
|
}), userCssClasses.submitIcon),
|
|
21962
|
-
reset: cx(suit$
|
|
21989
|
+
reset: cx(suit$p({
|
|
21963
21990
|
descendantName: 'reset'
|
|
21964
21991
|
}), userCssClasses.reset),
|
|
21965
|
-
resetIcon: cx(suit$
|
|
21992
|
+
resetIcon: cx(suit$p({
|
|
21966
21993
|
descendantName: 'resetIcon'
|
|
21967
21994
|
}), userCssClasses.resetIcon),
|
|
21968
|
-
loadingIndicator: cx(suit$
|
|
21995
|
+
loadingIndicator: cx(suit$p({
|
|
21969
21996
|
descendantName: 'loadingIndicator'
|
|
21970
21997
|
}), userCssClasses.loadingIndicator),
|
|
21971
|
-
loadingIcon: cx(suit$
|
|
21998
|
+
loadingIcon: cx(suit$p({
|
|
21972
21999
|
descendantName: 'loadingIcon'
|
|
21973
22000
|
}), userCssClasses.loadingIcon)
|
|
21974
22001
|
};
|
|
@@ -21998,7 +22025,7 @@
|
|
|
21998
22025
|
var withUsage$R = createDocumentationMessageGenerator({
|
|
21999
22026
|
name: 'sort-by'
|
|
22000
22027
|
});
|
|
22001
|
-
var suit$
|
|
22028
|
+
var suit$q = component('SortBy');
|
|
22002
22029
|
var renderer$m = function renderer(_ref) {
|
|
22003
22030
|
var containerNode = _ref.containerNode,
|
|
22004
22031
|
cssClasses = _ref.cssClasses;
|
|
@@ -22037,11 +22064,11 @@
|
|
|
22037
22064
|
}
|
|
22038
22065
|
var containerNode = getContainerNode(container);
|
|
22039
22066
|
var cssClasses = {
|
|
22040
|
-
root: cx(suit$
|
|
22041
|
-
select: cx(suit$
|
|
22067
|
+
root: cx(suit$q(), userCssClasses.root),
|
|
22068
|
+
select: cx(suit$q({
|
|
22042
22069
|
descendantName: 'select'
|
|
22043
22070
|
}), userCssClasses.select),
|
|
22044
|
-
option: cx(suit$
|
|
22071
|
+
option: cx(suit$q({
|
|
22045
22072
|
descendantName: 'option'
|
|
22046
22073
|
}), userCssClasses.option)
|
|
22047
22074
|
};
|
|
@@ -22061,13 +22088,13 @@
|
|
|
22061
22088
|
});
|
|
22062
22089
|
};
|
|
22063
22090
|
|
|
22064
|
-
var _excluded$
|
|
22091
|
+
var _excluded$o = ["nbHits", "nbSortedHits", "cssClasses", "templateProps"];
|
|
22065
22092
|
var Stats = function Stats(_ref) {
|
|
22066
22093
|
var nbHits = _ref.nbHits,
|
|
22067
22094
|
nbSortedHits = _ref.nbSortedHits,
|
|
22068
22095
|
cssClasses = _ref.cssClasses,
|
|
22069
22096
|
templateProps = _ref.templateProps,
|
|
22070
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
22097
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
22071
22098
|
return h("div", {
|
|
22072
22099
|
className: cx(cssClasses.root)
|
|
22073
22100
|
}, h(Template, _extends({}, templateProps, {
|
|
@@ -22093,7 +22120,7 @@
|
|
|
22093
22120
|
var withUsage$S = createDocumentationMessageGenerator({
|
|
22094
22121
|
name: 'stats'
|
|
22095
22122
|
});
|
|
22096
|
-
var suit$
|
|
22123
|
+
var suit$r = component('Stats');
|
|
22097
22124
|
var defaultTemplates$g = {
|
|
22098
22125
|
text: function text(props) {
|
|
22099
22126
|
return "".concat(props.areHitsSorted ? getSortedResultsSentence(props) : getResultsSentence(props), " found in ").concat(props.processingTimeMS, "ms");
|
|
@@ -22189,8 +22216,8 @@
|
|
|
22189
22216
|
}
|
|
22190
22217
|
var containerNode = getContainerNode(container);
|
|
22191
22218
|
var cssClasses = {
|
|
22192
|
-
root: cx(suit$
|
|
22193
|
-
text: cx(suit$
|
|
22219
|
+
root: cx(suit$r(), userCssClasses.root),
|
|
22220
|
+
text: cx(suit$r({
|
|
22194
22221
|
descendantName: 'text'
|
|
22195
22222
|
}), userCssClasses.text)
|
|
22196
22223
|
};
|
|
@@ -22246,7 +22273,7 @@
|
|
|
22246
22273
|
var withUsage$T = createDocumentationMessageGenerator({
|
|
22247
22274
|
name: 'toggle-refinement'
|
|
22248
22275
|
});
|
|
22249
|
-
var suit$
|
|
22276
|
+
var suit$s = component('ToggleRefinement');
|
|
22250
22277
|
var renderer$o = function renderer(_ref) {
|
|
22251
22278
|
var containerNode = _ref.containerNode,
|
|
22252
22279
|
cssClasses = _ref.cssClasses,
|
|
@@ -22300,14 +22327,14 @@
|
|
|
22300
22327
|
}
|
|
22301
22328
|
var containerNode = getContainerNode(container);
|
|
22302
22329
|
var cssClasses = {
|
|
22303
|
-
root: cx(suit$
|
|
22304
|
-
label: cx(suit$
|
|
22330
|
+
root: cx(suit$s(), userCssClasses.root),
|
|
22331
|
+
label: cx(suit$s({
|
|
22305
22332
|
descendantName: 'label'
|
|
22306
22333
|
}), userCssClasses.label),
|
|
22307
|
-
checkbox: cx(suit$
|
|
22334
|
+
checkbox: cx(suit$s({
|
|
22308
22335
|
descendantName: 'checkbox'
|
|
22309
22336
|
}), userCssClasses.checkbox),
|
|
22310
|
-
labelText: cx(suit$
|
|
22337
|
+
labelText: cx(suit$s({
|
|
22311
22338
|
descendantName: 'labelText'
|
|
22312
22339
|
}), userCssClasses.labelText)
|
|
22313
22340
|
};
|
|
@@ -22466,7 +22493,7 @@
|
|
|
22466
22493
|
var withUsage$U = createDocumentationMessageGenerator({
|
|
22467
22494
|
name: 'voice-search'
|
|
22468
22495
|
});
|
|
22469
|
-
var suit$
|
|
22496
|
+
var suit$t = component('VoiceSearch');
|
|
22470
22497
|
var renderer$p = function renderer(_ref) {
|
|
22471
22498
|
var containerNode = _ref.containerNode,
|
|
22472
22499
|
cssClasses = _ref.cssClasses,
|
|
@@ -22503,11 +22530,11 @@
|
|
|
22503
22530
|
}
|
|
22504
22531
|
var containerNode = getContainerNode(container);
|
|
22505
22532
|
var cssClasses = {
|
|
22506
|
-
root: cx(suit$
|
|
22507
|
-
button: cx(suit$
|
|
22533
|
+
root: cx(suit$t(), userCssClasses.root),
|
|
22534
|
+
button: cx(suit$t({
|
|
22508
22535
|
descendantName: 'button'
|
|
22509
22536
|
}), userCssClasses.button),
|
|
22510
|
-
status: cx(suit$
|
|
22537
|
+
status: cx(suit$t({
|
|
22511
22538
|
descendantName: 'status'
|
|
22512
22539
|
}), userCssClasses.status)
|
|
22513
22540
|
};
|
|
@@ -22534,7 +22561,7 @@
|
|
|
22534
22561
|
};
|
|
22535
22562
|
|
|
22536
22563
|
/** @deprecated answers is no longer supported */
|
|
22537
|
-
var EXPERIMENTAL_answers = deprecate(
|
|
22564
|
+
var EXPERIMENTAL_answers = deprecate(answers, 'answers is no longer supported');
|
|
22538
22565
|
|
|
22539
22566
|
/** @deprecated use dynamicWidgets */
|
|
22540
22567
|
var EXPERIMENTAL_dynamicWidgets = deprecate(dynamicWidgets, 'use dynamicWidgets');
|
|
@@ -22561,7 +22588,7 @@
|
|
|
22561
22588
|
numericMenu: numericMenu,
|
|
22562
22589
|
pagination: pagination,
|
|
22563
22590
|
panel: panel,
|
|
22564
|
-
places:
|
|
22591
|
+
places: places,
|
|
22565
22592
|
poweredBy: poweredBy,
|
|
22566
22593
|
queryRuleContext: queryRuleContext,
|
|
22567
22594
|
queryRuleCustomData: queryRuleCustomData,
|