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

@pluralsight/react-utils

Package Overview
Dependencies
Maintainers
1
Versions
1213
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pluralsight/react-utils - npm Package Compare versions

Comparing version 0.0.0-experimental-49042a-20220728 to 0.0.0-experimental-83afd4-20220815

build/hooks/useEscToClose.d.ts

2

build/hooks/useFocusTrap.d.ts
import type { RefObject } from 'react';
export declare function useFocusTrap(triggerRef: RefObject<HTMLButtonElement>): {
ref: RefObject<HTMLElement>;
initFocusTrap: () => void;
setupFocusTrap: () => void;
onKeydown: (event: any) => void;
};

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

ref: modalRef,
initFocusTrap: handleInitFocusTrap,
setupFocusTrap: handleInitFocusTrap,
onKeydown: handleFocus,

@@ -56,0 +56,0 @@ };

@@ -0,1 +1,2 @@

export { useEscToClose } from './hooks/useEscToClose';
export { useFocusTrap } from './hooks/useFocusTrap';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useFocusTrap = void 0;
exports.useFocusTrap = exports.useEscToClose = void 0;
var useEscToClose_1 = require("./hooks/useEscToClose");
Object.defineProperty(exports, "useEscToClose", { enumerable: true, get: function () { return useEscToClose_1.useEscToClose; } });
var useFocusTrap_1 = require("./hooks/useFocusTrap");
Object.defineProperty(exports, "useFocusTrap", { enumerable: true, get: function () { return useFocusTrap_1.useFocusTrap; } });

@@ -0,1 +1,2 @@

export { useEscToClose } from './hooks/useEscToClose'
export { useFocusTrap } from './hooks/useFocusTrap'
{
"name": "@pluralsight/react-utils",
"version": "0.0.0-experimental-49042a-20220728",
"version": "0.0.0-experimental-83afd4-20220815",
"description": "A set of React custom hooks for Pluralsight.",

@@ -5,0 +5,0 @@ "main": "build/index.js",

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