instantsearch.js 4.74.1 → 4.74.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.
- package/cjs/components/Breadcrumb/Breadcrumb.js +7 -0
- package/cjs/lib/version.js +1 -1
- package/dist/instantsearch.development.js +8 -2
- package/dist/instantsearch.development.js.map +1 -1
- package/dist/instantsearch.production.min.js +2 -2
- package/dist/instantsearch.production.min.js.map +1 -1
- package/es/components/Breadcrumb/Breadcrumb.js +7 -0
- package/es/lib/version.d.ts +1 -1
- package/es/lib/version.js +1 -1
- package/package.json +5 -5
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
import { cx } from 'instantsearch-ui-components';
|
|
3
3
|
import { h } from 'preact';
|
|
4
|
+
import { isSpecialClick } from "../../lib/utils/index.js";
|
|
4
5
|
import Template from "../Template/Template.js";
|
|
5
6
|
var Breadcrumb = function Breadcrumb(_ref) {
|
|
6
7
|
var items = _ref.items,
|
|
@@ -21,6 +22,9 @@ var Breadcrumb = function Breadcrumb(_ref) {
|
|
|
21
22
|
className: cssClasses.link,
|
|
22
23
|
href: createURL(null),
|
|
23
24
|
onClick: function onClick(event) {
|
|
25
|
+
if (isSpecialClick(event)) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
24
28
|
event.preventDefault();
|
|
25
29
|
refine(null);
|
|
26
30
|
}
|
|
@@ -41,6 +45,9 @@ var Breadcrumb = function Breadcrumb(_ref) {
|
|
|
41
45
|
className: cssClasses.link,
|
|
42
46
|
href: createURL(item.value),
|
|
43
47
|
onClick: function onClick(event) {
|
|
48
|
+
if (isSpecialClick(event)) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
44
51
|
event.preventDefault();
|
|
45
52
|
refine(item.value);
|
|
46
53
|
}
|
package/es/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.74.
|
|
1
|
+
declare const _default: "4.74.2";
|
|
2
2
|
export default _default;
|
package/es/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '4.74.
|
|
1
|
+
export default '4.74.2';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "instantsearch.js",
|
|
3
|
-
"version": "4.74.
|
|
3
|
+
"version": "4.74.2",
|
|
4
4
|
"description": "InstantSearch.js is a JavaScript library for building performant and instant search experiences with Algolia.",
|
|
5
5
|
"homepage": "https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/js/",
|
|
6
6
|
"types": "es/index.d.ts",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"watch:es": "yarn --silent build:es:base --watch"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@instantsearch/mocks": "1.
|
|
60
|
-
"@instantsearch/tests": "1.
|
|
61
|
-
"@instantsearch/testutils": "1.
|
|
59
|
+
"@instantsearch/mocks": "1.57.0",
|
|
60
|
+
"@instantsearch/tests": "1.57.0",
|
|
61
|
+
"@instantsearch/testutils": "1.46.0",
|
|
62
62
|
"@storybook/html": "5.3.9",
|
|
63
63
|
"@types/scriptjs": "0.0.2",
|
|
64
64
|
"algoliasearch": "5.1.1",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"scriptjs": "2.5.9",
|
|
67
67
|
"webpack": "4.47.0"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "0ae70b92c7c899fcb33f0f93a9ebf17c86cbf03e"
|
|
70
70
|
}
|