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

masonic

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

masonic - npm Package Compare versions

Comparing version 1.0.20 to 1.0.21

5

dist/cjs/Masonry.js

@@ -146,5 +146,6 @@ 'use strict';

ref,
role: props.role + 'item',
style: props.style,
}),
[props.style, ref]
[props.style, props.role, ref]
);

@@ -371,2 +372,3 @@ return _react.default.createElement(props.as, elementProps, props.children);

as: itemAs,
role,
resizeObserver: this.resizeObserver,

@@ -418,2 +420,3 @@ observerRef: this.setItemRef(index),

as: itemAs,
role,
resizeObserver: this.resizeObserver,

@@ -420,0 +423,0 @@ observerRef: this.setItemRef(index),

@@ -101,5 +101,6 @@ function _extends() {

ref,
role: props.role + 'item',
style: props.style,
}),
[props.style, ref]
[props.style, props.role, ref]
);

@@ -326,2 +327,3 @@ return React.createElement(props.as, elementProps, props.children);

as: itemAs,
role,
resizeObserver: this.resizeObserver,

@@ -373,2 +375,3 @@ observerRef: this.setItemRef(index),

as: itemAs,
role,
resizeObserver: this.resizeObserver,

@@ -375,0 +378,0 @@ observerRef: this.setItemRef(index),

2

package.json
{
"name": "masonic",
"version": "1.0.20",
"version": "1.0.21",
"description": "A React virtualized masonry component for the window based on the original by Brian Vaughn",

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

@@ -69,3 +69,6 @@ import React, {useCallback, useMemo, useEffect, useRef} from 'react'

)
const elementProps = useMemo(() => ({ref, style: props.style}), [props.style, ref])
const elementProps = useMemo(
() => ({ref, role: `${props.role}item`, style: props.style}),
[props.style, props.role, ref]
)
return React.createElement(props.as, elementProps, props.children)

@@ -286,2 +289,3 @@ }

as: itemAs,
role,
resizeObserver: this.resizeObserver,

@@ -329,2 +333,3 @@ observerRef: this.setItemRef(index),

as: itemAs,
role,
resizeObserver: this.resizeObserver,

@@ -331,0 +336,0 @@ observerRef: this.setItemRef(index),

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