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

@rc-component/trigger

Package Overview
Dependencies
Maintainers
0
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 2.2.3 to 2.2.4

10

es/index.js

@@ -496,3 +496,11 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";

,
onClick: onPopupClick
onClick: onPopupClick,
onMouseDownCapture: function onMouseDownCapture() {
// Additional check for click to hide
// Since `createPortal` will not included in the popup element
// So we use capture to handle this
if (clickToHide) {
triggerOpen(true);
}
}
// Mask

@@ -499,0 +507,0 @@ ,

@@ -14,2 +14,3 @@ import type { CSSMotionProps } from 'rc-motion';

onPointerEnter?: React.MouseEventHandler<HTMLDivElement>;
onMouseDownCapture?: React.MouseEventHandler<HTMLDivElement>;
zIndex?: number;

@@ -16,0 +17,0 @@ mask?: boolean;

4

es/Popup/index.js

@@ -38,2 +38,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

onPointerEnter = props.onPointerEnter,
onMouseDownCapture = props.onMouseDownCapture,
ready = props.ready,

@@ -171,3 +172,4 @@ offsetX = props.offsetX,

onPointerEnter: onPointerEnter,
onClick: onClick
onClick: onClick,
onMouseDownCapture: onMouseDownCapture
}, arrow && /*#__PURE__*/React.createElement(Arrow, {

@@ -174,0 +176,0 @@ prefixCls: prefixCls,

@@ -504,3 +504,11 @@ "use strict";

,
onClick: onPopupClick
onClick: onPopupClick,
onMouseDownCapture: function onMouseDownCapture() {
// Additional check for click to hide
// Since `createPortal` will not included in the popup element
// So we use capture to handle this
if (clickToHide) {
triggerOpen(true);
}
}
// Mask

@@ -507,0 +515,0 @@ ,

@@ -14,2 +14,3 @@ import type { CSSMotionProps } from 'rc-motion';

onPointerEnter?: React.MouseEventHandler<HTMLDivElement>;
onMouseDownCapture?: React.MouseEventHandler<HTMLDivElement>;
zIndex?: number;

@@ -16,0 +17,0 @@ mask?: boolean;

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

onPointerEnter = props.onPointerEnter,
onMouseDownCapture = props.onMouseDownCapture,
ready = props.ready,

@@ -179,3 +180,4 @@ offsetX = props.offsetX,

onPointerEnter: onPointerEnter,
onClick: onClick
onClick: onClick,
onMouseDownCapture: onMouseDownCapture
}, arrow && /*#__PURE__*/React.createElement(_Arrow.default, {

@@ -182,0 +184,0 @@ prefixCls: prefixCls,

{
"name": "@rc-component/trigger",
"version": "2.2.3",
"version": "2.2.4",
"description": "base abstract trigger component for react",

@@ -36,3 +36,3 @@ "engines": {

"compile": "father build && lessc assets/index.less assets/index.css",
"prepublishOnly": "npm run compile && np --yolo --no-publish",
"prepublishOnly": "npm run compile ",
"lint": "eslint src/ docs/examples/ --ext .tsx,.ts,.jsx,.js",

@@ -39,0 +39,0 @@ "test": "rc-test",

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