New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@react-aria/dialog

Package Overview
Dependencies
Maintainers
2
Versions
896
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-aria/dialog - npm Package Compare versions

Comparing version 3.0.0-nightly-c78b24831-250206 to 3.0.0-nightly-c8fdba56e-250225

6

dist/useDialog.main.js
var $HoXek$reactariautils = require("@react-aria/utils");
var $HoXek$reactariafocus = require("@react-aria/focus");
var $HoXek$reactariainteractions = require("@react-aria/interactions");
var $HoXek$react = require("react");

@@ -34,3 +34,3 @@ var $HoXek$reactariaoverlays = require("@react-aria/overlays");

if (ref.current && !ref.current.contains(document.activeElement)) {
(0, $HoXek$reactariafocus.focusSafely)(ref.current);
(0, $HoXek$reactariainteractions.focusSafely)(ref.current);
// Safari on iOS does not move the VoiceOver cursor to the dialog

@@ -44,3 +44,3 @@ // or announce that it has opened until it has rendered. A workaround

ref.current.blur();
(0, $HoXek$reactariafocus.focusSafely)(ref.current);
(0, $HoXek$reactariainteractions.focusSafely)(ref.current);
}

@@ -47,0 +47,0 @@ isRefocusing.current = false;

import {useSlotId as $i6df2$useSlotId, filterDOMProps as $i6df2$filterDOMProps} from "@react-aria/utils";
import {focusSafely as $i6df2$focusSafely} from "@react-aria/focus";
import {focusSafely as $i6df2$focusSafely} from "@react-aria/interactions";
import {useRef as $i6df2$useRef, useEffect as $i6df2$useEffect} from "react";

@@ -4,0 +4,0 @@ import {useOverlayFocusContain as $i6df2$useOverlayFocusContain} from "@react-aria/overlays";

{
"name": "@react-aria/dialog",
"version": "3.0.0-nightly-c78b24831-250206",
"version": "3.0.0-nightly-c8fdba56e-250225",
"description": "Spectrum UI components in React",

@@ -29,7 +29,7 @@ "license": "Apache-2.0",

"dependencies": {
"@react-aria/focus": "3.0.0-nightly-c78b24831-250206",
"@react-aria/overlays": "3.0.0-nightly-c78b24831-250206",
"@react-aria/utils": "3.0.0-nightly-c78b24831-250206",
"@react-types/dialog": "3.0.0-nightly-c78b24831-250206",
"@react-types/shared": "3.0.0-nightly-c78b24831-250206",
"@react-aria/interactions": "3.0.0-nightly-c8fdba56e-250225",
"@react-aria/overlays": "3.0.0-nightly-c8fdba56e-250225",
"@react-aria/utils": "3.0.0-nightly-c8fdba56e-250225",
"@react-types/dialog": "3.0.0-nightly-c8fdba56e-250225",
"@react-types/shared": "3.0.0-nightly-c8fdba56e-250225",
"@swc/helpers": "^0.5.0"

@@ -36,0 +36,0 @@ },

@@ -16,3 +16,3 @@ /*

import {filterDOMProps, useSlotId} from '@react-aria/utils';
import {focusSafely} from '@react-aria/focus';
import {focusSafely} from '@react-aria/interactions';
import {useEffect, useRef} from 'react';

@@ -34,3 +34,5 @@ import {useOverlayFocusContain} from '@react-aria/overlays';

export function useDialog(props: AriaDialogProps, ref: RefObject<FocusableElement | null>): DialogAria {
let {role = 'dialog'} = props;
let {
role = 'dialog'
} = props;
let titleId: string | undefined = useSlotId();

@@ -37,0 +39,0 @@ titleId = props['aria-label'] ? undefined : titleId;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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