Socket
Socket
Sign inDemoInstall

react-page-layout

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-page-layout - npm Package Compare versions

Comparing version 0.9.4 to 0.9.5

3

examples/package.json

@@ -13,4 +13,3 @@ {

"react": "^15.4.2",
"react-dom": "^15.4.2",
"react-page-layout": "file:../"
"react-dom": "^15.4.2"
},

@@ -17,0 +16,0 @@ "devDependencies": {

import React, { Component } from 'react';
import { LayoutProvider } from 'react-page-layout';
import { LayoutProvider } from '../../src';
import FullLayout from './FullLayout';

@@ -4,0 +4,0 @@ import PanelLayout from './PanelLayout';

import React, { PropTypes } from 'react';
import { Slot } from 'react-page-layout';
import { Slot } from '../../src';

@@ -4,0 +4,0 @@ function PrivateLayout(props) {

import React, { PureComponent } from 'react';
import { Page, Section } from 'react-page-layout';
import { Page, Section } from '../../src';
import Radios from './Radios';

@@ -4,0 +4,0 @@

import React, { PropTypes } from 'react';
import { Slot } from 'react-page-layout';
import { Slot } from '../../src';

@@ -4,0 +4,0 @@ function PrivateLayout(props) {

{
"name": "react-page-layout",
"version": "0.9.4",
"version": "0.9.5",
"description": "Layout system for react",

@@ -5,0 +5,0 @@ "author": "Jose R Villalon Soler",

@@ -20,3 +20,4 @@ import React, { PureComponent, PropTypes } from 'react';

if (isPlainObject(parent)) {
if (React.Component.isPrototypeOf(Section) || React.PureComponent.isPrototypeOf(Section)) {
// Check if the element is a section
if (parent.type && parent.type.displayName === 'Section') {
return { [parent.props.slot]: parent };

@@ -23,0 +24,0 @@ }

@@ -6,2 +6,4 @@ /* eslint no-unreachable: off, react/require-render-return: off */

static displayName = 'Section';
static propTypes = {

@@ -8,0 +10,0 @@ slot: PropTypes.string.isRequired,

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