@rc-component/trigger 1.6.2 → 1.6.3

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/README.md CHANGED
@@ -2,7 +2,12 @@
2
2
 
3
3
  React Trigger Component
4
4
 
5
- [![NPM version][npm-image]][npm-url] [![build status][github-actions-image]][github-actions-url] [![Test coverage][coveralls-image]][coveralls-url] [![npm download][download-image]][download-url] [![bundle size][bundlephobia-image]][bundlephobia-url] [![dumi][dumi-image]][dumi-url]
5
+ [![NPM version][npm-image]][npm-url]
6
+ [![npm download][download-image]][download-url]
7
+ [![build status][github-actions-image]][github-actions-url]
8
+ [![Test coverage][codecov-image]][codecov-url]
9
+ [![bundle size][bundlephobia-image]][bundlephobia-url]
10
+ [![dumi][dumi-image]][dumi-url]
6
11
 
7
12
  [npm-image]: http://img.shields.io/npm/v/@rc-component/trigger.svg?style=flat-square
8
13
  [npm-url]: http://npmjs.org/package/@rc-component/trigger
@@ -10,8 +15,8 @@ React Trigger Component
10
15
  [github-actions-url]: https://github.com/react-component/trigger/actions
11
16
  [circleci-image]: https://img.shields.io/circleci/react-component/trigger/master?style=flat-square
12
17
  [circleci-url]: https://circleci.com/gh/react-component/trigger
13
- [coveralls-image]: https://img.shields.io/coveralls/react-component/trigger.svg?style=flat-square
14
- [coveralls-url]: https://coveralls.io/r/react-component/trigger?branch=master
18
+ [codecov-image]: https://img.shields.io/codecov/c/github/react-component/trigger/master.svg?style=flat-square
19
+ [codecov-url]: https://app.codecov.io/gh/react-component/trigger
15
20
  [david-url]: https://david-dm.org/react-component/trigger
16
21
  [david-image]: https://david-dm.org/react-component/trigger/status.svg?style=flat-square
17
22
  [david-dev-url]: https://david-dm.org/react-component/trigger?type=dev
package/es/index.js CHANGED
@@ -124,7 +124,7 @@ export function generateTrigger() {
124
124
  var _childDOM$getRootNode, _popupEle$getRootNode;
125
125
  var childDOM = targetEle;
126
126
  return (childDOM === null || childDOM === void 0 ? void 0 : childDOM.contains(ele)) || (childDOM === null || childDOM === void 0 ? void 0 : (_childDOM$getRootNode = childDOM.getRootNode()) === null || _childDOM$getRootNode === void 0 ? void 0 : _childDOM$getRootNode.host) === ele || ele === childDOM || (popupEle === null || popupEle === void 0 ? void 0 : popupEle.contains(ele)) || (popupEle === null || popupEle === void 0 ? void 0 : (_popupEle$getRootNode = popupEle.getRootNode()) === null || _popupEle$getRootNode === void 0 ? void 0 : _popupEle$getRootNode.host) === ele || ele === popupEle || Object.values(subPopupElements.current).some(function (subPopupEle) {
127
- return subPopupEle.contains(ele) || ele === subPopupEle;
127
+ return (subPopupEle === null || subPopupEle === void 0 ? void 0 : subPopupEle.contains(ele)) || ele === subPopupEle;
128
128
  });
129
129
  });
130
130
 
package/lib/index.js CHANGED
@@ -133,7 +133,7 @@ function generateTrigger() {
133
133
  var _childDOM$getRootNode, _popupEle$getRootNode;
134
134
  var childDOM = targetEle;
135
135
  return (childDOM === null || childDOM === void 0 ? void 0 : childDOM.contains(ele)) || (childDOM === null || childDOM === void 0 ? void 0 : (_childDOM$getRootNode = childDOM.getRootNode()) === null || _childDOM$getRootNode === void 0 ? void 0 : _childDOM$getRootNode.host) === ele || ele === childDOM || (popupEle === null || popupEle === void 0 ? void 0 : popupEle.contains(ele)) || (popupEle === null || popupEle === void 0 ? void 0 : (_popupEle$getRootNode = popupEle.getRootNode()) === null || _popupEle$getRootNode === void 0 ? void 0 : _popupEle$getRootNode.host) === ele || ele === popupEle || Object.values(subPopupElements.current).some(function (subPopupEle) {
136
- return subPopupEle.contains(ele) || ele === subPopupEle;
136
+ return (subPopupEle === null || subPopupEle === void 0 ? void 0 : subPopupEle.contains(ele)) || ele === subPopupEle;
137
137
  });
138
138
  });
139
139
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rc-component/trigger",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "description": "base abstract trigger component for react",
5
5
  "engines": {
6
6
  "node": ">=8.x"