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

@lightningtv/solid

Package Overview
Dependencies
Maintainers
0
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lightningtv/solid - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

6

dist/src/primitives/useFocusManager.js

@@ -33,7 +33,8 @@ import { createEffect, on, createSignal, untrack, } from 'solid-js';

createEffect(on(activeElement, (currentFocusedElm, prevFocusedElm, prevFocusPath = []) => {
const newFocusedElms = [];
let current = currentFocusedElm;
const fp = [];
while (current) {
if (!current.states.has('focus')) {
// Always call Focus on activeElement in case user called setFocus() - Useful for Rows / Columns that have had children
// changed and we can retrigger forwarding focus to newly added children
if (!current.states.has('focus') || current === currentFocusedElm) {
current.states.add('focus');

@@ -44,3 +45,2 @@ isFunc(current.onFocus) &&

current.onFocusChanged.call(current, true, currentFocusedElm, prevFocusedElm);
newFocusedElms.push(current);
}

@@ -47,0 +47,0 @@ fp.push(current);

{
"name": "@lightningtv/solid",
"version": "1.0.2",
"version": "1.0.3",
"description": "Lightning Renderer for Solid Universal",

@@ -45,3 +45,3 @@ "type": "module",

"dependencies": {
"@lightningtv/core": "^1.0.2",
"@lightningtv/core": "^1.0.3",
"@solid-primitives/event-listener": "^2.3.3",

@@ -48,0 +48,0 @@ "@solid-primitives/keyboard": "^1.2.8",

@@ -131,3 +131,2 @@ import {

) => {
const newFocusedElms = [];
let current = currentFocusedElm;

@@ -137,3 +136,5 @@

while (current) {
if (!current.states.has('focus')) {
// Always call Focus on activeElement in case user called setFocus() - Useful for Rows / Columns that have had children
// changed and we can retrigger forwarding focus to newly added children
if (!current.states.has('focus') || current === currentFocusedElm) {
current.states.add('focus');

@@ -149,3 +150,2 @@ isFunc(current.onFocus) &&

);
newFocusedElms.push(current);
}

@@ -152,0 +152,0 @@ fp.push(current);

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