@appbaseio/reactivesearch-vue 3.0.0-rc.16 → 3.0.0-rc.17
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/dist/@appbaseio/reactivesearch-vue.umd.js +5946 -5758
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +5 -5
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/{install-aa32f65f.js → install-a773d7d3.js} +89 -28
- package/dist/cjs/install.js +2 -2
- package/dist/cjs/version.js +1 -1
- package/dist/es/index.js +3 -3
- package/dist/es/{install-28637a98.js → install-45c35093.js} +89 -28
- package/dist/es/install.js +2 -2
- package/dist/es/version.js +1 -1
- package/package.json +92 -92
package/dist/cjs/index.js
CHANGED
|
@@ -32,9 +32,9 @@ require('@appbaseio/analytics');
|
|
|
32
32
|
require('url-search-params-polyfill');
|
|
33
33
|
var ReactiveBase = require('./ReactiveBase.js');
|
|
34
34
|
require('hotkeys-js');
|
|
35
|
-
require('remarkable');
|
|
36
35
|
require('xss');
|
|
37
|
-
|
|
36
|
+
require('remarkable');
|
|
37
|
+
var install = require('./install-a773d7d3.js');
|
|
38
38
|
require('./DropDown-e8216602.js');
|
|
39
39
|
require('./Input-3ecdb905.js');
|
|
40
40
|
require('compute-scroll-into-view');
|
|
@@ -25,8 +25,8 @@ var Flex = require('./Flex-ddde6d26.js');
|
|
|
25
25
|
var analytics = require('@appbaseio/reactivecore/lib/actions/analytics');
|
|
26
26
|
var ReactiveBase = require('./ReactiveBase.js');
|
|
27
27
|
var hotkeys = _interopDefault(require('hotkeys-js'));
|
|
28
|
-
var remarkable = require('remarkable');
|
|
29
28
|
var xss = _interopDefault(require('xss'));
|
|
29
|
+
var remarkable = require('remarkable');
|
|
30
30
|
var DropDown = require('./DropDown-e8216602.js');
|
|
31
31
|
var Input = require('./Input-3ecdb905.js');
|
|
32
32
|
var Container = require('./Container-29f049b2.js');
|
|
@@ -1088,7 +1088,9 @@ var md = new remarkable.Remarkable();
|
|
|
1088
1088
|
md.set({
|
|
1089
1089
|
html: true,
|
|
1090
1090
|
breaks: true,
|
|
1091
|
-
xhtmlOut: true
|
|
1091
|
+
xhtmlOut: true,
|
|
1092
|
+
linkify: true,
|
|
1093
|
+
linkTarget: '_blank'
|
|
1092
1094
|
});
|
|
1093
1095
|
var _dropdownULRef = 'dropdownULRef';
|
|
1094
1096
|
var _inputGroupRef = 'inputGroupRef';
|
|
@@ -1116,7 +1118,9 @@ var SearchBox = vue.defineComponent({
|
|
|
1116
1118
|
showAIScreen: false,
|
|
1117
1119
|
showAIScreenFooter: false,
|
|
1118
1120
|
showFeedbackComponent: false,
|
|
1119
|
-
feedbackState: null
|
|
1121
|
+
feedbackState: null,
|
|
1122
|
+
faqAnswer: '',
|
|
1123
|
+
faqQuestion: ''
|
|
1120
1124
|
};
|
|
1121
1125
|
this.internalComponent = props.componentId + "__internal";
|
|
1122
1126
|
return this.__state;
|
|
@@ -1158,6 +1162,12 @@ var SearchBox = vue.defineComponent({
|
|
|
1158
1162
|
stats: function stats() {
|
|
1159
1163
|
return getResultStats(this);
|
|
1160
1164
|
},
|
|
1165
|
+
mergedAIQuestion: function mergedAIQuestion() {
|
|
1166
|
+
return this.faqQuestion || this.AIResponse && this.AIResponse.response && this.AIResponse.response.question;
|
|
1167
|
+
},
|
|
1168
|
+
mergedAIAnswer: function mergedAIAnswer() {
|
|
1169
|
+
return this.faqAnswer || this.AIResponse && this.AIResponse.response && this.AIResponse.response.answer && this.AIResponse.response.answer.text;
|
|
1170
|
+
},
|
|
1161
1171
|
parsedSuggestions: function parsedSuggestions() {
|
|
1162
1172
|
var suggestionsArray = [];
|
|
1163
1173
|
if (Array.isArray(this.suggestions) && this.suggestions.length) {
|
|
@@ -1216,6 +1226,11 @@ var SearchBox = vue.defineComponent({
|
|
|
1216
1226
|
enableQuerySuggestions: VueTypes.bool.def(false),
|
|
1217
1227
|
enablePopularSuggestions: VueTypes.bool.def(false),
|
|
1218
1228
|
enableRecentSuggestions: VueTypes.bool.def(false),
|
|
1229
|
+
enableFAQSuggestions: VueTypes.bool.def(false),
|
|
1230
|
+
FAQSuggestionsConfig: VueTypes.shape({
|
|
1231
|
+
sectionLabel: VueTypes.string,
|
|
1232
|
+
size: VueTypes.number
|
|
1233
|
+
}),
|
|
1219
1234
|
fieldWeights: vueTypes.types.fieldWeights,
|
|
1220
1235
|
filterLabel: vueTypes.types.string,
|
|
1221
1236
|
fuzziness: vueTypes.types.fuzziness,
|
|
@@ -1339,7 +1354,11 @@ var SearchBox = vue.defineComponent({
|
|
|
1339
1354
|
if (this.$options.isTagsMode) {
|
|
1340
1355
|
cause = reactivecore.causes.SUGGESTION_SELECT;
|
|
1341
1356
|
}
|
|
1342
|
-
|
|
1357
|
+
if (this.$props.value === undefined) {
|
|
1358
|
+
this.setValue(newVal, newVal === '', this.$props, cause, false);
|
|
1359
|
+
} else {
|
|
1360
|
+
this.setValue(newVal || '', true, this.$props, cause);
|
|
1361
|
+
}
|
|
1343
1362
|
}
|
|
1344
1363
|
},
|
|
1345
1364
|
focusShortcuts: function focusShortcuts() {
|
|
@@ -1451,8 +1470,8 @@ var SearchBox = vue.defineComponent({
|
|
|
1451
1470
|
value: currentValue,
|
|
1452
1471
|
resultStats: this.stats,
|
|
1453
1472
|
AIData: {
|
|
1454
|
-
question: this.
|
|
1455
|
-
answer: this.
|
|
1473
|
+
question: this.mergedAIQuestion,
|
|
1474
|
+
answer: this.mergedAIAnswer,
|
|
1456
1475
|
documentIds: this.AIResponse && this.AIResponse.response && this.AIResponse.response.answer && this.AIResponse.response.answer.documentIds || [],
|
|
1457
1476
|
showAIScreen: this.showAIScreen,
|
|
1458
1477
|
sources: this.getAISourceObjects(),
|
|
@@ -1483,7 +1502,7 @@ var SearchBox = vue.defineComponent({
|
|
|
1483
1502
|
this.onValueSelectedHandler(currentValue, reactivecore.causes.SEARCH_ICON_CLICK);
|
|
1484
1503
|
}
|
|
1485
1504
|
},
|
|
1486
|
-
setValue: function setValue(value, isDefaultValue, props, cause, toggleIsOpen, categoryValue) {
|
|
1505
|
+
setValue: function setValue(value, isDefaultValue, props, cause, toggleIsOpen, categoryValue, shouldExecuteQuery) {
|
|
1487
1506
|
var _this2 = this;
|
|
1488
1507
|
if (isDefaultValue === void 0) {
|
|
1489
1508
|
isDefaultValue = false;
|
|
@@ -1497,6 +1516,9 @@ var SearchBox = vue.defineComponent({
|
|
|
1497
1516
|
if (categoryValue === void 0) {
|
|
1498
1517
|
categoryValue = undefined;
|
|
1499
1518
|
}
|
|
1519
|
+
if (shouldExecuteQuery === void 0) {
|
|
1520
|
+
shouldExecuteQuery = true;
|
|
1521
|
+
}
|
|
1500
1522
|
var performUpdate = function performUpdate() {
|
|
1501
1523
|
if (_this2.$options.isTagsMode && isEqual(value, _this2.selectedTags)) {
|
|
1502
1524
|
return;
|
|
@@ -1525,6 +1547,12 @@ var SearchBox = vue.defineComponent({
|
|
|
1525
1547
|
if (_this2.$options.isTagsMode && cause === reactivecore.causes.SUGGESTION_SELECT) {
|
|
1526
1548
|
queryHandlerValue = Array.isArray(_this2.selectedTags) && _this2.selectedTags.length ? _this2.selectedTags : undefined;
|
|
1527
1549
|
}
|
|
1550
|
+
if ((_this2.faqAnswer || _this2.faqQuestion) && value === '') {
|
|
1551
|
+
// Empty the previous state
|
|
1552
|
+
_this2.faqAnswer = '';
|
|
1553
|
+
_this2.faqQuestion = '';
|
|
1554
|
+
_this2.showAIScreen = false;
|
|
1555
|
+
}
|
|
1528
1556
|
if (isDefaultValue) {
|
|
1529
1557
|
if (_this2.$props.autosuggest) {
|
|
1530
1558
|
if (toggleIsOpen) {
|
|
@@ -1532,17 +1560,18 @@ var SearchBox = vue.defineComponent({
|
|
|
1532
1560
|
}
|
|
1533
1561
|
if (typeof _this2.currentValue === 'string') _this2.triggerDefaultQuery(_this2.currentValue, props.enableAI ? {
|
|
1534
1562
|
enableAI: true
|
|
1535
|
-
} : {});
|
|
1563
|
+
} : {}, shouldExecuteQuery);
|
|
1536
1564
|
} // in case of strict selection only SUGGESTION_SELECT should be able
|
|
1537
1565
|
// to set the query otherwise the value should reset
|
|
1538
1566
|
if (props.strictSelection) {
|
|
1539
1567
|
if (cause === reactivecore.causes.SUGGESTION_SELECT || (_this2.$options.isTagsMode ? _this2.selectedTags.length === 0 : value === '')) {
|
|
1540
|
-
_this2.triggerCustomQuery(queryHandlerValue, _this2.$options.isTagsMode ? undefined : categoryValue);
|
|
1568
|
+
_this2.triggerCustomQuery(queryHandlerValue, _this2.$options.isTagsMode ? undefined : categoryValue, shouldExecuteQuery);
|
|
1541
1569
|
} else {
|
|
1542
1570
|
_this2.setValue('', true);
|
|
1543
1571
|
}
|
|
1544
1572
|
} else if (props.value === undefined || cause === reactivecore.causes.SUGGESTION_SELECT || cause === reactivecore.causes.CLEAR_VALUE) {
|
|
1545
|
-
_this2.
|
|
1573
|
+
_this2.showAIScreen = false;
|
|
1574
|
+
_this2.triggerCustomQuery(queryHandlerValue, _this2.$options.isTagsMode ? undefined : categoryValue, shouldExecuteQuery);
|
|
1546
1575
|
}
|
|
1547
1576
|
} else {
|
|
1548
1577
|
// debounce for handling text while typing
|
|
@@ -1553,10 +1582,13 @@ var SearchBox = vue.defineComponent({
|
|
|
1553
1582
|
};
|
|
1554
1583
|
checkValueChange(props.componentId, value, props.beforeValueChange, performUpdate);
|
|
1555
1584
|
},
|
|
1556
|
-
triggerDefaultQuery: function triggerDefaultQuery(paramValue, meta) {
|
|
1585
|
+
triggerDefaultQuery: function triggerDefaultQuery(paramValue, meta, shouldExecuteQuery) {
|
|
1557
1586
|
if (meta === void 0) {
|
|
1558
1587
|
meta = {};
|
|
1559
1588
|
}
|
|
1589
|
+
if (shouldExecuteQuery === void 0) {
|
|
1590
|
+
shouldExecuteQuery = true;
|
|
1591
|
+
}
|
|
1560
1592
|
if (!this.$props.autosuggest) {
|
|
1561
1593
|
return;
|
|
1562
1594
|
}
|
|
@@ -1577,12 +1609,15 @@ var SearchBox = vue.defineComponent({
|
|
|
1577
1609
|
value: value,
|
|
1578
1610
|
componentType: constants.componentTypes.searchBox,
|
|
1579
1611
|
meta: meta
|
|
1580
|
-
});
|
|
1612
|
+
}, shouldExecuteQuery);
|
|
1581
1613
|
},
|
|
1582
|
-
triggerCustomQuery: function triggerCustomQuery(paramValue, categoryValue) {
|
|
1614
|
+
triggerCustomQuery: function triggerCustomQuery(paramValue, categoryValue, shouldExecuteQuery) {
|
|
1583
1615
|
if (categoryValue === void 0) {
|
|
1584
1616
|
categoryValue = undefined;
|
|
1585
1617
|
}
|
|
1618
|
+
if (shouldExecuteQuery === void 0) {
|
|
1619
|
+
shouldExecuteQuery = true;
|
|
1620
|
+
}
|
|
1586
1621
|
var _this$$props = this.$props,
|
|
1587
1622
|
customQuery = _this$$props.customQuery,
|
|
1588
1623
|
filterLabel = _this$$props.filterLabel,
|
|
@@ -1611,7 +1646,7 @@ var SearchBox = vue.defineComponent({
|
|
|
1611
1646
|
URLParams: URLParams,
|
|
1612
1647
|
componentType: constants.componentTypes.searchBox,
|
|
1613
1648
|
category: categoryValue
|
|
1614
|
-
});
|
|
1649
|
+
}, shouldExecuteQuery);
|
|
1615
1650
|
},
|
|
1616
1651
|
handleFocus: function handleFocus(event) {
|
|
1617
1652
|
if (this.$props.autosuggest) {
|
|
@@ -1622,7 +1657,9 @@ var SearchBox = vue.defineComponent({
|
|
|
1622
1657
|
handleVoiceResults: function handleVoiceResults(_ref) {
|
|
1623
1658
|
var results = _ref.results;
|
|
1624
1659
|
if (results && results[0] && results[0].isFinal && results[0][0] && results[0][0].transcript && results[0][0].transcript.trim()) {
|
|
1660
|
+
var _this$$refs2;
|
|
1625
1661
|
this.setValue(results[0][0].transcript.trim(), true);
|
|
1662
|
+
(_this$$refs2 = this.$refs) == null || (_this$$refs2 = _this$$refs2[this.$props.innerRef]) == null || (_this$$refs2 = _this$$refs2.$el) == null ? void 0 : _this$$refs2.focus(); // eslint-disable-line
|
|
1626
1663
|
}
|
|
1627
1664
|
},
|
|
1628
1665
|
triggerQuery: function triggerQuery(_ref2) {
|
|
@@ -1662,6 +1699,8 @@ var SearchBox = vue.defineComponent({
|
|
|
1662
1699
|
clearValue: function clearValue() {
|
|
1663
1700
|
this.setValue('', false, this.$props, !this.$options.isTagsMode ? reactivecore.causes.CLEAR_VALUE : undefined, false);
|
|
1664
1701
|
this.onValueSelectedHandler('', !this.$options.isTagsMode ? reactivecore.causes.CLEAR_VALUE : undefined);
|
|
1702
|
+
this.showAIScreen = false;
|
|
1703
|
+
this.isOpen = false;
|
|
1665
1704
|
},
|
|
1666
1705
|
handleKeyDown: function handleKeyDown(event, highlightedIndex) {
|
|
1667
1706
|
if (highlightedIndex === void 0) {
|
|
@@ -1697,7 +1736,7 @@ var SearchBox = vue.defineComponent({
|
|
|
1697
1736
|
}
|
|
1698
1737
|
var value = this.$props.value;
|
|
1699
1738
|
if (value === undefined) {
|
|
1700
|
-
this.setValue(inputValue,
|
|
1739
|
+
this.setValue(inputValue, inputValue === '', this.$props, undefined, false);
|
|
1701
1740
|
} else {
|
|
1702
1741
|
this.$emit('change', inputValue, function (_ref3) {
|
|
1703
1742
|
var isOpen = _ref3.isOpen;
|
|
@@ -1712,7 +1751,7 @@ var SearchBox = vue.defineComponent({
|
|
|
1712
1751
|
},
|
|
1713
1752
|
handleFeaturedSuggestionClicked: function handleFeaturedSuggestionClicked(suggestion) {
|
|
1714
1753
|
try {
|
|
1715
|
-
var _this$$
|
|
1754
|
+
var _this$$refs3;
|
|
1716
1755
|
if (suggestion.action === helper.featuredSuggestionsActionTypes.NAVIGATE) {
|
|
1717
1756
|
var _JSON$parse = JSON.parse(suggestion.subAction),
|
|
1718
1757
|
_JSON$parse$target = _JSON$parse.target,
|
|
@@ -1731,7 +1770,7 @@ var SearchBox = vue.defineComponent({
|
|
|
1731
1770
|
func(suggestion, this.$data.currentValue, this.$props.customEvents);
|
|
1732
1771
|
}
|
|
1733
1772
|
if (suggestion.action === helper.featuredSuggestionsActionTypes.SELECT) {
|
|
1734
|
-
this.setValue(suggestion.value, true, this.$props, this.$options.isTagsMode.current ? reactivecore.causes.SUGGESTION_SELECT : reactivecore.causes.ENTER_PRESS);
|
|
1773
|
+
this.setValue(suggestion.value, true, this.$props, this.$options.isTagsMode.current ? reactivecore.causes.SUGGESTION_SELECT : reactivecore.causes.ENTER_PRESS, false);
|
|
1735
1774
|
this.onValueSelectedHandler(suggestion.value, reactivecore.causes.SUGGESTION_SELECT);
|
|
1736
1775
|
}
|
|
1737
1776
|
// blur is important to close the dropdown
|
|
@@ -1739,21 +1778,36 @@ var SearchBox = vue.defineComponent({
|
|
|
1739
1778
|
// else Downshift probably is focusing the dropdown
|
|
1740
1779
|
// and not letting it close
|
|
1741
1780
|
// eslint-disable-next-line no-unused-expressions
|
|
1742
|
-
(_this$$
|
|
1781
|
+
(_this$$refs3 = this.$refs) == null || (_this$$refs3 = _this$$refs3[this.$props.innerRef]) == null || (_this$$refs3 = _this$$refs3.el) == null ? void 0 : _this$$refs3.blur();
|
|
1743
1782
|
} catch (e) {
|
|
1744
1783
|
console.error("Error: There was an error parsing the subAction for the featured suggestion with label, \"" + suggestion.label + "\"", e);
|
|
1745
1784
|
}
|
|
1746
1785
|
},
|
|
1747
1786
|
onSuggestionSelected: function onSuggestionSelected(suggestion) {
|
|
1748
1787
|
var _this4 = this;
|
|
1749
|
-
|
|
1788
|
+
var value = this.$props.value;
|
|
1789
|
+
// The state of the suggestion is open by the time it reaches here. i.e. isOpen = true
|
|
1790
|
+
// handle when FAQ suggestion is clicked
|
|
1791
|
+
if (suggestion && suggestion._suggestion_type === helper.suggestionTypes.FAQ) {
|
|
1792
|
+
this.currentValue = suggestion.value;
|
|
1793
|
+
// Handle AI
|
|
1794
|
+
// Independent of enableAI.
|
|
1795
|
+
this.faqAnswer = suggestion._answer;
|
|
1796
|
+
this.faqQuestion = suggestion.value;
|
|
1797
|
+
this.isOpen = true;
|
|
1750
1798
|
this.showAIScreen = true;
|
|
1799
|
+
if (value !== undefined) this.$emit('change', suggestion.value, function () {});
|
|
1800
|
+
this.onValueSelectedHandler(suggestion.value);
|
|
1801
|
+
return;
|
|
1751
1802
|
}
|
|
1752
|
-
var value = this.$props.value;
|
|
1753
1803
|
|
|
1754
1804
|
// handle featured suggestions click event
|
|
1755
1805
|
if (suggestion._suggestion_type === helper.suggestionTypes.Featured) {
|
|
1756
1806
|
this.handleFeaturedSuggestionClicked(suggestion);
|
|
1807
|
+
// Handle AI
|
|
1808
|
+
if (!this.$props.enableAI) this.isOpen = false;else {
|
|
1809
|
+
this.showAIScreen = true;
|
|
1810
|
+
}
|
|
1757
1811
|
return;
|
|
1758
1812
|
}
|
|
1759
1813
|
// Record analytics for selected suggestions
|
|
@@ -1783,6 +1837,11 @@ var SearchBox = vue.defineComponent({
|
|
|
1783
1837
|
});
|
|
1784
1838
|
}
|
|
1785
1839
|
this.onValueSelectedHandler(suggestion.value, reactivecore.causes.SUGGESTION_SELECT, suggestion.source);
|
|
1840
|
+
|
|
1841
|
+
// Handle AI
|
|
1842
|
+
if (!this.$props.enableAI) this.isOpen = false;else {
|
|
1843
|
+
this.showAIScreen = true;
|
|
1844
|
+
}
|
|
1786
1845
|
},
|
|
1787
1846
|
onValueSelectedHandler: function onValueSelectedHandler(currentValue) {
|
|
1788
1847
|
if (currentValue === void 0) {
|
|
@@ -2026,14 +2085,14 @@ var SearchBox = vue.defineComponent({
|
|
|
2026
2085
|
})]);
|
|
2027
2086
|
},
|
|
2028
2087
|
focusSearchBox: function focusSearchBox(event) {
|
|
2029
|
-
var _this$$
|
|
2088
|
+
var _this$$refs4;
|
|
2030
2089
|
var elt = event.target || event.srcElement;
|
|
2031
2090
|
var tagName = elt.tagName;
|
|
2032
2091
|
if (elt.isContentEditable || tagName === 'INPUT' || tagName === 'SELECT' || tagName === 'TEXTAREA') {
|
|
2033
2092
|
// already in an input
|
|
2034
2093
|
return;
|
|
2035
2094
|
}
|
|
2036
|
-
(_this$$
|
|
2095
|
+
(_this$$refs4 = this.$refs) == null || (_this$$refs4 = _this$$refs4[this.$props.innerRef]) == null || (_this$$refs4 = _this$$refs4.$el) == null ? void 0 : _this$$refs4.focus(); // eslint-disable-line
|
|
2037
2096
|
},
|
|
2038
2097
|
listenForFocusShortcuts: function listenForFocusShortcuts() {
|
|
2039
2098
|
var _this9 = this;
|
|
@@ -2252,8 +2311,8 @@ var SearchBox = vue.defineComponent({
|
|
|
2252
2311
|
var customAIRenderer = this.$props.renderAIAnswer || this.$slots.renderAIAnswer;
|
|
2253
2312
|
if (customAIRenderer) {
|
|
2254
2313
|
return customAIRenderer({
|
|
2255
|
-
question: this.
|
|
2256
|
-
answer: this.
|
|
2314
|
+
question: this.mergedAIQuestion,
|
|
2315
|
+
answer: this.mergedAIAnswer,
|
|
2257
2316
|
documentIds: this.AIResponse && this.AIResponse.response && this.AIResponse.response.answer && this.AIResponse.response.answer.documentIds || [],
|
|
2258
2317
|
loading: this.isAIResponseLoading || this.isLoading,
|
|
2259
2318
|
sources: this.getAISourceObjects(),
|
|
@@ -2264,7 +2323,7 @@ var SearchBox = vue.defineComponent({
|
|
|
2264
2323
|
return this.renderAIScreenLoader();
|
|
2265
2324
|
}
|
|
2266
2325
|
return vue.createVNode("div", null, [vue.createVNode(Answer, {
|
|
2267
|
-
"innerHTML": md.render(this.
|
|
2326
|
+
"innerHTML": md.render(this.mergedAIAnswer)
|
|
2268
2327
|
}, null), this.renderAIScreenFooter(), this.showFeedbackComponent && vue.createVNode("div", {
|
|
2269
2328
|
"class": "" + (getClassName$1(this.$props.innerClass, 'ai-feedback') || '')
|
|
2270
2329
|
}, [vue.createVNode(AIFeedback, {
|
|
@@ -2455,7 +2514,7 @@ var SearchBox = vue.defineComponent({
|
|
|
2455
2514
|
}), _transformOn(getItemEvents({
|
|
2456
2515
|
item: sectionItem
|
|
2457
2516
|
})), {
|
|
2458
|
-
"key": index + sectionIndex,
|
|
2517
|
+
"key": sectionItem._id + "_" + index + "_" + sectionIndex,
|
|
2459
2518
|
"style": {
|
|
2460
2519
|
justifyContent: 'flex-start',
|
|
2461
2520
|
alignItems: 'center'
|
|
@@ -2466,7 +2525,7 @@ var SearchBox = vue.defineComponent({
|
|
|
2466
2525
|
}), _transformOn(getItemEvents({
|
|
2467
2526
|
item: sectionItem
|
|
2468
2527
|
})), {
|
|
2469
|
-
"key": index + sectionIndex,
|
|
2528
|
+
"key": sectionItem._id + "_" + index + "_" + sectionIndex,
|
|
2470
2529
|
"style": {
|
|
2471
2530
|
justifyContent: 'flex-start',
|
|
2472
2531
|
alignItems: 'center'
|
|
@@ -2688,7 +2747,9 @@ var md$1 = new remarkable.Remarkable();
|
|
|
2688
2747
|
md$1.set({
|
|
2689
2748
|
html: true,
|
|
2690
2749
|
breaks: true,
|
|
2691
|
-
xhtmlOut: true
|
|
2750
|
+
xhtmlOut: true,
|
|
2751
|
+
linkify: true,
|
|
2752
|
+
linkTarget: '_blank'
|
|
2692
2753
|
});
|
|
2693
2754
|
var _inputWrapperRef = 'inputWrapperRef';
|
|
2694
2755
|
var _inputRef = 'inputRef';
|
package/dist/cjs/install.js
CHANGED
|
@@ -32,9 +32,9 @@ require('@appbaseio/analytics');
|
|
|
32
32
|
require('url-search-params-polyfill');
|
|
33
33
|
require('./ReactiveBase.js');
|
|
34
34
|
require('hotkeys-js');
|
|
35
|
-
require('remarkable');
|
|
36
35
|
require('xss');
|
|
37
|
-
|
|
36
|
+
require('remarkable');
|
|
37
|
+
var install = require('./install-a773d7d3.js');
|
|
38
38
|
require('./DropDown-e8216602.js');
|
|
39
39
|
require('./Input-3ecdb905.js');
|
|
40
40
|
require('compute-scroll-into-view');
|
package/dist/cjs/version.js
CHANGED
package/dist/es/index.js
CHANGED
|
@@ -28,10 +28,10 @@ import '@appbaseio/analytics';
|
|
|
28
28
|
import 'url-search-params-polyfill';
|
|
29
29
|
export { default as ReactiveBase } from './ReactiveBase.js';
|
|
30
30
|
import 'hotkeys-js';
|
|
31
|
-
import 'remarkable';
|
|
32
31
|
import 'xss';
|
|
33
|
-
import
|
|
34
|
-
|
|
32
|
+
import 'remarkable';
|
|
33
|
+
import { i as install } from './install-45c35093.js';
|
|
34
|
+
export { A as AIAnswer, R as ReactiveComponentPrivate, S as SearchBox, T as TreeList, i as install } from './install-45c35093.js';
|
|
35
35
|
import './DropDown-845623df.js';
|
|
36
36
|
import './Input-83dee8c5.js';
|
|
37
37
|
import 'compute-scroll-into-view';
|