react-resizable-panels
Advanced tools
Comparing version 0.0.19 to 0.0.20
# Changelog | ||
## 0.0.20 | ||
* Add `displayName` to `Panel`, `PanelGroup`, `PanelGroupContext`, and `PanelResizeHandle` to work around ParcelJS scope hoisting renaming. | ||
## 0.0.19 | ||
@@ -4,0 +7,0 @@ * Add optional `style` and `tagName` props to `Panel`, `PanelGroup`, and `PanelResizeHandle` to simplify custom styling. |
@@ -1,31 +0,11 @@ | ||
import { CSSProperties, ElementType, ReactNode } from "react"; | ||
type Direction = "horizontal" | "vertical"; | ||
export function Panel({ children, className: classNameFromProps, defaultSize, id: idFromProps, minSize, order, style: styleFromProps, tagName: Type, }: { | ||
children?: ReactNode; | ||
className?: string; | ||
defaultSize?: number | null; | ||
id?: string | null; | ||
minSize?: number; | ||
order?: number | null; | ||
style?: CSSProperties; | ||
tagName?: ElementType; | ||
}): JSX.Element; | ||
export function PanelGroup({ autoSaveId, children, className: classNameFromProps, direction, id: idFromProps, style: styleFromProps, tagName: Type, }: { | ||
autoSaveId?: string; | ||
children?: ReactNode; | ||
className?: string; | ||
direction: Direction; | ||
id?: string | null; | ||
style?: CSSProperties; | ||
tagName?: ElementType; | ||
}): JSX.Element; | ||
export function PanelResizeHandle({ children, className: classNameFromProps, disabled, id: idFromProps, style: styleFromProps, tagName: Type, }: { | ||
children?: ReactNode; | ||
className?: string; | ||
disabled?: boolean; | ||
id?: string | null; | ||
style?: CSSProperties; | ||
tagName?: ElementType; | ||
}): JSX.Element; | ||
declare declare namespace Panel { | ||
var displayName: string; | ||
} | ||
declare declare namespace PanelGroup { | ||
var displayName: string; | ||
} | ||
declare declare namespace PanelResizeHandle { | ||
var displayName: string; | ||
} | ||
//# sourceMappingURL=react-resizable-panels.d.ts.map |
@@ -25,2 +25,4 @@ var $b2QPe$reactjsxruntime = require("react/jsx-runtime"); | ||
const $3251d17c1c3bce6c$export$7d8c6d083caec74a = (0, $b2QPe$react.createContext)(null); | ||
// Workaround for Parcel scope hoisting (which renames objects/functions) | ||
$3251d17c1c3bce6c$export$7d8c6d083caec74a.displayName = "PanelGroupContext"; | ||
@@ -72,2 +74,4 @@ | ||
} | ||
// Workaround for Parcel scope hoisting (which renames objects/functions) | ||
$6d390b7f2e6b107f$export$2e2bcd8739ae039.displayName = "Panel"; | ||
@@ -530,2 +534,4 @@ | ||
} | ||
// Workaround for Parcel scope hoisting (which renames objects/functions) | ||
$d428eaeef644efb2$export$2e2bcd8739ae039.displayName = "PanelGroup"; | ||
@@ -627,2 +633,4 @@ | ||
} | ||
// Workaround for Parcel scope hoisting (which renames objects/functions) | ||
$d578a49f00f1bdeb$export$2e2bcd8739ae039.displayName = "PanelResizeHandle"; | ||
@@ -629,0 +637,0 @@ |
@@ -18,2 +18,4 @@ import {jsx as $fpI56$jsx} from "react/jsx-runtime"; | ||
const $f922724f4bad4884$export$7d8c6d083caec74a = (0, $fpI56$createContext)(null); | ||
// Workaround for Parcel scope hoisting (which renames objects/functions) | ||
$f922724f4bad4884$export$7d8c6d083caec74a.displayName = "PanelGroupContext"; | ||
@@ -65,2 +67,4 @@ | ||
} | ||
// Workaround for Parcel scope hoisting (which renames objects/functions) | ||
$ad28bce87b00c2be$export$2e2bcd8739ae039.displayName = "Panel"; | ||
@@ -523,2 +527,4 @@ | ||
} | ||
// Workaround for Parcel scope hoisting (which renames objects/functions) | ||
$c44ee3356398c8a1$export$2e2bcd8739ae039.displayName = "PanelGroup"; | ||
@@ -620,2 +626,4 @@ | ||
} | ||
// Workaround for Parcel scope hoisting (which renames objects/functions) | ||
$b067b37706bb37b8$export$2e2bcd8739ae039.displayName = "PanelResizeHandle"; | ||
@@ -622,0 +630,0 @@ |
{ | ||
"name": "react-resizable-panels", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"description": "React components for resizable panel groups/layouts", | ||
@@ -5,0 +5,0 @@ "author": "Brian Vaughn <brian.david.vaughn@gmail.com>", |
@@ -16,1 +16,4 @@ import { CSSProperties, createContext } from "react"; | ||
} | null>(null); | ||
// Workaround for Parcel scope hoisting (which renames objects/functions) | ||
PanelGroupContext.displayName = "PanelGroupContext"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
188965
2151