react-resizable-panels 0.0.53 → 0.0.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/declarations/src/Panel.d.ts +2 -2
  3. package/dist/declarations/src/PanelGroup.d.ts +2 -2
  4. package/dist/declarations/src/PanelResizeHandle.d.ts +5 -2
  5. package/dist/declarations/src/index.d.ts +7 -7
  6. package/dist/declarations/src/types.d.ts +2 -1
  7. package/dist/react-resizable-panels.browser.cjs.js +1432 -0
  8. package/dist/react-resizable-panels.browser.cjs.mjs +5 -0
  9. package/dist/react-resizable-panels.browser.development.cjs.js +1455 -0
  10. package/dist/react-resizable-panels.browser.development.cjs.mjs +5 -0
  11. package/dist/react-resizable-panels.browser.development.esm.js +1429 -0
  12. package/dist/react-resizable-panels.browser.esm.js +1406 -0
  13. package/dist/react-resizable-panels.cjs.js +10 -18
  14. package/dist/react-resizable-panels.development.cjs.js +35 -27
  15. package/dist/react-resizable-panels.development.cjs.mjs +5 -0
  16. package/dist/react-resizable-panels.development.esm.js +35 -27
  17. package/dist/react-resizable-panels.development.node.cjs.js +1373 -0
  18. package/dist/react-resizable-panels.development.node.cjs.mjs +5 -0
  19. package/dist/react-resizable-panels.development.node.esm.js +1347 -0
  20. package/dist/react-resizable-panels.esm.js +10 -18
  21. package/dist/react-resizable-panels.node.cjs.js +1345 -0
  22. package/dist/react-resizable-panels.node.cjs.mjs +5 -0
  23. package/dist/react-resizable-panels.node.esm.js +1319 -0
  24. package/package.json +26 -1
  25. package/src/Panel.ts +5 -5
  26. package/src/PanelContexts.ts +1 -4
  27. package/src/PanelGroup.ts +48 -10
  28. package/src/PanelResizeHandle.ts +1 -4
  29. package/src/env-conditions/browser.ts +1 -0
  30. package/src/env-conditions/node.ts +1 -0
  31. package/src/env-conditions/unknown.ts +1 -0
  32. package/src/hooks/useIsomorphicEffect.ts +2 -9
  33. package/src/types.ts +1 -0
  34. package/src/utils/ssr.ts +0 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.0.54
4
+ * [172](https://github.com/bvaughn/react-resizable-panels/issues/172): Development warning added to `PanelGroup` for conditionally-rendered `Panel`(s) that don't have `id` and `order` props
5
+ * [156](https://github.com/bvaughn/react-resizable-panels/pull/156): Package exports now used to select between node (server-rendering) and browser (client-rendering) bundles
6
+
3
7
  ## 0.0.53
4
8
  * Fix edge case race condition for `onResize` callbacks during initial mount
5
9
 
@@ -1,5 +1,5 @@
1
- import { CSSProperties, ElementType, ReactNode } from "./vendor/react";
2
- import { PanelOnCollapse, PanelOnResize } from "./types";
1
+ import { CSSProperties, ElementType, ReactNode } from "./vendor/react.js";
2
+ import { PanelOnCollapse, PanelOnResize } from "./types.js";
3
3
  export type PanelProps = {
4
4
  children?: ReactNode;
5
5
  className?: string;
@@ -1,5 +1,5 @@
1
- import { CSSProperties, ElementType, ReactNode } from "./vendor/react";
2
- import { Direction, PanelData, PanelGroupOnLayout, PanelGroupStorage } from "./types";
1
+ import { CSSProperties, ElementType, ReactNode } from "./vendor/react.js";
2
+ import { Direction, PanelData, PanelGroupOnLayout, PanelGroupStorage } from "./types.js";
3
3
  export type CommittedValues = {
4
4
  direction: Direction;
5
5
  panels: Map<string, PanelData>;
@@ -1,5 +1,5 @@
1
- import { CSSProperties, ElementType, ReactNode } from "./vendor/react";
2
- import type { PanelResizeHandleOnDragging } from "./types";
1
+ import { CSSProperties, ElementType, ReactNode } from "./vendor/react.js";
2
+ import type { PanelResizeHandleOnDragging } from "./types.js";
3
3
  export type PanelResizeHandleProps = {
4
4
  children?: ReactNode;
5
5
  className?: string;
@@ -10,3 +10,6 @@ export type PanelResizeHandleProps = {
10
10
  tagName?: ElementType;
11
11
  };
12
12
  export declare function PanelResizeHandle({ children, className: classNameFromProps, disabled, id: idFromProps, onDragging, style: styleFromProps, tagName: Type, }: PanelResizeHandleProps): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
13
+ export declare namespace PanelResizeHandle {
14
+ var displayName: string;
15
+ }
@@ -1,8 +1,8 @@
1
- import { Panel } from "./Panel";
2
- import { PanelGroup } from "./PanelGroup";
3
- import { PanelResizeHandle } from "./PanelResizeHandle";
4
- import type { ImperativePanelHandle, PanelProps } from "./Panel";
5
- import type { ImperativePanelGroupHandle, PanelGroupProps } from "./PanelGroup";
6
- import type { PanelResizeHandleProps } from "./PanelResizeHandle";
7
- import type { PanelGroupOnLayout, PanelGroupStorage, PanelOnCollapse, PanelOnResize, PanelResizeHandleOnDragging } from "./types";
1
+ import { Panel } from "./Panel.js";
2
+ import { PanelGroup } from "./PanelGroup.js";
3
+ import { PanelResizeHandle } from "./PanelResizeHandle.js";
4
+ import type { ImperativePanelHandle, PanelProps } from "./Panel.js";
5
+ import type { ImperativePanelGroupHandle, PanelGroupProps } from "./PanelGroup.js";
6
+ import type { PanelResizeHandleProps } from "./PanelResizeHandle.js";
7
+ import type { PanelGroupOnLayout, PanelGroupStorage, PanelOnCollapse, PanelOnResize, PanelResizeHandleOnDragging } from "./types.js";
8
8
  export { ImperativePanelGroupHandle, ImperativePanelHandle, Panel, PanelOnCollapse, PanelOnResize, PanelGroup, PanelGroupOnLayout, PanelGroupProps, PanelGroupStorage, PanelProps, PanelResizeHandle, PanelResizeHandleOnDragging, PanelResizeHandleProps, };
@@ -1,4 +1,4 @@
1
- import { RefObject } from "./vendor/react";
1
+ import { RefObject } from "./vendor/react.js";
2
2
  export type Direction = "horizontal" | "vertical";
3
3
  export type PanelGroupStorage = {
4
4
  getItem(name: string): string | null;
@@ -19,6 +19,7 @@ export type PanelData = {
19
19
  collapsible: boolean;
20
20
  defaultSize: number | null;
21
21
  id: string;
22
+ idWasAutoGenerated: boolean;
22
23
  maxSize: number;
23
24
  minSize: number;
24
25
  order: number | null;