Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rc-component/trigger

Package Overview
Dependencies
Maintainers
4
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rc-component/trigger - npm Package Compare versions

Comparing version 1.13.2 to 1.13.3

es/TriggerWrapper.d.ts

5

es/hooks/useWinClick.js

@@ -42,3 +42,2 @@ import { warning } from 'rc-util';

var win = getWin(popupEle);
var targetRoot = targetEle === null || targetEle === void 0 ? void 0 : targetEle.getRootNode();
win.addEventListener('mousedown', onWindowMouseDown);

@@ -56,3 +55,5 @@ win.addEventListener('click', onWindowClick);

if (process.env.NODE_ENV !== 'production') {
var popupRoot = popupEle.getRootNode();
var _targetEle$getRootNod, _popupEle$getRootNode;
var targetRoot = targetEle === null || targetEle === void 0 ? void 0 : (_targetEle$getRootNod = targetEle.getRootNode) === null || _targetEle$getRootNod === void 0 ? void 0 : _targetEle$getRootNod.call(targetEle);
var popupRoot = (_popupEle$getRootNode = popupEle.getRootNode) === null || _popupEle$getRootNode === void 0 ? void 0 : _popupEle$getRootNode.call(popupEle);
warning(targetRoot === popupRoot, "trigger element and popup element should in same shadow root.");

@@ -59,0 +60,0 @@ }

@@ -50,3 +50,2 @@ "use strict";

var win = (0, _util.getWin)(popupEle);
var targetRoot = targetEle === null || targetEle === void 0 ? void 0 : targetEle.getRootNode();
win.addEventListener('mousedown', onWindowMouseDown);

@@ -64,3 +63,5 @@ win.addEventListener('click', onWindowClick);

if (process.env.NODE_ENV !== 'production') {
var popupRoot = popupEle.getRootNode();
var _targetEle$getRootNod, _popupEle$getRootNode;
var targetRoot = targetEle === null || targetEle === void 0 ? void 0 : (_targetEle$getRootNod = targetEle.getRootNode) === null || _targetEle$getRootNod === void 0 ? void 0 : _targetEle$getRootNod.call(targetEle);
var popupRoot = (_popupEle$getRootNode = popupEle.getRootNode) === null || _popupEle$getRootNode === void 0 ? void 0 : _popupEle$getRootNode.call(popupEle);
(0, _rcUtil.warning)(targetRoot === popupRoot, "trigger element and popup element should in same shadow root.");

@@ -67,0 +68,0 @@ }

2

package.json
{
"name": "@rc-component/trigger",
"version": "1.13.2",
"version": "1.13.3",
"description": "base abstract trigger component for react",

@@ -5,0 +5,0 @@ "engines": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc