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.14.3 to 1.14.4

2

es/hooks/useAction.d.ts
import type { ActionType } from '../interface';
declare type ActionTypes = ActionType | ActionType[];
type ActionTypes = ActionType | ActionType[];
export default function useAction(mobile: boolean, action: ActionTypes, showAction?: ActionTypes, hideAction?: ActionTypes): [showAction: Set<ActionType>, hideAction: Set<ActionType>];
export {};

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

if (nextPopupY < visibleRegionArea.top) {
nextOffsetY -= nextPopupY - visibleRegionArea.top;
nextOffsetY -= nextPopupY - visibleRegionArea.top + popupOffsetY;
if (targetRect.y + targetHeight < visibleRegionArea.top + numShiftY) {

@@ -425,3 +425,3 @@ nextOffsetY += targetRect.y - visibleRegionArea.top + targetHeight - numShiftY;

if (nextPopupBottom > visibleRegionArea.bottom) {
nextOffsetY -= nextPopupBottom - visibleRegionArea.bottom;
nextOffsetY -= nextPopupBottom - visibleRegionArea.bottom - popupOffsetY;
if (targetRect.y > visibleRegionArea.bottom - numShiftY) {

@@ -428,0 +428,0 @@ nextOffsetY += targetRect.y - visibleRegionArea.bottom + numShiftY;

/// <reference types="react" />
import type { CSSMotionProps } from 'rc-motion';
export declare type Placement = 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom';
export declare type AlignPointTopBottom = 't' | 'b' | 'c';
export declare type AlignPointLeftRight = 'l' | 'r' | 'c';
export type Placement = 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom';
export type AlignPointTopBottom = 't' | 'b' | 'c';
export type AlignPointLeftRight = 'l' | 'r' | 'c';
/** Two char of 't' 'b' 'c' 'l' 'r'. Example: 'lt' */
export declare type AlignPoint = `${AlignPointTopBottom}${AlignPointLeftRight}`;
export declare type OffsetType = number | `${number}%`;
export type AlignPoint = `${AlignPointTopBottom}${AlignPointLeftRight}`;
export type OffsetType = number | `${number}%`;
export interface AlignType {

@@ -78,11 +78,11 @@ /**

}
export declare type ArrowPos = {
export type ArrowPos = {
x?: number;
y?: number;
};
export declare type BuildInPlacements = Record<string, AlignType>;
export declare type StretchType = string;
export declare type ActionType = 'hover' | 'focus' | 'click' | 'contextMenu';
export declare type AnimationType = string;
export declare type TransitionNameType = string;
export type BuildInPlacements = Record<string, AlignType>;
export type StretchType = string;
export type ActionType = 'hover' | 'focus' | 'click' | 'contextMenu';
export type AnimationType = string;
export type TransitionNameType = string;
export interface Point {

@@ -89,0 +89,0 @@ pageX: number;

import type { ActionType } from '../interface';
declare type ActionTypes = ActionType | ActionType[];
type ActionTypes = ActionType | ActionType[];
export default function useAction(mobile: boolean, action: ActionTypes, showAction?: ActionTypes, hideAction?: ActionTypes): [showAction: Set<ActionType>, hideAction: Set<ActionType>];
export {};

@@ -424,3 +424,3 @@ "use strict";

if (nextPopupY < visibleRegionArea.top) {
nextOffsetY -= nextPopupY - visibleRegionArea.top;
nextOffsetY -= nextPopupY - visibleRegionArea.top + popupOffsetY;
if (targetRect.y + targetHeight < visibleRegionArea.top + numShiftY) {

@@ -433,3 +433,3 @@ nextOffsetY += targetRect.y - visibleRegionArea.top + targetHeight - numShiftY;

if (nextPopupBottom > visibleRegionArea.bottom) {
nextOffsetY -= nextPopupBottom - visibleRegionArea.bottom;
nextOffsetY -= nextPopupBottom - visibleRegionArea.bottom - popupOffsetY;
if (targetRect.y > visibleRegionArea.bottom - numShiftY) {

@@ -436,0 +436,0 @@ nextOffsetY += targetRect.y - visibleRegionArea.bottom + numShiftY;

/// <reference types="react" />
import type { CSSMotionProps } from 'rc-motion';
export declare type Placement = 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom';
export declare type AlignPointTopBottom = 't' | 'b' | 'c';
export declare type AlignPointLeftRight = 'l' | 'r' | 'c';
export type Placement = 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom';
export type AlignPointTopBottom = 't' | 'b' | 'c';
export type AlignPointLeftRight = 'l' | 'r' | 'c';
/** Two char of 't' 'b' 'c' 'l' 'r'. Example: 'lt' */
export declare type AlignPoint = `${AlignPointTopBottom}${AlignPointLeftRight}`;
export declare type OffsetType = number | `${number}%`;
export type AlignPoint = `${AlignPointTopBottom}${AlignPointLeftRight}`;
export type OffsetType = number | `${number}%`;
export interface AlignType {

@@ -78,11 +78,11 @@ /**

}
export declare type ArrowPos = {
export type ArrowPos = {
x?: number;
y?: number;
};
export declare type BuildInPlacements = Record<string, AlignType>;
export declare type StretchType = string;
export declare type ActionType = 'hover' | 'focus' | 'click' | 'contextMenu';
export declare type AnimationType = string;
export declare type TransitionNameType = string;
export type BuildInPlacements = Record<string, AlignType>;
export type StretchType = string;
export type ActionType = 'hover' | 'focus' | 'click' | 'contextMenu';
export type AnimationType = string;
export type TransitionNameType = string;
export interface Point {

@@ -89,0 +89,0 @@ pageX: number;

{
"name": "@rc-component/trigger",
"version": "1.14.3",
"version": "1.14.4",
"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