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

@socketsupply/components

Package Overview
Dependencies
Maintainers
3
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@socketsupply/components - npm Package Compare versions

Comparing version 13.2.1 to 13.2.2

tags

17

dialog/index.js
const Tonic = require('@socketsupply/tonic')
const FOCUS_CHANGE_TIMEOUT = 100
let focused = true
let focusedTimeout = null
window.addEventListener('blur', () => {
clearTimeout(focusedTimeout)
focused = false
})
window.addEventListener('focus', () => {
clearTimeout(focusedTimeout)
focusedTimeout = setTimeout(() => { focused = true }, FOCUS_CHANGE_TIMEOUT)
})
class TonicDialog extends Tonic {

@@ -175,3 +190,3 @@ constructor () {

this._escapeHandler = e => {
if (e.keyCode === 27) this.hide()
if (focused && e.keyCode === 27) this.hide()
}

@@ -178,0 +193,0 @@

2

package.json
{
"name": "@socketsupply/components",
"version": "13.2.1",
"version": "13.2.2",
"description": "Example components",

@@ -5,0 +5,0 @@ "scripts": {

@@ -390,4 +390,3 @@ const Tonic = require('@socketsupply/tonic')

const rowsLength = this.rows ? this.rows.length : 0
const totalHeight = rowsLength * this.props.rowHeight
const totalHeight = this.rows.length * this.props.rowHeight
if (

@@ -404,3 +403,3 @@ viewEnd === totalHeight &&

if (
rowsLength === this.props.maxRowsLength &&
this.rows.length === this.props.maxRowsLength &&
viewStart === 0 &&

@@ -417,3 +416,3 @@ this.prefetchTop &&

if (!popHappened && (
rowsLength === this.props.maxRowsLength &&
this.rows.length === this.props.maxRowsLength &&
start <= this.props.prefetchThreshold

@@ -465,6 +464,4 @@ )) {

const start = i * parseInt(this.props.rowsPerPage, 10)
const limit = Math.min((i + 1) * this.props.rowsPerPage, this.rows.length)
const rowsLength = this.rows ? this.rows.length : 0
const limit = Math.min((i + 1) * this.props.rowsPerPage, rowsLength)
const inner = this.querySelector('.tonic--windowed--inner')

@@ -471,0 +468,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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