react-resizable-panels
Advanced tools
Comparing version 0.0.20 to 0.0.21
# Changelog | ||
## 0.0.21 | ||
* [#39](https://github.com/bvaughn/react-resizable-panels/issues/39): Fixed regression in TypeScript defs introduced in `0.0.20` | ||
## 0.0.20 | ||
@@ -4,0 +7,0 @@ * Add `displayName` to `Panel`, `PanelGroup`, `PanelGroupContext`, and `PanelResizeHandle` to work around ParcelJS scope hoisting renaming. |
@@ -1,11 +0,31 @@ | ||
declare declare namespace Panel { | ||
var displayName: string; | ||
} | ||
declare declare namespace PanelGroup { | ||
var displayName: string; | ||
} | ||
declare declare namespace PanelResizeHandle { | ||
var displayName: string; | ||
} | ||
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; | ||
//# sourceMappingURL=react-resizable-panels.d.ts.map |
@@ -25,3 +25,5 @@ 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) | ||
// Workaround for Parcel scope hoisting (which renames objects/functions). | ||
// Casting to :any is required to avoid corrupting the generated TypeScript types. | ||
// See github.com/parcel-bundler/parcel/issues/8724 | ||
$3251d17c1c3bce6c$export$7d8c6d083caec74a.displayName = "PanelGroupContext"; | ||
@@ -74,3 +76,5 @@ | ||
} | ||
// Workaround for Parcel scope hoisting (which renames objects/functions) | ||
// Workaround for Parcel scope hoisting (which renames objects/functions). | ||
// Casting to :any is required to avoid corrupting the generated TypeScript types. | ||
// See github.com/parcel-bundler/parcel/issues/8724 | ||
$6d390b7f2e6b107f$export$2e2bcd8739ae039.displayName = "Panel"; | ||
@@ -534,3 +538,5 @@ | ||
} | ||
// Workaround for Parcel scope hoisting (which renames objects/functions) | ||
// Workaround for Parcel scope hoisting (which renames objects/functions). | ||
// Casting to :any is required to avoid corrupting the generated TypeScript types. | ||
// See github.com/parcel-bundler/parcel/issues/8724 | ||
$d428eaeef644efb2$export$2e2bcd8739ae039.displayName = "PanelGroup"; | ||
@@ -633,3 +639,5 @@ | ||
} | ||
// Workaround for Parcel scope hoisting (which renames objects/functions) | ||
// Workaround for Parcel scope hoisting (which renames objects/functions). | ||
// Casting to :any is required to avoid corrupting the generated TypeScript types. | ||
// See github.com/parcel-bundler/parcel/issues/8724 | ||
$d578a49f00f1bdeb$export$2e2bcd8739ae039.displayName = "PanelResizeHandle"; | ||
@@ -636,0 +644,0 @@ |
@@ -18,3 +18,5 @@ 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) | ||
// Workaround for Parcel scope hoisting (which renames objects/functions). | ||
// Casting to :any is required to avoid corrupting the generated TypeScript types. | ||
// See github.com/parcel-bundler/parcel/issues/8724 | ||
$f922724f4bad4884$export$7d8c6d083caec74a.displayName = "PanelGroupContext"; | ||
@@ -67,3 +69,5 @@ | ||
} | ||
// Workaround for Parcel scope hoisting (which renames objects/functions) | ||
// Workaround for Parcel scope hoisting (which renames objects/functions). | ||
// Casting to :any is required to avoid corrupting the generated TypeScript types. | ||
// See github.com/parcel-bundler/parcel/issues/8724 | ||
$ad28bce87b00c2be$export$2e2bcd8739ae039.displayName = "Panel"; | ||
@@ -527,3 +531,5 @@ | ||
} | ||
// Workaround for Parcel scope hoisting (which renames objects/functions) | ||
// Workaround for Parcel scope hoisting (which renames objects/functions). | ||
// Casting to :any is required to avoid corrupting the generated TypeScript types. | ||
// See github.com/parcel-bundler/parcel/issues/8724 | ||
$c44ee3356398c8a1$export$2e2bcd8739ae039.displayName = "PanelGroup"; | ||
@@ -626,3 +632,5 @@ | ||
} | ||
// Workaround for Parcel scope hoisting (which renames objects/functions) | ||
// Workaround for Parcel scope hoisting (which renames objects/functions). | ||
// Casting to :any is required to avoid corrupting the generated TypeScript types. | ||
// See github.com/parcel-bundler/parcel/issues/8724 | ||
$b067b37706bb37b8$export$2e2bcd8739ae039.displayName = "PanelResizeHandle"; | ||
@@ -629,0 +637,0 @@ |
{ | ||
"name": "react-resizable-panels", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"description": "React components for resizable panel groups/layouts", | ||
@@ -5,0 +5,0 @@ "author": "Brian Vaughn <brian.david.vaughn@gmail.com>", |
@@ -17,3 +17,5 @@ import { CSSProperties, createContext } from "react"; | ||
// Workaround for Parcel scope hoisting (which renames objects/functions) | ||
PanelGroupContext.displayName = "PanelGroupContext"; | ||
// Workaround for Parcel scope hoisting (which renames objects/functions). | ||
// Casting to :any is required to avoid corrupting the generated TypeScript types. | ||
// See github.com/parcel-bundler/parcel/issues/8724 | ||
(PanelGroupContext as any).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
194250
2195