react-grid-layout 2.2.3 → 2.3.0

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 (40) hide show
  1. package/README.md +5 -0
  2. package/dist/{ResponsiveGridLayout-BjVraYMQ.d.mts → ResponsiveGridLayout-BSYEMZ9d.d.ts} +4 -4
  3. package/dist/{ResponsiveGridLayout-BrhkSyZk.d.ts → ResponsiveGridLayout-RNuyRTPe.d.mts} +4 -4
  4. package/dist/{calculate-DH4EVtn1.d.mts → calculate-BXoe3Mfz.d.mts} +1 -1
  5. package/dist/{calculate-rP3DHexe.d.ts → calculate-Tc1WkIxl.d.ts} +1 -1
  6. package/dist/{chunk-BPZQUJ7Y.js → chunk-CUP5Y2ZG.js} +500 -155
  7. package/dist/{chunk-55DQUWLA.js → chunk-QAIA5KAO.js} +33 -22
  8. package/dist/{chunk-7MZZ6T4J.js → chunk-SL4EZ2NU.js} +67 -38
  9. package/dist/{chunk-PZLKKWSX.mjs → chunk-TW4BCTKD.mjs} +37 -8
  10. package/dist/{chunk-KDANGDDL.mjs → chunk-VBU6B7II.mjs} +13 -2
  11. package/dist/{chunk-A5WIFECI.js → chunk-VJJIA3HC.js} +7 -3
  12. package/dist/{chunk-WGL5FSZH.mjs → chunk-Z6CWRR74.mjs} +431 -86
  13. package/dist/{chunk-76RTO6EO.mjs → chunk-ZYNFVPDS.mjs} +7 -3
  14. package/dist/core.d.mts +5 -5
  15. package/dist/core.d.ts +5 -5
  16. package/dist/core.js +67 -67
  17. package/dist/core.mjs +2 -2
  18. package/dist/extras.d.mts +2 -2
  19. package/dist/extras.d.ts +2 -2
  20. package/dist/extras.js +8 -8
  21. package/dist/extras.mjs +1 -1
  22. package/dist/index.d.mts +5 -5
  23. package/dist/index.d.ts +5 -5
  24. package/dist/index.js +39 -39
  25. package/dist/index.mjs +4 -4
  26. package/dist/legacy.d.mts +18 -9
  27. package/dist/legacy.d.ts +18 -9
  28. package/dist/legacy.js +35 -25
  29. package/dist/legacy.mjs +18 -9
  30. package/dist/{position-CSgQSjwQ.d.ts → position-VdYnMJql.d.ts} +1 -1
  31. package/dist/{position-BV-g3Ezg.d.mts → position-iPly-ecb.d.mts} +1 -1
  32. package/dist/react.d.mts +24 -6
  33. package/dist/react.d.ts +24 -6
  34. package/dist/react.js +25 -25
  35. package/dist/react.mjs +4 -4
  36. package/dist/{responsive-BrTV_0tK.d.mts → responsive-BVtXrrTF.d.mts} +1 -1
  37. package/dist/{responsive-C_YtBQYq.d.ts → responsive-C6s9JAJU.d.ts} +1 -1
  38. package/dist/{types-jd8MiKM1.d.mts → types-DlzNckle.d.mts} +22 -0
  39. package/dist/{types-jd8MiKM1.d.ts → types-DlzNckle.d.ts} +22 -0
  40. package/package.json +3 -2
package/README.md CHANGED
@@ -32,6 +32,7 @@ RGL is React-only and does not require jQuery.
32
32
  - [Extending: Custom Compactors & Position Strategies](#extending-custom-compactors--position-strategies)
33
33
  - [Extras](#extras)
34
34
  - [Performance](#performance)
35
+ - [Architecture maps](#architecture-maps)
35
36
  - [Contribute](#contribute)
36
37
 
37
38
  ## What's New in v2
@@ -1305,6 +1306,10 @@ const CustomItem = forwardRef<HTMLDivElement, CustomItemProps>(
1305
1306
  );
1306
1307
  ```
1307
1308
 
1309
+ ## Architecture maps
1310
+
1311
+ Token-lean architecture maps live in [`codemaps/`](codemaps/) and are loaded at session start by AI tooling. They cover the module boundaries, public API surface, data models, and recent behavioral changes. Regenerate with `/update-codemaps` after substantial changes.
1312
+
1308
1313
  ## Contribute
1309
1314
 
1310
1315
  If you have a feature request, please add it as an issue or make a pull request.
@@ -1,5 +1,5 @@
1
1
  import React__default, { CSSProperties, DragEvent, ReactElement } from 'react';
2
- import { m as GridConfig, j as DragConfig, r as ResizeConfig, l as DropConfig, p as PositionStrategy, b as Compactor, f as LayoutConstraint, L as Layout, d as LayoutItem, E as EventCallback, B as Breakpoint, a as Breakpoints, e as ResponsiveLayouts } from './types-jd8MiKM1.mjs';
2
+ import { m as GridConfig, j as DragConfig, r as ResizeConfig, l as DropConfig, p as PositionStrategy, b as Compactor, f as LayoutConstraint, L as Layout, d as LayoutItem, E as EventCallback, B as Breakpoint, a as Breakpoints, e as ResponsiveLayouts } from './types-DlzNckle.js';
3
3
 
4
4
  /**
5
5
  * GridLayout component
@@ -125,8 +125,8 @@ interface ResponsiveGridLayoutProps<B extends Breakpoint = string> extends Omit<
125
125
  onWidthChange?: (containerWidth: number, margin: readonly [number, number], cols: number, containerPadding: readonly [number, number] | null) => void;
126
126
  }
127
127
  /**
128
- * ResponsiveGridLayout - A responsive grid layout that adjusts to container width.
128
+ * The forwardRef wrapper so consumers can capture the container div ref (#2244).
129
129
  */
130
- declare function ResponsiveGridLayout<B extends Breakpoint = string>(props: ResponsiveGridLayoutProps<B>): ReactElement;
130
+ declare const ResponsiveGridLayoutWithRef: React__default.ForwardRefExoticComponent<ResponsiveGridLayoutProps<string> & React__default.RefAttributes<HTMLDivElement>>;
131
131
 
132
- export { GridLayout as G, ResponsiveGridLayout as R, type GridLayoutProps as a, type ResponsiveGridLayoutProps as b };
132
+ export { GridLayout as G, ResponsiveGridLayoutWithRef as R, type GridLayoutProps as a, type ResponsiveGridLayoutProps as b };
@@ -1,5 +1,5 @@
1
1
  import React__default, { CSSProperties, DragEvent, ReactElement } from 'react';
2
- import { m as GridConfig, j as DragConfig, r as ResizeConfig, l as DropConfig, p as PositionStrategy, b as Compactor, f as LayoutConstraint, L as Layout, d as LayoutItem, E as EventCallback, B as Breakpoint, a as Breakpoints, e as ResponsiveLayouts } from './types-jd8MiKM1.js';
2
+ import { m as GridConfig, j as DragConfig, r as ResizeConfig, l as DropConfig, p as PositionStrategy, b as Compactor, f as LayoutConstraint, L as Layout, d as LayoutItem, E as EventCallback, B as Breakpoint, a as Breakpoints, e as ResponsiveLayouts } from './types-DlzNckle.mjs';
3
3
 
4
4
  /**
5
5
  * GridLayout component
@@ -125,8 +125,8 @@ interface ResponsiveGridLayoutProps<B extends Breakpoint = string> extends Omit<
125
125
  onWidthChange?: (containerWidth: number, margin: readonly [number, number], cols: number, containerPadding: readonly [number, number] | null) => void;
126
126
  }
127
127
  /**
128
- * ResponsiveGridLayout - A responsive grid layout that adjusts to container width.
128
+ * The forwardRef wrapper so consumers can capture the container div ref (#2244).
129
129
  */
130
- declare function ResponsiveGridLayout<B extends Breakpoint = string>(props: ResponsiveGridLayoutProps<B>): ReactElement;
130
+ declare const ResponsiveGridLayoutWithRef: React__default.ForwardRefExoticComponent<ResponsiveGridLayoutProps<string> & React__default.RefAttributes<HTMLDivElement>>;
131
131
 
132
- export { GridLayout as G, ResponsiveGridLayout as R, type GridLayoutProps as a, type ResponsiveGridLayoutProps as b };
132
+ export { GridLayout as G, ResponsiveGridLayoutWithRef as R, type GridLayoutProps as a, type ResponsiveGridLayoutProps as b };
@@ -1,4 +1,4 @@
1
- import { P as Position, R as ResizeHandleAxis } from './types-jd8MiKM1.mjs';
1
+ import { P as Position, R as ResizeHandleAxis } from './types-DlzNckle.mjs';
2
2
 
3
3
  /**
4
4
  * Grid calculation utilities.
@@ -1,4 +1,4 @@
1
- import { P as Position, R as ResizeHandleAxis } from './types-jd8MiKM1.js';
1
+ import { P as Position, R as ResizeHandleAxis } from './types-DlzNckle.js';
2
2
 
3
3
  /**
4
4
  * Grid calculation utilities.