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

@zag-js/live-region

Package Overview
Dependencies
Maintainers
1
Versions
700
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/live-region - npm Package Compare versions

Comparing version 0.1.4 to 0.2.0

7

dist/index.js

@@ -47,9 +47,10 @@ "use strict";

function createLiveRegion(opts = {}) {
var _a;
const { level = "polite", document: doc = document, root, delay: _delay = 0 } = opts;
const win = doc.defaultView ?? window;
const parent = root ?? doc.body;
const win = (_a = doc.defaultView) != null ? _a : window;
const parent = root != null ? root : doc.body;
function announce(message, delay) {
const oldRegion = doc.getElementById(ID);
oldRegion == null ? void 0 : oldRegion.remove();
delay = delay ?? _delay;
delay = delay != null ? delay : _delay;
const region = doc.createElement("span");

@@ -56,0 +57,0 @@ region.id = ID;

{
"name": "@zag-js/live-region",
"version": "0.1.4",
"version": "0.2.0",
"description": "Implementing live region for screen readers",

@@ -22,3 +22,3 @@ "main": "dist/index.js",

"devDependencies": {
"@zag-js/dom-utils": "0.1.13"
"@zag-js/dom-utils": "0.2.0"
},

@@ -25,0 +25,0 @@ "publishConfig": {

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