Socket
Socket
Sign inDemoInstall

@alisowski/react-resizable-panels

Package Overview
Dependencies
5
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.20 to 0.1.21

8

dist/alisowski-react-resizable-panels.browser.cjs.js

@@ -627,3 +627,4 @@ 'use strict';

units,
groupSizePixels
groupSizePixels,
logWarnings = true
}) {

@@ -1193,3 +1194,6 @@ // Clone because this method modifies

prevSizes,
units
units,
// Here we are using validatePanelGroupLayout to update the sizes as the window resizes.
// We don't use adjustByDelta because we don't want to calculate the delta size for the screen.
logWarnings: false
});

@@ -1196,0 +1200,0 @@ if (!areEqual(prevSizes, nextSizes)) {

@@ -603,3 +603,4 @@ import * as React from 'react';

units,
groupSizePixels
groupSizePixels,
logWarnings = true
}) {

@@ -1169,3 +1170,6 @@ // Clone because this method modifies

prevSizes,
units
units,
// Here we are using validatePanelGroupLayout to update the sizes as the window resizes.
// We don't use adjustByDelta because we don't want to calculate the delta size for the screen.
logWarnings: false
});

@@ -1172,0 +1176,0 @@ if (!areEqual(prevSizes, nextSizes)) {

@@ -629,3 +629,4 @@ 'use strict';

units,
groupSizePixels
groupSizePixels,
logWarnings = true
}) {

@@ -1195,3 +1196,6 @@ // Clone because this method modifies

prevSizes,
units
units,
// Here we are using validatePanelGroupLayout to update the sizes as the window resizes.
// We don't use adjustByDelta because we don't want to calculate the delta size for the screen.
logWarnings: false
});

@@ -1198,0 +1202,0 @@ if (!areEqual(prevSizes, nextSizes)) {

@@ -519,3 +519,4 @@ 'use strict';

units,
groupSizePixels
groupSizePixels,
logWarnings = true
}) {

@@ -538,4 +539,4 @@ // Clone because this method modifies

nextSizes[index] = safeNextSize;
{
console.error(`Invalid size (${nextSize}) specified for Panel "${panel.current.id}" given the panel's min/max size constraints`);
if (logWarnings) {
console.error(`Invalid size (${nextSize}) specified for Panel "${panel.current.id}" given the panel's min (${panel.current.minSize}) and max (${panel.current.maxSize}) size constraints`);
}

@@ -592,3 +593,3 @@ }

if (remainingSize.toFixed(3) !== "0.000" && remainingSize > 0.000000001) {
{
if (logWarnings) {
console.error(`"Invalid panel group configuration; default panel sizes should total 100% but was ${100 - remainingSize}%`);

@@ -595,0 +596,0 @@ }

@@ -495,3 +495,4 @@ import * as React from 'react';

units,
groupSizePixels
groupSizePixels,
logWarnings = true
}) {

@@ -514,4 +515,4 @@ // Clone because this method modifies

nextSizes[index] = safeNextSize;
{
console.error(`Invalid size (${nextSize}) specified for Panel "${panel.current.id}" given the panel's min/max size constraints`);
if (logWarnings) {
console.error(`Invalid size (${nextSize}) specified for Panel "${panel.current.id}" given the panel's min (${panel.current.minSize}) and max (${panel.current.maxSize}) size constraints`);
}

@@ -568,3 +569,3 @@ }

if (remainingSize.toFixed(3) !== "0.000" && remainingSize > 0.000000001) {
{
if (logWarnings) {
console.error(`"Invalid panel group configuration; default panel sizes should total 100% but was ${100 - remainingSize}%`);

@@ -571,0 +572,0 @@ }

@@ -605,3 +605,4 @@ import * as React from 'react';

units,
groupSizePixels
groupSizePixels,
logWarnings = true
}) {

@@ -1171,3 +1172,6 @@ // Clone because this method modifies

prevSizes,
units
units,
// Here we are using validatePanelGroupLayout to update the sizes as the window resizes.
// We don't use adjustByDelta because we don't want to calculate the delta size for the screen.
logWarnings: false
});

@@ -1174,0 +1178,0 @@ if (!areEqual(prevSizes, nextSizes)) {

@@ -504,3 +504,4 @@ 'use strict';

units,
groupSizePixels
groupSizePixels,
logWarnings = true
}) {

@@ -507,0 +508,0 @@ // Clone because this method modifies

@@ -480,3 +480,4 @@ import * as React from 'react';

units,
groupSizePixels
groupSizePixels,
logWarnings = true
}) {

@@ -483,0 +484,0 @@ // Clone because this method modifies

@@ -27,3 +27,3 @@ import { CommittedValues, InitialDragState } from "../PanelGroup.js";

export declare function validatePanelProps(units: Units, panelData: PanelData): void;
export declare function validatePanelGroupLayout({ panels, nextSizes, prevSizes, units, groupSizePixels, }: {
export declare function validatePanelGroupLayout({ panels, nextSizes, prevSizes, units, groupSizePixels, logWarnings, }: {
groupSizePixels: number;

@@ -34,2 +34,3 @@ panels: Map<string, PanelData>;

units: Units;
logWarnings?: boolean;
}): number[];
{
"name": "@alisowski/react-resizable-panels",
"version": "0.1.20",
"version": "0.1.21",
"publishConfig": {

@@ -5,0 +5,0 @@ "access": "public"

@@ -267,2 +267,5 @@ import { isBrowser } from "#is-browser";

units,
// Here we are using validatePanelGroupLayout to update the sizes as the window resizes.
// We don't use adjustByDelta because we don't want to calculate the delta size for the screen.
logWarnings: false,
});

@@ -269,0 +272,0 @@

@@ -634,2 +634,3 @@ import { isDevelopment } from "#is-development";

groupSizePixels,
logWarnings = true,
}: {

@@ -641,2 +642,3 @@ groupSizePixels: number;

units: Units;
logWarnings?: boolean;
}): number[] {

@@ -673,5 +675,5 @@ // Clone because this method modifies

if (isDevelopment) {
if (isDevelopment && logWarnings) {
console.error(
`Invalid size (${nextSize}) specified for Panel "${panel.current.id}" given the panel's min/max size constraints`
`Invalid size (${nextSize}) specified for Panel "${panel.current.id}" given the panel's min (${panel.current.minSize}) and max (${panel.current.maxSize}) size constraints`
);

@@ -737,3 +739,3 @@ }

if (remainingSize.toFixed(3) !== "0.000" && remainingSize > 0.000000001) {
if (isDevelopment) {
if (isDevelopment && logWarnings) {
console.error(

@@ -740,0 +742,0 @@ `"Invalid panel group configuration; default panel sizes should total 100% but was ${

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

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

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc